@opengis/admin 0.4.32 → 0.4.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { _ as d, f as m, u as f, s as g } from "./import-file-Bnvich4-.js";
1
+ import { _ as d, f as m, u as f, s as g } from "./import-file-BLgU6k4_.js";
2
2
  import { resolveComponent as b, createElementBlock as x, openBlock as h, createElementVNode as i, normalizeClass as y, normalizeStyle as p, createBlock as w, createCommentVNode as v } from "vue";
3
3
  const $ = {
4
4
  data() {
@@ -1,4 +1,4 @@
1
- import { _ as T, h as Je, i as Ke, j as Ge, f as L, I as Qe, s as R, k as K, V as Xe, l as Ye, m as Ze, n as et, A as G, o as tt, p as st, b as nt, q as at, r as lt, a as rt, t as ot, v as it, u as Ee } from "./import-file-Bnvich4-.js";
1
+ import { _ as T, h as Je, i as Ke, j as Ge, f as L, I as Qe, s as R, k as K, V as Xe, l as Ye, m as Ze, n as et, A as G, o as tt, p as st, b as nt, q as at, r as lt, a as rt, t as ot, v as it, u as Ee } from "./import-file-BLgU6k4_.js";
2
2
  import { createElementBlock as d, openBlock as r, createTextVNode as z, createElementVNode as a, toDisplayString as A, createCommentVNode as k, normalizeClass as w, resolveComponent as p, Fragment as $, createVNode as x, withCtx as P, createBlock as y, renderList as V, withModifiers as dt, Transition as Q, withDirectives as X, renderSlot as ut, vShow as Y, Teleport as ct, getCurrentInstance as Ue, ref as H, resolveDynamicComponent as J, defineComponent as ht, withKeys as pt, normalizeStyle as W } from "vue";
3
3
  const bt = {
4
4
  data() {
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as u, openBlock as n, createElementVNode as o, createStaticVNode as Q, resolveComponent as p, createCommentVNode as w, createVNode as h, normalizeClass as f, createTextVNode as V, toDisplayString as B, Transition as q, withCtx as _, withDirectives as W, Fragment as U, renderList as P, vShow as J, createBlock as T, resolveDynamicComponent as F, ref as le, onMounted as ae, computed as oe, withModifiers as ne } from "vue";
2
- import { _ as y, I as K, s as g, a as X, u as A, b as se, c as Y, d as ue, e as ie, f as de, g as ce } from "./import-file-Bnvich4-.js";
2
+ import { _ as y, I as K, s as g, a as X, u as A, b as se, c as Y, d as ue, e as ie, f as de, g as ce } from "./import-file-BLgU6k4_.js";
3
3
  import "./user-DCzCj0wb.js";
4
4
  const he = {}, ge = {
5
5
  xmlns: "http://www.w3.org/2000/svg",
package/dist/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { w as f } from "./import-file-Bnvich4-.js";
1
+ import { w as f } from "./import-file-BLgU6k4_.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@
3
3
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[g_]=this[g_]={accessors:{}}).accessors,o=this.prototype;function d(p){const c=Yc(p);r[c]||(kC(o,p),r[c]=!0)}return Ie.isArray(e)?e.forEach(d):d(e),this}};hi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ie.reduceDescriptors(hi.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),Ie.freezeMethods(hi);function jf(t,e){const n=this||Zc,r=e||n,o=hi.from(r.headers);let d=r.data;return Ie.forEach(t,function(c){d=c.call(n,d,o.normalize(),e?e.status:void 0)}),o.normalize(),d}function y_(t){return!!(t&&t.__CANCEL__)}function _l(t,e,n){Wt.call(this,t??"canceled",Wt.ERR_CANCELED,e,n),this.name="CanceledError"}Ie.inherits(_l,Wt,{__CANCEL__:!0});function __(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Wt("Request failed with status code "+n.status,[Wt.ERR_BAD_REQUEST,Wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function EC(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function CC(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,d=0,p;return e=e!==void 0?e:1e3,function(b){const k=Date.now(),E=r[d];p||(p=k),n[o]=b,r[o]=k;let C=d,T=0;for(;C!==o;)T+=n[C++],C=C%t;if(o=(o+1)%t,o===d&&(d=(d+1)%t),k-p<e)return;const I=E&&k-E;return I?Math.round(T*1e3/I):void 0}}function SC(t,e){let n=0,r=1e3/e,o,d;const p=(k,E=Date.now())=>{n=E,o=null,d&&(clearTimeout(d),d=null),t.apply(null,k)};return[(...k)=>{const E=Date.now(),C=E-n;C>=r?p(k,E):(o=k,d||(d=setTimeout(()=>{d=null,p(o)},r-C)))},()=>o&&p(o)]}const Ku=(t,e,n=3)=>{let r=0;const o=CC(50,250);return SC(d=>{const p=d.loaded,c=d.lengthComputable?d.total:void 0,b=p-r,k=o(b),E=p<=c;r=p;const C={loaded:p,total:c,progress:c?p/c:void 0,bytes:b,rate:k||void 0,estimated:k&&c&&E?(c-p)/k:void 0,event:d,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(C)},n)},b_=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},x_=t=>(...e)=>Ie.asap(()=>t(...e)),TC=Lr.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Lr.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Lr.origin),Lr.navigator&&/(msie|trident)/i.test(Lr.navigator.userAgent)):()=>!0,DC=Lr.hasStandardBrowserEnv?{write(t,e,n,r,o,d){const p=[t+"="+encodeURIComponent(e)];Ie.isNumber(n)&&p.push("expires="+new Date(n).toGMTString()),Ie.isString(r)&&p.push("path="+r),Ie.isString(o)&&p.push("domain="+o),d===!0&&p.push("secure"),document.cookie=p.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function AC(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function MC(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function v_(t,e,n){let r=!AC(e);return t&&(r||n==!1)?MC(t,e):e}const w_=t=>t instanceof hi?{...t}:t;function wa(t,e){e=e||{};const n={};function r(k,E,C,T){return Ie.isPlainObject(k)&&Ie.isPlainObject(E)?Ie.merge.call({caseless:T},k,E):Ie.isPlainObject(E)?Ie.merge({},E):Ie.isArray(E)?E.slice():E}function o(k,E,C,T){if(Ie.isUndefined(E)){if(!Ie.isUndefined(k))return r(void 0,k,C,T)}else return r(k,E,C,T)}function d(k,E){if(!Ie.isUndefined(E))return r(void 0,E)}function p(k,E){if(Ie.isUndefined(E)){if(!Ie.isUndefined(k))return r(void 0,k)}else return r(void 0,E)}function c(k,E,C){if(C in e)return r(k,E);if(C in t)return r(void 0,k)}const b={url:d,method:d,data:d,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:c,headers:(k,E,C)=>o(w_(k),w_(E),C,!0)};return Ie.forEach(Object.keys(Object.assign({},t,e)),function(E){const C=b[E]||o,T=C(t[E],e[E],E);Ie.isUndefined(T)&&C!==c||(n[E]=T)}),n}const k_=t=>{const e=wa({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:d,headers:p,auth:c}=e;e.headers=p=hi.from(p),e.url=h_(v_(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&p.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let b;if(Ie.isFormData(n)){if(Lr.hasStandardBrowserEnv||Lr.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((b=p.getContentType())!==!1){const[k,...E]=b?b.split(";").map(C=>C.trim()).filter(Boolean):[];p.setContentType([k||"multipart/form-data",...E].join("; "))}}if(Lr.hasStandardBrowserEnv&&(r&&Ie.isFunction(r)&&(r=r(e)),r||r!==!1&&TC(e.url))){const k=o&&d&&DC.read(d);k&&p.set(o,k)}return e},IC=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=k_(t);let d=o.data;const p=hi.from(o.headers).normalize();let{responseType:c,onUploadProgress:b,onDownloadProgress:k}=o,E,C,T,I,B;function $(){I&&I(),B&&B(),o.cancelToken&&o.cancelToken.unsubscribe(E),o.signal&&o.signal.removeEventListener("abort",E)}let F=new XMLHttpRequest;F.open(o.method.toUpperCase(),o.url,!0),F.timeout=o.timeout;function q(){if(!F)return;const Q=hi.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders()),we={data:!c||c==="text"||c==="json"?F.responseText:F.response,status:F.status,statusText:F.statusText,headers:Q,config:t,request:F};__(function(Ee){n(Ee),$()},function(Ee){r(Ee),$()},we),F=null}"onloadend"in F?F.onloadend=q:F.onreadystatechange=function(){!F||F.readyState!==4||F.status===0&&!(F.responseURL&&F.responseURL.indexOf("file:")===0)||setTimeout(q)},F.onabort=function(){F&&(r(new Wt("Request aborted",Wt.ECONNABORTED,t,F)),F=null)},F.onerror=function(){r(new Wt("Network Error",Wt.ERR_NETWORK,t,F)),F=null},F.ontimeout=function(){let me=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const we=o.transitional||f_;o.timeoutErrorMessage&&(me=o.timeoutErrorMessage),r(new Wt(me,we.clarifyTimeoutError?Wt.ETIMEDOUT:Wt.ECONNABORTED,t,F)),F=null},d===void 0&&p.setContentType(null),"setRequestHeader"in F&&Ie.forEach(p.toJSON(),function(me,we){F.setRequestHeader(we,me)}),Ie.isUndefined(o.withCredentials)||(F.withCredentials=!!o.withCredentials),c&&c!=="json"&&(F.responseType=o.responseType),k&&([T,B]=Ku(k,!0),F.addEventListener("progress",T)),b&&F.upload&&([C,I]=Ku(b),F.upload.addEventListener("progress",C),F.upload.addEventListener("loadend",I)),(o.cancelToken||o.signal)&&(E=Q=>{F&&(r(!Q||Q.type?new _l(null,t,F):Q),F.abort(),F=null)},o.cancelToken&&o.cancelToken.subscribe(E),o.signal&&(o.signal.aborted?E():o.signal.addEventListener("abort",E)));const J=EC(o.url);if(J&&Lr.protocols.indexOf(J)===-1){r(new Wt("Unsupported protocol "+J+":",Wt.ERR_BAD_REQUEST,t));return}F.send(d||null)})},PC=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const d=function(k){if(!o){o=!0,c();const E=k instanceof Error?k:this.reason;r.abort(E instanceof Wt?E:new _l(E instanceof Error?E.message:E))}};let p=e&&setTimeout(()=>{p=null,d(new Wt(`timeout ${e} of ms exceeded`,Wt.ETIMEDOUT))},e);const c=()=>{t&&(p&&clearTimeout(p),p=null,t.forEach(k=>{k.unsubscribe?k.unsubscribe(d):k.removeEventListener("abort",d)}),t=null)};t.forEach(k=>k.addEventListener("abort",d));const{signal:b}=r;return b.unsubscribe=()=>Ie.asap(c),b}},RC=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},NC=async function*(t,e){for await(const n of BC(t))yield*RC(n,e)},BC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},E_=(t,e,n,r)=>{const o=NC(t,e);let d=0,p,c=b=>{p||(p=!0,r&&r(b))};return new ReadableStream({async pull(b){try{const{done:k,value:E}=await o.next();if(k){c(),b.close();return}let C=E.byteLength;if(n){let T=d+=C;n(T)}b.enqueue(new Uint8Array(E))}catch(k){throw c(k),k}},cancel(b){return c(b),o.return()}},{highWaterMark:2})},Ju=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",C_=Ju&&typeof ReadableStream=="function",VC=Ju&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),S_=(t,...e)=>{try{return!!t(...e)}catch{return!1}},zC=C_&&S_(()=>{let t=!1;const e=new Request(Lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),T_=64*1024,Uf=C_&&S_(()=>Ie.isReadableStream(new Response("").body)),Qu={stream:Uf&&(t=>t.body)};Ju&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Qu[e]&&(Qu[e]=Ie.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new Wt(`Response type '${e}' is not supported`,Wt.ERR_NOT_SUPPORT,r)})})})(new Response);const OC=async t=>{if(t==null)return 0;if(Ie.isBlob(t))return t.size;if(Ie.isSpecCompliantForm(t))return(await new Request(Lr.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Ie.isArrayBufferView(t)||Ie.isArrayBuffer(t))return t.byteLength;if(Ie.isURLSearchParams(t)&&(t=t+""),Ie.isString(t))return(await VC(t)).byteLength},LC=async(t,e)=>{const n=Ie.toFiniteNumber(t.getContentLength());return n??OC(e)},Hf={http:oC,xhr:IC,fetch:Ju&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:d,timeout:p,onDownloadProgress:c,onUploadProgress:b,responseType:k,headers:E,withCredentials:C="same-origin",fetchOptions:T}=k_(t);k=k?(k+"").toLowerCase():"text";let I=PC([o,d&&d.toAbortSignal()],p),B;const $=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let F;try{if(b&&zC&&n!=="get"&&n!=="head"&&(F=await LC(E,r))!==0){let we=new Request(e,{method:"POST",body:r,duplex:"half"}),Re;if(Ie.isFormData(r)&&(Re=we.headers.get("content-type"))&&E.setContentType(Re),we.body){const[Ee,Ve]=b_(F,Ku(x_(b)));r=E_(we.body,T_,Ee,Ve)}}Ie.isString(C)||(C=C?"include":"omit");const q="credentials"in Request.prototype;B=new Request(e,{...T,signal:I,method:n.toUpperCase(),headers:E.normalize().toJSON(),body:r,duplex:"half",credentials:q?C:void 0});let J=await fetch(B,T);const Q=Uf&&(k==="stream"||k==="response");if(Uf&&(c||Q&&$)){const we={};["status","statusText","headers"].forEach(Be=>{we[Be]=J[Be]});const Re=Ie.toFiniteNumber(J.headers.get("content-length")),[Ee,Ve]=c&&b_(Re,Ku(x_(c),!0))||[];J=new Response(E_(J.body,T_,Ee,()=>{Ve&&Ve(),$&&$()}),we)}k=k||"text";let me=await Qu[Ie.findKey(Qu,k)||"text"](J,t);return!Q&&$&&$(),await new Promise((we,Re)=>{__(we,Re,{data:me,headers:hi.from(J.headers),status:J.status,statusText:J.statusText,config:t,request:B})})}catch(q){throw $&&$(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new Wt("Network Error",Wt.ERR_NETWORK,t,B),{cause:q.cause||q}):Wt.from(q,q&&q.code,t,B)}})};Ie.forEach(Hf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const D_=t=>`- ${t}`,FC=t=>Ie.isFunction(t)||t===null||t===!1,A_={getAdapter:t=>{t=Ie.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let d=0;d<e;d++){n=t[d];let p;if(r=n,!FC(n)&&(r=Hf[(p=String(n)).toLowerCase()],r===void 0))throw new Wt(`Unknown adapter '${p}'`);if(r)break;o[p||"#"+d]=r}if(!r){const d=Object.entries(o).map(([c,b])=>`adapter ${c} `+(b===!1?"is not supported by the environment":"is not available in the build"));let p=e?d.length>1?`since :
4
4
  `+d.map(D_).join(`
5
5
  `):" "+D_(d[0]):"as no adapter specified";throw new Wt("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return r},adapters:Hf};function Wf(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _l(null,t)}function M_(t){return Wf(t),t.headers=hi.from(t.headers),t.data=jf.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),A_.getAdapter(t.adapter||Zc.adapter)(t).then(function(r){return Wf(t),r.data=jf.call(t,t.transformResponse,r),r.headers=hi.from(r.headers),r},function(r){return y_(r)||(Wf(t),r&&r.response&&(r.response.data=jf.call(t,t.transformResponse,r.response),r.response.headers=hi.from(r.response.headers))),Promise.reject(r)})}const I_="1.10.0",eh={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{eh[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const P_={};eh.transitional=function(e,n,r){function o(d,p){return"[Axios v"+I_+"] Transitional option '"+d+"'"+p+(r?". "+r:"")}return(d,p,c)=>{if(e===!1)throw new Wt(o(p," has been removed"+(n?" in "+n:"")),Wt.ERR_DEPRECATED);return n&&!P_[p]&&(P_[p]=!0,console.warn(o(p," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(d,p,c):!0}},eh.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function $C(t,e,n){if(typeof t!="object")throw new Wt("options must be an object",Wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const d=r[o],p=e[d];if(p){const c=t[d],b=c===void 0||p(c,d,t);if(b!==!0)throw new Wt("option "+d+" must be "+b,Wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Wt("Unknown option "+d,Wt.ERR_BAD_OPTION)}}const th={assertOptions:$C,validators:eh},xs=th.validators;let ka=class{constructor(e){this.defaults=e||{},this.interceptors={request:new p_,response:new p_}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const d=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?d&&!String(r.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+d):r.stack=d}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=wa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:d}=n;r!==void 0&&th.assertOptions(r,{silentJSONParsing:xs.transitional(xs.boolean),forcedJSONParsing:xs.transitional(xs.boolean),clarifyTimeoutError:xs.transitional(xs.boolean)},!1),o!=null&&(Ie.isFunction(o)?n.paramsSerializer={serialize:o}:th.assertOptions(o,{encode:xs.function,serialize:xs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),th.assertOptions(n,{baseUrl:xs.spelling("baseURL"),withXsrfToken:xs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let p=d&&Ie.merge(d.common,d[n.method]);d&&Ie.forEach(["delete","get","head","post","put","patch","common"],B=>{delete d[B]}),n.headers=hi.concat(p,d);const c=[];let b=!0;this.interceptors.request.forEach(function($){typeof $.runWhen=="function"&&$.runWhen(n)===!1||(b=b&&$.synchronous,c.unshift($.fulfilled,$.rejected))});const k=[];this.interceptors.response.forEach(function($){k.push($.fulfilled,$.rejected)});let E,C=0,T;if(!b){const B=[M_.bind(this),void 0];for(B.unshift.apply(B,c),B.push.apply(B,k),T=B.length,E=Promise.resolve(n);C<T;)E=E.then(B[C++],B[C++]);return E}T=c.length;let I=n;for(C=0;C<T;){const B=c[C++],$=c[C++];try{I=B(I)}catch(F){$.call(this,F);break}}try{E=M_.call(this,I)}catch(B){return Promise.reject(B)}for(C=0,T=k.length;C<T;)E=E.then(k[C++],k[C++]);return E}getUri(e){e=wa(this.defaults,e);const n=v_(e.baseURL,e.url,e.allowAbsoluteUrls);return h_(n,e.params,e.paramsSerializer)}};Ie.forEach(["delete","get","head","options"],function(e){ka.prototype[e]=function(n,r){return this.request(wa(r||{},{method:e,url:n,data:(r||{}).data}))}}),Ie.forEach(["post","put","patch"],function(e){function n(r){return function(d,p,c){return this.request(wa(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:p}))}}ka.prototype[e]=n(),ka.prototype[e+"Form"]=n(!0)});let jC=class bE{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const r=this;this.promise.then(o=>{if(!r._listeners)return;let d=r._listeners.length;for(;d-- >0;)r._listeners[d](o);r._listeners=null}),this.promise.then=o=>{let d;const p=new Promise(c=>{r.subscribe(c),d=c}).then(o);return p.cancel=function(){r.unsubscribe(d)},p},e(function(d,p,c){r.reason||(r.reason=new _l(d,p,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new bE(function(o){e=o}),cancel:e}}};function UC(t){return function(n){return t.apply(null,n)}}function HC(t){return Ie.isObject(t)&&t.isAxiosError===!0}const qf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qf).forEach(([t,e])=>{qf[e]=t});function R_(t){const e=new ka(t),n=K0(ka.prototype.request,e);return Ie.extend(n,ka.prototype,e,{allOwnKeys:!0}),Ie.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return R_(wa(t,o))},n}const Oe=R_(Zc);Oe.Axios=ka,Oe.CanceledError=_l,Oe.CancelToken=jC,Oe.isCancel=y_,Oe.VERSION=I_,Oe.toFormData=Yu,Oe.AxiosError=Wt,Oe.Cancel=Oe.CanceledError,Oe.all=function(e){return Promise.all(e)},Oe.spread=UC,Oe.isAxiosError=HC,Oe.mergeConfig=wa,Oe.AxiosHeaders=hi,Oe.formToJSON=t=>m_(Ie.isHTMLForm(t)?new FormData(t):t),Oe.getAdapter=A_.getAdapter,Oe.HttpStatusCode=qf,Oe.default=Oe;const{Axios:IX,AxiosError:PX,CanceledError:RX,isCancel:NX,CancelToken:BX,VERSION:VX,all:zX,Cancel:OX,isAxiosError:LX,spread:FX,toFormData:$X,AxiosHeaders:jX,HttpStatusCode:UX,formToJSON:HX,getAdapter:WX,mergeConfig:qX}=Oe,et=a.ref({}),WC=()=>{const t=new CustomEvent("reloadTablePage");window.dispatchEvent(t)},nh=()=>{const t=new CustomEvent("reloadCardPage");window.dispatchEvent(t)},qC={class:"p-[10px]"},GC={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},ZC=["onClick"],YC=["disabled"],XC={__name:"vs-plugin-form",props:{handleClose:Function},setup(t){var C;const{$notify:e=()=>1}=(C=a.getCurrentInstance())==null?void 0:C.proxy,n=a.ref(!1),r=a.ref(null),o=a.ref(!1),d=a.ref({}),p=a.ref(),c=a.ref({}),b=T=>{n.value=!1,r.value=null,d.value={},c.value={};const I=new CustomEvent("closeFormPlugin");I.message=T,window.dispatchEvent(I)},k=async()=>{var T,I,B,$,F,q,J,Q,me,we,Re;try{if(((T=c.value)==null?void 0:T.method)!=="POST"){const Ve=await Oe.get(`${((I=c.value)==null?void 0:I.api)||"/api/table/"}${((B=c.value)==null?void 0:B.token)||(($=c.value)==null?void 0:$.id)||""}`);d.value=Ve.data}(F=c.value)!=null&&F.init&&(d.value=(q=c.value)==null?void 0:q.init);const{data:Ee}=await Oe.get(`/api/template/form/${((J=c.value)==null?void 0:J.token)||((Q=c.value)==null?void 0:Q.form)}`);if(Ee!=null&&Ee.obj&&(d.value={...d.value,...Ee.obj}),(me=c.value)!=null&&me.obj){const Ve=(Re=(we=c.value)==null?void 0:we.obj)==null?void 0:Re.split("#"),Be=Ve==null?void 0:Ve.reduce((Ze,tt)=>{const[Xe,ot]=tt==null?void 0:tt.split("=");return Ze[Xe]=ot,Ze},{});d.value={...d.value,...Be}}r.value=(Ee==null?void 0:Ee.schema)||Ee}catch(Ee){console.error("Error fetching form scheme:",Ee)}finally{n.value=!0}},E=async()=>{var T,I,B,$,F;if(!o.value){o.value=!0;try{await p.value.doValidation();const{data:q}=await Oe({method:((T=c.value)==null?void 0:T.method)||"PUT",url:`${((I=c.value)==null?void 0:I.api)||"/api/table/"}${((B=c.value)==null?void 0:B.token)||(($=c.value)==null?void 0:$.id)||""}`,data:d.value});nh(),WC(),b(q),e({title:"Успішно!",type:"success",message:"Операція виконана успішно"})}catch(q){e({title:"Помилка!",type:"error",message:q.message==="validation error"?"Перевірте правильність полів.":((F=q==null?void 0:q.response)==null?void 0:F.data)||"Сталася помилка"})}finally{o.value=!1}}};return a.onMounted(()=>{window.addEventListener("openFormPlugin",({options:T})=>{c.value=T,n.value=!0,k()})}),(T,I)=>{var F;const B=a.resolveComponent("VsForm"),$=a.resolveComponent("VsDialog");return r.value?(a.openBlock(),a.createBlock($,{key:0,title:((F=c.value)==null?void 0:F.title)||"Редагувати",visible:n.value,"onUpdate:visible":I[1]||(I[1]=q=>n.value=q),onOnClose:b},{footer:a.withCtx(({handleClose:q})=>[a.createElementVNode("div",GC,[a.createElementVNode("button",{style:{border:"1px solid #000"},onClick:J=>q(),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border-gray-200 rounded-lg !border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати ",8,ZC),a.createElementVNode("button",{disabled:o.value,onClick:E,class:"py-2 px-3 inline-flex items-center gap-x-2 text-[14px] font-[400] whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700"}," Зберегти ",8,YC)])]),default:a.withCtx(()=>[a.createElementVNode("div",qC,[a.createVNode(B,{ref_key:"form",ref:p,scheme:r.value,modelValue:d.value,"onUpdate:modelValue":I[0]||(I[0]=q=>d.value=q),class:"p-0"},null,8,["scheme","modelValue"])])]),_:1},8,["title","visible"])):a.createCommentVNode("",!0)}}},KC={__name:"admin",setup(t){var n,r;document.title=((n=et.value)==null?void 0:n.titlePrefix)||""+((r=et.value)==null?void 0:r.title)||"",e(et.value.favicon);function e(o){let d=document.querySelector("link[rel~='icon']");d||(d=document.createElement("link"),d.rel="icon",document.getElementsByTagName("head")[0].appendChild(d)),d.href=o}return(o,d)=>{const p=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(p),a.createVNode(XC)],64)}}};function JC(){return N_().__VUE_DEVTOOLS_GLOBAL_HOOK__}function N_(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const QC=typeof Proxy=="function",eS="devtools-plugin:setup",tS="plugin:settings:set";let bl,Gf;function nS(){var t;return bl!==void 0||(typeof window<"u"&&window.performance?(bl=!0,Gf=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(bl=!0,Gf=globalThis.perf_hooks.performance):bl=!1),bl}function rS(){return nS()?Gf.now():Date.now()}class iS{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const p in e.settings){const c=e.settings[p];r[p]=c.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let d=Object.assign({},r);try{const p=localStorage.getItem(o),c=JSON.parse(p);Object.assign(d,c)}catch{}this.fallbacks={getSettings(){return d},setSettings(p){try{localStorage.setItem(o,JSON.stringify(p))}catch{}d=p},now(){return rS()}},n&&n.on(tS,(p,c)=>{p===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(p,c)=>this.target?this.target.on[c]:(...b)=>{this.onQueue.push({method:c,args:b})}}),this.proxiedTarget=new Proxy({},{get:(p,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...b)=>(this.targetQueue.push({method:c,args:b,resolve:()=>{}}),this.fallbacks[c](...b)):(...b)=>new Promise(k=>{this.targetQueue.push({method:c,args:b,resolve:k})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function sS(t,e){const n=t,r=N_(),o=JC(),d=QC&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!d))o.emit(eS,t,e);else{const p=d?new iS(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:p}),p&&e(p.proxiedTarget)}}var Ft={};const js=typeof document<"u";function B_(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function oS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&B_(t.default)}const gn=Object.assign;function Zf(t,e){const n={};for(const r in e){const o=e[r];n[r]=Si(o)?o.map(t):t(o)}return n}const Xc=()=>{},Si=Array.isArray;function Jt(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}const V_=/#/g,aS=/&/g,lS=/\//g,cS=/=/g,dS=/\?/g,z_=/\+/g,uS=/%5B/g,hS=/%5D/g,O_=/%5E/g,pS=/%60/g,L_=/%7B/g,fS=/%7C/g,F_=/%7D/g,mS=/%20/g;function Yf(t){return encodeURI(""+t).replace(fS,"|").replace(uS,"[").replace(hS,"]")}function gS(t){return Yf(t).replace(L_,"{").replace(F_,"}").replace(O_,"^")}function Xf(t){return Yf(t).replace(z_,"%2B").replace(mS,"+").replace(V_,"%23").replace(aS,"%26").replace(pS,"`").replace(L_,"{").replace(F_,"}").replace(O_,"^")}function yS(t){return Xf(t).replace(cS,"%3D")}function _S(t){return Yf(t).replace(V_,"%23").replace(dS,"%3F")}function bS(t){return t==null?"":_S(t).replace(lS,"%2F")}function xl(t){try{return decodeURIComponent(""+t)}catch{Ft.NODE_ENV!=="production"&&Jt(`Error decoding "${t}". Using original value`)}return""+t}const xS=/\/$/,vS=t=>t.replace(xS,"");function Kf(t,e,n="/"){let r,o={},d="",p="";const c=e.indexOf("#");let b=e.indexOf("?");return c<b&&c>=0&&(b=-1),b>-1&&(r=e.slice(0,b),d=e.slice(b+1,c>-1?c:e.length),o=t(d)),c>-1&&(r=r||e.slice(0,c),p=e.slice(c,e.length)),r=ES(r??e,n),{fullPath:r+(d&&"?")+d+p,path:r,query:o,hash:xl(p)}}function wS(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function $_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function j_(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&So(e.matched[r],n.matched[o])&&U_(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function So(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function U_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!kS(t[n],e[n]))return!1;return!0}function kS(t,e){return Si(t)?H_(t,e):Si(e)?H_(e,t):t===e}function H_(t,e){return Si(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function ES(t,e){if(t.startsWith("/"))return t;if(Ft.NODE_ENV!=="production"&&!e.startsWith("/"))return Jt(`Cannot resolve a relative location without an absolute path. Trying to resolve "${t}" from "${e}". It should look like "/${e}".`),t;if(!t)return e;const n=e.split("/"),r=t.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let d=n.length-1,p,c;for(p=0;p<r.length;p++)if(c=r[p],c!==".")if(c==="..")d>1&&d--;else break;return n.slice(0,d).join("/")+"/"+r.slice(p).join("/")}const To={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Kc;(function(t){t.pop="pop",t.push="push"})(Kc||(Kc={}));var Jc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Jc||(Jc={}));function CS(t){if(!t)if(js){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),vS(t)}const SS=/^[^#]+#/;function TS(t,e){return t.replace(SS,"#")+e}function DS(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const rh=()=>({left:window.scrollX,top:window.scrollY});function AS(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#");if(Ft.NODE_ENV!=="production"&&typeof t.el=="string"&&(!r||!document.getElementById(t.el.slice(1))))try{const d=document.querySelector(t.el);if(r&&d){Jt(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`);return}}catch{Jt(`The selector "${t.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o){Ft.NODE_ENV!=="production"&&Jt(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);return}e=DS(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function W_(t,e){return(history.state?history.state.position-e:-1)+t}const Jf=new Map;function MS(t,e){Jf.set(t,e)}function IS(t){const e=Jf.get(t);return Jf.delete(t),e}let PS=()=>location.protocol+"//"+location.host;function q_(t,e){const{pathname:n,search:r,hash:o}=e,d=t.indexOf("#");if(d>-1){let c=o.includes(t.slice(d))?t.slice(d).length:1,b=o.slice(c);return b[0]!=="/"&&(b="/"+b),$_(b,"")}return $_(n,t)+r+o}function RS(t,e,n,r){let o=[],d=[],p=null;const c=({state:T})=>{const I=q_(t,location),B=n.value,$=e.value;let F=0;if(T){if(n.value=I,e.value=T,p&&p===B){p=null;return}F=$?T.position-$.position:0}else r(I);o.forEach(q=>{q(n.value,B,{delta:F,type:Kc.pop,direction:F?F>0?Jc.forward:Jc.back:Jc.unknown})})};function b(){p=n.value}function k(T){o.push(T);const I=()=>{const B=o.indexOf(T);B>-1&&o.splice(B,1)};return d.push(I),I}function E(){const{history:T}=window;T.state&&T.replaceState(gn({},T.state,{scroll:rh()}),"")}function C(){for(const T of d)T();d=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",E)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",E,{passive:!0}),{pauseListeners:b,listen:k,destroy:C}}function G_(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?rh():null}}function NS(t){const{history:e,location:n}=window,r={value:q_(t,n)},o={value:e.state};o.value||d(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(b,k,E){const C=t.indexOf("#"),T=C>-1?(n.host&&document.querySelector("base")?t:t.slice(C))+b:PS()+t+b;try{e[E?"replaceState":"pushState"](k,"",T),o.value=k}catch(I){Ft.NODE_ENV!=="production"?Jt("Error with push/replace State",I):console.error(I),n[E?"replace":"assign"](T)}}function p(b,k){const E=gn({},e.state,G_(o.value.back,b,o.value.forward,!0),k,{position:o.value.position});d(b,E,!0),r.value=b}function c(b,k){const E=gn({},o.value,e.state,{forward:b,scroll:rh()});Ft.NODE_ENV!=="production"&&!e.state&&Jt(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
6
+ `+d):r.stack=d}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=wa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:d}=n;r!==void 0&&th.assertOptions(r,{silentJSONParsing:xs.transitional(xs.boolean),forcedJSONParsing:xs.transitional(xs.boolean),clarifyTimeoutError:xs.transitional(xs.boolean)},!1),o!=null&&(Ie.isFunction(o)?n.paramsSerializer={serialize:o}:th.assertOptions(o,{encode:xs.function,serialize:xs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),th.assertOptions(n,{baseUrl:xs.spelling("baseURL"),withXsrfToken:xs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let p=d&&Ie.merge(d.common,d[n.method]);d&&Ie.forEach(["delete","get","head","post","put","patch","common"],B=>{delete d[B]}),n.headers=hi.concat(p,d);const c=[];let b=!0;this.interceptors.request.forEach(function($){typeof $.runWhen=="function"&&$.runWhen(n)===!1||(b=b&&$.synchronous,c.unshift($.fulfilled,$.rejected))});const k=[];this.interceptors.response.forEach(function($){k.push($.fulfilled,$.rejected)});let E,C=0,T;if(!b){const B=[M_.bind(this),void 0];for(B.unshift.apply(B,c),B.push.apply(B,k),T=B.length,E=Promise.resolve(n);C<T;)E=E.then(B[C++],B[C++]);return E}T=c.length;let I=n;for(C=0;C<T;){const B=c[C++],$=c[C++];try{I=B(I)}catch(F){$.call(this,F);break}}try{E=M_.call(this,I)}catch(B){return Promise.reject(B)}for(C=0,T=k.length;C<T;)E=E.then(k[C++],k[C++]);return E}getUri(e){e=wa(this.defaults,e);const n=v_(e.baseURL,e.url,e.allowAbsoluteUrls);return h_(n,e.params,e.paramsSerializer)}};Ie.forEach(["delete","get","head","options"],function(e){ka.prototype[e]=function(n,r){return this.request(wa(r||{},{method:e,url:n,data:(r||{}).data}))}}),Ie.forEach(["post","put","patch"],function(e){function n(r){return function(d,p,c){return this.request(wa(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:p}))}}ka.prototype[e]=n(),ka.prototype[e+"Form"]=n(!0)});let jC=class bE{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const r=this;this.promise.then(o=>{if(!r._listeners)return;let d=r._listeners.length;for(;d-- >0;)r._listeners[d](o);r._listeners=null}),this.promise.then=o=>{let d;const p=new Promise(c=>{r.subscribe(c),d=c}).then(o);return p.cancel=function(){r.unsubscribe(d)},p},e(function(d,p,c){r.reason||(r.reason=new _l(d,p,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new bE(function(o){e=o}),cancel:e}}};function UC(t){return function(n){return t.apply(null,n)}}function HC(t){return Ie.isObject(t)&&t.isAxiosError===!0}const qf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qf).forEach(([t,e])=>{qf[e]=t});function R_(t){const e=new ka(t),n=K0(ka.prototype.request,e);return Ie.extend(n,ka.prototype,e,{allOwnKeys:!0}),Ie.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return R_(wa(t,o))},n}const Oe=R_(Zc);Oe.Axios=ka,Oe.CanceledError=_l,Oe.CancelToken=jC,Oe.isCancel=y_,Oe.VERSION=I_,Oe.toFormData=Yu,Oe.AxiosError=Wt,Oe.Cancel=Oe.CanceledError,Oe.all=function(e){return Promise.all(e)},Oe.spread=UC,Oe.isAxiosError=HC,Oe.mergeConfig=wa,Oe.AxiosHeaders=hi,Oe.formToJSON=t=>m_(Ie.isHTMLForm(t)?new FormData(t):t),Oe.getAdapter=A_.getAdapter,Oe.HttpStatusCode=qf,Oe.default=Oe;const{Axios:IX,AxiosError:PX,CanceledError:RX,isCancel:NX,CancelToken:BX,VERSION:VX,all:zX,Cancel:OX,isAxiosError:LX,spread:FX,toFormData:$X,AxiosHeaders:jX,HttpStatusCode:UX,formToJSON:HX,getAdapter:WX,mergeConfig:qX}=Oe,et=a.ref({}),WC=()=>{const t=new CustomEvent("reloadTablePage");window.dispatchEvent(t)},nh=()=>{const t=new CustomEvent("reloadCardPage");window.dispatchEvent(t)},qC={class:"p-[10px]"},GC={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},ZC=["onClick"],YC=["disabled"],XC={__name:"vs-plugin-form",props:{handleClose:Function},setup(t){var C;const{$notify:e=()=>1}=(C=a.getCurrentInstance())==null?void 0:C.proxy,n=a.ref(!1),r=a.ref(null),o=a.ref(!1),d=a.ref({}),p=a.ref(),c=a.ref({}),b=T=>{n.value=!1,r.value=null,d.value={},c.value={};const I=new CustomEvent("closeFormPlugin");I.message=T,window.dispatchEvent(I)},k=async()=>{var T,I,B,$,F,q,J,Q,me,we,Re;try{if(((T=c.value)==null?void 0:T.method)!=="POST"){const Ve=await Oe.get(`${((I=c.value)==null?void 0:I.api)||"/api/table/"}${((B=c.value)==null?void 0:B.token)||(($=c.value)==null?void 0:$.id)||""}`);d.value=Ve.data}(F=c.value)!=null&&F.init&&(d.value=(q=c.value)==null?void 0:q.init);const{data:Ee}=await Oe.get(`/api/template/form/${((J=c.value)==null?void 0:J.token)||((Q=c.value)==null?void 0:Q.form)}`);if(Ee!=null&&Ee.obj&&(d.value={...d.value,...Ee.obj}),(me=c.value)!=null&&me.obj){const Ve=(Re=(we=c.value)==null?void 0:we.obj)==null?void 0:Re.split("#"),Be=Ve==null?void 0:Ve.reduce((Ze,tt)=>{const[Xe,ot]=tt==null?void 0:tt.split("=");return Ze[Xe]=ot,Ze},{});d.value={...d.value,...Be}}r.value=(Ee==null?void 0:Ee.schema)||Ee}catch(Ee){console.error("Error fetching form scheme:",Ee)}finally{n.value=!0}},E=async()=>{var T,I,B,$,F,q,J;if(!o.value){o.value=!0;try{await p.value.doValidation();const{data:Q}=await Oe({method:((T=c.value)==null?void 0:T.method)||"PUT",url:`${((I=c.value)==null?void 0:I.api)||"/api/table/"}${((B=c.value)==null?void 0:B.token)||(($=c.value)==null?void 0:$.id)||""}`,data:d.value});nh(),WC(),b(Q),e({title:"Успішно!",type:"success",message:"Операція виконана успішно"})}catch(Q){e({title:"Помилка!",type:"error",message:Q.message==="validation error"?"Перевірте правильність полів.":((q=(F=Q==null?void 0:Q.response)==null?void 0:F.data)==null?void 0:q.error)||((J=Q==null?void 0:Q.response)==null?void 0:J.data)||"Сталася помилка"})}finally{o.value=!1}}};return a.onMounted(()=>{window.addEventListener("openFormPlugin",({options:T})=>{c.value=T,n.value=!0,k()})}),(T,I)=>{var F;const B=a.resolveComponent("VsForm"),$=a.resolveComponent("VsDialog");return r.value?(a.openBlock(),a.createBlock($,{key:0,title:((F=c.value)==null?void 0:F.title)||"Редагувати",visible:n.value,"onUpdate:visible":I[1]||(I[1]=q=>n.value=q),onOnClose:b},{footer:a.withCtx(({handleClose:q})=>[a.createElementVNode("div",GC,[a.createElementVNode("button",{style:{border:"1px solid #000"},onClick:J=>q(),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border-gray-200 rounded-lg !border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати ",8,ZC),a.createElementVNode("button",{disabled:o.value,onClick:E,class:"py-2 px-3 inline-flex items-center gap-x-2 text-[14px] font-[400] whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700"}," Зберегти ",8,YC)])]),default:a.withCtx(()=>[a.createElementVNode("div",qC,[a.createVNode(B,{ref_key:"form",ref:p,scheme:r.value,modelValue:d.value,"onUpdate:modelValue":I[0]||(I[0]=q=>d.value=q),class:"p-0"},null,8,["scheme","modelValue"])])]),_:1},8,["title","visible"])):a.createCommentVNode("",!0)}}},KC={__name:"admin",setup(t){var n,r;document.title=((n=et.value)==null?void 0:n.titlePrefix)||""+((r=et.value)==null?void 0:r.title)||"",e(et.value.favicon);function e(o){let d=document.querySelector("link[rel~='icon']");d||(d=document.createElement("link"),d.rel="icon",document.getElementsByTagName("head")[0].appendChild(d)),d.href=o}return(o,d)=>{const p=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(p),a.createVNode(XC)],64)}}};function JC(){return N_().__VUE_DEVTOOLS_GLOBAL_HOOK__}function N_(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const QC=typeof Proxy=="function",eS="devtools-plugin:setup",tS="plugin:settings:set";let bl,Gf;function nS(){var t;return bl!==void 0||(typeof window<"u"&&window.performance?(bl=!0,Gf=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(bl=!0,Gf=globalThis.perf_hooks.performance):bl=!1),bl}function rS(){return nS()?Gf.now():Date.now()}class iS{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const p in e.settings){const c=e.settings[p];r[p]=c.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let d=Object.assign({},r);try{const p=localStorage.getItem(o),c=JSON.parse(p);Object.assign(d,c)}catch{}this.fallbacks={getSettings(){return d},setSettings(p){try{localStorage.setItem(o,JSON.stringify(p))}catch{}d=p},now(){return rS()}},n&&n.on(tS,(p,c)=>{p===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(p,c)=>this.target?this.target.on[c]:(...b)=>{this.onQueue.push({method:c,args:b})}}),this.proxiedTarget=new Proxy({},{get:(p,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...b)=>(this.targetQueue.push({method:c,args:b,resolve:()=>{}}),this.fallbacks[c](...b)):(...b)=>new Promise(k=>{this.targetQueue.push({method:c,args:b,resolve:k})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function sS(t,e){const n=t,r=N_(),o=JC(),d=QC&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!d))o.emit(eS,t,e);else{const p=d?new iS(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:p}),p&&e(p.proxiedTarget)}}var Ft={};const js=typeof document<"u";function B_(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function oS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&B_(t.default)}const gn=Object.assign;function Zf(t,e){const n={};for(const r in e){const o=e[r];n[r]=Si(o)?o.map(t):t(o)}return n}const Xc=()=>{},Si=Array.isArray;function Jt(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}const V_=/#/g,aS=/&/g,lS=/\//g,cS=/=/g,dS=/\?/g,z_=/\+/g,uS=/%5B/g,hS=/%5D/g,O_=/%5E/g,pS=/%60/g,L_=/%7B/g,fS=/%7C/g,F_=/%7D/g,mS=/%20/g;function Yf(t){return encodeURI(""+t).replace(fS,"|").replace(uS,"[").replace(hS,"]")}function gS(t){return Yf(t).replace(L_,"{").replace(F_,"}").replace(O_,"^")}function Xf(t){return Yf(t).replace(z_,"%2B").replace(mS,"+").replace(V_,"%23").replace(aS,"%26").replace(pS,"`").replace(L_,"{").replace(F_,"}").replace(O_,"^")}function yS(t){return Xf(t).replace(cS,"%3D")}function _S(t){return Yf(t).replace(V_,"%23").replace(dS,"%3F")}function bS(t){return t==null?"":_S(t).replace(lS,"%2F")}function xl(t){try{return decodeURIComponent(""+t)}catch{Ft.NODE_ENV!=="production"&&Jt(`Error decoding "${t}". Using original value`)}return""+t}const xS=/\/$/,vS=t=>t.replace(xS,"");function Kf(t,e,n="/"){let r,o={},d="",p="";const c=e.indexOf("#");let b=e.indexOf("?");return c<b&&c>=0&&(b=-1),b>-1&&(r=e.slice(0,b),d=e.slice(b+1,c>-1?c:e.length),o=t(d)),c>-1&&(r=r||e.slice(0,c),p=e.slice(c,e.length)),r=ES(r??e,n),{fullPath:r+(d&&"?")+d+p,path:r,query:o,hash:xl(p)}}function wS(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function $_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function j_(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&So(e.matched[r],n.matched[o])&&U_(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function So(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function U_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!kS(t[n],e[n]))return!1;return!0}function kS(t,e){return Si(t)?H_(t,e):Si(e)?H_(e,t):t===e}function H_(t,e){return Si(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function ES(t,e){if(t.startsWith("/"))return t;if(Ft.NODE_ENV!=="production"&&!e.startsWith("/"))return Jt(`Cannot resolve a relative location without an absolute path. Trying to resolve "${t}" from "${e}". It should look like "/${e}".`),t;if(!t)return e;const n=e.split("/"),r=t.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let d=n.length-1,p,c;for(p=0;p<r.length;p++)if(c=r[p],c!==".")if(c==="..")d>1&&d--;else break;return n.slice(0,d).join("/")+"/"+r.slice(p).join("/")}const To={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Kc;(function(t){t.pop="pop",t.push="push"})(Kc||(Kc={}));var Jc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Jc||(Jc={}));function CS(t){if(!t)if(js){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),vS(t)}const SS=/^[^#]+#/;function TS(t,e){return t.replace(SS,"#")+e}function DS(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const rh=()=>({left:window.scrollX,top:window.scrollY});function AS(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#");if(Ft.NODE_ENV!=="production"&&typeof t.el=="string"&&(!r||!document.getElementById(t.el.slice(1))))try{const d=document.querySelector(t.el);if(r&&d){Jt(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`);return}}catch{Jt(`The selector "${t.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o){Ft.NODE_ENV!=="production"&&Jt(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);return}e=DS(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function W_(t,e){return(history.state?history.state.position-e:-1)+t}const Jf=new Map;function MS(t,e){Jf.set(t,e)}function IS(t){const e=Jf.get(t);return Jf.delete(t),e}let PS=()=>location.protocol+"//"+location.host;function q_(t,e){const{pathname:n,search:r,hash:o}=e,d=t.indexOf("#");if(d>-1){let c=o.includes(t.slice(d))?t.slice(d).length:1,b=o.slice(c);return b[0]!=="/"&&(b="/"+b),$_(b,"")}return $_(n,t)+r+o}function RS(t,e,n,r){let o=[],d=[],p=null;const c=({state:T})=>{const I=q_(t,location),B=n.value,$=e.value;let F=0;if(T){if(n.value=I,e.value=T,p&&p===B){p=null;return}F=$?T.position-$.position:0}else r(I);o.forEach(q=>{q(n.value,B,{delta:F,type:Kc.pop,direction:F?F>0?Jc.forward:Jc.back:Jc.unknown})})};function b(){p=n.value}function k(T){o.push(T);const I=()=>{const B=o.indexOf(T);B>-1&&o.splice(B,1)};return d.push(I),I}function E(){const{history:T}=window;T.state&&T.replaceState(gn({},T.state,{scroll:rh()}),"")}function C(){for(const T of d)T();d=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",E)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",E,{passive:!0}),{pauseListeners:b,listen:k,destroy:C}}function G_(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?rh():null}}function NS(t){const{history:e,location:n}=window,r={value:q_(t,n)},o={value:e.state};o.value||d(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(b,k,E){const C=t.indexOf("#"),T=C>-1?(n.host&&document.querySelector("base")?t:t.slice(C))+b:PS()+t+b;try{e[E?"replaceState":"pushState"](k,"",T),o.value=k}catch(I){Ft.NODE_ENV!=="production"?Jt("Error with push/replace State",I):console.error(I),n[E?"replace":"assign"](T)}}function p(b,k){const E=gn({},e.state,G_(o.value.back,b,o.value.forward,!0),k,{position:o.value.position});d(b,E,!0),r.value=b}function c(b,k){const E=gn({},o.value,e.state,{forward:b,scroll:rh()});Ft.NODE_ENV!=="production"&&!e.state&&Jt(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
7
7
 
8
8
  history.replaceState(history.state, '', url)
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as e, createBlock as r, openBlock as t } from "vue";
2
- import { _ as c } from "./import-file-Bnvich4-.js";
2
+ import { _ as c } from "./import-file-BLgU6k4_.js";
3
3
  const n = {};
4
4
  function s(_, p, a, i, f, m) {
5
5
  const o = e("router-view");
@@ -1,4 +1,4 @@
1
- import { _ as $, f as d, u as k, s as V } from "./import-file-Bnvich4-.js";
1
+ import { _ as $, f as d, u as k, s as V } from "./import-file-BLgU6k4_.js";
2
2
  import { resolveComponent as j, createElementBlock as g, openBlock as p, createElementVNode as m, createCommentVNode as b, normalizeClass as x, normalizeStyle as y, createBlock as E } from "vue";
3
3
  const O = {
4
4
  data() {