1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2680],{97325:function(e,a,i){Promise.resolve().then(i.bind(i,3080)),Promise.resolve().then(i.bind(i,58279)),Promise.resolve().then(i.bind(i,4264)),Promise.resolve().then(i.bind(i,7793)),Promise.resolve().then(i.bind(i,85421)),Promise.resolve().then(i.bind(i,41895)),Promise.resolve().then(i.bind(i,77096)),Promise.resolve().then(i.bind(i,35842)),Promise.resolve().then(i.bind(i,28620)),Promise.resolve().then(i.bind(i,8025)),Promise.resolve().then(i.bind(i,73256)),Promise.resolve().then(i.bind(i,48469)),Promise.resolve().then(i.bind(i,79814)),Promise.resolve().then(i.bind(i,94998)),Promise.resolve().then(i.bind(i,28868)),Promise.resolve().then(i.bind(i,74829)),Promise.resolve().then(i.bind(i,69381)),Promise.resolve().then(i.bind(i,43320)),Promise.resolve().then(i.bind(i,32944)),Promise.resolve().then(i.bind(i,35979)),Promise.resolve().then(i.bind(i,47792)),Promise.resolve().then(i.t.bind(i,16340,23))},3080:function(e,a,i){"use strict";i.d(a,{LoginForm:function(){return f}});var l=i(27573),t=i(32944),r=i(79814),n=i(47792),s=i(88146),o=i(93351),c=i(5691),d=i(92807),p=i(59141),u=i(7653);i(43503);var x=(0,i(99976).$)("6938011eb2fcf3792f4f9aee2df3bc377cea08ea"),m=i(33825),h=i(81695);let f=()=>{var e,a,i,f;let g=(0,h.useRouter)(),{setUser:v}=(0,d.L)(),[y,b]=(0,u.useState)(""),{control:_,handleSubmit:j,clearErrors:w,formState:{errors:N}}=(0,o.cI)({mode:"onChange",defaultValues:{email:"",password:""}});(0,u.useEffect)(()=>{(0,m.sendGTMEvent)({event:"login_open"})},[]);let C=async e=>{if(w(),!e.email||!e.password)return;let a=await x({email:e.email,password:e.password});(null==a?void 0:a.data)?(v(a.data),(0,m.sendGTMEvent)({event:"login_ok"}),g.push("/")):b(null==a?void 0:a.error)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.bZ,{variant:"error",isOpen:!!y,setIsOpen:()=>b(""),title:"Errore durante il login",text:y}),(0,l.jsxs)(t.default,{sx:{flex:1,display:"flex",flexDirection:"column",gap:p.N_["space-16px"]},component:"form",noValidate:!0,onSubmit:j(C),children:[(0,l.jsxs)(r.default,{sx:{display:"flex",flexDirection:"column",gap:p.N_["space-16px"]},children:[(0,l.jsx)(c.v5,{required:!0,control:_,name:"email",label:"Indirizzo e-mail",type:"email",externalError:(null===(e=N.email)||void 0===e?void 0:e.message)?[{text:null===(a=N.email)||void 0===a?void 0:a.message,theme:"negative"}]:[],rules:{validate:{required:e=>(null==e?void 0:e.trim())!==""||"L'e-mail \xe8 obbligatoria",pattern:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||"Formato e-mail non valido"}}}),(0,l.jsx)(c.v5,{required:!0,control:_,name:"password",label:"Password",type:"password",externalError:(null===(i=N.password)||void 0===i?void 0:i.message)?[{text:null===(f=N.password)||void 0===f?void 0:f.message,theme:"negative"}]:[]})]}),(0,l.jsxs)(n.default,{children:["Hai dimenticato la password?"," ",(0,l.jsx)(s.default,{href:"/recupera-password",style:{color:p.DM["primary-verde-500-main"],fontWeight:700},children:"Recupero password"})]}),(0,l.jsx)(r.default,{sx:{display:"flex","&> div, & button":{width:{sm:"100%",lg:"auto"}}},children:(0,l.jsx)(c.zx,{type:"submit",children:"Accedi"})})]})]})}},91340:function(e,a,i){"use strict";i.r(a),i.d(a,{Breadcrumbs:function(){return u}});var l=i(27573),t=i(35605),r=i(64079),n=i(47792),s=i(32944),o=i(7653),c=i(59141),d=i(1567),p=i(74205);let u=e=>{let{links:a,sx:i,...u}=e,x=(0,o.useMemo)(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:a.map((e,a)=>({"@type":"ListItem",position:a+1,name:e.text,item:(0,d.Z)(e.href)}))}),[a]);return(0,l.jsxs)(t.Z,{sx:{px:{sm:0,lg:0},maxWidth:"unset !important"},children:[(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(x)}}),(0,l.jsx)(r.Z,{"aria-label":"breadcrumb",...u,maxItems:100,separator:(0,l.jsx)(n.default,{component:"span",sx:{fontWeight:"bold",color:c.DM["grayscale-500"],padding:{sm:c.N_["space-4px"],lg:c.N_["space-8px"]}},children:"/"}),sx:[{pb:{sm:c.N_["space-4px"]}},...Array.isArray(i)?i:[i]],children:a.map((e,i)=>{let{text:t,href:r}=e;return(0,l.jsx)(s.default,{direction:"row",spacing:c.N_["space-4px"],alignItems:"center",children:i<a.length-1?(0,l.jsx)("a",{href:(0,d.Z)(r),children:(0,l.jsx)(p._,{typography:"subtitles-x-s",color:c.DM["primary-verde-500-main"],children:t})},"".concat(r,"-").concat(i.toString())):(0,l.jsx)(p._,{typography:"paragraph-x-s",color:c.DM["grayscale-500"],children:t},"".concat(r,"-").concat(i.toString()))},"breadcrumb-item-".concat(i))})})]})}},24867:function(e,a,i){"use strict";i.d(a,{i:function(){return n}});var l=i(27573),t=i(79814),r=i(59141);let n=()=>(0,l.jsx)(t.default,{sx:{width:"100%",height:"1px",backgroundColor:r.DM["grayscale-50"],my:r.N_["space-8px"]}})},12453:function(e,a,i){"use strict";i.d(a,{E:function(){return p},O:function(){return u}});var l=i(27573),t=i(79814),r=i(32944),n=i(7653),s=i(74205),o=i(59141),c=i(58880),d=i(62381);let p=(0,n.memo)(e=>{let{label:a,active:i,onClick:r,tabVariant:n,disabled:c,useIndex:d,sx:p,typography:u="subtitles-m"}=e,x=o.DM["primary-verde-500-main"],m=o.DM["primary-verde-800"],h=o.DM["grayscale-500"],f=o.DM["primary-verde-300"];return(0,l.jsx)(t.default,{role:"tab",e2etest:"tab-item",tabIndex:c?void 0:0,sx:{height:40,display:"flex",alignItems:"center",justifyContent:"center",position:"relative",curs
1or:c?"not-allowed":"pointer",border:"2px solid transparent",minWidth:"fit-content",flex:1,"&:focus":{outline:"none",border:"2px solid ".concat(f),borderRadius:o.N_["space-8px"]},...i&&{"::after":{content:'""',position:"absolute",bottom:0,width:"100%"}}},onClick:c?void 0:r,children:(0,l.jsx)(s._,{variant:n||"h2",typography:u,sx:{color:i?x:h,paddingBottom:"10px",width:"100%",textAlign:"center",borderBottom:"2px solid ".concat(i?x:h),"&:hover":c?void 0:{color:i?m:h,borderBottom:"2px solid ".concat(i?m:h)},...p},children:a})})});p.displayName="TabItem";let u=(0,n.memo)(e=>{let{items:a,active:i,tabVariant:s,onClick:u,useIndex:x=!0,sx:m,typography:h="subtitles-m"}=e,[f,g]=(0,n.useState)(!1),v=(0,n.useCallback)(()=>{g(window.scrollY>0)},[]);return(0,n.useEffect)(()=>{let e=()=>{let e=!1;return()=>{e||(window.requestAnimationFrame(()=>{v(),e=!1}),e=!0)}};return window.addEventListener("scroll",e(),{passive:!0}),()=>{window.removeEventListener("scroll",e())}},[v]),(0,l.jsx)(t.default,{component:"nav",sx:{position:"sticky",top:0,backgroundColor:o.DM["grayscale-0-white"],zIndex:c.W.zTab,paddingTop:o.N_["space-16px"],boxShadow:f?"0px 4px 12px -2px #9B9B9B12":"none",transition:"box-shadow 0.3s ease"},children:(0,l.jsx)(r.default,{direction:"row",sx:{gap:o.N_["space-16px"],width:"100%",justifyContent:"flex-start",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media (min-width: 1920px)":{maxWidth:d.k,margin:"0 auto",overflowX:"hidden",justifyContent:"center"}},children:null==a?void 0:a.map((e,a)=>{let t=x?a===i:e===i;return(0,l.jsx)(p,{tabVariant:null!=s?s:"h2",active:t,label:e,onClick:()=>u(x?a:e),sx:m,typography:h},"".concat(e,"-").concat(a))})})})});u.displayName="Tab"},73256:function(e,a,i){"use strict";i.d(a,{AreaPersonalePage:function(){return H}});var l=i(27573),t=i(79814),r=i(59141);i(43503);var n=i(99976),s=(0,n.$)("cb5629b1238c190a3e190ccbf24f69a63dca7e0a"),o=(0,n.$)("abb55114b4a831256a57ec1058f571ff586b615a"),c=i(5691),d=i(24867),p=i(71493),u=i(7653),x=i(92807),m=i(8222);let h=e=>{let{open:a,onClose:i}=e,{user:n}=(0,x.L)(),o={text:"Confermi di eliminare la tua carta?",color:r.DM["grayscale-black"],textAlign:"left"},d=async()=>{if(!n||!n.id){m.k.error("User not found or user ID is missing");return}if(!n.cards||0===n.cards.length){m.k.error("No cards found for the user");return}200===(await s({userId:n.id,cardId:n.cards[0].id})).status&&window.location.reload()};return(0,l.jsxs)(c.u_,{title:o,open:a,onClose:i,width:{sm:"100%",lg:"500px"},children:[(0,l.jsx)(c.__,{typography:"paragraph-m",children:"Ogni utente pu\xf2 avere solo una carta associata. Se eliminerai quella corrente, perderai tutti i punti acquisiti, ma se vorrai potrai associarne una nuova."}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:r.N_["space-8px"],mt:r.N_["space-32px"],"&> div, & button":{flex:1,width:"100%"}},children:[(0,l.jsx)(c.zx,{onClick:d,children:"Elimina carta"}),(0,l.jsx)(c.zx,{variant:"outlined",onClick:i,children:"Annulla"})]})]})};var f=i(50020),g=i.n(f);let v=e=>{var a,i,n,s,o,p;let{cediName:m}=e,{user:f}=(0,x.L)(),[v,b]=(0,u.useState)(!1);return void 0===f?null:(null==f?void 0:f.cards)&&0!==f.cards.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h,{open:v,onClose:()=>b(!1)}),(0,l.jsxs)(t.default,{id:"carta-piu",sx:{display:"flex",flexDirection:"column",py:r.N_["space-40px"],gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"headings-t-3",component:"h2",children:"La mia Carta Pi\xf9"}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:{lg:r.N_["space-24px"]}},children:[(0,l.jsxs)(t.default,{sx:{flex:{lg:1},display:"flex",flexDirection:"column",gap:r.N_["space-16px"]},children:[(0,l.jsxs)(t.default,{sx:{backgroundColor:r.DM["primary-verde-500-main"],borderRadius:r.OU["radius-15px"],p:{sm:r.N_["space-16px"],lg:r.N_["space-32px"]},textAlign:"center",display:"flex",flexDirection:"column",gap:r.N_["space-16px"]},children:[(0,l.jsx)(t.default,{sx:{backgroundColor:r.DM["grayscale-0-white"],py:r.N_["space-16px"],px:r.N_["space-8px"],borderRadius:r.OU["radiu
1s-8px"]},children:(0,l.jsx)(t.default,{e2etest:"barcode",sx:{margin:"0 auto",width:"fit-content"},children:(0,l.jsx)(g(),{value:(null==f?void 0:null===(a=f.cards[0])||void 0===a?void 0:a.card)||"",format:"EAN13",displayValue:!0})})}),(0,l.jsxs)(c.__,{typography:"subtitles-m",color:r.DM["grayscale-0-white"],children:["Codice carta: ",null==f?void 0:null===(i=f.cards[0])||void 0===i?void 0:i.card]})]}),(0,l.jsxs)(t.default,{sx:{alignItems:"center",display:"flex",gap:r.N_["space-8px"],justifyContent:{lg:"center"}},children:[(0,l.jsxs)(c.__,{typography:"paragraph-l",children:["Saldo punti: ",(0,l.jsx)("b",{children:null==f?void 0:null===(n=f.cards[0])||void 0===n?void 0:n.points})]}),(0,l.jsx)(c.JO,{sx:{mb:{sm:"5px",lg:0},fontSize:{lg:"24px"}},fill:r.DM["grayscale-black"],name:"heart-full"})]})]}),(0,l.jsxs)(t.default,{sx:{flex:{lg:1}},children:[(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-16px"]},children:[(0,l.jsx)(d.i,{}),(0,l.jsxs)(c.__,{typography:"paragraph-l",children:["Titolare carta:"," ",(0,l.jsxs)("b",{children:[null==f?void 0:f.name," ",null==f?void 0:f.surname]})]}),(0,l.jsx)(d.i,{}),m?(0,l.jsxs)(c.__,{typography:"paragraph-l",children:["Centro Distribuzione: ",(0,l.jsx)("b",{children:m||""})]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsxs)(c.__,{typography:"paragraph-l",children:["Negozio di domiciliazione della carta: ",(0,l.jsx)("b",{children:null==f?void 0:null===(s=f.cards[0])||void 0===s?void 0:s.store_address})]}),(0,l.jsx)(d.i,{})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},justifyContent:{lg:"space-between"},gap:r.N_["space-8px"],mt:r.N_["space-16px"]},children:[(0,l.jsx)(c.__,{typography:"subtitles-x-s",children:(null==f?void 0:null===(p=f.cards)||void 0===p?void 0:null===(o=p[0])||void 0===o?void 0:o.active)?"CARTA ATTIVA":"CARTA NON ATTIVA"}),(0,l.jsx)(c.__,{sx:{cursor:"pointer"},typography:"subtitles-s",color:r.DM["primary-verde-500-main"],onClick:()=>b(!0),children:"Elimina carta associata"})]})]})]})]})]}):(0,l.jsx)(y,{})},y=()=>{let{user:e}=(0,x.L)(),[a,i]=(0,u.useState)({});(0,u.useEffect)(()=>{i(window.document.cookie.split("; ").reduce((e,a)=>{let[i,l]=a.split("=");return i&&l&&(e[i]=l),e},{}))},[]);let[n,s]=(0,u.useState)(!1),[d,m]=(0,u.useState)(""),[h,f]=(0,u.useState)(null),g=async()=>{if(!e)return;s(!0);let{status:a,data:i,message:l}=await o({card:d,userId:e.id});200===a?window.location.reload():(f(l||"Errore durante l'associazione della carta"),s(!1))},v=[{text:"Il numero \xe8 presente sulla tua carta fedelt\xe0: \xe8 composto da 13 cifre e inizia con 04",theme:"neutral"}];return h&&v.push({text:h,theme:"negative"}),(0,l.jsxs)(t.default,{id:"carta-piu",sx:{display:"flex",flexDirection:"column",py:r.N_["space-40px"],gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"headings-t-3",component:"h2",children:"La mia Carta Pi\xf9"}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:r.N_["space-24px"]},children:[(0,l.jsxs)(t.default,{sx:{border:"2px dashed ".concat(r.DM["primary-verde-500-main"]),borderRadius:r.OU["radius-15px"],px:r.N_["space-32px"],py:r.N_["space-32px"],display:"flex",flexDirection:"column",gap:r.N_["space-16px"],alignItems:"center",justifyContent:"center",flex:{lg:1}},children:[(0,l.jsx)(c.__,{typography:"paragraph-l",children:"Nessuna carta fedelt\xe0 associata"}),(0,l.jsx)(c.zx,{target:"_blank",href:"https://fidelitycard.crai-supermercati.it/request-card"+"?clientToken=".concat("eyJhbGciOiJIUzUxMiJ9.eyJwbGF0Zm9ybVVybCI6Imh0dHBzOi8vd3d3LmNyYWkuaXQiLCJuYW1lIjoiQ3JhaSBTdXBlcm1lcmNhdGkgMiIsInJlZGlyZWN0VXJsQWZ0ZXJDb25maXJtYXRpb24iOiJodHRwczovL3d3dy5jcmFpLml0IiwiaWQiOjcsInVzZXJuYW1lIjoic3VwZXJtZXJjYXRpMiIsInN1YiI6InN1cGVybWVyY2F0aTIiLCJpYXQiOjE3ODU5Mjk5NTQsImV4cCI6MTk0MzYwOTk1NH0.zxv64B81s1M1OTVjBTlheAoY2UhuTwVfgfgOZwr-vf0G6eFnDuOh0Aps_qywOzJ12xFKNwMzEhERhjevQpvQDw","&userToken=").concat(a[null===p.xR||void 0===p.xR?void 0:p.xR.token_cookie]),children:"Richiedi Carta Pi\xf9"})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-16px"],flex:{lg:1}},children:[(0,l.jsxs)(t.default,{children:[(0,l.jsx)(c.__,{typography:"subtitles-x-l",children:"Hai gi\xe0 una carta fedelt\xe0?"}),(0,l.jsx)(c.__,{typography:"paragraph-m",children:"Inserisci il codice e associala al tuo account"})]}
1),(0,l.jsx)(c.II,{placeholder:"Codice Carta Pi\xf9",value:d,onChange:e=>m(e.target.value),helperText:v}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-8px"],"& button, div":{width:{sm:"100%",lg:"80%"}}},children:[(0,l.jsx)(c.zx,{variant:"outlined",onClick:g,disabled:n,children:"Associa"}),(0,l.jsx)(c.__,{typography:"paragraph-x-s",children:"Attenzione: puoi inserire solo la carta a te personalmente intestata."})]})]})]})]})};var b=i(32944),_=(0,n.$)("3f31f6435287ba48fa855804a94eef6ae163223d"),j=i(4264),w=i(93351);let N=e=>{let[a,i,l]=e.split("/");return"".concat(l,"-").concat(i,"-").concat(a)},C=e=>{let{open:a,onClose:i}=e,[n,s]=(0,u.useState)(""),{user:o,setUser:d}=(0,x.L)(),{control:p,handleSubmit:m}=(0,w.cI)({mode:"onChange",defaultValues:{name:(null==o?void 0:o.name)||"",surname:(null==o?void 0:o.surname)||"",date_of_birth:N((null==o?void 0:o.date_of_birth)||"")||null,codice_fiscale:(null==o?void 0:o.codice_fiscale)||"",mobile:(null==o?void 0:o.mobile)||"",email:(null==o?void 0:o.email)||""}}),h=async e=>{let a=e.date_of_birth;"string"!=typeof e.date_of_birth&&(a=e.date_of_birth.getFullYear()+"-"+(e.date_of_birth.getMonth()+1).toString().padStart(2,"0")+"-"+e.date_of_birth.getDate().toString().padStart(2,"0"));let l=await _({...e,date_of_birth:a,userId:(null==o?void 0:o.id)||null});l.success?(d({...o,...l.data.user}),i()):s("Errore durante l'aggiornamento dei dati")},f={text:"Modifica dati account",color:r.DM["grayscale-black"],textAlign:"left"};return(0,l.jsxs)(l.Fragment,{children:[n?(0,l.jsx)(c.bZ,{variant:"error",isOpen:!!n,setIsOpen:()=>s(""),title:"Errore",text:n}):null,(0,l.jsx)(c.u_,{title:f,open:a,onClose:i,width:{sm:"100%",lg:"500px"},children:(0,l.jsxs)(b.default,{noValidate:!0,sx:{flex:1,display:"flex",flexDirection:"column",gap:r.N_["space-16px"],pt:"5px"},component:"form",onSubmit:m(h),children:[(0,l.jsx)(c.v5,{control:p,name:"name",label:"Nome",type:"string"}),(0,l.jsx)(c.v5,{control:p,name:"surname",label:"Cognome",type:"string"}),(0,l.jsx)(j.k,{control:p,name:"date_of_birth",placeholder:"Data di nascita",label:"Data di nascita"}),(0,l.jsx)(c.v5,{control:p,name:"codice_fiscale",label:"Codice fiscale",type:"string"}),(0,l.jsx)(c.v5,{control:p,name:"mobile",label:"Cellulare",type:"number"}),(0,l.jsx)(c.v5,{control:p,name:"email",label:"Email",type:"string"}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:r.N_["space-8px"],mt:r.N_["space-32px"],"&> div, & button":{flex:1,width:"100%"}},children:[(0,l.jsx)(c.zx,{type:"submit",children:"Salva modifiche"}),(0,l.jsx)(c.zx,{variant:"outlined",onClick:i,children:"Annulla"})]})]})})]})};var D=i(41895),k=i(81695);let z=e=>{let{control:a,fieldName:i}=e;(0,k.useRouter)();let n=(0,w.qo)({control:a,name:i,defaultValue:""});return(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:n?r.N_["space-4px"]:r.N_["space-8px"],mt:r.N_["space-8px"]},children:[(0,l.jsx)(D.HelperText,{text:"Minimo 8 caratteri",theme:n?(null==n?void 0:n.length)>=8?"positive":"negative":"neutral"}),(0,l.jsx)(D.HelperText,{text:"Una lettera maiuscola",theme:n?(null==n?void 0:n.match(/[A-Z]/))?"positive":"negative":"neutral"}),(0,l.jsx)(D.HelperText,{text:"Una lettera minuscola",theme:n?(null==n?void 0:n.match(/[a-z]/))?"positive":"negative":"neutral"}),(0,l.jsx)(D.HelperText,{text:"Un numero",theme:n?(null==n?void 0:n.match(/[0-9]/))?"positive":"negative":"neutral"}),(0,l.jsx)(D.HelperText,{text:"Un carattere speciale (@$!%*?&)",theme:n?(null==n?void 0:n.match(/[@$!%*?&]/))?"positive":"negative":"neutral"})]})},M=e=>{let{open:a,onClose:i}=e,{user:n}=(0,x.L)(),s=(0,k.useRouter)(),[o,d]=(0,u.useState)({isOpen:!1,title:"",text:"",variant:"success"}),[p,m]=(0,u.useState)(""),{handleSubmit:h,control:f,getValues:g}=(0,w.cI)({mode:"onChange",defaultValues:{password:"",password_confirm:""}}),v=async e=>{if(e.password!==e.password_confirm){m("Le password non corrispondono"),d({isOpen:!0,title:"Errore",text:"Le password non corrispondono",variant:"error"});return}let{password:a,...l}=e;(await _({...l,password:e.password,userId:(null==n?void 0:n.id)||null})).success?(d({isOpen:!0,title:"Successo",text:"Password modificata con successo",variant:"success"}),setTimeout(()=>{d({...o,isOpen:!1})},3e3),m(""),i(),s.push("/thank-you?type=reset-password")):d({isOpen:!0,title:"Errore",text:"Errore durante la modifica della password",variant:"error"})},y={text:"Modifica password",color:r.DM["grayscale-black"],textAlign:"left"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.bZ,{isOpen:o.isOpen,setIsOpen:e=>d({...o,isOpen:e}),title:o.title,text:o.text,variant:o.variant,anchorOrigin:{vertical:"top",horizontal:"center"}}),(0,l.jsx)(c.u_,{title:y,open:a,onClose:i,width:{sm:"100%",lg:"500px"},children:(0,l.jsxs)(b.default,{noValidate:!0,sx:{flex:1,display:"flex",flexDirection:"column",gap:r.N_["space-16px"],pt:"5
1px"},component:"form",onSubmit:h(v),children:[(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-16px"]},children:[(0,l.jsxs)(t.default,{sx:{width:"100%","& > div":{display:"flex"}},children:[(0,l.jsx)(c.v5,{required:!0,control:f,name:"password",label:"Password",type:"password"}),(0,l.jsx)(c.__,{typography:"paragraph-x-x-s",color:r.DM["grayscale-400"],sx:{mt:r.N_["space-4px"],ml:r.N_["space-16px"]},children:"Crea una password che abbia:"}),(0,l.jsx)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-4px"]},children:(0,l.jsx)(z,{control:f,fieldName:"password"})})]}),(0,l.jsxs)(t.default,{sx:{width:"100%","& > div":{display:"flex"}},children:[(0,l.jsx)(c.v5,{required:!0,control:f,name:"password_confirm",label:"Conferma password",type:"password"}),(0,l.jsx)(z,{control:f,fieldName:"password_confirm"})]})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:r.N_["space-8px"],mt:r.N_["space-32px"],"&> div, & button":{flex:1,width:"100%"}},children:[(0,l.jsx)(c.zx,{type:"submit",children:"Salva password"}),(0,l.jsx)(c.zx,{variant:"outlined",onClick:i,children:"Annulla"})]})]})})]})};var I=(0,n.$)("c1cbd56f65838b57459e73f69d1d3fb713d1cb4e");let S=e=>{let{open:a,onClose:i}=e,{user:n}=(0,x.L)(),[s,o]=(0,u.useState)(!1),d={text:"Confermi di eliminare il tuo account?",color:r.DM["grayscale-black"],textAlign:"left"},p=async()=>{if(o(!0),!n||!n.id){m.k.error("User not found or user ID is missing"),o(!1);return}200===(await I({email:n.email})).status&&(o(!1),window.location.href="/")};return(0,l.jsxs)(c.u_,{title:d,open:a,onClose:i,width:{sm:"100%",lg:"500px"},children:[(0,l.jsx)(c.__,{typography:"paragraph-m"}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:r.N_["space-8px"],mt:r.N_["space-32px"],"&> div, & button":{flex:1,width:"100%"}},children:[(0,l.jsx)(c.zx,{disabled:s,onClick:p,children:"Elimina Account"}),(0,l.jsx)(c.zx,{disabled:s,variant:"outlined",onClick:i,children:"Annulla"})]})]})},O=e=>{let{open:a,onClose:i}=e,{user:n,setUser:s}=(0,x.L)(),[o,d]=(0,u.useState)(!1),[p,m]=(0,u.useState)({marketing:null==n?void 0:n.marketing,profiling:null==n?void 0:n.profiling}),h=async()=>{d(!0),await _({marketing:p.marketing,profiling:p.profiling,userId:n.id}).then(()=>{s({...n,marketing:p.marketing||0,profiling:p.profiling||0})}),d(!1),i()};return(0,l.jsxs)(c.u_,{title:{text:"Modifica consensi",variant:"Instrument Sans"},open:a,onClose:i,width:{sm:"100%",lg:"500px"},children:[(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-24px"]},children:[(0,l.jsx)(P,{title:"Finalit\xe0 di Marketing diretto",disabled:o,copy:(0,l.jsxs)("p",{children:["Desidero ricevere ",(0,l.jsx)("b",{children:"newsletter"}),", buoni sconto o altre iniziative in anteprima"]}),checked:1===p.marketing,onChange:()=>{m({...p,marketing:1===p.marketing?0:1})}}),(0,l.jsx)(P,{disabled:o,title:"Finalit\xe0 di Profilazione",copy:"Desidero ricevere buoni sconto personalizzati basati sulle mie abitudini dâacquisto",checked:(null==p?void 0:p.profiling)===1,onChange:()=>{m({...p,profiling:1===p.profiling?0:1})}})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:r.N_["space-8px"],mt:r.N_["space-24px"]},children:[(0,l.jsx)(c.zx,{disabled:o,onClick:h,variant:"contained",color:"primary",width:"100%",children:"Conferma"}),(0,l.jsx)(c.zx,{disabled:o,variant:"outlined",color:"secondary",onClick:()=>{i()},width:"100%",children:"Annulla"})]})]})},P=e=>{let{disabled:a,title:i,copy:n,checked:s,onChange:o}=e;return(0,l.jsxs)(t.default,{id:"dati-consensi",sx:{display:"flex",gap:r.N_["space-16px"]},children:[(0,l.jsx)(c.U3,{disabled:a,checked:s,onChange:o}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-4px"]},children:[(0,l.jsx)(c.__,{typography:"subtitles-s",children:i}),(0,l.jsx)(c.__,{typography:"paragraph-m",children:n})]})]})};var A=i(47544),L=i(77481);let E=()=>{let{user:e}=(0,x.L)(),[a,i]=(0,u.useState)(!1),[n,s]=(0,u.useState)(!1),[o,p]=(0,u.useState)(!1),[m,h]=(0,u.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[void 0!==e?(0,l.jsx)(C,{open:a,onClose:()=>i(!1)}):null,void 0!==e?(0,l.jsx)(M,{open:n,onClose:()=>s(!1)}):null,void 0!==e?(0,l.jsx)(S,{open:o,onClose:()=>p(!1)}):null,void 0!==e?(0,l.jsx)(O,{open:m,onClose:()=>h(!1)}
1):null,(0,l.jsxs)(t.default,{id:"dati-consensi",sx:{display:"flex",flexDirection:"column",py:r.N_["space-40px"],gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"headings-t-3",component:"h2",children:"I miei dati e consensi"}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:{lg:r.N_["space-24px"]}},children:[(0,l.jsxs)(t.default,{sx:{backgroundColor:r.DM["primary-verde-50"],borderRadius:r.OU["radius-15px"],p:{sm:r.N_["space-16px"],lg:r.N_["space-32px"]},display:"flex",flex:{lg:1},flexDirection:"column",gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"subtitles-x-l",children:"Dati personali"}),(0,l.jsx)(T,{label:"Nome",value:null==e?void 0:e.name}),(0,l.jsx)(T,{label:"Cognome",value:null==e?void 0:e.surname}),(0,l.jsx)(T,{label:"Data di nascita",value:null==e?void 0:e.date_of_birth}),(0,l.jsx)(T,{label:"Codice fiscale",value:null==e?void 0:e.codice_fiscale}),(0,l.jsx)(T,{label:"Cellulare",value:null==e?void 0:e.mobile}),(0,l.jsx)(T,{label:"Email",value:null==e?void 0:e.email}),(0,l.jsx)(c.__,{e2etest:"edit-data-button",sx:{cursor:"pointer"},typography:"subtitles-s",color:r.DM["primary-verde-500-main"],onClick:()=>i(!0),children:"Modifica dati personali"}),(0,l.jsxs)("div",{children:[(0,l.jsx)(d.i,{}),(0,l.jsx)(t.default,{sx:{mt:r.N_["space-16px"]},children:(0,l.jsx)(c.__,{onClick:()=>p(!0),sx:{cursor:"pointer"},typography:"subtitles-s",color:r.DM["primary-verde-500-main"],children:"Elimina account"})})]})]}),(0,l.jsxs)(t.default,{sx:{flex:{lg:1},display:"flex",flexDirection:"column",gap:r.N_["space-24px"]},children:[(0,l.jsxs)(t.default,{sx:{backgroundColor:r.DM["primary-verde-50"],borderRadius:r.OU["radius-15px"],p:{sm:r.N_["space-16px"],lg:r.N_["space-32px"]},display:"flex",flexDirection:"column",gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"subtitles-x-l",children:"Password account"}),(0,l.jsx)(T,{label:"Password",value:"*********"}),(0,l.jsx)(c.__,{sx:{cursor:"pointer"},typography:"subtitles-s",color:r.DM["primary-verde-500-main"],onClick:()=>s(!0),children:"Modifica Password"})]}),(0,l.jsxs)(t.default,{sx:{backgroundColor:r.DM["primary-verde-50"],borderRadius:r.OU["radius-15px"],p:{sm:r.N_["space-16px"],lg:r.N_["space-32px"]},display:"flex",flexDirection:"column",gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"subtitles-x-l",children:"Consensi"}),(0,l.jsx)(F,{status:(null==e?void 0:e.marketing)===1?"checked":"unchecked",title:"Finalit\xe0 di Marketing diretto",description:(0,l.jsxs)("p",{children:["Desidero ricevere ",(0,l.jsx)("b",{children:"newsletter"}),", buoni sconto o altre iniziative in anteprima"]})}),(0,l.jsx)(F,{status:(null==e?void 0:e.profiling)===1?"checked":"unchecked",title:"Finalit\xe0 di Profilazione",description:"Desidero ricevere buoni sconto personalizzati basati sulle mie abitudini dâacquisto"}),(0,l.jsx)(c.__,{sx:{cursor:"pointer"},typography:"subtitles-s",color:r.DM["primary-verde-500-main"],onClick:()=>h(!0),children:"Modifica consensi"})]})]})]})]})]})},T=e=>{let{label:a,value:i}=e;return(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-8px"]},children:[(0,l.jsxs)(c.__,{typography:"paragraph-m",children:[a,":"]}),(0,l.jsx)(c.__,{typography:"subtitles-s",children:i||"-"})]})},F=e=>{let{status:a,title:i,description:n}=e;return(0,l.jsxs)(t.default,{sx:{display:"flex",alignItems:"flex-start",gap:r.N_["space-16px"],"& path":{fill:r.DM["primary-verde-500-main"]}},children:[(0,l.jsx)(t.default,{sx:{width:"24px",height:"24px","font-size":"24px"},children:"unchecked"===a?(0,l.jsx)(L.default,{}):(0,l.jsx)(A.default,{})}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-4px"]},children:[(0,l.jsx)(c.__,{typography:"subtitles-m",children:i}),(0,l.jsx)(c.__,{typography:"paragraph-m",children:n})]})]})};var R=i(38623);let V=e=>{var a,i,n;let{favoriteStore:s}=e;return(0,l.jsxs)(t.default,{id:"negozio-preferito",sx:{display:"flex",flexDirection:"column",py:r.N_["space-40px"],gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"headings-t-3",component:"h2",children:"Il mio negozio preferito"}),(0,l.jsxs)(t.default,{sx:{display:"flex",gap:r.N_["space-16px"],alignItems:"flex-start"}
1,children:[(0,l.jsx)(c.JO,{name:"heart-full",fill:r.DM["primary-verde-500-main"],fontSize:"26px"}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-8px"]},children:[(0,l.jsx)(c.__,{typography:"subtitles-2-x-l",color:r.DM["primary-verde-500-main"],children:s.nomeCommerciale}),(null===(i=s.cedis)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:a.length)>0&&(0,l.jsx)(c.__,{typography:"subtitles-m",color:r.DM["grayscale-400"],children:null===(n=s.cedis.data[0])||void 0===n?void 0:n.titolo})]})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-16px"]},children:[(0,l.jsxs)(t.default,{sx:{display:"flex",gap:r.N_["space-16px"],alignItems:"flex-start"},children:[(0,l.jsx)(c.JO,{name:"address",fill:r.DM["primary-verde-500-main"],fontSize:"26px"}),(0,l.jsx)(c.__,{typography:"subtitles-l",children:s.indirizzo})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",gap:r.N_["space-16px"],alignItems:"flex-start"},children:[(0,l.jsx)(c.JO,{name:"phone",fill:r.DM["primary-verde-500-main"],fontSize:"26px"}),(0,l.jsx)(c.__,{typography:"paragraph-m",children:s.telefono})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",gap:r.N_["space-16px"],alignItems:"flex-start"},children:[(0,l.jsx)(c.JO,{name:"email",fill:r.DM["primary-verde-500-main"],fontSize:"26px"}),(0,l.jsx)(c.__,{typography:"paragraph-m",children:s.email})]}),(0,l.jsx)(R.StoreTodayOpeningHours,{isCraiStoreComponent:!0,data:s})]}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:r.N_["space-8px"],"& div, button":{width:{sm:"100%",lg:"auto"}}},children:[(0,l.jsx)(c.zx,{href:"/negozi-e-volantini/".concat(s.slug),children:"Vai alla pagina di dettagio"}),(0,l.jsx)(c.zx,{href:"/negozi-e-volantini",variant:"outlined",children:"Cambia negozio preferito"})]})]})},B=()=>(0,l.jsxs)(t.default,{id:"negozio-preferito",sx:{display:"flex",flexDirection:"column",py:r.N_["space-40px"],gap:r.N_["space-24px"]},children:[(0,l.jsx)(c.__,{typography:"headings-t-3",component:"h2",children:"Il mio negozio preferito"}),(0,l.jsxs)(t.default,{sx:{border:"2px dashed ".concat(r.DM["primary-verde-500-main"]),borderRadius:r.OU["radius-15px"],px:r.N_["space-32px"],py:r.N_["space-32px"],display:"flex",flexDirection:"column",gap:r.N_["space-16px"],alignItems:"center",justifyContent:"center"},children:[(0,l.jsx)(c.__,{typography:"paragraph-l",children:"Nessun negozio preferito salvato"}),(0,l.jsx)(c.zx,{href:"/negozi-e-volantini",children:"Trova negozio preferito"})]})]}),J=()=>{let{user:e}=(0,x.L)();return(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:r.N_["space-16px"],py:r.N_["space-24px"]},children:[(0,l.jsxs)(t.default,{sx:{display:"flex",alignItems:{lg:"center"},flexDirection:{sm:"column",lg:"row"},justifyContent:{lg:"space-between"},gap:r.N_["space-16px"],py:r.N_["space-24px"]},children:[(0,l.jsxs)(c.__,{component:"h1",typography:"headings-t-1",color:r.DM["primary-verde-500-main"],children:["Ciao, ",null==e?void 0:e.name,"!"]}),(0,l.jsx)(c.zx,{e2etest:"logout-button",onClick:()=>{document.cookie="crai_user_id=; Max-Age=0; path=/",document.cookie="crai_user_token=; Max-Age=0; path=/",window.location.href="/"},children:"Logout"})]}),(0,l.jsx)(c.__,{typography:"paragraph-l",children:"Nella tua area riservata potrai gestire i tuoi dati, visualizzare la tua carta fedelt\xe0 e controllare il tuo saldo punti."})]})};var U=i(91340),Z=i(12453),W=i(73906);let H=e=>{let{favoriteStore:a,cediName:i}=e;return(0,l.jsxs)(t.default,{sx:{px:{sm:r.N_["space-16px"],lg:r.N_["space-32px"]}},children:[(0,l.jsx)(U.Breadcrumbs,{links:[{text:"Home",href:W.ai||"/"},{text:"Area Riservata",href:"".concat(W.ai,"/area-personale")}]}),(0,l.jsx)(J,{}),(0,l.jsxs)(t.default,{sx:{display:"flex",overflowY:"auto",gap:r.N_["space-16px"],maxWidth:"1032px"},children:[(0,l.jsx)(Z.E,{tabVariant:"h3",active:!0,label:"La mia Carta Pi\xf9",onClick:()=>{window.location.href="#carta-piu"}}),(0,l.jsx)(Z.E,{tabVariant:"h3",active:!0,label:"I miei dati e consensi",onClick:()=>{window.location.href="#dati-consensi"}}),(0,l.jsx)(Z.E,{tabVariant:"h3",active:!0,label:"Il mio negozio preferito",onClick:()=>{window.location.href="#negozio-preferito"}})]}),(0,l.jsx)(v,{cediName:i}),(0,l.jsx)(E,{}),a?(0,l.jsx)(V,{favoriteStore:a}):(0,l.jsx)(B,{})]})}},38623:function(e,a,i){"use strict";i.d(a,{StoreOpeningHours:function(){return u},StoreTodayOpeningHours:function(){return m}});var l=i(27573),t=i(79814),r=i(5691),n=i(59141),s=i(94159),o=i(24275),c=i(7653),d=()=>(0,l.jsx)(r.__,{sx:{cursor:"pointer"},typography:"subtitles-m",color:n.DM["primary-verde-500-main"],onClick:()=>{let e=document.getElementById("orari-apertura");if(e){let a=e.getBoundingClientRect().top+window.pageYOffset-150;window.scrollTo({top:a,behavior:"smooth"})}},children:"Vedi tutti gli orari"}),p=i(40955);let u=e=>{var a,i,d,u;let{openingHours:m,apertureStraordinarie:h,chiusureStraordinarie:f,puntoVendita:g}
1=e,v=(0,c.useRef)(void 0),y=(0,c.useRef)([]),b=s.t[new Date().getDay()],_=m?(0,p.JZ)(m):null,j=!_||Object.values(_).every(e=>!e||""===e.trim());return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(t.default,{sx:{my:n.N_["space-40px"]},children:[!j&&(0,l.jsx)(r.__,{typography:"headings-t-3",children:"Orari di apertura"}),(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:{sm:"column",lg:"row"},gap:n.N_["space-24px"],marginY:{sm:n.N_["space-24px"],lg:n.N_["space-40px"]}},children:[(0,l.jsxs)(t.default,{id:"orari-apertura",sx:{display:"flex",flexDirection:"column",gap:n.N_["space-24px"],flex:1},children:[!j&&(0,l.jsx)(t.default,{sx:{display:"flex",flexDirection:"column",gap:n.N_["space-8px"]},children:_?Object.entries(_).map((e,a)=>(0,l.jsxs)(r.__,{typography:"paragraph-m",sx:{display:"flex",alignItems:"center",gap:n.N_["space-16px"],color:e[0]===b?n.DM["primary-verde-500-main"]:"inherit",fontWeight:e[0]===b?"bold":"normal"},children:[e[0].charAt(0).toUpperCase()+e[0].slice(1),":"," ",(0,p.D9)(_[e[0]]),e[0]===b?(0,l.jsx)(x,{}):""]},a)):null}),h||f?(0,l.jsxs)(t.default,{sx:{display:"flex",flexDirection:"column",gap:n.N_["space-8px"]},children:[(0,l.jsx)(r.__,{typography:"subtitles-s",children:"Festivit\xe0 e aperture straordinarie"}),(0,l.jsx)(r.__,{typography:"paragraph-m",children:h}),(0,l.jsx)(r.__,{typography:"paragraph-m",children:f})]}):null,(0,l.jsx)(r.zx,{size:"small",onClick:e=>{var a,i,l,t;e.stopPropagation();let r="https://www.google.com/maps/dir/?api=1&destination=".concat(null==g?void 0:null===(i=g.location)||void 0===i?void 0:null===(a=i.coordinates)||void 0===a?void 0:a.lat,",").concat(null==g?void 0:null===(t=g.location)||void 0===t?void 0:null===(l=t.coordinates)||void 0===l?void 0:l.lng);window.open(r,"_blank")},children:"Indicazioni stradali"})]}),(null==g?void 0:null===(i=g.location)||void 0===i?void 0:null===(a=i.coordinates)||void 0===a?void 0:a.lat)&&(null==g?void 0:null===(u=g.location)||void 0===u?void 0:null===(d=u.coordinates)||void 0===d?void 0:d.lng)&&(0,l.jsx)(t.default,{sx:{width:{lg:"676px"}},children:(0,l.jsx)(o.StoreLocatorMap,{mapRef:v,markersRef:y,puntiVendita:[g],showPuntiVendita:!0})})]})]})})},x=()=>(0,l.jsx)("svg",{width:"32",height:"24",viewBox:"0 0 32 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M30.6861 13.4884C31.5081 13.3857 32.0912 12.636 31.9884 11.8139C31.8857 10.9919 31.136 10.4088 30.3139 10.5116L30.6861 13.4884ZM0.93934 10.9394C0.353553 11.5251 0.353553 12.4749 0.93934 13.0607L10.4853 22.6066C11.0711 23.1924 12.0208 23.1924 12.6066 22.6066C13.1924 22.0208 13.1924 21.0711 12.6066 20.4853L4.12132 12L12.6066 3.51473C13.1924 2.92895 13.1924 1.9792 12.6066 1.39341C12.0208 0.807628 11.0711 0.807628 10.4853 1.39341L0.93934 10.9394ZM30.3139 10.5116C24.4193 11.2484 19.8817 11.2489 15.5642 11.0639C11.2782 10.8802 7.03787 10.5 2 10.5V13.5C6.96213 13.5 10.9718 13.8698 15.4358 14.0611C19.8683 14.2511 24.5807 14.2516 30.6861 13.4884L30.3139 10.5116Z",fill:"#006F45"})}),m=e=>{let{data:a,color:i,isCraiStoreComponent:t=!1}=e,o=s.t[new Date().getDay()],c=(null==a?void 0:a.orari)?(0,p.JZ)(null==a?void 0:a.orari):null,u=!c||Object.values(c).every(e=>!e||""===e.trim());return!c||u?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.__,{typography:"paragraph-m",color:i||n.DM["grayscale-black"],children:[(0,l.jsx)("b",{children:"Oggi"}),": ",o&&c&&(0,p.D9)(c[o])]}),!t&&(0,l.jsx)(d,{})]})}},71493:function(e,a,i){"use strict";i.d(a,{Cw:function(){return r},_K:function(){return n},ki:function(){return s},nT:function(){return t},xR:function(){return l}});let l={token_cookie:"crai_user_token",user_id_cookie:"crai_user_id"},t=[{value:"Abruzzo",label:"Abruzzo"},{value:"Basilicata",label:"Basilicata"},{value:"Calabria",label:"Calabria"},{value:"Campania",label:"Campania"},{value:"Emilia-Romagna",label:"Emilia-Romagna"},{value:"Friuli Venezia Giulia",label:"Friuli Venezia Giulia"},{value:"Lazio",label:"Lazio"},{value:"Liguria",label:"Liguria"},{value:"Lombardia",label:"Lombardia"},{value:"Marche",label:"Marche"},{value:"Molise",label:"Molise"},{value:"Piemonte",label:"Piemonte"},{value:"Puglia",label:"Puglia"},{value:"Sardegna",label:"Sardegna"},{value:"Sicilia",label:"Sicilia"},{value:"Toscana",label:"Toscana"},{value:"Trentino-Alto Adige",label:"Trentino-Alto Adige"},{value:"Umbria",label:"Umbria"},{value:"Valle d'Aosta",label:"Valle d'Aosta"},{value:"Veneto",label:"Veneto"}],r=[{value:"Punti vendita",label:"Punti vendita"},{value:"Carte fedelt\xe0",label:"Carte fedelt\xe0"},{value:"Qualit\xe0 prodotti",label:"Qualit\xe0 prodotti"},{value:"Contatti generici",label:"Contatti generici"},{value:"App CRAI",label:"App CRAI"}],n=[{label:"Carta Fedelt\xe0",value:"cartaFedelta"},{label:"Bancomat",value:"bancomat"},{label:"Carta di Credito",value:"cartaDiCredito"},{label:"Parcheggio",value:"parcheggio"},{label:"Buoni Pasto",value:"buoniPasto"}
1,{label:"Consegna a Domicilio",value:"consegnaADomicilio"},{label:"Tabacchi",value:"tabacchi"},{label:"Sviluppo Foto",value:"sviluppoFoto"},{label:"Ecopoint",value:"ecopoint"},{label:"Ecommerce",value:"ecommerce"}],s=[{label:"Macelleria",value:"macelleria"},{label:"Pescheria",value:"pescheria"},{label:"Ortofrutta",value:"ortofrutta"},{label:"Panetteria",value:"paneFresco"},{label:"Salumi e Formaggi",value:"salumiEFormaggi"},{label:"Edicola",value:"edicola"},{label:"Giocattoli",value:"giocattoli"},{label:"Casalinghi",value:"casalinghi"},{label:"Gastronomia",value:"gastronomiaServita"}]},92807:function(e,a,i){"use strict";i.d(a,{L:function(){return r}});var l=i(56636),t=i(50790);let r=(0,l.U)()((0,t.n)(e=>({user:void 0,loading:!0,setUser:a=>e(e=>{e.user=a,e.loading=!1}),setLoading:a=>e(e=>({loading:a})),setFavoriteStores:a=>e(e=>{e.user&&(e.user.favorite_stores=a)}),setFavoriteStore:a=>e(e=>{e.favoriteStore=a})})))},58880:function(e,a,i){"use strict";i.d(a,{W:function(){return l}});let l={zBaseLayoutNavigation:1,zSnackbar:70,zPdLabel:2,zBlogCardLabel:10,zFlyerButton:70,zPdpDiscount:2,zMapPopUpBase:71,zPlayButton:70,zBollini:5,zHeader:80,zLayoutModal:100,zLayoutDrawer:100,zTab:79}},62381:function(e,a,i){"use strict";i.d(a,{k:function(){return l}});let l="1524px"},8222:function(e,a,i){"use strict";function l(e){return e<10?"0".concat(e):"".concat(e)}function t(e){return"".concat(function(){let e=new Date,a=l(e.getDate()),i=l(e.getMonth()+1),t=e.getFullYear(),r=l(e.getHours()),n=l(e.getMinutes()),s=l(e.getSeconds());return"".concat(a,"/").concat(i,"/").concat(t," ").concat(r,":").concat(n,":").concat(s)}()," - [").concat(e,"]")}i.d(a,{k:function(){return r}});let r={log:function(){for(var e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];console.log(t("LOG"),...a)},error:function(){for(var e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];console.error(t("ERROR"),...a)},warn:function(){for(var e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];console.warn(t("WARN"),...a)},info:function(){for(var e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];console.info(t("INFO"),...a)}}}},function(e){e.O(0,[4297,8201,7924,3825,3169,4135,4278,5162,5691,4398,1293,9471,1744],function(){return e(e.s=97325)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.