PageSourceSearch

https://fontedavida.com.br/assets/Single-CDSC5dLc.js

js fontedavida.com.br collected 2026-09-26 18:03:39 UTC 4,829 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Editor-PfZH6EpR.js","assets/index-sUPB-bMu.js","assets/index-CjsJg3P0.css","assets/Editor-BKywbPlz.css","assets/Modal-RXN8FhsK.js","assets/Modal-BtAHUlcp.css"])))=>i.map(i=>d[i]);
2import{_ as I,m as k,j as D,k as S,b as i,c as l,o as s,g as o,d as g,e as d,w as N,Z as p,t as c,a as n,n as E,f as B,a6 as m,p as f}from"./index-sUPB-bMu.js";const C=S(()=>f(()=>import("./Editor-PfZH6EpR.js"),__vite__mapDeps([0,1,2,3]))),R=S(()=>f(()=>import("./Modal-RXN8FhsK.js"),__vite__mapDeps([4,1,2,5]))),A={name:"NotesNew",components:{NoteEditor:C,NoteModal:R},beforeRouteLeave(e,_,h){!this.deleteNote&&this.note&&this.newNote.titulo===""?(this.toggleNotExitModal(),h(!1)):(this.deleteNote&&this.notesLiveId?.noteId===this.noteId&&this.clearNoteLive(),this.clearNote(),this.clearNewNote(),h(!0))},props:{noteId:{type:Number,required:!1,default:null}},data(){return{alertBox:{type:null,message:null},loading:null,noteNotTitle:!1,noteNotContent:!1,deleteNote:!1}},computed:{...D({churchData:"churchData",note:"notesGetSingle",newNote:"notesGetNewSingle",notesLiveId:"notesLiveId"}),hasSmallWidth(){return window.screen.width<575}},created(){this.noteId&&this.handleGet()},methods:{...k(["fetchNote","fetchNotes","clearNote","clearNewNote","clearNoteLive","setNote"]),async handleGet(){try{this.loading=!0,await this.fetchNote(this.noteId),this.note.data.id||(this.alertBox={type:"error",message:this.$t("USER.NOTES.MESSAGE.ERROR.GENERIC")}),this.loading=!1}catch{this.alertBox={type:"error",message:this.$t("USER.NOTES.MESSAGE.ERROR.GENERIC")}}},async handleSubmit(){try{const e=await m.postNote(this.churchData.id,this.newNote);this.$router.push({name:"userNotesSingle",params:{noteId:e.data.data.id}}),this.setNote(e.data)}catch(e){this.alertBox={type:"error",message:e}}},async handleUpdate(){try{await m.putNote(this.noteId,this.newNote);const e={data:{titulo:this.newNote.titulo,texto:this.newNote.texto}};this.setNote(e)}catch(e){this.alertBox={type:"error",message:e}}},async handleDelete(){try{await m.deleteNote(this.noteId),this.toggleDeleteNote(),this.$router.replace({name:"userNotes"})}catch(e){this.alertBox={type:"error",message:e}}},directDeleteView(){this.toggleDeleteNote(),this.$router.replace({name:"userNotesDelete",params:{noteId:this.noteId}})},toggleNotExitModal(){this.newNote.texto?this.noteNotTitle=!this.noteNotTitle:this.noteNotContent=!this.noteNotContent},toggleDeleteNote(){this.deleteNote=!this.deleteNote},reloadNote(){this.handleGet(),this.noteNotContent=!this.noteNotContent}}},G={class:"notes-single"},L={key:1,class:"loading"},M={class:"loading__title"},O={class:"loading__title__item"},U={class:"loading__list"},V={class:"loading__list__item"},P={class:"loading__list__item"},W={class:"loading__list__item"},H={class:"loading__list__item"},j={key:2,class:"notes-single__content"},q={class:"notes-single__content__button"},z={key:0,class:"back-button__text"},K={key:0,class:"delete-button__text"};function Z(e,_,h,F,a,t){const w=i("PageContentHeader"),y=i("AlertBox"),r=i("SkeletonElement"),u=i("SvgElement"),v=i("router-link"),T=i("NoteEditor"),b=i("NoteModal");return s(),l("div",G,[o(w,{padded:!0,leftmobile:!0},{default:N(()=>[p(c(e.$t("USER.NOTES.TITLE.PAGE")),1)]),_:1}),a.alertBox.message?(s(),g(y,{key:0,type:a.alertBox.type},{default:N(()=>[p(c(a.alertBox.message),1)]),_:1},8,["type"])):d("",!0),a.loading?(s(),l("div",L,[n("div",M,[n("div",O,[o(r,{height:"3rem",width:"25%"})])]),n("div",U,[n("div",V,[o(r,{height:"2rem"})]),n("div",P,[o(r,{height:"2rem"})]),n("div",W,[o(r,{height:"2rem",width:"40%"})]),n("div",H,[o(r,{height:"2rem",width:"25%"})])])])):(s(),l("div",j,[n("div",q,[o(v,{class:E(["back-button",{"back-button--mobile":t.hasSmallWidth}]),to:{name:"userNotes"}},{default:N(()=>[o(u,{name:"ArrowLeft",title:"Arrow",width:"15",height:"15"}),t.hasSmallWidth?d("",!0):(s(),l("span",z,c(e.$t("USER.NOTES.BUTTON.BACK")),1))]),_:1},8,["class"]),h.noteId?(s(),l("button",{key:0,class:E(["btn btn--outline-primary delete-button",{"delete-button--mobile":t.hasSmallWidth}]),onClick:_[0]||(_[0]=B((...x)=>t.directDeleteView&&t.directDeleteView(...x),["prevent"]))},[o(u,{name:"TrashCanThin",title:"Delete"}),t.hasSmallWidth?d("",!0):(s(),l("span",K,c(e.$t("USER.NOTES.BUTTON.DELETE")),1))],2)):d("",!0)]),a.loading?d("",!0):(s(),g(T,{key:0,note:e.note,onSubmitNote:t.handleSubmit,onUpdateNote:t.handleUpdate},null,8,["note","onSubmitNote","onUpdateNote"]))])),o(b,{"note-not-title":a.noteNotTitle,"note-not-content":a.noteNotContent,onToggleNotExitModal:t.toggleNotExitModal,onToggleDeleteNote:t.handleDelete,onReloadNote:t.reloadNote},null,8,["note-not-title","note-not-content","onToggleNotExitModal","onToggleDeleteNote","onReloadNote"])])}const Q=I(A,[["render",Z],["__scopeId","data-v-62ec9064"]]);export{Q 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.