1import{aA as c,aB as b,aN as t,aU as z,bh as F,ay as R,az as j,aZ as O,a$ as B,bl as H,bm as L,ba as q,bn as G,bo as J,aL as m,aK as K,aG as f,aE as A,b9 as Q,aO as P,b7 as T,aT as x,bj as X,bp as Z,aQ as W,aP as Y,a_ as e1,aF as y,aS as t1,b8 as s1,bd as o1,bq as n1,br as a1,aI as r1,bb as l1}from"./DzWOW6Si.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="2c1e8825-29df-4f4a-98e9-fff32433309e",o._sentryDebugIdIdentifier="sentry-dbid-2c1e8825-29df-4f4a-98e9-fff32433309e")}catch{}})();const i1={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewbox:"0 0 24 24"},c1={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewbox:"0 0 24 24"},d1={__name:"IconEye",props:{isPasswordVisible:{type:Boolean,default:!1,required:!0}},setup(o){return(n,r)=>o.isPasswordVisible?(c(),b("svg",c1,r[1]||(r[1]=[t("path",{fill:"#2D2D3A","fill-rule":"nonzero",d:"M20.4852814 2.10050506l1.4142135 1.41421357-3.5956737 3.59584706c1.5618952 1.0694915 3.0868713 2.54612019 4.5465124 4.43143121.1995552.2723409.1995552.6436653 0 .9160062-4.7427955 6.1129706-10.1932676 7.9546217-15.36546153 5.4713412l-3.97015344 3.9701506-1.41421357-1.4142135 3.59567377-3.5958471c-1.56189524-1.0694915-3.08687137-2.5461202-4.54651242-4.4314312-.19955521-.2723409-.19955521-.6436653 0-.9160062C5.89246191 5.42902627 11.342934 3.58737523 16.5151279 6.07065568l3.9701535-3.97015062zM15.7388 9.67528132l-1.018816 1.01841648C15.5176889 12.4400763 14.6110276 14.9191378 12 15c-.4957555-.0153533-.9300677-.117163-1.3029364-.2839986l-1.02233048 1.0234821c.67400778.4250052 1.47111138.6707262 2.32526688.6707262 2.4212871 0 4.3841282-1.9745181 4.3841282-4.4102097-.0362103-.9195472-.2722775-1.6944534-.6453282-2.32471868zm-1.4070165-1.42105175C11.7890403 6.71279623 7.774906 7.96138637 7.61587181 12c0 .8496599.23885302 1.6432007.65269887 2.3163825l1.01144534-1.0100803C8.4823111 11.5599237 9.38897243 9.08086216 12 9c.4957555.01535329.9300677.11716305 1.3029364.28399863z"},null,-1)]))):(c(),b("svg",i1,r[0]||(r[0]=[t("path",{fill:"#2D2D3A","fill-rule":"nonzero",d:"M1.14966641 11.5419969c6.74756719-8.69691304 14.92752169-8.74837407 21.70066719 0 .1995552.2723409.1995552.6436653 0 .9160062-6.7475672 8.696913-14.92752166 8.7483741-21.70066719 0-.19955521-.2723409-.19955521-.6436653 0-.9160062zM16.3841282 12c-.2302051-5.84597231-8.53805129-5.84597231-8.76825639 0 0 2.4356916 1.96284105 4.4102097 4.38412819 4.4102097 2.4212871 0 4.3841282-1.9745181 4.3841282-4.4102097zM12 9c4 .12387792 4 5.8761221 0 6-4-.1238779-4-5.87612208 0-6z"},null,-1)])))}},p1=["innerHTML"],u1={__name:"vHtmlParser",props:{content:{type:String,required:!0,default:""}},setup(o){return(n,r)=>(c(),b("div",{innerHTML:o.content},null,8,p1))}},m1={},f1={class:"IconCFDT",xmlns:"http://www.w3.org/2000/svg",viewbox:"0 0 39 39"};function x1(o,n){return c(),b("svg",f1,n[0]||(n[0]=[t("g",{fill:"none","fill-rule":"evenodd"},[t("path",{fill:"#FFFFFE",d:"M38.8357165 19.490432c0 10.7217721-8.6942464 19.4156341-19.4172417 19.4156341C8.69424645 38.9060661 0 30.2122041 0 19.490432 0 8.7674269 8.69424645.073017 19.4184748.073017c10.7229953 0 19.4172417 8.6944099 19.4172417 19.417415"}),t("path",{fill:"#E7591C",d:"M14.560726 16.7694615v.4314394h-.7316188v1.809595h.7316188v5.1318434h2.1907976v-5.1318434h.8278499v-1.809595h-.8278499v-.344711c0-.4551176.3054521-.5239497.4874403-.5239497h.3404096v-1.7999584h-.398672c-.6484803 0-2.6199755 0-2.6199755 2.2371797M30.3945511 14.7666734H28.156358v2.6465168h-.7325353v1.7946074h.7325353v2.699215c0 1.6392431.8800897 2.4697183 2.6190591 2.4697183h.398672v-1.7801358h-.3406715c-.1997942 0-.4388665-.0909249-.4388665-.5198832v-2.8689143h.779538v-1.7946074h-.779538v-2.6465168M23.686055 14.7666734v3.0547275l-.0541554-.0734735c-.264076-.3566184-.8923334-.7362314-1.8665838-.7362314-1.7313321 0-3.4827673 1.2735402-3.4827673 3.7090496 0 2.1526365 1.4479734 3.6559853 3.5198282 3.6559853 1.0331922 0 1.6717064-.3917224 1.9271668-.7567767l.0547024-.0793241v.7242579h2.2332269v-9.4982146H23.686055zm-1.5493097 7.606817c-.9418392 0-1.624252-.7001749-1.624252-1.6666231 0-.6488796.4393973-1.6143754 1.6473638-1.6143754 1.0627316 0 1.6373806.8326993 1.6373806 1.6143754 0 .6716019-.4436367 1.6666231-1.6604924 1.6666231zM33.5180055 17.3449815v2.1082527l2.3439165.0012721v-2.1095248h-2.3439
1165M33.5180055 24.1423393h2.3439165v-2.1095248h-2.3439165zM10.31158 20.6879491c-.2890294.8164887-.879961 1.423124-1.62225024 1.6668904-.02371315.0080035-.04620676.0146504-.0695134.0208904l-.07818563.0229252c-.02737175.0078678-.054879.0170921-.08184423.0229252-.18767262.042459-.37263516.0623998-.55448112.0640277l-.02398415-.0024418c-.09566561 0-.18929867-.0050191-.30122472-.0191269-.08767089-.0100382-.17208969-.0233321-.25366291-.042459l-.02574571-.0058331c-.08225074-.0192625-.1613849-.0425947-.23198232-.0663337l-.02669423-.0082748c-.08238625-.0311999-.16057188-.0632138-.23618294-.1002468l-.02371315-.0124799c-.0552855-.0283513-.11097752-.0591443-.1650435-.0921077-.83510927-.5020476-1.35422392-1.4875586-1.35422392-2.5773858 0-1.0320396.56654095-2.3306351 1.80789029-2.739083.02533919-.0092243.05162691-.0145147.0769661-.0237391l.06856487-.0191269c.02832027-.0078678.05623403-.0166852.08604485-.0233321.18211696-.0416451.38266243-.0690468.57805876-.0636207.09566561 0 .18807913.0062399.27791808.0170921l.02493268.0040696c.08645135.0086817.17127667.0225182.25203687.0408312l.0257457.0082747c.08319927.0195339.1613849.0412382.25786353.0746086.08143772.0290295.1612494.061179.23658945.097805l.02710074.0157356c.05650504.0275373.10894497.0575164.16179141.0907511.53510409.3197315.94689984.8543356 1.16899034 1.4954264h2.327547c-.018564-.079492-.036044-.158577-.0589441-.2364412-.0254747-.085325-.0528464-.1672588-.0803537-.250549-.6116637-1.772292-2.2078972-3.0495902-4.06633037-3.2502193-.37683578-.0412382-.69133985-.0412382-1.06058742.0016278-2.81170166.2776794-4.3275815 2.6694935-4.3275815 4.7777952l.00176155.0287582c.01490541 2.3447429 1.84596683 4.7711482 4.88477269 4.7711482 2.27239695 0 4.15549185-1.4556804 4.68612425-3.6205489l.037399-.1473179h-2.3154871l-.0300818.079085"})],-1)]))}const b1=z(m1,[["render",x1]]),g1=async o=>{var h,_;const n=R(),{API_URL:r,API_VERSION:g}=n.public,d=`${r}${g}`,l=new FormData;for(const[s,a]of o.entries())s==="ssm_cert"||s==="ic_img"?a instanceof Blob?l.append(s,a):l.append(s,new Blob([a.toString()],{type:"application/octet-stream"})):l.append(s,a);try{const s=await fetch(`${d}auth/login`,{method:"POST",credentials:"include",body:l}),a=await s.json(),p=s.headers.get("X-Set-PHPSESSID");return p&&(document.cookie=`PHPSESSID=${p}; path=/; domain=.syndicalismehebdo.fr; secure; samesite=strict`),a}catch(s){const a=((_=(h=s==null?void 0:s.response)==null?void 0:h._data)==null?void 0:_.message)||s.message||"An unknown error occurred";throw F({statusCode:s.statusCode||500,statusMessage:a||"Failed to login"})}},v1=async()=>{const o=R(),{API_URL:n,API_VERSION:r}=o.public,g=`${n}${r}`;try{return(await(await fetch(`${g}user`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"getUser"})})).json()).user}catch(d){throw F({statusCode:d.statusCode||500,statusMessage:d.statusMessage||"Failed to fetch user"})}},h1={class:"c-container !pt-32px !pb-48px md:pt-40px md:pb-64px"},_1={class:"c-grid c-grid-mobile lg:grid-cols-8 mt-16px md:mt-32px"},w1={class:"col-span-4 md:col-start-3"},y1={key:1},k1={class:"input"},S1={class:"input mt-16px"},C1={class:"-mx-24px md:mx-0 mt-40px md:mt-56px bg-orange px-24px pt-24px pb-32px"},M1={class:"flex items-center"},I1={class:"-mx-24px md:mx-0 bg-grey-100 px-24px pb-32px pt-32px md:pb-24px md:pt-16px"},P1={class:"text-black-light text-18 md:text-16 gotham-narrow-book"},F1=j({__name:"connexion",setup(o){const{$OneSignalFactory:n}=O(),{isApp:r,isIOSApp:g}=B(),d=H(),l=L(),h=q(),_=G(),s=J({username:"",password:""}),a=m(),p=m(!0),k=m(""),S=m(!1),w=m(!1),C=m(!1),E=()=>{console.log("passing ?"),C.value=!C.value,a.value.type==="password"?a.value.type="text":a.value.type="password"},U=async()=>{var e;k.value="",S.value=!1,w.value=!0;const v=new FormData;v.append("username",s.username),v.append("password",s.password),(p.value||l.appInfos)&&v.append("_remember_me","true");try{const i=await g1(v);if(!i.user)throw F({statusMessage:i.message});const u=await v1();d.setUser(u),w.value=!1,!u.is_subscribed&&u.through_cas&&setTimeout(()=>h.openModal(o1(n1))),r&&n&&(console.log("DEBUG USER : ð§",u),n.init());const M=l.currRoutePath?l.currRoutePath:"/";_.push({path:M})}catch(i){k.value=((e=i==null?void 0:i.data)==null?void 0:e.message)||i.message||"An unknown error occurred",S.value=!0,w.value=!1}},V=K(()=>s.username.length>0&&s.password.length>0||g);return(v,e)=>{const i=l1,u=d1,M=a1,D=r1,$=u1,N=b1;return c(),b("div",h1,[e[13]||(e[13]=t("h1",{class:"text-center gotham-narrow-bold text-orange text-28 md:text-32"}," Connexion ",-1)),e[14]||(e[14]=t("p",{class:"text-center gotham-narrow-book text-black-light text-20 md:text-18 mt-16px"},[f(" Connectez-vous avec les identifiants "),t("br"),f(" de votre compte CFDT ")],-1)),t("div",_1,[t("div",w1,[w.value?(c(),A(i,{key:0})):(c(),b("div",y1,[t("form",{class:"mb-2",onSubmit:Q(U,["prevent"])},[t("div",k1,[e[3]||(e[3]=t("label",{for:"username",class:"sr-only"},"Identifiant",-1)),P(t("input",{id:"username",ref:"username","onUpdate:modelValue":e[0]||(e[0]=I=>s.username=I),type:"text",name:"username",placeholder:"Identifiant (NPA ou adresse e-mail)",autocomplete:"on",autocorrect:"off",autocapitalize:"none",required:""},null,512),[[T,s.username]])]),t("div",S1,[e[4]||(e[4]=t("label",{for:"password",class:"sr-only"},"Mot de passe",-1)),P(t("input",{id:"password",ref_key:"passwordRef",ref:
1a,"onUpdate:modelValue":e[1]||(e[1]=I=>s.password=I),type:"password",name:"password",placeholder:"Mot de passe",autocomplete:"on",required:""},null,512),[[T,s.password]]),t("button",{type:"button",onClick:E},[x(u,X(Z({isPasswordVisible:C.value})),null,16)])]),t("button",{type:"submit","aria-label":"se connecter",value:"submit",class:W(["link link-rounded-orange w-full mt-24px md:text-16",{"opacity-60 pointer-events-none":!V.value}])}," se connecter ",2),P(x(M,{class:"mt-5",enable:p.value,onChange:e[2]||(e[2]=()=>p.value=!p.value)},{default:y(()=>e[5]||(e[5]=[t("span",{class:"gotham-narrow-book text-16px text-black-light ml-8px"},"Rester connecté·e",-1)])),_:1},8,["enable"]),[[Y,!e1(l).appInfos]])],32),x(D,{to:{name:"mot-de-passe-oublie"},class:"inline-block text-center gotham-narrow-medium md:text-14 link-underline-black mt-16px md:mt-8px md:text-left"},{default:y(()=>e[6]||(e[6]=[f(" Mot de passe oublié ? ")])),_:1}),e[7]||(e[7]=t("p",{class:"gotham-narrow-medium md:text-14 mt-8px md:text-left text-black-light"},[f(" Première connexion ?  "),t("a",{href:"https://portail.cfdt.fr/portail/jportal-conf-gabarit-accueil-bcv_1228894?redirect=portail%2Fespace-adherent-jca_395867&jsp=plugins%2FMemberShipSpacePlugin%2Fjsp%2Fportlets%2Faccount%2FdoLoginOrActivateAccount.jsp",rel:"noopener",target:"_blank",class:"link-underline-black"},"activer mon compte CFDT")],-1)),x(s1,{name:"fade",mode:"out-in"},{default:y(()=>[S.value?(c(),A($,{key:0,class:"text-center text-red gotham-narrow-medium text-18 md:text-16 mt-24px",content:k.value},null,8,["content"])):t1("",!0)]),_:1})])),t("div",C1,[t("div",M1,[x(N),e[8]||(e[8]=t("p",{class:"leading-none text-white gotham-condensed-bold text-28 ml-8px"}," S'ENGAGER POUR CHACUN AGIR POUR TOUS ",-1))]),e[9]||(e[9]=t("p",{class:"text-white mt-18px md:mt-8px text-20 md:text-16 gotham-narrow-bold"}," Lâadhésion est ouverte à toutes celles et à tous ceux qui veulent rejoindre la CFDT. ",-1)),e[10]||(e[10]=t("a",{href:"https://cfdt.fr/portail/adhesion/adherez-en-ligne-jca_221287",rel:"noopener",target:"_blank",class:"w-full link link-rounded-white mt-16px"},"adhérer à la CFDT",-1))]),t("div",I1,[t("p",P1,[e[12]||(e[12]=f(" Vous n'êtes pas adhérent à la CFDT et vous avez une question sur l'abonnement à Syndicalisme Hebdo ? ")),x(D,{class:"gotham-narrow-bold link-underline-orange",to:{name:"contact"}},{default:y(()=>e[11]||(e[11]=[f(" Contactez nous ")])),_:1})])])])])])}}}),A1=z(F1,[["__scopeId","data-v-98b52aad"]]);export{A1 as default};
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.