PageSourceSearch

https://tetradka.io/cabinet/assets/js/Copy-BB1Q_UjA.js

js tetradka.io collected 2026-10-01 23:58:38 UTC 2,357 bytes, 2 lines download raw bytes

1import{d as _,C as b,O as v,r as a,o as w,K as D,n as h}from"./index-B2zXF2j8.js";import{T as I,g as C}from"./templateForm-BIMyRwHE.js";import{u as E}from"./index-CORO0COk.js";import"./categories-BF6cYk2R.js";import"./genArrayTimeIntervalMin-CYyNBvmI.js";import"./hourDeclension-BJmuzMu_.js";import"./wordDeclension-DYh8vIps.js";import"./WImage-BLFI7Aih.js";import"./UploadFileResize-DB3Zpo8v.js";import"./index-BwY7Iose.js";import"./index-BNXA-Bhp.js";import"./useVuetify-CperIxtx.js";import"./IntlFormatters-B4Zw0--r.js";import"./Provider-DdCRbPRC.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new r.Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="63ea5261-f742-4887-ab3b-1dc5804d0463",r._sentryDebugIdIdentifier="sentry-dbid-63ea5261-f742-4887-ab3b-1dc5804d0463")}catch{}const T=_({__name:"Copy",setup(r){const t=b(),n=v(),o=E(),{messageError:i,messageSuccess:l}=D(),m=a(!0),u=a(!1),c=a(0),p=a(null),d=async()=>{const e=await C(String(t.params.id));p.value={...e,memo:e.memo??"",employees:[],photos:[],photosCount:0,title:`${e.title} КОПИЯ`},c.value=e.categoryID},f=async({service:e,formData:y})=>{u.value=!0;const g=e.priceTypeAlias!=="free"?e.price:0;try{const s=await o.storeService({oldCategoryID:c.value,categoryID:e.categoryID,time:e.time,price:g,formData:y});if(s&&Object.keys(s).length)throw new Error("Не удалось сохранить услугу");await n.replace({name:"services",query:t.query}),l("Услуга сохранена")}catch(s){i(s instanceof Error?s.message:"Не удалось сохранить услугу")}finally{u.value=!1}};return w(async()=>{try{await d()}catch(e){i(e instanceof Error?e.message:"Не удалось получить данные услуги")}finally{m.value=!1}}),{__sfc:!0,route:t,router:n,servicesStore:o,messageError:i,messageSuccess:l,loading:m,loadingBtn:u,currentCategoryID:c,service:p,getData:d,onSubmit:f,TemplateForm:I}}});var S=function(){var t=this,n=t._self._c,o=t._self._setupProxy;return n(o.TemplateForm,{attrs:{title:"Новая услуга",service:o.service,loading:o.loading,"loading-btn":o.loadingBtn,"can-delete":!1},on:{submit:o.onSubmit}})},F=[],x=h(T,S,F,!1,null,null);const J=x.exports;export{J as default};
2//# sourceMappingURL=Copy-BB1Q_UjA.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.