1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3288,5486,7305,7828,8180,9446],{3288:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var s=a(37876),l=a(14232);let n=e=>{let{text:t,maxRows:a="2",fontStyle:n,outerStyle:c,id:i}=e,[o,d]=(0,l.useState)(!1),[r,p]=(0,l.useState)(!1),u=(0,l.useRef)(null);function x(){u.current&&p(u.current.scrollHeight!==u.current.clientHeight)}(0,l.useEffect)(()=>(window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)}),[]),(0,l.useEffect)(()=>{x()},[u.current]);let m=(0,l.useMemo)(()=>"line-clamp-".concat(a),[a]);return(0,s.jsx)(s.Fragment,{children:t&&(0,s.jsxs)("div",{className:c&&c,children:[(0,s.jsx)("div",{ref:u,className:"".concat(n&&n," ").concat(o?"":"".concat(m)," rich-text whitespace-normal"),dangerouslySetInnerHTML:{__html:t}}),r&&(0,s.jsx)("span",{id:i,className:"cursor-pointer pt-0.5 font-semibold text-gevBlue underline ".concat(n&&n),onClick:()=>{d(!o)},children:o?"Leggi di meno":"Leggi di pi\xf9"})]})})}},5486:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var s=a(37876),l=a(64081),n=a(73502),c=a(48230),i=a.n(c),o=a(89099),d=a.n(o);let{gevBlue:r}=n.A.getColors(),p=e=>{let{id:t,title:a,link:n,className:c,cardStyle:o,children:p,padding:u="p-5 desktop:p-10",shadow:x=!0,style:m}=e;return(0,s.jsxs)("div",{className:"w-full rounded-2xl bg-white ".concat(o||""," ").concat(x?"shadow-light":""," ").concat(u),style:m,id:t,onClick:()=>{n&&d().push(n)},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[a?(0,s.jsx)("h2",{className:"text-lg font-bold desktop:text-xl",children:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("div",{children:n?(0,s.jsx)(i(),{rel:"stylesheet",href:n,children:(0,l.t4)(r,"24","24")}):(0,s.jsx)(s.Fragment,{})})]}),p?(0,s.jsx)("div",{className:"".concat(c||""," ").concat(a&&a.length?"pt-4 desktop:pt-5":""," "),children:p}):(0,s.jsx)(s.Fragment,{})]})}},7305:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var s=a(37876);a(14232);let l=e=>{let{label:t,name:a,checked:l,disabled:n,onError:c,onChange:i}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("label",{htmlFor:"toggle-".concat(a),className:"flex cursor-pointer items-center",children:[(0,s.jsxs)("div",{className:"relative ",children:[(0,s.jsx)("input",{name:a,type:"checkbox",checked:!!l,disabled:!!n,id:"toggle-".concat(a),onChange:e=>{i(e)},className:"sr-only"}),(0,s.jsx)("div",{className:"toggle-bg block h-6 w-10 rounded-full border-2 border-solid ".concat(c?"border-gevRed":"border-gevDarkGrey border-opacity-50"," bg-gevLightGrey desktop:h-8 desktop:w-[54px]")}),(0,s.jsx)("div",{className:"dot absolute left-1 top-1 h-4 w-4 rounded-full bg-gevDarkGrey transition desktop:h-6 desktop:w-6"})]}),t&&(0,s.jsx)("div",{className:"ml-3 font-medium text-gray-700",children:t})]})})}},17828:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var s=a(37876),l=a(5486),n=a(93876),c=a(7305),i=a(3288),o=a(38180),d=a(74703),r=a(55076),p=a(50026),u=a(78912),x=a(14232);function m(){let[e,t]=(0,x.useState)(),[a,m]=(0,x.useState)(!1),[h,f]=(0,x.useState)(!1),[v,g]=(0,x.useState)(!1),[b,j]=(0,x.useState)(!1),[A,E]=(0,x.useState)();async function L(e){let t=[r.Dc.DEPOSIT,r.Dc.WITHDRAWAL];f(e),j(!0);let a=N(e,t);(await (0,p.yD)(a)).status!==d.jL.OK&&u.A.openModal({isCancelable:!0,hasCloseIco:!0,body:(0,s.jsx)(n.default,{}),modalName:"generic_popup",modaleType:"generic_popup"}),j(!1)}function N(t,a){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;if(A)return a.map(a=>{let l=A[a];return function(t,a){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;["EMAIL","SMS"].forEach(e=>{t&&t.channels&&void 0!==t.channels[e].enabled&&(t.channels[e].enabled=e===s&&a)})}(l,t,s),l})}async function k(e){g(!0),t(e);let a=[r.Dc.BALANCE_ABOVE,r.Dc.BALANCE_BELOW];h&&a.push(r.Dc.DEPOSIT,r.Dc.WITHDRAWAL);let l=N(!0,a,e);(await (0,p.yD)(l)).status!==d.jL.OK&&u.A.openModal({isCancelable:!0,hasCloseIco:!0,body:(0,s.jsx)(n.default,{}),modalName:"generic_popup",modaleType:"generic_popup"}),g(!1)}return(0,x.useEffect)(()=>{(async()=>{let e=await (0,p.TH)();if(e.status===d.jL.OK&&e.data.notificationPreferences){let n=e.data.notificationPreferences,c={};for(let e of n)if((e.id===r.Dc.DEPOSIT||e.id===r.Dc.WITHDRAWAL||e.id===r.Dc.BALANCE_ABOVE||e.id===r.Dc.BALANCE_BELOW)&&(c[e.id]=e),5===Object.keys(c).length)break;if(c[r.Dc.BALANCE_ABOVE]){var a,s,l;let e=(null==(a=c[r.Dc.BALANCE_ABOVE])?void 0:a.channels.EMAIL.enabled)?"EMAIL":"SMS";t(e),c[r.Dc.WITHDRAWAL]&&f(!!(null==(l=c[r.Dc.WITHDRAWAL])||null==(s=l.channels[e])?void 0:s.enabled))}E(c)}})()},[]),(0,s.jsxs)("div",{className:"px-4 desktop:px-11",children:[(0,s.jsx)("h2",{className:"mb-4 text-xl font-medium desktop:mb-5 desktop:text-2xl",children:"Avvisi automatici"}),(0,s.jsx)(i.default,{id:"text-box_avvisi-automatici",fontStyle:"text-sm font-normal",text:d.xT.dictionary?d.xT.dictionary["area-personale_avvisi-automatici.text-box_avvisi-automatici"]:""}),(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-4 pb-4 desktop:mt-5 desktop:gap-5",children:[(0,s.jsx)(l.default,{padding:"p-5 desktop:p-10",children:(0,s.jsxs)("div",{className:"flex w-full flex-col desktop:flex-row desktop:items-center desktop:justify-between",children:[(0,s.jsx)("h2",{className:"text-xs font-bold uppercase desktop:text-sm ",children:"Scegli la modalit\xe0 di ricezione"}),(0,s.jsxs)("div",{className:"flex gap-10",children:[(0,s.jsxs)("label",{className:"flex items-center gap-2.5 pt-5 text-xs font-normal leading-normal desktop:pt-0 desktop:text-sm",children:[(0,s.jsx)("input",{id:"radio-sms",type:"radio",name:"canaleComunicazione",disabled:v,checked:"SMS"===e,onChange:e=>k("SMS")}),"SMS"]}),(0,s.jsxs)("label",{className:"flex items-center gap-3 pt-5 text-xs font-normal leading-normal desktop:pt-0 desktop:text-sm",children:[(0,s.jsx)("input",{id:"radio-email",type:"radio",name:"canaleComunicazione",disabled:v,checked:"EMAIL"===e,onChange:e=>k("EMAIL")}),"Email"]})]})]})}),(0,s.jsx)("h2",{className:"text-base font-medium desktop:text-xl",children:"Scegli gli avvisi da ricevere"}),(0,s.jsx)(o.default,{avvisoSaldo:a,setAvvisoSaldo:m}),(0,s.jsx)(l.default,{padding:"p-5 desktop:px-10 desktop:py-9",children:(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("p",{className:"desktop:text-base",children:"Esito di una ricarica e di un prelievo"}),(0,s.jsx)(c.default,{name:"RicaricaPrelievoToggle",checked:h,disabled:b,onChange:e=>{L(e.target.checked)}})]})})]})]})}},38180:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var s=a(37876),l=a(64081),n=a(5486),c=a(93876),i=a(74257),o=a(7305),d=a(79446),r=a(74703),p=a(55076),u=a(50026),x=a(78912),m=a(34332),h=a(73502),f=a(14232);let{gevBlue:v}=h.A.getColors(),g=e=>{let{avvisoSaldo:t,setAvvisoSaldo:a}=e,[h,g]=(0,f.useState)(),[b,j]=(0,f.useState)(),[A,E]=(0,f.useState)(),[L,N]=(0,f.useState)(),[k,y]=(0,f.useState)(!1),[C,S]=(0,f.useState)(!1);
1function w(e){e&&e.length&&e.forEach(e=>{e.type===p.LY.ALERT_BALANCE_ABOVE_THRESHOLD&&"ACTIVE"===e.status&&e.value>0?(a(!0),g("superiore"),N("superiore"),j("".concat(e.value)),E("".concat(e.value/100))):e.type===p.LY.ALERT_BALANCE_BELOW_THRESHOLD&&"ACTIVE"===e.status&&e.value>0&&(a(!0),g("inferiore"),N("inferiore"),j("".concat(e.value)),E("".concat(e.value/100)))})}async function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;S(!0),y(!1);let a=[];a=e?"superiore"===L?[{value:100*parseInt("".concat(A)),type:p.LY.ALERT_BALANCE_ABOVE_THRESHOLD,status:"ACTIVE"},{value:0,type:p.LY.ALERT_BALANCE_BELOW_THRESHOLD,status:"ACTIVE"}]:[{value:0,type:p.LY.ALERT_BALANCE_ABOVE_THRESHOLD,status:"ACTIVE"},{value:100*parseInt("".concat(A)),type:p.LY.ALERT_BALANCE_BELOW_THRESHOLD,status:"ACTIVE"}]:[{value:0,type:p.LY.ALERT_BALANCE_ABOVE_THRESHOLD,status:"ACTIVE"},{value:0,type:p.LY.ALERT_BALANCE_BELOW_THRESHOLD,status:"ACTIVE"}];let l=await (0,u.aq)(a);l.status===r.jL.OK?w(l.data):x.A.openModal({isCancelable:!0,hasCloseIco:!0,body:(0,s.jsx)(c.default,{}),modalName:"generic_popup_avviso_saldo",modaleType:"generic_popup"}),S(!1)}async function T(e){a(e),e||(g(""),N(""),j(""),E(""),await _(e))}return(0,f.useEffect)(()=>{(async()=>{let e=await (0,u.e4)();e.status===r.jL.OK&&e.data&&w(e.data)})()},[]),(0,s.jsxs)(n.default,{padding:"".concat(t?"pb-[5px] px-[5px] ":""),children:[(0,s.jsxs)("div",{className:"flex w-full items-center justify-between ".concat(t?"px-[15px] pb-[15px] pt-5":"p-5"," desktop:p-9"),children:[(0,s.jsx)("p",{className:"desktop:text-base",children:"Avvisami quando il saldo \xe8"}),(0,s.jsx)(o.default,{name:"avvisoSaldo",disabled:C,checked:!0===t,onChange:e=>{T(e.target.checked)}})]}
1),t&&(0,s.jsx)("div",{className:"flex ".concat(k?"":"h-20 desktop:h-[110px]"," w-full items-center justify-between rounded-lg bg-gevLightGrey px-[15px] py-4 desktop:px-[35px]"),children:k?(0,s.jsxs)("div",{className:"mb-1 flex w-full flex-col justify-between gap-4 py-1 desktop:gap-5",children:[(0,s.jsx)("p",{className:"text-xs text-gevDarkGrey desktop:text-sm",children:"La soglia attuale \xe8"}),(0,s.jsx)(d.default,{id:"select-soglia",defaultSelected:"".concat(null!=L?L:"Seleziona"),customClassName:"bg-white",list:[{description:"Inferiore",value:"inferiore"},{description:"Superiore",value:"superiore"}],onChange:e=>{N(e)},placeholder:"seleziona"}),(0,s.jsx)(i.default,{id:"saldo-soglia",placeholder:"Soglia",value:"".concat(!A||isNaN(parseFloat(A))?"":A),onChange:e=>E(e.target.value.replace(".","")),type:i.InputType.NUMBER,formatter:m.e.formatNumberWithCommas,customClassName:"bg-white",disabled:!L},"saldoSoglia"),(0,s.jsxs)("div",{className:"flex w-full items-center gap-3 desktop:mt-5 desktop:justify-between",children:[(0,s.jsx)("button",{id:"cancel-saldo-soglia",type:"button",onClick:()=>{y(!1),N(h),E("".concat(parseFloat("".concat(b))/100))},className:"light w-1/2 border-2 border-solid border-gevBlue bg-white text-gevBlue desktop:w-[322px]",children:"ANNULLA"}),(0,s.jsx)("button",{id:"confirm-saldo-soglia",type:"button",disabled:C||!A||"NaN"===A||!L||b==="".concat(A,"00")&&h===L,onClick:()=>{_()},className:"accent w-1/2 desktop:w-[322px]",children:"SALVA"})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:h&&b?(0,s.jsxs)("p",{className:"text-sm font-semibold text-gevBlack",children:[m.e.capitalizeFirstLetter("".concat(h))," a"," ",m.e.number_format((b?parseFloat(b)/100:0).toFixed(2)),"â¬"]}):(0,s.jsx)("p",{className:"text-xs text-gevDarkGrey desktop:text-base",children:"Nessuna selezione"})}),(0,s.jsx)("div",{id:"switch-edit-saldo-soglia",className:"cursor-pointer",onClick:()=>y(!0),children:(0,l.EW)(v,24,24)})]})})]})}},79446:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var s=a(37876),l=a(64081),n=a(62079),c=a(73502),i=a(14232);let{gevBlue:o,gevRed:d}=c.A.getColors(),r=e=>{let{id:t,list:a,placeholder:c,defaultSelected:r,customClassName:p,onChange:u,isError:x,errorMessage:m,onBlur:h,disabled:f=!1,isAbsolute:v=!0}=e,[g,b]=(0,i.useState)(!1),[j,A]=(0,i.useState)(""),[E,L]=(0,i.useState)(""),{isMobile:N}=(0,n.l)(),k=(0,i.useRef)(null);function y(e){k.current&&!k.current.contains(e.target)&&b(!1)}(0,i.useEffect)(()=>(document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}),[]);let C=(0,i.useMemo)(()=>{var e;return(null==p?void 0:p.includes("bg-"))?null!=(e=null==p?void 0:p.split(" ").find(e=>e.includes("bg-")))?e:"":"bg-gevLightGrey"},[p]),S=!!j;return(0,i.useEffect)(()=>{var e,t;A(null!=(t=null==(e=a.find(e=>e.value===r))?void 0:e.description)?t:""),L("")},[r,a]),(0,s.jsxs)("div",{ref:k,className:"relative ".concat(g?"z-20":""," min-h-[50px] w-full desktop:min-h-[60px] ").concat(p||""," rounded-[15px] !bg-transparent"),children:[(0,s.jsxs)("div",{className:"input-select ".concat(v?"input-select-absolute":""," ").concat(g?"open":"close"," ").concat(f?"opacity-30":""," ").concat(C," ").concat(x&&m&&!g?"error":""),onClick:()=>{b(e=>!e),L("")},onKeyUp:e=>{let t=E.length<2?E+e.key:E;for(let e of a)if(e.description.toLowerCase().startsWith(t.toLowerCase())){document.getElementById(e.description).scrollIntoView({behavior:"smooth",block:"nearest"}),L(t);return}},children:[(0,s.jsxs)("div",{className:"input-wrapper ".concat(C),children:[(0,s.jsx)("input",{type:"text",disabled:f||N,id:t,value:j||"",onBlur:h,onChange:()=>{},name:t,className:"h-5 cursor-pointer caret-transparent ".concat(C)}),(0,s.jsx)("label",{htmlFor:t,className:"".concat(S?"shrinked":""," cursor-pointer text-gevDarkGrey"),onClick:e=>{e.preventDefault()},children:c}),(0,s.jsx)("div",{tabIndex:0,className:"".concat(g?"rotate-180":""),children:(0,l.LB)(o)})]}),(0,s.jsx)("div",{tabIndex:0,className:"select-drop-down ".concat(g?"visible":"hidden"," ").concat(C," "),children:(0,s.jsx)("ul",{children:a&&a.map((e,a)=>(0,s.jsx)("li",{id:e.description,className:"line-clamp-2 ".concat(0===a?"pb-2 pt-3.5":"py-2 "," text-sm desktop:text-base"),onClick:()=>(e=>{u(e.value),A(e.description),L("")})(e),children:e.description},"".concat(t).concat(e.value)))})})]}),x&&m&&(0,s.jsxs)("div",{className:" flex items-center justify-start gap-2 text-gevRed ".concat(v?"pt-[60px] desktop:pt-[70px]":"pt-[5px]"),children:[!!m.hasIcon&&(0,s.jsx)("div",{children:(0,l.m7)(d,N?"20":"24",N?"20":"24")}),(0,s.jsx)("p",{className:"text-xs font-normal desktop:text-sm",children:m.message})]})]})}}}]);
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.