PageSourceSearch

https://wavevisual.com/_next/static/chunks/3790.7120e5e8aa3bb294.js

js wavevisual.com collected 2026-10-04 13:33:55 UTC 2,988 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3790],{23790:function(e,t,l){l.r(t),l.d(t,{PrintPreview:function(){return v}});var r=l(52322),n=l(2784),i=l(96577),o=l.n(i),a=l(93545),s=l(26140),c=l(52522),u=l(92442),d=l(94133),f=l(74304);let v=()=>{var e;let{designId:t,lastUpdatedAt:l}=(0,c.hl)(),{selectedProduct:i}=(0,u.a)(),[v,g]=(0,n.useState)(!1),h=(0,n.useMemo)(()=>{if(!(null==i?void 0:i.gelatoUID)||!t)return null;let e="/img/d/".concat(t,".jpg?cb=").concat(l).concat(f.feconfig.isDEV?"&sandbox=true":"");return(0,a.r)(i.gelatoUID,(0,s.Ww)({src:e,width:1024}),1024,1024)},[t,null==i?void 0:i.gelatoUID,l]);return((0,n.useEffect)(()=>{if(!h){g(!1);return}g(!0);let e=new AbortController;return(function(e){var t,l;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null!==(t=r.maxAttempts)&&void 0!==t?t:4,i=null!==(l=r.retryDelayMs)&&void 0!==l?l:2e3,{signal:o}=r;return new Promise((t,l)=>{let r,a,s=0,c=()=>{r&&(clearTimeout(r),r=void 0),a&&(a.onload=null,a.onerror=null,a=void 0),null==o||o.removeEventListener("abort",u)},u=()=>{c(),l(new DOMException("Aborted","AbortError"))};if(null==o?void 0:o.aborted){u();return}null==o||o.addEventListener("abort",u);let d=()=>{s+=1,(a=new window.Image).onload=()=>{c(),t()},a.onerror=()=>{if(s>=n||(null==o?void 0:o.aborted)){c(),l(Error("preloadImageWithRetry: failed after ".concat(s," attempt(s)")));return}r=setTimeout(d,i)},a.src=e};d()})})(h,{signal:e.signal}).then(()=>g(!1)).catch(()=>g(!1)),()=>{e.abort()}},[h,g,t,null==i?void 0:i.gelatoUID]),h)?(0,r.jsxs)("div",{className:"absolute inset-0 z-[100]",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-slate-100"}),(0,r.jsxs)("div",{className:"relative h-full w-full flex items-center justify-center p-8",children:[v&&(0,r.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-black/50",children:(0,r.jsx)(d.p,{fontSize:72})}),h&&(0,r.jsx)("div",{className:"relative w-full h-full flex items-center justify-center",children:(0,r.jsx)(o(),{loader:e=>{let{src:t}=e;return t},src:h,alt:"Print preview of ".concat(null==i?void 0:null===(e=i.category)||void 0===e?void 0:e.replace(/_/g," ")),width:1024,height:1024,draggable:!1,className:"w-full max-w-full max-h-full object-cover rounded-lg shadow-2xl",priority:!0,sizes:"(max-width: 1024px) 90vw, 1024px"})})]})]}):null}},92442:function(e,t,l){l.d(t,{a:function(){return r}});let r=(0,l(43841).U)(e=>({selectedProduct:{category:void 0,gelatoUID:void 0},preview:{isLoading:!1},setSelectedProduct:(t,l)=>e({selectedProduct:{category:t,gelatoUID:l}})}))},93545:function(e,t){t.r=void 0,t.r=(e,t,l,r)=>{let n=new URLSearchParams({type:"scene",scene:"default",product_uid:e});return t?n.set("image_url",t):n.set("image_url","https://gelato-api-test.s3.amazonaws.com/preflight/assets/tests/mountain-1024x1024.jpg"),l&&n.set("width",l.toString()),r&&n.set("height",r.toString()),"https://preflight-cdn.live.gelato.tech/product/preview?".concat(n.toString())}}}]);

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.