prlg-ui 1.8.327 → 1.8.329
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.
- package/dist/Image-Ctgju863.js +195 -0
- package/dist/Image-DLJh4B68.cjs +1 -0
- package/dist/blocks/index.cjs.js +1 -1
- package/dist/blocks/index.es.js +74 -74
- package/dist/{dayjs.util-CgY84kVQ.js → dayjs.util-BZJcKPbc.js} +1 -1
- package/dist/{dayjs.util-B2JdCXIm.cjs → dayjs.util-w9plG3H0.cjs} +1 -1
- package/dist/eventBus.util-K9Yq6hZm.cjs +1 -0
- package/dist/{eventBus.util-DjOylFpN.js → eventBus.util-msbJpg6N.js} +24 -24
- package/dist/fonts/Inter/.DS_Store +0 -0
- package/dist/{index-qggSVcEG.cjs → index-Dp7bcaNg.cjs} +20 -2
- package/dist/{index-DwbPNNPc.js → index-DpwRE3qr.js} +26 -6
- package/dist/parseFileSize.util-CaHpLGi2.js +758 -0
- package/dist/parseFileSize.util-D9hMoJaT.cjs +1 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +2765 -2765
- package/dist/reka-ui/index.cjs.js +5 -5
- package/dist/reka-ui/index.es.js +2827 -2817
- package/dist/rekaUI.d.ts +2 -2
- package/dist/{uploadFile.util-CbQSY2xi.cjs → uploadFile.util-CCrV2jIp.cjs} +1 -1
- package/dist/{uploadFile.util-vM81SK0i.js → uploadFile.util-c_UlO-OQ.js} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +4 -4
- package/package.json +1 -1
- package/dist/Image-DxBnhta_.js +0 -195
- package/dist/Image-DyYO6Izz.cjs +0 -1
- package/dist/eventBus.util-DHkO4j-V.cjs +0 -1
- package/dist/parseFileSize.util-0SyKuE4n.cjs +0 -1
- package/dist/parseFileSize.util-DTzvlV7u.js +0 -641
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { defineComponent as z, useId as b, ref as F, computed as I, onMounted as h, createElementBlock as o, openBlock as a, normalizeClass as C, createCommentVNode as u, createBlock as k, createVNode as g, unref as d, resolveDynamicComponent as E, toDisplayString as _, Teleport as V, Transition as O, withCtx as T, normalizeStyle as N, createElementVNode as m, useTemplateRef as j, Fragment as D } from "vue";
|
|
2
|
+
import { F as P, E as R, W, P as q, C as B, _ as $, a as A } from "./FileIcon-maHE2Nhr.js";
|
|
3
|
+
import { h as S } from "./parseFileSize.util-CaHpLGi2.js";
|
|
4
|
+
import { g as G, u as H } from "./typeFile.util-DerifWNY.js";
|
|
5
|
+
const J = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "file__title"
|
|
8
|
+
}, K = {
|
|
9
|
+
key: 2,
|
|
10
|
+
class: "file__info"
|
|
11
|
+
}, L = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "file__type"
|
|
14
|
+
}, Q = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "file__info-separator"
|
|
17
|
+
}, U = {
|
|
18
|
+
key: 2,
|
|
19
|
+
class: "file__size"
|
|
20
|
+
}, X = /* @__PURE__ */ z({
|
|
21
|
+
__name: "File",
|
|
22
|
+
props: {
|
|
23
|
+
file: {},
|
|
24
|
+
viewName: { type: Boolean, default: !1 },
|
|
25
|
+
outlined: { type: Boolean, default: !0 },
|
|
26
|
+
removable: { type: Boolean }
|
|
27
|
+
},
|
|
28
|
+
emits: ["remove"],
|
|
29
|
+
setup(s, { emit: v }) {
|
|
30
|
+
const r = v, i = b(), e = F(null);
|
|
31
|
+
async function n(t, c = "image") {
|
|
32
|
+
const y = await (await fetch(t)).blob(), w = y.type.split("/")[1] || "", M = w ? `${c}.${w}` : c;
|
|
33
|
+
return new File([y], M, { type: y.type });
|
|
34
|
+
}
|
|
35
|
+
const l = I(() => e.value && e.value.mime ? G(e.value.mime) : null), f = I(() => {
|
|
36
|
+
switch (l.value) {
|
|
37
|
+
case "pdf":
|
|
38
|
+
return q;
|
|
39
|
+
case "word":
|
|
40
|
+
return W;
|
|
41
|
+
case "excel":
|
|
42
|
+
return R;
|
|
43
|
+
case "other":
|
|
44
|
+
default:
|
|
45
|
+
return P;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return h(async () => {
|
|
49
|
+
if (typeof s.file == "string") {
|
|
50
|
+
const t = await n(s.file);
|
|
51
|
+
e.value = {
|
|
52
|
+
id: i,
|
|
53
|
+
url: s.file,
|
|
54
|
+
name: t.name,
|
|
55
|
+
mime: t.type,
|
|
56
|
+
size: t.size
|
|
57
|
+
};
|
|
58
|
+
} else
|
|
59
|
+
e.value = s.file;
|
|
60
|
+
}), (t, c) => (a(), o("div", {
|
|
61
|
+
class: C(["file", { "file--outlined": t.outlined }])
|
|
62
|
+
}, [
|
|
63
|
+
t.removable && typeof t.file != "string" ? (a(), o("button", {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: "file__remove",
|
|
66
|
+
onClick: c[0] || (c[0] = (p) => r("remove", t.file))
|
|
67
|
+
}, [
|
|
68
|
+
g(d(B))
|
|
69
|
+
])) : u("", !0),
|
|
70
|
+
(a(), k(E(f.value), { class: "file__icon" })),
|
|
71
|
+
e.value && e.value.name && t.viewName ? (a(), o("div", J, _(e.value ? e.value.name.split(".")[0] : "unknown"), 1)) : u("", !0),
|
|
72
|
+
e.value ? (a(), o("div", K, [
|
|
73
|
+
e.value.mime ? (a(), o("div", L, _(l.value), 1)) : u("", !0),
|
|
74
|
+
e.value.mime && e.value.size ? (a(), o("div", Q)) : u("", !0),
|
|
75
|
+
e.value.size ? (a(), o("div", U, _(e.value ? d(S)(e.value.size) : "0 Б"), 1)) : u("", !0)
|
|
76
|
+
])) : u("", !0)
|
|
77
|
+
], 2));
|
|
78
|
+
}
|
|
79
|
+
}), me = /* @__PURE__ */ $(X, [["__scopeId", "data-v-7c3d1c11"]]), Y = { class: "image-full-modal__wrapper" }, Z = { class: "image-full-modal__header" }, x = { class: "image-full-modal__main" }, ee = ["src", "alt"], le = /* @__PURE__ */ z({
|
|
80
|
+
__name: "ImageFullModal",
|
|
81
|
+
props: {
|
|
82
|
+
src: {},
|
|
83
|
+
alt: {}
|
|
84
|
+
},
|
|
85
|
+
setup(s, { expose: v }) {
|
|
86
|
+
const r = F(!1), { zIndex: i } = H("modal");
|
|
87
|
+
return v({
|
|
88
|
+
open: () => {
|
|
89
|
+
r.value = !0;
|
|
90
|
+
},
|
|
91
|
+
close: () => {
|
|
92
|
+
r.value = !1;
|
|
93
|
+
}
|
|
94
|
+
}), (e, n) => (a(), k(V, { to: "body" }, [
|
|
95
|
+
g(O, { name: "fade" }, {
|
|
96
|
+
default: T(() => [
|
|
97
|
+
r.value ? (a(), o("div", {
|
|
98
|
+
key: 0,
|
|
99
|
+
class: "image-full-modal",
|
|
100
|
+
style: N({ zIndex: d(i)?.zIndex })
|
|
101
|
+
}, [
|
|
102
|
+
m("div", {
|
|
103
|
+
class: "image-full-modal__overlay",
|
|
104
|
+
onClick: n[0] || (n[0] = (l) => r.value = !1)
|
|
105
|
+
}),
|
|
106
|
+
m("div", Y, [
|
|
107
|
+
m("div", Z, [
|
|
108
|
+
m("button", {
|
|
109
|
+
class: "image-full-modal__close",
|
|
110
|
+
onClick: n[1] || (n[1] = (l) => r.value = !1)
|
|
111
|
+
}, [
|
|
112
|
+
g(d(B))
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
m("div", x, [
|
|
116
|
+
m("img", {
|
|
117
|
+
src: e.src,
|
|
118
|
+
alt: e.alt
|
|
119
|
+
}, null, 8, ee)
|
|
120
|
+
]),
|
|
121
|
+
n[2] || (n[2] = m("div", { class: "image-full-modal__footer" }, null, -1))
|
|
122
|
+
])
|
|
123
|
+
], 4)) : u("", !0)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
})
|
|
127
|
+
]));
|
|
128
|
+
}
|
|
129
|
+
}), ae = /* @__PURE__ */ $(le, [["__scopeId", "data-v-26b5c867"]]), se = ["src", "alt"], te = {
|
|
130
|
+
key: 1,
|
|
131
|
+
class: "image__info"
|
|
132
|
+
}, ie = {
|
|
133
|
+
key: 0,
|
|
134
|
+
class: "image__size"
|
|
135
|
+
}, oe = /* @__PURE__ */ z({
|
|
136
|
+
__name: "Image",
|
|
137
|
+
props: {
|
|
138
|
+
file: {},
|
|
139
|
+
alt: {},
|
|
140
|
+
size: { default: "medium" },
|
|
141
|
+
fullScreen: { type: Boolean },
|
|
142
|
+
viewInfo: { type: Boolean, default: !1 }
|
|
143
|
+
},
|
|
144
|
+
setup(s) {
|
|
145
|
+
const v = b(), r = j("imageFullModal"), i = F(null);
|
|
146
|
+
async function e(l, f = "image") {
|
|
147
|
+
const c = await (await fetch(l)).blob(), p = c.type.split("/")[1] || "", y = p ? `${f}.${p}` : f;
|
|
148
|
+
return new File([c], y, { type: c.type });
|
|
149
|
+
}
|
|
150
|
+
const n = I(() => typeof s.file == "string" ? s.file : s.file.url);
|
|
151
|
+
return h(async () => {
|
|
152
|
+
if (s.viewInfo)
|
|
153
|
+
if (typeof s.file == "string") {
|
|
154
|
+
const l = await e(s.file);
|
|
155
|
+
i.value = {
|
|
156
|
+
id: v,
|
|
157
|
+
url: s.file,
|
|
158
|
+
name: l.name,
|
|
159
|
+
mime: l.type,
|
|
160
|
+
size: l.size
|
|
161
|
+
};
|
|
162
|
+
} else
|
|
163
|
+
i.value = s.file;
|
|
164
|
+
}), (l, f) => (a(), o(D, null, [
|
|
165
|
+
m("div", {
|
|
166
|
+
class: C(["image", `image--${l.size}`, { "image--full-screen": l.fullScreen }])
|
|
167
|
+
}, [
|
|
168
|
+
l.fullScreen ? (a(), o("div", {
|
|
169
|
+
key: 0,
|
|
170
|
+
class: "image__overlay",
|
|
171
|
+
onClick: f[0] || (f[0] = (t) => r.value?.open())
|
|
172
|
+
}, [
|
|
173
|
+
g(d(A))
|
|
174
|
+
])) : u("", !0),
|
|
175
|
+
m("img", {
|
|
176
|
+
src: n.value,
|
|
177
|
+
alt: l.alt
|
|
178
|
+
}, null, 8, se),
|
|
179
|
+
l.viewInfo && i.value && (i.value.mime || i.value.size) && l.size === "large" ? (a(), o("div", te, [
|
|
180
|
+
i.value.size ? (a(), o("div", ie, _(i.value ? d(S)(i.value.size) : "0 Б"), 1)) : u("", !0)
|
|
181
|
+
])) : u("", !0)
|
|
182
|
+
], 2),
|
|
183
|
+
l.fullScreen ? (a(), k(ae, {
|
|
184
|
+
key: 0,
|
|
185
|
+
ref: "imageFullModal",
|
|
186
|
+
src: n.value,
|
|
187
|
+
alt: l.alt
|
|
188
|
+
}, null, 8, ["src", "alt"])) : u("", !0)
|
|
189
|
+
], 64));
|
|
190
|
+
}
|
|
191
|
+
}), fe = /* @__PURE__ */ $(oe, [["__scopeId", "data-v-903c99cc"]]);
|
|
192
|
+
export {
|
|
193
|
+
me as F,
|
|
194
|
+
fe as I
|
|
195
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),s=require("./FileIcon-BE4ItwkK.cjs"),p=require("./parseFileSize.util-D9hMoJaT.cjs"),y=require("./typeFile.util-CwOoIMBz.cjs"),_={key:1,class:"file__title"},g={key:2,class:"file__info"},B={key:0,class:"file__type"},I={key:1,class:"file__info-separator"},V={key:2,class:"file__size"},z=e.defineComponent({__name:"File",props:{file:{},viewName:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},removable:{type:Boolean}},emits:["remove"],setup(o,{emit:u}){const c=u,a=e.useId(),l=e.ref(null);async function i(n,r="image"){const d=await(await fetch(n)).blob(),v=d.type.split("/")[1]||"",k=v?`${r}.${v}`:r;return new File([d],k,{type:d.type})}const t=e.computed(()=>l.value&&l.value.mime?y.getFileTypeByMime(l.value.mime):null),m=e.computed(()=>{switch(t.value){case"pdf":return s.PdfIcon;case"word":return s.WordIcon;case"excel":return s.ExcelIcon;case"other":default:return s.FileIcon}});return e.onMounted(async()=>{if(typeof o.file=="string"){const n=await i(o.file);l.value={id:a,url:o.file,name:n.name,mime:n.type,size:n.size}}else l.value=o.file}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["file",{"file--outlined":n.outlined}])},[n.removable&&typeof n.file!="string"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"file__remove",onClick:r[0]||(r[0]=f=>c("remove",n.file))},[e.createVNode(e.unref(s.CloseIcon))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{class:"file__icon"})),l.value&&l.value.name&&n.viewName?(e.openBlock(),e.createElementBlock("div",_,e.toDisplayString(l.value?l.value.name.split(".")[0]:"unknown"),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("div",g,[l.value.mime?(e.openBlock(),e.createElementBlock("div",B,e.toDisplayString(t.value),1)):e.createCommentVNode("",!0),l.value.mime&&l.value.size?(e.openBlock(),e.createElementBlock("div",I)):e.createCommentVNode("",!0),l.value.size?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(l.value?e.unref(p.formatFileSize)(l.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),C=s._export_sfc(z,[["__scopeId","data-v-7c3d1c11"]]),N={class:"image-full-modal__wrapper"},E={class:"image-full-modal__header"},F={class:"image-full-modal__main"},$=["src","alt"],w=e.defineComponent({__name:"ImageFullModal",props:{src:{},alt:{}},setup(o,{expose:u}){const c=e.ref(!1),{zIndex:a}=y.useOverlay("modal");return u({open:()=>{c.value=!0},close:()=>{c.value=!1}}),(l,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image-full-modal",style:e.normalizeStyle({zIndex:e.unref(a)?.zIndex})},[e.createElementVNode("div",{class:"image-full-modal__overlay",onClick:i[0]||(i[0]=t=>c.value=!1)}),e.createElementVNode("div",N,[e.createElementVNode("div",E,[e.createElementVNode("button",{class:"image-full-modal__close",onClick:i[1]||(i[1]=t=>c.value=!1)},[e.createVNode(e.unref(s.CloseIcon))])]),e.createElementVNode("div",F,[e.createElementVNode("img",{src:l.src,alt:l.alt},null,8,$)]),i[2]||(i[2]=e.createElementVNode("div",{class:"image-full-modal__footer"},null,-1))])],4)):e.createCommentVNode("",!0)]),_:1})]))}}),b=s._export_sfc(w,[["__scopeId","data-v-26b5c867"]]),S=["src","alt"],h={key:1,class:"image__info"},M={key:0,class:"image__size"},D=e.defineComponent({__name:"Image",props:{file:{},alt:{},size:{default:"medium"},fullScreen:{type:Boolean},viewInfo:{type:Boolean,default:!1}},setup(o){const u=e.useId(),c=e.useTemplateRef("imageFullModal"),a=e.ref(null);async function l(t,m="image"){const r=await(await fetch(t)).blob(),f=r.type.split("/")[1]||"",d=f?`${m}.${f}`:m;return new File([r],d,{type:r.type})}const i=e.computed(()=>typeof o.file=="string"?o.file:o.file.url);return e.onMounted(async()=>{if(o.viewInfo)if(typeof o.file=="string"){const t=await l(o.file);a.value={id:u,url:o.file,name:t.name,mime:t.type,size:t.size}}else a.value=o.file}),(t,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["image",`image--${t.size}`,{"image--full-screen":t.fullScreen}])},[t.fullScreen?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image__overlay",onClick:m[0]||(m[0]=n=>c.value?.open())},[e.createVNode(e.unref(s.EyeIcon))])):e.createCommentVNode("",!0),e.createElementVNode("img",{src:i.value,alt:t.alt},null,8,S),t.viewInfo&&a.value&&(a.value.mime||a.value.size)&&t.size==="large"?(e.openBlock(),e.createElementBlock("div",h,[a.value.size?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(a.value?e.unref(p.formatFileSize)(a.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),t.fullScreen?(e.openBlock(),e.createBlock(b,{key:0,ref:"imageFullModal",src:i.value,alt:t.alt},null,8,["src","alt"])):e.createCommentVNode("",!0)],64))}}),q=s._export_sfc(D,[["__scopeId","data-v-903c99cc"]]);exports.File=C;exports.Image=q;
|
package/dist/blocks/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("../Image-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("../Image-DLJh4B68.cjs"),m=require("../FileIcon-BE4ItwkK.cjs"),p=require("../typeFile.util-CwOoIMBz.cjs"),u=require("../SendIcon-CH6S0QWh.cjs"),_=require("../dayjs.util-w9plG3H0.cjs"),v=require("../uploadFile.util-CCrV2jIp.cjs"),h={class:"chat-file__content"},k=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(p.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(m.CloseIcon))]),e.createElementVNode("div",h,[e.unref(p.getFileTypeByMime)(t.file.type)==="image"?(e.openBlock(),e.createBlock(e.unref(f.Image),{key:0,file:r.value,size:"large",fullScreen:""},null,8,["file"])):(e.openBlock(),e.createBlock(e.unref(f.File),{key:1,file:r.value,outlined:!1},null,8,["file"]))])],2))}}),g=m._export_sfc(k,[["__scopeId","data-v-12b8458b"]]),B={class:"chat-field-actions"},y={ref:"overlay",class:"chat-field-actions__overlay"},b=["onClick"],C={class:"chat-field-actions__overlay-item__label"},V=["disabled"],F=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(u.ImageIcon),label:"Добавить изображение"},file:{icon:e.shallowRef(m.FileIcon),label:"Добавить файл"}}),l=a=>{v.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(()=>{_.onClickOutside(r.value,()=>{t.value=!1},{ignore:[i.value]})}),(a,o)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",y,[(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:R=>l(d)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[d].icon),{class:"chat-field-actions__overlay-item__icon"})),e.createElementVNode("span",C,e.toDisplayString(c[d].label),1)],8,b))),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(u.PlusRoundedIcon))],10,V)]))}}),E=m._export_sfc(F,[["__scopeId","data-v-62b95e1b"]]),N={class:"chat-field"},M={key:0,class:"chat-field__files"},T={class:"chat-field__wrapper"},$=["maxlength","placeholder"],I={key:1,class:"chat-field__footer"},S={key:1,class:"chat-field__char-count"},w=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",N,[t.value&&t.value.length>0?(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,o=>(e.openBlock(),e.createBlock(g,{key:o.name,file:o,onDeleteFile:c},null,8,["file"]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",T,[l.viewActions&&l.actions.length>0?(e.openBlock(),e.createBlock(E,{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,$),[[e.vModelText,r.value]]),e.createElementVNode("button",{class:"chat-field__button",onClick:a[2]||(a[2]=o=>i("sendMessage"))},[e.createVNode(e.unref(u.SendIcon))])]),l.smallText||l.error&&l.errorText||l.maxLength?(e.openBlock(),e.createElementBlock("div",I,[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",S,e.toDisplayString(r.value.length)+" / "+e.toDisplayString(l.maxLength),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),L={class:"bonus-summary"},D=e.defineComponent({__name:"BonusSummary",setup(s){return(n,i)=>(e.openBlock(),e.createElementBlock("div",L,[e.createVNode(e.unref(u.BonusIcon),{class:"bonus-summary__icon"}),i[0]||(i[0]=e.createElementVNode("div",{class:"bonus-summary__number"},"123",-1))]))}});exports.BonusSummary=D;exports.ChatField=w;
|
package/dist/blocks/index.es.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { I as
|
|
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 { I as O, F as x } from "../Image-Ctgju863.js";
|
|
3
3
|
import { C as A, _ as M, F as E } from "../FileIcon-maHE2Nhr.js";
|
|
4
4
|
import { g as $ } from "../typeFile.util-DerifWNY.js";
|
|
5
5
|
import { I as P, P as j, S as q, B as H } from "../SendIcon-Cqdt2QWN.js";
|
|
6
|
-
import { o as G } from "../dayjs.util-
|
|
7
|
-
import { o as J } from "../uploadFile.util-
|
|
8
|
-
const K = { class: "chat-file__content" }, Q = /* @__PURE__ */
|
|
6
|
+
import { o as G } from "../dayjs.util-BZJcKPbc.js";
|
|
7
|
+
import { o as J } from "../uploadFile.util-c_UlO-OQ.js";
|
|
8
|
+
const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ g({
|
|
9
9
|
__name: "ChatFile",
|
|
10
10
|
props: {
|
|
11
11
|
file: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["deleteFile"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
return (
|
|
17
|
-
class: C(["chat-file", { "chat-file--image":
|
|
14
|
+
setup(r, { emit: i }) {
|
|
15
|
+
const d = i, u = V(() => URL.createObjectURL(r.file));
|
|
16
|
+
return (l, m) => (a(), o("div", {
|
|
17
|
+
class: C(["chat-file", { "chat-file--image": c($)(l.file.type) === "image" }])
|
|
18
18
|
}, [
|
|
19
19
|
n("button", {
|
|
20
20
|
class: "chat-file__delete",
|
|
21
|
-
onClick:
|
|
21
|
+
onClick: m[0] || (m[0] = (e) => d("deleteFile", l.file))
|
|
22
22
|
}, [
|
|
23
|
-
|
|
23
|
+
v(c(A))
|
|
24
24
|
]),
|
|
25
25
|
n("div", K, [
|
|
26
|
-
|
|
26
|
+
c($)(l.file.type) === "image" ? (a(), p(c(O), {
|
|
27
27
|
key: 0,
|
|
28
|
-
file:
|
|
28
|
+
file: u.value,
|
|
29
29
|
size: "large",
|
|
30
30
|
fullScreen: ""
|
|
31
|
-
}, null, 8, ["file"])) : (
|
|
31
|
+
}, null, 8, ["file"])) : (a(), p(c(x), {
|
|
32
32
|
key: 1,
|
|
33
|
-
file:
|
|
33
|
+
file: u.value,
|
|
34
34
|
outlined: !1
|
|
35
35
|
}, null, 8, ["file"]))
|
|
36
36
|
])
|
|
@@ -39,9 +39,9 @@ const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ y({
|
|
|
39
39
|
}), W = /* @__PURE__ */ M(Q, [["__scopeId", "data-v-12b8458b"]]), X = { class: "chat-field-actions" }, Y = {
|
|
40
40
|
ref: "overlay",
|
|
41
41
|
class: "chat-field-actions__overlay"
|
|
42
|
-
}, Z = ["onClick"], ee = { class: "chat-field-actions__overlay-item__label" },
|
|
42
|
+
}, Z = ["onClick"], ee = { class: "chat-field-actions__overlay-item__label" }, le = ["disabled"], ae = /* @__PURE__ */ g({
|
|
43
43
|
__name: "ChatFieldActions",
|
|
44
|
-
props: /* @__PURE__ */
|
|
44
|
+
props: /* @__PURE__ */ y({
|
|
45
45
|
actions: {},
|
|
46
46
|
disabled: { type: Boolean, default: !1 },
|
|
47
47
|
multiple: { type: Boolean, default: !0 }
|
|
@@ -50,8 +50,8 @@ const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ y({
|
|
|
50
50
|
modelModifiers: {}
|
|
51
51
|
}),
|
|
52
52
|
emits: ["update:modelValue"],
|
|
53
|
-
setup(
|
|
54
|
-
const
|
|
53
|
+
setup(r) {
|
|
54
|
+
const i = b(r, "modelValue"), d = F("button"), u = F("overlay"), l = L(!1), m = w({
|
|
55
55
|
image: {
|
|
56
56
|
icon: k(P),
|
|
57
57
|
label: "Добавить изображение"
|
|
@@ -60,59 +60,59 @@ const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ y({
|
|
|
60
60
|
icon: k(E),
|
|
61
61
|
label: "Добавить файл"
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), e = (s) => {
|
|
64
64
|
J({
|
|
65
65
|
accept: s === "image" ? ["image"] : ["pdf", "excel", "word"],
|
|
66
66
|
maxFileSize: "5mb",
|
|
67
67
|
maxFiles: 1
|
|
68
|
-
}).then((
|
|
69
|
-
|
|
68
|
+
}).then((t) => {
|
|
69
|
+
i.value ? i.value = r.multiple ? [...i.value, ...t] : t : i.value = [...t], l.value = !1;
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
return S(() => {
|
|
73
|
-
G(
|
|
74
|
-
|
|
75
|
-
}, { ignore: [
|
|
76
|
-
}), (s,
|
|
77
|
-
|
|
78
|
-
default:
|
|
73
|
+
G(u.value, () => {
|
|
74
|
+
l.value = !1;
|
|
75
|
+
}, { ignore: [d.value] });
|
|
76
|
+
}), (s, t) => (a(), o("div", X, [
|
|
77
|
+
v(R, { name: "slide-up" }, {
|
|
78
|
+
default: D(() => [
|
|
79
79
|
B(n("div", Y, [
|
|
80
|
-
(
|
|
80
|
+
(a(!0), o(I, null, T(s.actions, (f) => (a(), o("div", {
|
|
81
81
|
class: "chat-field-actions__overlay-item",
|
|
82
82
|
key: f,
|
|
83
|
-
onClick: (
|
|
83
|
+
onClick: (ce) => e(f)
|
|
84
84
|
}, [
|
|
85
|
-
(
|
|
86
|
-
n("span", ee,
|
|
85
|
+
(a(), p(U(m[f].icon), { class: "chat-field-actions__overlay-item__icon" })),
|
|
86
|
+
n("span", ee, h(m[f].label), 1)
|
|
87
87
|
], 8, Z))), 128))
|
|
88
88
|
], 512), [
|
|
89
|
-
[
|
|
89
|
+
[z, l.value]
|
|
90
90
|
])
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
}),
|
|
94
94
|
n("button", {
|
|
95
95
|
ref: "button",
|
|
96
|
-
onClick:
|
|
97
|
-
class: C(["chat-field-actions__button", { "chat-field-actions__button--active":
|
|
98
|
-
disabled:
|
|
96
|
+
onClick: t[0] || (t[0] = (f) => l.value = !l.value),
|
|
97
|
+
class: C(["chat-field-actions__button", { "chat-field-actions__button--active": l.value }]),
|
|
98
|
+
disabled: s.disabled
|
|
99
99
|
}, [
|
|
100
|
-
|
|
101
|
-
], 10,
|
|
100
|
+
v(c(j))
|
|
101
|
+
], 10, le)
|
|
102
102
|
]));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), te = /* @__PURE__ */ M(ae, [["__scopeId", "data-v-62b95e1b"]]), se = { class: "chat-field" }, oe = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "chat-field__files"
|
|
107
|
-
},
|
|
107
|
+
}, ie = { class: "chat-field__wrapper" }, ne = ["maxlength", "placeholder"], re = {
|
|
108
108
|
key: 1,
|
|
109
109
|
class: "chat-field__footer"
|
|
110
110
|
}, de = {
|
|
111
111
|
key: 1,
|
|
112
112
|
class: "chat-field__char-count"
|
|
113
|
-
},
|
|
113
|
+
}, ye = /* @__PURE__ */ g({
|
|
114
114
|
__name: "ChatField",
|
|
115
|
-
props: /* @__PURE__ */
|
|
115
|
+
props: /* @__PURE__ */ y({
|
|
116
116
|
viewActions: { type: Boolean, default: !1 },
|
|
117
117
|
actions: { default: () => ["file", "image"] },
|
|
118
118
|
placeholder: { default: "Введите сообщение" },
|
|
@@ -127,61 +127,61 @@ const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ y({
|
|
|
127
127
|
files: {},
|
|
128
128
|
filesModifiers: {}
|
|
129
129
|
}),
|
|
130
|
-
emits: /* @__PURE__ */
|
|
131
|
-
setup(
|
|
132
|
-
const
|
|
133
|
-
|
|
130
|
+
emits: /* @__PURE__ */ y(["sendMessage"], ["update:message", "update:files"]),
|
|
131
|
+
setup(r, { emit: i }) {
|
|
132
|
+
const d = i, u = b(r, "message"), l = b(r, "files"), m = (e) => {
|
|
133
|
+
l.value && (l.value = l.value.filter((s) => s.name !== e.name));
|
|
134
134
|
};
|
|
135
|
-
return (
|
|
136
|
-
|
|
137
|
-
(
|
|
138
|
-
key:
|
|
139
|
-
file:
|
|
140
|
-
onDeleteFile:
|
|
135
|
+
return (e, s) => (a(), o("div", se, [
|
|
136
|
+
l.value && l.value.length > 0 ? (a(), o("div", oe, [
|
|
137
|
+
(a(!0), o(I, null, T(l.value, (t) => (a(), p(W, {
|
|
138
|
+
key: t.name,
|
|
139
|
+
file: t,
|
|
140
|
+
onDeleteFile: m
|
|
141
141
|
}, null, 8, ["file"]))), 128))
|
|
142
|
-
])) :
|
|
143
|
-
n("div",
|
|
144
|
-
e.viewActions && e.actions.length > 0 ? (
|
|
142
|
+
])) : _("", !0),
|
|
143
|
+
n("div", ie, [
|
|
144
|
+
e.viewActions && e.actions.length > 0 ? (a(), p(te, {
|
|
145
145
|
key: 0,
|
|
146
|
-
modelValue:
|
|
147
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
146
|
+
modelValue: l.value,
|
|
147
|
+
"onUpdate:modelValue": s[0] || (s[0] = (t) => l.value = t),
|
|
148
148
|
actions: e.actions,
|
|
149
149
|
disabled: e.disabled
|
|
150
|
-
}, null, 8, ["modelValue", "actions", "disabled"])) :
|
|
150
|
+
}, null, 8, ["modelValue", "actions", "disabled"])) : _("", !0),
|
|
151
151
|
B(n("input", {
|
|
152
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
152
|
+
"onUpdate:modelValue": s[1] || (s[1] = (t) => u.value = t),
|
|
153
153
|
class: "chat-field__input",
|
|
154
154
|
maxlength: e.maxLength,
|
|
155
155
|
placeholder: e.placeholder
|
|
156
156
|
}, null, 8, ne), [
|
|
157
|
-
[
|
|
157
|
+
[N, u.value]
|
|
158
158
|
]),
|
|
159
159
|
n("button", {
|
|
160
160
|
class: "chat-field__button",
|
|
161
|
-
onClick: s[2] || (s[2] = (
|
|
161
|
+
onClick: s[2] || (s[2] = (t) => d("sendMessage"))
|
|
162
162
|
}, [
|
|
163
|
-
|
|
163
|
+
v(c(q))
|
|
164
164
|
])
|
|
165
165
|
]),
|
|
166
|
-
e.smallText || e.error && e.errorText || e.maxLength ? (
|
|
167
|
-
e.smallText || e.error && e.errorText ? (
|
|
166
|
+
e.smallText || e.error && e.errorText || e.maxLength ? (a(), o("div", re, [
|
|
167
|
+
e.smallText || e.error && e.errorText ? (a(), o("div", {
|
|
168
168
|
key: 0,
|
|
169
169
|
class: C(["chat-field__small", { "chat-field__small--error": e.error }])
|
|
170
|
-
},
|
|
171
|
-
e.maxLength ? (
|
|
172
|
-
])) :
|
|
170
|
+
}, h(e.error ? e.errorText : e.smallText), 3)) : _("", !0),
|
|
171
|
+
e.maxLength ? (a(), o("div", de, h(u.value.length) + " / " + h(e.maxLength), 1)) : _("", !0)
|
|
172
|
+
])) : _("", !0)
|
|
173
173
|
]));
|
|
174
174
|
}
|
|
175
|
-
}), ue = { class: "bonus-summary" },
|
|
175
|
+
}), ue = { class: "bonus-summary" }, be = /* @__PURE__ */ g({
|
|
176
176
|
__name: "BonusSummary",
|
|
177
|
-
setup(
|
|
178
|
-
return (
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
setup(r) {
|
|
178
|
+
return (i, d) => (a(), o("div", ue, [
|
|
179
|
+
v(c(H), { class: "bonus-summary__icon" }),
|
|
180
|
+
d[0] || (d[0] = n("div", { class: "bonus-summary__number" }, "123", -1))
|
|
181
181
|
]));
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
be as BonusSummary,
|
|
186
|
+
ye as ChatField
|
|
187
187
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toValue as p, unref as g } from "vue";
|
|
2
|
-
import { d as e, l as x, r as v, i as y, a as E, b as w, c as L, e as O, f as S, g as T } from "./parseFileSize.util-
|
|
2
|
+
import { d as e, l as x, r as v, i as y, a as E, b as w, c as L, e as O, f as S, g as T } from "./parseFileSize.util-CaHpLGi2.js";
|
|
3
3
|
const a = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
function m(n) {
|
|
5
5
|
const o = g(n);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),e=require("./parseFileSize.util-
|
|
1
|
+
"use strict";const l=require("vue"),e=require("./parseFileSize.util-D9hMoJaT.cjs"),u=new WeakMap;function m(n){const o=l.unref(n);return o?.$el??o}function p(n){return typeof n=="string"?document.querySelector(n):m(n)}function g(n,o,f={}){const r=p(n);if(!r)return()=>{};const d=u.get(r);d&&(d(),u.delete(r));const s=a=>{const i=a.target instanceof Node?a.target:null;if(!i)return;const y=(l.toValue(f.ignore)??[]).map(t=>typeof t=="string"?document.querySelector(t):m(t)).filter(t=>t!=null);r.contains(i)||y.some(t=>t.contains(i))||o(a)};document.addEventListener("mousedown",s,{capture:!0}),document.addEventListener("touchstart",s,{capture:!0});const c=()=>{document.removeEventListener("mousedown",s,{capture:!0}),document.removeEventListener("touchstart",s,{capture:!0}),u.delete(r)};return u.set(r,c),c}e.dayjs.extend(e.localizedFormat);e.dayjs.extend(e.relativeTime);e.dayjs.extend(e.isToday);e.dayjs.extend(e.isBetween);e.dayjs.extend(e.isSameOrBefore);e.dayjs.extend(e.isSameOrAfter);e.dayjs.extend(e.duration);e.dayjs.extend(e.customParseFormat);e.dayjs.extend(e.dayOfYear);e.dayjs.locale("ru");exports.onClickOutside=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue");let r=null,s=0;function c(){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=()=>{s++,s===1&&!r&&(r=c())},u=()=>{s>0&&s--,s===0&&r&&(r(),r=null)},i=()=>({unlockScroll:u,lockScroll:d}),p=["data-layer"],f=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,a)=>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,p)],8,["to","disabled"])):l.createCommentVNode("",!0)}});function y(){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(a=>a!==n))},emit(t,n){const e=o.get(t);e&&e.forEach(a=>a(n))},clear(){o.clear()}}}exports.EventBus=y;exports._sfc_main=f;exports.useBodyScroll=i;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as a, computed as d, createBlock as c, createCommentVNode as i, openBlock as u, Teleport as p, createElementVNode as f, normalizeStyle as y, renderSlot as m } from "vue";
|
|
2
2
|
let n = null, r = 0;
|
|
3
3
|
function S() {
|
|
4
|
-
const
|
|
5
|
-
return document.body.style.position = "fixed", document.body.style.top = `-${
|
|
6
|
-
document.body.style.position = "", document.body.style.top = "", window.scrollTo(0,
|
|
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
7
|
};
|
|
8
8
|
}
|
|
9
9
|
const h = () => {
|
|
10
10
|
r++, r === 1 && !n && (n = S());
|
|
11
11
|
}, b = () => {
|
|
12
12
|
r > 0 && r--, r === 0 && n && (n(), n = null);
|
|
13
|
-
},
|
|
13
|
+
}, k = () => ({
|
|
14
14
|
unlockScroll: b,
|
|
15
15
|
lockScroll: h
|
|
16
|
-
}), v = ["data-layer"],
|
|
16
|
+
}), v = ["data-layer"], B = /* @__PURE__ */ a({
|
|
17
17
|
__name: "Portal",
|
|
18
18
|
props: {
|
|
19
19
|
overlayType: { default: "modal" },
|
|
@@ -23,16 +23,16 @@ const h = () => {
|
|
|
23
23
|
show: { type: Boolean, default: !0 },
|
|
24
24
|
parentId: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const t =
|
|
26
|
+
setup(o) {
|
|
27
|
+
const t = o, l = d(() => {
|
|
28
28
|
if (t.zIndex) return t.zIndex;
|
|
29
29
|
});
|
|
30
|
-
return (
|
|
30
|
+
return (e, s) => e.show ? (u(), c(p, {
|
|
31
31
|
key: 0,
|
|
32
32
|
to: e.target,
|
|
33
33
|
disabled: !e.teleport
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
f("div", {
|
|
36
36
|
style: y({
|
|
37
37
|
zIndex: l.value,
|
|
38
38
|
position: "relative",
|
|
@@ -40,36 +40,36 @@ const h = () => {
|
|
|
40
40
|
}),
|
|
41
41
|
"data-layer": e.overlayType
|
|
42
42
|
}, [
|
|
43
|
-
m(
|
|
43
|
+
m(e.$slots, "default")
|
|
44
44
|
], 12, v)
|
|
45
45
|
], 8, ["to", "disabled"])) : i("", !0);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
function
|
|
49
|
-
const
|
|
48
|
+
function I() {
|
|
49
|
+
const o = /* @__PURE__ */ new Map();
|
|
50
50
|
return {
|
|
51
51
|
on(t, l) {
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const e = o.get(t) || [];
|
|
53
|
+
e.push(l), o.set(t, e);
|
|
54
54
|
},
|
|
55
55
|
off(t, l) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const e = o.get(t);
|
|
57
|
+
e && o.set(
|
|
58
58
|
t,
|
|
59
|
-
|
|
59
|
+
e.filter((s) => s !== l)
|
|
60
60
|
);
|
|
61
61
|
},
|
|
62
62
|
emit(t, l) {
|
|
63
|
-
const
|
|
64
|
-
|
|
63
|
+
const e = o.get(t);
|
|
64
|
+
e && e.forEach((s) => s(l));
|
|
65
65
|
},
|
|
66
66
|
clear() {
|
|
67
|
-
|
|
67
|
+
o.clear();
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
I as E,
|
|
73
|
+
B as _,
|
|
74
|
+
k as u
|
|
75
75
|
};
|
|
Binary file
|