PageSourceSearch

https://www.letoile.by/dist/ProfilePersonModal-94a54c76.js

js letoile.by collected 2026-10-09 04:25:10 UTC 2,796 bytes, 2 lines download raw bytes

1import{B as l,o as s,m}from"./vendor-vue-15488850.js";import{L as d}from"./index-e3a5a1c2.js";import{L as u}from"./InputV2-e9cdc46a.js";import{M as p}from"./ModalProvider-fa28f0fc.js";import{n as c}from"./vendor-splide-d9a079dc.js";import"./vendor-a9303273.js";import"./vendor-pswp-a811abc6.js";import"./storage-cbd59dc5.js";import"./integrations-segmentstream-d01b6c8e.js";import"./locales-ru-bba83fc0.js";import"./locales-cn-79b85608.js";import"./config-mapping-47fd6e48.js";import"./vendor-lodash-59d95206.js";import"./vendor-date-fns-8fd1b05b.js";import"./svg-icons-1599cbf9.js";const f={name:"ProfilePersonModal",components:{LeButton:d,LeInput:u,ModalProvider:p,ValidationObserver:l,ValidationProvider:s},props:{payload:{type:Object,required:!0}},data(){return{loading:!1,name:this.payload.name??"",surname:this.payload.surname??""}},computed:{...m("app",["validationRules"])},mounted(){this.$emit("modalContentLoaded")},methods:{onClose(){this.$modal.close()},async onSubmit(){var e,a;if(await this.$refs.form.validate())try{this.loading=!0,await((a=(e=this.payload).confirm)==null?void 0:a.call(e,{name:this.name,surname:this.surname})),this.onClose()}catch(t){this.$clientError(t)}finally{this.loading=!1}}}};var _=function(){var e=this,a=e._self._c;return a("ModalProvider",{attrs:{title:e.payload.modalTitle,content:e.payload.modalContent,loading:e.loading,width:e.payload.width},on:{close:e.onClose},scopedSlots:e._u([{key:"buttons",fn:function(){return[a("LeButton",{attrs:{theme:"primary",isRounded:"",label:e.$t("base:button.confirm"),loading:e.loading},on:{click:e.onSubmit}})]},proxy:!0}])},[a("ValidationObserver",{ref:"form",staticClass:"profile-person-modal",attrs:{tag:"div"}},[a("ValidationProvider",{attrs:{name:"name",rules:"required|nameField",slim:""},scopedSlots:e._u([{key:"default",fn:function({errors:t,invalid:o,validated:n}){return[a("LeInput",{attrs:{id:"name",name:"name",label:e.$t("account:label.name"),autofocus:"",required:"",disabled:e.loading,error:n&&o,errorMessage:t[0],maxlength:e.validationRules.name.maxLength,"data-at-profile-first-name":""},model:{value:e.name,callback:function(r){e.name=r},expression:"name"}})]}}])}),e._v(" "),a("ValidationProvider",{attrs:{name:"surname",rules:"required|nameField",slim:""},scopedSlots:e._u([{key:"default",fn:function({errors:t,invalid:o,validated:n}){return[a("LeInput",{attrs:{id:"surname",name:"surname",label:e.$t("account:label.lastName"),required:"",disabled:e.loading,error:n&&o,errorMessage:t[0],maxlength:e.validationRules.name.maxLength,"data-at-profile-last-name":""},model:{value:e.surname,callback:function(r){e.surname=r},expression:"surname"}})]}}])})],1)],1)},h=[],v=c(f,_,h,!1,null,null,null,null);const I=v.exports;export{I as default};
2//# sourceMappingURL=ProfilePersonModal-94a54c76.js.map

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.