"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7842],{5027:(e,l,i)=>{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}},39111:(e,l,i)=>{l.SK=d;let o=i(78449),t=i(25753),n=i(95474);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,{$n:()=>c});var o=i(59716),t=i(77704),n=i(43517),a=i(94185),r=i(13820);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,v=u?n.DX:"button";return(0,o.jsx)(v,{className:(0,r.cn)(d({variant:t,display:c?"inline":a,className:i})),ref:l,...s})});c.displayName="Button"},57059:(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}},67291:(e,l,i)=>{i.d(l,{h:()=>c});var o=i(59716),t=i(77704),n=i(52131);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};var d=i(74243);let c=e=>{var l;let{playlist:i,options:r={},setupParams:c={},events:u=[]}=e,s="player-".concat((0,t.useId)()),{playerId:v="IdNDrRWQ"}=c,p=(0,t.useMemo)(()=>({playlist:i,...a(c),...r}),[i,c,r]),y=(0,t.useRef)(null),g=(0,t.useRef)(!1),f=null==i||null==(l=i[0])?void 0:l.file,[b,h]=(0,t.useState)(f?"loading":"error");return(0,t.useEffect)(()=>{if(g.current||!("jwplayer"in window)||"ready"!==b||!f)return;let e=window.jwplayer(s);y.current=e,g.current=!0,d.debugLogger.info("JWPlayer","initialized player"),e.setup(p),u.forEach(l=>{let{eventName:i,callback:o}=l;e.on(i,l=>{o({event:l,player:e})}),d.debugLogger.lifecycle("JWPlayer","Registered event handler for ".concat(i))})},[p,u,f,s,b]),(0,t.useEffect)(()=>()=>{if(y.current)try{y.current.remove(),y.current=null,g.current=!1}catch(e){d.debugLogger.error("JWPlayer","Error removing JW Player",e)}},[]),(0,o.jsxs)("div",{children:[f&&(0,o.jsx)(n.default,{src:"https://cdn.jwplayer.com/libraries/".concat(v,".js"),strategy:"afterInteractive",onLoad:()=>h("ready"),onReady:()=>h("ready"),onError:()=>h("error")}),(0,o.jsx)("div",{className:"overflow-hidden rounded-lg",children:"loading"===b&&f?(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"})})]})}}}]);