PageSourceSearch

https://ocaminho.org.br/assets/Confirm-Cxb3tZOU.js

js ocaminho.org.br collected 2026-09-27 01:10:31 UTC 3,111 bytes, 1 lines download raw bytes

1import{_ as f,j as R,b as c,c as u,o as a,g as l,a as n,w as m,Z as _,t as i,d as C,e as P,a1 as S,as as g,f as E,n as T,aq as p}from"./index-sUPB-bMu.js";const b={name:"ConfirmUser",data(){return{showCurrentPassword:!1,formFeedback:{type:null,message:null},currentPassword:"",sendingRequest:!1}},computed:{...R(["userClientAccount","userInpeaceAccount","churchData"]),currentPasswordType(){return this.showCurrentPassword?"text":"password"},disabledButton(){return this.sendingRequest||!this.currentPassword}},methods:{toogleCurrentPassword(){this.showCurrentPassword=!this.showCurrentPassword},resetFeedback(){this.formFeedback={type:null,message:null}},async deleteUser(){this.sendingRequest=!0,this.resetFeedback();try{await p.postUserLogin({username:this.userClientAccount.email?.toLowerCase(),password:this.currentPassword})}catch(e){e.response.status===401&&(this.formFeedback={type:"error",message:this.$t("USER.DELETE_USER.CONFIRM.ERROR")}),this.sendingRequest=!1;return}await p.postDeleteUser({userId:this.userInpeaceAccount.id,churchId:this.churchData.id}),this.$router.replace({name:"DeleteUserSuccess"})}}},U={class:"confirm-user"},I={class:"confirm-user__content"},y={class:"confirm-user__content__description"},D={class:"confirm-user__content__form"},k={class:"input-item__floated-label"},L=["innerHTML"],O=["type","placeholder"];function A(e,t,M,N,o,s){const h=c("PageContentHeader"),d=c("SvgElement"),w=c("AlertMessage");return a(),u("div",U,[l(h,{padded:!0,leftmobile:!0},{default:m(()=>[_(i(e.$t("USER.DELETE_USER.MODULE_NAME")),1)]),_:1}),n("div",I,[n("p",y,i(e.$t("USER.DELETE_USER.CONFIRM.DESCRIPTION")),1),o.formFeedback.message?(a(),C(w,{key:0,type:o.formFeedback.type},{icon:m(()=>[l(d,{name:"Alert",title:e.$t("ALERT_MESSAGE.TITLE"),width:"1.5rem",height:"100%"},null,8,["title"])]),default:m(()=>[_(" "+i(o.formFeedback.message),1)]),_:1},8,["type"])):P("",!0),n("div",D,[n("div",k,[n("label",{for:"senha",class:"input-item__label input-item__label",innerHTML:e.$t("USER.DELETE_USER.CONFIRM.INPUT")},null,8,L),S(n("input",{"onUpdate:modelValue":t[0]||(t[0]=r=>o.currentPassword=r),type:s.currentPasswordType,name:"senha",placeholder:e.$t("USER.DELETE_USER.CONFIRM.INPUT_PLACEHOLDER"),class:"input-item__field input-item__field--normal input-item__field"},null,8,O),[[g,o.currentPassword]]),o.showCurrentPassword?(a(),u("button",{key:1,class:"icon",onClick:t[2]||(t[2]=E((...r)=>s.toogleCurrentPassword&&s.toogleCurrentPassword(...r),["prevent"]))},[l(d,{name:"PasswordShow",title:e.$t("REGISTER.TOOLTIP.PASSWORD_HIDE")},null,8,["title"])])):(a(),u("button",{key:0,class:"icon icon--hidden",onClick:t[1]||(t[1]=E((...r)=>s.toogleCurrentPassword&&s.toogleCurrentPassword(...r),["prevent"]))},[l(d,{name:"PasswordHidden",title:e.$t("REGISTER.TOOLTIP.PASSWORD_SHOW")},null,8,["title"])]))]),n("button",{class:T(["btn btn--color-primary form-button",{"btn--disabled-gray":s.disabledButton}]),onClick:t[3]||(t[3]=(...r)=>s.deleteUser&&s.deleteUser(...r))},i(e.$t("USER.DELETE_USER.CONFIRM.BUTTON")),3)])])])}const v=f(b,[["render",A],["__scopeId","data-v-9cc9d6ce"]]);export{v 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.