PageSourceSearch

https://corriere-art.it/_next/static/chunks/7665-1bf027b27b1927b9.js

js corriere-art.it collected 2026-10-02 01:04:35 UTC 83,887 bytes, 27 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[528,7665],{789:(e,t,s)=>{"use strict";s.d(t,{Q:()=>j});var r=s(54568),a=s(30186),i=s(79452),n=s(84511),l=s(72436),o=s(32592),c=s(12295);let d=e=>new Date(e).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"});s(59764),s(18775);var u=s(81993),h=(0,u.c)({defaultClassName:"_1wgjw30",variantClassNames:{compact:{true:"_1wgjw31",false:"_1wgjw32"}},defaultVariants:{},compoundVariants:[]}),m="_1wgjw36",p=(0,u.c)({defaultClassName:"_1wgjw37",variantClassNames:{tone:{redeemable:"_1wgjw38",redeemed:"_1wgjw39",soldOut:"_1wgjw3a"}},defaultVariants:{},compoundVariants:[]}),x="_1wgjw33";let j=({banner:e,type:t,name:s,brand:u,product:j,compact:v,containerStyle:y,className:f,bannerBlurHash:g,endDate:b,startDate:w,state:C,totalRedeemed:k,totalAmount:N,totalRedeemableByUser:S,totalRedeemedByUser:_})=>{var R;let E,L,T=(0,l.y)(g),A=!i.$.corriere?.productsPageBrandId,q={productBenefitId:"",name:s,banner:e,bannerBlurHash:g,startDate:w,endDate:b,type:t,totalAmount:N,totalRedeemed:k,state:C,slug:"",product:j,brand:u,totalRedeemableByUser:S,totalRedeemedByUser:_},$=(E=(R=q).totalRedeemableByUser??0,L=R.totalRedeemedByUser??0,R.type===c.lv.DIGITAL?L>0?"Redeemed":E>0?"Redeemable":null:E>0?`${E} Redeemable`:L>0?`${L} Redeemed`:null),I=(_??0)>0&&(S??0)===0?"redeemed":"redeemable",O=C===o.I.EXPIRED,F=!!$&&!O,P=!F&&null!=q.totalAmount&&q.totalRedeemed>=q.totalAmount;return v?(0,r.jsxs)("div",{className:`${h({compact:!0})} ${f??""}`,style:y,children:[(0,r.jsx)("span",{className:x,children:t}),(0,r.jsx)(n.o,{variant:"h5",typographyStyle:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:s}),F&&(0,r.jsx)("span",{className:p({tone:I}),children:$}),P&&(0,r.jsx)("span",{className:p({tone:"soldOut"}),children:"Sold Out"}),(0,r.jsxs)("div",{className:m,children:[b&&(0,r.jsx)("span",{children:d(b)}),A&&u?.name&&(0,r.jsxs)(r.Fragment,{children:[b&&(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsx)("span",{children:u.name})]})]})]}):(0,r.jsxs)("div",{className:`${h({compact:!1})} ${f??""}`,style:y,children:[(0,r.jsx)("div",{className:"_1wgjw3b",style:{aspectRatio:"4 / 3",flexShrink:0},children:(0,r.jsx)(a.default,{src:`https://api.corriere-art.it${e}`,alt:s,fill:!0,sizes:"100%",className:"_1wgjw3c",placeholder:"blur",blurDataURL:T})}),(0,r.jsxs)("div",{className:"_1wgjw3e",children:[(0,r.jsx)("span",{className:x,style:{gridRow:"1"},children:t}),(0,r.jsx)("div",{style:{gridRow:"2",overflow:"hidden",minHeight:0},children:(0,r.jsx)("span",{className:"_1wgjw3g",children:s})}),A&&u?.name&&(0,r.jsx)("span",{className:"_1wgjw35",style:{gridRow:"3"},children:u.name}),F&&(0,r.jsx)("span",{className:p({tone:I}),style:{gridRow:"4",alignSelf:"start"},children:$}),P&&(0,r.jsx)("span",{className:p({tone:"soldOut"}),style:{gridRow:"4",alignSelf:"start"},children:"Sold Out"}),j&&(0,r.jsxs)("div",{className:"_1wgjw3h",style:{gridRow:"6"},children:[(0,r.jsx)(a.default,{src:`https://api.corriere-art.it${j.thumbnail}`,alt:j.name,width:44,height:44,className:"_1wgjw3i"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"_1wgjw3j",children:"Unlocked by"}),(0,r.jsx)("div",{className:"_1wgjw3k",children:j.name})]})]}),b&&(0,r.jsx)("span",{className:m,style:{gridRow:"7"},children:d(b)})]})]})}},2323:(e,t,s)=>{"use strict";s.d(t,{L:()=>R});var r=s(54568),a=s(7620),i=s(71430),n=s.n(i),l=s(84511),o=s(77028),c=s(12295),d=s(90372),u=s(51546),h=s(76456),m=s(19993),p=s(89099),x=s(79025),j=s(24087),v=s(61026),y=s(13266),f=s(30186),g=s(73531),b=s(10739),w=s(3943);s(59764),s(84360);var C=(0,s(81993).c)({defaultClassName:"xte6ry2",variantClassNames:{color:{green:"xte6ry3",red:"xte6ry4"}},defaultVariants:{},compoundVariants:[]}),k="xte6ry8",N="xte6ry1";let S=({isOpen:e,onClose:t})=>{let{push:s}=(0,p.useRouter)(),i=(0,d.J)(),{product:n}=(0,o.ot)(),[c,m]=(0,a.useState)(!1),{update:v}=(0,h.useSession)(),S=i?.credits??0,_=n.onlineCreditPrice??0,R=(0,j._)(_),E=S>=_,{mutate:L,isPending:T}=(0,g.Pi)({onSuccess:async()=>{m(!0),await v()},onError(e){e.errorMessage&&(y.oR.error((0,r.jsx)(w.y,{title:e.errorMessage,type:w.x.error})),t())}});return(0,a.useEffect)(()=>()=>m(!1),[]),(0,r.jsx)(b.a,{title:c?void 0:"BUY",isOpen:e,onClose:t,maxWidth:"400px",children:c?(0,r.jsxs)("div",{className:"xte6ry7",children:[(0,r.jsx)(l.o,{variant:"h5",typographyStyle:{width:200,textAlign:"center",textTransform:"uppercase"},children:"Successfully purchased"}),(0,r.jsx)(f.default,{src:"/success.svg",alt:"Successfully purchased",width:80,height:80}),(0,r.jsx)(x.$,{variant:"primary",onClick:()=>s(u.JZ.account.myCollection.byType("products")),className:k,children:"Go to Collection"})]}):(0,r.jsxs)("div",{className:"xte6ry0",children:[(0,r.jsxs)("div",{className:N,children:[(0,r.jsx)(l.o,{children:"Balance:"}),(0,r.jsx)(l.o,{className:C({color:E?"green":"red"}),children:(0,j._)(S)})]}),(0,r.jsxs)("div",{className:N,children:[(0,r.jsx)(l.o,{children:"Price:"}),(0,r.jsx)(l.o,{className:"xte6ry5",children:R})]}),(0,r.jsxs)("div",{className:"xte6ry6",children:["Are you sure you want to spend ",R," to buy this product?"]}),(0,r.jsx)(x.$,{variant:"primary",isLoading:T,onClick:()=>{E?L(n.productId):s(u.JZ.inAppProducts.index)},className:k,children:"Buy"})]})})},_=()=>{let[e,t]=(0,a.useState)(!1),s=(0,d.J)(),{product:i}=(0,o.ot)(),l=(0,p.useRouter)(),{update:c,status:y}=(0,h.useSession)(),f=(0,m.A)(),g=(0,p.useSearchParams)(),b=g?.get("tab"),{brand:w,onlineFiatPrice:C,onlineFiatCurrency:k,onlineCreditPrice:N,slug:_}=i,R=(0,a.useCallback)(async()=>{await c(),f()&&(N?t(!0):l.push(u.JZ.products.payment(_)))},[f,N,l,_,c]),E=(0,r.jsxs)(r.Fragment,{children:["buy for"," ",C&&k?(0,r.jsx)(v.Z.xs,{amount:C,currencyCode:k}):`${(0,j._)(N)}`]});return(0,r.jsxs)(r.Fragment,{children:[s?(0,r.jsx)(x.$,{variant:"primary",brandColor:w.color,buttonStyle:{width:"100%"},isLoading:"loading"===y,onClick:R,children:E}):(0,r.jsx)(n(),{href:u.JZ.account.login.withQuery({callbackUrl:u.JZ.products.detail(_,b??void 0)}),children:(0,r.jsx)(x.$,{variant:"primary",brandColor:w.color,buttonStyle:{width:"100%"},children:E})}),(0,r.jsx)(S,{isOpen:e,onClose:()=>t(!1)})]})};s(5073),s(19366);let R=()=>{let e=(0,d.J)(),{product:t}=(0,o.ot)();return(0,r.jsxs)("div",{className:"_1076anq1 _11mahs3v _11mahs3x",children:[(0,r.jsxs)("div",{className:"_1076anq2",children:[t.onlinePurchaseType===c.Fe.PHYSICAL_PURCHASE&&(0,r.jsx)(l.o,{variant:"body2",children:"This item is available as a physical purchase."}),t.onlinePurchaseType===c.Fe.DIGITAL_PURCHASE&&(0,r.jsxs)(l.o,{variant:"body2",children:["This item is available as a digital purchase.",e?` You currently have ${e?.credits??0} CREDITS.`:"",e&&!e.credits&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(n(),{href:u.JZ.inAppProducts.index,style:{color:t.brand.color,textDecoration:"underline"},children:"Purchase more CREDITS"})]})]})]}),(0,r.jsx)("div",{className:"_11mahs31kl _11mahs31kv",children:(0,r.jsx)(_,{})})]})}},2698:()=>{},3943:(e,t,s)=>{"use strict";s.d(t,{x:()=>a.x,y:()=>r.y});var r=s(82405),a=s(91542)},4217:(e,t,s)=>{"use strict";s.d(t,{s:()=>i});var r=s(54568),a=s(45246);let i=e=>(0,r.jsx)(a.I,{...e,jsx:(0,r.jsx)("path",{d:"M3.77 6.23001L2 8.00001L12 18L22 8.00001L20.23 6.23001L12 14.46L3.77 6.23001Z"})})},5004:()=>{},5132:()=>{},7270:(e,t,s)=>{"use strict";s.d(t,{Qs:()=>r,Zp:()=>l,iE:()=>o,nY:()=>n,qy:()=>a,zw:()=>i}
1),s(5073),s(59764),s(75280);var r="_11mahs3e9 _11mahs3es _11mahs3j3 _11mahs3jm _11mahs34l _11mahs39f",a="_14t2pai6 _11mahs3e9 _11mahs3dg _11mahs3j3 _11mahs3ia _11mahs34l _11mahs39f",i="_14t2pai4",n="_14t2pai9",l="_14t2pai3",o="_14t2pai0"},10054:(e,t,s)=>{"use strict";s.d(t,{useIsFetching:()=>n});var r=s(7620),a=s(83641),i=s(83919);function n(e,t){let s=(0,i.useQueryClient)(t),n=s.getQueryCache();return r.useSyncExternalStore(r.useCallback(e=>n.subscribe(a.jG.batchCalls(e)),[n]),()=>s.isFetching(e),()=>s.isFetching(e))}},10635:()=>{},11014:()=>{},11852:()=>{},12154:(e,t,s)=>{"use strict";s.d(t,{useSuspenseQueries:()=>i});var r=s(23036),a=s(56451);function i(e,t){return(0,r.useQueries)({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:a.R3,enabled:!0,placeholderData:void 0}))},t)}},12295:(e,t,s)=>{"use strict";s.d(t,{Il:()=>c.I,lv:()=>c.l,Fe:()=>o,xP:()=>n});var r,a,i,n=((r={}).store="store",r.online="online",r.onlineInternal="online-internal",r),l=((a=l||{}).active="active",a.preMint="pre-minted",a.queuedMinting="queued-minting",a.minting="minting",a.minted="minted",a.notApproved="not-approved",a.mintFailed="mint-failed",a.queuedTransferring="queued-transferring",a.transferring="transferring",a.queuedRefunding="queued-refunding",a.refunded="refunded",a),o=((i={}).NONE="none",i.PHYSICAL_PURCHASE="physical-purchase",i.DIGITAL_PURCHASE="digital-purchase",i),c=s(32592)},13998:()=>{},15179:(e,t,s)=>{"use strict";s.r(t),s.d(t,{container:()=>r}),s(5073),s(93891);var r=(0,s(81993).c)({defaultClassName:"_8ape2e4",variantClassNames:{breakpoint:{smOnly:"_11mahs31",md:"_11mahs30 _11mahs3a",beforeXl:"_11mahs32",xl:"_11mahs30 _11mahs3b"}},defaultVariants:{},compoundVariants:[]})},15200:(e,t,s)=>{"use strict";s.d(t,{H:()=>c});var r=s(54568),a=s(7620),i=s(32260),n=s.n(i),l=s(84511),o=s(61026);s(59764),s(71695);let c=({product:e,wovenLabel:t,onClose:s})=>{let{nftAsset:i,nftAssetMimeType:c,nftName:d,nftText:u}=e,h=t?.state==="minted",m=i?`https://api.corriere-art.it${i}`:null,p=c?.startsWith("video/");return(0,a.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{onClick:s,style:{position:"fixed",inset:0,zIndex:999,background:"rgba(0,0,0,0.5)",display:"none"},className:"nft-detail-backdrop"}),(0,r.jsxs)("div",{style:{position:"fixed",zIndex:1e3,background:"var(--background, #fff)",overflowY:"auto",overscrollBehavior:"contain",inset:0},className:"nft-detail-container",children:[(0,r.jsx)("style",{children:`
2          @media (min-width: 768px) {
3            .nft-detail-backdrop { display: block !important; }
4            .nft-detail-container {
5              inset: auto !important;
6              top: 50% !important;
7              left: 50% !important;
8              transform: translate(-50%, -50%);
9              width: 560px !important;
10              max-height: 85vh !important;
11              border-radius: 16px !important;
12              box-shadow: 0 24px 80px rgba(0,0,0,0.2) !important;
13            }
14          }
15        `}),(0,r.jsxs)("div",{style:{position:"sticky",top:0,display:"flex",alignItems:"center",gap:12,padding:"14px 20px",borderBottom:"1px solid rgba(0,0,0,0.07)",background:"var(--background, #fff)",zIndex:10},children:[(0,r.jsx)("button",{onClick:s,style:{display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,fontSize:15,color:"inherit"},children:"← Back"}),(0,r.jsx)(l.o,{variant:"subtitle2",typographyStyle:{textTransform:"uppercase",letterSpacing:"0.08em",flex:1,textAlign:"center"},children:"Digital Certificate"}),(0,r.jsx)("span",{style:{width:60}})]}),m&&(p?(0,r.jsx)("video",{className:"g2zzgq4",src:m,controls:!0,loop:!0,playsInline:!0,style:{display:"block",width:"100%"}}):(0,r.jsx)("img",{className:"g2zzgq3",src:m,alt:d??"Digital Certificate",style:{display:"block",width:"100%"}})),(0,r.jsxs)("div",{style:{padding:"20px 20px 0"},children:[h&&t&&(0,r.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 24px",marginBottom:16},children:[t.nftTokenId&&(0,r.jsxs)("div",{children:[(0,r.jsx)(l.o,{variant:"caption",typographyStyle:{color:"#aaa",textTransform:"uppercase",letterSpacing:"0.08em",display:"block"},children:"Token"}),(0,r.jsx)(l.o,{variant:"body2",typographyStyle:{fontFamily:"monospace"},children:t.nftTokenId})]}),t.sequence&&(0,r.jsxs)("div",{children:[(0,r.jsx)(l.o,{variant:"caption",typographyStyle:{color:"#aaa",textTransform:"uppercase",letterSpacing:"0.08em",display:"block"},children:"Edition"}),(0,r.jsxs)(l.o,{variant:"body2",children:["#",t.sequence,t.maxSupply?`/${t.maxSupply}`:""]})]}),t.mintedDate&&(0,r.jsxs)("div",{children:[(0,r.jsx)(l.o,{variant:"caption",typographyStyle:{color:"#aaa",textTransform:"uppercase",letterSpacing:"0.08em",display:"block"},children:"Redeemed"}),(0,r.jsx)(l.o,{variant:"body2",children:(0,r.jsx)(o.Z.fB,{date:n()(t.mintedDate).toDate()})})]})]}),d&&(0,r.jsx)(l.o,{variant:"h5",typographyStyle:{marginBottom:8},children:d}),u&&(0,r.jsx)(l.o,{variant:"body2",typographyStyle:{color:"#666",whiteSpace:"pre-wrap",marginBottom:24},children:u}),h&&(0,r.jsx)("div",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:11,color:"#3D9970",marginBottom:32},children:"✓ Authenticated on-chain"})]})]})]})}},15241:(e,t,s)=>{"use strict";s.d(t,{u:()=>i});var r=s(54568),a=s(45246);let i=e=>(0,r.jsx)(a.I,{...e,jsx:(0,r.jsx)("path",{d:"M8 5V19L19 12L8 5Z"})})},18775:()=>{},19366:()=>{},19973:()=>{},20900:()=>{},20918:(e,t,s)=>{"use strict";s.d(t,{useIsMutating:()=>l,useMutationState:()=>c});
15var r=s(7620),a=s(18904),i=s(83641),n=s(83919);function l(e,t){let s=(0,n.useQueryClient)(t);return c({filters:{...e,status:"pending"}},s).length}function o(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function c(e={},t){let s=(0,n.useQueryClient)(t).getMutationCache(),l=r.useRef(e),d=r.useRef(null);return null===d.current&&(d.current=o(s,e)),r.useEffect(()=>{l.current=e}),r.useSyncExternalStore(r.useCallback(e=>s.subscribe(()=>{let t=(0,a.BH)(d.current,o(s,l.current));d.current!==t&&(d.current=t,i.jG.schedule(e))}),[s]),()=>d.current,()=>d.current)}},20943:()=>{},22336:()=>{},23036:(e,t,s)=>{"use strict";s.d(t,{useQueries:()=>x});var r=s(7620),a=s(83641),i=s(3111),n=s(45954),l=s(18904);function o(e,t){let s=new Set(t);return e.filter(e=>!s.has(e))}var c=class extends n.Q{#e;#t;#s;#r;#a;#i;#n;#l;#o;#c=[];constructor(e,t,s){super(),this.#e=e,this.#r=s,this.#s=[],this.#a=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#a.forEach(e=>{e.subscribe(t=>{this.#d(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,t){this.#s=e,this.#r=t,a.jG.batch(()=>{let e=this.#a,t=this.#u(this.#s);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let s=t.map(e=>e.observer),r=s.map(e=>e.getCurrentResult()),a=e.length!==s.length,i=s.some((t,s)=>t!==e[s]),n=a||i,c=!!n||r.some((e,t)=>{let s=this.#t[t];return!s||!(0,l.f8)(e,s)});(n||c)&&(n&&(this.#c=t,this.#a=s),this.#t=r,this.hasListeners()&&(n&&(o(e,s).forEach(e=>{e.destroy()}),o(s,e).forEach(e=>{e.subscribe(t=>{this.#d(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){let s=this.#u(e),r=s.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),a=s.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#m(e??r,t,a),()=>this.#p(r,s)]}#p(e,t){return t.map((s,r)=>{let a=e[r];return s.defaultedQueryOptions.notifyOnChangeProps?a:s.observer.trackResult(a,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#m(e,t,s){if(t){let r=this.#o,a=void 0!==s&&void 0!==r&&(r.length!==s.length||s.some((e,t)=>e!==r[t]));return(!this.#i||this.#t!==this.#l||a||t!==this.#n)&&(this.#n=t,this.#l=this.#t,void 0!==s&&(this.#o=s),this.#i=(0,l.BH)(this.#i,t(e))),this.#i}return e}#x(){return this.#r?.combine!==void 0&&this.#a.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#u(e){let t=new Map;this.#a.forEach(e=>{let s=e.options.queryHash;if(!s)return;let r=t.get(s);r?r.push(e):t.set(s,[e])});let s=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),a=t.get(r.queryHash)?.shift()??new i.$(this.#e,r);s.push({defaultedQueryOptions:r,observer:a})}),s}#d(e,t){let s=this.#a.indexOf(e);if(-1!==s){var r;let e;this.#t=(r=this.#t,(e=r.slice(0))[s]=t,e),this.#h()}}#h(){if(this.hasListeners()){let e=this.#p(this.#t,this.#c),t=this.#x(),s=this.#i,r=t?s:this.#m(e,this.#r?.combine);(t||s!==r)&&a.jG.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},d=s(83919),u=s(9545),h=s(22986),m=s(36806),p=s(56451);function x({queries:e,...t},s){let n=(0,d.useQueryClient)(s),o=(0,u.useIsRestoring)(),j=(0,h.useQueryErrorResetBoundary)(),v=r.useMemo(()=>e.map(e=>{let t=n.defaultQueryOptions(e);return t._optimisticResults=o?"isRestoring":"optimistic",t}),[e,n,o]);v.forEach(e=>{(0,p.jv)(e);let t=n.getQueryCache().get(e.queryHash);(0,m.LJ)(e,j,t)}),(0,m.wZ)(j);let[y]=r.useState(()=>new c(n,v,t)),[f,g,b]=y.getOptimisticResult(v,t.combine),w=!o&&!1!==t.subscribed;r.useSyncExternalStore(r.useCallback(e=>w?y.subscribe(a.jG.batchCalls(e)):l.lQ,[y,w]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),r.useEffect(()=>{y.setQueries(v,t)},[v,t,y]);let C=f.some((e,t)=>(0,p.EU)(v[t],e))?f.flatMap((e,t)=>{let s=v[t];if(s&&(0,p.EU)(s,e)){let e=new i.$(n,s);return(0,p.iL)(s,e,j)}return[]}):[];if(C.length>0)throw Promise.all(C);let k=f.find((e,t)=>{let s=v[t];return s&&(0,m.$1)({result:e,errorResetBoundary:j,throwOnError:s.throwOnError,query:n.getQueryCache().get(s.queryHash),suspense:s.suspense})});if(k?.error)throw k.error;return g(b())}},23374:()=>{},30186:(e,t,s)=>{"use strict";s.d(t,{default:()=>a.a});var r=s(62681),a=s.n(r)},30349:()=>{},32592:(e,t,s)=>{"use strict";s.d(t,{I:()=>i,l:()=>n});var r,a,i=((r={}).DRAFT="draft",r.PUBLISHED="published",r.EXPIRED="expired",r.DELETED="deleted",r),n=((a={}).TICKET="ticket",a.DISCOUNT="discount",a.PHYSICAL="physical",a.LOTTERY="lottery",a.AIRDROP="airdrop",a.DIGITAL="digital",a.EXPERIENCE="experience",a)},32649:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(7620),a=s(41638),i=a.Bd?r.useLayoutEffect:r.useEffect,n={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};let l=a.Bd&&void 0!==window.ResizeObserver?function(){var e=(0,r.useState)(null),t=e[0],s=e[1],a=(0,r.useState)(n),l=a[0],o=a[1],c=(0,r.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect;
15o({x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,left:t.left,bottom:t.bottom,right:t.right})}})},[]);return i(function(){if(t)return c.observe(t),function(){c.disconnect()}},[t]),[s,l]}:function(){return[a.lQ,n]}},36705:()=>{},36817:()=>{},37167:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ProductLayout:()=>E});var r=s(54568),a=s(7620),i=s(73531),n=s(87889),l=s(97538),o=s(79452),c=s(12295),d=s(77028),u=s(72393),h=s(99646),m=s(2323),p=s(84511),x=s(32260),j=s.n(x),v=s(71430),y=s.n(v),f=s(51546),g=s(68998),b=s(61026);s(59764),s(85224);var w="_1n8ddy52";let C=({code:e,mintedDate:t,storeType:s})=>(0,r.jsxs)(y(),{className:"_1n8ddy50",href:f.JZ.qr.detail(e),children:[(0,r.jsxs)("div",{className:"_1n8ddy51",children:[(0,r.jsxs)(p.o,{variant:"button",typographyStyle:{textTransform:"none"},children:["CODE: ",(0,r.jsx)("span",{className:w,children:e})]}),(0,r.jsxs)(p.o,{variant:"subtitle2",children:[s===c.xP.onlineInternal?"Purchased":"Redeemed"," on"," ",(0,r.jsx)(b.Z.tt,{date:j()(t).toDate()})]})]}),(0,r.jsx)(g.v,{className:w,size:25})]});s(5073),s(5004);let k=({products:e})=>(0,r.jsxs)("div",{className:"np33ij0",children:[(0,r.jsx)(p.o,{variant:"subtitle1",children:"IN MY COLLECTION"}),(0,r.jsx)("ul",{className:"np33ij2 _11mahs32l _11mahs32d _11mahs32h _11mahs33cl _11mahs33d1 _11mahs33dt _11mahs33hf _11mahs33hv",children:e.map(e=>(0,r.jsx)(C,{...e},e.code))})]});var N=s(15200);let S=()=>{let{product:e}=(0,d.ot)(),{nftAsset:t,nftAssetMimeType:s,nftName:i,isNftAvailable:n}=e,[l,o]=(0,a.useState)(!1);if(!n||!t)return null;let c=`https://api.corriere-art.it${t}`,u=s?.startsWith("video/");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{onClick:()=>o(!0),role:"button",style:{display:"flex",alignItems:"center",gap:14,padding:"12px 14px",border:"1px solid rgba(0,0,0,0.08)",borderRadius:12,cursor:"pointer",marginBottom:16,background:"rgba(0,0,0,0.02)"},children:[(0,r.jsx)("div",{style:{width:64,height:64,borderRadius:8,overflow:"hidden",flexShrink:0,pointerEvents:"none"},children:u?(0,r.jsx)("video",{src:c,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0}):(0,r.jsx)("img",{src:c,alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,r.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,r.jsx)(p.o,{variant:"caption",typographyStyle:{textTransform:"uppercase",letterSpacing:"0.1em",color:"#888",display:"block"},children:"Digital Certificate"}),i&&(0,r.jsx)(p.o,{variant:"body2",typographyStyle:{fontWeight:500,marginTop:2},children:i}),(0,r.jsx)(p.o,{variant:"caption",typographyStyle:{color:"#aaa",marginTop:2,display:"block"},children:"Included with redemption"})]}),(0,r.jsx)("span",{style:{color:"#bbb",fontSize:18,flexShrink:0},children:"›"})]}),l&&(0,r.jsx)(N.H,{product:e,wovenLabel:null,onClose:()=>o(!1)})]})};var _=s(7270);let R=o.$.corriere,E=({slug:e})=>{let{data:t}=(0,i.f5)(e),s=(0,a.useMemo)(()=>({product:t}),[t]);if(!t)return null;let o=R.enableOnlineDigitalPurchase&&t.onlinePurchaseType!==c.Fe.NONE;return(0,r.jsx)(d.SL.Provider,{value:s,children:(0,r.jsx)("div",{style:(0,l.Kq)({"brand-color":t.brand.color}),children:(0,r.jsxs)("div",{className:_.iE,children:[(0,r.jsx)("div",{className:_.Qs,style:{paddingBottom:0,paddingTop:8},children:(0,r.jsx)(n.I,{brandSlug:t.brand.slug,brandName:t.brand.name,productId:t.productId,productName:t.name})}),(0,r.jsxs)("div",{className:_.Zp,children:[(0,r.jsx)("div",{className:_.zw,children:(0,r.jsx)(h.l,{})}),(0,r.jsxs)("div",{className:_.qy,children:[(0,r.jsx)("div",{className:_.nY,children:t.name}),o&&(0,r.jsx)(m.L,{}),!!t.ownedProducts.length&&(0,r.jsx)(k,{products:t.ownedProducts}),(0,r.jsx)(S,{}),(0,r.jsx)(u.Y,{})]})]})]})})})}},38132:(e,t,s)=>{"use strict";s.r(t),s.d(t,{WovenLabelLayout:()=>eF});var r=s(54568),a=s(7620),i=s(89099),n=s(73531),l=s(87889),o=s(79452),c=s(12295),d=s(72393),u=s(77028),h=s(93328),m=s(91869),p=s(32260),x=s.n(p),j=s(92856),v=s(90372),y=s(51546),f=s(89151);let g="https://mainnet-public.mirrornode.hedera.com";class b{static getAccountTokens(e){return f.A.get(`${g}/api/v1/tokens?account.id=${e}`)}static getAccount(e){return f.A.get(`${g}/api/v1/accounts?account.id=${e}`)}}var w=s(79025),C=s(10739),k=s(84511);s(19973);let N=({icon:e,onConfirm:t,isOpen:s,title:i,header:n,text:l,buttonText:o})=>(0,r.jsx)(C.a,{title:i,isOpen:s,maxWidth:"343px",withCloseIcon:!1,id:"error",zindex:500,children:(0,r.jsxs)("div",{className:"_1i7ctqo0",children:[(0,a.createElement)(e,{size:44}),(0,r.jsx)(k.o,{variant:"subtitle2",typographyStyle:{textAlign:"center",marginBottom:10},children:n}),(0,r.jsx)(k.o,{variant:"caption",typographyStyle:{color:"#6C6C6C",marginBottom:"20px"},children:l}),(0,r.jsx)(w.$,{onClick:t,children:o??"go back"})]})});var S=s(72505);s(98735);let _=({isOpen:e,onClose:t,brandColor:s})=>{let i=(0,a.useCallback)(()=>{t(!1)},[t]);return(0,r.jsxs)(C.a,{isOpen:e,title:"TOken Association",onClose:i,maxWidth:"360px",children:[(0,r.jsx)(k.o,{variant:"body2",children:"To receive NFT you need to associate the token in your wallet."}),(0,r.jsx)("div",{className:"_1lnbd4i0",children:(0,r.jsx)(w.$,{onClick:i,brandColor:s,children:"OK"})})]})};var R=s(21901),E=s(13266),L=s(15002),T=s(71430),A=s.n(T),q=s(54429);let $=JSON.parse('{"v":"5.9.0","fr":24,"ip":0,"op":120,"w":500,"h":500,"nm":"Composizione 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Livello forma 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250.5,314,0],"ix":2,"l":2},"a":{"a":0,"k":[0.685,62.329,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":28,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":31,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":105,"s":[100,100,100]},{"t":108,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.344,4.344],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Tracciato ellisse 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.717647058824,0.450980392157,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Riempimento 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0.161,61.416],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[425.685,425.685],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Trasformazione"}],"nm":"Ellisse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Livello forma 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[249.4,258.029,0],"ix":2,"l":2},"a":{"a":0,"k":[-1.5,7.5,0],"ix":1,"l":2},"s":{"a":0,"k":[92.357,92.357,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-41,-32],[20.374,28.456]],"c":false},"ix":2},"nm":"Tracciato 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156862745,0.717647058824,0.450980392157,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Traccia 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Trasformazione"}],"nm":"Forma 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26.965,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":97.421,"s":[4]},{"t":103,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[0]},{"t":29,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Taglia tracciati 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Livello forma 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[249,260.5,0],"ix":2,"l":2},"a":{"a":0,"k":[-165.015,102.72,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":12,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]}
vendor: 4,102 bytes, line 15
15,"t":18,"s":[160,160,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":113,"s":[160,160,100]},{"t":119,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"sr","sy":2,"d":1,"pt":{"a":0,"k":3,"ix":3},"p":{"a":0,"k":[0,0],"ix":4},"r":{"a":0,"k":120,"ix":5},"or":{"a":0,"k":56.931,"ix":7},"os":{"a":0,"k":0,"ix":9},"ix":1,"nm":"Tracciato poligono/stella 1","mn":"ADBE Vector Shape - Star","hd":false},{"ty":"st","c":{"a":0,"k":[0.933333333333,0.556862745098,0.113725490196,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":21,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Traccia 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.933333333333,0.556862745098,0.113725490196,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Riempimento 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-165,113],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[91.722,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Trasformazione"}],"nm":"Poligono/stella 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}');var I=s(3943),O=s(33854),F=s(21466),P=s(59071),M=s(69232),B=s(54138),V=s(38352);s(22336);let D=({title:e,children:t,onClose:s,isOpen:a,onConfirm:i,isLoading:n,isShowCancelButton:l=!0,withCloseIcon:o=!1})=>(0,r.jsx)(C.a,{title:e,isOpen:a,maxWidth:"343px",withCloseIcon:o,onClose:s,id:"confirm-modal",children:(0,r.jsxs)("div",{className:"_1t7kxsd0",children:[(0,r.jsx)(k.o,{variant:"caption",typographyStyle:{color:"#6C6C6C",marginBottom:10},children:t}),i&&(0,r.jsx)(w.$,{onClick:i,buttonStyle:{marginBottom:"6px"},isLoading:n,children:e}),l&&(0,r.jsx)(w.$,{onClick:s,variant:"secondary",children:"Cancel"})]})});var z=s(60328);s(59764),s(5073),s(11014);var H="wju57j3",Q="wju57j6",U="wju57j5 _11mahs3v _11mahs3x",Z=s(72045);let W={code:null,pin:null,countryCode:null,city:null,storeType:"store",storeName:null,storeWebsite:null},X=Z.Ik({code:Z.Yj().required("Code is required"),pin:Z.Yj().required("Pin is required"),storeType:Z.Yj(),countryCode:Z.Yj().nullable().when("storeType",{is:"store",then:e=>e.required("Country is required")}),city:Z.Yj().nullable().when("storeType",{is:"store",then:e=>e.required("City is required")}),storeName:Z.Yj().nullable().when("storeType",{is:"store",then:e=>e.required("Store name is required")}),storeWebsite:Z.Yj().nullable().when("storeType",{is:"online",then:e=>e.required("Store website is required")}),termsChecked:Z.zM().isTrue()}),J=(0,a.lazy)(()=>Promise.all([s.e(3345),s.e(2218)]).then(s.bind(s,82218)).then(e=>({default:e.LottieAnimation}))),Y=({isOpen:e,onClose:t,wovenLabelCode:s,code:i,pin:l,onError:o,onSuccess:c})=>{let[d,m]=(0,h.A)(!1),[p,x]=(0,a.useState)(!1),j=(0,v.J)(),f=(0,a.useRef)(null),{product:{brand:g}}=(0,u.ot)(),{color:b}=g,N=(0,q.m)({defaultValues:{code:i||"",pin:l||"",storeType:"store"},validationSchema:X,mode:"onSubmit"}),{getValues:S,reset:_,watch:T,formState:Z}=N,Y="store"===T("storeType"),{mutateAsync:G}=(0,n.IJ)(),K=async()=>{let e={...S()};if(!j?.hederaAccountId)return void E.oR.error((0,r.jsx)(I.y,{title:"The wallet is not linked. Please connect the wallet and try again later",type:I.x.error}));x(!0);try{await G({wovenLabelCode:s,code:i||e.code.replace(/\s/g,""),pin:l||e.pin.replace(/\s/g,""),storeType:e.storeType,storeCountryCode:e.countryCode,storeCity:e.city,storeName:e.storeName,storeWebsite:e.storeWebsite}),_(W),t(),c()}catch{o(),m(!1)}finally{x(!1)}};return(0,L.A)(()=>{e||N.reset()},[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(C.a,{isOpen:e,title:"REDEEM NFT",onClose:t,maxWidth:"704px",children:[(0,r.jsx)(k.o,{variant:"body2",typographyStyle:{marginTop:"15px"},children:"Before been able to redeem the NFT you need to fill out the form below. You will find the code and pin inside the product hangtag."}),(0,r.jsx)("div",{className:"wju57j0",children:(0,r.jsx)(R.Op,{...N,children:(0,r.jsxs)("div",{className:"wju57j2 _11ma
15hs3dx _11mahs3ir _11mahs33r _11mahs39f",children:[(0,r.jsx)("div",{className:H,children:"Hangtag"}),(0,r.jsxs)("div",{className:U,children:[(0,r.jsx)("div",{className:Q,children:(0,r.jsx)(O.X,{name:"code",label:"Code",placeholder:"XXX XXX XXX XXX",maskOptions:{mask:"*** *** *** ***"}})}),(0,r.jsx)("div",{className:Q,children:(0,r.jsx)(O.X,{name:"pin",label:"Pin",placeholder:"XXX XXX",maskOptions:{mask:"*** ***"}})})]}),(0,r.jsx)("div",{className:H,children:"Store Information"}),(0,r.jsx)("div",{className:U,children:(0,r.jsxs)(F.J,{name:"storeType",label:"Where did you buy?",groupStyle:{flexDirection:"initial",gap:28},onAfterChange:e=>{"store"===e?_({...S(),storeWebsite:null}):_({...S(),city:null,storeName:null,storeCountryCode:null})},children:[(0,r.jsx)(P.a,{value:"store",labelStyle:{...z.themeVars.typography.body2},children:"Store"}),(0,r.jsx)(P.a,{value:"online",labelStyle:{...z.themeVars.typography.body2},children:"Online"})]})}),(0,r.jsxs)("div",{className:U,children:[Y&&(0,r.jsx)("div",{className:Q,children:(0,r.jsx)(M.N,{name:"countryCode",label:"Country",placeholder:"Select a Country",popupPlacement:"top-start"})}),(0,r.jsx)("div",{className:Q,children:Y?(0,r.jsx)(B.Z,{type:"text",name:"city",label:"City"}):(0,r.jsx)(B.Z,{type:"text",name:"storeWebsite",placeholder:"https://amazon.com/p23455",label:"Website"})}),Y&&(0,r.jsx)("div",{className:Q,children:(0,r.jsx)(B.Z,{type:"text",name:"storeName",label:"Store Name"})})]}),(0,r.jsx)(V.c,{name:"termsChecked",label:(0,r.jsxs)(k.o,{variant:"body2",children:["I read, understand and consent to the"," ",(0,r.jsx)(A(),{href:y.JZ.content.privacy,style:{color:b},target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ","and"," ",(0,r.jsxs)(A(),{href:y.JZ.content.terms,style:{color:b},target:"_blank",rel:"noreferrer",children:[" ","Terms and Conditions"]})," ","to receive this NFT."]}),boxStyle:{marginTop:"30px"},checkboxStyle:{marginTop:"8px"}}),(0,r.jsx)(k.o,{variant:"subtitle1",typographyStyle:{marginTop:25,textAlign:"start"},children:"By clicking to redeem, you will irrevocably redeem the NFT. This action cannot be undone."}),(0,r.jsx)("div",{className:"wju57j8 _11mahs3x _11mahs323",children:(0,r.jsx)(w.$,{className:"wju57ja _11mahs31qx _11mahs31kl",type:"button",isLoading:p,disabled:!T("termsChecked"),brandColor:b,onClick:()=>{Z.isValid?m(!0):f.current?.requestSubmit()},children:"Redeem"})})]})})})]}),(0,r.jsx)(D,{title:"REDEEM PROCESS",isOpen:e&&d&&!p,onClose:()=>m(!1),isShowCancelButton:!1,withCloseIcon:!0,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"wju57jc",children:["Are you sure ?",(0,r.jsx)("div",{className:"wju57jd",children:(0,r.jsx)(J,{animationData:$})}),(0,r.jsx)(k.o,{variant:"body2",children:"By clicking to redeem, you will irrevocably redeem the NFT. This action cannot be undone."})]}),(0,r.jsx)(w.$,{className:"wju57jb",brandColor:b,onClick:K,children:"REDEEM"})]})})]})};s(5132);let G=({brandColor:e,isOpen:t,onClose:s,maxWidth:a})=>(0,r.jsx)(C.a,{isOpen:t,title:"SUCCESSFUL REDEEM",onClose:s,withCloseIcon:!0,maxWidth:a,children:(0,r.jsxs)("div",{className:"fbwxud0",children:[(0,r.jsx)("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M34.0013 5.66663C18.3613 5.66663 5.66797 18.36 5.66797 34C5.66797 49.64 18.3613 62.3333 34.0013 62.3333C49.6413 62.3333 62.3346 49.64 62.3346 34C62.3346 18.36 49.6413 5.66663 34.0013 5.66663ZM28.3346 48.1666L14.168 34L18.163 30.005L28.3346 40.1483L49.8396 18.6433L53.8346 22.6666L28.3346 48.1666Z",fill:"#27AE60"})}),(0,r.jsx)(k.o,{variant:"body2",typographyStyle:{marginTop:15},children:"You are successfully Redeemed the NFT."}),(0,r.jsx)(w.$,{brandColor:e,onClick:s,buttonStyle:{marginTop:20,width:"100%"},children:"OK"})]})}),K=e=>{let t=(0,v.J)(),{push:s}=(0,i.useRouter)(),l=(0,i.usePathname)(),[o,c]=(0,h.A)(!1),[d,p]=(0,h.A)(!1),[f,g]=(0,h.A)(!1),[w,C]=(0,h.A)(!1),[k,R]=(0,h.A)(!1),[E,L]=(0,h.A)(!1),{product:T}=(0,u.ot)(),[A,q]=(0,a.useState)(e.wovenLabel),{color:$}=T.brand,{mutateAsync:I}=(0,n.hZ)(),O=(0,a.useCallback)(async()=>
15{if("active"===A.state){if(!t?.hederaAccountId)return void g(!0);try{let e=await b.getAccountTokens(t.hederaAccountId),s=!1;e.data.tokens.forEach(e=>{"0.0.3896160"===e.token_id&&(s=!0)}),s?R(!0):C(!0)}catch{p(!0)}}},[A,t,C,p,g,R]),F=(0,a.useCallback)(async()=>{try{await I(A),c(!0),q({...A,state:"minting",mintedDate:x()().toISOString()})}catch{p(!0)}},[A,I,p,c]),P=(0,a.useCallback)(e=>{e&&O(),C(!1)},[O,C]);return(0,m.A)(()=>{let e=(0,j.io)("https://realtime.corriere-art.it",{reconnectionAttempts:3}),t=e=>{e.code===A?.code&&q({...A,state:e.state})},s=e=>{e.code===A?.code&&q({...A,state:e.state})};return e.on("mint",t),e.on("wovenLabelRedeem",s),()=>{e.off("mint",t),e.off("wovenLabelRedeem",s),e.disconnect()}}),(0,r.jsxs)(S.K.Provider,{value:{wovenLabel:A,onRedeem:O,onReserve:F},children:[e.children,(0,r.jsx)(N,{onConfirm:c,icon:"original_product",title:"Success",header:"Successfully redeemed",text:"",isOpen:o}),(0,r.jsx)(N,{onConfirm:p,icon:"not_found",title:"Error",header:"Code or Pin Invalid",text:"The code or pin you entered does not match. Please try again or enter them manually.",buttonText:"Try Again",isOpen:d}),(0,r.jsx)(N,{onConfirm:()=>s((0,y.VL)(y.JZ.account.editProfile,{redirect:l})),icon:"not_found",title:"Error",header:"Setup your profile",text:"Before you can redeem the NFT please setup your profile",buttonText:"Edit profile",isOpen:f}),(0,r.jsx)(_,{isOpen:w,onClose:P,brandColor:$}),(0,r.jsx)(Y,{isOpen:k,onClose:()=>R(!1),wovenLabelCode:A?.code,code:e?.code,pin:e?.pin,onError:()=>p(!0),onSuccess:()=>{R(!1),L(!0)}}),(0,r.jsx)(G,{brandColor:$,isOpen:E,onClose:()=>L(!1),maxWidth:"30%"})]})};var ee=s(49630),et=s(61026),es=s(70047);let er={"not-active":"Not Active","not-approved":"Wallet Not Approved","queued-transferring":"Transferring",transferring:"Transferring",active:"Ready to Redeem","queued-minting":"Creating Certificate",minting:"Creating Certificate",minted:"Redeemed","mint-failed":"Redemption Failed","queued-refunding":"Refunding",refunding:"Refunding",refunded:"Refunded",expired:"Expired","pre-minted":"Reserved"},ea={...er};var ei=s(90173);let en=({qrcode:e,code:t,pin:s})=>{let{product:a}=(0,u.ot)(),{color:i}=a.brand,n=`corriereart://product-scan?qrcode=${e}`;t&&s&&(n=`corriereart://product-scan?qrcode=${e}&code=${t}&pin=${s}`);let l=(0,ei.E)(n);return(0,r.jsx)(w.$,{variant:"secondary",brandColor:i,onClick:l,children:"Open App"})};var el=s(88136),eo=s.n(el),ec=s(44903),ed=s(68998),eu=s(48833),eh=s(97538);s(13998);let em=({filename:e,name:t,type:s})=>{let{product:a}=(0,u.ot)(),{mutate:i,isPending:l}=(0,n.uH)({onSuccess:({data:e,fileNameContentDisposition:t})=>{eo().saveAs(e,t)}});return(0,r.jsxs)("div",{className:"_1wc4svp0",style:(0,eh.Kq)({"border-hover-color":l?z.themeVars.colors.greyLine:a.brand.color,cursor:l?"not-allowed":"pointer"}),onClick:()=>{l||i(e)},children:[(0,r.jsxs)("div",{className:"_1wc4svp1",children:[(0,r.jsx)(ec.q,{}),(0,r.jsx)("div",{className:"_1wc4svp2",children:l?(0,r.jsx)(eu.y,{size:30,iconStyle:{stroke:a.brand.color,padding:"2px 0"}}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.o,{variant:"body2",typographyStyle:{lineHeight:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),(0,r.jsx)(k.o,{variant:"caption",typographyStyle:{lineHeight:1},children:s})]})})]}),(0,r.jsx)(ed.v,{size:25})]})};s(57341);var ep="ptjd1011",ex="ptjd106",ej="ptjd10m",ev="ptjd10n",ey="ptjd10l",ef="ptjd10o",eg="ptjd10y",eb="ptjd10q",ew="ptjd10r",eC="ptjd10s",ek="ptjd10v",eN="ptjd10w",eS="ptjd10u",e_="ptjd1014";let eR=o.$.corriere,eE=(eR?.login?.authMode??"wallet-only")!=="password-only"?ea:er,eL=()=>{let{wovenLabel:e,onRedeem:t,onReserve:s}=(0,S.a)(),{product:a}=(0,u.ot)(),n=(0,v.J)(),l=(0,i.usePathname)(),{isIphone:o,isAndroidMobile:c}=(0,es.v)(),d=o||c,{color:h}=a.brand,{state:m,code:p,nftTokenId:j,sequence:f,maxSupply:g,mintedDate:b,store:C}=e,k=eE[m],N=["queued-minting","minting","queued-transferring","transferring"].includes(m),_=()=>{switch(m){case"active":return"ptjd10f";case"minted":return"ptjd10g";case"mint-failed":return"ptjd10i";default:return N?"ptjd10h":"ptjd10j"}},R=()=>"active"!==m&&"pre-minted"!==m?null:d?(0,r.jsx)(en,{qrcode:e.code,code:null,pin:null}):"active"===m?n?(0,r.jsx)(w.$,{onClick:t,brandColor:h,children:a.isNftAvailable?"Redeem Now":"Reserve Now"}):(0,r.jsx)(A(),{href:y.JZ.account.login.withQuery({redirect:l}),children:(0,r.jsxs)(w.$,{brandColor:h,children:["Sign In to ",a.isNftAvailable?"Redeem":"Reserve"]})}):"pre-minted"===m&&n?(0,r.jsx)(w.$,{brandColor:h,onClick:s,children:"Reserve NFT"}):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:(()=>{switch(m){case"active":return`${ex} ptjd107`;case"minted":return`${ex} ptjd108`;case"mint-failed":return`${ex} ptjd10a`;default:if(N)return`${ex} ptjd109`;return`${ex} ptjd10b`}})(),children:[(0,r.jsxs)("div",{className:"ptjd10c",children:[(0,r.jsx)("div",{className:`ptjd10d ${_()}`,children:(()=>
15{if(N)return(0,r.jsx)("span",{className:"ptjd1012"});switch(m){case"minted":return(0,r.jsx)("span",{className:"ptjd10k",children:"✦"});case"active":return(0,r.jsx)("span",{children:"◆"});case"mint-failed":return(0,r.jsx)("span",{children:"✕"});case"pre-minted":return(0,r.jsx)("span",{children:"◈"});default:return(0,r.jsx)("span",{children:"○"})}})()}),(0,r.jsx)("span",{className:`ptjd10e ${_()}`,children:k})]}),"active"===m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:ey,children:[(0,r.jsxs)("div",{className:ej,children:[p&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:ev,children:"Id Reference"}),(0,r.jsx)("div",{className:ef,children:p})]}),f&&(0,r.jsxs)("div",{className:"ptjd10t",children:["#",f,g?` / ${g}`:""," Edition"]})]}),p&&(0,r.jsx)("div",{className:eS,children:(0,r.jsx)(ee.v,{url:`https://corriere-art.it/qr/${p}`,size:56})})]}),!d&&(0,r.jsx)("div",{className:ep,children:R()})]}),"minted"===m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:ey,children:[(0,r.jsx)("div",{className:ej,children:p&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:ev,children:"Id Reference"}),(0,r.jsx)("div",{className:ef,children:p})]})}),p&&(0,r.jsx)("div",{className:eS,children:(0,r.jsx)(ee.v,{url:`https://corriere-art.it/qr/${p}`,size:56})})]}),(0,r.jsxs)("div",{className:"ptjd10p",children:[b&&(0,r.jsxs)("div",{className:eb,children:[(0,r.jsx)("span",{className:ew,children:"Redeemed"}),(0,r.jsx)("span",{className:eC,children:(0,r.jsx)(et.Z.fB,{date:x()(b).toDate()})})]}),j&&(0,r.jsxs)("div",{className:eb,children:[(0,r.jsx)("span",{className:ew,children:"Token"}),(0,r.jsx)("span",{className:eC,children:j})]}),f&&(0,r.jsxs)("div",{className:eb,children:[(0,r.jsx)("span",{className:ew,children:"Edition"}),(0,r.jsxs)("span",{className:eC,children:["#",f,g?` / ${g}`:""]})]}),C?.name&&(0,r.jsxs)("div",{className:eb,children:[(0,r.jsx)("span",{className:ew,children:"Store"}),(0,r.jsxs)("span",{className:eC,children:[C.name,C.city?`, ${C.city}`:""]})]})]})]}),N&&(0,r.jsxs)("div",{className:ek,children:[p&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:ev,children:"Id Reference"}),(0,r.jsx)("div",{className:ef,children:p})]}),(0,r.jsxs)("div",{className:eN,children:["Creating your digital certificate",(0,r.jsxs)("span",{className:"ptjd10x",children:[(0,r.jsx)("span",{className:`${eg} ${_()}`}),(0,r.jsx)("span",{className:`${eg} ptjd10z ${_()}`}),(0,r.jsx)("span",{className:`${eg} ptjd1010 ${_()}`})]})]})]}),"pre-minted"===m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:ey,children:[(0,r.jsxs)("div",{className:ej,children:[p&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:ev,children:"Id Reference"}),(0,r.jsx)("div",{className:ef,children:p})]}),(0,r.jsx)("div",{className:eN,children:"Your certificate is being prepared and will be ready soon."})]}),p&&(0,r.jsx)("div",{className:eS,children:(0,r.jsx)(ee.v,{url:`https://corriere-art.it/qr/${p}`,size:56})})]}),!d&&n&&(0,r.jsx)("div",{className:ep,children:R()})]}),"mint-failed"===m&&(0,r.jsxs)("div",{className:ek,children:[p&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:ev,children:"Id Reference"}),(0,r.jsx)("div",{className:ef,children:p})]}),(0,r.jsx)("div",{className:eN,children:"Something went wrong creating your certificate. Please try again."}),!d&&(0,r.jsx)("div",{className:ep,children:(0,r.jsx)(w.$,{onClick:t,brandColor:h,children:"Try Again"})})]}),!["active","minted","pre-minted","mint-failed"].includes(m)&&!N&&(0,r.jsxs)("div",{className:ey,children:[p&&(0,r.jsxs)("div",{className:ej,children:[(0,r.jsx)("div",{className:ev,children:"Id Reference"}),(0,r.jsx)("div",{className:ef,children:p})]}),p&&(0,r.jsx)("div",{className:eS,children:(0,r.jsx)(ee.v,{url:`https://corriere-art.it/qr/${p}`,size:56})})]})]}),d&&"active"===m&&(0,r.jsx)("div",{className:"ptjd1013",children:n?(0,r.jsx)("button",{className:e_,style:{backgroundColor:h,color:"#fff"},onClick:t,children:a.isNftAvailable?"Redeem Now":"Reserve Now"}):(0,r.jsx)(A(),{href:y.JZ.account.login.withQuery({redirect:l}),style:{display:"block"},children:(0,r.jsx)("button",{className:e_,style:{backgroundColor:h,color:"#fff"},children:"Sign In to Redeem"})})})]})};var eT=s(15200);let eA=()=>{let{wovenLabel:e}=(0,S.a)(),{product:t}=(0,u.ot)(),[s,i]=(0,a.useState)(!1);if("minted"!==e.state||!t.isNftAvailable||!t.nftAsset)return null;let{nftAsset:n,nftAssetMimeType:l,nftName:o}=t,{nftTokenId:c,sequence:d,maxSupply:h,mintedDate:m}=e,p=`https://api.corriere-art.it${n}`,j=l?.startsWith("video/");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{onClick:()=>i(!0),role:"button",style:{display:"flex",alignItems:"center",gap:14,padding:"12px 14px",border:"1px solid rgba(61,153,112,0.25)",borderRadius:12,cursor:"pointer",marginBottom:16,background:"rgba(61,153,112,0.06)"},children:[(0,r.jsx)("div",{style:{width:64,height:64,borderRadius:8,overflow:"hidden",flexShrink:0,pointerEvents:"none"},children:j?(0,r.jsx)("video",{src:p,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0}
15):(0,r.jsx)("img",{src:p,alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,r.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,r.jsx)(k.o,{variant:"caption",typographyStyle:{textTransform:"uppercase",letterSpacing:"0.1em",color:"#3D9970",display:"block"},children:"✓ Digital Certificate"}),o&&(0,r.jsx)(k.o,{variant:"body2",typographyStyle:{fontWeight:500,marginTop:2},children:o}),(0,r.jsxs)("div",{style:{display:"flex",gap:8,marginTop:2,flexWrap:"wrap"},children:[c&&(0,r.jsxs)(k.o,{variant:"caption",typographyStyle:{color:"#888",fontFamily:"monospace"},children:["Token: ",c]}),d&&(0,r.jsxs)(k.o,{variant:"caption",typographyStyle:{color:"#888"},children:["#",d,h?`/${h}`:""]}),m&&(0,r.jsx)(k.o,{variant:"caption",typographyStyle:{color:"#888"},children:(0,r.jsx)(et.Z.fB,{date:x()(m).toDate()})})]})]}),(0,r.jsx)("span",{style:{color:"#3D9970",fontSize:18,flexShrink:0},children:"›"})]}),s&&(0,r.jsx)(eT.H,{product:t,wovenLabel:e,onClose:()=>i(!1)})]})};var eq=s(99646),e$=s(2323),eI=s(7270);let eO=o.$.corriere,eF=({code:e})=>{let{data:t}=(0,n.Fu)(e),s=(0,i.useSearchParams)(),o=s.get("code"),h=s.get("pin"),m=t?.product,p=(0,a.useMemo)(()=>({product:m}),[m]);if(!m||!t)return null;let x=eO.enableOnlineDigitalPurchase&&m.onlinePurchaseType!==c.Fe.NONE;return(0,r.jsx)(u.SL.Provider,{value:p,children:(0,r.jsx)(K,{wovenLabel:t,code:o,pin:h,children:(0,r.jsxs)("div",{className:eI.iE,children:[(0,r.jsx)("div",{className:eI.Qs,style:{paddingBottom:0,paddingTop:8},children:(0,r.jsx)(l.I,{brandSlug:m.brand.brandId,brandName:m.brand.name,productId:m.productId,productName:m.name})}),(0,r.jsxs)("div",{className:eI.Zp,children:[(0,r.jsx)("div",{className:eI.zw,children:(0,r.jsx)(eq.l,{})}),(0,r.jsxs)("div",{className:eI.qy,children:[(0,r.jsx)("div",{className:eI.nY,children:m.name}),(0,r.jsx)(eL,{}),(0,r.jsx)(eA,{}),!!t.medias?.length&&(0,r.jsxs)("div",{style:{marginBottom:16},children:[(0,r.jsx)("div",{style:{fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",color:"#999",marginBottom:8},children:"Documents"}),t.medias.map(e=>(0,r.jsx)(em,{...e},e.wovenLabelMediaId))]}),x&&(0,r.jsx)(e$.L,{}),(0,r.jsx)(d.Y,{})]})]})]})})})}},38473:()=>{},38782:(e,t,s)=>{"use strict";s.d(t,{useSuspenseQuery:()=>n});var r=s(3111),a=s(54105),i=s(56451);function n(e,t){return(0,a.t)({...e,enabled:!0,suspense:!0,throwOnError:i.R3,placeholderData:void 0},r.$,t)}},40398:()=>{},41638:(e,t,s)=>{"use strict";s.d(t,{Bd:()=>a,lQ:()=>r});var r=function(){},a="u">typeof window},44903:(e,t,s)=>{"use strict";s.d(t,{q:()=>i});var r=s(54568),a=s(45246);let i=e=>(0,r.jsx)(a.I,{...e,jsx:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_14101_33441)",children:[(0,r.jsx)("path",{d:"M15.4821 13.4188C15.1841 13.1209 15.188 12.6368 15.4877 12.3371L16.9817 10.8432C18.5869 9.23788 18.6004 6.63725 17.0117 5.04853C15.423 3.45981 12.8209 3.47188 11.2157 5.07716L9.72168 6.57114C9.4206 6.87222 8.93654 6.8733 8.63998 6.57674C8.34342 6.28018 8.34593 5.79469 8.64558 5.49504L10.1396 4.00107C12.3442 1.79365 15.9158 1.77513 18.099 3.95839C20.2823 6.14164 20.2638 9.71324 18.0577 11.9192L16.5638 13.4132C16.2627 13.7143 15.7786 13.7154 15.4821 13.4188Z",fill:"black"}),(0,r.jsx)("path",{d:"M3.96016 18.1001C1.77691 15.9168 1.79542 12.3452 4.00143 10.1392L5.49541 8.64522C5.79649 8.34414 6.28055 8.34305 6.57711 8.63961C6.87367 8.93617 6.87115 9.42166 6.5715 9.72131L5.07752 11.2153C3.47225 12.8206 3.45877 15.4212 5.04749 17.0099C6.63621 18.5986 9.23683 18.5851 10.8421 16.9799L12.3361 15.4859C12.6372 15.1848 13.1212 15.1837 13.4178 15.4803C13.7143 15.7768 13.7118 16.2623 13.4122 16.562L11.9182 18.056C9.71219 20.262 6.14059 20.2805 3.95734 
1518.0972L3.96016 18.1001Z",fill:"black"}),(0,r.jsx)("path",{d:"M7.60865 14.4511C7.27678 14.1192 7.27958 13.5798 7.6149 13.2445L13.2412 7.61816C13.5765 7.28283 14.116 7.28004 14.4478 7.6119C14.7797 7.94377 14.7769 8.4832 14.4416 8.81852L8.81527 14.4448C8.47994 14.7802 7.94051 14.783 7.60865 14.4511Z",fill:"black"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_14101_33441",children:(0,r.jsx)("rect",{width:"11.2",height:"20",fill:"white",transform:"translate(14.1406) rotate(45)"})})})]})})},44993:()=>{},46147:(e,t,s)=>{"use strict";s.d(t,{F:()=>d});var r=s(54568),a=s(7620),i=s(34862),n=s(50482),l=s(66615),o=s(60328),c=s(68998);s(93306),s(17971);let d=(0,a.forwardRef)(({children:e,onSwiper:t,...s},d)=>{let u=(0,a.useRef)(null),h=a.Children.toArray(e),m=h.length>1,p=(0,a.useMemo)(()=>{let e=new Set(s.modules??[]);return m&&e.add(n.Vx),[...e]},[m,s.modules]);return(0,r.jsxs)("div",{className:"_15k8una0",children:[(0,r.jsx)(i.RC,{onSwiper:(0,l.P)([d,u,t]),modules:p,...s,children:h}),m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"swiper-button-prev",onClick:()=>u.current?.slidePrev(),children:(0,r.jsx)(c.v,{iconStyle:{transform:"rotate(180deg)",color:o.themeVars.colors.black}})}),(0,r.jsx)("button",{className:"swiper-button-next",onClick:()=>u.current?.slideNext(),children:(0,r.jsx)(c.v,{iconStyle:{color:o.themeVars.colors.black}})})]})]})});d.displayName="Carousel"},46462:()=>{},47656:(e,t,s)=>{"use strict";s.d(t,{M:()=>h});var r=s(54568),a=s(7620),i=s(34862),n=s(56967),l=s(50482),o=s(30186),c=s(10739),d=s(97380);s(5073),s(59764),s(10635);var u=(0,s(81993).c)({defaultClassName:"ucq93m4",variantClassNames:{isVideo:{true:"ucq93m5"}},defaultVariants:{},compoundVariants:[]});n.A.use([l.s3]);let h=({isModalOpen:e,onClose:t,medias:s,previewModalActiveIndex:n,title:l,subTitle:h,isVideo:m})=>{let[p,x]=(0,a.useState)(null);return(0,r.jsx)(c.a,{title:l,subTitle:h,isOpen:e,onClose:t,maxWidth:"1045px",children:(0,r.jsxs)("div",{className:"ucq93m1 _11mahs3x _11mahs3w",children:[(0,r.jsx)(i.RC,{initialSlide:n??0,onSwiper:x,allowTouchMove:!1,navigation:!0,keyboard:!0,onKeyPress:(e,s)=>{"27"===s&&t()},style:{width:"100%",height:"auto",maxHeight:"70vh"},breakpoints:{320:{spaceBetween:20,slidesPerView:1},448:{spaceBetween:20,slidesPerView:"auto"}},children:s.map(e=>(0,r.jsx)(i.qr,{children:m||e.mimeType?.includes("video")?(0,r.jsx)(d.L,{src:`https://api.corriere-art.it${e?.name}`,videoStyle:{width:"100%",maxHeight:"70vh"},containerStyle:{height:"auto",backgroundColor:"#000000",borderRadius:8,overflow:"hidden"}}):(0,r.jsx)(o.default,{className:"ucq93m2",src:`https://api.corriere-art.it${e?.name}`,alt:e.name??"",width:720,height:720})},e.name))}),(0,r.jsx)("div",{className:"ucq93m3",children:s?.map((e,t)=>(0,r.jsx)("div",{className:u({isVideo:e.mimeType?.includes("video")}),onClick:()=>{p?.slideTo(t)},children:e.mimeType?.includes("video")?(0,r.jsx)(d.L,{src:`https://api.corriere-art.it${e.name}`,controls:!1,videoStyle:{width:"100%",height:"100%",objectFit:"cover"},containerStyle:{backgroundColor:"#000000"}}):(0,r.jsx)(o.default,{className:"ucq93m6",src:`https://api.corriere-art.it${e.name}`,alt:e.name??"",width:70,height:70})},e.name))})]})})}},49630:(e,t,s)=>{"use strict";s.d(t,{v:()=>i});var r=s(54568);s(7620);var a=s(13693);let i=({url:e,size:t=300})=>(0,r.jsx)(a.h,{value:e,size:t})},53889:(e,t,s)=>{"use strict";s.d(t,{i:()=>i});var r=s(54568),a=s(45246);let i=e=>(0,r.jsx)(a.I,{...e,jsx:(0,r.jsx)("path",{d:"M1 5.77C0.447715 5.77 0 6.21771 0 6.77V10.77C0 11.3223 0.447715 11.77 1 11.77H3.58579C3.851 11.77 4.10536 11.8754 4.29289 12.0629L7.2929 15.0629C7.92286 15.6929 9 15.2467 9 14.3558V3.18421C9 2.29331 7.92286 1.84714 7.29289 2.47711L4.29289 5.47711C4.10536 5.66464 3.851 5.77 3.58579 5.77H1ZM13.5 8.77C13.5 7.58144 13.0401 6.50561 12.2898 5.70299C11.7821 5.15994 11 5.61465 11 6.35803V11.1817C11 11.9227 11.7781 12.3779 12.2858 11.8382C13.0385 11.0381 13.5 9.96064 13.5 8.77ZM12.1982 0.36163C11.5984 0.133745 11 0.610771 11 1.25236V1.31424C11 1.75667 11.2941 2.13979 11.7021 2.31074C14.2254 3.36786 16 5.86288 16 8.77C16 11.6771 14.2254 14.1721 11.7021 15.2293C11.2941 15.4002 11 15.7833 11 16.2258V16.2876C11 16.9292 11.5984 17.4063 12.1982 17.1784C15.5913 15.8891 18 12.6115 18 8.77C18 4.92847 15.5913 1.65087 12.1982 0.36163Z"})})},54429:(e,t,s)=>{"use strict";s.d(t,{m:()=>i});var r=s(21901),a=s(82711);let i=e=>{let{validationSchema:t,...s}=e??{};return(0,r.mN)({...s,...t&&{resolver:(0,a.t)(t)}})}},55319:()=>{},56967:(e,t,s)=>{"use strict";s.d(t,{A:()=>r.S});var r=s(66461)},57341:()=>{},60490:(e,t,s)=>{"use strict";s.d(t,{F:()=>m});var r=s(54568),a=s(7620),i=s(98792),n=s(70147),l=s(74656),o=s(71332);s(59764),s(38963);var c={isChecked:"buszyr1 buszyr0",isNoChecked:"buszyr2 buszyr0"};let d=({option:e,value:t,onSelect:s})=>{let i=(0,a.useMemo)(()=>t?.some(({value:t})=>t===e.value),[e.value,t]);return(0,r.jsx)("li",{className:c[i?"isChecked":"isNoChecked"],onMouseDown:()=>{s(e)},children:e.label})};s(58257);let u=({value:e,items:t=[],label:s,labelStyle:c,multiple:u=!1,placeholder:h,valueHidden:m,onChange:p,onBlur:x,wrapperStyle:j,className:v,onSearch:y,validate:f=!0,sortOption:g,popupPlacement:b="bottom-start",...w})=>{let C=(0,a.useRef)(null),k=(0,a.useRef)(null),[N,S]=(0,a.useState)(null),[_,R]=(0,a.useState)(null),[E,L]=(0,a.useState)(null),[T,A]=(0,a.useState)(!1),q=t&&t[0]&&"object"==typeof t[0].label,[$,I]=(0,a.useState)(null),O=(0,a.useMemo)(()=>{let t=e?.length??0,s=q&&e?e[0]?.label:e?.map(({label:e})=>e).join(", ");return m?"":t?s:""},[q,e,m]),{styles:F,attributes:P}=(0,i.E)(_,N,{placement:b,modifiers:[{name:"offset",options:{offset:[0,15]}}]}),M=(0,a.useCallback)(()=>{y?.(""),I(null)},[y]),B=(0,a.useCallback)(t=>{p&&(e?.find(e=>e.value===t.value)&&e?p(e.filter(e=>e.value!==t.value)):p(u?[...e||[],t]:[t]),A(!1),x&&x(),M())},[p,e,x,u,M]),V=(0,a.useCallback)(()=>{A(!1),x&&x()},[x]);(0,n.L)(V,[{current:E},{current:N}
15,k,C]);let D=g?`${g} (${O})`:O;return(0,r.jsxs)("div",{className:`_18tq9ec0 ${v??""}`,style:{...j},ref:L,children:[s&&(0,r.jsx)("div",{className:"_18tq9ec2",style:{...c},children:s}),(0,r.jsx)(o.pd,{className:"_18tq9ec1",ref:R,...w,placeholder:h,validate:f,style:{},readOnly:!y,value:`${$??(q?null:O?D:"")??""}`,onClick:()=>A(!0),onFocus:()=>A(!0),onBlur:M,onChange:e=>{let{value:t}=e.target;y?.(t),I(t)},rightSlot:(0,r.jsx)(l.H,{ref:C,size:20,viewBox:"0 0 20 20",iconStyle:{transform:`rotate(${T?"180deg":"0"})`,transition:"transform ease-out 0.3s"},onClick:()=>A(e=>!e)})}),T&&(0,r.jsx)("ul",{className:"_18tq9ec3",ref:S,...P.popper,style:{...F.popper,width:E?.clientWidth??"auto"},children:t.length>0?t.map(t=>(0,r.jsx)(d,{value:e,option:t,onSelect:B},t.value)):(0,r.jsx)("div",{className:"_18tq9ec4",children:"No Data"})})]})};var h=s(35098);let m=(0,a.forwardRef)(({multiple:e,items:t,message:s,rules:a,shouldUnregister:i,defaultValue:n,onAfterChange:l,...o},c)=>{let{name:d}=o;return(0,r.jsx)(h.X,{name:d,rules:a,shouldUnregister:i,defaultValue:n,onAfterChange:l,children:({field:a,isError:i,errorMessage:n,validate:l})=>{let{value:d,onChange:h,onBlur:m}=a;return(0,r.jsx)(u,{...o,isError:i,onBlur:m,items:t,multiple:e,ref:c,value:d&&t?("string"==typeof d?[d]:d).reduce((e,s)=>{let r=t.find(({value:e})=>e===s);return r&&e.push(r),e},[]):[],message:l&&n||s,onChange:t=>{if(t)h(e?t?t.map(({value:e})=>e):[]:t[0]?.value);else h(e?[]:void 0)}})}})})},62681:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return d},getImageProps:function(){return c}};for(var a in r)Object.defineProperty(t,a,{enumerable:!0,get:r[a]});let i=s(49657),n=s(5615),l=s(54283),o=i._(s(30525));function c(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let d=l.Image},65567:(e,t,s)=>{"use strict";s.d(t,{O:()=>i});var r=s(54568),a=s(45246);let i=e=>(0,r.jsx)(a.I,{...e,jsx:(0,r.jsx)("path",{d:"M18.0836 12.4212L11.9036 18.6112C11.0934 19.3312 10.0387 19.7145 8.9553 19.6826C7.87188 19.6507 6.84158 19.206 6.07515 18.4396C5.30872 17.6732 4.86409 16.6429 4.83219 15.5595C4.8003 14.476 5.18356 13.4214 5.90358 12.6112L13.9036 4.61119C14.3812 4.15749 15.0148 3.90452 15.6736 3.90452C16.3323 3.90452 16.966 4.15749 17.4436 4.61119C17.9089 5.08278 18.1698 5.71866 18.1698 6.38119C18.1698 7.04372 17.9089 7.6796 17.4436 8.15119L10.5436 15.0412C10.4753 15.1147 10.3932 15.1741 10.302 15.2159C10.2107 15.2577 10.1121 15.2811 10.0119 15.2849C9.91157 15.2886 9.81154 15.2725 9.71746 15.2376C9.62339 15.2026 9.53712 15.1495 9.46358 15.0812C9.39004 15.0129 9.33067 14.9308 9.28886 14.8396C9.24705 14.7483 9.22362 14.6498 9.2199 14.5495C9.21619 14.4492 9.23226 14.3491 9.26721 14.2551C9.30216 14.161 9.35529 14.0747 9.42358 14.0012L14.5536 8.88119C14.7419 8.69289 14.8477 8.43749 14.8477 8.17119C14.8477 7.90489 14.7419 7.64949 14.5536 7.46119C14.3653 7.27289 14.1099 7.1671 13.8436 7.1671C13.5773 7.1671 13.3219 7.27289 13.1336 7.46119L8.00358 12.6012C7.74688 12.8559 7.54314 13.1589 7.40411 13.4927C7.26507 13.8265 7.19349 14.1846 7.19349 14.5462C7.19349 14.9078 7.26507 15.2658 7.40411 15.5997C7.54314 15.9335 7.74688 16.2365 8.00358 16.4912C8.52795 16.9907 9.22439 17.2693 9.94858 17.2693C10.6728 17.2693 11.3692 16.9907 11.8936 16.4912L18.7836 9.59119C19.5785 8.73814 20.0112 7.60986 19.9906 6.44405C19.9701 5.27825 19.4978 4.16594 18.6733 3.34146C17.8488 2.51698 16.7365 2.04471 15.5707 2.02414C14.4049 2.00357 13.2766 2.43631 12.4236 3.23119L4.42358 11.2312C3.34478 12.426 2.76861 13.991 2.81511 15.6002C2.86162 17.2093 3.52721 18.7384 4.67322 19.869C5.81922 20.9995 7.35725 21.6442 8.96686 21.6689C10.5765 21.6935 12.1335 21.0961 13.3136 20.0012L19.5036 13.8212C19.5968 13.7279 19.6708 13.6173 19.7212 13.4954C19.7717 13.3736 19.7977 13.243 19.7977 13.1112C19.7977 12.9793 19.7717 12.8488 19.7212 12.7269C19.6708 12.6051 19.5968 12.4944 19.5036 12.4012C19.4103 12.3079 19.2997 12.234 19.1778 12.1835C19.056 12.1331 18.9254 12.1071 18.7936 12.1071C18.6617 12.1071 18.5312 12.1331 18.4093 12.1835C18.2875 12.234 18.1768 12.3079 18.0836 12.4012V12.4212Z"})})},67461:()=>{},68998:(e,t,s)=>{"use strict";s.d(t,{v:()=>i});var r=s(54568),a=s(45246);let i=e=>(0,r.jsx)(a.I,{...e,jsx:(0,r.jsx)("path",{d:"M14.9986 11.9542C14.9882 11.8055 14.9293 11.6647 14.8315 11.5542L10.1371 6.22102C10.0798 6.15589 10.
150106 6.10294 9.93333 6.06518C9.85605 6.02742 9.77226 6.00559 9.68674 6.00094C9.60122 5.99629 9.51564 6.00891 9.43488 6.03808C9.35413 6.06725 9.27979 6.1124 9.2161 6.17095C9.15242 6.2295 9.10063 6.30032 9.06371 6.37933C9.02679 6.45834 9.00545 6.54402 9.00092 6.63147C8.99638 6.71892 9.00874 6.80642 9.03728 6.88898C9.06582 6.97155 9.10998 7.04755 9.16725 7.11266L13.4704 12L9.16725 16.8873C9.10998 16.9525 9.06581 17.0285 9.03727 17.111C9.00873 17.1936 8.99638 17.2811 9.00092 17.3685C9.00545 17.456 9.02679 17.5417 9.06371 17.6207C9.10063 17.6997 9.15242 17.7705 9.2161 17.829C9.27979 17.8876 9.35413 17.9327 9.43488 17.9619C9.51563 17.9911 9.60122 18.0037 9.68674 17.9991C9.77226 17.9944 9.85605 17.9726 9.93333 17.9348C10.0106 17.8971 10.0798 17.8441 10.1371 17.779L14.8315 12.4458C14.8901 12.3795 14.9352 12.3018 14.9639 12.2174C14.9926 12.1329 15.0044 12.0434 14.9986 11.9542Z"})})},69232:(e,t,s)=>{"use strict";s.d(t,{N:()=>o});var r=s(54568),a=s(7620),i=s(68031),n=s.n(i),l=s(60490);let o=e=>{let[t,s]=(0,a.useState)(""),i=(0,a.useMemo)(()=>{let e=[{value:"all",label:"All countries"},...n()().getData()];return t?e.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())):e},[t]);return(0,r.jsx)(l.F,{...e,onSearch:s,items:i})}},70147:(e,t,s)=>{"use strict";s.d(t,{L:()=>l});var r=s(7620);let a=["mousedown","touchstart"],i=(...e)=>document.addEventListener(...e),n=(...e)=>document.removeEventListener(...e),l=(e,t)=>{let s=(0,r.useRef)(e);(0,r.useEffect)(()=>{s.current=e},[e]),(0,r.useEffect)(()=>{let e=e=>{let r=Array.isArray(t)?t:[t],a=!1;for(let t of r){let{current:s}=t;if(s&&s.contains(e.target)){a=!0;break}}a||s.current()};for(let t of a)i(t,e);return()=>{for(let t of a)n(t,e)}},[t])}},71695:()=>{},72393:(e,t,s)=>{"use strict";s.d(t,{Y:()=>B});var r=s(54568),a=s(77028),i=s(30186),n=s(7620),l=s(93328),o=s(84196),c=s(84511),d=s(4217);s(59764),s(5073),s(36817);let u=({children:e,accordionStyle:t,...s})=>(0,r.jsx)("div",{style:t,...s,children:e});u.Item=({title:e,children:t,accordionItemStyle:s})=>{let[a,i]=(0,l.A)(!0);return(0,r.jsxs)("div",{className:"k32ow80",style:s,children:[(0,r.jsx)("details",{className:"k32ow81",open:!0,onClick:i,children:(0,r.jsxs)("summary",{className:"k32ow83 _11mahs34f _11mahs399 _11mahs3e3 _11mahs3ix",children:[(0,r.jsx)(o.z,{breakpoint:"smOnly",children:(0,r.jsx)(c.o,{variant:"subtitle2",typographyStyle:{lineHeight:1,textTransform:"uppercase"},children:e})}),(0,r.jsx)(o.z,{breakpoint:"md",children:(0,r.jsx)(c.o,{variant:"subtitle1",typographyStyle:{lineHeight:1,textTransform:"uppercase"},children:e})}),(0,r.jsx)(d.s,{size:15,iconStyle:{transform:`rotate(${a?0:-90}deg)`,transition:"transform 0.3s ease-out"}})]})}),(0,r.jsx)("div",{className:"k32ow85 _11mahs3e3 _11mahs3ix _11mahs399",children:(0,r.jsx)("div",{className:"k32ow86",children:t})})]})};var h=s(79025),m=s(44903),p=s(65567),x=s(60328);s(30349);let j=({src:e,name:t,isMedia:s,brandColor:a})=>{let i=s?p.O:m.q;return(0,r.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",style:{display:"flex"},children:(0,r.jsxs)(h.$,{variant:"tertiary",buttonStyle:{padding:"0",overflow:"hidden"},children:[(0,r.jsx)(i,{size:20,color:x.themeVars.colors.black,iconStyle:{marginRight:4}}),(0,r.jsx)(c.o,{className:"hfrc9y0",typographyStyle:{color:a},children:t})]})})};s(38473);let v=({text:e,title:t,brandColor:s,medias:a,links:n,traceabilityMedias:l,cares:o})=>(0,r.jsx)(u,{children:(0,r.jsx)(u.Item,{title:t,children:(0,r.jsxs)("div",{className:"mzvi3q0",children:[e&&(0,r.jsx)(c.o,{variant:"body2",typographyStyle:{whiteSpace:"pre-wrap"},children:e}),(!!n?.length||!!a?.length||!!l?.length)&&(0,r.jsxs)("div",{className:"mzvi3q1",children:[a?.map(({filename:e,name:t},a)=>(0,r.jsx)(j,{src:`https://api.corriere-art.it${e}`,name:t,isMedia:!0,brandColor:s},a)),l?.map(({filename:e,name:t},a)=>(0,r.jsx)(j,{src:`https://api.corriere-art.it${e}`,name:t,isMedia:!0,brandColor:s},a)),n?.map(({link:e,name:t},a)=>(0,r.jsx)(j,{src:e,name:t,brandColor:s},a))]}),o?.map(e=>(0,r.jsxs)("div",{className:"mzvi3q2",children:[(0,r.jsx)(i.default,{className:"mzvi3q3",src:`https://api.corriere-art.it${e.icon}`,alt:e.text,height:25,width:25}),(0,r.jsx)(c.o,{variant:"body2",children:e.text})]},e.careTypeId))]})})}),y=()=>{let{product:e}=(0,a.ot)(),{productId:t,text:s,materialText:i,cares:n,links:l,brand:o,traceabilityText:c,traceabilityMedias:d,traceabilityLinks:u}=e,{color:h}=o;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{title:"Description",productId:t,text:s,links:l,brandColor:h}),(!!i||n.length>0)&&(0,r.jsx)(v,{title:"Materials & Care",productId:t,cares:n,text:i}),(!!c||u.length>0||d.length>0)&&(0,r.jsx)(v,{title:"Traceability",productId:t,brandColor:h,text:c,links:u,traceabilityMedias:d})]})};var f=s(71430),g=s.n(f),b=s(34862),w=s(51546),C=s(80489),k=s(46147),N=s(68998);s(11852);let S=({children:e})=>(0,r.jsx)("div",{className:"g4udnl0",children:(0,r.jsx)(c.o,{variant:"subtitle1",typographyStyle:{textTransform:"uppercase",lineHeight:1},children:e})});s(20943);let _=()=>{let{product:e}=(0,a.ot)(),{slug:t,benefits:s,expiredBenefits:i}=e,n=[...s,...i];return n.length?(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"vytykh2",children:[(0,r.jsx)(S,{children:"Benefits"}
15),(0,r.jsxs)(g(),{href:w.JZ.products.benefits(t),className:"vytykh3",children:[(0,r.jsx)(c.o,{variant:"hyperLink",children:"See all"}),(0,r.jsx)(N.v,{size:24})]})]}),(0,r.jsx)("p",{className:"vytykh1",children:"Redeem this product to unlock access to exclusive benefits."}),(0,r.jsx)("div",{className:"vytykh0",children:(0,r.jsx)(k.F,{style:{width:"100%"},breakpoints:{320:{spaceBetween:16,slidesPerView:1.15},480:{spaceBetween:16,slidesPerView:1.6},768:{spaceBetween:16,slidesPerView:2.2},1024:{spaceBetween:16,slidesPerView:"auto"}},children:n.map(e=>(0,r.jsx)(b.qr,{style:{height:"auto"},children:(0,r.jsx)(g(),{href:w.JZ.productBenefits.detail(e.slug),style:{display:"block",height:"100%"},children:(0,r.jsx)(C.Q,{compact:!0,containerStyle:{width:"100%"},...e})})},e.productBenefitId))})})]}):null};var R=s(56967),E=s(50482),L=s(97380),T=s(15241),A=s(72436),q=s(47656);s(46462);let $=({children:e,contentStyle:t})=>(0,r.jsx)("div",{className:"_1hm5sq20",style:t,children:(0,r.jsx)(c.o,{variant:"h5",className:"_1hm5sq22 _11mahs3df _11mahs3ea _11mahs3i9 _11mahs3j4 _11mahs34f _11mahs399",children:e})});s(55319),s(2698);var I="ydh27v0";R.A.use([E.Vx,E._R]);let O=({isNft:e})=>
15{let[t,s]=(0,n.useState)(null),[i,l]=(0,n.useState)(null),{product:{productId:o,name:c,promotionalImages:d,promotionalVideos:u,nftPromotionalImages:h,nftPromotionalVideos:m,isNftAvailable:p}}=(0,a.ot)(),x=(0,n.useMemo)(()=>e&&p?h:d,[e,p,h,d]),j=(0,n.useMemo)(()=>e&&p?m:u,[e,p,m,u]);return x.length||j.length?(0,r.jsxs)(r.Fragment,{children:[j.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)($,{children:"Videos"}),(0,r.jsx)("div",{className:I,children:(0,r.jsxs)(k.F,{slidesPerView:"auto",breakpoints:{0:{slidesPerView:1},482:{spaceBetween:16,slidesPerView:"auto"},1040:{spaceBetween:20}},children:[j.map((e,t)=>(0,r.jsxs)(b.qr,{onClick:()=>l(t),children:[(0,r.jsx)(L.L,{src:`https://api.corriere-art.it${e.name}`}),(0,r.jsx)("div",{className:"ydh27v3 _2gnjqf9 _2gnjqf0",children:(0,r.jsx)(T.u,{className:"ydh27v4",viewBox:"0 0 24 24",color:"white"})})]},e.name)),(0,r.jsx)(q.M,{title:"videos",isModalOpen:null!==i,onClose:()=>l(null),medias:j,productId:o,isVideo:!0,previewModalActiveIndex:i})]})})]}),x.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)($,{children:"Images"}),(0,r.jsxs)("div",{className:I,children:[(0,r.jsx)(k.F,{slidesPerView:"auto",breakpoints:{0:{slidesPerView:1},482:{spaceBetween:16,slidesPerView:"auto"},1040:{spaceBetween:20}},children:x.map((e,t)=>(0,r.jsx)(b.qr,{onClick:()=>s(t),children:(0,r.jsx)(F,{name:c,blurHash:e.blurHash,src:`https://api.corriere-art.it${e.name}`})},e.name))}),(0,r.jsx)(q.M,{title:"IMAGES",isModalOpen:null!==t,onClose:()=>s(null),medias:x,productId:o,previewModalActiveIndex:t})]})]})]}):null},F=({blurHash:e,src:t,name:s})=>{let a=(0,A.y)(e);return(0,r.jsx)(i.default,{className:"ydh27v2 _11mahs31kl _11mahs31u9",src:t,alt:s??"",width:600,height:600,placeholder:a?"blur":"empty",blurDataURL:a})};var P=s(23381);s(23374);let M=({isNft:e})=>{let{product:t}=(0,a.ot)();return(0,r.jsxs)("div",{className:"_1w6v2wt0",children:[(0,r.jsxs)(S,{children:["More from ",t.brand.name]}),(0,r.jsx)(k.F,{style:{width:"100%"},breakpoints:{320:{spaceBetween:14,slidesPerView:2.1},480:{spaceBetween:16,slidesPerView:2.8},768:{spaceBetween:16,slidesPerView:4},1024:{spaceBetween:16,slidesPerView:"auto"}},children:t.similar?.map(t=>(0,r.jsx)(b.qr,{children:(0,r.jsx)(P.A,{product:t,showBrand:!1,view:e?"nft":"product",fluid:!0,containerStyle:{position:"static"}})},t.productId))})]})},B=()=>{let{product:e}=(0,a.ot)(),{benefits:t,expiredBenefits:s,similar:i}=e,n=t.length>0||s.length>0;return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(_,{}),(0,r.jsx)(y,{}),(0,r.jsx)(O,{}),Number(i?.length)>0&&(0,r.jsx)(M,{})]})}},72505:(e,t,s)=>{"use strict";s.d(t,{K:()=>a,a:()=>i});var r=s(7620);let a=(0,r.createContext)(null),i=()=>(0,r.useContext)(a)},74656:(e,t,s)=>{"use strict";s.d(t,{H:()=>n});var r=s(54568),a=s(7620),i=s(45246);let n=(0,a.forwardRef)((e,t)=>(0,r.jsx)(i.I,{ref:t,...e,jsx:(0,r.jsx)("path",{d:"M5.54037 7.9165L9.4987 11.8748L13.457 7.9165L5.54037 7.9165Z",fill:"black"})}))},75280:()=>{},76145:()=>{},77028:(e,t,s)=>{"use strict";s.d(t,{SL:()=>a,ot:()=>i});var r=s(7620);let a=(0,r.createContext)(null),i=()=>(0,r.useContext)(a);s(72505)},80489:(e,t,s)=>{"use strict";s.d(t,{Q:()=>r.Q});var r=s(789)},81558:(e,t,s)=>{"use strict";s.d(t,{useSuspenseInfiniteQuery:()=>n});var r=s(10079),a=s(54105),i=s(56451);function n(e,t){return(0,a.t)({...e,enabled:!0,suspense:!0,throwOnError:i.R3},r.z,t)}},82405:(e,t,s)=>{"use strict";s.d(t,{y:()=>c});var r=s(54568),a=s(71139),i=s(84511),n=s(60328);s(59764),s(98967);var l=(0,s(81993).c)({defaultClassName:"_18fm5bt0",variantClassNames:{type:{success:"_18fm5bt1",error:"_18fm5bt2"}},defaultVariants:{},compoundVariants:[]}),o=s(91542);let c=({title:e,type:t,closeToast:s})=>(0,r.jsxs)("div",{className:l({type:t===o.x.success?"success":"error"}),children:[(0,r.jsx)(i.o,{variant:"body2",typographyStyle:{color:`${n.themeVars.colors.white}`,lineHeight:1.5},children:e}),(0,r.jsx)(a.U,{onClick:s,iconStyle:{color:`${n.themeVars.colors.white}`,cursor:"pointer"}})]})},82867:(e,t,s)=>{"use strict";s.d(t,{HydrationBoundary:()=>c});var r=s(7620),a=s(92956),i=s(18904);function n(e){return e}function l(e,t,s){if("object"!=typeof t||null===t)return;let r=e.getMutationCache(),l=e.getQueryCache(),o=s?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??n,c=t.mutations||[],d=t.queries||[];
15c.forEach(({state:t,...a})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...s?.defaultOptions?.mutations,...a},t)}),d.forEach(({queryKey:t,state:r,queryHash:n,meta:c,promise:d,dehydratedAt:u,queryType:h})=>{let m=d?(0,a.b)(d):void 0,p=void 0===r.data?m?.data:r.data,x=void 0===p?p:o(p),j=l.get(n),v=j?.state.status==="pending",y=j?.state.fetchStatus==="fetching";if(j){let e=m&&void 0!==u&&u>j.state.dataUpdatedAt;if(r.dataUpdatedAt>j.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;j.setState({...t,data:x,..."pending"===r.status&&void 0!==x&&{status:"success",...!y&&{fetchStatus:"idle"}}})}}else j=l.build(e,{...e.getDefaultOptions().hydrate?.queries,...s?.defaultOptions?.queries,queryKey:t,queryHash:n,meta:c,_type:h},{...r,data:x,fetchStatus:"idle",status:"pending"===r.status&&void 0!==x?"success":r.status});!d||m||v||y||void 0!==u&&!(u>j.state.dataUpdatedAt)||j.fetch(void 0,{initialPromise:Promise.resolve(d).then(o)}).catch(i.lQ)})}var o=s(83919),c=({children:e,options:t={},state:s,queryClient:a})=>{let i=(0,o.useQueryClient)(a),n=r.useRef(t);r.useEffect(()=>{n.current=t});let c=r.useMemo(()=>{if(s){if("object"!=typeof s)return;let e=i.getQueryCache(),t=s.queries||[],r=[],a=[];for(let s of t){let t=e.get(s.queryHash);t?(s.state.dataUpdatedAt>t.state.dataUpdatedAt||s.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==s.dehydratedAt&&s.dehydratedAt>t.state.dataUpdatedAt)&&a.push(s):r.push(s)}if(r.length>0&&l(i,{queries:r},n.current),a.length>0)return a}},[i,s]);return r.useEffect(()=>{c&&l(i,{queries:c},n.current)},[i,c]),e}},84196:(e,t,s)=>{"use strict";s.d(t,{z:()=>l});var r=s(54568),a=s(7620),i=s(55815),n=s(15179);let l=(0,a.forwardRef)(({breakpoint:e,children:t,className:s,style:a},l)=>(0,r.jsx)("div",{ref:l,className:(0,i.o)(s,n.container({breakpoint:e})),style:a,children:t}))},84360:()=>{},85224:()=>{},88136:function(e,t,s){var r,a;void 0===(a="function"==typeof(r=function(){"use strict";function t(e,t,s){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,s)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(s){var t=document.createEvent("MouseEvents");
15t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof s.g&&s.g.global===s.g?s.g:void 0,n=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!n?function(e,s,n){var l=i.URL||i.webkitURL,o=document.createElement("a");o.download=s=s||e.name||"download",o.rel="noopener","string"==typeof e?(o.href=e,o.origin===location.origin?a(o):r(o.href)?t(e,s,n):a(o,o.target="_blank")):(o.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(o.href)},4e4),setTimeout(function(){a(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,s,i){if(s=s||e.name||"download","string"!=typeof e){var n;navigator.msSaveOrOpenBlob((void 0===(n=i)?n={autoBom:!1}:"object"!=typeof n&&(console.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),s)}else if(r(e))t(e,s,i);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){a(l)})}}:function(e,s,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,s,r);var l="application/octet-stream"===e.type,o=/constructor/i.test(i.HTMLElement)||i.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||l&&o||n)&&"u">typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},d.readAsDataURL(e)}else{var u=i.URL||i.webkitURL,h=u.createObjectURL(e);a?a.location=h:location.href=h,a=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});i.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,[]):r)||(e.exports=a)},90173:(e,t,s)=>{"use strict";s.d(t,{E:()=>o});var r=s(7620),a=s(91869),i=s(79452),n=s(70047);let{androidLink:l}=i.$.corriere,o=e=>{let{isIphone:t}=(0,n.v)(),s=(0,r.useRef)(null);return(0,a.A)(()=>()=>s.current&&clearTimeout(s.current)),(0,r.useCallback)(()=>{window.location.replace(e),s.current=setTimeout(()=>{t?window.confirm('Open in "App Store"?')&&window.location.replace("itms-appss://apps.apple.com/app/id6462472069"):window.location.replace(l)},500)},[e,t])}},91542:(e,t,s)=>{"use strict";s.d(t,{x:()=>a});var r,a=((r={})[r.success=0]="success",r[r.error=1]="error",r)},93306:()=>{},93891:()=>{},97380:(e,t,s)=>{"use strict";s.d(t,{L:()=>v});var r=s(54568),a=s(7620),i=s(93328),n=s(15241),l=s(53889),o=s(45246);let c=e=>(0,r.jsx)(o.I,{...e,jsx:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M12.6875 24.684V4.31035C12.6875 3.93086 12.3816 3.625 11.9965 3.625H7.94102C7.55586 3.625 7.25 3.93086 7.25 4.31035V24.684C7.25 25.0635 7.55586 25.375 7.94102 25.375H11.9965C12.3816 25.375 12.6875 25.0691 12.6875 24.684Z"}),(0,r.jsx)("path",{d:"M21.059 3.625H17.0035C16.624 3.625 16.3125 3.93086 16.3125 4.31035V24.684C16.3125 25.0635 16.6184 25.375 17.0035 25.375H21.059C21.4385 25.375 21.75 25.0691 21.75 24.684V4.31035C21.75 3.93086 21.4441 3.625 21.059 3.625Z"})]})}),d=e=>(0,r.jsx)(o.I,{...e,jsx:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M1 9V2C1 1.44772 1.44772 1 2 1H9",stroke:"white",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M13 1L20 1C20.5523 1 21 1.44772 21 2L21 9",stroke:"white",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M9 20H2C1.44772 20 1 19.5523 1 19L1 11",stroke:"white",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M21 11V19C21 19.5523 20.5523 20 20 20H13",stroke:"white",strokeWidth:"2"})]})});s(55319),s(59764),s(44993);var u=s(81993),h="_1kwtutja _1kwtutj9",m=(0,u.c)({defaultClassName:"_1kwtutj1 _2gnjqf9 _2gnjqf0",variantClassNames:{isPreview:{false:"_1kwtutj2"}},defaultVariants:{},compoundVariants:[]}),p="_1kwtutj0",x="_1kwtutj7",j="_1kwtutj8";let v=({src:e,muted:t,autoPlay:s=!1,videoStyle:o,controls:u=!0,loop:v=!0,containerStyle:y})=>{let f=(0,a.useRef)(null),g=(0,a.useRef)(null),[b,w]=(0,a.useState)(0),[C,k]=(0,a.useState)(0),[N,S]=(0,a.useState)(+!t),[_,R]=(0,i.A)(s),[E,L]=(0,i.A)(s),{openFullScreen:T,closeFullScreen:A,getFullScreenElement:q}={openFullScreen:e=>{e.webkitEnterFullscreen?e.webkitEnterFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},closeFullScreen:()=>{document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},getFullScreenElement:()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullscreenElement||document.msFullscreenElement},$=b?C/b*100:0,I=100*N,O=(0,a.useCallback)(()=>{L(!0),_&&f.current?f.current.pause():f.current&&f.current.play(),R(!_)},[_,R,L]),F=(0,a.useCallback)(()=>{q()&&A(),f.current&&T(f.current)},[A,q,T]);return(0,a.useEffect)(()=>{let e=()=>k(f.current?f.current.currentTime:0);return f.current&&f.current.addEventListener("timeupdate",e),()=>{f.current&&f.current.removeEventListener("timeupdate",e)}}),(0,a.useEffect)(()=>{let e=()=>{S(f.current?f.current.volume:0)};return f.current&&f.current.addEventListener("volumechange",e),()=>{f.current&&f.current.removeEventListener("volumechange",e)}}),(0,a.useEffect)(()=>{let e=()=>{w(f.current?f.current.duration:0)};return f.current&&f.current.addEventListener("loadeddata",e),()=>{f.current&&f.current.removeEventListener("loadeddata",e)}}),(0,a.useEffect)(()=>{f.current&&w(f.current.duration)},[b,f]),(0,r.jsxs)("div",{className:p,style:y,children:[u&&(0,r.jsxs)("div",{className:m({isPreview:!u}),children:[!E&&(0,r.jsx)(n.u,{className:"_1kwtutj3",viewBox:"0 0 24 24",onClick:O,color:"white"}),(0,r.jsx)("div",{className:"_1kwtutj5 _1kwtutj4",children:(0,r.jsxs)("div",{className:x,children:[(0,r.jsx)("div",{className:j,style:{width:`${$}%`}}),(0,r.jsx)("input",{ref:g,type:"range",min:0,max:100,value:$||0,onChange:e=>{f.current&&(f.current.currentTime=e.target.value/100*b)},style:{background:`linear-gradient(
16                  to right,
17                  #fff 0%,
18                  #fff ${$}%,
19                  rgba(255, 255, 255, 0.3) ${$}%,
20                  rgba(255, 255, 255, 0.3) ${$}%
21                )`}})]})}
21),_?(0,r.jsx)(c,{className:h,viewBox:"-5 5 40 20",onClick:O,color:"white"}):(0,r.jsx)(n.u,{className:h,viewBox:"0 0 24 24",onClick:O,color:"white"}),(0,r.jsx)(l.i,{className:"_1kwtutjb _1kwtutj9",iconStyle:{opacity:f.current?.muted||0===I?.2:1},onClick:()=>{f.current&&(0===f.current.volume&&(f.current.volume=1),f.current.muted=!f.current.muted)},color:"white"}),(0,r.jsx)("div",{className:"_1kwtutj6 _1kwtutj4",children:(0,r.jsxs)("div",{className:x,children:[(0,r.jsx)("div",{className:j,style:{width:`${f.current?.muted?0:I}%`}}),(0,r.jsx)("input",{ref:g,type:"range",value:I||0,onChange:e=>{f.current&&(f.current.muted=!1,f.current.volume=e.target.value/100)},style:{background:`linear-gradient(
22                  to right,
23                  #fff 0%,
24                  #fff ${I}%,
25                  rgba(255, 255, 255, 0.3) ${I}%,
26                  rgba(255, 255, 255, 0.3) ${I}%
27                )`}})]})}),(0,r.jsx)(d,{className:"_1kwtutjc _1kwtutj9",onClick:F})]}),(0,r.jsx)("video",{className:p,ref:f,muted:t,loop:v,playsInline:!0,preload:"metadata",autoPlay:s,style:o,onLoadedMetadata:()=>{f.current&&w(Math.floor(f.current.duration))},id:u?`${e}=fullscreen-content`:void 0,children:(0,r.jsx)("source",{src:e,type:"video/mp4"})})]})}},97538:(e,t,s)=>{"use strict";s.d(t,{Kq:()=>r});let r=e=>{let t={};for(let[s,r]of Object.entries(e))r&&(t[`--${s}`]=`${r}`);return t}},98735:()=>{},98967:()=>{},99646:(e,t,s)=>{"use strict";s.d(t,{l:()=>y});var r=s(54568),a=s(7620),i=s(56967),n=s(50482),l=s(34862),o=s(30186),c=s(84196),d=s(97380),u=s(72436),h=s(55815),m=s(77028);s(5073),s(59764),s(76145);var p="_1taib1t7";s(36705);var x=(0,s(81993).c)({defaultClassName:"_1fa83g22 _1fa83g21 _11mahs3n3 _11mahs3nm _11mahs31zf",variantClassNames:{autoHeight:{true:"_1fa83g23"},isNft:{true:"_1fa83g24"}},defaultVariants:{},compoundVariants:[]});let j=({name:e,blurHash:t,className:s,src:a,mimeType:i,onClick:n,autoHeight:l,isNft:c})=>{let m=(0,u.y)(t);return(0,r.jsx)("div",{className:(0,h.o)(x({autoHeight:l,isNft:c}),s),onClick:n,children:i?.includes("video")?(0,r.jsx)(d.L,{src:a,autoPlay:!0,muted:!0,controls:c,videoStyle:{width:"100%",height:"auto",borderRadius:"8px"},containerStyle:{height:"auto"}}):(0,r.jsx)("div",{className:"_1fa83g25",style:{"--blur-data-img":`url(${m})`},children:(0,r.jsx)(o.default,{className:"_1fa83g26",src:a,alt:e??"",width:600,height:600,placeholder:m?"blur":"empty",blurDataURL:m})})})};var v=s(47656);i.A.use([n.dK,n._R]);let y=({isNft:e})=>{let[t,s]=(0,a.useState)(null),[i,o]=(0,a.useState)(0),{product:d}=(0,m.ot)(),{medias:u,nftAsset:x,nftAssetMimeType:y,nftAssetBlurHash:b,productId:w}=d,C=(0,a.useMemo)(()=>e?[{name:x,mimeType:y,blurHash:b,sort:0}]:u,[e,x,b,y,u]);if(!C.length)return null;let k=Math.min(i,C.length-1),N=C[k],S=C.slice(0,4),_=Math.max(0,C.length-4),R=C[4];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.z,{breakpoint:"smOnly",style:{width:"100%"},children:(0,r.jsx)("div",{className:"_1taib1t1 _11mahs3nx _11mahs3n4",children:(0,r.jsx)(l.RC,{autoHeight:!0,modules:[n.dK],pagination:!e&&{clickable:!0},style:{width:"100%"},children:C.map(({name:t,blurHash:s,mimeType:a})=>(0,r.jsx)(l.qr,{style:{display:"flex",justifyContent:"center",backgroundColor:"#ffffff"},children:(0,r.jsx)(j,{name:t,blurHash:s,mimeType:a,isNft:e,src:`https://api.corriere-art.it${t}`,autoHeight:1===C.length})},t))})})}),(0,r.jsx)(c.z,{breakpoint:"md",style:{width:"100%"},children:(0,r.jsxs)("div",{className:"_1taib1t2",children:[(0,r.jsx)("button",{type:"button",className:"_1taib1t3",onClick:()=>!e&&s(k),disabled:e,"aria-label":"Open image preview",children:(0,r.jsx)(f,{media:N,isNft:e})}),C.length>1&&(0,r.jsxs)("div",{className:"_1taib1t6",children:[S.map((e,t)=>(0,r.jsx)("button",{type:"button",className:(0,h.o)(p,t===k?"_1taib1t8":void 0),onClick:()=>o(t),"aria-label":`View image ${t+1}`,"aria-pressed":t===k,children:(0,r.jsx)(g,{media:e})},e.name)),_>0&&R&&(0,r.jsxs)("button",{type:"button",className:(0,h.o)(p,"_1taib1ta"),onClick:()=>s(4),"aria-label":`Show ${_} more images`,children:[(0,r.jsx)(g,{media:R}),(0,r.jsxs)("span",{className:"_1taib1tb",children:["+",_]})]})]})]})}),!e&&(0,r.jsx)(v.M,{title:"PRODUCT IMAGES",subTitle:d.nftName??d.name,isModalOpen:null!==t,onClose:()=>s(null),medias:C,productId:w,previewModalActiveIndex:t})]})},f=({media:e,isNft:t})=>{let s=(0,u.y)(e.blurHash),a=`https://api.corriere-art.it${e.name}`;return e.mimeType?.includes("video")?(0,r.jsx)(d.L,{src:a,autoPlay:!0,muted:!0,controls:t,videoStyle:{width:"100%",height:"100%",objectFit:"contain"},containerStyle:{width:"100%",height:"100%"}}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"_1taib1t4",style:{"--blur-data-img":s?`url(${s})`:"none"}}),(0,r.jsx)(o.default,{src:a,alt:e.name??"",width:900,height:900,className:"_1taib1t5",placeholder:s?"blur":"empty",blurDataURL:s??void 0})]})},g=({media:e})=>{let t=(0,u.y)(e.blurHash),s=`https://api.corriere-art.it${e.name}`;return e.mimeType?.includes("video")?(0,r.jsx)(d.L,{src:s,controls:!1,videoStyle:{width:"100%",height:"100%",objectFit:"cover"},containerStyle:{width:"100%",height:"100%",backgroundColor:"#000"}}):(0,r.jsx)(o.default,{src:s,alt:e.name??"",width:240,height:240,className:"_1taib1t9",placeholder:t?"blur":"empty",blurDataURL:t??void 0})}}}]);

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.