1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="bc36b906-990b-4739-9531-ab0a2a721606",e._sentryDebugIdIdentifier="sentry-dbid-bc36b906-990b-4739-9531-ab0a2a721606")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{653:(e,a,t)=>{"use strict";t.d(a,{F:()=>d});var s=t(37876),i=t(14232),n=t(11079),r=t(87240),l=t(2361),o=t.n(l);let d=e=>{let{children:a,onPageChange:t,onScroll:l,additionalClasses:d}=e,c=(0,i.useRef)(null),[u,p]=(0,i.useState)(0);(0,i.useEffect)(()=>{var e;let a=e=>{if(!(e.target instanceof HTMLDivElement))return;let a=e.target,s=a.children.length,i=Math.round(a.scrollLeft/(a.scrollWidth/s));null==t||t(i),p(i)};return null==(e=c.current)||e.addEventListener("scroll",a),()=>{var e;return null==(e=c.current)?void 0:e.removeEventListener("scroll",a)}},[]);let m=i.Children.toArray(a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:c,className:(0,n.lM)(o().carousel,null==d?void 0:d.carousel),onScroll:l,children:i.Children.map(m,(e,a)=>(0,s.jsx)("div",{className:o().carouselItem,children:e},a))}),(0,s.jsx)(r.d,{className:(0,n.lM)(o().pageIndicator,null==d?void 0:d.pageIndicator),currentPage:u,numberOfPages:i.Children.count(m),additionalClasses:{activePageIndication:null==d?void 0:d.activePageIndication},"data-sentry-element":"PageIndicator","data-sentry-source-file":"carousel.tsx"})]})}},1319:(e,a,t)=>{"use strict";t.d(a,{bh:()=>i,mG:()=>n,oH:()=>l,sF:()=>r});var s=t(91785);let i=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"".concat(a.join(" | ")).concat(a.length>0?" | ":"","TouchNote").concat("us"!==e?" ".concat(e.toUpperCase()):"")},n=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"".concat(i(e,a)," | ").concat((0,s.ol)(e,!0)," Cards, Greeting Cards, Postcards & More")},r=e=>
1"Share life's happy moments & surprise loved ones with ".concat((0,s.ol)(e)," cards, birthday cards, greeting cards & more with Touchnote. Download the app today."),l=(e,a)=>e.map((e,t)=>{var s;return{position:t+1,name:e.displayName,item:"https://touchnote.com"+((null==(s=e.link)?void 0:s.split("/").includes(a))?"":"/".concat(a))+e.link}})},2361:e=>{e.exports={carousel:"carousel_carousel__YxcZe",carouselItem:"carousel_carouselItem__DrUpo",pageIndicator:"carousel_pageIndicator__8bxys"}},3502:(e,a,t)=>{"use strict";t.d(a,{L2:()=>r,PS:()=>l,am:()=>o});var s=t(14232),i=t(84408);let n={ROYAL_MAIL_1ST_CLASS:"Royal Mail, 1st Class",USPS_1ST_CLASS:"USPS, 1st Class",DEUTSCHE_POST_1ST_CLASS:"Deutsche Post, 1st Class",AUSTRALIA_POST_1ST_CLASS:"Australia Post, 1st Class","1ST_CLASS_POSTAL_SERVICES":"1st Class Postal Services"},r=n["1ST_CLASS_POSTAL_SERVICES"],l=e=>{var a;if(null==e||null==e.deliveryDate)return null;let{deliveryDate:t,inProductText:s,postalService:l}=e;return{postalServiceName:null!=(a=n[l])?a:r,deliveryEstimateText:(0,i.i)(s,t)}},o=e=>(0,s.useMemo)(()=>l(e),[e])},14038:(e,a,t)=>{"use strict";t.d(a,{E:()=>i});var s=t(48936);let i=()=>{let[e,a]=(0,s.F)("pdpDetails");return{pdpDetails:e,setPDPDetails:a}}},18563:e=>{e.exports={container:"gift-details-modal_container__V26ju",carousel:"gift-details-modal_carousel__Hqxyh",mobileImageStage:"gift-details-modal_mobileImageStage__EGKMs",mobileThumbnailStage:"gift-details-modal_mobileThumbnailStage__O3g_p",saleFlyer:"gift-details-modal_saleFlyer__rz1t_",saleFlyerMobile:"gift-details-modal_saleFlyerMobile__tz0WH",thumbnail:"gift-details-modal_thumbnail__uclDR",imageContainer:"gift-details-modal_imageContainer__EN_KR",imageStage:"gift-details-modal_imageStage__iCF44",largeImage:"gift-details-modal_largeImage__Nzso3",thumbnailsContainer:"gift-details-modal_thumbnailsContainer__2tF6S",selectedThumbnail:"gift-details-modal_selectedThumbnail__vUL2A",textInfosContainer:"gift-details-modal_textInfosContainer__WC4NG",semiTitle:"gift-details-modal_semiTitle__j_Io0",title:"gift-details-modal_title__RXtGD",price:"gift-details-modal_price__kEVuk",sale:"gift-details-modal_sale__6vtiS",originalPrice:"gift-details-modal_originalPrice__QjOot",info:"gift-details-modal_info__0C0kq",productDetails:"gift-details-modal_productDetails__b6zcy",collapsibleContainer:"gift-details-modal_collapsibleContainer__Xbb_E",closeButton:"gift-details-modal_closeButton___jTtJ",hide:"gift-details-modal_hide__Z_B3E"}},19756:e=>{e.exports={layout:"_id__layout__6tqLm",bannerIcon:"_id__bannerIcon__UtURY",breadCrumbContainer:"_id__breadCrumbContainer__k5dFg",cardDetails:"_id__cardDetails__mh3Ny",thumbnailCarousel:"_id__thumbnailCarousel__bw13v",activePageIndication:"_id__activePageIndication__Fmrlw",carouselPageIndicator:"_id__carouselPageIndicator__znM3J",deliveryTagContainer:"_id__deliveryTagContainer__Rv7x_",deliveryTag:"_id__deliveryTag__Fako0",deliveryTagIcon:"_id__deliveryTagIcon__lm1za",previews:"_id__previews__bsn7t",heroImage:"_id__heroImage__tJEF6",thumbnailsContainer:"_id__thumbnailsContainer__PkqfR",portraitThumbnail:"_id__portraitThumbnail__NZVGf",landscapeThumbnail:"_id__landscapeThumbnail__E4jLp",isSelectedOrientation:"_id__isSelectedOrientation__VxSQm",cardPreview:"_id__cardPreview__8og5T",cardImage:"_id__cardImage__U98TU",envelopeImage:"_id__envelopeImage__t8ZsH",printedLocallyBanner:"_id__printedLocallyBanner__V15ja",printedLocallyIconWrap:"_id__printedLocallyIconWrap__AwSrj",printedLocallyIcon:"_id__printedLocallyIcon__mqcgk",printedLocallyText:"_id__printedLocallyText__ujh9q",printedLocallyHeadline:"_id__printedLocallyHeadline___aDwW",printedLocallyDescription:"_id__printedLocallyDescription__JArIq",bannerAndBenefitsContainer:"_id__bannerAndBenefitsContainer__OIS_T",collapsibleInfos:"_id__collapsibleInfos__qZm9N",cardDescription:"_id__cardDescription__8eqXe",cardDeliveryInfo:"_id__cardDeliveryInfo__IvPW5",cardInfo:"_id__cardInfo___1PUE",creditInfo:"_id__creditInfo__mD_wz",creditInfoText:"_id__creditInfoText__zxZ6l",findOutMoreText:"_id__findOutMoreText__cgD4X",creditIcon:"_id__creditIcon__8RlX7",cardType:"_id__
1cardType__faLb9",productSelectionContainer:"_id__productSelectionContainer__gvWbP",postcardIcon:"_id__postcardIcon__wi3Iu",cardSelections:"_id__cardSelections__4XlxL",personaliseButtonContainer:"_id__personaliseButtonContainer__BIfPg",trustpilotContainer:"_id__trustpilotContainer__Kx07h",stickyButton:"_id__stickyButton__b4nzV",stickyPersonaliseBarIn:"_id__stickyPersonaliseBarIn__HeAhU",personaliseButton:"_id__personaliseButton__3xUYB",themeSliderInnerContainer:"_id__themeSliderInnerContainer__EY8Fd",trustpilotWidget:"_id__trustpilotWidget__DGAUh",containLeft:"_id__containLeft__TTQCT"}},27228:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(14232),i=t(8666),n=t(86189),r=t(43715);let l=e=>{let{ctx:a}=(0,n._8)(),{locale:t}=(0,r.Y)(),{data:l,isFetching:o,fetchNextPage:d,hasNextPage:c}=(0,i.Zj)(a,t,e);(0,s.useEffect)(()=>{c&&d()},[c]);let{pages:u}=null!=l?l:{},p=!a||o&&void 0===l;return{allGifts:u,isFetchingGifts:o,isGiftsListLoading:p}}},32442:(e,a,t)=>{"use strict";t.d(a,{p:()=>g});var s=t(37876),i=t(85172),n=t(34820),r=t(14232),l=t(11079),o=t(87240),d=t(72903),c=t(34439),u=t.n(c);let p=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.K,{onClick:e.onPrevButtonClick,disabled:e.prevBtnDisabled,className:u().slideLeft,"data-sentry-element":"IconButton","data-sentry-source-file":"carousel-arrow-buttons.tsx",children:(0,s.jsx)("img",{src:e.prevBtnDisabled?"/assets/icons/chevron-small-left-grey.svg":"/assets/icons/chevron-small-left.svg",alt:"left chevron",width:24,height:24})}),(0,s.jsx)(d.K,{onClick:e.onNextButtonClick,disabled:e.nextBtnDisabled,className:u().slideRight,"data-sentry-element":"IconButton","data-sentry-source-file":"carousel-arrow-buttons.tsx",children:(0,s.jsx)("img",{src:e.nextBtnDisabled?"/assets/icons/chevron-small-right-grey.svg":"/assets/icons/chevron-small-right.svg",alt:"right chevron",width:24,height:24})})]});var m=t(80063),h=t.n(m);let g=e=>{var a,t,d;let c={loop:!!e.isLoop},u=[(0,i.A)({playOnInit:!!e.isAutoScroll,delay:4e3})],[m,g]=(0,n.A)(c,u),{currentPage:_,numberOfPages:y,onIndicatorClick:f}=(e=>{let[a,t]=(0,r.useState)(0),[s,i]=(0,r.useState)([]),n=(0,r.useCallback)(a=>{e&&e.scrollTo(a)},[e]),l=(0,r.useCallback)(e=>{i(e.scrollSnapList())},[]),o=(0,r.useCallback)(e=>{t(e.selectedScrollSnap())},[]);return(0,r.useEffect)(()=>{e&&(l(e),o(e),e.on("reInit",l).on("reInit",o).on("select",o))},[e,l,o]),{currentPage:a,numberOfPages:s.length,onIndicatorClick:n}})(g),{prevBtnDisabled:v,nextBtnDisabled:x,onPrevButtonClick:C,onNextButtonClick:b}=(e=>{let[a,t]=(0,r.useState)(!0),[s,i]=(0,r.useState)(!0),n=(0,r.useCallback)(()=>{e&&e.scrollPrev()},[e]),l=(0,r.useCallback)(()=>{e&&e.scrollNext()},[e]),o=(0,r.useCallback)(e=>{t(!e.canScrollPrev()),i(!e.canScrollNext())},[]);return(0,r.useEffect)(()=>{e&&(o(e),e.on("reInit",o).on("select",o))},[e,o]),{prevBtnDisabled:a,nextBtnDisabled:s,onPrevButtonClick:n,onNextButtonClick:l}})(g);!function(e,a){(0,r.useEffect)(()=>{let t=t=>{switch(t.key){case"ArrowLeft":e();break;case"ArrowRight":a()}};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e,a])}(C,b);let w=1===e.slides.length;return(0,s.jsxs)("section",{className:(0,l.lM)(h().carouselV2Container,null==(a=e.additionalClasses)?void 0:a.container),"data-sentry-component":"CarouselV2","data-sentry-source-file":"carousel-v2.tsx",children:[(0,s.jsxs)("div",{className:h().viewport,ref:m,children:[(0,s.jsx)("div",{className:h().container,children:e.slides.map((e,a)=>(0,s.jsx)("div",{className:h().slide,children:(0,s.jsx)("div",{className:h().slideElem,children:e})},a))}),(0,s.jsx)("div",{className:(0,l.lM)(h().buttons,(w||e.hideArrows)&&h().hide),children:(0,s.jsx)(p,{onNextButtonClick:b,onPrevButtonClick:C,prevBtnDisabled:v,nextBtnDisabled:x,"data-sentry-element":"CarouselArrowButtons","data-sentry-source-file":"carousel-v2.tsx"})})]}),(0,s.jsx)(o.d,{currentPage:_,numberOfPages:y,className:(0,l.lM)(h().pageIndicator,null==(t=e.additionalClasses)?void 0:t.pageIndicator,w&&h().hide),onPageClick:f,additionalClasses:{activePageIndication:null==(d=e.additionalClasses)?void 0:d.activePageIndication},"data-sentry-element":"PageIndicator","data-sentry-source-file":"carousel-v2.tsx"})]})}},34439:e=>{e.exports={slideLeft:"carousel-arrow-buttons_slideLeft__aumr7",slideRight:"carousel-arrow-buttons_slideRight__trLBI"}},39654:e=>{e.exports={giftsSection:"gifts_giftsSection__068L5",heading:"gifts_heading__BRCaJ",giftPerCardText:"gifts_giftPerCardText__fNFAg",giftInfo:"gifts_giftInfo__WEbQ4",imageAndName:"gifts_imageAndName__EO9cF",image:"gifts_image__x_cT9",name:"gifts_name__K3MCH",seeMoreDetails:"gifts_seeMoreDetails__U_sFd",priceAndRadioButton:"gifts_priceAndRadioButton__CgNG7",price:"gifts_price__74nM4",radioSelection:"gifts_radioSelection__r_dZP",giftDescription:"gifts_giftDescription__JrAPm"}},45988:(e,a,t)=>{"use strict";t.d(a,{y:()=>y});var s=t(37876),i=t(14232),n=t(38112),r=t(23895),l=t(653),o=t(53633),d=t(17825),c=t(41591),u=t(43715),p=t(11079),m=t(37581),h=t(18563),g=t.n(h);let _=e=>{let{children:a,isOpen:t,close:i}=e,{isMobile:r}=(0,c.Ln)();return r?(0,s.jsx)(n.J,{isOpen:t,closeDrawer:i,"data-sentry-element":"BottomDrawer","data-sentry-component":"ViewportSpecificContainer","data-sentry-source-file":"gift-details-modal.tsx",children:a}):(0,s.jsx)(d.a,{shouldStyle:!1,isOpen:t,closeModal:i,"data-sentry-element":"Modal","data-sentry-component":"ViewportSpecificContainer","data-sentry-source-file":"gift-details-modal.tsx",children:a})},y=e=>{var a,t,n;let{isMobile:d}=(0,c.Ln)(),{currencyCode:h}=(0,u.Y)(),{imageGallery:y,semiTitle:f,title:v,price:x,salePrice:C,description:b}=null!=(n=null==(t=e.gift)||null==(a=t.giftVariant)?void 0:a.at(0))?n:{},w=void 0!==C&&C>0,[j,S]=(0,i.useState)(null),[I,P]=(0,i.useState)(!1);(0,i.useEffect)(()=>{(null==y?void 0:y.at(0))&&S(y.at(0))},[y]);let N=(null==y?void 0:y.length)?y.map((e,a)=>{let t=(0,s.jsx)("img",{role:"presentation",className:(0,p.lM)(g().thumbnail,j===e&&g().selectedThumbnail),src:e,width:83,height:83,alt:"gift thumbnail image-".concat(a),onClick:()=>S(e)},"thumbnail-image-".concat(a));
1return d&&w?(0,s.jsxs)("div",{className:g().mobileThumbnailStage,children:[t,(0,s.jsx)("span",{className:(0,p.lM)(g().saleFlyer,g().saleFlyerMobile),"aria-hidden":"true",children:"SALE"})]},"thumbnail-sale-".concat(a)):t}):null;return(0,s.jsx)(_,{isOpen:e.isOpen,close:e.onClose,"data-sentry-element":"ViewportSpecificContainer","data-sentry-component":"GiftDetailsModal","data-sentry-source-file":"gift-details-modal.tsx",children:(0,s.jsxs)("div",{className:g().container,children:[d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.J,{className:g().closeButton,onClick:e.onClose}),(0,s.jsx)("div",{className:g().mobileImageStage,children:(0,s.jsx)(l.F,{additionalClasses:{carousel:g().carousel},children:N})})]}):(0,s.jsxs)("div",{className:g().imageContainer,children:[(0,s.jsxs)("div",{className:g().imageStage,children:[(0,s.jsx)("img",{className:g().largeImage,src:null!=j?j:"",width:500,height:500,alt:"gift large view"}),w&&(0,s.jsx)("span",{className:g().saleFlyer,"aria-hidden":"true",children:"SALE"})]}),(0,s.jsx)("div",{className:g().thumbnailsContainer,children:N})]}),(0,s.jsxs)("div",{className:g().textInfosContainer,children:[(0,s.jsx)(r.J,{className:(0,p.lM)(g().closeButton,d&&g().hide),onClick:e.onClose,"data-sentry-element":"CloseButton","data-sentry-source-file":"gift-details-modal.tsx"}),(0,s.jsx)("p",{className:g().semiTitle,children:f}),(0,s.jsx)("p",{className:g().title,children:v}),(0,s.jsx)("p",{className:g().price,children:C&&C>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:g().sale,children:(0,m.AZ)(C,h)}),x?(0,s.jsx)("span",{className:g().originalPrice,children:(0,m.AZ)(x,h)}):null]}):x?(0,m.AZ)(x,h):""}),(0,s.jsx)("div",{className:g().collapsibleContainer,children:(0,s.jsx)(o.K,{heading:"Product Details",isOpen:I,onExpand:()=>P(!I),"data-sentry-element":"CollapsibleView","data-sentry-source-file":"gift-details-modal.tsx",children:(0,s.jsx)("p",{className:g().productDetails,dangerouslySetInnerHTML:{__html:b||"<p>Not Available</p>"}})})})]})]})})}},48336:e=>{e.exports={container:"card-pack-selector_container__a_GTx",active:"card-pack-selector_active__1sJui",cardPackSelector:"card-pack-selector_cardPackSelector__UIUCC",icon:"card-pack-selector_icon__so7lJ",infos:"card-pack-selector_infos__wsMJj",title:"card-pack-selector_title__Ib0Xr",subTitle:"card-pack-selector_subTitle__z7fkY",priceContainer:"card-pack-selector_priceContainer__zK6v2",monetaryPrice:"card-pack-selector_monetaryPrice__F1VAQ",dropdownContainer:"card-pack-selector_dropdownContainer__f4aU3",dropdown:"card-pack-selector_dropdown__GfOip",menu:"card-pack-selector_menu__cvuX1",dropdownButton:"card-pack-selector_dropdownButton__WsiVR",dropdownDownIcon:"card-pack-selector_dropdownDownIcon__ssXbQ"}},70838:e=>{e.exports={container:"card-preview_container__kraW3",canShowImage:"card-preview_canShowImage__mc9iS",envelopeContainer:"card-preview_envelopeContainer__ZKk4s",image:"card-preview_image__egsZs",imageContainer:"card-preview_imageContainer__sB2oy",shadow:"card-preview_shadow__7RVGn",background:"card-preview_background__wk8i8"}},71004:(e,a,t)=>{"use strict";t.d(a,{v:()=>p});var s=t(18334),i=t(14232);async function n(e){let a=await Promise.all([t.e(1194),t.e(8678)]).then(t.t.bind(t,87573,23)),s=new("default"in a?a.default:a).HeifDecoder().decode(await e.arrayBuffer())[0];if(!s)throw Error("libheif-js returned no images");let i=s.get_width(),n=s.get_height(),r=document.createElement("canvas");r.width=i,r.height=n;let l=r.getContext("2d");if(!l)throw Error("Canvas context not available");let o=l.createImageData(i,n);await new Promise((e,a)=>{s.display(o,t=>{if(!t)return void a(Error("libheif-js display failed"));e()})}),l.putImageData(o,0,0);let d=await new Promise(e=>{r.toBlob(e,"image/jpeg",.92)});if(!d)throw Error("Canvas failed to export JPEG");return d}let r="This photo could not be opened. If it is a HEIC image, try with a different image format or use the Safari browser instead.";class l extends Error{constructor(e,a){super(null!=e?e:r,a),this.name="HeicConversionFailedError"}}let o=()=>{if("undefined"==typeof navigator)return!1;let e=navigator.userAgent;return!(/Chrome\//.test(e)||/Edg\//.test(e)||/OPR\//.test(e)||/Firefox\//.test(e))&&!!(/iPhone|iPad|iPod/.test(e)||/Safari\//.test(e)&&/Macintosh|Mac OS X/.test(e))},d=function(e,a){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{cause:i,extra:n={}}=t,r=i instanceof Error?Error(e,{cause:i}):Error(e);(0,s.Cp)(r,{tags:{feature:"heic_conversion"},extra:{...n,...(e=>{if(!e||"object"!=typeof e)return{heicCause:String(e)};let a=e=>e&&"object"==typeof e&&"value"in e&&"object"!=typeof e.value?e.value:e;return{heicCauseKeys:Object.keys(e),code:a(e.code),subcode:a(e.subcode),message:"string"==typeof e.message?e.message:void 0}})(i),fileName:a.name,fileSize:a.size,fileType:a.type||"(empty)",probeTimeoutMs:4e3,likelyNativeHeicDecode:o()}})};async function c(e,a){let{default:s}=await t.e(2246).then(t.t.bind(t,3290,23)),i=await s({blob:e,toType:"image/jpeg",quality:.92,...a?{multiple:!0}:{}}),n=Array.isArray(i)?i[0]:i;if(!(n instanceof Blob))throw Error("heic2any returned non-Blob");return n}let u=async e=>{let a;if(!(e=>{let a=e.type.toLowerCase(),t=e.name.toLowerCase();return"image/heic"===a||"image/heif"===a||t.endsWith(".heic")||t.endsWith(".heif")})(e))return e;let t=o();if(t&&await new Promise(a=>{let t=URL.createObjectURL(e),s=new Image,i=!1,n=e=>{i||(i=!0,clearTimeout(r),URL.revokeObjectURL(t),a(e))},r=setTimeout(()=>n(!1),4e3);s.onload=()=>n(!0),s.onerror=()=>n(!1),s.src=t}))return e;let s=async t=>{try{return await c(e,t)}catch(e){return a=e,null}},i=await s(!1);if(i||(i=await s(!0)),!i)try{i=await n(e)}catch(e){a=e}if(i)return i;if(d("HEIC conversion failed after heic2any and libheif-js attempts",e,{cause:a,extra:{step:"all_heic_decoders_exhausted",triedHeic2anyMultiple:!0,triedLibheifJs:!0,shouldProbeNativeDecode:t}}),!t)throw new l(void 0,{cause:a});return e},p=e=>{let{singleFileCallback:a,multipleFileCallback:t}=e,n=(0,i.useRef)(null),o=async e=>{let i=e.target,n=i.files;if(!(null==n?void 0:n.length))return;let o=[...n];try{let e=[];for(let a of o){let t=await u(a);e.push(URL.createObjectURL(t))}a&&a(e.at(0)),t&&t(e)}catch(e){e instanceof l&&alert(r),(0,s.Cp)(e instanceof Error?e:Error(String(e)),{tags:{feature:"editor_file_upload"},extra:{fileCount:o.length,fileNames:o.map(e=>e.name),fileSizes:o.map(e=>e.size),fileTypes:o.map(e=>e.type||"(empty)")}})}finally{i.value=""}};return(0,i.useEffect)(()=>{n.current=document.createElement("input"),n.current.style.display="none",n.current.type="file",n.current.accept="image/*"},[]),(0,i.useEffect)(()=>{let e=n.current;e&&(e.multiple=!!t)},[t]),(0,i.useEffect)(()=>{let e=n.current;e&&(e.onchange=o)},[o]),()=>{var e;null==(e=n.current)||e.click()}}},73490:(e,a,t)=>{"use strict";t.d(a,{V6:()=>d,Iw:()=>l});var s=t(18334),i=t(91423),n=t(65534),r=t(6926);let l=/^https:\/\/infra-app-cdn-images(?:-[a-zA-Z0-9]+)?\.s3\.eu-west-1\.amazonaws\.com\/.*$/,o=async(e,a,t,l,o)=>{let d=await fetch(a),c=await d.blob(),u=(0,i.A)(),p=c.type.split("/")[1];u+=".".concat(p);try{let a,{uploadUrls:s}=await (a={images:[(0,r.w8)(u,t,o)]},(0,n.Em)(e,{path:"/image-upload",method:"POST",body:a,apiVersion:"v1"})),{url:i,thumbnail:d}=s.find(e=>e.type===t)||{};if(i){let e=await fetch(i,{method:"PUT",headers:{"Content-Type":"image/".concat(p),...l?{"x-amz-meta-user_uuid":l}:{},...(null==o?void 0:o.orientation)?{"x-amz-meta-orientation":o.orientation}:{}},body:c});if(200===e.status){var m;return{imageURL:null!=(m=e.url.split("?").at(0))?m:"",thumbnailURL:null!=d?d:""}}throw Error("S3 upload failed - response not 200")}throw Error("S3 upload failed - no presigned upload url")}catch(e){throw(0,s.Cp)(e,{tags:{feature:"s3_upload_failed"},extra:{type:t,userId:l,metadata:o}}),e}},d=(e,a,t,s,i)=>o(e,a,t,s,i)},75325:e=>{e.exports={cardPreviewContainer:"faceswap-tag-page-content_cardPreviewContainer___Tbip",deliveryTagContainer:"faceswap-tag-page-content_deliveryTagContainer__9UcJu",deliveryTag:"faceswap-tag-page-content_deliveryTag__Y2HPM",deliveryTagIcon:"faceswap-tag-page-content_deliveryTagIcon__hRPup",faceSwapFeatureContainer:"faceswap-tag-page-content_faceSwapFeatureContainer__7Id3Y",title:"faceswap-tag-page-content_title__o_MqI",faceSwapUploadContainer:"faceswap-tag-page-content_faceSwapUploadContainer__rZXUo",bestPracticeContainer:"faceswap-tag-page-content_bestPracticeContainer__xPDJa",listContainer:"faceswap-tag-page-content_listContainer__QKqik",dosA
1ndDontsList:"faceswap-tag-page-content_dosAndDontsList__h2TgC",faceswapBestPracticeItem:"faceswap-tag-page-content_faceswapBestPracticeItem__gw510",processingContainer:"faceswap-tag-page-content_processingContainer__Qvad2",imageContainer:"faceswap-tag-page-content_imageContainer__2Rw_r",uploadedFaceswapImageThumbnail:"faceswap-tag-page-content_uploadedFaceswapImageThumbnail__nbWvy",deleteButton:"faceswap-tag-page-content_deleteButton__0pdn6",deleteButtonImage:"faceswap-tag-page-content_deleteButtonImage__gE9WQ",ctaContent:"faceswap-tag-page-content_ctaContent__hPG1o",processingTitle:"faceswap-tag-page-content_processingTitle__JbOeg",processingText:"faceswap-tag-page-content_processingText__fbqFY",spinner:"faceswap-tag-page-content_spinner__aRcwa",errorMessage:"faceswap-tag-page-content_errorMessage__T4DGC",successMessageContainer:"faceswap-tag-page-content_successMessageContainer__8p0Yw",moreInfoHeader:"faceswap-tag-page-content_moreInfoHeader__sfG86",cardPreview:"faceswap-tag-page-content_cardPreview__15Kyr",cardImage:"faceswap-tag-page-content_cardImage__09I_5",envelopeImage:"faceswap-tag-page-content_envelopeImage__AGtb4"}},80063:e=>{e.exports={carouselV2Container:"carousel-v2_carouselV2Container__7WRfR",viewport:"carousel-v2_viewport__bxjle",container:"carousel-v2_container__2sGYL",slide:"carousel-v2_slide__i2xa_",slideElem:"carousel-v2_slideElem__kS6tc",buttons:"carousel-v2_buttons__C6mng",pageIndicator:"carousel-v2_pageIndicator__qkU_L",hide:"carousel-v2_hide__eMCK2"}},80093:e=>{e.exports={sectionLabel:"product-selector-with-credit-upsell_sectionLabel__3mCUq",cardTypeRow:"product-selector-with-credit-upsell_cardTypeRow__lIwkO",cardTypeOption:"product-selector-with-credit-upsell_cardTypeOption__dcMWA",cardTypeOptionActive:"product-selector-with-credit-upsell_cardTypeOptionActive__jniLu",cardTypeIconWrap:"product-selector-with-credit-upsell_cardTypeIconWrap__MH5Z7",cardTypeLabel:"product-selector-with-credit-upsell_cardTypeLabel__luGQ_"}},81638:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSG:()=>e4,default:()=>e8});var s=t(37876),i=t(77328),n=t.n(i),r=t(62867),l=t(14232),o=t(47765),d=t(4542),c=t(29401),u=t(70609),p=t(32442),m=t(53633),h=t(5178),g=t(37759),_=t(26741),y=t(91576),f=t(66860),v=t(86189),x=t(18271),C=t(18172),b=t(22324),w=t(75984),j=t(48936),S=t(27228),I=t(34704),P=t(41591),N=t(35123),k=t(74907),T=t(43715),D=t(14038),L=t(85013),B=t(2330),E=t(6049),F=t(72145),M=t(84990),A=t(11079),R=t(41107);let H=["For Mum","For Boyfriend","For Dad","For Her","For Dad","For Girlfriend","For Him","For Sister","For Brother","Mom to be","Girlfriend","Brother","Sister","Daughter","Son's birthday","Mother in law","Step Dad","Grandpa","Grandmother","Grandson","Aunt","Nephew","Godmother","Papa","Ian Owen","Diane","Emily Skinner","Laura Ingham","Erin Wilson","Karin","Siya Liu","Hannah Bottino","Chloe Evans","Alison Watson","Ellis Millar","Tea Filipi","Leanne Bradley","Yvonne Zorn","Sumana Borbora","Angelica Mundrick","Wendy Miranda","Jo Scott","Catalina Williams","Sorcha Faulkner","Kendra Minadeo","Justinah Kay","Niamh Power","Sarah Simonds-Gooding","Maria Ross","Carla Bragagnini","Abby Cook","Jenna Holocomb","Laurent Collective","Rikki Richards","Rachel Jesson","Claire Huntley","Jessica Eyre"],O=["Dog","Typography","Halloween","Diwali","Belated Birthday","Thanksgiving","Cake","Christmas Thank you","Valentine's","Baseball","Any Occasion","IWD","See you soon","Bridesmaid","Hanukkah","Christmas","Easter","Music","Holi","Frame - No","Popular","Tortoise","Celebrate","Animals","Beach","4th of July","Anniversary","Thank You Teacher","Frame - Yes","Demo","Christening","Photography","Membership","Covid-19","Pineapple","Season's Greetings","Passover","Oodles-of-doodles","Off-White","Tom & Jerry","BLM","Invitation","Eid","Party","Announcement","Kindmass","Wedding","Travel","Mom's Birthday","Brown","Black_shade","Charity Christmas","New year","White","Exam","Yoga","My Little Pony","Welcome","Car","Military","Brand New","Women","Elf","Milestones","Dad's Birthday","Trending","You are amazing","Mothering Sunday","Has Text - Y","Everyday","Custom","For Friend","Punny","Kindness","Religious","Snow","Boyfriend","Luca","Frames","Rudi Elton-Rowley","30th birthday","Queen's Jubilee","Feel Better","Wish you were here","Good Luck","Create your own","Kids and Funny","Rainbow","New Home","LGBTQ+","Love and Friendship","Nature","Coffee","Flag","Poem","Funny","Snowman","Peace & Joy","Age","Libby Hampel","Birthday","70th birthday","2nd birthday","Garland","Grandpa's birthday","21st birthday","85th birthday","Card from Santa","Engagement","Disney","All","Happy Holidays","Cheese","Mother's Day","Graduation","St.Patrick's Day","Dad","Santa","Floral & Botanical","Unisex","Goodbye","Bird","Hugs","Cat","Star","40th birthday","Horoscope","7th birthday","Drinks","Fireworks","18th birthday","Has Text - N"],G=["Grandma's Birthday","3rd birthday","16th birthday","Relationships","Hello","New Job","Well done","Awesome","Becky Wood","N
1oel","Michelle Gemmel","Granddaughter","Bruna Schmidt","Funny Birthday","Safe travels","Pink","Foodstuffs","Driving Test","100th birthday","Black","Orange","Buon Natale","Grey","Father's Day","1st Time Fathers","Friend","4th birthday","1st Birthday","Horse","Bee","Pearl Ivy","Sunflower","75th birthday","Nana","For Them","9th birthday","Encouragement","Thank You","Moon","Penguin","Coronation","House","Distance","Pride","Summer","1st Time Mothers","80th Birthday","Retirement","Baubles","Classic","Kid's Birthday","Leaving","Avocado","Congratulations","Baby Shower","Sympathy","Traditional","Camp","Angelica Mundrick ","Mistletoe","You got this","Save the date","demo","Yellow","Plant","Condolence","Donkey","Dachshund","Sloth","Maegan","Nicola Scott","Wife"," Valeria Frustaci","Miss You","Father","Kay Train","Jessie Wood","Niece","Dinosaur","Flowers","Kids","Pets","Get Well Soon","5th birthday","Galentines","Adventure"," Rohanne Thomson","Lucy Maggie","Feliz Navidad","Football","6th birthday"," Claire Osborne","60th birthday","Grandfather","70","Lori Malkhassian","Felicity Muir","Snail","Grandma","Britsy Lal","Bike","Elephant","Jennifer Hines ","Heart","Pregnancy"," Rudi Elton-Rowley","Jasmine"," Kendra Minadeo","Red","Fall","Generic","123","Blue","90th birthday","Mother","New","Memoji","Sports","New Baby","Sister's Birthday","Sport","Abby Cook ","Fishing","Alzheimer's Day","Purple","Sun","Unicorn","Nature Notes","50th Birthday","Back To Sc
1hool","Thinking Of You","Success","Bear","Green","Layouts","New In","Grandparent's Day","Sorry","Health","Chinese New Year","Valeria Romeo","Diversity","Husband","Reindeer","Cinco de Mayo ","Cutouts","10th birthday","8th birthday"];var U=t(77081),V=t(1319),W=t(20172),J=t(91785),z=t(54773),Y=t(5551),K=t(38603),Q=t(20195),Z=t(1461),q=t(37581),X=t(89005),$=t.n(X);function ee(){return(0,s.jsx)("img",{className:$().checkIcon,src:"/assets/icons/green-tick-bold.svg",alt:"",width:16,height:16,"data-sentry-component":"GreenTick","data-sentry-source-file":"stacked-double-bundle-upsell-layout.tsx"})}let ea=[{title:"Pay less per card",description:"Pay now, lock in a lower price per card"},{title:"Send anytime",description:"Personalise each card before you send"},{title:"Free 1st class delivery",description:"On every card you send, worldwide"}],et=e=>{let{pdpCreditUpsellBundleId:a,onPdpCreditUpsellBundleIdChange:t,selectedProductHandle:i}=e,n=(0,I.Q)(),{locale:r,currencyCode:o}=(0,T.Y)(),d=n[i][r],{pdpUpsellBundles:c,isUpsellBundlesLoading:u}=(0,M.c)({productHandle:i}),[p,m]=c;(0,l.useEffect)(()=>{!u&&0===c.length&&a&&t(void 0)},[u,c.length,a,t]);let h=(0,q.AZ)(d.monetaryCost,o),g=(e,i)=>{let n,r=(n=d.creditCost,e.bundle.offeredCredits/n),l=a===e.bundle.bundleId;return(0,s.jsxs)("button",{type:"button",className:(0,A.lM)($().orderTypeCard,$().badgeCard,l&&$().orderTypeCardActive),"aria-pressed":l,onClick:()=>{t(e.bundle.bundleId)},"data-sentry-component":"renderBundleOption","data-sentry-source-file":"stacked-double-bundle-upsell-layout.tsx",children:[(0,s.jsx)("span",{className:i.className,children:i.label}),(0,s.jsxs)("div",{className:$().cardContentRow,children:[(0,s.jsx)(Q.a,{className:$().radioSelection,isOn:l,"data-sentry-element":"RadioButton","data-sentry-source-file":"stacked-double-bundle-upsell-layout.tsx"}),(0,s.jsxs)("div",{className:$().orderMain,children:[(0,s.jsxs)("div",{className:$().titlePriceRow,children:[(0,s.jsxs)("div",{className:$().orderTitle,children:[r," card bundle"]}),(0,s.jsxs)("div",{className:$().orderPriceCol,children:[(0,s.jsx)("span",{className:$().priceMain,children:(e=>(0,q.AZ)(e.bundle.bundlePrice/(e.bundle.offeredCredits/d.creditCost),o))(e)}),(0,s.jsxs)("span",{className:$().priceSub,children:[(0,q.AZ)(e.bundle.bundlePrice,o)," total"]})]})]}),l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("hr",{className:$().divider}),(0,s.jsxs)("div",{className:$().whyBundlesSection,children:[(0,s.jsx)("div",{className:$().whyBundlesTitle,children:"Why people love bundles"}),(0,s.jsx)("div",{className:$().bundleFeatureList,children:ea.map(e=>{let{title:a,description:t}=e;return(0,s.jsxs)("div",{className:$().bundleFeature,children:[(0,s.jsx)(ee,{}),(0,s.jsxs)("div",{className:$().bundleFeatureText,children:[(0,s.jsx)("span",{className:$().bundleFeatureTitle,children:a}),(0,s.jsx)("span",{className:$().bundleFeatureDescription,children:t})]})]},a)})})]})]}):null]})]})]},e.bundle.bundleId)};return u?(0,s.jsx)("div",{className:$().orderSection,children:(0,s.jsx)(Z.a,{className:$().orderSectionLoader})}):p||m?(0,s.jsxs)("div",{className:$().orderSection,"data-sentry-component":"StackedDoubleBundleUpsellLayout","data-sentry-source-file":"stacked-double-bundle-upsell-layout.tsx",children:[(0,s.jsx)("div",{className:$().sectionLabel,children:"One card or stock up and save?"}),(0,s.jsxs)("div",{className:$().orderTypeStack,children:[(0,s.jsx)("button",{type:"button",className:(0,A.lM)($().orderTypeCard,!a&&$().orderTypeCardActive),"aria-pressed":!a,onClick:()=>{t(void 0)},children:(0,s.jsxs)("div",{className:$().cardContentRow,children:[(0,s.jsx)(Q.a,{className:$().radioSelection,isOn:!a,"data-sentry-element":"RadioButton","data-sentry-source-file":"stacked-double-bundle-upsell-layout.tsx"}),(0,s.jsx)("div",{className:$().orderMain,children:(0,s.jsxs)("div",{className:$().titlePriceRow,children:[(0,s.jsxs)("div",{className:$().orderTitleBlock,children:[(0,s.jsx)("div",{className:$().orderTitle,children:"Single card"}),(0,s.jsx)("div",{className:$().subtitle,children:"Free first class delivery"})]}),(0,s.jsxs)("div",{className:$().orderPriceCol,children:[(0,s.jsx)("span",{className:$().priceMain,children:h}),(0,s.jsx)("span",{className:$().priceSub,children:"per card"})]})]})})]})}),p?g(p,{label:"Most Popular \xb7 Save ".concat(p.savingPercent,"%"),className:$().mostPopularBadge}):null,m?g(m,{label:"Best Value \xb7 Save ".concat(m.savingPercent,"%"),className:$().bestValueBadge}):null]})]}):null};var es=t(80093),ei=t.n(es);let en=e=>{let{selectedProductHandle:a,onSelectProductHandle:t,pdpCreditUpsellBundleId:i,onPdpCreditUpsellBundleIdChange:n}=e,r=(0,I.Q)(),{locale:o}=(0,T.Y)();(0,l.useEffect)(()=>{"CP"===a&&t("GC")},[a,t]);let d=r.GC[o],c=r.PC[o];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ei().sectionLabel,children:"Choose your card type"}),(0,s.jsxs)("div",{className:ei().cardTypeRow,children:[(0,s.jsxs)("button",{type:"button",className:(0,A.lM)(ei().cardTypeOption,"GC"===a&&ei().cardTypeOptionActive),"aria-pressed":"GC"===a,onClick:()=>t("GC"),children:[(0,s.jsx)("div",{className:ei().cardTypeIconWrap,children:(0,s.jsx)("img",{src:"GC"===a?"/assets/icons/greeting-card-teal.svg":"/assets/icons/greeting-card.svg",alt:"",width:30,height:39})}),(0,s.jsx)("span",{className:ei().cardTypeLabel,children:d.displayName})]}),(0,s.jsxs)("button",{type:"button",className:(0,A.lM)(ei().cardTypeOption,"PC"===a&&ei().cardTypeOptionActive),"aria-pressed":"PC"===a,onClick:()=>t("PC"),children:[(0,s.jsx)("div",{className:ei().cardTypeIconWrap,children:(0,s.jsx)("img",{src:"PC"===a?"/assets/icons/postcard-teal.svg":"/assets/icons/postcard.svg",alt:"",width:44,height:34})}),(0,s.jsx)("span",{className:ei().cardTypeLabel,children:c.displayName})]})]}),(0,s.jsx)(et,{pdpCreditUpsellBundleId:i,onPdpCreditUpsellBundleIdChange:n,selectedProductHandle:a,"data-sentry-element":"StackedDoubleBundleUpsellLayout","data-sentry-source-file":"product-selector-with-credit-upsell.tsx"})]})};var er=t(74359),el=t(37149),eo=t(65534),ed=t(38529),ec=t(3502),eu=t(18921);let ep="United Kingdom",em="United States",eh=[ep,em,"Germany","Europe (excl. Germany)","Canada","Australia","New Zealand","Rest of World"],eg={[ep]:1,[em]:37,Germany:5,"Europe (excl. Germany)":6,Canada:72,Australia:51,"New Zealand":174,"Rest of World":132},e_={uk:ep,us:em,eu:"Europe (excl. Germany)",ca:"Canada",au:"Australia"};var ey=t(97574),ef=t.n(ey);let ev=e=>{let{locale:a,productHandle:t,hasGift:i}=e,[n,r]=(0,l.useState)((e=>{var a;return null!=(a=e_[e])?a:ep})(a)),[o,d]=(0,l.useState)(""),c=(e=>{let{country:a,isPostcard:t}=e;return a===em&&t})({country:n,isPostcard:"PC"===t}),{data:u,isPlaceholderData:p,isFetching:m,isFetched:h}=(e=>{let{ctx:a}=(0,v._8)();return(0,er.I)({queryKey:["delivery-estimate",e,a],queryFn:()=>(0,eo.Em)(a,{method:"POST",path:"delivery-estimate",body:e,apiVersion:"v1"}),enabled:!!a&&!!e,select:e=>{let{deliveryEstimate:a}=e;return a},placeholderData:el.rX})})((0,l.useMemo)(()=>(e=>{let{country:a,productHandle:t,hasGift:s,usState:i}=e,n={countryId:eg[a],renderType:"PC"===t?"PC":"GC",isCardPack:"CP"===t,hasGift:s};return a===em&&i&&(n.state=i),n})({country:n,productHandle:t,hasGift:i,usState:o}),[n,t,i,o])),g=p?null:u,_=g?(0,ec.PS)({postalService:g.postalService,inProductText:g.inProductText,deliveryDate:g.deliveryDate,isDelivered:!1}):null,y=m||h,f=m&&!_,x=c&&!p&&!!_;return(0,s.jsxs)("div",{className:ef().deliveryEstimator,"data-sentry-component":"DeliveryEstimator","data-sentry-source-file":"delivery-estimator.tsx",children:[(0,s.jsx)("h2",{className:ef().heading,children:"Delivery Details"}),(0,s.jsx)("p",{className:ef().description,children:"Select where it's going to see an accurate delivery estimate"}),(0,s.jsxs)("div",{className:ef().countrySelectContainer,children:[(0,s.jsx)("img",{className:ef().pinIcon,src:"/assets/icons/location-pin-dark-grey.svg",alt:"",width:16,height:16}),(0,s.jsx)("select",{className:ef().countrySelect,"aria-label":"Delivery destination",value:n,onChange:e=>{r(e.target.value),d("")},children:eh.map(e=>(0,s.jsx)("option",{value:e,children:e},e))}),(0,s.jsx)("img",{className:ef().chevronIcon,src:"/assets/icons/chevron-right-dark-grey.svg",alt:"",width:9,height:13})]}),c&&(0,s.jsx)("div",{className:ef().stateSelectContainer,children:(0,s.jsx)(ed.z,{labelName:"State",value:o,onChange:e=>d(e.target.value),itemsList:[{value:"",label:"Select a state..."},...(0,eu.rv)()]})}),y&&(0,s.jsx)("div",{className:(0,A.lM)(ef().estimate,f&&ef().estimateLoading),"aria-busy":f,"aria-live":"polite",children:f?(0,s.jsx)(Z.a,{className:ef().loader,"aria-label":"Loading delivery estimate"}):_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{className:ef().truckIcon,src:"/assets/icons/delivery-estimate-teal.svg",alt:"",width:16,height:13}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:ef().service,children:_.postalServiceName}),(0,s.jsx)("div",{className:ef().estimatedDelivery,children:_.deliveryEstimateText}),x&&(0,s.jsxs)("div",{className:ef().tracking,children:[(0,s.jsx)("img",{className:ef().checkIcon,src:"/assets/icons/tick-dark-teal.svg",alt:"tick icon",width:14,height:14}),"Includes free USPS tracking"]})]})]}):(0,s.jsx)("p",{className:ef().unavailable,children:"Estimate unavailable"})})]})};
1var ex=t(45988),eC=t(39654),eb=t.n(eC);let ew=e=>{let[a,t]=(0,l.useState)(null),{locale:i}=(0,T.Y)(),n=Object.values(e.giftInfos),{trackGift:r}=(e=>{let{productHandle:a}=e,t=(0,B.r)(),{trackEvent:s}=(0,F.z1)(),{viewport:i,isTouchscreen:n}=(0,P.Ln)();return{trackGift:e=>{let{event:r,gift:l}=e,o=l.giftVariant.at(0);s(r,{path:t.asPath,deviceWidth:window.screen.width,deviceHeight:window.screen.height,isTouchscreen:n,viewport:i,title:null==o?void 0:o.semiTitle,productHandle:a,giftVariantId:null==o?void 0:o.id,giftVariantName:null==o?void 0:o.title})}}})({productHandle:e.productHandle});return"uk"===i&&n.length?(0,s.jsxs)("div",{className:eb().giftsSection,"data-sentry-component":"Gifts","data-sentry-source-file":"gifts.tsx",children:[(0,s.jsxs)("span",{className:eb().heading,children:["Pairs perfectly with",n.length>1&&(0,s.jsx)("span",{className:eb().giftPerCardText,children:"(1 gift per card)"})]}),n.map(a=>{var i,n;let{semiTitle:l,mainImage:o,price:d}=null!=(n=null==a||null==(i=a.giftVariant)?void 0:i.at(0))?n:{};return(0,s.jsxs)("div",{className:eb().giftInfo,children:[(0,s.jsxs)("div",{className:eb().imageAndName,children:[(0,s.jsx)("img",{className:eb().image,src:o,width:48,height:48,alt:"".concat(l," gift")}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:eb().name,children:l}),(0,s.jsx)("span",{role:"presentation",className:eb().seeMoreDetails,onClick:()=>{r({event:"giftDetailsTapped",gift:a}),t(a)},children:"See more details"})]})]}),(0,s.jsxs)("div",{role:"presentation",className:eb().priceAndRadioButton,onClick:()=>{if(r({event:"gitItemTapped",gift:a}),e.selectedGiftId===a.id)return void e.onSelectGift(null);e.onSelectGift(a.id)},children:[(0,s.jsxs)("span",{className:eb().price,children:["+ ",(0,q.AZ)(Number(d),"")]}),(0,s.jsx)(Q.a,{className:eb().radioSelection,isOn:e.selectedGiftId===a.id})]})]},a.id)}),(0,s.jsx)(ex.y,{gift:a,isOpen:!!a,onClose:()=>t(null),"data-sentry-element":"GiftDetailsModal","data-sentry-source-file":"gifts.tsx"})]}):null};var ej=t(19756),eS=t.n(ej),eI=t(1414),eP=t(48336),eN=t.n(eP);let ek=e=>{let{isSelected:a,onClick:t,selectedQuantity:i,onSelectCardPackQuantity:n}=e,{locale:r,currencyCode:o}=(0,T.Y)(),[d,c]=(0,l.useState)(!1),u=z.t.GC[r];return(0,s.jsxs)("div",{className:(0,A.lM)(eN().container,a&&eN().active),"data-sentry-component":"CardPackSelector","data-sentry-source-file":"card-pack-selector.tsx",children:[(0,s.jsxs)("div",{role:"presentation",className:(0,A.lM)(eN().cardPackSelector),onClick:t,children:[(0,s.jsx)("img",{src:"/assets/icons/card-pack.svg",alt:"card pack icon",width:41,height:39,className:eN().icon}),(0,s.jsxs)("div",{className:eN().infos,children:[(0,s.jsx)("div",{className:eN().title,children:"Card Pack"}),(0,s.jsx)("div",{className:eN().subTitle,children:"Blank greeting cards with envelopes, sent to your home."})]}),(0,s.jsx)("div",{className:eN().priceContainer,children:(0,s.jsx)("div",{className:eN().monetaryPrice,children:(0,q.AZ)(u.monetaryCost*i,o)})})]}),(0,s.jsx)("div",{className:eN().dropdownContainer,children:(0,s.jsx)(eI.m,{isOpen:d,setIsOpen:c,pushContent:!1,additionalClassNames:{buttonClass:eN().dropdown,menuClass:eN().menu},activeItem:(0,s.jsxs)("div",{className:eN().dropdownButton,children:[i," cards",(0,s.jsx)("img",{src:"/assets/icons/chevron-right-dark-grey.svg",className:eN().dropdownDownIcon,width:24,height:24,alt:"icon to open region select dropdown"})]}),"data-sentry-element":"Dropdown","data-sentry-source-file":"card-pack-selector.tsx",children:Array.from({length:50}).map((e,i)=>{let r=i+1;return(0,s.jsx)("li",{children:(0,s.jsx)("button",{type:"button",className:eN().dropdownButton,onClick:()=>{a||t(),n(r),c(!1)},children:(0,s.jsx)("span",{children:r})})},r)})})})]})};var eT=t(51899);let eD=e=>{let{cardProducts:a,locale:t,selectedProductHandle:i,onSelectProductHandle:n,selectedCardPackQuantity:r,onSelectCardPackQuantity:l,includeCardPack:o=!0}=e;return(0,s.jsxs)("div",{className:eS().productSelectionContainer,"data-sentry-component":"ProductSelectorContainer","data-sentry-source-file":"product-selector-container.tsx",children:[(0,s.jsx)(eT.s,{product:a.GC[t],isSelected:"GC"===i,onClick:()=>n("GC"),icon:(0,s.jsx)("img",{src:"GC"===i?"/assets/icons/greeting-card-teal.svg":"/assets/icons/greeting-card.svg",alt:"greeting card icon",width:30,height:39}),"data-sentry-element":"CardTypeSelector","data-sentry-source-file":"product-selector-container.tsx"}),(0,s.jsx)(eT.s,{product:a.PC[t],isSelected:"PC"===i,onClick:()=>
1n("PC"),icon:(0,s.jsx)("img",{className:eS().postcardIcon,src:"PC"===i?"/assets/icons/postcard-teal.svg":"/assets/icons/postcard.svg",alt:"postcard icon",width:44,height:34}),"data-sentry-element":"CardTypeSelector","data-sentry-source-file":"product-selector-container.tsx"}),o?(0,s.jsx)(ek,{isSelected:"CP"===i,onClick:()=>n("CP"),selectedQuantity:r,onSelectCardPackQuantity:l}):null]})};var eL=t(14308),eB=t(73490),eE=t(6926),eF=t(96227),eM=t(70838),eA=t.n(eM);let eR=e=>{let{theme:a,userImageURL:t,productHandle:i,description:n,additionalClassNames:r,displayEnvelope:o=!1,onLoadUserImage:d}=e,[c,u]=(0,l.useState)(!1),p=(0,l.useRef)(null),m=(0,l.useRef)(null),[h,g]=(0,l.useState)(!1),_=(0,l.useRef)(null),[y,f]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e,a,t;u(!!(null==(e=p.current)?void 0:e.complete)),g(!!(null==(a=m.current)?void 0:a.complete)),f(!!(null==(t=_.current)?void 0:t.complete))},[]);let v="PC"===i,x=(0,eF.V2)("https://cdn.touchnotes.com/shared/productThemes/".concat(a.thumbnailUrl),464,80);return(0,s.jsxs)("div",{className:(0,A.lM)(eA().container,null==r?void 0:r.containerClassName,c&&h&&(v||y)&&eA().canShowImage),"data-sentry-component":"CardPreviewV2","data-sentry-source-file":"card-preview-V2.tsx",children:[(0,s.jsxs)("div",{className:(0,A.lM)(eA().imageContainer,null==r?void 0:r.cardImageClassName),children:[(0,s.jsx)("img",{draggable:!1,className:eA().shadow,src:"/assets/product-detail-page/card-shadow.png",alt:"card shadow",width:252,height:952,onLoad:()=>g(!0),ref:m}),"GC"===i&&(0,s.jsx)("img",{draggable:!1,className:eA().background,src:"/assets/product-detail-page/card-background.png",alt:"card back",width:688,height:73,onLoad:()=>f(!0),ref:_}),(0,s.jsx)("img",{draggable:!1,className:eA().image,src:null!=t?t:x,alt:n,width:464,height:614,onLoad:()=>{u(!0),null!==t&&d()},ref:p})]}),(0,s.jsx)("div",{className:(0,A.lM)(eA().envelopeContainer,null==r?void 0:r.envelopeImageClassName),children:o?(0,s.jsx)("img",{src:"/assets/product-detail-page/".concat(v?"postcard":"greeting-card","-envelope.png"),width:v?353:416,height:v?268:300,alt:"".concat(v?"Postcard":"Greeting card"," envelope"),className:eA().image}):null})]})};var eH=t(90195),eO=t(18334),eG=t(33845),eU=t.n(eG),eV=t(71004),eW=t(1520),eJ=t(75325),ez=t.n(eJ);let eY=e=>{let{ctx:a}=(0,v._8)(),{data:t}=(0,eL.Jd)(),[i,n]=(0,l.useState)("idle"),[r,o]=(0,l.useState)(),{performFaceswap:d,fetchFaceswapResult:c}=(()=>{let{ctx:e}=(0,v._8)(),a="5b46478fbc6de0d196b9caa7ff5481aaeb4bcae72e70d575327c168087411c69";return{performFaceswap:async(t,s)=>{if(!a)throw Error("No API key provided for Faceswap API.");if(!e)throw Error("No request context provided for Faceswap API call.");let i=JSON.stringify({model:"Qubico/image-toolkit",task_type:"face-swap",input:{target_image:t,swap_image:s}}),n=await fetch("https://api.piapi.ai/api/v1/task",{method:"POST",headers:{"X-API-Key":a,"Content-Type":"application/json"},body:i}),r=await n.json(),l=r.data.status;return{taskId:r.data.task_id,status:l}},fetchFaceswapResult:async t=>{var s;if(!a)throw Error("No API key provided for Faceswap API.");if(!e)throw Error("No request context provided for Faceswap API call.");let i=await fetch("https://api.piapi.ai/api/v1/task/".concat(t),{method:"GET",headers:{"X-API-Key":a}}),n=await i.json(),r=n.data.status;return{taskId:n.data.task_id,status:r,imageUrl:null==(s=n.data.output)?void 0:s.image_url}}}})(),[u,p]=(0,W.OI)("web-faceswap-attempts"),[m,h]=(0,l.useState)(0),{trackEvent:g}=(0,F.z1)();(0,l.useEffect)(()=>{if("off"===u)n("attemptLimitReached");else{var e;m>(null!=(e=null==p?void 0:p.permittedAttempts)?e:6)&&n("attemptLimitReached")}},[u,m]),(0,l.useEffect)(()=>{e.isFaceswapProcessComplete&&n("complete")},[e.isFaceswapProcessComplete]);let _=(0,eV.v)({singleFileCallback:async e=>{n("uploading");try{let s=await (0,eF.b_)(e,2048),{imageURL:i}=await (0,eB.V6)(a,s,"userImage",null==t?void 0:t.userId);o(i),n("uploaded")}catch(e){o(void 0),g("uploadPhotoError"),n("error"),(0,eO.Cp)(e)}}}),y=async()=>{if(g("faceSwapTapped"),!r)throw Error("No face swap uploaded image URL");try{n("processing");let a=await (0,eF.b_)(e.targetImageURL,2048),t=await d(a,r);if(t.taskId)f(t.taskId);else throw g("faceSwapError",{type:"Faceswap request failed."}),Error("No face swap task ID")}catch(e){(0,eO.Cp)(e),n("error")}},f=async a=>{let t=0,s=async()=>{try{let i=await c(a);if("completed"===i.status)if(i.imageUrl)e.onFaceswapSuccess(i.imageUrl),h(e=>e+1);else throw Error("No faceswap result image URL");else if("failed"===i.status)throw Error("Face swap result failed with ".concat(i.status,"}"));else if("pending"===i.status||"processing"===i.status){if(++t>10)throw Error("Reached max face swap retries");setTimeout(s,2500)}}catch(e){(0,eO.Cp)(e),g("faceSwapError",{type:"Faceswap couldn't be performed"}),n("error")}};s()};return(0,s.jsxs)("div",{className:ez().processingContainer,"data-sentry-component":"FaceswapImageProcessingControl","data-sentry-source-file":"faceswap-image-processing-control.tsx",children:[("idle"===i||"error"===i||"attemptLimitReached"===i)&&(0,s.jsx)(eK,{onClickUpload:()=>{n("idle"),g("uploadPhotoTapped"),_()},errorMessage:"error"===i?"Oops, looks like thereâs an error, please try again.":"attemptLimitReached"===i?"Opps, looks like there's an error, please try again later":null,allowRetry:"attemptLimitReached"!==i}),"uploading"===i&&(0,s.jsx)(eQ,{title:"Uploading image",description:"It usually takes under a minute but can take longer if demand is high"}),"processing"===i&&(0,s.jsx)(eQ,{title:"Face swapping",description:"It usually takes under a minute but can take longer if demand is high"}),("uploaded"===i||"complete"===i)&&r&&(0,s.jsx)(eZ,{imageURL:r,processState:i,onClickFaceswap:y,onClickRemoveImage:()=>{e.onFaceSwapCancel(),n("idle")}})]})},eK=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{style:{width:"30px",height:"30px"},src:"/assets/icons/face-swap-upload-icon.png",width:36,height:36,alt:"Upload"}),e.allowRetry&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"Upload a photo to face swap"}),(0,s.jsx)(u.oG,{size:"large",variant:"primary",style:{paddingLeft:"36px",paddingRight:"8px"},onClick:e.onClickUpload,children:(0,s.jsxs)("div",{className:ez().ctaContent,children:["Upload photo",(0,s.jsx)("img",{alt:"Upload",width:24,height:24,src:"/assets/icons/face-swap-upload-plus-icon.svg"})]})})]}),e.errorMessage&&(0,s.jsx)("span",{className:ez().errorMessage,children:e.errorMessage})]}),eQ=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eU(),{animationData:eW,className:ez().spinner,"data-sentry-element":"Lottie","data-sentry-source-file":"faceswap-image-processing-control.tsx"}),(0,s.jsxs)("div",{className:ez().processingText,children:[(0,s.jsx)("span",{className:ez().processingTitle,children:e.title}),(0,s.jsx)("p",{children:e.description})]})]}),eZ=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:ez().imageContainer,children:[(0,s.jsx)("img",{src:e.imageURL,className:ez().uploadedFaceswapImageThumbnail,width:100,height:100,alt:"Change "}),(0,s.jsx)("button",{type:"button",className:ez().deleteButton,onClick:e.onClickRemoveImage,children:(0,s.jsx)("img",{src:"/assets/icons/black-x-transparent.png",className:ez().deleteButtonImage,width:24,height:24,alt:"Try different image"})})]}),"uploaded"===e.processState&&(0,s.jsxs)("div",{className:ez().processingText,children:[(0,s.jsx)(u.oG,{variant:"primary",size:"medium",onClick:e.onClickFaceswap,children:"Face swap"}),(0,s.jsx)("p",{children:"Get ready to watch magic happen!"})]}),"complete"===e.processState&&(0,s.jsxs)("div",{className:ez().successMessageContainer,children:[(0,s.jsx)("img",{src:"/assets/icons/check-teal.svg",alt:"Faceswap complete",width:24,height:24}),(0,s.jsx)("span",{children:"Face swap complete!"})]})]}),eq=e=>{let{data:a}=(0,eL.Jd)(),{trackEvent:t}=(0,F.z1)(),[i,n]=(0,l.useState)(null),[r,o]=(0,l.useState)(!1),[c,p]=(0,l.useState)(),[m,_]=(0,l.useState)(null),{url:y}=(0,Y.C)("front",{themeId:e.theme.themeId,productHandle:e.selectedProductHandle,presetUserImageURL:i}),f=async e=>{let{imageURL:t}=await (0,eB.V6)(S,e,"userImage",null==a?void 0:a.userId);n(t)},{trackCheckoutEvents:x,trackAddToCartMetaPixel:w}=(0,N.A)(),j=(0,I.Q)(),{ctx:S}=(0,v._8)(),{data:P,isLoading:k}=(0,er.I)({queryKey:["themeAndIllustrations",e.theme.themeId,S],queryFn:()=>(0,eE.YR)(S,e.theme.themeId),enabled:!!S});return(0,l.useEffect)(()=>{t("pageView",{slug:e.theme.themeId})},[]),(0,l.useEffect)(()=>{var e;if(k)return;let a=null==P||null==(e=P.illustrations[0])?void 0:e.productAssetUrl;a&&S&&p(a)},[k]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.m,{"data-sentry-element":"Container","data-sentry-source-file":"faceswap-tag-page-content.tsx",children:[(0,s.jsxs)("div",{className:eS().cardDetail
1s,children:[(0,s.jsxs)(e$,{link:e.canProceedToEditor?y:null,"data-sentry-element":"CardPreviewContainer","data-sentry-source-file":"faceswap-tag-page-content.tsx",children:[(0,s.jsx)("div",{className:ez().deliveryTagContainer,children:(0,s.jsxs)("span",{className:ez().deliveryTag,children:[(0,s.jsx)("img",{src:"/assets/product-detail-page/free-delivery.png",alt:"free delivery icon",width:128,height:128,className:ez().deliveryTagIcon}),(0,s.jsx)("span",{children:"Worldwide delivery"})]})}),(0,s.jsx)(eR,{theme:e.theme,userImageURL:i,productHandle:e.selectedProductHandle,description:e.pageHeader,additionalClassNames:{containerClassName:ez().cardPreview,cardImageClassName:ez().cardImage,envelopeImageClassName:ez().envelopeImage},displayEnvelope:!0,onLoadUserImage:()=>{i&&(o(!0),e.onFaceswapSuccess(i))},"data-sentry-element":"CardPreviewV2","data-sentry-source-file":"faceswap-tag-page-content.tsx"})]}),(0,s.jsxs)("div",{className:eS().cardInfo,children:[(0,s.jsxs)("div",{className:ez().moreInfoHeader,children:[(0,s.jsx)("img",{src:"/assets/icons/face-swap-ai-powered-icon.png",width:87,height:24,alt:"AI-Powered"}),(0,s.jsx)("h1",{children:e.pageHeader})]}),(0,s.jsx)(eH.a,{text:e.cardDescription,sliceIndex:60,"data-sentry-element":"CollapsibleText","data-sentry-source-file":"faceswap-tag-page-content.tsx"}),(0,s.jsxs)("div",{className:ez().faceSwapFeatureContainer,children:[(0,s.jsx)("span",{className:ez().title,children:"Upload your photo"}),(0,s.jsxs)("div",{className:ez().faceSwapUploadContainer,children:[c&&(0,s.jsx)(eY,{targetImageURL:c,onFaceswapSuccess:e=>{f(e)},onFaceSwapCancel:()=>{e.onFaceswapReset(),n(null),o(!1)},isFaceswapProcessComplete:r}),(0,s.jsxs)("div",{className:ez().bestPracticeContainer,children:[(0,s.jsx)("span",{className:ez().title,children:"Best practice"}),(0,s.jsxs)("div",{className:ez().listContainer,children:[(0,s.jsx)("div",{className:ez().dosAndDontsList,children:["Face clearly visible","Natural lighting","Good resolution"].map(e=>(0,s.jsx)(eX,{positive:!0,text:e},e))}),(0,s.jsx)("div",{className:ez().dosAndDontsList,children:["Eyes shut","Sunglasses or hat","Group photo"].map(e=>(0,s.jsx)(eX,{positive:!1,text:e},e))})]})]})]})]}),(0,s.jsxs)("div",{className:eS().cardSelections,children:[(0,s.jsx)("div",{className:eS().cardType,children:"Select card type"}),(0,s.jsx)(eD,{cardProducts:j,locale:e.locale,selectedProductHandle:e.selectedProductHandle,onSelectProductHandle:e.setSelectedProductHandle,selectedCardPackQuantity:5,onSelectCardPackQuantity:()=>{},includeCardPack:!1,"data-sentry-element":"ProductSelectorContainer","data-sentry-source-file":"faceswap-tag-page-content.tsx"})]}),!e.isMembership2024Enabled&&e.creditInfoText,(0,s.jsx)(ew,{productHandle:e.selectedProductHandle,giftInfos:e.gifts,selectedGiftId:m,onSelectGift:_,"data-sentry-element":"Gifts","data-sentry-source-file":"faceswap-tag-page-content.tsx"}),(0,s.jsx)("span",{className:(0,A.lM)(e.isMobileOrTablet&&eS().stickyButton),children:null!==i&&(0,s.jsx)(u._F,{variant:"primary",size:"large",href:y,className:eS().personaliseButton,rel:"nofollow",onClick:async()=>{var a,s,i;let{gifts:n,selectedProductHandle:r,locale:l,theme:o}=e,d=j[r][l].monetaryCost,c=null!=(i=null==(s=Object.values(n).at(0))||null==(a=s.giftVariant.at(0))?void 0:a.price)?i:0;x("add_to_cart",[{type:"card",productHandle:e.selectedProductHandle,themeId:e.theme.themeId}]),await w({items:[{type:"card",productHandle:r,themeId:o.themeId}],productPrice:d,gift:null!==m?{id:m,price:c}:void 0}),t("cardProductDetailPagePersonaliseClicked")},children:["uk","eu","au"].includes(e.locale)?"Personalise":"Personalize"})})]})]}),(0,s.jsx)("span",{className:eS().bannerAndBenefitsContainer,children:(0,s.jsx)("div",{className:eS().trustpilotContainer,children:(0,s.jsx)(C.H,{className:eS().trustpilotWidget,"data-sentry-element":"TrustPilotMicroStar","data-sentry-source-file":"faceswap-tag-page-content.tsx"})})}),(0,s.jsxs)("div",{className:eS().collapsibleInfos,children:[(0,s.jsx)("span",{children:e.productDetailAttributes}),(0,s.jsx)("span",{children:e.deliveryAndReturns})]}),(0,s.jsx)(d.L,{name:"Related ".concat(e.mainThemeTag.handle," cards"),tagHandle:e.mainThemeTag.handle,themes:e.relatedThemes,additionalClasses:{innerContainer:eS().themeSliderInnerContainer},"data-sentry-element":"ThemeSlider","data-sentry-source-file":"faceswap-tag-page-content.tsx"}),(0,s.jsx)(g.U,{isModalOpen:e.creditsInfoModelOpen,productPrice:j.PC[e.locale].monetaryCost,closeModal:()=>e.setCreditsInfoModelOpen(!1),"data-sentry-element":"CreditsInfoModal","data-sentry-source-file":"faceswap-tag-page-content.tsx"})]}),(0,b.PL)(e.productDetailPage.blocks,e.blockDependencies)]})},eX=e=>(0,s.jsxs)("div",{className:ez().faceswapBestPracticeItem,"data-sentry-component":"FaceswapBestPracticeItem","data-sentry-source-file":"faceswap-tag-page-content.tsx",children:[(0,s.jsx)("img",{src:e.positive?"/assets/icons/faceswap-best-practive-icon-tick.png":"/assets/icons/faceswap-best-practive-icon-cross.png",width:24,height:24,alt:"Best practice - ".concat(e.text)}),(0,s.jsx)("span",{children:e.text})]}),e$=e=>{let{children:a,link:t}=e;return t?(0,s.jsx)(y.N_,{className:ez().cardPreviewContainer,href:t,"data-sentry-element":"Link","data-sentry-component":"CardPreviewContainer","data-sentry-source-file":"faceswap-tag-page-content.tsx",children:a}):(0,s.jsx)("span",{className:ez().cardPreviewContainer,"data-sentry-component":"CardPreviewContainer","data-sentry-source-file":"faceswap-tag-page-content.tsx",children:a})},e0=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],e1=e=>{let{children:a,link:t}=e;return t?(0,s.jsx)(y.N_,{href:t,"data-sentry-element":"Link","data-sentry-component":"CardPreviewContainer","data-sentry-source-file":"index.page.tsx",children:a}):(0,s.jsx)("span",{"data-sentry-component":"CardPreviewContainer","data-sentry-source-file":"index.page.tsx",children:a})},e2=()=>(0,s.jsxs)("div",{className:eS().printedLocallyBanner,"data-sentry-component":"PrintedLocallyBanner","data-sentry-source-file":"index.page.tsx",children:[(0,s.jsx)("div",{className:eS().printedLocallyIconWrap,children:(0,s.jsx)("img",{className:eS().printedLocallyIcon,src:"/assets/icons/map-red-pin.svg",alt:"map pin",width:24,height:24})}),(0,s.jsxs)("div",{className:eS().printedLocallyText,children:[(0,s.jsx)("p",{className:eS().printedLocallyHeadline,children:"Delivered globally, printed locally."}),(0,s.jsx)("p",{className:eS().printedLocallyDescription,children:"Our worldwide network of printers means your card
1is always made locally, providing faster delivery and lower emissions."})]})]}),e3=e=>{let{canProceedToEditor:a,editorLink:t,theme:i,pcTemplate:n,productHandle:r,orientation:l,onClickPortraitThumbnail:o,onClickLandscapeThumbnail:d}=e,{isMobileOrTablet:c}=(0,P.Ln)(),u=(0,k.u)(i),m={theme:i,pcTemplate:n,productHandle:r},h=(0,s.jsx)("div",{className:eS().deliveryTagContainer,children:(0,s.jsxs)("span",{className:eS().deliveryTag,children:[(0,s.jsx)("img",{src:"/assets/product-detail-page/free-delivery.png",alt:"free delivery icon",width:128,height:128,className:eS().deliveryTagIcon}),(0,s.jsx)("span",{children:"Free worldwide delivery"})]})}),g=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return(0,s.jsxs)("div",{role:"presentation",className:a,onClick:i,"data-sentry-component":"preview","data-sentry-source-file":"index.page.tsx",children:[c&&h,(0,s.jsx)(f.e,{orientation:e,...m,isHero:t,"data-sentry-element":"ThemePreview","data-sentry-source-file":"index.page.tsx"})]})},_=g(l,eS().heroImage,!0),y=g("portrait",(0,A.lM)(eS().portraitThumbnail,("portrait"===l||"CP"===r)&&eS().isSelectedOrientation),!1,o),v=i.payload.orientationLocked&&"portrait"===i.orientation,x="CP"===r||v||u?null:g("landscape",(0,A.lM)(eS().landscapeThumbnail,"landscape"===l&&eS().isSelectedOrientation),!1,d),C=[y,x].filter(e=>e);return c?(0,s.jsx)(p.p,{hideArrows:!0,slides:C,additionalClasses:{container:eS().thumbnailCarousel,pageIndicator:eS().carouselPageIndicator,activePageIndication:eS().activePageIndication},"data-sentry-element":"CarouselV2","data-sentry-component":"Previews","data-sentry-source-file":"index.page.tsx"}):(0,s.jsxs)("div",{className:eS().previews,"data-sentry-component":"Previews","data-sentry-source-file":"index.page.tsx",children:[(0,s.jsxs)(e1,{link:a?t:null,"data-sentry-element":"CardPreviewContainer","data-sentry-source-file":"index.page.tsx",children:[h,_]}),(0,s.jsxs)("div",{className:eS().thumbnailsContainer,children:[y,x]})]})};var e4=!0;let e8=e=>{var a,t,i;let{theme:p,relatedThemes:f,mainThemeTag:Q,relatedTags:Z,layout:q,productDetailPage:X,topProductDetailPage:$,blockDependencies:ee,hasOccasionPage:ea,alternatePages:et}=e,es=(0,B.r)(),[ei,er]=(0,l.useState)(5),{isMobile:el,isMobileOrTablet:eo}=(0,P.Ln)(),ed=!eo,[ec,eu]=(0,j.F)("activeDraftId"),[ep,em]=(0,W.OI)("seo-unhiding-attribute-linking"),eh=(0,I.Q)(),{locale:eg}=(0,T.Y)(),{pdpDetails:e_,setPDPDetails:ey}=(0,D.E)(),{trackPageViewEvents:ef,trackCheckoutEvents:ex,trackAddToCartMetaPixel:eC}=(0,N.A)(),{trackEvent:eb}=(0,F.z1)(),[ej,eI]=(0,l.useState)(!1),[eP,eN]=(0,l.useState)(!1),[ek,eT]=(0,l.useState)("GC"),[eL,eB]=(0,l.useState)(null),[eE,eF]=(0,l.useState)(!1),[eM,eA]=(0,l.useState)(),[eR,eH]=(0,l.useState)(null),{ctx:eO}=(0,v._8)(),eG=!!eO&&!("userToken"in eO),[eU,eV]=(0,l.useState)(void 0),{value:eW,isLoading:eJ}=(0,L.p)("orientation","string"),{value:ez,isLoading:eY}=(0,L.p)("productHandle","string"),{value:eK,isLoading:eQ}=(0,L.p)("pcTemplate","string"),eZ=(0,E.C)({theme:p}),eX=(0,k.u)(p)?"portrait":p.payload.orientationLocked?p.orientation:"landscape",e$="CP"===ek?"GC":ek,e1=null!=eL?eL:"GC"===e$?"portrait":eX,e4=(0,l.useRef)(null),[e8,e6]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=()=>{if(!e4.current||ed)return;let e=e4.current.getBoundingClientRect().top<0;e6(a=>a!==e?e:a)};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[]),(0,l.useEffect)(()=>{eJ&&eY&&eQ||(ez&&eT(ez),eW&&eB(eW),es.replace({pathname:window.location.pathname,query:{}}))},[eJ,eY,eQ,eW,ez,eK]);let{pdpUpsellBundles:e7,isUpsellBundlesLoading:e9}=(0,M.c)({productHandle:ek}),[e5]=(0,W.OI)("pdp-delivery-estimator-web");(e=>{let{isUserLoggedOut:a,isUpsellBundlesLoading:t,pdpUpsellBundles:s,onSelectBundleId:i}=e,n=(0,l.useRef)(!1);(0,l.useEffect)(()=>{if(!a||t||!s.length||n.current)return;let e=s.at(-1);n.current=!0,i(null==e?void 0:e.bundle.bundleId)},[a,t,s,i])})({isUserLoggedOut:eG,isUpsellBundlesLoading:e9,pdpUpsellBundles:e7,onSelectBundleId:eV});let{handle:ae}=Q,aa="Face Swap"===ae,at=!!(!aa||eM);(0,l.useEffect)(()=>{ep&&em&&em.isSEOUnhidingAttributesIds&&em.isSEOUnhidingAttributesIds.includes(p.themeId)&&(eI(!0),eN(!0))},[em]);let as=[Q.handle,...Z.map(e=>{let{handle:a}=e;return a})],ai=[...as.filter(e=>O.includes(e))],an=[...as.filter(e=>G.includes(e))],ar=[...as.filter(e=>H.includes(e))],[al,,ao]=(0,j.F)("subTagHandleClicked"),ad=eG&&e7.length,{url:ac}=(0,Y.C)("front",{themeId:p.themeId,productHandle:ek,presetUserImageURL:eM,giftId:eR,cardPackQuantity:ei,pdpCreditUpsellBundleId:eU}),{seoTitle:au,pageTitle:ap,cardDescription:am}=null!=$?$:{},ah=(0,U.t)(p,eg),ag=(0,U.E)({theme:p,locale:eg,mainTagHandle:Q.handle,datoPageTitle:ap}),a_=Q.handle.trim().toLowerCase(),ay=e=>e.replaceAll("{tag}",a_).replaceAll("{Tag}",(0,J.Zn)(a_)),af="".concat(au||(null==ah?void 0:ah.title)||ay(X.title)," | TouchNote").concat("us"!==eg?" ".concat(eg.toUpperCase()):""),av=am||(null==ah?void 0:ah.description)||ay(X.description);(0,l.useEffect)(()=>{ef({product_code:p.themeId,product_name:"".concat(Q.handle.trim()," ").concat(z.r[e$].displayName)})},[ef]);let ax={themeId:p.themeId,mainTagHandle:Q.handle.trim(),subTagHandle:(null==al?void 0:al.trim())||null};(0,l.useEffect)(()=>{ao||ey(ax)},[ao]),(0,l.useEffect)(()=>{ax.themeId===(null==e_?void 0:e_.themeId)&&ax.mainTagHandle===e_.mainTagHandle&&ax.subTagHandle===e_.subTagHandle&&ex("view_item",[{type:"card",productHandle:e$,themeId:p.themeId}])},[null==e_?void 0:e_.themeId,null==e_?void 0:e_.mainTagHandle,null==e_?void 0:e_.subTagHandle,e$]);let aC=(0,c.s)({page:"product-detail-page",hasOccasionPage:ea,locale:eg,tagHandle:Q.handle,subTagHandle:ao?"":al}),ab=(0,s.jsxs)("div",{className:eS().creditInfo,onClick:()=>eF(!0),children:[(0,s.jsx)("img",{className:eS().creditIcon,alt:"credit icon",src:"/assets/credits/credit.png",width:57,height:58}),(0,s.jsxs)("span",{className:eS().creditInfoText,children:["Unlock savings when you pay with credits."," ",(0,s.jsx)("span",{className:eS().findOutMoreText,children:"Find out more"})]})]}),aw=e=>e.map((a,t)=>(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(y.N_,{href:"/personalised-cards/".concat((0,o.Iq)(a),"/"),children:a},a),t!==e.length-1&&", "]},a)),aj=(e=>{let{locale:a,styleTags:t,occasion:s,name:i,themeId:n,description:r,imageUrl:l,cardProducts:o,productUrl:d}=e,{currencyCode:c}=A.IB[a],u="TouchNote ".concat(a.toUpperCase()),p={"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Frid
1ay"]},m=[...e0.map(e=>({"@type":"OfferShippingDetails",shippingDestination:{"@type":"DefinedRegion",addressCountry:e},deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:p,transitTime:{"@type":"QuantitativeValue",unitCode:"d",minValue:3,maxValue:6}}})),{"@type":"OfferShippingDetails",shippingDestination:{"@type":"DefinedRegion",addressCountry:"GB"},deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:p,cutoffTime:"14:00:00",transitTime:{"@type":"QuantitativeValue",unitCode:"d",minValue:1,maxValue:3}}},{"@type":"OfferShippingDetails",shippingDestination:{"@type":"DefinedRegion",addressCountry:"DE"},deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:p,transitTime:{"@type":"QuantitativeValue",unitCode:"d",minValue:1,maxValue:3}}},{"@type":"OfferShippingDetails",shippingDestination:{"@type":"DefinedRegion",addressCountry:"US"},deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:p,transitTime:{"@type":"QuantitativeValue",unitCode:"d",minValue:2,maxValue:6}}},{"@type":"OfferShippingDetails",shippingDestination:{"@type":"DefinedRegion",addressCountry:"CA"},deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:p,transitTime:{"@type":"QuantitativeValue",unitCode:"d",minValue:7,maxValue:10}}},{"@type":"OfferShippingDetails",shippingDestination:{"@type":"DefinedRegion",addressCountry:"AU"},deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:p,transitTime:{"@type":"QuantitativeValue",unitCode:"d",minValue:3,maxValue:5}}},{"@type":"OfferShippingDetails",deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:p,transitTime:{"@type":"QuantitativeValue",unitCode:"d",minValue:5,maxValue:10}}}];return{"@context":"https://schema.org",...{"@type":"Product",additionalProperty:[...t.map(e=>({"@type":"PropertyValue",name:"Style",value:e})),{"@type":"PropertyValue",name:"Occasion",value:s}],name:i,image:l,brand:u,description:r,sku:n,category:"".concat((0,J.ol)(a,!0)," cards"),isVariantOf:[{"@type":"ProductModel",name:"Postcard",image:l,size:o.PC[a].displaySize,offers:[{"@type":"Offer",price:(o.PC[a].monetaryCost/100).toFixed(2),priceCurrency:c,itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",url:d,shippingDetails:m}]},{"@type":"ProductModel",name:"Greeting Card",image:l,size:o.GC[a].displaySize,offers:[{"@type":"Offer",price:(o.GC[a].monetaryCost/100).toFixed(2),priceCurrency:c,itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",url:d,shippingDetails:m}]}],hasMerchantReturnPolicy:{"@type":"MerchantReturnPolicy",returnPolicyCategory:"https://schema.org/MerchantReturnNotPermitted",applicableCountry:["GB","US","CA","AU",...e0]},review:[{"@type":"Review",publisher:{"@type":"Organization",name:u},..."uk"===a?{reviewBody:"It's so easy to send little notes to family to let them know you are thinking of them. I love the easter and Christmas postcards for my granddaughter",author:{"@type":"Person",name:"Jacquelyn, London UK"}}:{reviewBody:'I use TouchNote to keep my mum in touch with moments in my life. She doesn\'t "do" technology, but TouchNote means I can send her the highlights and she just loves receiving her postcards.',author:{"@type":"Person",name:"James, US"}}}],itemCondition:"https://schema.org/NewCondition"}}})({description:av,imageUrl:"https://cdn.touchnotes.com/shared/productThemes/".concat(p.thumbnailUrl),themeId:p.themeId,locale:eg,name:ag,occasion:Q.handle.trim(),styleTags:an,cardProducts:eh,productUrl:"".concat("https://touchnote.com").concat((0,y.zw)(es.asPath))}),aS=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.G,{title:af,description:(null==ah?void 0:ah.meta_description)||av,...["uk","us"].some(e=>eg===e)?{structuredData:[(0,s.jsx)(r.gk,{itemListElements:(0,V.oH)(aC.concat({displayName:ag,link:(0,y.zw)(es.asPath)}),eg)},"BreadcrumbJsonLd")]}:{}}),(0,s.jsx)(n(),{children:(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(aj)}},"product-schema")})]}),{allGifts:aI}=(0,S.A)(),aP=X.gifts.reduce((e,a)=>{let t=(0,w.Ec)(a.gift);if(!t||e[t])return e;let s=aI?aI.find(e=>e.id===t):{};return s&&(e[t]=s),e},{}),aN=(null==(a=Object.values(aP))?void 0:a.length)?Object.values(aP).find(e=>e.id===eR):null,ak=(null==aN||null==(i=aN.giftVariant)||null==(t=i.at(0))?void 0:t.description)||"",aT=["uk","us"].some(e=>e===eg)&&[ai,ar,an].some(e=>!!e.length)?(0,s.jsxs)(m.K,{heading:"Product Details",isOpen:eP,onExpand:()=>eN(!eP),children:[(0,s.jsxs)("ul",{children:[!!ai.length&&(0,s.jsxs)("li",{children:["Card Type: ",aw(ai)]}),!!ar.length&&(0,s.jsxs)("li",{children:["Recipient: ",aw(ar)]}),!!an.length&&(0,s.jsxs)("li",{children:["Style: ",aw(an)]})]}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:ak?"<p><b>Gift Info:</b></p>\n ".concat(ak):""}}),(0,s.jsx)("div",{className:eS().cardDescription,children:av})]}):null,{cardsDeliveryInfoUK:aD,giftsDeliveryInfo:aL,cardsDeliveryInfoROW:aB}=(0,K.p)(),aE=(0,s.jsx)(m.K,{heading:"Delivery & Returns",isOpen:ej,onExpand:()=>{eI(e=>
1!e),ej||eb("cardProductDetailPageMoreInfoOpened")},children:(0,s.jsx)("div",{className:eS().cardDeliveryInfo,children:"uk"===eg?(0,s.jsxs)(s.Fragment,{children:[aD,(0,s.jsx)("br",{}),aL]}):aB})});if(aa)return(0,s.jsx)(R.c,{alternatePages:et,children:(0,s.jsx)(_.P,{data:q,breadcrumbSteps:aC,additionalClassNames:{containerClass:eS().layout,breadcrumbContainerClassName:el?eS().breadCrumbContainer:void 0},hasDarkBackground:!!el,children:(0,s.jsx)(eq,{theme:p,relatedThemes:f,mainThemeTag:Q,relatedTags:Z,productDetailPage:X,topProductDetailPage:$,blockDependencies:ee,layout:q,hasOccasionPage:ea,selectedProductHandle:e$,setSelectedProductHandle:eT,pageHeader:ag,cardDescription:av,locale:eg,isMembership2024Enabled:"on",creditInfoText:ab,productDetailAttributes:aT,deliveryAndReturns:aE,isMobileOrTablet:eo,creditsInfoModelOpen:eE,setCreditsInfoModelOpen:eF,onFaceswapSuccess:e=>{eA(e)},onFaceswapReset:()=>eA(null),canProceedToEditor:at,gifts:aP,alternatePages:et})})});let aF=(0,s.jsx)(ew,{productHandle:"CP"===ek?"GC":ek,giftInfos:aP,selectedGiftId:eR,onSelectGift:eH}),aM=!eG,aA=!ad,aR=e7.find(e=>{let{bundle:a}=e;return a.bundleId===eU}),aH=null==aR?void 0:aR.bundle.offeredCredits,aO=aH?aH/eh[ek][eg].creditCost:0,aG=aA?"".concat(["uk","eu","au"].includes(eg)?"Personalise":"Personalize"," this card"):"Continue ".concat(aO?"with ".concat(aO):"without"," card bundle â");return(0,s.jsx)(R.c,{alternatePages:et,"data-sentry-element":"AlternatePagesProvider","data-sentry-component":"ProductDetailPage","data-sentry-source-file":"index.page.tsx",children:(0,s.jsxs)(_.P,{data:q,breadcrumbSteps:aC,additionalClassNames:{containerClass:eS().layout},hasDarkBackground:!1,"data-sentry-element":"Layout","data-sentry-source-file":"index.page.tsx",children:[aS,(0,s.jsxs)(h.m,{"data-sentry-element":"Container","data-sentry-source-file":"index.page.tsx",children:[(0,s.jsxs)("div",{className:eS().cardDetails,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(e3,{canProceedToEditor:at,editorLink:ac,theme:p,pcTemplate:null!=eK?eK:eZ,productHandle:ek,orientation:e1,onClickLandscapeThumbnail:()=>eB("landscape"),onClickPortraitThumbnail:()=>eB("portrait"),"data-sentry-element":"Previews","data-sentry-source-file":"index.page.tsx"}),ed&&(aA||"on"===e5)&&(0,s.jsx)(e2,{}),ed&&"on"===e5&&(0,s.jsx)("div",{className:(0,A.lM)(eS().trustpilotContainer,eS().containLeft),children:(0,s.jsx)(C.H,{className:eS().trustpilotWidget})}),ed&&!aA&&aF]}),(0,s.jsxs)("div",{className:eS().cardInfo,children:[(0,s.jsx)("h1",{children:ag}),(0,s.jsx)("div",{className:eS().cardSelections,children:ad?(0,s.jsx)(en,{selectedProductHandle:ek,onSelectProductHandle:eT,pdpCreditUpsellBundleId:eU,onPdpCreditUpsellBundleIdChange:eV}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:eS().cardType,children:"Select card type"}),(0,s.jsx)(eD,{cardProducts:eh,locale:eg,selectedProductHandle:ek,onSelectProductHandle:eT,selectedCardPackQuantity:ei,onSelectCardPackQuantity:er})]})}),!1,eo&&(0,s.jsx)(e2,{}),aA&&aF,(0,s.jsx)("div",{ref:e4}),(0,s.jsxs)("span",{className:(0,A.lM)(eS().personaliseButtonContainer,e8&&eS().stickyButton),children:[(0,s.jsx)(u._F,{variant:ad?"dark":"primary",size:"large",href:ac,className:eS().personaliseButton,rel:"nofollow",onClick:async()=>{var e,a,t;eo&&ec&&eu(null);let s=eh[e$][eg].monetaryCost,i=null!=(t=null==(a=Object.values(aP).at(0))||null==(e=a.giftVariant.at(0))?void 0:e.price)?t:0;if(ex("add_to_cart",[{type:"card",productHandle:e$,themeId:p.themeId}]),await eC({items:[{type:"card",productHandle:e$,themeId:p.themeId}],productPrice:s,gift:null!==eR?{id:eR,price:i}:void 0}),eb("cardProductDetailPagePersonaliseClicked",{productHandle:ek,purchasedCreditBundles:aM?0:aH}),eR&&aN){let e=aN.giftVariant.at(0);eb("giftUpsellTapped",{giftVariantID:null==e?void 0:e.id,giftVariantName:null==e?void 0:e.title})}},"data-sentry-element":"CallToActionLink","data-sentry-source-file":"index.page.tsx",children:aG}),ed&&!aA&&"on"!==e5&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:eS().trustpilotContainer,children:(0,s.jsx)(C.H,{className:eS().trustpilotWidget})}
1),!aA&&ed&&(0,s.jsx)(e2,{})]})]}),"on"===e5&&(0,s.jsx)(ev,{locale:eg,productHandle:ek,hasGift:null!==eR})]})]}),(0,s.jsx)("span",{className:eS().bannerAndBenefitsContainer,children:aA&&!("on"===e5&&ed)&&(0,s.jsx)("div",{className:eS().trustpilotContainer,children:(0,s.jsx)(C.H,{className:eS().trustpilotWidget})})}),(0,s.jsxs)("div",{className:eS().collapsibleInfos,children:[(0,s.jsx)("span",{children:aT}),(0,s.jsx)("span",{children:aE})]}),(0,s.jsx)(d.L,{name:"Related ".concat(Q.handle," cards"),tagHandle:Q.handle,themes:f,additionalClasses:{innerContainer:eS().themeSliderInnerContainer},"data-sentry-element":"ThemeSlider","data-sentry-source-file":"index.page.tsx"}),(0,s.jsx)(g.U,{isModalOpen:eE,productPrice:eh.PC[eg].monetaryCost,closeModal:()=>eF(!1),"data-sentry-element":"CreditsInfoModal","data-sentry-source-file":"index.page.tsx"})]}),(0,b.PL)(X.blocks,ee)]})})}},84408:(e,a,t)=>{"use strict";t.d(a,{i:()=>i});var s=t(85283);let i=(e,a)=>"".concat(e," ").concat((0,s.yf)(a).format("dddd Do MMMM"))},84990:(e,a,t)=>{"use strict";t.d(a,{c:()=>i});var s=t(75708);let i=e=>{let{productHandle:a}=e,t="GC"===a?a:"PC",{bundles:i,isLoadingBundles:n}=(0,s.k)(t,"PDP_6_CREDIT_PACK_EXP_2026"),{bundles:r,isLoadingBundles:l}=(0,s.k)(t,"PDP_10_CREDIT_PACK_EXP_2026");return{pdpUpsellBundles:[...i,...r],isUpsellBundlesLoading:n||l}}},89005:e=>{e.exports={sectionLabel:"stacked-double-bundle-upsell-layout_sectionLabel__9XDYc",orderSection:"stacked-double-bundle-upsell-layout_orderSection__DxKeF",orderSectionLoader:"stacked-double-bundle-upsell-layout_orderSectionLoader__D4RaY",orderTypeStack:"stacked-double-bundle-upsell-layout_orderTypeStack__JqBEE",orderTypeCard:"stacked-double-bundle-upsell-layout_orderTypeCard__8EIMP",orderTypeCardActive:"stacked-double-bundle-upsell-layout_orderTypeCardActive__ayeVt",badgeCard:"stacked-double-bundle-upsell-layout_badgeCard__wGrk_",mostPopularBadge:"stacked-double-bundle-upsell-layout_mostPopularBadge__rWTsZ",bestValueBadge:"stacked-double-bundle-upsell-layout_bestValueBadge__w4xnX",cardContentRow:"stacked-double-bundle-upsell-layout_cardContentRow__eYMoT",radioSelection:"stacked-double-bundle-upsell-layout_radioSelection__lb2Qt",orderMain:"stacked-double-bundle-upsell-layout_orderMain__jZm35",titlePriceRow:"stacked-double-bundle-upsell-layout_titlePriceRow__AWiAJ",orderTitleBlock:"stacked-double-bundle-upsell-layout_orderTitleBlock__crHof",orderTitle:"stacked-double-bundle-upsell-layout_orderTitle__ZWeXP",orderPriceCol:"stacked-double-bundle-upsell-layout_orderPriceCol__6xFH3",priceMain:"stacked-double-bundle-upsell-layout_priceMain__JB3i3",priceSub:"stacked-double-bundle-upsell-layout_priceSub__qGJIn",subtitle:"stacked-double-bundle-upsell-layout_subtitle__ZMxGo",divider:"stacked-double-bundle-upsell-layout_divider__aUJoq",whyBundlesSection:"stacked-double-bundle-upsell-layout_whyBundlesSection__QuBh3",whyBundlesTitle:"stacked-double-bundle-upsell-layout_whyBundlesTitle__ia0WO",bundleFeatureList:"stacked-double-bundle-upsell-layout_bundleFeatureList__DYH6c",bundleFeature:"stacked-double-bundle-upsell-layout_bundleFeature__ypOnq",checkIcon:"stacked-double-bundle-upsell-layout_checkIcon__WCAOY",bundleFeatureText:"stacked-double-bundle-upsell-layout_bundleFeatureText__ecRjG",bundleFeatureTitle:"stacked-double-bundle-upsell-layout_bundleFeatureTitle__8fp0s",bundleFeatureDescription:"stacked-double-bundle-upsell-layout_bundleFeatureDescription__HxOaa"}},97574:e=>{e.exports={deliveryEstimator:"delivery-estimator_deliveryEstimator__hNFLD",heading:"delivery-estimator_heading__K3C18",description:"delivery-estimator_description__kvBZZ",countrySelectContainer:"delivery-estimator_countrySelectContainer__V9hK2",countrySelect:"delivery-estimator_countrySelect__5__hZ",pinIcon:"delivery-estimator_pinIcon__0dYp0",chevronIcon:"delivery-estimator_chevronIcon__aSzcW",stateSelectContainer:"delivery-estimator_stateSelectContainer__C6s0_",estimate:"delivery-estimator_estimate__LxaUn",loader:"delivery-estimator_loader__0qJDH",estimateLoading:"delivery-estimator_estimateLoading__h7hdL",unavailable:"delivery-estimator_unavailable__ycOO8",truckIcon:"delivery-estimator_truckIcon__J8fQp",service:"delivery-estimator_service__4Y_IO",estimatedDelivery:"delivery-estimator_estimatedDelivery__FBoM9",tracking:"delivery-estimator_tracking__Mvogb",checkIcon:"delivery-estimator_checkIcon__BdbPP"}},99266:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/[personalised_cards]/p/[id]",function(){return t(81638)}])}},e=>{e.O(0,[7366,6374,413,6741,6926,9530,999,4400,2205,636,6593,8792],()=>e(e.s=99266)),_N_E=e.O()}]);
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.