prlg-ui 1.8.65 → 1.8.67

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.
@@ -0,0 +1,259 @@
1
+ import { inject as P, ref as h, onMounted as z, provide as O, onUnmounted as T, defineComponent as w, useId as S, computed as k, createElementBlock as d, openBlock as n, normalizeClass as C, createCommentVNode as f, createBlock as b, createVNode as _, unref as v, resolveDynamicComponent as V, toDisplayString as y, Teleport as R, Transition as N, withCtx as A, normalizeStyle as Z, createElementVNode as m, useTemplateRef as j, Fragment as W } from "vue";
2
+ import { F as Y, E as D, W as L, P as K, C as E, _ as F, a as U } from "./FileIcon-maHE2Nhr.js";
3
+ import { f as M } from "./parseFileSize.util-CxVk4CvB.js";
4
+ class q {
5
+ stack = [];
6
+ baseZIndex = {
7
+ confirm: 1400,
8
+ modal: 1300,
9
+ drawer: 1200,
10
+ popover: 1100,
11
+ tooltip: 1e3
12
+ };
13
+ step = 10;
14
+ // шаг между "корневыми" оверлеями одного типа
15
+ childStep = 1;
16
+ // шаг для вложенных (popover внутри modal и т.д.)
17
+ idCounter = 0;
18
+ listeners = /* @__PURE__ */ new Set();
19
+ subscribe(a) {
20
+ return this.listeners.add(a), () => this.listeners.delete(a);
21
+ }
22
+ notify() {
23
+ this.listeners.forEach((a) => a());
24
+ }
25
+ register(a, t) {
26
+ const o = ++this.idCounter, l = t ? this.stack.find((c) => c.id === t) : void 0;
27
+ let i;
28
+ if (l)
29
+ i = l.zIndex + this.childStep;
30
+ else {
31
+ const c = this.stack.filter((u) => u.type === a && !u.parentId);
32
+ i = (c.length ? Math.max(...c.map((u) => u.zIndex)) : this.baseZIndex[a]) + this.step;
33
+ }
34
+ const s = { id: o, type: a, parentId: t ?? null, zIndex: i };
35
+ return this.stack.push(s), this.notify(), s;
36
+ }
37
+ unregister(a) {
38
+ this.stack = this.stack.filter((t) => t.id !== a), this.notify();
39
+ }
40
+ getTop() {
41
+ return this.stack.length ? this.stack[this.stack.length - 1] : null;
42
+ }
43
+ isTop(a) {
44
+ return this.getTop()?.id === a;
45
+ }
46
+ getStack() {
47
+ return [...this.stack];
48
+ }
49
+ }
50
+ const I = new q(), x = Symbol("OVERLAY_PARENT");
51
+ function G(e) {
52
+ const a = P(x, null), t = h(null);
53
+ return z(() => {
54
+ t.value = I.register(e, a ?? null), t.value && O(x, t.value.id);
55
+ }), T(() => {
56
+ t.value && I.unregister(t.value.id);
57
+ }), {
58
+ zIndex: t,
59
+ isTop: () => t.value ? I.isTop(t.value.id) : !1
60
+ };
61
+ }
62
+ function H(e) {
63
+ return e.startsWith("image/") ? "image" : e === "application/pdf" ? "pdf" : e === "application/msword" || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "word" : e === "application/vnd.ms-excel" || e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "excel" : "other";
64
+ }
65
+ const J = {
66
+ key: 1,
67
+ class: "file__title"
68
+ }, Q = {
69
+ key: 2,
70
+ class: "file__info"
71
+ }, X = {
72
+ key: 0,
73
+ class: "file__type"
74
+ }, ee = {
75
+ key: 1,
76
+ class: "file__info-separator"
77
+ }, te = {
78
+ key: 2,
79
+ class: "file__size"
80
+ }, le = /* @__PURE__ */ w({
81
+ __name: "File",
82
+ props: {
83
+ file: {},
84
+ viewName: { type: Boolean, default: !1 },
85
+ outlined: { type: Boolean, default: !0 },
86
+ removable: { type: Boolean }
87
+ },
88
+ emits: ["remove"],
89
+ setup(e, { emit: a }) {
90
+ const t = a, o = S(), l = h(null);
91
+ async function i(r, u = "image") {
92
+ const p = await (await fetch(r)).blob(), $ = p.type.split("/")[1] || "", B = $ ? `${u}.${$}` : u;
93
+ return new File([p], B, { type: p.type });
94
+ }
95
+ const s = k(() => l.value && l.value.mime ? H(l.value.mime) : null), c = k(() => {
96
+ switch (s.value) {
97
+ case "pdf":
98
+ return K;
99
+ case "word":
100
+ return L;
101
+ case "excel":
102
+ return D;
103
+ case "other":
104
+ default:
105
+ return Y;
106
+ }
107
+ });
108
+ return z(async () => {
109
+ if (typeof e.file == "string") {
110
+ const r = await i(e.file);
111
+ l.value = {
112
+ id: o,
113
+ url: e.file,
114
+ name: r.name,
115
+ mime: r.type,
116
+ size: r.size
117
+ };
118
+ } else
119
+ l.value = e.file;
120
+ }), (r, u) => (n(), d("div", {
121
+ class: C(["file", { "file--outlined": r.outlined }])
122
+ }, [
123
+ r.removable && typeof r.file != "string" ? (n(), d("button", {
124
+ key: 0,
125
+ class: "file__remove",
126
+ onClick: u[0] || (u[0] = (g) => t("remove", r.file))
127
+ }, [
128
+ _(v(E))
129
+ ])) : f("", !0),
130
+ (n(), b(V(c.value), { class: "file__icon" })),
131
+ l.value && l.value.name && r.viewName ? (n(), d("div", J, y(l.value ? l.value.name.split(".")[0] : "unknown"), 1)) : f("", !0),
132
+ l.value ? (n(), d("div", Q, [
133
+ l.value.mime ? (n(), d("div", X, y(s.value), 1)) : f("", !0),
134
+ l.value.mime && l.value.size ? (n(), d("div", ee)) : f("", !0),
135
+ l.value.size ? (n(), d("div", te, y(l.value ? v(M)(l.value.size) : "0 Б"), 1)) : f("", !0)
136
+ ])) : f("", !0)
137
+ ], 2));
138
+ }
139
+ }), ge = /* @__PURE__ */ F(le, [["__scopeId", "data-v-9dee864d"]]), se = { class: "image-full-modal__wrapper" }, ae = { class: "image-full-modal__header" }, ie = { class: "image-full-modal__main" }, ne = ["src", "alt"], oe = /* @__PURE__ */ w({
140
+ __name: "ImageFullModal",
141
+ props: {
142
+ src: {},
143
+ alt: {}
144
+ },
145
+ setup(e, { expose: a }) {
146
+ const t = h(!1), { zIndex: o } = G("modal");
147
+ return a({
148
+ open: () => {
149
+ t.value = !0;
150
+ },
151
+ close: () => {
152
+ t.value = !1;
153
+ }
154
+ }), (l, i) => (n(), b(R, { to: "body" }, [
155
+ _(N, { name: "fade" }, {
156
+ default: A(() => [
157
+ t.value ? (n(), d("div", {
158
+ key: 0,
159
+ class: "image-full-modal",
160
+ style: Z({ zIndex: v(o)?.zIndex })
161
+ }, [
162
+ m("div", {
163
+ class: "image-full-modal__overlay",
164
+ onClick: i[0] || (i[0] = (s) => t.value = !1)
165
+ }),
166
+ m("div", se, [
167
+ m("div", ae, [
168
+ m("button", {
169
+ class: "image-full-modal__close",
170
+ onClick: i[1] || (i[1] = (s) => t.value = !1)
171
+ }, [
172
+ _(v(E))
173
+ ])
174
+ ]),
175
+ m("div", ie, [
176
+ m("img", {
177
+ src: l.src,
178
+ alt: l.alt
179
+ }, null, 8, ne)
180
+ ]),
181
+ i[2] || (i[2] = m("div", { class: "image-full-modal__footer" }, null, -1))
182
+ ])
183
+ ], 4)) : f("", !0)
184
+ ]),
185
+ _: 1
186
+ })
187
+ ]));
188
+ }
189
+ }), re = /* @__PURE__ */ F(oe, [["__scopeId", "data-v-b9bc03dd"]]), ue = ["src", "alt"], ce = {
190
+ key: 1,
191
+ class: "image__info"
192
+ }, de = {
193
+ key: 0,
194
+ class: "image__size"
195
+ }, fe = /* @__PURE__ */ w({
196
+ __name: "Image",
197
+ props: {
198
+ file: {},
199
+ alt: {},
200
+ size: { default: "medium" },
201
+ fullScreen: { type: Boolean },
202
+ viewInfo: { type: Boolean, default: !1 },
203
+ zIndexPreview: { default: 1002 }
204
+ },
205
+ setup(e) {
206
+ const a = S(), t = j("imageFullModal"), o = h(null);
207
+ async function l(s, c = "image") {
208
+ const u = await (await fetch(s)).blob(), g = u.type.split("/")[1] || "", p = g ? `${c}.${g}` : c;
209
+ return new File([u], p, { type: u.type });
210
+ }
211
+ const i = k(() => typeof e.file == "string" ? e.file : e.file.url);
212
+ return z(async () => {
213
+ if (e.viewInfo)
214
+ if (typeof e.file == "string") {
215
+ const s = await l(e.file);
216
+ o.value = {
217
+ id: a,
218
+ url: e.file,
219
+ name: s.name,
220
+ mime: s.type,
221
+ size: s.size
222
+ };
223
+ } else
224
+ o.value = e.file;
225
+ }), (s, c) => (n(), d(W, null, [
226
+ m("div", {
227
+ class: C(["image", `image--${s.size}`, { "image--full-screen": s.fullScreen }])
228
+ }, [
229
+ s.fullScreen ? (n(), d("div", {
230
+ key: 0,
231
+ class: "image__overlay",
232
+ onClick: c[0] || (c[0] = (r) => t.value?.open())
233
+ }, [
234
+ _(v(U))
235
+ ])) : f("", !0),
236
+ m("img", {
237
+ src: i.value,
238
+ alt: s.alt
239
+ }, null, 8, ue),
240
+ s.viewInfo && o.value && (o.value.mime || o.value.size) && s.size === "large" ? (n(), d("div", ce, [
241
+ o.value.size ? (n(), d("div", de, y(o.value ? v(M)(o.value.size) : "0 Б"), 1)) : f("", !0)
242
+ ])) : f("", !0)
243
+ ], 2),
244
+ s.fullScreen ? (n(), b(re, {
245
+ key: 0,
246
+ ref: "imageFullModal",
247
+ src: i.value,
248
+ alt: s.alt,
249
+ zIndexPreview: s.zIndexPreview
250
+ }, null, 8, ["src", "alt", "zIndexPreview"])) : f("", !0)
251
+ ], 64));
252
+ }
253
+ }), ye = /* @__PURE__ */ F(fe, [["__scopeId", "data-v-1f4b3241"]]);
254
+ export {
255
+ ge as F,
256
+ ye as I,
257
+ H as g,
258
+ G as u
259
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),d=require("./FileIcon-BE4ItwkK.cjs"),g=require("./parseFileSize.util-Bg1rLRLQ.cjs");class B{stack=[];baseZIndex={confirm:1400,modal:1300,drawer:1200,popover:1100,tooltip:1e3};step=10;childStep=1;idCounter=0;listeners=new Set;subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}notify(){this.listeners.forEach(a=>a())}register(a,l){const s=++this.idCounter,n=l?this.stack.find(u=>u.id===l):void 0;let i;if(n)i=n.zIndex+this.childStep;else{const u=this.stack.filter(c=>c.type===a&&!c.parentId);i=(u.length?Math.max(...u.map(c=>c.zIndex)):this.baseZIndex[a])+this.step}const o={id:s,type:a,parentId:l??null,zIndex:i};return this.stack.push(o),this.notify(),o}unregister(a){this.stack=this.stack.filter(l=>l.id!==a),this.notify()}getTop(){return this.stack.length?this.stack[this.stack.length-1]:null}isTop(a){return this.getTop()?.id===a}getStack(){return[...this.stack]}}const v=new B,k=Symbol("OVERLAY_PARENT");function y(t){const a=e.inject(k,null),l=e.ref(null);return e.onMounted(()=>{l.value=v.register(t,a??null),l.value&&e.provide(k,l.value.id)}),e.onUnmounted(()=>{l.value&&v.unregister(l.value.id)}),{zIndex:l,isTop:()=>l.value?v.isTop(l.value.id):!1}}function _(t){return t.startsWith("image/")?"image":t==="application/pdf"?"pdf":t==="application/msword"||t==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?"word":t==="application/vnd.ms-excel"||t==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?"excel":"other"}const I={key:1,class:"file__title"},z={key:2,class:"file__info"},E={key:0,class:"file__type"},w={key:1,class:"file__info-separator"},V={key:2,class:"file__size"},C=e.defineComponent({__name:"File",props:{file:{},viewName:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},removable:{type:Boolean}},emits:["remove"],setup(t,{emit:a}){const l=a,s=e.useId(),n=e.ref(null);async function i(r,c="image"){const m=await(await fetch(r)).blob(),p=m.type.split("/")[1]||"",h=p?`${c}.${p}`:c;return new File([m],h,{type:m.type})}const o=e.computed(()=>n.value&&n.value.mime?_(n.value.mime):null),u=e.computed(()=>{switch(o.value){case"pdf":return d.PdfIcon;case"word":return d.WordIcon;case"excel":return d.ExcelIcon;case"other":default:return d.FileIcon}});return e.onMounted(async()=>{if(typeof t.file=="string"){const r=await i(t.file);n.value={id:s,url:t.file,name:r.name,mime:r.type,size:r.size}}else n.value=t.file}),(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["file",{"file--outlined":r.outlined}])},[r.removable&&typeof r.file!="string"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"file__remove",onClick:c[0]||(c[0]=f=>l("remove",r.file))},[e.createVNode(e.unref(d.CloseIcon))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"file__icon"})),n.value&&n.value.name&&r.viewName?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(n.value?n.value.name.split(".")[0]:"unknown"),1)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",z,[n.value.mime?(e.openBlock(),e.createElementBlock("div",E,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0),n.value.mime&&n.value.size?(e.openBlock(),e.createElementBlock("div",w)):e.createCommentVNode("",!0),n.value.size?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(n.value?e.unref(g.formatFileSize)(n.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),N=d._export_sfc(C,[["__scopeId","data-v-9dee864d"]]),b={class:"image-full-modal__wrapper"},F={class:"image-full-modal__header"},S={class:"image-full-modal__main"},$=["src","alt"],x=e.defineComponent({__name:"ImageFullModal",props:{src:{},alt:{}},setup(t,{expose:a}){const l=e.ref(!1),{zIndex:s}=y("modal");return a({open:()=>{l.value=!0},close:()=>{l.value=!1}}),(n,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image-full-modal",style:e.normalizeStyle({zIndex:e.unref(s)?.zIndex})},[e.createElementVNode("div",{class:"image-full-modal__overlay",onClick:i[0]||(i[0]=o=>l.value=!1)}),e.createElementVNode("div",b,[e.createElementVNode("div",F,[e.createElementVNode("button",{class:"image-full-modal__close",onClick:i[1]||(i[1]=o=>l.value=!1)},[e.createVNode(e.unref(d.CloseIcon))])]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:n.src,alt:n.alt},null,8,$)]),i[2]||(i[2]=e.createElementVNode("div",{class:"image-full-modal__footer"},null,-1))])],4)):e.createCommentVNode("",!0)]),_:1})]))}}),M=d._export_sfc(x,[["__scopeId","data-v-b9bc03dd"]]),O=["src","alt"],T={key:1,class:"image__info"},P={key:0,class:"image__size"},R=e.defineComponent({__name:"Image",props:{file:{},alt:{},size:{default:"medium"},fullScreen:{type:Boolean},viewInfo:{type:Boolean,default:!1},zIndexPreview:{default:1002}},setup(t){const a=e.useId(),l=e.useTemplateRef("imageFullModal"),s=e.ref(null);async function n(o,u="image"){const c=await(await fetch(o)).blob(),f=c.type.split("/")[1]||"",m=f?`${u}.${f}`:u;return new File([c],m,{type:c.type})}const i=e.computed(()=>typeof t.file=="string"?t.file:t.file.url);return e.onMounted(async()=>{if(t.viewInfo)if(typeof t.file=="string"){const o=await n(t.file);s.value={id:a,url:t.file,name:o.name,mime:o.type,size:o.size}}else s.value=t.file}),(o,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["image",`image--${o.size}`,{"image--full-screen":o.fullScreen}])},[o.fullScreen?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image__overlay",onClick:u[0]||(u[0]=r=>l.value?.open())},[e.createVNode(e.unref(d.EyeIcon))])):e.createCommentVNode("",!0),e.createElementVNode("img",{src:i.value,alt:o.alt},null,8,O),o.viewInfo&&s.value&&(s.value.mime||s.value.size)&&o.size==="large"?(e.openBlock(),e.createElementBlock("div",T,[s.value.size?(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString(s.value?e.unref(g.formatFileSize)(s.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),o.fullScreen?(e.openBlock(),e.createBlock(M,{key:0,ref:"imageFullModal",src:i.value,alt:o.alt,zIndexPreview:o.zIndexPreview},null,8,["src","alt","zIndexPreview"])):e.createCommentVNode("",!0)],64))}}),D=d._export_sfc(R,[["__scopeId","data-v-1f4b3241"]]);exports.File=N;exports.Image=D;exports.getFileTypeByMime=_;exports.useOverlay=y;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../Image-DL600oqG.cjs"),f=require("../FileIcon-BE4ItwkK.cjs"),m=require("../SendIcon-CH6S0QWh.cjs"),p=require("../parseFileSize.util-CjKeh3NJ.cjs"),_=require("../uploadFile.util-DUcrBxO_.cjs"),v={class:"chat-file__content"},h=e.defineComponent({__name:"ChatFile",props:{file:{}},emits:["deleteFile"],setup(s,{emit:n}){const i=n,r=e.computed(()=>URL.createObjectURL(s.file));return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-file",{"chat-file--image":e.unref(u.getFileTypeByMime)(t.file.type)==="image"}])},[e.createElementVNode("button",{class:"chat-file__delete",onClick:c[0]||(c[0]=l=>i("deleteFile",t.file))},[e.createVNode(e.unref(f.CloseIcon))]),e.createElementVNode("div",v,[e.unref(u.getFileTypeByMime)(t.file.type)==="image"?(e.openBlock(),e.createBlock(e.unref(u.Image),{key:0,file:r.value,size:"large",fullScreen:""},null,8,["file"])):(e.openBlock(),e.createBlock(e.unref(u.File),{key:1,file:r.value,outlined:!1},null,8,["file"]))])],2))}}),k=f._export_sfc(h,[["__scopeId","data-v-25ab2b0f"]]),g={class:"chat-field-actions"},B={ref:"overlay",class:"chat-field-actions__overlay"},y=["onClick"],b={class:"chat-field-actions__overlay-item__label"},C=["disabled"],V=e.defineComponent({__name:"ChatFieldActions",props:e.mergeModels({actions:{},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const n=e.useModel(s,"modelValue"),i=e.useTemplateRef("button"),r=e.useTemplateRef("overlay"),t=e.ref(!1),c=e.reactive({image:{icon:e.shallowRef(m.ImageIcon),label:"Добавить изображение"},file:{icon:e.shallowRef(f.FileIcon),label:"Добавить файл"}}),l=a=>{_.openFileDialog({accept:a==="image"?["image"]:["pdf","excel","word"],maxFileSize:"5mb",maxFiles:1}).then(o=>{n.value?n.value=s.multiple?[...n.value,...o]:o:n.value=[...o],t.value=!1})};return e.onMounted(()=>{p.onClickOutside(r.value,()=>{t.value=!1},{ignore:[i.value]})}),(a,o)=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.actions,d=>(e.openBlock(),e.createElementBlock("div",{class:"chat-field-actions__overlay-item",key:d,onClick:D=>l(d)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[d].icon),{class:"chat-field-actions__overlay-item__icon"})),e.createElementVNode("span",b,e.toDisplayString(c[d].label),1)],8,y))),128))],512),[[e.vShow,t.value]])]),_:1}),e.createElementVNode("button",{ref:"button",onClick:o[0]||(o[0]=d=>t.value=!t.value),class:e.normalizeClass(["chat-field-actions__button",{"chat-field-actions__button--active":t.value}]),disabled:a.disabled},[e.createVNode(e.unref(m.PlusRoundedIcon))],10,C)]))}}),F=f._export_sfc(V,[["__scopeId","data-v-e64085d6"]]),E={class:"chat-field"},N={key:0,class:"chat-field__files"},M={class:"chat-field__wrapper"},T=["maxlength","placeholder"],S={key:1,class:"chat-field__footer"},$={key:1,class:"chat-field__char-count"},I=e.defineComponent({__name:"ChatField",props:e.mergeModels({viewActions:{type:Boolean,default:!1},actions:{default:()=>["file","image"]},placeholder:{default:"Введите сообщение"},maxLength:{},smallText:{},error:{type:Boolean},errorText:{},disabled:{type:Boolean,default:!1}},{message:{required:!0},messageModifiers:{},files:{},filesModifiers:{}}),emits:e.mergeModels(["sendMessage"],["update:message","update:files"]),setup(s,{emit:n}){const i=n,r=e.useModel(s,"message"),t=e.useModel(s,"files"),c=l=>{t.value&&(t.value=t.value.filter(a=>a.name!==l.name))};return(l,a)=>(e.openBlock(),e.createElementBlock("div",E,[t.value&&t.value.length>0?(e.openBlock(),e.createElementBlock("div",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,o=>(e.openBlock(),e.createBlock(k,{key:o.name,file:o,onDeleteFile:c},null,8,["file"]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",M,[l.viewActions&&l.actions.length>0?(e.openBlock(),e.createBlock(F,{key:0,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=o=>t.value=o),actions:l.actions,disabled:l.disabled},null,8,["modelValue","actions","disabled"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=o=>r.value=o),class:"chat-field__input",maxlength:l.maxLength,placeholder:l.placeholder},null,8,T),[[e.vModelText,r.value]]),e.createElementVNode("button",{class:"chat-field__button",onClick:a[2]||(a[2]=o=>i("sendMessage"))},[e.createVNode(e.unref(m.SendIcon))])]),l.smallText||l.error&&l.errorText||l.maxLength?(e.openBlock(),e.createElementBlock("div",S,[l.smallText||l.error&&l.errorText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-field__small",{"chat-field__small--error":l.error}])},e.toDisplayString(l.error?l.errorText:l.smallText),3)):e.createCommentVNode("",!0),l.maxLength?(e.openBlock(),e.createElementBlock("div",$,e.toDisplayString(r.value.length)+" / "+e.toDisplayString(l.maxLength),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),w={class:"bonus-summary"},L=e.defineComponent({__name:"BonusSummary",setup(s){return(n,i)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(e.unref(m.BonusIcon),{class:"bonus-summary__icon"}),i[0]||(i[0]=e.createElementVNode("div",{class:"bonus-summary__number"},"123",-1))]))}});exports.BonusSummary=L;exports.ChatField=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../Image-Cbf_uRLj.cjs"),f=require("../FileIcon-BE4ItwkK.cjs"),m=require("../SendIcon-CH6S0QWh.cjs"),p=require("../parseFileSize.util-Bg1rLRLQ.cjs"),_=require("../uploadFile.util-DCFkx3w3.cjs"),v={class:"chat-file__content"},h=e.defineComponent({__name:"ChatFile",props:{file:{}},emits:["deleteFile"],setup(s,{emit:n}){const i=n,r=e.computed(()=>URL.createObjectURL(s.file));return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-file",{"chat-file--image":e.unref(u.getFileTypeByMime)(t.file.type)==="image"}])},[e.createElementVNode("button",{class:"chat-file__delete",onClick:c[0]||(c[0]=l=>i("deleteFile",t.file))},[e.createVNode(e.unref(f.CloseIcon))]),e.createElementVNode("div",v,[e.unref(u.getFileTypeByMime)(t.file.type)==="image"?(e.openBlock(),e.createBlock(e.unref(u.Image),{key:0,file:r.value,size:"large",fullScreen:""},null,8,["file"])):(e.openBlock(),e.createBlock(e.unref(u.File),{key:1,file:r.value,outlined:!1},null,8,["file"]))])],2))}}),k=f._export_sfc(h,[["__scopeId","data-v-25ab2b0f"]]),g={class:"chat-field-actions"},B={ref:"overlay",class:"chat-field-actions__overlay"},y=["onClick"],b={class:"chat-field-actions__overlay-item__label"},C=["disabled"],V=e.defineComponent({__name:"ChatFieldActions",props:e.mergeModels({actions:{},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const n=e.useModel(s,"modelValue"),i=e.useTemplateRef("button"),r=e.useTemplateRef("overlay"),t=e.ref(!1),c=e.reactive({image:{icon:e.shallowRef(m.ImageIcon),label:"Добавить изображение"},file:{icon:e.shallowRef(f.FileIcon),label:"Добавить файл"}}),l=a=>{_.openFileDialog({accept:a==="image"?["image"]:["pdf","excel","word"],maxFileSize:"5mb",maxFiles:1}).then(o=>{n.value?n.value=s.multiple?[...n.value,...o]:o:n.value=[...o],t.value=!1})};return e.onMounted(()=>{p.onClickOutside(r.value,()=>{t.value=!1},{ignore:[i.value]})}),(a,o)=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.actions,d=>(e.openBlock(),e.createElementBlock("div",{class:"chat-field-actions__overlay-item",key:d,onClick:D=>l(d)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[d].icon),{class:"chat-field-actions__overlay-item__icon"})),e.createElementVNode("span",b,e.toDisplayString(c[d].label),1)],8,y))),128))],512),[[e.vShow,t.value]])]),_:1}),e.createElementVNode("button",{ref:"button",onClick:o[0]||(o[0]=d=>t.value=!t.value),class:e.normalizeClass(["chat-field-actions__button",{"chat-field-actions__button--active":t.value}]),disabled:a.disabled},[e.createVNode(e.unref(m.PlusRoundedIcon))],10,C)]))}}),F=f._export_sfc(V,[["__scopeId","data-v-e64085d6"]]),E={class:"chat-field"},N={key:0,class:"chat-field__files"},M={class:"chat-field__wrapper"},T=["maxlength","placeholder"],S={key:1,class:"chat-field__footer"},$={key:1,class:"chat-field__char-count"},I=e.defineComponent({__name:"ChatField",props:e.mergeModels({viewActions:{type:Boolean,default:!1},actions:{default:()=>["file","image"]},placeholder:{default:"Введите сообщение"},maxLength:{},smallText:{},error:{type:Boolean},errorText:{},disabled:{type:Boolean,default:!1}},{message:{required:!0},messageModifiers:{},files:{},filesModifiers:{}}),emits:e.mergeModels(["sendMessage"],["update:message","update:files"]),setup(s,{emit:n}){const i=n,r=e.useModel(s,"message"),t=e.useModel(s,"files"),c=l=>{t.value&&(t.value=t.value.filter(a=>a.name!==l.name))};return(l,a)=>(e.openBlock(),e.createElementBlock("div",E,[t.value&&t.value.length>0?(e.openBlock(),e.createElementBlock("div",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,o=>(e.openBlock(),e.createBlock(k,{key:o.name,file:o,onDeleteFile:c},null,8,["file"]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",M,[l.viewActions&&l.actions.length>0?(e.openBlock(),e.createBlock(F,{key:0,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=o=>t.value=o),actions:l.actions,disabled:l.disabled},null,8,["modelValue","actions","disabled"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=o=>r.value=o),class:"chat-field__input",maxlength:l.maxLength,placeholder:l.placeholder},null,8,T),[[e.vModelText,r.value]]),e.createElementVNode("button",{class:"chat-field__button",onClick:a[2]||(a[2]=o=>i("sendMessage"))},[e.createVNode(e.unref(m.SendIcon))])]),l.smallText||l.error&&l.errorText||l.maxLength?(e.openBlock(),e.createElementBlock("div",S,[l.smallText||l.error&&l.errorText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-field__small",{"chat-field__small--error":l.error}])},e.toDisplayString(l.error?l.errorText:l.smallText),3)):e.createCommentVNode("",!0),l.maxLength?(e.openBlock(),e.createElementBlock("div",$,e.toDisplayString(r.value.length)+" / "+e.toDisplayString(l.maxLength),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),w={class:"bonus-summary"},L=e.defineComponent({__name:"BonusSummary",setup(s){return(n,i)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(e.unref(m.BonusIcon),{class:"bonus-summary__icon"}),i[0]||(i[0]=e.createElementVNode("div",{class:"bonus-summary__number"},"123",-1))]))}});exports.BonusSummary=L;exports.ChatField=I;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as g, computed as V, createElementBlock as o, openBlock as a, normalizeClass as C, unref as c, createElementVNode as n, createVNode as v, createBlock as p, mergeModels as y, useModel as b, useTemplateRef as F, ref as L, reactive as w, shallowRef as k, onMounted as S, Transition as R, withCtx as D, withDirectives as B, Fragment as I, renderList as T, resolveDynamicComponent as U, toDisplayString as h, vShow as z, createCommentVNode as _, vModelText as N } from "vue";
2
- import { g as $, I as O, F as x } from "../Image-DBUjo8i1.js";
2
+ import { g as $, I as O, F as x } from "../Image-CC-8vrJo.js";
3
3
  import { C as A, _ as M, F as E } from "../FileIcon-maHE2Nhr.js";
4
4
  import { I as P, P as j, S as q, B as H } from "../SendIcon-Cqdt2QWN.js";
5
- import { o as G } from "../parseFileSize.util-BYvPolRo.js";
6
- import { o as J } from "../uploadFile.util-Dgr-qsrj.js";
5
+ import { o as G } from "../parseFileSize.util-CxVk4CvB.js";
6
+ import { o as J } from "../uploadFile.util-DhavPrlY.js";
7
7
  const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ g({
8
8
  __name: "ChatFile",
9
9
  props: {
@@ -0,0 +1,75 @@
1
+ import { defineComponent as s, computed as a, createBlock as d, createCommentVNode as c, openBlock as i, Teleport as u, createElementVNode as p, normalizeStyle as f, renderSlot as y } from "vue";
2
+ let n = null;
3
+ function m() {
4
+ const o = window.scrollY;
5
+ return document.body.style.position = "fixed", document.body.style.top = `-${o}px`, () => {
6
+ document.body.style.position = "", document.body.style.top = "", window.scrollTo(0, o);
7
+ };
8
+ }
9
+ const S = () => {
10
+ n || (n = m());
11
+ }, h = () => {
12
+ n && (n(), n = null);
13
+ }, w = () => ({
14
+ unlockScroll: h,
15
+ lockScroll: S
16
+ }), b = ["data-layer"], B = /* @__PURE__ */ s({
17
+ __name: "Portal",
18
+ props: {
19
+ overlayType: { default: "modal" },
20
+ teleport: { type: Boolean, default: !0 },
21
+ target: { default: "body" },
22
+ zIndex: {},
23
+ show: { type: Boolean, default: !0 },
24
+ parentId: {}
25
+ },
26
+ setup(o) {
27
+ const t = o, l = a(() => {
28
+ if (t.zIndex) return t.zIndex;
29
+ });
30
+ return (e, r) => e.show ? (i(), d(u, {
31
+ key: 0,
32
+ to: e.target,
33
+ disabled: !e.teleport
34
+ }, [
35
+ p("div", {
36
+ style: f({
37
+ zIndex: l.value,
38
+ position: "relative",
39
+ isolation: "isolate"
40
+ }),
41
+ "data-layer": e.overlayType
42
+ }, [
43
+ y(e.$slots, "default")
44
+ ], 12, b)
45
+ ], 8, ["to", "disabled"])) : c("", !0);
46
+ }
47
+ });
48
+ function I() {
49
+ const o = /* @__PURE__ */ new Map();
50
+ return {
51
+ on(t, l) {
52
+ const e = o.get(t) || [];
53
+ e.push(l), o.set(t, e);
54
+ },
55
+ off(t, l) {
56
+ const e = o.get(t);
57
+ e && o.set(
58
+ t,
59
+ e.filter((r) => r !== l)
60
+ );
61
+ },
62
+ emit(t, l) {
63
+ const e = o.get(t);
64
+ e && e.forEach((r) => r(l));
65
+ },
66
+ clear() {
67
+ o.clear();
68
+ }
69
+ };
70
+ }
71
+ export {
72
+ I as E,
73
+ B as _,
74
+ w as u
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue");let r=null;function a(){const o=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${o}px`,()=>{document.body.style.position="",document.body.style.top="",window.scrollTo(0,o)}}const d=()=>{r||(r=a())},c=()=>{r&&(r(),r=null)},u=()=>({unlockScroll:c,lockScroll:d}),i=["data-layer"],p=l.defineComponent({__name:"Portal",props:{overlayType:{default:"modal"},teleport:{type:Boolean,default:!0},target:{default:"body"},zIndex:{},show:{type:Boolean,default:!0},parentId:{}},setup(o){const t=o,n=l.computed(()=>{if(t.zIndex)return t.zIndex});return(e,s)=>e.show?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:e.target,disabled:!e.teleport},[l.createElementVNode("div",{style:l.normalizeStyle({zIndex:n.value,position:"relative",isolation:"isolate"}),"data-layer":e.overlayType},[l.renderSlot(e.$slots,"default")],12,i)],8,["to","disabled"])):l.createCommentVNode("",!0)}});function f(){const o=new Map;return{on(t,n){const e=o.get(t)||[];e.push(n),o.set(t,e)},off(t,n){const e=o.get(t);e&&o.set(t,e.filter(s=>s!==n))},emit(t,n){const e=o.get(t);e&&e.forEach(s=>s(n))},clear(){o.clear()}}}exports.EventBus=f;exports._sfc_main=p;exports.useBodyScroll=u;
package/dist/index.d.ts CHANGED
@@ -80,13 +80,6 @@ modelValue: {
80
80
  type: BooleanConstructor;
81
81
  default: undefined;
82
82
  };
83
- zIndex: {
84
- type: NumberConstructor;
85
- };
86
- zIndexLayer: {
87
- type: PropType<ZIndexLayer>;
88
- default: string;
89
- };
90
83
  withoutStyle: {
91
84
  type: BooleanConstructor;
92
85
  default: boolean;
@@ -121,13 +114,6 @@ modelValue: {
121
114
  type: BooleanConstructor;
122
115
  default: undefined;
123
116
  };
124
- zIndex: {
125
- type: NumberConstructor;
126
- };
127
- zIndexLayer: {
128
- type: PropType<ZIndexLayer>;
129
- default: string;
130
- };
131
117
  withoutStyle: {
132
118
  type: BooleanConstructor;
133
119
  default: boolean;
@@ -139,7 +125,6 @@ modelValue: boolean;
139
125
  placement: Placement;
140
126
  arrowVisible: boolean;
141
127
  closeMode: PopoverCloseMode;
142
- zIndexLayer: "BASE" | "DROPDOWN" | "STICKY" | "TOOLTIP" | "POPOVER" | "DRAWER" | "MODAL" | "NOTIFICATION" | "DEBUG";
143
128
  withoutStyle: boolean;
144
129
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
145
130
  reference: HTMLDivElement;
@@ -157,7 +142,7 @@ contentRef: HTMLDivElement;
157
142
  bodyRef: HTMLDivElement;
158
143
  }, any>;
159
144
 
160
- declare const __VLS_component_15: DefineComponent<__VLS_Props_29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_29> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
145
+ declare const __VLS_component_15: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
161
146
 
162
147
  declare const __VLS_component_16: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
163
148
  contentRef: HTMLDivElement;
@@ -165,9 +150,9 @@ contentRef: HTMLDivElement;
165
150
 
166
151
  declare const __VLS_component_17: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
167
152
 
168
- declare const __VLS_component_18: DefineComponent<__VLS_Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_30> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
153
+ declare const __VLS_component_18: DefineComponent<__VLS_Props_29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_29> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
169
154
 
170
- declare const __VLS_component_19: DefineComponent<__VLS_Props_31, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_31> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
155
+ declare const __VLS_component_19: DefineComponent<__VLS_Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_30> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
171
156
 
172
157
  declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
173
158
  "update:currentPage": (value: number) => any;
@@ -223,9 +208,9 @@ updateContainerHeight: (scrollContainer?: HTMLElement) => void;
223
208
  }, {}, {}, {}, {}> | null;
224
209
  }, any>;
225
210
 
226
- declare const __VLS_component_20: DefineComponent<__VLS_Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
211
+ declare const __VLS_component_20: DefineComponent<__VLS_Props_31, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
227
212
  "update:value": (value: string | number) => any;
228
- }, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{
213
+ }, string, PublicProps, Readonly<__VLS_Props_31> & Readonly<{
229
214
  "onUpdate:value"?: ((value: string | number) => any) | undefined;
230
215
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
231
216
 
@@ -233,9 +218,9 @@ declare const __VLS_component_21: DefineComponent< {}, {}, {}, {}, {}, Compon
233
218
 
234
219
  declare const __VLS_component_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
235
220
 
236
- declare const __VLS_component_23: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
221
+ declare const __VLS_component_23: DefineComponent<__VLS_Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
237
222
 
238
- declare const __VLS_component_24: DefineComponent<__VLS_Props_34, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_34> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
223
+ declare const __VLS_component_24: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
239
224
 
240
225
  declare const __VLS_component_25: DefineComponent<ScheduleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
241
226
  clear: () => any;
@@ -439,42 +424,35 @@ declare type __VLS_Props_27 = {
439
424
  title?: string;
440
425
  style?: CSSProperties;
441
426
  position?: 'top' | 'center' | 'bottom';
442
- zIndex?: number;
443
- zIndexLayer?: ZIndexLayer;
444
427
  };
445
428
 
446
429
  declare type __VLS_Props_28 = {
447
- zIndex?: number;
448
- zIndexLayer?: ZIndexLayer;
449
- };
450
-
451
- declare type __VLS_Props_29 = {
452
430
  value?: string | number | (string | number)[];
453
431
  multiple?: boolean;
454
432
  styleView?: 'fill' | 'inline';
455
433
  };
456
434
 
457
- declare type __VLS_Props_3 = PaginatorProps;
458
-
459
- declare type __VLS_Props_30 = {
435
+ declare type __VLS_Props_29 = {
460
436
  value: string | number;
461
437
  };
462
438
 
463
- declare type __VLS_Props_31 = {
439
+ declare type __VLS_Props_3 = PaginatorProps;
440
+
441
+ declare type __VLS_Props_30 = {
464
442
  layouts?: 'vertical' | 'horizontal';
465
443
  type?: 'solid' | 'dashed' | 'dotted';
466
444
  align?: 'left' | 'right' | 'center';
467
445
  };
468
446
 
469
- declare type __VLS_Props_32 = {
447
+ declare type __VLS_Props_31 = {
470
448
  value: string | number;
471
449
  };
472
450
 
473
- declare type __VLS_Props_33 = {
451
+ declare type __VLS_Props_32 = {
474
452
  value: string | number;
475
453
  };
476
454
 
477
- declare type __VLS_Props_34 = {
455
+ declare type __VLS_Props_33 = {
478
456
  value: string | number;
479
457
  };
480
458
 
@@ -566,7 +544,7 @@ declare type __VLS_PublicProps_18 = {
566
544
 
567
545
  declare type __VLS_PublicProps_19 = {
568
546
  'open': boolean;
569
- } & __VLS_Props_28;
547
+ };
570
548
 
571
549
  declare type __VLS_PublicProps_2 = {
572
550
  'currentPage': number;
@@ -1365,8 +1343,6 @@ declare type DrawerProps = {
1365
1343
  width?: number | string;
1366
1344
  beforeClose?: (next: () => void) => void;
1367
1345
  wrapperNoStyle?: boolean;
1368
- zIndex?: number;
1369
- zIndexLayer?: ZIndexLayer;
1370
1346
  };
1371
1347
 
1372
1348
  export declare const Dropdown: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
@@ -1527,7 +1503,6 @@ declare const Image_2: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, Component
1527
1503
  imageFullModal: CreateComponentPublicInstanceWithMixins<Readonly<{
1528
1504
  src: string;
1529
1505
  alt?: string;
1530
- zIndexPreview?: number;
1531
1506
  }> & Readonly<{}>, {
1532
1507
  open: () => void;
1533
1508
  close: () => void;
@@ -1541,7 +1516,6 @@ Defaults: {};
1541
1516
  }, Readonly<{
1542
1517
  src: string;
1543
1518
  alt?: string;
1544
- zIndexPreview?: number;
1545
1519
  }> & Readonly<{}>, {
1546
1520
  open: () => void;
1547
1521
  close: () => void;
@@ -2014,15 +1988,6 @@ declare interface ToastProps {
2014
1988
  * @type {ToastMessageOptions}
2015
1989
  */
2016
1990
  message?: ToastMessageOptions;
2017
- /**
2018
- * Custom z-index value for the toast container.
2019
- */
2020
- zIndex?: number;
2021
- /**
2022
- * Z-index layer for the toast component.
2023
- * @defaultValue NOTIFICATION
2024
- */
2025
- zIndexLayer?: ZIndexLayer;
2026
1991
  }
2027
1992
 
2028
1993
  export declare const ToastService: {
@@ -2097,18 +2062,4 @@ export declare const useConfirmPopup: () => ConfirmPopupService;
2097
2062
 
2098
2063
  export declare function useToast(): ToastServiceMethods;
2099
2064
 
2100
- declare const Z_INDEX: {
2101
- readonly BASE: 1000;
2102
- readonly DROPDOWN: 1010;
2103
- readonly STICKY: 1020;
2104
- readonly TOOLTIP: 1030;
2105
- readonly POPOVER: 1040;
2106
- readonly DRAWER: 1050;
2107
- readonly MODAL: 1060;
2108
- readonly NOTIFICATION: 1070;
2109
- readonly DEBUG: 9999;
2110
- };
2111
-
2112
- declare type ZIndexLayer = keyof typeof Z_INDEX;
2113
-
2114
2065
  export { }
@@ -0,0 +1 @@
1
+ "use strict";const Ot=require("vue"),tt=new WeakMap;function Lt(v){const C=Ot.unref(v);return C?.$el??C}function bt(v){return typeof v=="string"?document.querySelector(v):Lt(v)}function kt(v,C,M={}){const s=bt(v);if(!s)return()=>{};const S=tt.get(s);S&&(S(),tt.delete(s));const $=w=>{const T=w.target instanceof Node?w.target:null;if(!T)return;const d=(Ot.toValue(M.ignore)??[]).map(_=>typeof _=="string"?document.querySelector(_):Lt(_)).filter(_=>_!=null);s.contains(T)||d.some(_=>_.contains(T))||C(w)};document.addEventListener("mousedown",$,{capture:!0}),document.addEventListener("touchstart",$,{capture:!0});const Y=()=>{document.removeEventListener("mousedown",$,{capture:!0}),document.removeEventListener("touchstart",$,{capture:!0}),tt.delete(s)};return tt.set(s,Y),Y}function W(v){return v&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v}var et={exports:{}},At=et.exports,$t;function Tt(){return $t||($t=1,(function(v,C){(function(M,s){v.exports=s()})(At,(function(){var M=1e3,s=6e4,S=36e5,$="millisecond",Y="second",w="minute",T="hour",y="day",d="week",_="month",F="quarter",B="year",x="date",A="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var r=["th","st","nd","rd"],t=i%100;return"["+i+(r[(t-20)%10]||r[t]||r[0])+"]"}},L=function(i,r,t){var a=String(i);return!a||a.length>=r?i:""+Array(r+1-a.length).join(t)+i},j={s:L,z:function(i){var r=-i.utcOffset(),t=Math.abs(r),a=Math.floor(t/60),n=t%60;return(r<=0?"+":"-")+L(a,2,"0")+":"+L(n,2,"0")},m:function i(r,t){if(r.date()<t.date())return-i(t,r);var a=12*(t.year()-r.year())+(t.month()-r.month()),n=r.clone().add(a,_),h=t-n<0,l=r.clone().add(a+(h?-1:1),_);return+(-(a+(t-n)/(h?n-l:l-n))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:_,y:B,w:d,d:y,D:x,h:T,m:w,s:Y,ms:$,Q:F}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},H="en",m={};m[H]=O;var o="$isDayjsObject",e=function(i){return i instanceof b||!(!i||!i[o])},D=function i(r,t,a){var n;if(!r)return H;if(typeof r=="string"){var h=r.toLowerCase();m[h]&&(n=h),t&&(m[h]=t,n=h);var l=r.split("-");if(!n&&l.length>1)return i(l[0])}else{var g=r.name;m[g]=r,n=g}return!a&&n&&(H=n),n||!a&&H},p=function(i,r){if(e(i))return i.clone();var t=typeof r=="object"?r:{};return t.date=i,t.args=arguments,new b(t)},u=j;u.l=D,u.i=e,u.w=function(i,r){return p(i,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var b=(function(){function i(t){this.$L=D(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[o]=!0}var r=i.prototype;return r.parse=function(t){this.$d=(function(a){var n=a.date,h=a.utc;if(n===null)return new Date(NaN);if(u.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var l=n.match(c);if(l){var g=l[2]-1||0,q=(l[7]||"0").substring(0,3);return h?new Date(Date.UTC(l[1],g,l[3]||1,l[4]||0,l[5]||0,l[6]||0,q)):new Date(l[1],g,l[3]||1,l[4]||0,l[5]||0,l[6]||0,q)}}return new Date(n)})(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return u},r.isValid=function(){return this.$d.toString()!==A},r.isSame=function(t,a){var n=p(t);return this.startOf(a)<=n&&n<=this.endOf(a)},r.isAfter=function(t,a){return p(t)<this.startOf(a)},r.isBefore=function(t,a){return this.endOf(a)<p(t)},r.$g=function(t,a,n){return u.u(t)?this[a]:this.set(n,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,a){var n=this,h=!!u.u(a)||a,l=u.p(t),g=function(Z,I){var R=u.w(n.$u?Date.UTC(n.$y,I,Z):new Date(n.$y,I,Z),n);return h?R:R.endOf(y)},q=function(Z,I){return u.w(n.toDate()[Z].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(I)),n)},E=this.$W,z=this.$M,P=this.$D,V="set"+(this.$u?"UTC":"");switch(l){case B:return h?g(1,0):g(31,11);case _:return h?g(1,z):g(0,z+1);case d:var U=this.$locale().weekStart||0,X=(E<U?E+7:E)-U;return g(h?P-X:P+(6-X),z);case y:case x:return q(V+"Hours",0);case T:return q(V+"Minutes",1);case w:return q(V+"Seconds",2);case Y:return q(V+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,a){var n,h=u.p(t),l="set"+(this.$u?"UTC":""),g=(n={},n[y]=l+"Date",n[x]=l+"Date",n[_]=l+"Month",n[B]=l+"FullYear",n[T]=l+"Hours",n[w]=l+"Minutes",n[Y]=l+"Seconds",n[$]=l+"Milliseconds",n)[h],q=h===y?this.$D+(a-this.$W):a;if(h===_||h===B){var E=this.clone().set(x,1);E.$d[g](q),E.init(),this.$d=E.set(x,Math.min(this.$D,E.daysInMonth())).$d}else g&&this.$d[g](q);return this.init(),this},r.set=function(t,a){return this.clone().$set(t,a)},r.get=function(t){return this[u.p(t)]()},r.add=function(t,a){var n,h=this;t=Number(t);var l=u.p(a),g=function(z){var P=p(h);return u.w(P.date(P.date()+Math.round(z*t)),h)};if(l===_)return this.set(_,this.$M+t);if(l===B)return this.set(B,this.$y+t);if(l===y)return g(1);if(l===d)return g(7);var q=(n={},n[w]=s,n[T]=S,n[Y]=M,n)[l]||1,E=this.$d.getTime()+t*q;return u.w(E,this)},r.subtract=function(t,a){return this.add(-1*t,a)},r.format=function(t){var a=this,n=this.$locale();if(!this.isValid())return n.invalidDate||A;var h=t||"YYYY-MM-DDTHH:mm:ssZ",l=u.z(this),g=this.$H,q=this.$m,E=this.$M,z=n.weekdays,P=n.months,V=n.meridiem,U=function(I,R,J,Q){return I&&(I[R]||I(a,h))||J[R].slice(0,Q)},X=function(I){return u.s(g%12||12,I,"0")},Z=V||function(I,R,J){var Q=I<12?"AM":"PM";return J?Q.toLowerCase():Q};return h.replace(f,(function(I,R){return R||(function(J){switch(J){case"YY":return String(a.$y).slice(-2);case"YYYY":return u.s(a.$y,4,"0");case"M":return E+1;case"MM":return u.s(E+1,2,"0");case"MMM":return U(n.monthsShort,E,P,3);case"MMMM":return U(P,E);case"D":return a.$D;case"DD":return u.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return U(n.weekdaysMin,a.$W,z,2);case"ddd":return U(n.weekdaysShort,a.$W,z,3);case"dddd":return z[a.$W];case"H":return String(g);case"HH":return u.s(g,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Z(g,q,!0);case"A":return Z(g,q,!1);case"m":return String(q);case"mm":return u.s(q,2,"0");case"s":return String(a.$s);case"ss":return u.s(a.$s,2,"0");case"SSS":return u.s(a.$ms,3,"0");case"Z":return l}return null})(I)||l.replace(":","")}))},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,a,n){var h,l=this,g=u.p(a),q=p(t),E=(q.utcOffset()-this.utcOffset())*s,z=this-q,P=function(){return u.m(l,q)};switch(g){case B:h=P()/12;break;case _:h=P();break;case F:h=P()/3;break;case d:h=(z-E)/6048e5;break;case y:h=(z-E)/864e5;break;case T:h=z/S;break;case w:h=z/s;break;case Y:h=z/M;break;default:h=z}return n?h:u.a(h)},r.daysInMonth=function(){return this.endOf(_).$D},r.$locale=function(){return m[this.$L]},r.locale=function(t,a){if(!t)return this.$L;var n=this.clone(),h=D(t,a,!0);return h&&(n.$L=h),n},r.clone=function(){return u.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},i})(),k=b.prototype;return p.prototype=k,[["$ms",$],["$s",Y],["$m",w],["$H",T],["$W",y],["$M",_],["$y",B],["$D",x]].forEach((function(i){k[i[1]]=function(r){return this.$g(r,i[0],i[1])}})),p.extend=function(i,r){return i.$i||(i(r,b,p),i.$i=!0),p},p.locale=D,p.isDayjs=e,p.unix=function(i){return p(1e3*i)},p.en=m[H],p.Ls=m,p.p={},p}))})(et)),et.exports}var Ht=Tt();const N=W(Ht);var rt={exports:{}},Ft=rt.exports,vt;function qt(){return vt||(vt=1,(function(v,C){(function(M,s){v.exports=s()})(Ft,(function(){var M={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(s,S,$){var Y=S.prototype,w=Y.format;$.en.formats=M,Y.format=function(T){T===void 0&&(T="YYYY-MM-DDTHH:mm:ssZ");var y=this.$locale().formats,d=(function(_,F){return _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,x,A){var c=A&&A.toUpperCase();return x||F[A]||M[A]||F[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(f,O,L){return O||L.slice(1)}))}))})(T,y===void 0?{}:y);return w.call(this,d)}}}))})(rt)),rt.exports}var Bt=qt();const Et=W(Bt);var nt={exports:{}},Ct=nt.exports,Mt;function jt(){return Mt||(Mt=1,(function(v,C){(function(M,s){v.exports=s()})(Ct,(function(){return function(M,s,S){M=M||{};var $=s.prototype,Y={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function w(y,d,_,F){return $.fromToBase(y,d,_,F)}S.en.relativeTime=Y,$.fromToBase=function(y,d,_,F,B){for(var x,A,c,f=_.$locale().relativeTime||Y,O=M.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],L=O.length,j=0;j<L;j+=1){var H=O[j];H.d&&(x=F?S(y).diff(_,H.d,!0):_.diff(y,H.d,!0));var m=(M.rounding||Math.round)(Math.abs(x));if(c=x>0,m<=H.r||!H.r){m<=1&&j>0&&(H=O[j-1]);var o=f[H.l];B&&(m=B(""+m)),A=typeof o=="string"?o.replace("%d",m):o(m,d,H.l,c);break}}if(d)return A;var e=c?f.future:f.past;return typeof e=="function"?e(A):e.replace("%s",A)},$.to=function(y,d){return w(y,d,this,!0)},$.from=function(y,d){return w(y,d,this)};var T=function(y){return y.$u?S.utc():S()};$.toNow=function(y){return this.to(T(this),y)},$.fromNow=function(y){return this.from(T(this),y)}}}))})(nt)),nt.exports}var zt=jt();const It=W(zt);var st={exports:{}},Pt=st.exports,yt;function Rt(){return yt||(yt=1,(function(v,C){(function(M,s){v.exports=s()})(Pt,(function(){return function(M,s,S){s.prototype.isToday=function(){var $="YYYY-MM-DD",Y=S();return this.format($)===Y.format($)}}}))})(st)),st.exports}var Nt=Rt();const Zt=W(Nt);var it={exports:{}},Wt=it.exports,Yt;function Ut(){return Yt||(Yt=1,(function(v,C){(function(M,s){v.exports=s()})(Wt,(function(){return function(M,s,S){s.prototype.isBetween=function($,Y,w,T){var y=S($),d=S(Y),_=(T=T||"()")[0]==="(",F=T[1]===")";return(_?this.isAfter(y,w):!this.isBefore(y,w))&&(F?this.isBefore(d,w):!this.isAfter(d,w))||(_?this.isBefore(y,w):!this.isAfter(y,w))&&(F?this.isAfter(d,w):!this.isBefore(d,w))}}}))})(it)),it.exports}var Jt=Ut();const Vt=W(Jt);var ot={exports:{}},Qt=ot.exports,xt;function Xt(){return xt||(xt=1,(function(v,C){(function(M,s){v.exports=s()})(Qt,(function(){return function(M,s){s.prototype.isSameOrBefore=function(S,$){return this.isSame(S,$)||this.isBefore(S,$)}}}))})(ot)),ot.exports}var Gt=Xt();const Kt=W(Gt);var at={exports:{}},te=at.exports,_t;function ee(){return _t||(_t=1,(function(v,C){(function(M,s){v.exports=s()})(te,(function(){return function(M,s){s.prototype.isSameOrAfter=function(S,$){return this.isSame(S,$)||this.isAfter(S,$)}}}))})(at)),at.exports}var re=ee();const ne=W(re);var ut={exports:{}},se=ut.exports,Dt;function ie(){return Dt||(Dt=1,(function(v,C){(function(M,s){v.exports=s()})(se,(function(){var M,s,S=1e3,$=6e4,Y=36e5,w=864e5,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y=31536e6,d=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,F={years:y,months:d,days:w,hours:Y,minutes:$,seconds:S,milliseconds:1,weeks:6048e5},B=function(m){return m instanceof j},x=function(m,o,e){return new j(m,e,o.$l)},A=function(m){return s.p(m)+"s"},c=function(m){return m<0},f=function(m){return c(m)?Math.ceil(m):Math.floor(m)},O=function(m){return Math.abs(m)},L=function(m,o){return m?c(m)?{negative:!0,format:""+O(m)+o}:{negative:!1,format:""+m+o}:{negative:!1,format:""}},j=(function(){function m(e,D,p){var u=this;if(this.$d={},this.$l=p,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),D)return x(e*F[A(D)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach((function(i){u.$d[A(i)]=e[i]})),this.calMilliseconds(),this;if(typeof e=="string"){var b=e.match(_);if(b){var k=b.slice(2).map((function(i){return i!=null?Number(i):0}));return this.$d.years=k[0],this.$d.months=k[1],this.$d.weeks=k[2],this.$d.days=k[3],this.$d.hours=k[4],this.$d.minutes=k[5],this.$d.seconds=k[6],this.calMilliseconds(),this}}return this}var o=m.prototype;return o.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(D,p){return D+(e.$d[p]||0)*F[p]}),0)},o.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=f(e/y),e%=y,this.$d.months=f(e/d),e%=d,this.$d.days=f(e/w),e%=w,this.$d.hours=f(e/Y),e%=Y,this.$d.minutes=f(e/$),e%=$,this.$d.seconds=f(e/S),e%=S,this.$d.milliseconds=e},o.toISOString=function(){var e=L(this.$d.years,"Y"),D=L(this.$d.months,"M"),p=+this.$d.days||0;this.$d.weeks&&(p+=7*this.$d.weeks);var u=L(p,"D"),b=L(this.$d.hours,"H"),k=L(this.$d.minutes,"M"),i=this.$d.seconds||0;this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3,i=Math.round(1e3*i)/1e3);var r=L(i,"S"),t=e.negative||D.negative||u.negative||b.negative||k.negative||r.negative,a=b.format||k.format||r.format?"T":"",n=(t?"-":"")+"P"+e.format+D.format+u.format+a+b.format+k.format+r.format;return n==="P"||n==="-P"?"P0D":n},o.toJSON=function(){return this.toISOString()},o.format=function(e){var D=e||"YYYY-MM-DDTHH:mm:ss",p={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return D.replace(T,(function(u,b){return b||String(p[u])}))},o.as=function(e){return this.$ms/F[A(e)]},o.get=function(e){var D=this.$ms,p=A(e);return p==="milliseconds"?D%=1e3:D=p==="weeks"?f(D/F[p]):this.$d[p],D||0},o.add=function(e,D,p){var u;return u=D?e*F[A(D)]:B(e)?e.$ms:x(e,this).$ms,x(this.$ms+u*(p?-1:1),this)},o.subtract=function(e,D){return this.add(e,D,!0)},o.locale=function(e){var D=this.clone();return D.$l=e,D},o.clone=function(){return x(this.$ms,this)},o.humanize=function(e){return M().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},o.valueOf=function(){return this.asMilliseconds()},o.milliseconds=function(){return this.get("milliseconds")},o.asMilliseconds=function(){return this.as("milliseconds")},o.seconds=function(){return this.get("seconds")},o.asSeconds=function(){return this.as("seconds")},o.minutes=function(){return this.get("minutes")},o.asMinutes=function(){return this.as("minutes")},o.hours=function(){return this.get("hours")},o.asHours=function(){return this.as("hours")},o.days=function(){return this.get("days")},o.asDays=function(){return this.as("days")},o.weeks=function(){return this.get("weeks")},o.asWeeks=function(){return this.as("weeks")},o.months=function(){return this.get("months")},o.asMonths=function(){return this.as("months")},o.years=function(){return this.get("years")},o.asYears=function(){return this.as("years")},m})(),H=function(m,o,e){return m.add(o.years()*e,"y").add(o.months()*e,"M").add(o.days()*e,"d").add(o.hours()*e,"h").add(o.minutes()*e,"m").add(o.seconds()*e,"s").add(o.milliseconds()*e,"ms")};return function(m,o,e){M=e,s=e().$utils(),e.duration=function(u,b){var k=e.locale();return x(u,{$l:k},b)},e.isDuration=B;var D=o.prototype.add,p=o.prototype.subtract;o.prototype.add=function(u,b){return B(u)?H(this,u,1):D.bind(this)(u,b)},o.prototype.subtract=function(u,b){return B(u)?H(this,u,-1):p.bind(this)(u,b)}}}))})(ut)),ut.exports}var oe=ie();const ae=W(oe);var ct={exports:{}},ue=ct.exports,gt;function ce(){return gt||(gt=1,(function(v,C){(function(M,s){v.exports=s()})(ue,(function(){var M={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,S=/\d/,$=/\d\d/,Y=/\d\d?/,w=/\d*[^-_:/,()\s\d]+/,T={},y=function(c){return(c=+c)+(c>68?1900:2e3)},d=function(c){return function(f){this[c]=+f}},_=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var O=f.match(/([+-]|\d\d)/g),L=60*O[1]+(+O[2]||0);return L===0?0:O[0]==="+"?-L:L})(c)}],F=function(c){var f=T[c];return f&&(f.indexOf?f:f.s.concat(f.f))},B=function(c,f){var O,L=T.meridiem;if(L){for(var j=1;j<=24;j+=1)if(c.indexOf(L(j,0,f))>-1){O=j>12;break}}else O=c===(f?"pm":"PM");return O},x={A:[w,function(c){this.afternoon=B(c,!1)}],a:[w,function(c){this.afternoon=B(c,!0)}],Q:[S,function(c){this.month=3*(c-1)+1}],S:[S,function(c){this.milliseconds=100*+c}],SS:[$,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[Y,d("seconds")],ss:[Y,d("seconds")],m:[Y,d("minutes")],mm:[Y,d("minutes")],H:[Y,d("hours")],h:[Y,d("hours")],HH:[Y,d("hours")],hh:[Y,d("hours")],D:[Y,d("day")],DD:[$,d("day")],Do:[w,function(c){var f=T.ordinal,O=c.match(/\d+/);if(this.day=O[0],f)for(var L=1;L<=31;L+=1)f(L).replace(/\[|\]/g,"")===c&&(this.day=L)}],w:[Y,d("week")],ww:[$,d("week")],M:[Y,d("month")],MM:[$,d("month")],MMM:[w,function(c){var f=F("months"),O=(F("monthsShort")||f.map((function(L){return L.slice(0,3)}))).indexOf(c)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[w,function(c){var f=F("months").indexOf(c)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,d("year")],YY:[$,function(c){this.year=y(c)}],YYYY:[/\d{4}/,d("year")],Z:_,ZZ:_};function A(c){var f,O;f=c,O=T&&T.formats;for(var L=(c=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,u,b){var k=b&&b.toUpperCase();return u||O[b]||M[b]||O[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(i,r,t){return r||t.slice(1)}))}))).match(s),j=L.length,H=0;H<j;H+=1){var m=L[H],o=x[m],e=o&&o[0],D=o&&o[1];L[H]=D?{regex:e,parser:D}:m.replace(/^\[|\]$/g,"")}return function(p){for(var u={},b=0,k=0;b<j;b+=1){var i=L[b];if(typeof i=="string")k+=i.length;else{var r=i.regex,t=i.parser,a=p.slice(k),n=r.exec(a)[0];t.call(u,n),p=p.replace(n,"")}}return(function(h){var l=h.afternoon;if(l!==void 0){var g=h.hours;l?g<12&&(h.hours+=12):g===12&&(h.hours=0),delete h.afternoon}})(u),u}}return function(c,f,O){O.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(y=c.parseTwoDigitYear);var L=f.prototype,j=L.parse;L.parse=function(H){var m=H.date,o=H.utc,e=H.args;this.$u=o;var D=e[1];if(typeof D=="string"){var p=e[2]===!0,u=e[3]===!0,b=p||u,k=e[2];u&&(k=e[2]),T=this.$locale(),!p&&k&&(T=O.Ls[k]),this.$d=(function(a,n,h,l){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*a);var g=A(n)(a),q=g.year,E=g.month,z=g.day,P=g.hours,V=g.minutes,U=g.seconds,X=g.milliseconds,Z=g.zone,I=g.week,R=new Date,J=z||(q||E?1:R.getDate()),Q=q||R.getFullYear(),G=0;q&&!E||(G=E>0?E-1:R.getMonth());var K,ht=P||0,lt=V||0,mt=U||0,pt=X||0;return Z?new Date(Date.UTC(Q,G,J,ht,lt,mt,pt+60*Z.offset*1e3)):h?new Date(Date.UTC(Q,G,J,ht,lt,mt,pt)):(K=new Date(Q,G,J,ht,lt,mt,pt),I&&(K=l(K).week(I).toDate()),K)}catch{return new Date("")}})(m,D,o,O),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),b&&m!=this.format(D)&&(this.$d=new Date("")),T={}}else if(D instanceof Array)for(var i=D.length,r=1;r<=i;r+=1){e[1]=D[r-1];var t=O.apply(this,e);if(t.isValid()){this.$d=t.$d,this.$L=t.$L,this.init();break}r===i&&(this.$d=new Date(""))}else j.call(this,H)}}}))})(ct)),ct.exports}var fe=ce();const de=W(fe);var ft={exports:{}},he=ft.exports,St;function le(){return St||(St=1,(function(v,C){(function(M,s){v.exports=s()})(he,(function(){return function(M,s,S){s.prototype.dayOfYear=function($){var Y=Math.round((S(this).startOf("day")-S(this).startOf("year"))/864e5)+1;return $==null?Y:this.add($-Y,"day")}}}))})(ft)),ft.exports}var me=le();const pe=W(me);var dt={exports:{}},$e=dt.exports,wt;function ve(){return wt||(wt=1,(function(v,C){(function(M,s){v.exports=s(Tt())})($e,(function(M){function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var S=s(M),$="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),Y="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),w="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),T="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),y=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(x,A,c){var f,O;return c==="m"?A?"минута":"минуту":x+" "+(f=+x,O={mm:A?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[c].split("_"),f%10==1&&f%100!=11?O[0]:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?O[1]:O[2])}var _=function(x,A){return y.test(A)?$[x.month()]:Y[x.month()]};_.s=Y,_.f=$;var F=function(x,A){return y.test(A)?w[x.month()]:T[x.month()]};F.s=T,F.f=w;var B={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:_,monthsShort:F,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(x){return x},meridiem:function(x){return x<4?"ночи":x<12?"утра":x<17?"дня":"вечера"}};return S.default.locale(B,null,!0),B}))})(dt)),dt.exports}ve();N.extend(Et);N.extend(It);N.extend(Zt);N.extend(Vt);N.extend(Kt);N.extend(ne);N.extend(ae);N.extend(de);N.extend(pe);N.locale("ru");const Me=v=>{const C=["b","kb","mb","gb","tb"],M=v.match(/[a-zA-Z]+/)?.[0]||"b",s=parseFloat(v.replace(M,"")),S=C.indexOf(M.toLowerCase());return s*Math.pow(1024,S)};function ye(v){if(isNaN(v)||v<0)return"0 Б";const C=["Б","КБ","МБ","ГБ","ТБ"];let M=0,s=v;for(;s>=1024&&M<C.length-1;)s=s/1024,M++;return`${s%1===0?s:s.toFixed(0)} ${C[M]}`}exports.dayjs=N;exports.formatFileSize=ye;exports.onClickOutside=kt;exports.parseFileSize=Me;