PageSourceSearch

https://touchnote.com/_next/static/chunks/701.4b13e0895db1c999.js

js touchnote.com collected 2026-09-24 09:35:20 UTC 9,812 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3dc90606-8530-40ee-9055-f73e80b57b2d",e._sentryDebugIdIdentifier="sentry-dbid-3dc90606-8530-40ee-9055-f73e80b57b2d")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[701,2334],{653:(e,r,t)=>{"use strict";t.d(r,{F:()=>u});var n=t(37876),a=t(14232),l=t(11079),i=t(87240),s=t(2361),c=t.n(s);let u=e=>{let{children:r,onPageChange:t,onScroll:s,additionalClasses:u}=e,d=(0,a.useRef)(null),[o,p]=(0,a.useState)(0);(0,a.useEffect)(()=>{var e;let r=e=>{if(!(e.target instanceof HTMLDivElement))return;let r=e.target,n=r.children.length,a=Math.round(r.scrollLeft/(r.scrollWidth/n));null==t||t(a),p(a)};return null==(e=d.current)||e.addEventListener("scroll",r),()=>{var e;return null==(e=d.current)?void 0:e.removeEventListener("scroll",r)}},[]);let f=a.Children.toArray(r);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:d,className:(0,l.lM)(c().carousel,null==u?void 0:u.carousel),onScroll:s,children:a.Children.map(f,(e,r)=>(0,n.jsx)("div",{className:c().carouselItem,children:e},r))}),(0,n.jsx)(i.d,{className:(0,l.lM)(c().pageIndicator,null==u?void 0:u.pageIndicator),currentPage:o,numberOfPages:a.Children.count(f),additionalClasses:{activePageIndication:null==u?void 0:u.activePageIndication},"data-sentry-element":"PageIndicator","data-sentry-source-file":"carousel.tsx"})]})}},2361:e=>{e.exports={carousel:"carousel_carousel__YxcZe",carouselItem:"carousel_carouselItem__DrUpo",pageIndicator:"carousel_pageIndicator__8bxys"}},18855:e=>{e.exports={pageIndicator:"page-indicator_pageIndicator__ZmbMQ",circle:"page-indicator_circle__6DQXE",active:"page-indicator_active__glVVM"}},45321:(e,r,t)=>{"use strict";t.d(r,{U:()=>u});var n=t(37876),a=t(14232),l=t(91613),i=t(6955),s=t(64929),c=t.n(s);let u=e=>{let{address:r}=e,t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=t.current;if(!e)return()=>{};let r=()=>{let r=e.offsetWidth;e.style.setProperty("--scaleFactor","".concat(r/648))};r();let n=new ResizeObserver(r);return n.observe(e),()=>{n.disconnect()}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.s,{"data-sentry-element":"EditorFonts","data-sentry-source-file":"greeeting-card-envelope-preview.tsx"}),(0,n.jsx)("div",{ref:t,className:c().container,style:{aspectRatio:714/508},children:r&&(0,n.jsxs)("div",{className:c().text,children:[r.firstName," ",r.lastName,(0,n.jsx)("br",{}),(0,i.o)(r,!1)]})})]})}},58935:(e,r,t)=>{"use strict";t.d(r,{N:()=>c,g:()=>s});var n=t(37876),a=t(45321),l=t(9911),i=t(22093);let s=(e,r)=>{var t,s,c,u,d,o,p,f;let v=null!=r?r:null==(t=e.shipments.at(0))?void 0:t.address,m=null==(s=e.shipments.at(0))?void 0:s.orderedProducts.at(0),g=null==m||null==(c=m.product)?void 0:c.handle,h=null==m?void 0:m.orientation.toLowerCase(),_=null==m?void 0:m.productImages.at(0),w=null==m?void 0:m.orderMessageImageUrl,x=null==m?void 0:m.additionalImages,y=null==m||null==(u=m.geolocation)?void 0:u.mapCaption;if(!g||!h||!_)return null;let I={productHandle:g.includes("PC")?"PC":"GC",orientation:h,renderedImageURL:_,...(null==x?void 0:x.stampUrl)?{stampUrl:x.stampUrl}:{},...(null==x?void 0:x.mapUrl)?{map:{type:"map",mapUrl:x.mapUrl,...y?{mapCaption:y}:{}}}:{},recipients:[{recipientAddressId:null!=(p=null==v?void 0:v.addressId)?p:null,messages:[null!=(f=null==m||null==(o=m.orderMessage)||null==(d=o.at(0))?void 0:d.text)?f:""],renderedMessageUrl:w}]},b=v&&w?I.productHandle.includes("PC")?(0,n.jsx)(i.R,{draft:I,address:v,displayMode:"preview",renderMessageAsImage:!0,selectedRecipientAddressId:v.addressId}):(0,n.jsx)(l.A,{draft:I,displayMode:"preview",renderMessageAsImage:!0,selectedRecipientAddressId:v.addressId}):null,M=v&&I.productHandle.includes("GC")?(0,n.jsx)(a.U,{address:v}):null;return{editorDraft:I,backOfCardPreview:b,envelopPreviewGC:M}},c=(e,r)=>{var t,s;let c=r?e.recipients.find(e=>e.recipientAddressId===r.addressId):e.recipients.at(0),u=null!=(s=null!=(t=null==r?void 0:r.addressId)?t:null==c?void 0:c.recipientAddressId)?s:null;return{backOfCardPreview:r&&(null==c?void 0:c.renderedMessageUrl)?"PC"===e.productHandle?(0,n.jsx)(i.R,{draft:e,address:r,displayMode:"preview",renderMessageAsImage:!0,selectedRecipientAddressId:u}):(0,n.jsx)(l.A,{draft:e,displayMode:"preview",renderMessageAsImage:!0,selectedRecipientAddressId:u}):null,envelopPreviewGC:r&&"GC"===e.productHandle?(0,n.jsx)(a.U,{address:r}):null}}},63853:(e,r,t)=>{"use strict";t.d(r,{YQ:()=>a,dh:()=>l});var n=t(14232);function a(e,r,t,a){var l=this,i=(0,n.useRef)(null),s=(0,n.useRef)(0),c=(0,n.useRef)(0),u=(0,n.useRef)(null),d=(0,n.useRef)([]),o=(0,n.useRef)(),p=(0,n.useRef)(),f=(0,n.useRef)(e),v=(0,n.useRef)(!0);f.current=e;var m="undefined"!=typeof window,g=!r&&0!==r&&m;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var h=!!(t=t||{}).leading,_=!("trailing"in t)||!!t.trailing,w="maxWait"in t,x="debounceOnServer"in t&&!!t.debounceOnServer,y=w?Math.max(+t.maxWait||0,r):null;return(0,n.useEffect)(function(){return v.current=!0,function(){v.current=!1}},[]),(0,n.useMemo)(function(){var e=function(e){var r=d.current,t=o.current;return d.current=o.current=null,s.current=e,c.current=c.current||e,p.current=f.current.apply(t,r)},t=function(e,r){g&&cancelAnimationFrame(u.current),u.current=g?requestAnimationFrame(e):setTimeout(e,r)},n=function(e){if(!v.current)return!1;var t=e-i.current;return!i.current||t>=r||t<0||w&&e-s.current>=y},I=function(r){return u.current=null,_&&d.current?e(r):(d.current=o.current=null,p.current)},b=function e(){var a=Date.now();if(h&&c.current===s.current&&M(),n(a))return I(a);if(v.current){var l=r-(a-i.current);
1t(e,w?Math.min(l,y-(a-s.current)):l)}},M=function(){a&&a({})},R=function(){if(m||x){var a=Date.now(),c=n(a);if(d.current=[].slice.call(arguments),o.current=l,i.current=a,c){if(!u.current&&v.current)return s.current=i.current,t(b,r),h?e(i.current):p.current;if(w)return t(b,r),e(i.current)}return u.current||t(b,r),p.current}};return R.cancel=function(){var e=u.current;e&&(g?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,d.current=i.current=o.current=u.current=null,e&&a&&a({})},R.isPending=function(){return!!u.current},R.flush=function(){return u.current?I(Date.now()):p.current},R},[h,w,r,y,_,g,m,x,a])}function l(e,r,t){var n=void 0===t?{}:t,l=n.leading,i=n.trailing;return a(e,r,{maxWait:r,leading:void 0===l||l,trailing:void 0===i||i})}},64929:e=>{e.exports={container:"greeting-card-envelope-preview_container__JW_dP",text:"greeting-card-envelope-preview_text__ZWcH2"}},73490:(e,r,t)=>{"use strict";t.d(r,{V6:()=>u,Iw:()=>s});var n=t(18334),a=t(91423),l=t(65534),i=t(6926);let s=/^https:\/\/infra-app-cdn-images(?:-[a-zA-Z0-9]+)?\.s3\.eu-west-1\.amazonaws\.com\/.*$/,c=async(e,r,t,s,c)=>{let u=await fetch(r),d=await u.blob(),o=(0,a.A)(),p=d.type.split("/")[1];o+=".".concat(p);try{let r,{uploadUrls:n}=await (r={images:[(0,i.w8)(o,t,c)]},(0,l.Em)(e,{path:"/image-upload",method:"POST",body:r,apiVersion:"v1"})),{url:a,thumbnail:u}=n.find(e=>e.type===t)||{};if(a){let e=await fetch(a,{method:"PUT",headers:{"Content-Type":"image/".concat(p),...s?{"x-amz-meta-user_uuid":s}:{},...(null==c?void 0:c.orientation)?{"x-amz-meta-orientation":c.orientation}:{}},body:d});if(200===e.status){var f;return{imageURL:null!=(f=e.url.split("?").at(0))?f:"",thumbnailURL:null!=u?u:""}}throw Error("S3 upload failed - response not 200")}throw Error("S3 upload failed - no presigned upload url")}catch(e){throw(0,n.Cp)(e,{tags:{feature:"s3_upload_failed"},extra:{type:t,userId:s,metadata:c}}),e}},u=(e,r,t,n,a)=>c(e,r,t,n,a)},87240:(e,r,t)=>{"use strict";t.d(r,{d:()=>s});var n=t(37876),a=t(11079),l=t(18855),i=t.n(l);let s=e=>{var r;let{numberOfPages:t,currentPage:l,className:s,onPageClick:c,additionalClasses:u}=e,d=null!=(r=null==u?void 0:u.activePageIndication)?r:i().active;return(0,n.jsx)("div",{className:(0,a.lM)(i().pageIndicator,s),"data-sentry-component":"PageIndicator","data-sentry-source-file":"page-indicator.tsx",children:Array.from({length:t}).map((e,r)=>c?(0,n.jsx)("button",{type:"button",onClick:()=>c(r),className:(0,a.lM)(i().circle,r===l&&d)},r):(0,n.jsx)("span",{className:(0,a.lM)(i().circle,r===l&&d)},r))})}},93499:(e,r,t)=>{"use strict";t.d(r,{A:()=>i,e:()=>l});var n=t(64609),a=t(14232);function l(e){var r=(0,a.useState)(function(){return(0,n.CN)("function"==typeof e?e():e,!0)}),t=r[1];return[r[0],(0,a.useCallback)(function(e){t("function"==typeof e?(0,n.jM)(e):(0,n.CN)(e))},[])]}function i(e,r,t){var l=(0,a.useMemo)(function(){return(0,n.jM)(e)},[e]);return(0,a.useReducer)(l,r,t)}},93575:e=>{e.exports={previewSelectors:"preview-selectors_previewSelectors___8Ow6",previewSelector:"preview-selectors_previewSelector__JqOWt",isSelected:"preview-selectors_isSelected__dOm5X",expandWidth:"preview-selectors_expandWidth__7UREq",expandHeight:"preview-selectors_expandHeight__X1RAz"}},94248:(e,r,t)=>{"use strict";t.d(r,{l:()=>s});var n=t(37876),a=t(11079),l=t(93575),i=t.n(l);let s=e=>{let{items:r,selectedId:t,onSelect:l,className:s}=e;return(0,n.jsx)("div",{className:(0,a.lM)(i().previewSelectors,s),"data-sentry-component":"PreviewSelectors","data-sentry-source-file":"preview-selectors.tsx",children:r.map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>l(e.id),"aria-label":e.ariaLabel,"aria-pressed":t===e.id,className:(0,a.lM)(i().previewSelector,t===e.id&&i().isSelected,e.expandWidth&&i().expandWidth,e.expandHeight&&i().expandHeight),children:e.content},e.id))})}},95189:(e,r,t)=>{"use strict";t.d(r,{V:()=>a});var n=t(48936);let a=e=>{let[r]=(0,n.F)("utmParams"),t=new URLSearchParams(r).toString();return"https://touchnote.app.link/".concat(e).concat(t?"?".concat(t):"")}}}]);

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.