1import{_ as $}from"./AppLayout-9f844fa1.js";import{_ as g}from"./ButtonLink-deddd3b9.js";import{_ as v}from"./PrimaryButton-fad68cbe.js";import{_ as x}from"./Flash-4b57efae.js";import{_ as b}from"./Form-a3e7abfe.js";import{o as w,c as y,w as t,a as r,t as a,b as s,f as i,u as m,d as f,h as c}from"./app-3767b508.js";import{_ as k}from"./Success-237f20a3.js";import B from"./Items-655b5ca5.js";import{_}from"./ActionSection-34ae0c27.js";import{J as j}from"./SectionBorder-1465ea9c.js";import"./KBAdminMobileMenu-2bcceecd.js";import"./DialogModal-3ec4c543.js";import"./Modal-6175ac5d.js";import"./MourningBanner-db0aaa93.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./KBAdminMenu-37d03319.js";import"./MenuDropDown-c105bc7c.js";import"./index-6c99c58d.js";import"./Emitter-1565b776.js";import"./ExclamationCircleIcon-ef0139d5.js";import"./findIndex-ea755476.js";import"./_Uint8Array-65252f60.js";import"./_overArg-91d80770.js";import"./isObject-6594f1fa.js";import"./keys-9aed363f.js";import"./toNumber-7faf9121.js";import"./SecondaryButton-507ab9e8.js";import"./PlusCircleIcon-5dd26774.js";import"./SectionTitle-8af12afb.js";const N={class:"flex justify-between"},V={class:"flex"},C={class:"text-xl font-semibold leading-tight text-gray-800 mt-1"},J={class:"flex"},O={class:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},me={__name:"Edit",props:{model:Object},setup(l){const u=l;let n=c([]),p=c("");const h=()=>{let e=u.model;n.value=[],p.value="",axios.put(route("api.references.update",{id:e.id}),Object.assign({},e)).then(o=>{d.value.showMessage(f("СпÑавоÑник бÑла обновлен"))}).catch(o=>{o&&o.response&&(p.value=o.response.data.message||o.response.data.exception,n.value=o.response.data.errors||[])})};let d=c();return(e,o)=>(w(),y($,{title:m(f)("СпÑавоÑники")},{header:t(()=>[r("div",N,[r("div",V,[r("h2",C,a(l.model.name),1)]),r("div",J,[s(v,{onClick:h},{default:t(()=>[i(a(e.$t("СоÑ
ÑаниÑÑ")),1)]),_:1}),s(g,{href:e.route("admin.references.index"),class:"ml-5"},{default:t(()=>[i(a(e.$t("ÐеÑнÑÑÑÑÑ Ð½Ð°Ð·Ð°Ð´")),1)]),_:1},8,["href"])])])]),default:t(()=>[r("div",null,[r("div",O,[s(_,null,{title:t(()=>[i(a(e.$t("УпÑавление ÑпÑавоÑником")),1)]),description:t(()=>[i(a(e.$t("ÐÑ Ð¼Ð¾Ð¶ÐµÑе измениÑÑ Ð½Ð°Ð¸Ð¼ÐµÐ½Ð¾Ð²Ð°Ð½Ð¸Ðµ и опиÑание ÑпÑавоÑника")),1)]),content:t(()=>[s(x,{errors:m(n),message:m(p)},null,8,["errors","message"]),s(b,{model:l.model,errors:m(n),message:m(p)},null,8,["model","errors","message"])]),_:1}),s(j),s(_,null,{title:t(()=>[i(a(e.$t("ÐозиÑии ÑпÑавоÑника")),1)]),description:t(()=>[i(a(e.$t("ÐÑ Ð¼Ð¾Ð¶ÐµÑе добавиÑÑ Ð¸Ð»Ð¸ измениÑÑ Ð¿Ð¾Ð·Ð¸Ñии ÑпÑавоÑника")),1)]),content:t(()=>[s(B,{model:l.model},null,8,["model"])]),_:1}),s(k,{ref_key:"success",ref:d},null,512)])])]),_:1},8,["title"]))}};export{me 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.