PageSourceSearch

https://amicididecani.it/_next/static/chunks/pages/negozio/checkout-5de8a4c021fdc964cc5a.js

js amicididecani.it collected 2026-10-02 13:44:17 UTC 11,485 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[81],{BIeO:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/negozio/checkout",function(){return r("Nr/X")}])},HJRz:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r("69N/"),a=r("BMxC"),o=r("SX87"),i=r("Weur"),c=r("yI6m"),m=r("q1tI"),l=r.n(m).a.createElement,u=function(){return l(n.a,{mx:4,templateColumns:{base:"1fr",lg:"4fr 2fr"},columnGap:"2rem"},l(a.a,null,l(a.a,{maxW:{base:"30rem",md:"100%"},mx:{base:"auto",md:0},mb:6,fontSize:"1.8rem",fontWeight:"bold"},"Carrello"),l(n.a,{display:{base:"none",md:"grid"},gap:4,templateColumns:"auto 3fr 1fr 1fr 1fr 1fr",mb:"1rem",background:"light-gray",textAlign:"center",fontWeight:"medium"},l(a.a,{w:"3.5rem"}),l(a.a,{textAlign:"left"},"Title"),l(a.a,null,"Quantity"),l(a.a,{fontSize:"1rem"},"Price"),l(a.a,{fontSize:"1rem"},"Total"),l(a.a,null)),l(n.a,{maxW:{base:"30rem",md:"100%"},mx:{base:"auto",md:0},position:"relative",templateColumns:{base:"1fr",md:"auto 3fr 1fr 1fr 1fr 1fr"},gap:4,justifyItems:"center",pb:2,mb:6,textAlign:"center",borderBottom:"1px solid gray"},l(o.a,{size:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(a.a,null)),l(n.a,{maxW:{base:"30rem",md:"100%"},mx:{base:"auto",md:0},position:"relative",templateColumns:{base:"1fr",md:"auto 3fr 1fr 1fr 1fr 1fr"},gap:4,justifyItems:"center",pb:2,mb:6,textAlign:"center",borderBottom:"1px solid gray"},l(o.a,{size:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(o.a,{width:"100%",height:"3.5rem"}),l(a.a,null))),l(i.a,{maxW:{base:"30rem"},mx:{base:"auto"},w:"100%",flexDirection:"column",mt:{base:6,md:0}},l(a.a,{mb:4,fontSize:"1.8rem",fontWeight:"bold"},"Sommario"),l(i.a,{justifyContent:"space-between",flexDirection:"row",mb:4},l(a.a,null,"Totale"),l(c.a,null)),l(i.a,{justifyContent:"space-between",flexDirection:"row",mb:4},l(a.a,{mb:4},"Costi di spedizione"),l(c.a,null)),l(i.a,{justifyContent:"space-between",flexDirection:"row",mb:4},l(a.a,{mb:4},"Totale"),l(c.a,null)),l(o.a,{width:"100%",height:"2.5rem"})))}},L3CP:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r("Weur"),a=r("qWyU"),o=r("eJLp"),i=r("nOHt"),c=r.n(i),m=r("q1tI"),l=r.n(m),u=r("SCh+"),s=l.a.createElement,d=function(){return s(n.a,{flexDirection:"column",m:"auto"},s(a.a,{as:"h2",fontWeight:"medium",fontSize:{base:"1.3rem",md:"1.5rem"},mb:6},u.f),s(o.a,{onClick:function(){return c.a.push("/".concat(u.j))}},"Vai a fare la spesa"))}},"Nr/X":function(e,t,r){"use strict";r.r(t);var n=r("q1tI"),a=r.n(n),o=r("69N/"),i=r("BMxC"),c=r("TyAF"),m=r("tift"),l=r("IEMF"),u=r("woEc"),s=r("wx14"),d=r("o0o1"),f=r.n(d),p=r("rePB"),b=r("Ff2n"),h=r("HaE+"),g=r("Yn+B"),v=r("Weur"),x=r("eJLp"),y=r("SQB0"),O=r("KYPV"),j=r("nOHt"),w=r.n(j),C=r("kqik"),S=r("ilC4"),I=r("vDqi"),z=r.n(I),E=r("WZcw"),k=function(e){return z.a.post(E.v,e,{withCredentials:!0})},A=r("UGp+"),N=A.c().shape({firstName:A.d().required("Inserisci  nome."),lastName:A.d().required("Inserisci  cognome."),country:A.d().required("Inserisci  paese."),streetAdress:A.d().required("Inserisci  indrizzo."),city:A.d().required("Inserisci  citta'."),postcode:A.d().required("Inserisci  CAP."),phone:A.d().required("Inserisci  numero di telefono."),email:A.d().required("Inserisci  email.")}),q=r("SCh+"),P=a.a.createElement;function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){Object(p.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var D={firstName:"",lastName:"",country:"",streetAdress:"",apartementNumber:"",city:"",postcode:"",phone:"",email:"",n
1ote:"",error:""},H=function(e){var t=e.isSubmitting;return P(O.c,null,P(g.a,{spacing:3,direction:"column"},P(v.a,{flexDirection:"row"},P(O.a,{name:"firstName",placeholder:"Nome",type:"text",component:C.a,mr:"2rem"}),P(O.a,{name:"lastName",placeholder:"Cognome",type:"text",component:C.a})),P(O.a,{name:"country",placeholder:"Paese",type:"text",component:C.a}),P(O.a,{name:"streetAdress",placeholder:"Indirizzo",type:"text",component:C.a}),P(O.a,{name:"apartementNumber",placeholder:"Interno, scala, ecc. (facoltativo)",type:"text",component:C.a}),P(O.a,{name:"city",placeholder:"Citt\xe0",type:"text",component:C.a}),P(O.a,{name:"postcode",placeholder:"CAP",type:"text",component:C.a}),P(v.a,{flexDirection:"row"},P(O.a,{name:"phone",placeholder:"Numero di telefono",type:"text",component:C.a,mr:"2rem"}),P(O.a,{name:"email",placeholder:"Email",type:"text",component:C.a})),P(O.a,{name:"note",placeholder:"Aggiungi delle note all'ordine",type:"text",component:S.a}),P(x.a,{mt:4,isLoading:t,type:"submit"},"Submit")))},_=Object(c.b)("store")(Object(c.c)((function(e){var t=e.store,r=e.initialValues,n=void 0===r?D:r,a=e.gridArea,c=t,m=Object(y.a)();return P(o.a,{gap:5,templateColumns:"1fr",gridArea:a},P(i.a,{as:"h2",fontWeight:"medium",fontSize:"1.6rem",mb:"1.5rem"},"Dettagli di fatturazione"),P(O.d,{validationSchema:N,initialValues:n,onSubmit:function(){var e=Object(h.a)(f.a.mark((function e(t,r){var n,a,o,i,l,s,d;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.setSubmitting,a=r.setFieldError,o=r.resetForm,e.prev=1,n(!0),t.error,i=Object(b.a)(t,["error"]),l=c.cartItems.map((function(e){return{title:e.title,price:e.variants[0].price,variant:e.variants[0].variant,quantity:e.variants[0].amount}})),e.next=7,k(T(T({},i),{},{orderItems:l,sum:Object(u.m)(c.sum)}));case 7:s=e.sent,(d=s.data).ok?(m({title:"Ordine ricevuto.",description:"Grazie. Controlla la tua posta elettronica per ulteriori istruzioni.",status:"success",duration:9e3,isClosable:!0}),c.resetCart(),o(),w.a.push("/".concat(q.j)),n(!1)):(d.errors.forEach((function(e){return a(e.field,e.message)})),n(!1)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(1),a(e.t0,e.t0.toJSON().message),n(!1);case 16:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,r){return e.apply(this,arguments)}}()}
1,(function(e){return P(H,Object(s.a)({},e,{initialValues:n}))})))}))),B=r("HJRz"),F=r("L3CP"),L=a.a.createElement,M=function(e){var t=e.title,r=e.price,n=e.quantity,a=e.variant;return L(o.a,{templateColumns:"3fr 1fr",pb:"0.5rem",pt:"0.5rem",textAlign:"center"},L(i.a,{textAlign:"left",lineHeight:"1.5rem"},t," ","(",a,")",L(i.a,{as:"span",fontSize:"0.95rem",fontWeight:"bold"}," x ",n)),L(i.a,{lineHeight:"1.5rem"},Object(u.m)(r*n)," ",l.c))},R=Object(c.b)("store")(Object(c.c)((function(e){var t=e.store;return L(m.a,{title:"Checkout"},t.loading?L(B.a,null):0==t.itemsCount?L(F.a,null):L(a.a.Fragment,null,L(i.a,{as:"h1",fontWeight:"bold",fontSize:"2.2rem",mb:"1.5rem"},"Checkout"),L(o.a,{templateColumns:{base:"1fr",lg:"1fr 1fr"},templateAreas:{base:"'order' 'info'",lg:"'info order'"},columnGap:"4rem"},L(_,{gridArea:"info"}),L(i.a,{gridArea:"order",mb:{base:"2.5rem",md:"2.5rem",lg:"0",xl:"0"}},L(i.a,{as:"h2",fontWeight:"medium",fontSize:"1.6rem",mb:"1.5rem"},"Tuo ordine"),L(o.a,{templateColumns:"3fr 1fr",pb:"1rem",mb:"1rem",background:"light-gray",textAlign:"center",fontWeight:"bold",borderBottom:"1px solid gray"},L(i.a,{textAlign:"left"},"Prodotto"),L(i.a,{fontSize:"1rem"},"Totale")),t.cartItems.map((function(e,t){return L(M,{key:t,title:e.title,variant:e.variants[0].variant,quantity:e.variants[0].amount,price:e.variants[0].price})})),L(o.a,{fontWeight:"medium",templateColumns:"3fr 1fr",pt:"0.5rem",mt:"1rem",borderTop:"1px solid gray",mb:"1rem"},L(i.a,null,"Costi di spedizione"),L(i.a,{textAlign:"center"},"".concat(l.a," ").concat(l.c))),L(o.a,{fontWeight:"bold",templateColumns:"3fr 1fr"},L(i.a,null,"Totale"),L(i.a,{textAlign:"center"},"".concat(Object(u.m)(t.sum+l.a)," ").concat(l.c)))))))})));t.default=R},SX87:function(e,t,r){"use strict";var n=r("pVnL"),a=r.n(n),o=r("8OQS"),i=r.n(o),c=r("cOp2"),m=r.n(c),l=r("q1tI"),u=r("CjxU"),s=r("mf32"),d=r("qKvR"),f=r("BMxC");function p(){var e=m()(["\n  animation: "," ","s;\n"]);return p=function(){return e},e}function b(){var e=m()(["\nfrom { opacity: 0; }\nto   { opacity: 1; }\n"]);return b=function(){return e},e}function h(){var e=m()(["\n  border-color: "," !important;\n  box-shadow: none !important;\n  opacity: 0.7;\n  // do not !important this for Firefox support\n  background: ",";\n\n  // Prevent background color from extending to the border and overlappping\n  background-clip: padding-box !important;\n  cursor: default;\n\n  // Transparent text will occupy space but be invisible to the user\n  color: transparent !important;\n  animation: ","s linear infinite alternate\n    ",";\n  pointer-events: none;\n  user-select: none;\n\n  // Make pseudo-elements (CSS icons) and children invisible\n  &::before,\n  &::after,\n  * {\n    visibility: hidden !important;\n  }\n"]);return h=function(){return e},e}function g(){var e=m()(["\nfrom {\n  border-color: ",";\n  background: ",";\n}\n\nto {\n  border-color: ",";\n  background: ",";\n}\n"]);return g=function(){return e},e}var v=function(e){var t=e.colorStart,r=e.colorEnd,n=e.speed;return Object(d.c)(h(),t,t,n,function(e,t){return Object(d.e)(g(),e,e,t,t)}(t,r))},x=Object(d.e)(b());t.a=function(e){var t=Object(u.b)().colors,r=Object(s.a)().colorMode,n={light:t.gray[100],dark:t.gray[800]},o={light:t.gray[400],dark:t.gray[600]},c=e.colorStart,m=void 0===c?n[r]:c,b=e.colorEnd,h=void 0===b?o[r]:b,g=e.isLoaded,y=void 0!==g&&g,O=e.fadeInDuration,j=void 0===O?.4:O,w=e.speed,C=void 0===w?.8:w,S=i()(e,["colorStart","colorEnd","isLoaded","fadeInDuration","speed"]),I=Object(l.useMemo)((function(){return e=j,Object(d.c)(p(),x,e);var e}),[j]),z=Object(l.useMemo)((function(){return v({colorStart:m,colorEnd:h,speed:C})}),[m,h,C]);return y?Object(d.d)(f.a,a()({css:I},S)):Object(d.d)(f.a,a()({css:z,borderRadius:"2px"},S))}},ilC4:function(e,t,r){"use strict";r.d(t,"a",(function(){return x}));var n=r("wx14"),a=r("Ff2n"),o=r("we/t"),i=r("jgTY"),c=r("8OQS"),m=r.n(c),l=r("pVnL"),u=r.n(l),s=r("qKvR"),d=r("q1tI"),f=r.n(d),p=r("FpzS"),b=Object(d.forwardRef)((function(e,t){return Object(s.d)(p.a,u()({py:"8px",minHeight:"80px",lineHeight:"short",ref:t,as:"textarea"},e))}));b.displayName="Textarea";var h=b;Object(d.forwardRef)((function(e,t){var r=e.minHeight,n=void 0===r?"39px":r,a=e.onInput,o=m()(e,["minHeight","onInput"]),i=Object(d.useState)(0),c=i[0],l=i[1],f=Object(d.useRef)(),p=t||f;Object(d.useLayoutEffect)((function(){p.current&&l(p.current.scrollHeight)}),[p]);return Object(s.d)(b,u()({rows:"1",onInput:function(e){p.current&&setTimeout((function(){l("auto"),l(p.current.scrollHeight)}),0),a&&a(e)},css:{height:c,resize:"none",overflow:"hidden",minHeight:n},ref:p},o))})).displayName="ExpandingTextarea";var g=r("aPzr"),v=f.a.createElement,x=function(e){var t=e.field,r=e.form,c=e.placeholder,m=Object(a.a)(e,["field","form","placeholder"]);return v(o.a,{isInvalid:!!r.errors[t.name]&&!!r.touched[t.name]},v(i.a,{htmlFor:t.name},c),v(h,Object(n.a)({id:t.name},t,m)),v(g.a,null,r.errors[t.name]))}}},[["BIeO",1,2,4,16,0,3,5,6,7,8,9,11,12,13,14,17,25]]]);

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.