1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9350],{29350:function(e,t,n){"use strict";n.r(t),n.d(t,{GlobalPopupLoader:function(){return H},default:function(){return I}});var l=n(85893),i=n(29441),o=n(96520),r=n(87987),a=n(67294),s=n(316),d=n.n(s),u=n(86487),p=n(72021),c=n(70723),m=n(19986),v=n(99213),f=n(93967),x=n.n(f),h=n(86492),y=n(79841),_=n(11163),g=n(22163),b=n(80461),j=n(16078),w=n(91637),k=n(9225),N=n(76039),S=n(20127),T=n(97434),L=n(65643),C=n(62615);let D=()=>{let{addToCart:e}=(0,L.t)();return{handleAddToCart:async(t,n,l,i)=>{if(t&&n)try{var o,r,a,s,d,u,p,c;let m=(0,C.w)(t),v=await e([{sku:n,uid:t.uid,quantity:1,entered_options:m,bundle_and_save_items:(null==t?void 0:t.elgato_bundle_and_save_skus)||[],deliver_by:(null==t?void 0:t.deliverBy)||0,excluded_delivery_dates:(null==t?void 0:t.excludedDeliveryDate)?null==t?void 0:t.excludedDeliveryDate.join("-"):""}],[t]);if((null==v?void 0:null===(r=v.errors)||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.message)||(null==v?void 0:null===(s=v.user_errors)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:a.message))throw Error((null===(u=v.errors)||void 0===u?void 0:null===(d=u[0])||void 0===d?void 0:d.message)||(null===(c=v.user_errors)||void 0===c?void 0:null===(p=c[0])||void 0===p?void 0:p.message));(0,T.y)({event:"add_to_cart",ecommerce:{currency:l,value:i,items:[{item_id:n,item_name:t.name,price:i,quantity:1}]}})}catch(e){console.error("Error adding to cart:",e)}}}},z=e=>{var t,n,o,s,d,u,p;let{link:v,cloudinaryImage:f,cloudinaryMobileImage:h,posterImage:T,posterImageMobile:L,headline:C,text:z,sku:P,product:E}=e,{isMobile:O}=(0,r.X)(),[B,M]=(0,a.useState)(!1),{t:I}=(0,y.$G)(["common"]),[H,A]=(0,a.useState)(!1),[W,R]=(0,a.useState)(!0),X=(0,a.useRef)(null),F=(0,a.useRef)(null),G=(0,a.useRef)(null),{handleAddToCart:q}=D(),{isOutOfStock:J}=(0,S.sc)(E),{base:{currencyConfig:V}}=(0,w.d7)(),U=null==V?void 0:null===(t=V.elgato)||void 0===t?void 0:t.currencyMap,{locale:$}=(0,_.useRouter)(),{subtotal:Z,total:K,currency:Q}=(0,k.k)(null==E?void 0:E.price_range),Y=Number(null==E?void 0:null===(s=E.price_range)||void 0===s?void 0:null===(o=s.minimum_price)||void 0===o?void 0:null===(n=o.regular_price)||void 0===n?void 0:n.value),ee=Number(null==E?void 0:null===(p=E.price_range)||void 0===p?void 0:null===(u=p.minimum_price)||void 0===u?void 0:null===(d=u.final_price)||void 0===d?void 0:d.value),et=Z&&K!==Z&&Y>ee,{src:en,posterImageSrc:el,type:ei}=(0,m.G)({cloudinaryMedia:f,posterImage:T,cloudinaryMobileMedia:h,posterImageMobile:L});return(0,a.useLayoutEffect)(()=>{if(!B)return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)};function e(){if(X.current){let{scrollHeight:e,clientHeight:t}=X.current;A(e-t>1)}}},[z,O,B]),(0,l.jsxs)("div",{ref:F,className:x()("flex flex-row md:flex-col gap-8px rounded-xxl md:rounded-xxxl bg-white p-8px shadow-lg md-max:h-full"),style:{maxWidth:O?440:270,maxHeight:O?200:void 0},children:[(0,l.jsxs)("div",{className:"shrink md:shrink-0 overflow-hidden rounded-xl md:rounded-xxl relative",style:{width:O?100:void 0},children:["video"===ei?(0,l.jsx)("video",{src:en,muted:!0,autoPlay:!0,loop:!0,playsInline:!0,preload:"auto",ref:G,className:"max-h-full h-full w-full object-cover md:object-contain",poster:el,children:(0,l.jsx)("source",{src:en,type:"video/mp4"})}):(0,l.jsx)("img",{src:en,alt:"",className:"max-h-full h-full w-full object-cover md:object-contain"}),"video"===ei&&(0,l.jsx)("div",{className:"absolute bottom-8px left-8px",children:(0,l.jsx)(b.h,{videoRef:G,controlsBackground:"white",size:"small",iconName:W?"pause":"play",className:"hidden md:block",onClick:function(){var e,t,n;(null===(e=G.current)||void 0===e?void 0:e.paused)?(null===(t=G.current)||void 0===t||t.play(),R(!0)):(null===(n=G.current)||void 0===n||n.pause(),R(!1))},ariaLabel:"Play video"})})]}),(0,l.jsxs)("div",{className:"md-max:flex-1 flex flex-col justify-between md:justify-end items-center gap-16px md:p-8px relative",style:{zIndex:10},children:[(0,l.jsxs)("div",{className:"flex flex-col gap-8px",children:[(0,l.jsx)("div",{className:x()("text-small-copy-md-max md:text-small-copy","normal-case"),style:{fontWeight:700},dangerouslySetInnerHTML:{__html:C||""}}),(0,l.jsx)("p",{ref:X,className:x()("text-1.1xl overflow-hidden"),style:{lineClamp:B?"none":3,WebkitLineClamp:B?"none":3,WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden"},dangerouslySetInnerHTML:{__html:z||""}}),H&&(0,l.jsxs)("button",{onClick:()=>M(!B),className:"flex items-center gap-1 text-h6 underline mt-1",children:[I(B?"View Less":"View More"),(0,l.jsx)(i.J,{name:B?"chevronUp":"chevronDown",className:"w-4 h-4"})]})]}),(0,l.jsx)("div",{className:x()("w-full h-36px md:h-auto"),children:P?(0,l.jsxs)("div",{className:"flex items-center justify-center gap-12px w-full",children:[(0,l.jsx)(j.e,{onClick:()=>{E&&P&&Q&&q(E,P,Q,ee)},isOutOfStock:J,linkTitle:null==v?void 0:v.linkTitle}),E&&K?(0,l.jsx)("div",{className:"flex flex-col items-end",children:et&&Z?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{fontSize:"14px"},children:(0,l.jsx)(g.t,{price:(0,N.pu)(Z,Q,$,U),size:"small",variant:"discount",className:"text-primitive-red-90"})}),(0,l.jsx)("div",{style:{fontSize:"14px"},children:(0,l.jsx)(g.t,{price:(0,N.pu)(K,Q,$,U),size:"small",className:"font-bold text-black"})})]}):(0,l.jsx)("div",{style:{fontSize:"14px"},children:(0,l.jsx)(g.t,{price:(0,N.pu)(K,Q,$,U),size:"small",className:"font-bold text-black"})})}):(0,l.jsx)("div",{className:"text-gray-500 font-medium",style:{fontSize:"14px"},children:"--"})]}):v&&(0,l.jsx)(c.z,{onClick:e=>{"#"===v.linkUrl&&(null==e||e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))},href:v.linkUrl,variant:"secondary",iconAlignment:"right",color:"dark-grey",style:{color:"black",paddingTop:O?10:12,paddingBottom:O?10:12,paddingLeft:O?4:12,paddingRight:O?4:12,justifyContent:"center",borderColor:"black",borderRadius:6,minHeight:O?22:34},className:"w-full",tracking:!0,dataLayer:v.eventTracking,children:(0,l.jsxs)("span",{className:"inline-flex items-center gap-4px text-center",style:{fontSize:14},children:[v.linkTitle,(0,l.jsx)(i.J,{name:"chevronRight",className:"w-4 h-4"})]})})})]})]})};var P=n(1307),E=n.n(P);let O=e=>{var t,n,o,s;let{popup:d}=e,{headline:f,text:_,link:g,image:b,cloudinaryImage:j,cloudinaryMobileImage:w,bannerType:k,badgeText:N,variant:S}=d,{isMobile:T}=(0,r.X)(),{t:L}=(0,y.$G)(["common"]),[C,D]=(0,a.useState)(!1),[P,O]=(0,a.useState)(!1),B=(0,a.useRef)(null),M=null===(t=d.customOptions)||void 0===t?void 0:t.sku,{product:I}=(0,v.D)(M||""),{src:H,type:A}=(0,m.G)({cloudinaryMedia:j,cloudinaryMobileMedia:w,mobileMediaOnTablet:!1});return(null!==(s=null===(n=d.customOptions)||void 0===n?void 0:n.videoLoop)&&void 0!==s||null===(o=d.additionalOptions)||void 0===o||o.videoLoop,(0,a.useLayoutEffect)(()=>
1{if(C)return;let e=()=>{if(B.current){let{scrollHeight:e,clientHeight:t}=B.current;O(e-t>1)}};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[_,T,C]),"pdp-banner"===k)?(0,l.jsx)(z,{link:g,cloudinaryImage:j,headline:f,text:_,sku:M,product:I}):(0,l.jsx)("div",{className:x()("flex flex-row md:flex-col gap-8px rounded-xxl md:rounded-xxxl bg-white p-8px md-max:h-full w-full",E()["popup-banner"]),style:{maxWidth:T?void 0:270,maxHeight:T?220:void 0},children:(()=>{var e,t,n,o;let r=null!==(n=null===(e=d.customOptions)||void 0===e?void 0:e.videoLoop)&&void 0!==n?n:null===(t=d.additionalOptions)||void 0===t?void 0:t.videoLoop;return(0,l.jsxs)(l.Fragment,{children:[b||H?(0,l.jsxs)("div",{className:"shrink md:shrink-0 overflow-hidden rounded-xl md:rounded-xxl relative",style:{width:T?100:void 0},children:[H&&"video"===A?(0,l.jsx)(p.Z,{secure_url:H,className:"w-full h-full",videoClasses:"w-full h-full md:object-contain object-cover",options:{autoPlay:!0,preload:"auto",muted:!0,loop:!1!==r&&"false"!==r}}):H?(0,l.jsx)(u.Z,{src:H,alt:f||"Banner image",className:"w-full h-full md:object-contain object-cover"}):(0,l.jsx)("img",{src:null==b?void 0:null===(o=b.file)||void 0===o?void 0:o.url,alt:f,className:"w-full h-full md:object-contain object-cover"}),N&&"live"===S&&(0,l.jsxs)("div",{className:x()(E()["popup-banner__live-badge"]),children:[(0,l.jsx)("div",{className:"w-8px h-8px bg-primitive-red-70 rounded-full"}),(0,l.jsx)("span",{children:N})]})]}):null,(0,l.jsxs)("div",{className:"md-max:flex-1 md:p-8px flex flex-col justify-between md:justify-end gap-8px",style:{zIndex:10},children:[(0,l.jsxs)("div",{className:E()["popup-banner__content"],children:[f&&(0,l.jsx)("div",{className:x()(E()["popup-banner__headline"],"font-universLtStdAdjusted pr-8"),dangerouslySetInnerHTML:{__html:(0,h.decode)(f)}}),_&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{ref:B,className:x()(E()["popup-banner__text"],"font-universLtStdAdjusted overflow-hidden"),style:{lineClamp:C?"none":3,WebkitLineClamp:C?"none":3,WebkitBoxOrient:"vertical",display:"-webkit-box"},dangerouslySetInnerHTML:{__html:(0,h.decode)(_)}}),P&&(0,l.jsxs)("button",{onClick:()=>D(!C),className:"flex items-center gap-1 text-h6 underline mt-1",children:[C?L("View Less"):L("View More"),(0,l.jsx)(i.J,{name:C?"chevronUp":"chevronDown",className:"w-4 h-4"})]})]})]}),g&&(0,l.jsx)(c.z,{href:g.linkUrl,variant:g.style||"primary",color:g.styleColor||"dark-grey",newTab:g.newTab,tracking:!0,dataLayer:g.eventTracking,copyCode:g.copyCode,className:x()(E()["popup-banner__link"],"font-universLtStdAdjusted"),style:{justifyContent:"center",textAlign:"center",fontSize:"14px",gap:"4px"},children:g.linkTitle})]})]})})()})},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global",{asPath:n,pathname:l}=(0,_.useRouter)(),[i,o]=(0,a.useState)(!1),[r,s]=(0,a.useState)(!1),d=(0,a.useMemo)(()=>{let n=e.identifier||e.title||"dynamic-popup";return"elgato-popup-dismissed:".concat(t,":").concat(n)},[e.identifier,e.title,t]),u=(0,a.useCallback)(()=>{try{let e=window.localStorage.getItem(d);if(!e)return!1;let t=Number(e);if(!Number.isFinite(t)||Date.now()>=t)return window.localStorage.removeItem(d),!1;return!0}catch(e){return!1}},[d]),[p,c]=(0,a.useState)(!1),[m,v]=(0,a.useState)(null),[f,x]=(0,a.useState)(!1),h=(n||l||"").split("?")[0].replace(/^\/[a-z]{2}\/[a-z]{2}/,"")||"/",y=(0,a.useMemo)(()=>{let{showOnPages:n,hideOnPages:l}=e.customOptions||{};return"global"===t?!(l&&Array.isArray(l)&&l.some(e=>{let t=String(e);if(t.includes("*")){let e=t.replace("*","");return h.startsWith(e)}return h===t||"/"===t&&/^\/[a-z]{2}\/[a-z]{2}$/.test(h)})):"pdp"===t&&(!(n&&Array.isArray(n))||!n.length||n.some(e=>{let t=String(e);if(t.includes("*")){let e=t.replace("*","");return h.startsWith(e)}return h===t||h.includes(t)}))},[h,e.customOptions,t]);return(0,a.useEffect)(()=>{s(u())},[u]),(0,a.useEffect)(()=>{if(!y){o(!1),s(u()),c(!1),v(null),x(!1);return}let{showOnPanelWithId:t,hideOnPanelWithId:n,showAfterPanelWithId:l,hideAfterPanelWithId:a}=e.customOptions||{},d=()=>
1{if(r)return;let e=document.documentElement.scrollTop,s=e+window.innerHeight/2,d=e+window.innerHeight;if(f){i&&o(!1);return}if(!p&&e<=window.innerHeight){o(!1);return}if(n&&"string"==typeof n){let t=document.getElementById(n);if(t){let n=t.offsetTop,l=t.scrollHeight;if(d>=n&&e<=n+l){o(!1);return}}}if(a&&"string"==typeof a){let e=document.getElementById(a);if(e&&s>e.offsetTop+e.scrollHeight){x(!0),o(!1);return}}if(t&&"string"==typeof t){let e=document.getElementById(t);if(e){let t=e.offsetTop,n=e.scrollHeight;if(s>=t&&s<=t+n){p||(c(!0),v("show-on")),o(!0);return}if("show-on"===m){o(!1);return}}else p||o(!1)}else if(l&&"string"==typeof l){let e=document.getElementById(l);if(e){if(s>e.offsetTop+e.scrollHeight/2){p||(c(!0),v("show-after")),o(!0);return}if(!p){o(!1);return}}else p||o(!1)}else p||(c(!0),v("default")),o(!0);p&&!f&&("show-after"===m||"default"===m)&&o(!0)};return document.addEventListener("scroll",d),d(),()=>{document.removeEventListener("scroll",d)}},[y,e.customOptions,t,r,u]),{isVisible:i&&y,handleClose:()=>{o(!1),s(!0);try{let e=Date.now()+18e5;window.localStorage.setItem(d,String(e))}catch(e){}},wasManuallyClosed:r}},M=e=>{var t,n;let{popup:o,popupType:s}=e,{isVisible:u,handleClose:p,wasManuallyClosed:c}=B(o,s),[m,v]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!1),{isMobile:h}=(0,r.X)(),y=(null===(t=o.customOptions)||void 0===t?void 0:t.horizontalPosition)||"left",_=(null===(n=o.customOptions)||void 0===n?void 0:n.verticalPosition)||"bottom";return((0,a.useEffect)(()=>{u&&!f?(x(!0),setTimeout(()=>{v(!0)},100)):u||(v(!1),x(!1))},[u,f]),u||f)?(0,l.jsx)("div",{className:(()=>{let e=[d()["popup-after-panel"]];return h?e.push(d()["popup-after-panel--bottom"]):"top"===_?e.push(d()["popup-after-panel--top"]):"center"===_?e.push(d()["popup-after-panel--center"]):e.push(d()["popup-after-panel--bottom"]),"right"===y?e.push(d()["popup-after-panel--right"]):e.push(d()["popup-after-panel--left"]),e.join(" ")})(),children:(0,l.jsxs)("div",{className:"".concat(d()["popup-container"]," ").concat(c?"":m?d()["popup-container--slide-in"]:d()["popup-container--hidden"]),style:{opacity:c?0:void 0,transform:c?(()=>{if(c)return"right"===y?"translateX(350px)":"translateX(-350px)"})():void 0},children:[(0,l.jsx)("div",{className:"absolute md:top-[16px] md:right-[16px] top-[0] right-[0] rounded-lg bg-white p-8px z-20 flex items-center justify-center cursor-pointer",onClick:p,role:"button",tabIndex:0,onKeyPress:e=>{("Enter"===e.key||" "===e.key)&&p()},"aria-label":"Close popup",children:(0,l.jsx)(i.J,{name:"close",style:{width:18,height:18}})}),(0,l.jsx)(O,{popup:o})]})}):null};var I=e=>{let{content:t}=e,{globalPopup:n=[],pdpPopup:i=[]}=t,o=[...n,...i];return o.length?(0,l.jsx)(l.Fragment,{children:o.map((e,t)=>(0,l.jsx)(M,{popup:e,popupType:n.includes(e)?"global":"pdp"},e.identifier||e.title||t))}):null};let H=e=>{let{initialData:t}=e,n=void 0!==t,{data:i}=(0,o.P)({identifier:["dynamicPopup"],contentType:"moleculeBanner",options:{level:4}},{revalidateOnFocus:!1,revalidateOnMount:!n,...n?{initialData:{data:{contentJson:t?[{identifier:"dynamicPopup",parsedEntries:t}]:[]}}}:{}}),r=[],a=[];null==i||i.forEach(e=>{var t;let n=e.parsedEntries;if(!n)return;let l=null===(t=n.customOptions)||void 0===t?void 0:t.showOnPages;Array.isArray(l)&&l.length>0&&r.push(n),"global-banner"===n.bannerType&&a.push(n)});let s=new Set,d=[];for(let e of r){let t=String(e.identifier||e.title||"");t&&s.has(t)||(t&&s.add(t),d.push({popup:e,popupType:"pdp"}))}for(let e of a){let t=String(e.identifier||e.title||"");t&&s.has(t)||(t&&s.add(t),d.push({popup:e,popupType:"global"}))}return d.length?(0,l.jsx)(l.Fragment,{children:d.map((e,t)=>{let{popup:n,popupType:i}=e;return(0,l.jsx)(M,{popup:n,popupType:i},n.identifier||n.title||"cross-".concat(t))})}):null}},16078:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var l=n(85893),i=n(29441),o=n(70723),r=n(87987),a=n(79841);let s=e=>{let{onClick:t,isOutOfStock:n,linkTitle:s}=e,{t:d}=(0,a.$G)(["common"]),{isMobile:u}=(0,r.X)();return(0,l.jsx)(o.z,{variant:"primary",iconAlignment:"right",color:"blue",onClick:t,disabled:n,style:{paddingTop:u?10:12,paddingBottom:u?10:12,paddingLeft:u?12:16,paddingRight:u?12:16,borderRadius:6,minHeight:u?22:34,flex:1,justifyContent:"center"},className:"flex items-center justify-center",children:(0,l.jsxs)("span",{className:"flex items-center gap-4px",style:{fontSize:14,fontWeight:400},children:[n?d("Out of Stock"):s||d("Buy Now"),(0,l.jsx)(i.J,{name:"cart",className:"w-4 h-4"})]})})}},99213:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var l=n(3727),i=n(65643),o=n(34995);let r=e=>{let{addToCart:t}=(0,i.t)(),{openSidebar:n,openCartToast:r}=(0,l.l8)(),{product:a,...s}=(0,o.f)({sku:e},{},{}),d=async()=>{var e,i,o,s,d;if(!a)return;let u=await t([{sku:a.sku,uid:a.uid,quantity:1,max_quantity:a.max_allowed_quantity,bundle_and_save_items:(null==a?void 0:a.elgato_bundle_and_save_skus)||[],deliver_by:(null==a?void 0:a.deliverBy)||0,excluded_delivery_dates:(null==a?void 0:a.excludedDeliveryDate)?null==a?void 0:a.excludedDeliveryDate.join("-"):""}],[a]),p=null!==(d=null==u?void 0:null===(i=u.errors)||void 0===i?void 0:null===(e=i[0])||void 0===e?void 0:e.message)&&void 0!==d?d:null==u?void 0:null===(s=u.user_errors)||void 0===s?void 0:null===(o=s[0])||void 0===o?void 0:o.message;n(),p&&setTimeout(()=>r(p,l.pC.Warning),300)};return{product:a,addProductToCart:d,...s}}},316:function(e){e.exports={"popup-after-panel":"DynamicPopup_popup-after-panel__39GaM","popup-after-panel--top":"DynamicPopup_popup-after-panel--top__qQTdD","popup-after-panel--center":"DynamicPopup_popup-after-panel--center__NBOCH","popup-after-panel--bottom":"DynamicPopup_popup-after-panel--bottom__esnoX","popup-after-panel--left":"DynamicPopup_popup-after-panel--left__oDCt1","popup-after-panel--right":"DynamicPopup_popup-after-panel--right__XT8fy","popup-container":"DynamicPopup_popup-container__GArVA","popup-container--slide-in":"DynamicPopup_popup-container--slide-in__XcOZo","popup-container--hidden":"DynamicPopup_popup-container--hidden__esYWQ"}},1307:function(e){e.exports={"popup-banner":"PopupBanner_popup-banner__19WFJ","popup-banner__content":"PopupBanner_popup-banner__content__qi1wV","popup-banner__headline":"PopupBanner_popup-banner__headline__BryTL","popup-banner__text":"PopupBanner_popup-banner__text__lk5XK","popup-banner__link":"PopupBanner_popup-banner__link__wmXdp","popup-banner__live-badge":"PopupBanner_popup-banner__live-badge__LdO2_"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.