1import{_ as n}from"./DbI-w4KA.js";import{q as a,n as t,p as m,x as d,bc as h,bf as c,bd as p,b5 as u,a_ as g,aA as i,v as f}from"./DY9uiTjd.js";import{_ as w}from"./DrWjteN3.js";import{_ as x}from"./DZ0au2o8.js";import{d as y}from"./zlMw6e1O.js";import"./CO3jJX8u.js";import"./wzCOPK40.js";const k={class:"relative min-h-screen"},b={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-99"},v={class:"absolute top-4 right-4"},_={key:0,class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},z={key:1,class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},C={class:"flex min-h-screen flex-col justify-center px-4 py-12 sm:px-6 lg:px-8"},M={class:"mt-10 sm:mx-auto sm:w-full sm:max-w-lg"},T={class:"rounded-2xl bg-white dark:bg-primary-900 p-6 shadow-custom"},E={class:"flex flex-col gap-2"},L={key:1,class:"mt-8 space-y-6"},S=y({setup(){g({title:"Wiapy - Recuperar senha",htmlAttrs:{lang:"pt-BR"},meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Um ecossistema completo para vender seu infoproduto com a menor taxa do mercado."}],link:[{rel:"icon",type:"image/x-icon",href:"/img/favicon.ico"}]})},data(){return{load:!1,email:"",type:"remember",theme:"light"}},mounted(){let r=null;if(window.localStorage){const e=window.localStorage.getItem("site-theme");if(typeof e=="string"){const s=e.trim().toLowerCase();r=s==="dark"||s==="light"?s:null}}if(!r){const e=this.cookieGet("site-theme");if(typeof e=="string"){const s=e.trim().toLowerCase();r=s==="dark"||s==="light"?s:null}}const o=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;this.theme=r||(o?"dark":"light"),document.documentElement.classList.toggle("dark",this.theme==="dark"),document.documentElement.setAttribute("data-theme",this.theme),window.localStorage&&window.localStorage.setItem("site-theme",this.theme)},methods:{toggleTheme(){this.theme=this.theme==="light"?"dark":"light",this.cookieSet("site-theme",this.theme,{expires:"365d"}),document.documentElement.classList.toggle("dark",this.theme==="dark"),document.documentElement.setAttribute("data-theme",this.theme),window.localStorage&&window.localStorage.setItem("site-theme",this.theme)},sendRegister(){if(this.email==="")return notification("Preencha o campo e-mail","danger",null);this.load=!0,this.httpPost(this.$config.public.baseURL+"/host/remember",{email:this.email.toLocaleLowerCase()}).then(r=>{this.load=!1,this.cookieDelete("auth-token"),this.cookieDelete("auth-access"),this.type="success"}).catch(r=>(console.log(r),this.load=!1,notification(r.body.msg,"danger",null)))}}},"$n3ZqFxAEPX"),D=Object.assign(S,{__name:"remember",setup(r){return(o,e)=>{const s=n;return i(),a("div",k,[o.load?(i(),a("div",b,[...e[3]||(e[3]=[t("div",{class:"p-8 flex flex-col items-center gap-4"},[t("div",{class:"custom-loader"}),t("div",{class:"text-white"},"Processando informações, aguarde....")],-1)])])):m("",!0),t("div",v,[t("button",{type:"button",onClick:e[0]||(e[0]=(...l)=>o.toggleTheme&&o.toggleTheme(...l)),class:"inline-flex items-center justify-center rounded-lg border border-gray-300 dark:border-primary-600 p-2 text-gray-500 dark:text-gray-300 transition-colors hover:text-primary hover:bg-gray-50 dark:hover:bg-primary-800 dark:hover:text-secondary focus:outline-none focus:ring-0"},[o.theme==="dark"?(i(),a("svg",_,[...e[4]||(e[4]=[t("path",{d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 7h1a1 1 0 110 2h-1a1 1 0 110-2zm-8 0a1 1 0 110 2H5a1 1 0 110-2h1zm9.071-4.071a1 1 0 010 1.414l-.707.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM6.05 6.464a1 1 0 01-1.414 0l-.707-.707A1 1 0 115.343 4.343l.707.707a1 1 0 010 1.414zM11 16a1 1 0 10-2 0v1a1 1 0 102 0v-1zm4.657-1.657a1 1 0 10-1.414 1.414l.707.707a1 1 0 001.414-1.414l-.707-.707zM6.757 14.243a1 1 0 00-1.414 0l-.707.707a1 1 0 001.414 1.414l.707-.707a1 1 0 000-1.414zM13 10a3 3 0 11-6 0 3 3 0 016 0z"},null,-1)])])):(i(),a("svg",z,[...e[5]||(e[5]=[t("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"},null,-1)])]))])]),t("div",C,[e[11]||(e[11]=t("div",{class:"sm:mx-auto sm:w-full sm:max-w-md"},[t("a",{href:"/",class:"flex justify-center"},[t("img",{src:w,class:"dark:hidden w-[220px]",style:{"max-width":"220px"}}),t("img",{src:x,class:"hidden dark:block w-[220px]",style:{"max-width":"220px"}})])],-1)),t("div",M,[t("div",T,[d(s,{to:"/login",class:"flex gap-2 text-primary-500"},{default:h(()=>[...e[6]||(e[6]=[t("svg",{class:"w-6 h-6 text-primary-500 dark:text-primary-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},[t("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M5 12l4-4m-4 4 4 4"})],-1),f(" Voltar para login ",-1)])]),_:1}),e[10]||(e[10]=t("h4",{class:"text-xl font-semibold text-primary dark:text-primary-200 mt-4"},"Recuperar senha",-1)),o.type==="remember"?(i(),a("form",{key:0,class:"mt-8 space-y-6",onSubmit:e[2]||(e[2]=c((...l)=>o.sendRegister&&o.sendRegister(...l),["prevent"]))},[t("div",E,[e[7]||(e[7]=t("label",{for:"email",class:"text-sm font-medium text-primary dark:text-primary-200"},"E-Mail ou CPF",-1)),p(t("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>o.email=l),name:"email",id:"email",type:"text",class:"w-full px-3 py-2 h-[40px] bg-white border border-gray-300 rounded-lg dark:bg-primary-950 dark:border-primary-800 focus:outline-none focus:ring-1 focus:ring-secondary focus:border-secondary",placeholder:"Preencha o seu e-mail ou CPF",required:""},null,512),[[u,o.email]])]),e[8]||(e[8]=t("div",null,[t("button",{type:"submit",class:"w-full px-3 py-2 h-[40px] bg-white border border-gray-300 rounded-lg hover:border-secondary hover:border-2 dark:bg-primary-950 dark:border-primary-800 dark:hover:border-secondary"}," Enviar ")],-1))],32)):(i(),a("div",L,[...e[9]||(e[9]=[t("div",{class:"flex items-center gap-2 rounded-lg border border-green-200 bg-green-50 px-4 py-3 text-sm font-medium text-green-800"},[t("i",{class:"fa-solid fa-check"}),t("span",null,"Enviamos o link de recuperação de senha para o seu e-mail e whatsapp!")],-1)])]))])])])])}}});
1export{D 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.