PageSourceSearch

https://mnyi.eu/_nuxt/BbTKXsNW.js

js mnyi.eu collected 2026-10-10 00:32:43 UTC 2,696 bytes, 1 lines download raw bytes

1import{_ as D}from"./DOFaYLI1.js";import{_ as E}from"./BFhqd1Sp.js";import{_ as I}from"./AZ_k5joF.js";import{_ as M}from"./DDR0vaa-.js";import{_ as C}from"./VF0bhngs.js";import{_ as j}from"./D8SJmkD1.js";import{_ as q}from"./CBDt3dZY.js";import{j as z,a,w as H,$ as L,y,F as i,D as b,A as n,af as R,B as T,an as W,z as m,u as x}from"./BqwoF_p2.js";import{u as G}from"./l0_Jq5_-.js";import{b as J,c as K,f as O,q as P,e as Q}from"./ByksiL8Q.js";import"./O2Qdntuy.js";import"./BRDH5o7q.js";import"./Csp1wAKh.js";import"./CUJ0cljL.js";const X={class:"px-4 pb-24 mx-auto sm:pb-32 sm:px-6 lg:max-w-7xl lg:px-8"},Y={key:0,class:"w-full py-6 lg:w-1/2 lg:col-span-3 lg:py-12"},Z={class:"max-w-lg mx-auto lg:max-w-none"},ee={class:"mb-6"},te=["href"],oe={class:"w-40"},ae="/admin/documents",be=z({__name:"[document]",setup(ne){const{locale:d,t:h}=J(),{$repository:p}=K(),w=O(),{handleSubmit:V}=G(),_=a([{route:"/admin/documents",title:h("document.index"),current:!1}]),t=a(),s=a(),r=a(!1),v=a(!1),u=a(!0),c=a(!1);P().clearErrors(),H(()=>s.value,e=>{v.value=e&&e.length>0});const k=async()=>{u.value=!0,t.value=await p.documents.show(w.params.document,!0).then(e=>(g(e),e)).catch(()=>{}).finally(()=>u.value=!1)},f=V(async()=>{r.value=!0,await p.documents.store({title:t.value.title,type:t.value.type,file:s.value[0].file,documentLocale:t.value.locale,vendorId:t.value.vendorId}).then(e=>{e!==!1&&(g(e),t.value=e,c.value=!0,s.value=void 0)}).finally(()=>r.value=!1)}),g=e=>{_.value[1]={route:`/admin/documents/${e.id}`,title:e.title[d.value],current:!0},Q({title:()=>e.title[d.value]})};return L(async()=>{await k()}),(e,o)=>{const N=D,S=E,$=I,B=M,F=C,A=j,U=q;return m(),y("div",X,[i(N,{pages:_.value,"has-home":!1},null,8,["pages"]),!u.value&&t.value?(m(),y("div",Y,[n("div",Z,[n("div",ee,[n("a",{class:"font-medium text-indigo-600 cursor-pointer hover:text-indigo-500",href:t.value.file,target:"_blank"},[R(T(e.$t("document.viewActive"))+" ",1),o[3]||(o[3]=n("span",{"aria-hidden":"true"}," →",-1))],8,te)]),n("form",{class:"grid grid-cols-1 gap-y-6",onSubmit:o[1]||(o[1]=W((...l)=>x(f)&&x(f)(...l),["prevent"]))},[i(S),i($,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l),label:e.$t("form.document.upload"),"has-multiple":!1,"accepted-types":"application/*"},null,8,["modelValue","label"]),n("div",oe,[i(B,{"is-submitting":r.value,"is-valid":v.value,label:e.$t("button.save")},null,8,["is-submitting","is-valid","label"])])],32)])])):u.value?(m(),b(F,{key:1,class:"py-6 space-y-8 divide-y divide-gray-200 lg:py-12"})):(m(),b(A,{key:2,url:ae,class:"mt-6"})),i(U,{modelValue:c.value,"onUpdate:modelValue":o[2]||(o[2]=l=>c.value=l)},null,8,["modelValue"])])}}});export{be 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.