1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3947],{27631:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var l=n(37876),o=n(14232),i=n(89099),s=n(13856),c=n(89788),r=n.n(c);let a=e=>{let{content:t,options:n,isVisible:c,handlegiftCard:a}=e,{locale:u}=(0,i.useRouter)(),{paymentIcons:d,selectProductLabel:m,selectServiceLabel:_,checkoutLabel:h,shopNowLabel:v,shopNowUrl:p}=t,{cartItems:g,stickyFooterStep:x,stickyActionRef:C}=n||{},f="".concat("https://my.canary.is").concat(s.AU[u]),w=g>0,[y,j]=(0,o.useState)(0);(0,o.useEffect)(()=>{!(y>1)&&c&&j(y+1)},[c,y]);let N=()=>{window.location="".concat(f,"/shopping-cart")},k=()=>{window.location=f},b=()=>{p?window.location=p:window.location="/".concat(u,"/products")},A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="checkout"===e||"shopNow"===e&&w;return(0,l.jsx)("button",{type:"button",className:t,onClick:o?N:"upgrade"!==e||w?"shopNow"===e?b:"buyGiftCard"===e?a:()=>{(null==n?void 0:n.current)&&(null==n||n.current.scrollIntoView({behavior:"smooth"}))}:k,children:(0,l.jsx)("span",{children:{selectProduct:m||"Select Your Camera",selectService:_||"Select Your Service Plan",checkout:h||"Checkout",shopNow:v||"Shop Now",upgrade:"Upgrade Now",buyGiftCard:"Buy Now"}[e]})})};return!x||y<2?null:(0,l.jsxs)("div",{className:c?r().stickyFooter:r().stickyFooterFadeOut,children:[d&&(0,l.jsx)("div",{className:r().paymentIcons,children:d.map(e=>(0,l.jsx)("span",{className:r().paymentIcon,children:(0,l.jsx)("img",{src:(0,s.sU)(e),alt:e.altText||""})},e._key))}),(0,l.jsxs)("div",{className:r().ctaButtons,children:[("selectProduct"===x||"selectService"===x)&&A(x,w?"ctaButton-outline-md":"ctaButton-md",C),"upgrade"===x&&!w&&A("upgrade","ctaButton-md"),(w||"checkout"===x)&&A("checkout","ctaButton-md"),"shopNow"===x&&!w&&A("shopNow","ctaButton-md"),"buyGiftCard"===x&&A("buyGiftCard","ctaButton-md")]})]})}},60879:(e,t,n)=>{"use strict";n.d(t,{Du:()=>i,b2:()=>s,gJ:()=>c});var l=n(14232),o=n(97301);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null,i=null,s=null,c=null,r=null,[a,u]=(0,l.useState)(!1),[d,m]=(0,l.useState)(null),[_,h]=(0,l.useState)(null),v=(0,l.useRef)(null),p=(0,l.useRef)(null),g=[(0,l.useRef)(null),(0,l.useRef)(null),(0,l.useRef)(null)];e?([c,n,i]=g,r={showStickyFooter:a,scrollRefs:(0,l.useRef)({productTabRef:c,detailsRef:n,servicesRef:i,productAnchorRef:v,serviceAnchorRef:p}),stickyFooterStep:d,stickyActionRef:_}):([n,i,s]=g,r={showStickyFooter:a,detailsRef:n,servicesRef:i,outOfViewRef:s});let x=(0,o.A)({sectionElementRefs:g}),C=(0,l.useCallback)(()=>{if(!(null==c?void 0:c.current))return;let e=(e=>{let t=e.getBoundingClientRect(),n=window.innerWidth||document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight,o=(e,t)=>document.elementFromPoint(e,t);return!(t.right<0)&&!(t.bottom<0)&&!(t.left>n)&&!(t.top>l)&&(e.contains(o(t.left,t.top))||e.contains(o(t.right,t.top))||e.contains(o(t.right,t.bottom))||e.contains(o(t.left,t.bottom)))})(null==c?void 0:c.current);e&&u(!1),!e&&null===t&&x>0&&u(!0)},[t,x]),f=(e,t,n)=>{m(e),h(n),u(t)};return(0,l.useEffect)(()=>{if(e)return(0===x||1===x&&null!==t)&&u(!1),x>0&&null===t&&f("selectProduct",!0,v),x>1&&null!==t&&f("selectService",!0,p),window.addEventListener("scroll",C),()=>{window.removeEventListener("scroll",C)}},[x,e]),(0,l.useEffect)(()=>{!e&&(1===x&&u(!1),x>1&&u(!0))},[x,e]),r},s=()=>{let[e,t]=(0,l.useState)(!1),[n,o]=(0,l.useState)(null),i=(e,t)=>{let{key:n,sub:l}=e;window[n]?l?window[n][l]?t():setTimeout(()=>{i({key:n,sub:l},t)},100):t():setTimeout(()=>{i({key:n,sub:l},t)},100)},s=()=>{var e,n,l;let i=null==(l=document)||null==(n=l.body)||null==(e=n.classList)?void 0:e.contains("showBanner"),s=document.getElementById("iubenda-cs-banner");t(!i||!s),o(s)},c=e=>{let{className:n}=e.target;n.includes("iubenda-cs-btn-primary")&&setTimeout(()=>{t(!0)},200)};return(0,l.useEffect)(()=>{i({key:"_iub",sub:"cs"},s)},[]),(0,l.useEffect)(()=>{if(n)return n.addEventListener("click",c),()=>{n.removeEventListener("click",c)}},[n]),e},c=(e,t,n)=>{let l=(null==e?void 0:e.length)||0,o=l?null==e?void 0:e.split(/\r\n|\r|\n/).length:0,i=l?n-(e=>{var t;return e?null==(t=e.match(/(?:[^\r\n]|\r(?!\n))/g))?void 0:t.length:0})(e):n,s=l?t-o:t,c=Math.round(n/t);return{linesCountDown:s,charsCountDown:(()=>{let e=c*(o-1);return s<0?0:Number.isNaN(i)?n-e:i})(),computeValue:l=>{var o;if(!t||!n)return l;let i=l,r=i.split(/\r\n|\r|\n/),a=(null==(o=e.match(RegExp(".{1,".concat(c,"}"),"g")))?void 0:o.length)||0;if(a>t&&r.splice(t,a-t),0===s){let e=r.length-1;r[e]=r[e].slice(0,c)}return r?r.join("\r\n"):i}}}},78464:e=>{e.exports={complexContainer:"UniversalCenterAligned_complexContainer__c7OLL",simpleContainer:"UniversalCenterAligned_simpleContainer___PTEX",complexIconsContainer:"UniversalCenterAligned_complexIconsContainer__cKQjG",title:"UniversalCenterAligned_title__O8xGE",headline:"UniversalCenterAligned_headline__Q4o7G",subHeadline:"UniversalCenterAligned_subHeadline__7NU1J",description:"UniversalCenterAligned_description__E4i_A",footnote:"UniversalCenterAligned_footnote__Ov
1V1P",noTitle:"UniversalCenterAligned_noTitle__2VACt",noSubHeadline:"UniversalCenterAligned_noSubHeadline__sF6bu",logoContainer:"UniversalCenterAligned_logoContainer__B5wnD",logo:"UniversalCenterAligned_logo__CmGc5",quote:"UniversalCenterAligned_quote__2iVqu",author:"UniversalCenterAligned_author__6WWjh"}},82235:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var l=n(37876),o=n(21531),i=n(13856),s=n(78464),c=n.n(s);let r=e=>{let{content:t}=e,{styleOption:n,title:s,headline:r,subHeadline:a,description:u,images:d,footnote:m,quote:_,quoteAuthor:h,bgColor:v}=t,p=(0,i.ZZ)(s)||(0,i.ZZ)(r)||(0,i.ZZ)(a)||(0,i.ZZ)(u)||d||(0,i.ZZ)(m)||(0,i.ZZ)(h),g=e=>(0,l.jsx)("div",{children:(0,l.jsx)("img",{className:c().logo,src:(0,i.sU)(e.image),alt:e.image.altText||""})},e._key);return p?"complex"===n||"complexIcons"===n?(e=>(0,l.jsxs)("section",{className:"".concat(c()["complexIcons"===e?"complexIconsContainer":"complexContainer"]," ").concat(s?c().noTitle:""),style:(0,i.EQ)(null,v),children:[(0,l.jsxs)("div",{className:c().textContent,children:[s&&(0,l.jsx)("div",{className:c().title,children:(0,l.jsx)(o.A,{content:s})}),r&&(0,l.jsx)("div",{className:c().headline,children:(0,l.jsx)(o.A,{content:r})}),a&&(0,l.jsx)("div",{className:c().subHeadline,children:(0,l.jsx)(o.A,{content:a})}),u&&(0,l.jsx)("div",{className:"".concat(c().description," ").concat(a?"":c().noSubHeadline),children:(0,l.jsx)(o.A,{content:u})})]}),d&&(0,l.jsx)("div",{className:c().imageContainer,children:(0,l.jsx)("div",{className:c().logoContainer,children:d.map(e=>(e=>e.imgUrl?(0,l.jsx)("a",{href:e.imgUrl,children:g(e)},e._key):g(e))(e))})}),"complexIcons"===e&&m&&(0,l.jsx)("div",{className:c().footnote,children:(0,l.jsx)(o.A,{content:m})})]}))(n):(0,l.jsxs)("section",{className:c().simpleContainer,style:(0,i.EQ)(null,v),children:[_&&(0,l.jsx)("div",{className:c().quote,children:(0,l.jsx)(o.A,{content:_})}),h&&(0,l.jsx)("div",{className:c().author,children:(0,l.jsx)(o.A,{content:h})})]}):null}},89788:e=>{e.exports={stickyFooter:"StickyFooter_stickyFooter__7XBkT",stickyFooterFadeOut:"StickyFooter_stickyFooterFadeOut__idYBY",slideIn:"StickyFooter_slideIn___OU5e",slideOut:"StickyFooter_slideOut__4YviX",paymentIcons:"StickyFooter_paymentIcons__wc9oP",ctaButtons:"StickyFooter_ctaButtons__wJ83q",paymentIcon:"StickyFooter_paymentIcon__C5YWM"}}}]);
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.