import{d as $,C as w,c as n,o as l,b as s,a as d,j as c,t as a,u as o,P as p,e as b,g as u,h as f,v as h,f as _}from"./app-BidmlC59.js";import{_ as y}from"./AuthLayout.vue_vue_type_script_setup_true_lang-CPjzewGg.js";import"./useToastify-Bhe2cyz3.js";import"./useHexToRgb-Crf73LpK.js";/* empty css            */const k={class:"auth-container"},V={class:"logo-container"},N=["src","alt"],C={key:1},L={class:"card shadow-1"},M={class:"card-body"},T={class:"auth-title lts-05"},B={class:"form-element-row mb-3"},I=["placeholder"],U={key:0,class:"form-error-msg d-flex lts-05 mt-2"},D={class:"form-element-row mb-3"},F=["placeholder"],H={key:0,class:"form-error-msg d-flex lts-05 mt-2"},P={class:"form-element-row mb-4"},S=["placeholder"],j={key:0,class:"form-error-msg d-flex lts-05 mt-2"},q={class:"form-control-description"},A={class:"form-element-row mb-3"},E=["disabled"],z={class:"form-element-row"},G=["innerHTML"],J={class:"auth-footer"},X=$({layout:y,__name:"AccountInformation",props:{name:{},email:{},username:{},prev:{}},setup(g){const i=g,t=w({name:i.name,email:i.email,username:null,prev:i.prev}),v=()=>{t.post(route("login.account.information.update"),{replace:!0})};return(e,r)=>(l(),n("div",k,[s("div",V,[d(o(p),{class:"logo",href:e.route("index")},{default:c(()=>[e.$page.props.appLogo!=null?(l(),n("img",{key:0,src:e.$page.props.appLogo,alt:e.$page.props.appFullName},null,8,N)):(l(),n("span",C,a(e.$t("messages.word.logo")),1))]),_:1},8,["href"])]),s("div",L,[s("div",M,[s("div",T,a(e.$t("messages.sentence.complete_account_infromation")),1),s("form",{onSubmit:b(v,["prevent"]),class:"auth-form"},[s("div",B,[u(s("input",{"onUpdate:modelValue":r[0]||(r[0]=m=>o(t).name=m),type:"text",required:"",autocomplete:"name",name:"name",autofocus:"",class:"form-control",placeholder:e.$t("messages.word.full_name")},null,8,I),[[h,o(t).name]]),"name"in o(t).errors?(l(),n("span",U,a(o(t).errors.name),1)):f("",!0)]),s("div",D,[u(s("input",{"onUpdate:modelValue":r[1]||(r[1]=m=>o(t).email=m),type:"text",autocomplete:"email",name:"email",class:"form-control",placeholder:e.$t("messages.word.email")+" ("+e.$t("messages.word.optional")+")",dir:"auto"},null,8,F),[[h,o(t).email]]),"email"in o(t).errors?(l(),n("span",H,a(o(t).errors.email),1)):f("",!0)]),s("div",P,[u(s("input",{"onUpdate:modelValue":r[2]||(r[2]=m=>o(t).username=m),type:"text",minlength:"4",maxlength:"20",class:"form-control",placeholder:e.$t("messages.word.username")+" ("+e.$t("messages.word.optional")+")",dir:"auto"},null,8,S),[[h,o(t).username]]),"username"in o(t).errors?(l(),n("span",j,a(o(t).errors.username),1)):f("",!0),s("span",q,a(e.$t("messages.sentence.username_hint")),1)]),s("div",A,[s("button",{class:"btn btn-primary",type:"submit",disabled:o(t).processing},a(e.$t("messages.word.finish")),9,E)]),s("div",z,[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,G)])],32)])]),s("div",J,[d(o(p),{href:e.route("index"),class:"lts-05"},{default:c(()=>[_(a(e.$t("messages.sentence.home_page")),1)]),_:1},8,["href"]),r[3]||(r[3]=s("span",null,null,-1)),d(o(p),{href:e.route("main.products.index"),class:"lts-05"},{default:c(()=>[_(a(e.$t("messages.sentence.product_archive")),1)]),_:1},8,["href"])])]))}});export{X as default};
