PageSourceSearch

https://easystart.centrepatronal.ch/_nuxt/DZTIrS6U.js

js centrepatronal.ch collected 2026-10-02 07:38:15 UTC 3,504 bytes, 1 lines download raw bytes

1import{_ as N}from"./B2fzEHtX.js";import{d as S,a as j,S as I,I as M,u as O,U as R,r as w,j as k,o as T,h as e,s as y,B as a,i as o,t as p,v as n,_ as z,O as A,D}from"./V9JhC5tk.js";import{_ as L}from"./4ovtrH2e.js";import{t as U}from"./DjnRXh5Q.js";import{_ as d}from"./CVteoRWC.js";import{_ as q}from"./CM56a0vk.js";import{u as E}from"./DNRyQvb_.js";import{u as V}from"./BfOdG81u.js";import{u as J}from"./d7YuZSUK.js";import{o as F,s as u}from"./BDUQ16kr.js";import"./BZc5dB8v.js";import"./DVgYcg13.js";import"./DskmWXYQ.js";import"./Ba2Li6JO.js";import"./DDc803Gm.js";import"./_voegVoc.js";import"./C1KCzu0q.js";import"./x_rD_Ya3.js";const G={class:"flex flex-col gap-6 lg:grid lg:grid-cols-4 lg:grid-rows-3 lg:gap-x-4 lg:gap-y-6"},H={class:"col-span-2 row-span-1"},K={class:"col-span-2 row-span-1"},Q={class:"col-span-4 row-span-1"},W={class:"col-span-4 row-span-1"},X={class:"flex items-top gap-x-2 mt-8 mb-6"},Y={for:"terms",class:"text-base font-medium leading-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-70"},Z={href:"/legal/terms",target:"_blank",class:"underline underline-offset-2"},ee={href:"/legal/privacy",target:"_blank",class:"underline underline-offset-2"},te=S({__name:"Singup",setup($){const{t}=j(),{toast:g}=I(),{login:h}=E(),{markRegistrationPending:_}=V(),b=M(),v=O(),x=R({title:t("Créer un compte"),description:t("S’enregistrer gratuitement.")}),f=w(!1),i=w(!1),C=U(F({first_name:u().max(30),last_name:u().max(30),email:u().email().max(180),password:u().min(6).max(50)}));async function P(l){var r,c,m;i.value=!0;const{data:s}=await J("/webservice/register",{method:"POST",body:l});((r=s.value)==null?void 0:r.success)===!1&&(i.value=!1,g({description:(c=s.value)==null?void 0:c.message,variant:"destructive"}),await b.push(v("/login"))),((m=s.value)==null?void 0:m.success)===!0&&(_("email"),await h({username:l.email,password:l.password})),i.value=!1}return(l,s)=>{const r=N,c=z,m=L;
1return T(),k(m,{title:e(x).title,description:e(x).description,"validation-schema":e(C),onOnSubmit:P},{default:y(()=>[a("div",G,[a("div",H,[o(d,{name:"first_name",label:e(t)("Prénom"),placeholder:e(t)("Votre prénom"),type:"text"},null,8,["label","placeholder"])]),a("div",K,[o(d,{name:"last_name",label:e(t)("Nom"),placeholder:e(t)("Votre nom"),type:"text"},null,8,["label","placeholder"])]),a("div",Q,[o(d,{name:"email",label:e(t)("Email"),placeholder:e(t)("Votre email"),type:"email"},null,8,["label","placeholder"])]),a("div",W,[o(d,{name:"password",label:e(t)("Mot de passe"),placeholder:e(t)("Votre mot de passe"),type:"password"},null,8,["label","placeholder"])])]),a("div",X,[o(r,{id:"terms",class:"size-5",name:"terms","onUpdate:checked":s[0]||(s[0]=B=>f.value=!e(f))}),a("label",Y,[p(n(e(t)("J’accepte les"))+" ",1),a("a",Z,n(e(t)("Conditions d’utilisation")),1),p(" "+n(e(t)("et la"))+" ",1),a("a",ee,n(e(t)("Politique de confidentialité")),1)])]),o(q,{label:e(t)("Créer mon compte"),loading:e(i),disabled:!e(f)},null,8,["label","loading","disabled"]),a("div",null,[p(n(e(t)("Vous avez déjà un compte ?"))+" ",1),o(c,{variant:"link",class:"text-base p-0 underline underline-offset-2",onClick:s[1]||(s[1]=A(B=>e(b).push(e(v)("/login")),["prevent","stop"]))},{default:y(()=>[p(n(e(t)("Se connecter")),1)]),_:1})])]),_:1},8,["title","description","validation-schema"])}}}),xe=S({__name:"index",setup($){const{trackRegistrationStart:t}=V();return D(()=>{t("email")}),(g,h)=>{const _=te;return T(),k(_,{id:"register-form-container"})}}});export{xe 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.