1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[717,1020,1432,2310,2795,5486,5538,8723],{2795:(e,t,s)=>{s.r(t),s.d(t,{default:()=>b});var a=s(37876),l=s(64081),o=s(84280),n=s(82310),i=s(65517),r=s(68920),c=s(74703),d=s(26880),x=s(50026),u=s(15113),p=s(34332),m=s(73502),f=s(48230),h=s.n(f),v=s(14232);let{gevBlue:g}=m.A.getColors(),b=()=>{var e,t;(0,v.useRef)(null);let[s,m]=(0,v.useState)({}),[f,b]=(0,v.useState)("");async function j(){if(u.sw.value.selfData){let e=u.sw.value.selfData,t=p.e.DateFormatASIS("dd/mm/yyyy",new Date(e.personalInfo.dateOfBirth)),s=p.e.DateFormatASIS("dd/mm/yyyy",new Date(e.profile.registrationDate)),a=e.nonpublicPersonalInfo.documents.find(e=>!0===e.attributes.active),l={contratto:e.legacyContractId,cognome:e.personalInfo.lastName,nome:e.personalInfo.firstName,cf:e.nonpublicPersonalInfo.socialSecurityNumber,email:e.personalInfo.emails.PERSONAL.address,data:t||"",data1:s||"",luogoNascita:e.extraParams.birthLevel2,cel:e.personalInfo.phones.MOBILE.number,statoNascita:e.extraParams.birthCountry,tel:"",numero:a?a.attributes.number:"",tipo:(0,r.getDescriptionFromID)(a?a.documentTypeId:""),rilasciato:a?a.attributes.releaser:"",scadenza:p.e.DateFormatASIS("dd/mm/yyyy",new Date(a?a.attributes.expirationDate:""))||"",cap:e.personalInfo.addresses.MAILING.postalCode,residenza:e.personalInfo.addresses.MAILING.city,indirizzo:e.personalInfo.addresses.MAILING.address1,prRes:e.personalInfo.addresses.MAILING.state,provincia:e.extraParams.birthLevel1};await (0,x.DC)(l)}}return(0,v.useEffect)(()=>{!function(){if(c.xT.dictionary&&u.sw.value.selfData){if(u.sw.value.selfData.walletStatusId===d.TE.SUSPENDED&&u.sw.value.selfData.contractStatusId!==d.UQ.VALIDATED){m({text:"Sospeso",type:"danger"}),b(c.xT.dictionary["area-personale_conto-gioco.tooltip_suspended"]);return}switch(u.sw.value.selfData.contractStatusId){case d.UQ.TO_VALIDATE:m({text:c.xT.dictionary["gtech-account.contract-status-1"],type:"warning"}),b(c.xT.dictionary["area-personale_conto-gioco.tooltip_to-validate"]);return;case d.UQ.VALIDATED:m({text:c.xT.dictionary["gtech-account.contract-status-3"],type:"success"}),b(c.xT.dictionary["area-personale_conto-gioco.tooltip_validated"]);return}c.xT.dictionary["gtech-account.contract-status-".concat(u.sw.value.selfData.contractStatusId)]&&m({text:c.xT.dictionary["gtech-account.contract-status-".concat(u.sw.value.selfData.contractStatusId)],type:""}),m({text:"N.A",type:"success"})}else m({text:"N.A",type:"success"})}()},[c.xT.dictionary,u.sw.value]),(0,a.jsx)(a.Fragment,{children:Object.keys(u.sw.value).length?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-4 flex w-full justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-bold desktop:text-xl",children:"Contratto"}),(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)(o.default,{...s}),(0,a.jsx)(n.default,{label:f,id:"conto-gioco-tooltip-contratto"})]})]}),(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-4 desktop:mb-5 desktop:flex-row desktop:justify-between",children:[(0,a.jsxs)("div",{className:"flex w-full gap-3",children:[(0,a.jsxs)("div",{className:"w-1/2",children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Stato conto gioco"}),(0,a.jsx)("p",{className:"text-sm font-semibold text-gevBlack first-letter:uppercase desktop:text-base",children:function(){let e="";if(u.sw.value.selfData)switch(u.sw.value.selfData.walletStatusId){case d.TE.PRE_ACTIVE:e="Pre-attivo";break;case d.TE.ACTIVE:e="Attivo";break;case d.TE.SUSPENDED:e="Sospeso";break;case d.TE.CLOSED:e="Chiuso";break;case d.TE.SETTLED:e="Settled";break;case d.TE.PAY_OFF:e="In Liquidazione";break;case d.TE.LIGHT:e="Light";break;default:e="N.A."}return e}()})]}),(0,a.jsxs)("div",{className:"w-1/2 flex-1",children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Data e ora inizio"}),(0,a.jsx)("p",{className:"break-words text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:(null==(e=u.sw.value.selfData)?void 0:e.profile.registrationDate)&&p.e.DateFormatASIS("dd/mm/yyyy-hh:mm",new Date(null==(t=u.sw.value.selfData)?void 0:t.profile.registrationDate))})]})]}),(0,a.jsx)(i.default,{id:"conto-gioco-download-contratto",className:"shrink-0 text-gevBlue desktop:h-[50px] desktop:w-[322px] desktop:whitespace-nowrap",icon:(0,l.qH)(g),onClick:j,label:"scarica pdf contratto",type:i.ButtonType.BUTTON})]}),(0,a.jsxs)("p",{className:"text-center text-xs font-normal md:text-start",children:["Se non disponi di un'applicazione per aprire i documenti PDF"," ",(0,a.jsx)(h(),{href:"https://get.adobe.com/it/reader/",target:"_blank",id:"conto-gioco-link-adobe",children:(0,a.jsx)("span",{className:"cursor-pointer text-xs font-bold text-gevBlue underline underline-offset-1",children:"scarica qui"})})," ","Acrobat Reader"]})]})}):(0,a.jsx)(a.Fragment,{})})}},5486:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var a=s(37876),l=s(64081),o=s(73502),n=s(48230),i=s.n(n),r=s(89099),
1c=s.n(r);let{gevBlue:d}=o.A.getColors(),x=e=>{let{id:t,title:s,link:o,className:n,cardStyle:r,children:x,padding:u="p-5 desktop:p-10",shadow:p=!0,style:m}=e;return(0,a.jsxs)("div",{className:"w-full rounded-2xl bg-white ".concat(r||""," ").concat(p?"shadow-light":""," ").concat(u),style:m,id:t,onClick:()=>{o&&c().push(o)},children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[s?(0,a.jsx)("h2",{className:"text-lg font-bold desktop:text-xl",children:s}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{children:o?(0,a.jsx)(i(),{rel:"stylesheet",href:o,children:(0,l.t4)(d,"24","24")}):(0,a.jsx)(a.Fragment,{})})]}),x?(0,a.jsx)("div",{className:"".concat(n||""," ").concat(s&&s.length?"pt-4 desktop:pt-5":""," "),children:x}):(0,a.jsx)(a.Fragment,{})]})}},8723:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var a=s(37876),l=s(34332),o=s(73502);s(14232);var n=s(10717),i=s(82310),r=s(74703);let{gevBlue:c}=o.A.getColors(),d=e=>{let{balance:t,bonusAmount:s,bonusBags:o}=e;return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{children:[t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-4 flex w-full justify-between",children:[(0,a.jsxs)("h2",{className:"text-lg font-bold desktop:text-xl",children:["Saldo ",l.e.number_format((t.availableBalance.value/100).toFixed(2))," â¬"]}),(0,a.jsx)(i.default,{id:"conto-gioco-tooltip-saldo",label:r.xT.dictionary?r.xT.dictionary["area-personale_conto-gioco.tooltip_saldo"]:""})]}),(0,a.jsxs)("div",{className:"mb-4 grid w-full grid-cols-2 gap-3 border-b-[1px] border-solid border-gevBlue border-opacity-20 pb-4 desktop:mb-5 desktop:grid-cols-3 desktop:pb-5 ",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Vincite"}),(0,a.jsxs)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:[l.e.number_format((t.winningsBalance.value/100).toFixed(2))," â¬"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Ricariche"}),(0,a.jsxs)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:[l.e.number_format((t.depositsBalance.value/100).toFixed(2))," â¬"]})]})]})]}):"",s&&(0,a.jsx)(n.default,{bonusBags:o,bonusAmount:s})]})})}},10717:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var a=s(37876),l=s(82310),o=s(74703),n=s(76722),i=s(34332);s(14232);let r=e=>{let{bonusAmount:t,bonusBags:s}=e;return(0,a.jsx)(a.Fragment,{children:t?(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsxs)("h2",{className:"text-lg font-bold desktop:text-xl",children:["Bonus ",t,"â¬"]}),(0,a.jsx)(l.default,{id:"dettaglio-bonus-tooltip",label:o.xT.dictionary?o.xT.dictionary["area-personale_i-tuoi-bonus.tooltip_bonus"]:""})]}),s&&Object.keys(s).length>0?(0,a.jsxs)("div",{className:"grid w-full grid-cols-2 gap-4 desktop:max-w-[65%] desktop:grid-cols-5 ",children:[(0,a.jsxs)("div",{className:"lotto-online"===o.Zd.LOTTO?"opacity-70":void 0,children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Gratta e Vinci"}),(0,a.jsxs)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:[s[n.EU.GEV]?i.e.number_format((s[n.EU.GEV]/100).toFixed(2)):"0,00"," ","â¬"]})]}),(0,a.jsxs)("div",{className:"lotto-online"===o.Zd.GEV?"opacity-70":void 0,children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Giochi Lotto "}),(0,a.jsxs)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:[s[n.EU.LOTTO]?i.e.number_format((s[n.EU.LOTTO]/100).toFixed(2)):"0,00"," ","â¬"]})]}),(0,a.jsxs)("div",{className:"lotto-online"===o.Zd.LOTTO||"lotto-online"===o.Zd.GEV?"opacity-70":void 0,children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Lotteria Italia "}),(0,a.jsxs)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:[s[n.EU.LOTTERIA_ITALIA]?i.e.number_format((s[n.EU.LOTTERIA_ITALIA]/100).toFixed(2)):"0,00"," ","â¬"]})]}),(0,a.jsxs)("div",{className:"lotto-online"===o.Zd.LOTTO||"lotto-online"===o.Zd.GEV?"opacity-70":void 0,children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Virtual "}),(0,a.jsxs)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:[s[n.EU.VIRTUAL_BETTING]?i.e.number_format((s[n.EU.VIRTUAL_BETTING]/100).toFixed(2)):"0,00"," ","â¬"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"whitespace-nowrap text-xs font-normal uppercase text-gevDarkGrey",children:"Tutti i giochi"}),(0,a.jsxs)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:[s[n.EU.ALL]?i.e.number_format((s[n.EU.ALL]/100).toFixed(2)):"0,00"," ","â¬"]})]})]}):""]}):""})}},11432:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var a=s(37876),l=s(62079),o=s(14232);let n=e=>{let{isTop:t,isLeft:s,positionX:n,positionY:i,children:r,parent:c,topArrow:d,rightArrow:x,maxWidth:u,closeOnClick:p,closeOnClickOutside:m}=e,[f,h]=(0,o.useState)(!1),v=(0,o.useRef)(null),g=(0,o.useRef)(null),{isMobile:b}=(0,l.l)();function j(e){var t,s,a,l;let o=null==(s=v.current)||null==(t=s.firstElementChild)?void 0:t.getBoundingClientRect(),n=null==(l=g.current)||null==(a=l.firstElementChild)?void 0:a.getBoundingClientRect();f&&o&&n&&(e.clientX<o.left||e.clientX>o.right||e.clientY>
1o.bottom||e.clientY<o.top)&&(e.clientX<n.left||e.clientX>n.right||e.clientY>n.bottom||e.clientY<n.top)&&h(!1)}return(0,o.useEffect)(()=>(m&&window.addEventListener("click",j),()=>{m&&window.removeEventListener("click",j)}),[f]),(0,a.jsxs)("div",{className:"relative",ref:v,children:[(0,a.jsx)("div",{onClick:()=>{h(!f)},children:c}),f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:g,onMouseLeave:()=>{!0===m&&h(!1)},style:{...s?{left:n}:{right:n},...t?{top:i}:{bottom:i},...u&&u>0?{maxWidth:u}:{minWidth:b?300:390}},className:"absolute z-10 h-fit max-w-[80%] rounded-2xl bg-transparent ",onClick:()=>!!p&&h(!1),children:r}),(0,a.jsx)("div",{className:"absolute h-6 w-6 -rotate-[135deg] rounded bg-white shadow-light",style:{top:d||36,right:x||0}})]})]})}},65538:(e,t,s)=>{s.r(t),s.d(t,{default:()=>N});var a=s(37876),l=s(64081),o=s(3891),n=s(5486),i=s(65517),r=s(81020),c=s(2795),d=s(8723),x=s(74703),u=s(66196),p=s(76722),m=s(46296),f=s(11268),h=s(87231),v=s(15113),g=s(34332),b=s(14e3),j=s(89099),k=s(14232);function N(){let e=(0,j.useRouter)(),[t,s]=(0,k.useState)(),[N,w]=(0,k.useState)(-1),[y,T]=(0,k.useState)({}),[E,I]=(0,k.useState)((0,m.O)(u.b.contoGioco.url)),D=(0,k.useRef)(null),A=(0,b.useSearchParams)();return(0,k.useEffect)(()=>{(async()=>{let e=await (0,h.r1)();e.status===x.jL.OK&&e.data&&s(e.data);let t=await (0,h.o2)();t.status===x.jL.OK&&t.data&&t.data.balances?(w(t.data.balances.bonusPocket.balance),T((0,p.Ff)(t.data.bonusBagsBalance))):w(-1)})()},[]),(0,k.useEffect)(()=>{let e=A.get("scrollTo");if(e){let t=()=>{"user-contract"===e&&D.current&&D.current.scrollIntoView({behavior:"smooth",block:"center"})},s=()=>{D.current?setTimeout(t,500):setTimeout(s,100)};s()}},[A]),(0,k.useEffect)(()=>{I((0,m.O)(u.b.contoGioco.url))},[v.ON.value.sospensioneContoGiocoOtherReasons]),(0,a.jsxs)("div",{className:"px-4 desktop:px-11",children:[(0,a.jsx)("h1",{className:"text-xl font-medium desktop:text-2xl ".concat(0===E.length?"mb-4":""),children:"Conto gioco"}),E&&E.length?(0,a.jsx)("div",{className:"my-4 flex flex-col gap-2",children:E.map((e,t)=>(0,a.jsx)(o.default,{...e},t))}):"",(0,a.jsxs)("div",{className:"flex flex-col gap-4 desktop:gap-5",children:[(0,a.jsxs)("div",{className:"flex w-full gap-3 desktop:justify-end desktop:gap-5",children:[(0,a.jsx)(i.default,{id:"conto-gioco-preleva",className:"flex w-1/2 items-center justify-center space-x-2 bg-white py-2 text-gevBlue desktop:h-[50px] desktop:w-[322px]",icon:(0,l.EE)(),onClick:()=>{f.A.fire(f.N.TRACKING,{event:"interaction",button_name:"preleva",action:"CTA",name_card:"conto_gioco"}),e.push({pathname:u.b.prelievo.url})},label:"preleva",type:i.ButtonType.BUTTON}),(0,a.jsx)(i.default,{id:"conto-gioco-ricarica",className:"accent flex w-1/2 items-center justify-center space-x-2 py-2 desktop:h-[50px] desktop:w-[322px]",label:"ricarica",icon:(0,l.LJ)(),onClick:async()=>{f.A.fire(f.N.TRACKING,{event:"interaction",button_name:"ricarica",action:"CTA",name_card:"conto_gioco"}),await e.push(u.b.ricarica.url)},type:i.ButtonType.BUTTON})]}),(0,a.jsx)(n.default,{padding:"p-5 desktop:p-10",children:(0,a.jsx)(d.default,{bonusBags:y,balance:t,bonusAmount:-1!==N?g.e.number_format((N/x.TL).toFixed(2)):"0,00"})}),(0,a.jsx)(n.default,{padding:"p-5 desktop:p-10",children:(0,a.jsx)(r.default,{})}),(0,a.jsx)(n.default,{padding:"p-5 desktop:p-10",children:(0,a.jsx)("div",{ref:D,children:(0,a.jsx)(c.default,{})})})]})]})}},81020:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(37876),l=s(15113);let o=()=>{var e,t;return(0,a.jsx)("div",{className:"flex w-full gap-3 desktop:grid desktop:grid-cols-3",children:Object.keys(l.sw.value).length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"w-1/2",children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Conto n\xb0"}),(0,a.jsx)("p",{className:"text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:null==(e=l.sw.value.selfData)?void 0:e.legacyContractId})]}),(0,a.jsxs)("div",{className:"w-1/2 flex-1 desktop:whitespace-nowrap",children:[(0,a.jsx)("p",{className:"text-xs font-normal uppercase text-gevDarkGrey",children:"Codice fiscale"}),(0,a.jsx)("p",{className:"break-words text-sm font-semibold uppercase text-gevBlack desktop:text-base",children:null==(t=l.sw.value.selfData)?void 0:t.nonpublicPersonalInfo.socialSecurityNumber})]})]}):""})}},82310:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c});var a=s(37876),l=s(64081),o=s(73502),n=s(14232),i=s(11432);let{gevBlue:r}=o.A.getColors(),c=e=>{let{label:t,component:s,icon:o,tooltipProps:c,id:d}
1=e,x=(0,n.useRef)(null),[u,p]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{x&&x.current&&(window.innerHeight-x.current.getBoundingClientRect().bottom<200?p(!0):p(!1))};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,a.jsx)(a.Fragment,{children:(t||s)&&(0,a.jsx)("div",{className:"",id:d,children:(0,a.jsx)(i.default,{isTop:c?null==c?void 0:c.isTop:!u,isLeft:!!c&&c.isLeft,positionX:c?null==c?void 0:c.positionX:-15,positionY:c?null==c?void 0:c.positionY:40,closeOnClick:!c||(null==c?void 0:c.closeOnClick),closeOnClickOutside:!c||(null==c?void 0:c.closeOnClickOutside),topArrow:c?null==c?void 0:c.topArrow:u?-36:void 0,parent:(0,a.jsx)("div",{className:"cursor-pointer",ref:x,children:o||(0,l.QG)(r)}),children:(0,a.jsx)("div",{className:"max-h-48 space-y-4 overflow-hidden rounded-2xl bg-white p-5 shadow-light",children:t?(0,a.jsx)("div",{className:".rich-text max-h-[180px] overflow-hidden",dangerouslySetInnerHTML:{__html:t}}):s?(0,a.jsx)("div",{children:s}):""})})})})}}}]);
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.