1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4422],{36702:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/assurance-maladie/lamal/lamal-ou-cmu",function(){return s(23385)}])},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,m]=t.useState(30),[p,x]=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:m,conjointAge:p,setConjointAge:x},children:a})},useAssuranceCalculateur=()=>t.useContext(c);var u=s(68839),i=s(5549),d=s(85648),o=s(44248),m=s(64901),calculateurAssuranceData=()=>{let{conjointSalaires:e,status:a,votreSalaires:s,age:r,conjointAge:c}=useAssuranceCalculateur(),p=r>26?162:146,x="couple"===a?p+(c>26?162:146):p,_=(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]),h=x>_?x:_,{t:f}=(0,m.$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:f("assurance.right.title")}),(0,l.jsxs)("div",{className:n().candle__wrapper,style:{"--max":h},children:[(0,l.jsxs)("div",{className:n().candle,children:[(0,l.jsx)("div",{className:n().candle__bar+" "+(h!==_?"bg-primary":"bg-grey/30"),style:{"--value":_}}),(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)(_,"de-CH","CHF",0,0).replace("CHF","")," "]}),(0,l.jsxs)("span",{className:"text-base font-medium",children:["CHF/",f("assurance.right.mois")]})]})]}),(0,l.jsxs)("div",{className:n().candle,children:[(0,l.jsx)("div",{className:n().candle__bar+" "+(h!==x?"bg-primary":"bg-grey/30"),style:{"--value":x}}),(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)(x,"de-CH","CHF",0,0).replace("CHF","")," "]}),(0,l.jsxs)("span",{className:"text-base font-medium",children:["CHF/",f("assurance.right.mois")]})]})]})]}),(0,l.jsx)("h3",{className:"mb-4 mt-4 block text-[18px] font-bold",children:f("assurance.right.cta.title")}),(0,l.jsx)(i.z,{asChild:!0,variant:"thirdy",children:(0,l.jsx)(d.x,{href:o.KY,children:f("assurance.right.cta.button")})})]})},p=s(33001),x=s(30853),_=(0,x.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"}]]),h=(0,x.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"}]]),f=s(17010),g=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:x}=(0,m.$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:x("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,g.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)(_,{size:20,className:(0,g.m6)("seul"!==s&&"text-secondary")}),x("assurance.left.inputs.statut.seul")]}),(0,l.jsxs)("button",{className:(0,g.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)(h,{size:20,className:(0,g.m6)("couple"!==s&&"text-secondary")}),x("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)(p.ZP,{value:(0,u.d)(parseInt(r)||0,"de-CH","CHF",0,0).replace("CHF",""),"aria-label":x("assurance.left.inputs.montant.aria_label"),name:"prixdachat",id:"prixdachat",autoComplete:"prixdachat",placeholder:x("assurance.left.inputs.montant.placeholder"),label:
1x("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)(p.ZP,{value:(0,u.d)(parseInt(e)||0,"de-CH","CHF",0,0).replace("CHF",""),"aria-label":x("assurance.left.inputs.montant_couple.aria_label"),name:"fondspropres",id:"fondspropres",autoComplete:"fondspropres",placeholder:x("assurance.left.inputs.montant_couple.placeholder"),label:x("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)(p.ZP,{value:c,"aria-label":x("assurance.left.inputs.age.aria_label"),name:"age",id:"age",autoComplete:"age",placeholder:x("assurance.left.inputs.age.placeholder"),label:x("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)(p.ZP,{value:d,"aria-label":x("assurance.left.inputs.age_couple.aria_label"),name:"age",id:"age",autoComplete:"age",placeholder:x("assurance.left.inputs.age.placeholder"),label:x("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)(f.Z,{size:20}),(0,l.jsx)("span",{className:"text-[12px] font-light",children:x("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 gap-2 md:flex-row md:gap-0",children:[(0,l.jsx)(calculateurAssuranceSettings,{}),(0,l.jsx)(calculateurAssuranceData,{})]})})})})}},23385:function(e,a,s){"use strict";s.r(a),s.d(a,{__N_SSG:function(){return o}});var l=s(85893),t=s(64901),r=s(43818),n=s(26410),c=s(5321),u=s(25675),i=s.n(u),d=s(29965),o=!0;a.default=()=>{let{t:e}=(0,t.$G)("pages/assurance-maladie/lamal/lamal-ou-cmu");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/lamal-ou-cmu"}],title:e("heroTitle"),t:e,agentKey:"alexis_milon",articleDate:"01.02.2024",components:{linkAmeli:(0,l.jsx)(c.z7,{href:"https://www.ameli.fr/sites/default/files/formulaires/formulaire_choix_du_systeme_d_assurance_maladie_2019.pdf",rel:"nofollow"}),imgLamalOuCmu:(0,l.jsx)(i(),{src:"/blog/assurance-maladie/lamal/lamal-ou-cmu.png",alt:"Choix LAMal ou CMU",width:700,height:393,className:"w-full rounded-xl"}),imgCmuOuLamal:(0,l.jsx)(i(),{src:"/blog/assurance-maladie/lamal/cmu-ou-lamal.png",alt:"Choix CMU ou LAMal",width:700,height:393,className:"w-full rounded-xl"})},children:(0,l.jsx)(d.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=36702)}),_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.