https://comparea.ch/_next/static/chunks/pages/assurance-maladie/lamal/frontalier-f4a78bc7c2f633f0.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8337],{26418:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/assurance-maladie/lamal/frontalier",function(){return s(25184)}])},29965:function(e,a,s){"use strict";s.d(a,{Z:function(){return calculateurAssurance}});var l=s(85893),t=s(67294),r=s(87890),n=s.n(r);let c=t.createContext({status:"seul",setStatus:()=>null,votreSalaires:"0",setVotreSalaires:()=>null,conjointSalaires:"0",setConjointSalaires:()=>null,age:25,setAge:()=>null,conjointAge:25,setConjointAge:()=>null}),AssuranceCalculateurProvider=e=>{let{children:a}=e,[s,r]=t.useState("4368"),[n,u]=t.useState("4368"),[i,d]=t.useState("seul"),[o,p]=t.useState(30),[x,m]=t.useState(30);return(0,l.jsx)(c.Provider,{value:{status:i,setStatus:d,votreSalaires:s,setVotreSalaires:r,conjointSalaires:n,setConjointSalaires:u,age:o,setAge:p,conjointAge:x,setConjointAge:m},children:a})},useAssuranceCalculateur=()=>t.useContext(c);var u=s(68839),i=s(5549),d=s(85648),o=s(44248),p=s(64901),calculateurAssuranceData=()=>{let{conjointSalaires:e,status:a,votreSalaires:s,age:r,conjointAge:c}=useAssuranceCalculateur(),x=r>26?162:146,m="couple"===a?x+(c>26?162:146):x,f=(0,t.useMemo)(()=>{if(isNaN(parseInt(s)))return 0;let l=.75*parseInt(s||"0");if("couple"===a){let a=.75*parseInt(e||"0");return .08*(a+l)}return .08*l},[e,a,s]),_=m>f?m:f,{t:h}=(0,p.$G)("calculateur");return(0,l.jsxs)("div",{className:n().data_wrapper,children:[(0,l.jsx)("h3",{className:"mb-6 block text-[24px] font-bold",children:h("assurance.right.title")}),(0,l.jsxs)("div",{className:n().candle__wrapper,style:{"--max":_},children:[(0,l.jsxs)("div",{className:n().candle,children:[(0,l.jsx)("div",{className:n().candle__bar+" "+(_!==f?"bg-primary":"bg-grey/30"),style:{"--value":f}}),(0,l.jsx)("div",{className:"text-base font-medium",children:"CMU"}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{className:"text-[22px] font-semibold text-secondary",children:[(0,u.d)(f,"de-CH","CHF",0,0).replace("CHF","")," "]}),(0,l.jsxs)("span",{className:"text-base font-medium",children:["CHF/",h("assurance.right.mois")]})]})]}),(0,l.jsxs)("div",{className:n().candle,children:[(0,l.jsx)("div",{className:n().candle__bar+" "+(_!==m?"bg-primary":"bg-grey/30"),style:{"--value":m}}),(0,l.jsx)("div",{className:"text-base font-medium",children:"LAMal"}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{className:"text-[22px] font-semibold text-secondary",children:[(0,u.d)(m,"de-CH","CHF",0,0).replace("CHF","")," "]}),(0,l.jsxs)("span",{className:"text-base font-medium",children:["CHF/",h("assurance.right.mois")]})]})]})]}),(0,l.jsx)("h3",{className:"mb-4 mt-4 block text-[18px] font-bold",children:h("assurance.right.cta.title")}),(0,l.jsx)(i.z,{asChild:!0,variant:"thirdy",children:(0,l.jsx)(d.x,{href:o.KY,children:h("assurance.right.cta.button")})})]})},x=s(33001),m=s(30853),f=(0,m.Z)("user","IconUser",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]]),_=(0,m.Z)("users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]),h=s(17010),b=s(98388),calculateurAssuranceSettings=()=>{let{conjointSalaires:e,setConjointSalaires:a,status:s,setStatus:t,votreSalaires:r,setVotreSalaires:n,age:c,setAge:i,conjointAge:d,setConjointAge:o}=useAssuranceCalculateur(),{t:m}=(0,p.$G)("calculateur");return(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col items-center gap-[24px] pb-8 md:max-w-[512px]",children:[(0,l.jsx)("h3",{className:"text-[24px] font-bold",children:m("assurance.left.title")}),(0,l.jsxs)("div",{className:"flex w-full max-w-[320px] overflow-hidden rounded-2xl border border-grey/20",children:[(0,l.jsxs)("button",{className:(0,b.m6)("flex flex-1 items-center justify-center gap-2 py-2","seul"===s&&"bg-secondary text-dark/80 text-white"),onClick:()=>t("seul"),children:[(0,l.jsx)(f,{size:20,className:(0,b.m6)("seul"!==s&&"text-secondary")}),m("assurance.left.inputs.statut.seul")]}),(0,l.jsxs)("button",{className:(0,b.m6)("flex flex-1 items-center justify-center gap-2 py-2 text-dark/80","couple"===s&&"bg-secondary text-white"),onClick:()=>t("couple"),children:[(0,l.jsx)(_,{size:20,className:(0,b.m6)("couple"!==s&&"text-secondary")}),m("assurance.left.inputs.statut.couple")]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center justify-between gap-2 md:gap-4",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(x.ZP,{value:(0,u.d)(parseInt(r)||0,"de-CH","CHF",0,0).replace("CHF",""),"aria-label":m("assurance.left.inputs.montant.aria_label"),name:"prixdachat",id:"prixdachat",autoComplete:"prixdachat",placeholder:m("assurance.left.inputs.montant.placeholder"),label:m("couple"===s?"assurance.left.inputs.montant.label2":"assurance.left.inputs.montant.label1"),insideText:"CHF",onChange:e=>{n(e.target.value.replaceAll("â",""))}})}),"couple"===s&&(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(x.ZP,{value:(0,u.d)(parseInt(e)||0,"de-CH","CHF",0,0).replace("CHF",""),"aria-label":m("assurance.left.inputs.montant_couple.aria_label"),name:"fondspropres",id:"fondspropres",autoComplete:"fondspropres",placeholder:m("assurance.left.inputs.montant_couple.placeholder"),label:m("assurance.left.inputs.montant_couple.label"),insideText:"CHF",disabled:"couple"!==s,onChange:e=>{a(e.target.value.replaceAll("â",""))}})})]}),(0,l.jsxs)("div",{className:"flex flex-row items-center justify-between gap-2 md:gap-4",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(x.ZP,{value:c,"aria-label":m("assurance.left.inputs.age.aria_label"),name:"age",id:"age",autoComplete:"age",placeholder:m("assurance.left.inputs.age.placeholder"),label:m("assurance.left.inputs.age.label"),type:"number",onChange:e=>{let a=e.target.value;i(a||"\xa0"!==a?parseInt(a):0)}})}),"couple"===s&&(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(x.ZP,{value:d,"aria-label":m("assurance.left.inputs.age_couple.aria_label"),name:"age",id:"age",autoComplete:"age",placeholder:m("assurance.left.inputs.age.placeholder"),label:m("assurance.left.inputs.age_couple.label"),type:"number",onChange:e=>{let a=e.target.value;o(a||"\xa0"!==a?parseInt(a):0)}})})]}),(0,l.jsxs)("span",{className:"flex items-center gap-2",children:[(0,l.jsx)(h.Z,{size:20}),(0,l.jsx)("span",{className:"text-[12px] font-light",children:m("assurance.left.info")})]})]})]})},calculateurAssurance=e=>{let{}=e;return(0,l.jsx)("div",{className:"mt-10 w-full md:mb-20 md:mt-0",children:(0,l.jsx)(AssuranceCalculateurProvider,{children:(0,l.jsx)("div",{className:"mx-auto max-w-[1000px] rounded-xl border border-[#88889422] bg-white px-[24px] py-[20px] shadow-md md:py-[60px]",children:(0,l.jsxs)("div",{className:"flex flex-col justify-around ga
1p-2 md:flex-row md:gap-0",children:[(0,l.jsx)(calculateurAssuranceSettings,{}),(0,l.jsx)(calculateurAssuranceData,{})]})})})})}},25184:function(e,a,s){"use strict";s.r(a),s.d(a,{__N_SSG:function(){return i}});var l=s(85893),t=s(64901),r=s(43818),n=s(26410),c=s(5321),u=s(29965),i=!0;a.default=()=>{let{t:e}=(0,t.$G)("pages/assurance-maladie/lamal/frontalier");return(0,l.jsx)(n.Z,{breadcrumbItems:[{icon:(0,l.jsx)(r.Z,{}),link:"/"},{text:e("breadcrumb0"),link:"/assurance-maladie"},{text:e("breadcrumb1"),link:"/assurance-maladie/lamal"},{text:e("breadcrumb"),link:"/assurance-maladie/lamal/frontalier"}],title:e("heroTitle"),t:e,agentKey:"alexis_milon",articleDate:"01.02.2024",components:{linkLamalF:(0,l.jsx)(c.z7,{href:"/assurance-maladie/lamal/franchises"}),linkLamalOrCmu:(0,l.jsx)(c.z7,{href:"/assurance-maladie/lamal/lamal-ou-cmu"}),linkCoverage:(0,l.jsx)(c.z7,{href:"/assurance-maladie/complementaires"}),linkComparison:(0,l.jsx)(c.z7,{href:"/assurance-maladie"})},faqItems:[{question:e("faq.item_1.question"),answer:(0,l.jsx)(t.cC,{t:e,i18nKey:"faq.item_1.answer",components:{br:(0,l.jsx)("br",{})}})},{question:e("faq.item_1.question"),answer:(0,l.jsx)(t.cC,{t:e,i18nKey:"faq.item_1.answer",components:{br:(0,l.jsx)("br",{}),ul:(0,l.jsx)(c.wD,{}),li:(0,l.jsx)(c.iP,{})}})}],children:(0,l.jsx)(u.Z,{})})}},87890:function(e){e.exports={settings_wrapper:"calculateurAssurance_settings_wrapper__oYr_s",info:"calculateurAssurance_info__G_cSM",settings_row:"calculateurAssurance_settings_row__wqXGJ",settings_box:"calculateurAssurance_settings_box__E3wCi",data_wrapper:"calculateurAssurance_data_wrapper__73MUI",candle__wrapper:"calculateurAssurance_candle__wrapper__kIDC7",candle:"calculateurAssurance_candle__jOYcN",candle__bar:"calculateurAssurance_candle__bar__symvt",candle__caisse:"calculateurAssurance_candle__caisse__R6zh0",container:"calculateurAssurance_container__2D_Ao",baseCard:"calculateurAssurance_baseCard__zPXIY",flyingCard:"calculateurAssurance_flyingCard__XgwNa"}}},function(e){e.O(0,[6375,7962,7398,1587,2661,3261,9774,2888,179],function(){return e(e.s=26418)}),_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.