import{d as y,C as $,r as b,c as l,o as i,b as s,a as m,j as p,t as r,u as o,P as c,e as k,h as u,g as f,v as V,F as C,k as _,n as M,f as w}from"./app-DJb_CRLj.js";import{_ as N}from"./AuthLayout.vue_vue_type_script_setup_true_lang-ogRL1Wue.js";import"./useToastify-DqLaHt3f.js";import"./useHexToRgb-Crf73LpK.js";/* empty css            */const B={class:"auth-container"},F={class:"logo-container"},L=["src","alt"],T={key:1},D={class:"card shadow-1"},I={class:"card-body"},P={class:"auth-title lts-05"},U={class:"form-element-row mb-3"},H=["placeholder"],S={key:0,class:"form-error-msg d-flex lts-05 mt-2"},j={class:"form-element-row mb-3"},q={class:"form-password"},z=["type","placeholder"],A={class:"form-element-row mb-4"},E={class:"form-password"},G=["type","placeholder"],J={key:0,class:"form-error-msg d-flex lts-05 mt-2"},K={class:"form-control-description lts-05"},O={class:"form-element-row mb-3"},Q=["disabled"],R={class:"form-element-row"},W=["innerHTML"],X={class:"auth-footer"},os=y({layout:N,__name:"AccountInformation",props:{name:{},with_password:{type:Boolean},prev:{}},setup(g){const h=g,t=$({name:h.name,password:null,password_confirmation:null,prev:h.prev}),v=()=>{t.post(route("login.account.information.update"),{replace:!0})},d=b(!1);return(e,a)=>(i(),l("div",B,[s("div",F,[m(o(c),{class:"logo",href:e.route("index")},{default:p(()=>[e.$page.props.appLogo!=null?(i(),l("img",{key:0,src:e.$page.props.appLogo,alt:e.$page.props.appFullName},null,8,L)):(i(),l("span",T,r(e.$t("messages.word.logo")),1))]),_:1},8,["href"])]),s("div",D,[s("div",I,[s("div",P,r(e.$t("messages.sentence.complete_account_infromation")),1),s("form",{onSubmit:k(v,["prevent"]),class:"auth-form"},[s("div",U,[f(s("input",{"onUpdate:modelValue":a[0]||(a[0]=n=>o(t).name=n),type:"text",required:"",autocomplete:"name",name:"name",autofocus:"",class:"form-control",placeholder:e.$t("messages.word.full_name")},null,8,H),[[V,o(t).name]]),"name"in o(t).errors?(i(),l("span",S,r(o(t).errors.name),1)):u("",!0)]),e.with_password?u("",!0):(i(),l(C,{key:0},[s("div",j,[s("div",q,[f(s("input",{"onUpdate:modelValue":a[1]||(a[1]=n=>o(t).password=n),type:d.value?"text":"password",class:"form-control",placeholder:e.$t("messages.word.password")+" ("+e.$t("messages.word.optional")+")",style:{direction:"ltr","text-align":"right"}},null,8,z),[[_,o(t).password]]),s("i",{onClick:a[2]||(a[2]=n=>d.value=!d.value),class:M(d.value?"ri-eye-off-line":"ri-eye-line")},null,2)])]),s("div",A,[s("div",E,[f(s("input",{"onUpdate:modelValue":a[3]||(a[3]=n=>o(t).password_confirmation=n),type:d.value?"text":"password",class:"form-control",placeholder:e.$t("messages.sentence.repeat_password"),style:{direction:"ltr","text-align":"right"}},null,8,G),[[_,o(t).password_confirmation]])]),o(t).errors.password?(i(),l("span",J,r(o(t).errors.password),1)):u("",!0),s("span",K,r(e.$t("messages.sentence.password_hint")),1)])],64)),s("div",O,[s("button",{class:"btn btn-primary",type:"submit",disabled:o(t).processing},r(e.$t("messages.word.finish")),9,Q)]),s("div",R,[s("div",{class:"privacy-notice lts-05",innerHTML:e.$t("messages.sentence.login_mean_is_accept_terms",{terms:`<a href='${e.route("main.pages.show","terms")}' target='_blank' class='link'> ${e.$t("messages.word.terms")} </a>`})},null,8,W)])],32)])]),s("div",X,[m(o(c),{href:e.route("index"),class:"lts-05"},{default:p(()=>[w(r(e.$t("messages.sentence.home_page")),1)]),_:1},8,["href"]),a[4]||(a[4]=s("span",null,null,-1)),m(o(c),{href:e.route("main.products.index"),class:"lts-05"},{default:p(()=>[w(r(e.$t("messages.sentence.product_archive")),1)]),_:1},8,["href"])])]))}});export{os as default};
