"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6701],{18609:(e,l,i)=>{l.SK=d;let o=i(81511),t=i(94987),n=i(19352);async function a(e){let l=(0,o.getLocationSearchUrlConfig)(e),i=(0,t.urlFrom)(l),a=await fetch(i,{headers:{"Accept-Encoding":"gzip"}});return(0,n.handleFetchResponse)(a)}function r(e){let l=[];if(!e.location||!e.location.city||0===e.location.city.length)return l;let i=e.location.city.length;for(let V=0;V{i.d(l,{K:()=>o});let o=(e,l)=>{var i;if(!(null==l?void 0:l.file))return[];if("string"==typeof e)return(null==l?void 0:l.file)?[l]:[];let o=Array.isArray(e)?e:[];return(null==l?void 0:l.file)&&(!(o.length>0)||(null==(i=o[0])?void 0:i.file)!==(null==l?void 0:l.file))?[l,...o.filter(e=>e.file!==l.file)]:o}},63594:(e,l,i)=>{i.d(l,{h:()=>c});var o=i(21291),t=i(85659),n=i(16466);let a=e=>{let{ads:l=!0,showDescriptions:i=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...l?{advertising:r}:{},...i?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}},r={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0},d=(0,i(93677).h)("JWPlayer"),c=e=>{var l;let{playlist:i,options:r={},setupParams:c={},events:u=[]}=e,s="player-".concat((0,t.useId)()),{playerId:p="IdNDrRWQ"}=c,v=(0,t.useMemo)(()=>({playlist:i,...a(c),...r}),[i,c,r]),y=(0,t.useRef)(null),f=(0,t.useRef)(!1),g=null==i||null==(l=i[0])?void 0:l.file,[b,h]=(0,t.useState)(g?"loading":"error");return(0,t.useEffect)(()=>{if(f.current||!("jwplayer"in window)||"ready"!==b||!g)return;let e=window.jwplayer(s);y.current=e,f.current=!0,d.info("initialized player"),e.setup(v),u.forEach(l=>{let{eventName:i,callback:o}=l;e.on(i,l=>{o({event:l,player:e})}),d.lifecycle("Registered event handler for ".concat(i))})},[v,u,g,s,b]),(0,t.useEffect)(()=>()=>{if(y.current)try{y.current.remove(),y.current=null,f.current=!1}catch(e){d.error("Error removing JW Player",e)}},[]),(0,o.jsxs)("div",{children:[g&&(0,o.jsx)(n.default,{src:"https://cdn.jwplayer.com/libraries/".concat(p,".js"),strategy:"afterInteractive",onLoad:()=>h("ready"),onReady:()=>h("ready"),onError:()=>h("error")}),(0,o.jsx)("div",{className:"overflow-hidden rounded-lg",children:"loading"===b&&g?(0,o.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,o.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-white"})}):"error"===b?(0,o.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,o.jsx)("div",{id:s,className:"aspect-video w-full bg-black"})})]})}},71321:(e,l,i)=>{i.d(l,{e:()=>t});let o="/placeholder.jpg",t=e=>{if(!e)return o;for(let l of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let i=e.match(l);if(i&&i[1])return"https://cdn.jwplayer.com/v2/media/".concat(i[1],"/poster.jpg")}return o}},99012:(e,l,i)=>{i.d(l,{$n:()=>c});var o=i(21291),t=i(85659),n=i(19785),a=i(54711),r=i(82622);let d=(0,a.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),c=t.forwardRef((e,l)=>{let{className:i,variant:t,display:a,inline:c=!1,asChild:u=!1,...s}=e,p=u?n.DX:"button";return(0,o.jsx)(p,{className:(0,r.cn)(d({variant:t,display:c?"inline":a,className:i})),ref:l,...s})});c.displayName="Button"}}]);