1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9728],{39728:(t,e,l)=>{l.r(e),l.d(e,{default:()=>g});var i=l(20294),s=l(37876),n=l(14678),c=l(14232),a=l(37127),d=l(80481),o=l(4188),r=l(56472),p=l(67457),u=l(45489),x=l(80965),_=l(38841),m=l(20832),h=l(63067);let g=function(t){var e,l,g,v,j=function(){navigator.clipboard.writeText(S.code),n.y8.success({text:"Copied to clipboard"})},b=function(t){O({code:t,isOpen:!0})},f=function(){O({code:null,isOpen:!1})},N=(0,i._)((0,r.Bd)(d.u_),1)[0],w=null==(e=t.campaign)?void 0:e.attributes,y=w.hero,C=w.how,S=w.externalCoupon,k=w.videos,$=w.campaignProductSectionList||w.productSectionList,A=w.internalCoupon,z=w.expandableBanners,L=!!(null==C?void 0:C.image)||!!(null==C?void 0:C.content),R=(0,i._)((0,c.useState)(null),2),I=R[0],O=R[1];return(0,s.jsxs)(a.cK,{children:[(0,s.jsxs)("div",{className:"_pdbt-64px _bgcl-neutral-50",children:[(0,s.jsx)("section",{className:"_bgs-cv _bgpst-ct _dp-f _jtfct-ct _alit-ct _tal-ct _mgbt-32px",style:{height:400,backgroundImage:"url(".concat((0,o.n$)(y.image.data.attributes.url),")")},children:(0,s.jsxs)("div",{className:"_cl-text-invert-100 lo-12 _gg-24px _jtfit-ct",children:[!!(null==y||null==(l=y.icon)?void 0:l.data)&&(0,s.jsx)("img",{src:(0,o.n$)(y.icon.data.attributes.url),alt:y.title}),(0,s.jsx)("h1",{className:"_fs-1000 _lh-125pct",style:{maxWidth:800},children:y.title}),(0,s.jsx)("p",{className:"_ffml-secondary _fs-600 _fw-600",children:y.description})]})}),L&&(0,s.jsx)("section",{className:"lo-container _bgcl-neutral-50 _pst-rlt _zid-1 _pdt-32px _pdbt-32px",children:(0,s.jsxs)("div",{className:"_bdrd-8px _ovf-hd",style:{boxShadow:"var(--bsd-100)"},children:[(null==C||null==(g=C.image)?void 0:g.data)&&(0,s.jsx)("img",{src:(0,o.n$)(C.image.data.attributes.url),alt:"How",width:"100%"}),C.image.data&&C.content&&(0,s.jsx)("hr",{}),C.content&&(0,s.jsx)("div",{className:"_pdh-24px _pdv-32px _bgcl-white-100",children:(0,s.jsx)(n.n9,{children:C.content})})]})}),!!S&&(0,s.jsx)("section",{className:"lo-container _bgcl-neutral-50 _pst-rlt _zid-1 _pdt-32px _pdbt-32px",children:(0,s.jsxs)("div",{className:"lo-12 _gg-16px",children:[S.title&&(0,s.jsx)("h2",{className:"_fs-800 _fw-600 _tal-ct",children:S.title}),S.description&&(0,s.jsx)("div",{className:"_fs-600 _fw-600 _cl-text-default-200 _tal-ct",children:S.description}),S.code&&S.image&&(0,s.jsxs)("div",{className:"_dp-f _w-100pct _mgt-12px",style:{gridTemplateColumns:"1fr max-content",aspectRatio:"389 / 64"},children:[(0,s.jsx)("div",{style:{aspectRatio:"325 / 64",flex:325},children:(0,s.jsx)("img",{src:(0,o.n$)(S.image.data.attributes.url),className:"_w-100pct",alt:"Coupon"})}),(0,s.jsxs)(n.$n,{style:{aspectRatio:"1 / 1",flex:64,borderLeftStyle:"dashed",borderWidth:3},className:"_bdrd-8px",onClick:function(){return j()},children:[(0,s.jsx)("span",{children:N("dynamic.external-coupon.button.copy-code")}),(0,s.jsx)("span",{className:"_w-24px _mgl-8px",children:(0,s.jsx)("i",{className:"fa-regular fa-copy"})})]})]}),S.terms&&(0,s.jsx)("div",{className:"_pdh-24px _pdv-32px _bgcl-white-100 _bdrd-8px",style:{boxShadow:"var(--bsd-100)"},children:(0,s.jsx)(n.n9,{children:S.terms})})]})}),(null==A?void 0:A.title)&&(0,s.jsx)("section",{className:"lo-container _bgcl-neutral-50 _pst-rlt _zid-1 _pdt-48px _pdbt-48px",children:(0,s.jsx)("div",{className:"lo-12 _gg-32px",children:(0,s.jsx)(x.A,{title:A.title,description:A.description,coupons:A.coupons,prefixSlug:"campaign"})})}),!!(null==k?void 0:k.length)&&(0,s.jsx)("section",{className:"lo-container _bgcl-neutral-50 _pst-rlt _zid-1 _pdt-32px _pdbt-32px",children:(0,s.jsx)("div",{className:"lo-12 _gg-32px",children:(0,s.jsx)(h.A,{videos:k,onClickViewVideo:function(t){return b(t)}})})}),$&&(0,s.jsx)("section",{className:"_bgcl-neutral-50 _pst-rlt _zid-1 _pdt-32px _pdbt-32px",children:(0,s.jsxs)("div",{className:"lo-12 _gg-16px",children:[(0,s.jsx)("div",{className:"lo-container",children:(null==$?void 0:$.image)&&(0,s.jsx)(u.A,{imageURL:"".concat((0,o.n$)(null==$?void 0:$.image.data.attributes.url)),title:null==$?void 0:$.title,description:null==$?void 0:$.description})}),(0,s.jsx)("div",{className:"lo-container",children:null==(v=(null==$?void 0:$.campaignProductSectionItems)||(null==$?void 0:$.productSectionItems)||[])?void 0:v.map(function(t,e){return(0,s.jsx)(m.A,{section:t,partnershipSlug:w.slug},e)})})]})}),(null==z?void 0:z.length)>0&&(0,s.jsx)("div",{className:"lo-container",children:(0,s.jsx)("div",{className:"lo-12 _g-32px",children:null==z?void 0:z.map(function(t,e){return(0,s.jsx)(p.A,{title:t.title,imageURL:"".concat((0,o.n$)(t.image.data.attributes.url)),content:t.content,url:t.url},e)})})})]}),(0,s.jsx)(_.A,{youtubeCode:null==I?void 0:I.code,isShowModal:null==I?void 0:I.isOpen,onClickClose:function(){return f()}})]})}}}]);
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.