@syntify/office 0.1.1 → 0.1.2-beta.1
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/syntify-office.es.js +239 -245
- package/dist/syntify-office.umd.js +8 -8
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Cr, ref as st, computed as Sr, resolveComponent as Bg, createBlock as Lr, openBlock as X, withCtx as ft, createElementVNode as A, normalizeClass as Er, toDisplayString as Qe, createElementBlock as ue, renderSlot as We, createVNode as Ar, unref as br, createCommentVNode as ct, withDirectives as Tr, withModifiers as xn, vModelText as Gg, onMounted as Ua, onBeforeUnmount as Kg, Fragment as xr, renderList as Qi, Transition as ka, normalizeStyle as Hg, vModelSelect as Xg, createTextVNode as Or, provide as kg, inject as Pg, onUnmounted as Qg, vShow as Wa, nextTick as Zg, resolveDirective as jg, normalizeProps as bn, guardReactiveProps as On, resolveDynamicComponent as Rg, mergeProps as Mg, toHandlers as ev, mergeModels as tv, useModel as nv, watch as rv } from "vue";
|
|
2
2
|
import { useRoute as iv, useRouter as uv } from "vue-router";
|
|
3
|
-
const ov = /* @__PURE__ */
|
|
3
|
+
const ov = /* @__PURE__ */ Cr({
|
|
4
4
|
__name: "OfficeLink",
|
|
5
5
|
props: {
|
|
6
6
|
label: {
|
|
@@ -20,13 +20,13 @@ const ov = /* @__PURE__ */ Sr({
|
|
|
20
20
|
setup(d, { emit: m }) {
|
|
21
21
|
const a = m, N = iv(), F = st(d.to), k = ($) => {
|
|
22
22
|
F.value = $, a("close");
|
|
23
|
-
}, w =
|
|
24
|
-
return ($,
|
|
23
|
+
}, w = Sr(() => N.path.split("/")[1]);
|
|
24
|
+
return ($, q) => {
|
|
25
25
|
const re = Bg("RouterLink");
|
|
26
|
-
return X(),
|
|
26
|
+
return X(), Lr(re, {
|
|
27
27
|
to: d.to,
|
|
28
28
|
class: "synt-office-link",
|
|
29
|
-
onClick:
|
|
29
|
+
onClick: q[0] || (q[0] = (fe) => k(d.to))
|
|
30
30
|
}, {
|
|
31
31
|
default: ft(() => [
|
|
32
32
|
A("i", {
|
|
@@ -48,13 +48,13 @@ const ov = /* @__PURE__ */ Sr({
|
|
|
48
48
|
for (const [N, F] of m)
|
|
49
49
|
a[N] = F;
|
|
50
50
|
return a;
|
|
51
|
-
},
|
|
51
|
+
}, d0 = /* @__PURE__ */ Ir(ov, [["__scopeId", "data-v-1d74c6dc"]]), av = {}, lv = { class: "synt-office-layout-wrapper" };
|
|
52
52
|
function sv(d, m) {
|
|
53
53
|
return X(), ue("div", lv, [
|
|
54
54
|
We(d.$slots, "default", {}, void 0, !0)
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
57
|
-
const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098c"]]), cv = { class: "synt-office-header-wrapper" }, hv = { class: "synt-office-header-start" }, pv = { class: "synt-office-header-start-wrapper" }, dv = { class: "synt-office-header-icon-wrapper" }, gv = { class: "synt-office-header-label" }, vv = { class: "synt-office-header-end" }, _v = /* @__PURE__ */
|
|
57
|
+
const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098c"]]), cv = { class: "synt-office-header-wrapper" }, hv = { class: "synt-office-header-start" }, pv = { class: "synt-office-header-start-wrapper" }, dv = { class: "synt-office-header-icon-wrapper" }, gv = { class: "synt-office-header-label" }, vv = { class: "synt-office-header-end" }, _v = /* @__PURE__ */ Cr({
|
|
58
58
|
__name: "OfficeHeader",
|
|
59
59
|
props: {
|
|
60
60
|
label: {
|
|
@@ -84,7 +84,7 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
84
84
|
])
|
|
85
85
|
]));
|
|
86
86
|
}
|
|
87
|
-
}), Yg = /* @__PURE__ */ Ir(_v, [["__scopeId", "data-v-008e5eb7"]]), Jg = /* @__PURE__ */
|
|
87
|
+
}), Yg = /* @__PURE__ */ Ir(_v, [["__scopeId", "data-v-008e5eb7"]]), Jg = /* @__PURE__ */ Cr({
|
|
88
88
|
__name: "OfficeLayout",
|
|
89
89
|
props: {
|
|
90
90
|
label: {
|
|
@@ -97,7 +97,7 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
setup(d) {
|
|
100
|
-
return (m, a) => (X(),
|
|
100
|
+
return (m, a) => (X(), Lr(fv, null, {
|
|
101
101
|
default: ft(() => [
|
|
102
102
|
Ar(br(Yg), {
|
|
103
103
|
label: d.label,
|
|
@@ -116,7 +116,7 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
116
116
|
_: 3
|
|
117
117
|
}));
|
|
118
118
|
}
|
|
119
|
-
}), yv = { class: "synt-office-collection-wrapper" }, mv = /* @__PURE__ */
|
|
119
|
+
}), yv = { class: "synt-office-collection-wrapper" }, mv = /* @__PURE__ */ Cr({
|
|
120
120
|
__name: "OfficeCollection",
|
|
121
121
|
props: {
|
|
122
122
|
initialValues: {},
|
|
@@ -127,14 +127,14 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
127
127
|
setup(d, { emit: m }) {
|
|
128
128
|
return (a, N) => {
|
|
129
129
|
const F = Bg("RouterLink");
|
|
130
|
-
return X(),
|
|
130
|
+
return X(), Lr(br(Jg), {
|
|
131
131
|
icon: a.model.info.icon,
|
|
132
132
|
label: a.model.label
|
|
133
133
|
}, {
|
|
134
134
|
end: ft(() => {
|
|
135
135
|
var k, w, $;
|
|
136
136
|
return [
|
|
137
|
-
(k = a.model.excludes) != null && k.includes("create") ? ct("", !0) : (X(),
|
|
137
|
+
(k = a.model.excludes) != null && k.includes("create") ? ct("", !0) : (X(), Lr(F, {
|
|
138
138
|
key: 0,
|
|
139
139
|
to: {
|
|
140
140
|
path: `${a.model.collection.path}/new`,
|
|
@@ -153,15 +153,15 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
153
153
|
key: 0,
|
|
154
154
|
type: "button",
|
|
155
155
|
class: "synt-office-collection-btn-refresh",
|
|
156
|
-
onClick: N[0] || (N[0] = xn((
|
|
156
|
+
onClick: N[0] || (N[0] = xn((q) => a.$emit("refresh"), ["prevent"]))
|
|
157
157
|
}, N[3] || (N[3] = [
|
|
158
158
|
A("i", { class: "synt-office-collection-btn-refresh-icon fa-solid fa-sync" }, null, -1)
|
|
159
159
|
]))),
|
|
160
160
|
We(a.$slots, "head", {}, void 0, !0),
|
|
161
|
-
($ = a.model.excludes) != null && $.includes("search") ? ct("", !0) :
|
|
161
|
+
($ = a.model.excludes) != null && $.includes("search") ? ct("", !0) : Tr((X(), ue("input", {
|
|
162
162
|
key: 1,
|
|
163
163
|
type: "search",
|
|
164
|
-
"onUpdate:modelValue": N[1] || (N[1] = (
|
|
164
|
+
"onUpdate:modelValue": N[1] || (N[1] = (q) => a.query.search = q),
|
|
165
165
|
class: "synt-office-collection-input-search",
|
|
166
166
|
placeholder: "Cari..."
|
|
167
167
|
}, null, 512)), [
|
|
@@ -177,13 +177,13 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
177
177
|
}, 8, ["icon", "label"]);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
}),
|
|
180
|
+
}), g0 = /* @__PURE__ */ Ir(mv, [["__scopeId", "data-v-b03396c3"]]), wv = ["id"], bv = { id: "table-collection" }, xv = ["onClick", "onContextmenu"], Av = { class: "synt-badge-tabel" }, Ov = {
|
|
181
181
|
key: 0,
|
|
182
182
|
class: "synt-loading"
|
|
183
183
|
}, Cv = {
|
|
184
184
|
key: 1,
|
|
185
185
|
class: "synt-table-empty"
|
|
186
|
-
}, Sv = { class: "synt-office-collection-table-footer" }, Lv = { class: "synt-office-collection-table-footer-start" }, Tv = { class: "synt-office-collection-table-footer-end" }, Ev = { class: "synt-office-collection-table-footer-meta" }, Iv = { class: "synt-office-collection-font-bold" }, Rv = { class: "synt-office-collection-font-bold" }, $v = { class: "synt-office-collection-font-bold" }, Bv = { class: "synt-office-collection-paginate-wrapper" }, Dv = ["disabled"], kv = ["disabled"], Pv = /* @__PURE__ */
|
|
186
|
+
}, Sv = { class: "synt-office-collection-table-footer" }, Lv = { class: "synt-office-collection-table-footer-start" }, Tv = { class: "synt-office-collection-table-footer-end" }, Ev = { class: "synt-office-collection-table-footer-meta" }, Iv = { class: "synt-office-collection-font-bold" }, Rv = { class: "synt-office-collection-font-bold" }, $v = { class: "synt-office-collection-font-bold" }, Bv = { class: "synt-office-collection-paginate-wrapper" }, Dv = ["disabled"], kv = ["disabled"], Pv = /* @__PURE__ */ Cr({
|
|
187
187
|
__name: "OfficeCollectionTable",
|
|
188
188
|
props: {
|
|
189
189
|
items: {},
|
|
@@ -193,7 +193,7 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
193
193
|
isLoading: { type: Boolean }
|
|
194
194
|
},
|
|
195
195
|
setup(d) {
|
|
196
|
-
const m = d, a = uv(), N =
|
|
196
|
+
const m = d, a = uv(), N = Sr(() => m.model.definition.replace(":", "_").replace("/", "")), F = st({
|
|
197
197
|
visible: !1,
|
|
198
198
|
x: 0,
|
|
199
199
|
y: 0,
|
|
@@ -214,18 +214,18 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
214
214
|
id: P
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function q() {
|
|
218
218
|
F.value.visible && (F.value.visible = !1);
|
|
219
219
|
}
|
|
220
220
|
function re(Y) {
|
|
221
221
|
const P = `${m.model.collection.path}/${Y}`;
|
|
222
|
-
window.open(P, "_blank"),
|
|
222
|
+
window.open(P, "_blank"), q();
|
|
223
223
|
}
|
|
224
224
|
function fe(Y) {
|
|
225
225
|
var ie;
|
|
226
226
|
if ((ie = m.model.excludes) != null && ie.includes("edit")) return;
|
|
227
227
|
const P = `${m.model.collection.path}/${Y}`;
|
|
228
|
-
a.push(P),
|
|
228
|
+
a.push(P), q();
|
|
229
229
|
}
|
|
230
230
|
function le(Y) {
|
|
231
231
|
const P = `${location.origin}/user/${Y}`;
|
|
@@ -233,12 +233,12 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
233
233
|
console.log("Link copied:", P);
|
|
234
234
|
}).catch((ie) => {
|
|
235
235
|
console.error("Failed to copy:", ie);
|
|
236
|
-
}),
|
|
236
|
+
}), q();
|
|
237
237
|
}
|
|
238
238
|
return Ua(() => {
|
|
239
|
-
window.addEventListener("click",
|
|
239
|
+
window.addEventListener("click", q);
|
|
240
240
|
}), Kg(() => {
|
|
241
|
-
window.removeEventListener("click",
|
|
241
|
+
window.removeEventListener("click", q);
|
|
242
242
|
}), (Y, P) => (X(), ue(xr, null, [
|
|
243
243
|
A("div", {
|
|
244
244
|
id: N.value,
|
|
@@ -253,11 +253,11 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
253
253
|
]),
|
|
254
254
|
A("tbody", null, [
|
|
255
255
|
(X(!0), ue(xr, null, Qi(Y.items, (ie, Xe) => {
|
|
256
|
-
var
|
|
256
|
+
var V;
|
|
257
257
|
return X(), ue("tr", {
|
|
258
258
|
key: Xe,
|
|
259
259
|
class: Er({
|
|
260
|
-
"synt-cursor-pointer": !((
|
|
260
|
+
"synt-cursor-pointer": !((V = Y.model.excludes) != null && V.includes("edit"))
|
|
261
261
|
}),
|
|
262
262
|
onClick: xn((ce) => fe(ie.id), ["prevent"]),
|
|
263
263
|
onContextmenu: xn((ce) => $(ce, ie.id), ["prevent"])
|
|
@@ -314,7 +314,7 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
314
314
|
A("div", Sv, [
|
|
315
315
|
A("div", Lv, [
|
|
316
316
|
P[13] || (P[13] = A("span", { class: "synt-office-collection-table-footer-tampilkan" }, "Tampilkan", -1)),
|
|
317
|
-
|
|
317
|
+
Tr(A("select", {
|
|
318
318
|
"onUpdate:modelValue": P[3] || (P[3] = (ie) => Y.query.limit = ie),
|
|
319
319
|
class: "synt-office-collection-table-footer-select"
|
|
320
320
|
}, P[12] || (P[12] = [
|
|
@@ -329,9 +329,9 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
329
329
|
A("div", Tv, [
|
|
330
330
|
A("div", Ev, [
|
|
331
331
|
A("span", Iv, Qe(k()), 1),
|
|
332
|
-
P[14] || (P[14] =
|
|
332
|
+
P[14] || (P[14] = Or(" - ")),
|
|
333
333
|
A("span", Rv, Qe(w()), 1),
|
|
334
|
-
P[15] || (P[15] =
|
|
334
|
+
P[15] || (P[15] = Or(" dari ")),
|
|
335
335
|
A("span", $v, Qe(Y.meta.total), 1)
|
|
336
336
|
]),
|
|
337
337
|
A("div", Bv, [
|
|
@@ -356,8 +356,8 @@ const fv = /* @__PURE__ */ Ir(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
356
356
|
])
|
|
357
357
|
], 64));
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
360
|
-
var
|
|
359
|
+
}), v0 = /* @__PURE__ */ Ir(Pv, [["__scopeId", "data-v-d0ead452"]]);
|
|
360
|
+
var Pa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
361
361
|
function Mv(d) {
|
|
362
362
|
return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
|
|
363
363
|
}
|
|
@@ -374,9 +374,9 @@ var Fv = Da.exports, Fg;
|
|
|
374
374
|
function Wv() {
|
|
375
375
|
return Fg || (Fg = 1, function(d, m) {
|
|
376
376
|
(function() {
|
|
377
|
-
var a, N = "4.17.21", F = 200, k = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", w = "Expected a function", $ = "Invalid `variable` option passed into `_.template`",
|
|
378
|
-
["ary",
|
|
379
|
-
["bind",
|
|
377
|
+
var a, N = "4.17.21", F = 200, k = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", w = "Expected a function", $ = "Invalid `variable` option passed into `_.template`", q = "__lodash_hash_undefined__", re = 500, fe = "__lodash_placeholder__", le = 1, Y = 2, P = 4, ie = 1, Xe = 2, V = 1, ce = 2, Bt = 4, Me = 8, xt = 16, Fe = 32, j = 64, K = 128, Ke = 256, At = 512, Cn = 30, Sn = "...", ji = 800, Xt = 16, ht = 1, Ln = 2, eu = 3, An = 1 / 0, Dt = 9007199254740991, Na = 17976931348623157e292, Tn = NaN, He = 4294967295, za = He - 1, qa = He >>> 1, Va = [
|
|
378
|
+
["ary", K],
|
|
379
|
+
["bind", V],
|
|
380
380
|
["bindKey", ce],
|
|
381
381
|
["curry", Me],
|
|
382
382
|
["curryRight", xt],
|
|
@@ -640,7 +640,7 @@ function Wv() {
|
|
|
640
640
|
"\r": "r",
|
|
641
641
|
"\u2028": "u2028",
|
|
642
642
|
"\u2029": "u2029"
|
|
643
|
-
}, Jl = parseFloat, Xl = parseInt, Su = typeof
|
|
643
|
+
}, Jl = parseFloat, Xl = parseInt, Su = typeof Pa == "object" && Pa && Pa.Object === Object && Pa, Ql = typeof self == "object" && self && self.Object === Object && self, he = Su || Ql || Function("return this")(), Hr = m && !m.nodeType && m, Ot = Hr && !0 && d && !d.nodeType && d, Lu = Ot && Ot.exports === Hr, Zr = Lu && Su.process, Ee = function() {
|
|
644
644
|
try {
|
|
645
645
|
var f = Ot && Ot.require && Ot.require("util").types;
|
|
646
646
|
return f || Zr && Zr.binding && Zr.binding("util");
|
|
@@ -775,8 +775,8 @@ function Wv() {
|
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
777
|
function Fu(f, p, h, b, L) {
|
|
778
|
-
return L(f, function(W, oe,
|
|
779
|
-
h = b ? (b = !1, W) : p(h, W, oe,
|
|
778
|
+
return L(f, function(W, oe, G) {
|
|
779
|
+
h = b ? (b = !1, W) : p(h, W, oe, G);
|
|
780
780
|
}), h;
|
|
781
781
|
}
|
|
782
782
|
function os(f, p) {
|
|
@@ -918,18 +918,18 @@ function Wv() {
|
|
|
918
918
|
}
|
|
919
919
|
var xs = function f(p) {
|
|
920
920
|
p = p == null ? he : Nt.defaults(he.Object(), p, Nt.pick(he, Vl));
|
|
921
|
-
var h = p.Array, b = p.Date, L = p.Error, W = p.Function, oe = p.Math,
|
|
921
|
+
var h = p.Array, b = p.Date, L = p.Error, W = p.Function, oe = p.Math, G = p.Object, ii = p.RegExp, As = p.String, Re = p.TypeError, Wn = h.prototype, Os = W.prototype, zt = G.prototype, Un = p["__core-js_shared__"], Nn = Os.toString, z = zt.hasOwnProperty, Cs = 0, Vu = function() {
|
|
922
922
|
var e = /[^.]+$/.exec(Un && Un.keys && Un.keys.IE_PROTO || "");
|
|
923
923
|
return e ? "Symbol(src)_1." + e : "";
|
|
924
|
-
}(), zn = zt.toString, Ss = Nn.call(
|
|
924
|
+
}(), zn = zt.toString, Ss = Nn.call(G), Ls = he._, Ts = ii(
|
|
925
925
|
"^" + Nn.call(z).replace(Ur, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
926
|
-
), qn = Lu ? p.Buffer : a, vt = p.Symbol, Vn = p.Uint8Array, Gu = qn ? qn.allocUnsafe : a, Gn = zu(
|
|
926
|
+
), qn = Lu ? p.Buffer : a, vt = p.Symbol, Vn = p.Uint8Array, Gu = qn ? qn.allocUnsafe : a, Gn = zu(G.getPrototypeOf, G), Ku = G.create, Hu = zt.propertyIsEnumerable, Kn = Wn.splice, Zu = vt ? vt.isConcatSpreadable : a, an = vt ? vt.iterator : a, Ct = vt ? vt.toStringTag : a, Hn = function() {
|
|
927
927
|
try {
|
|
928
|
-
var e = It(
|
|
928
|
+
var e = It(G, "defineProperty");
|
|
929
929
|
return e({}, "", {}), e;
|
|
930
930
|
} catch {
|
|
931
931
|
}
|
|
932
|
-
}(), Es = p.clearTimeout !== he.clearTimeout && p.clearTimeout, Is = b && b.now !== he.Date.now && b.now, Rs = p.setTimeout !== he.setTimeout && p.setTimeout, Zn = oe.ceil, Yn = oe.floor, ui =
|
|
932
|
+
}(), Es = p.clearTimeout !== he.clearTimeout && p.clearTimeout, Is = b && b.now !== he.Date.now && b.now, Rs = p.setTimeout !== he.setTimeout && p.setTimeout, Zn = oe.ceil, Yn = oe.floor, ui = G.getOwnPropertySymbols, $s = qn ? qn.isBuffer : a, Yu = p.isFinite, Bs = Wn.join, Ds = zu(G.keys, G), ae = oe.max, de = oe.min, ks = b.now, Ps = p.parseInt, Ju = oe.random, Ms = Wn.reverse, oi = It(p, "DataView"), ln = It(p, "Map"), ai = It(p, "Promise"), qt = It(p, "Set"), sn = It(p, "WeakMap"), fn = It(G, "create"), Jn = sn && new sn(), Vt = {}, Fs = Rt(oi), Ws = Rt(ln), Us = Rt(ai), Ns = Rt(qt), zs = Rt(sn), Xn = vt ? vt.prototype : a, cn = Xn ? Xn.valueOf : a, Xu = Xn ? Xn.toString : a;
|
|
933
933
|
function u(e) {
|
|
934
934
|
if (ee(e) && !T(e) && !(e instanceof D)) {
|
|
935
935
|
if (e instanceof $e)
|
|
@@ -1058,7 +1058,7 @@ function Wv() {
|
|
|
1058
1058
|
var t = this.__data__;
|
|
1059
1059
|
if (fn) {
|
|
1060
1060
|
var n = t[e];
|
|
1061
|
-
return n ===
|
|
1061
|
+
return n === q ? a : n;
|
|
1062
1062
|
}
|
|
1063
1063
|
return z.call(t, e) ? t[e] : a;
|
|
1064
1064
|
}
|
|
@@ -1068,7 +1068,7 @@ function Wv() {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
function Js(e, t) {
|
|
1070
1070
|
var n = this.__data__;
|
|
1071
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = fn && t === a ?
|
|
1071
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = fn && t === a ? q : t, this;
|
|
1072
1072
|
}
|
|
1073
1073
|
St.prototype.clear = Ks, St.prototype.delete = Hs, St.prototype.get = Zs, St.prototype.has = Ys, St.prototype.set = Js;
|
|
1074
1074
|
function et(e) {
|
|
@@ -1135,7 +1135,7 @@ function Wv() {
|
|
|
1135
1135
|
this.add(e[t]);
|
|
1136
1136
|
}
|
|
1137
1137
|
function lf(e) {
|
|
1138
|
-
return this.__data__.set(e,
|
|
1138
|
+
return this.__data__.set(e, q), this;
|
|
1139
1139
|
}
|
|
1140
1140
|
function sf(e) {
|
|
1141
1141
|
return this.__data__.has(e);
|
|
@@ -1276,7 +1276,7 @@ function Wv() {
|
|
|
1276
1276
|
var r = n.length;
|
|
1277
1277
|
if (e == null)
|
|
1278
1278
|
return !r;
|
|
1279
|
-
for (e =
|
|
1279
|
+
for (e = G(e); r--; ) {
|
|
1280
1280
|
var i = n[r], o = t[i], l = e[i];
|
|
1281
1281
|
if (l === a && !(i in e) || !o(l))
|
|
1282
1282
|
return !1;
|
|
@@ -1365,7 +1365,7 @@ function Wv() {
|
|
|
1365
1365
|
return T(e) ? r : dt(r, n(e));
|
|
1366
1366
|
}
|
|
1367
1367
|
function ve(e) {
|
|
1368
|
-
return e == null ? e === a ? Ya : Ha : Ct && Ct in
|
|
1368
|
+
return e == null ? e === a ? Ya : Ha : Ct && Ct in G(e) ? rc(e) : vc(e);
|
|
1369
1369
|
}
|
|
1370
1370
|
function hi(e, t) {
|
|
1371
1371
|
return e > t;
|
|
@@ -1374,7 +1374,7 @@ function Wv() {
|
|
|
1374
1374
|
return e != null && z.call(e, t);
|
|
1375
1375
|
}
|
|
1376
1376
|
function Af(e, t) {
|
|
1377
|
-
return e != null && t in
|
|
1377
|
+
return e != null && t in G(e);
|
|
1378
1378
|
}
|
|
1379
1379
|
function Of(e, t, n) {
|
|
1380
1380
|
return e >= de(t, n) && e < ae(t, n);
|
|
@@ -1449,7 +1449,7 @@ function Wv() {
|
|
|
1449
1449
|
var i = n.length, o = i, l = !r;
|
|
1450
1450
|
if (e == null)
|
|
1451
1451
|
return !o;
|
|
1452
|
-
for (e =
|
|
1452
|
+
for (e = G(e); i--; ) {
|
|
1453
1453
|
var s = n[i];
|
|
1454
1454
|
if (l && s[2] ? s[1] !== e[s[0]] : !(s[0] in e))
|
|
1455
1455
|
return !1;
|
|
@@ -1492,7 +1492,7 @@ function Wv() {
|
|
|
1492
1492
|
if (!yn(e))
|
|
1493
1493
|
return Ds(e);
|
|
1494
1494
|
var t = [];
|
|
1495
|
-
for (var n in
|
|
1495
|
+
for (var n in G(e))
|
|
1496
1496
|
z.call(e, n) && n != "constructor" && t.push(n);
|
|
1497
1497
|
return t;
|
|
1498
1498
|
}
|
|
@@ -1814,7 +1814,7 @@ function Wv() {
|
|
|
1814
1814
|
return t.lastIndex = e.lastIndex, t;
|
|
1815
1815
|
}
|
|
1816
1816
|
function Kf(e) {
|
|
1817
|
-
return cn ?
|
|
1817
|
+
return cn ? G(cn.call(e)) : {};
|
|
1818
1818
|
}
|
|
1819
1819
|
function So(e, t) {
|
|
1820
1820
|
var n = t ? Ci(e.buffer) : e.buffer;
|
|
@@ -1890,7 +1890,7 @@ function Wv() {
|
|
|
1890
1890
|
function Kt(e) {
|
|
1891
1891
|
return R(function(t, n) {
|
|
1892
1892
|
var r = -1, i = n.length, o = i > 1 ? n[i - 1] : a, l = i > 2 ? n[2] : a;
|
|
1893
|
-
for (o = e.length > 3 && typeof o == "function" ? (i--, o) : a, l && _e(n[0], n[1], l) && (o = i < 3 ? a : o, i = 1), t =
|
|
1893
|
+
for (o = e.length > 3 && typeof o == "function" ? (i--, o) : a, l && _e(n[0], n[1], l) && (o = i < 3 ? a : o, i = 1), t = G(t); ++r < i; ) {
|
|
1894
1894
|
var s = n[r];
|
|
1895
1895
|
s && e(t, s, r, o);
|
|
1896
1896
|
}
|
|
@@ -1903,14 +1903,14 @@ function Wv() {
|
|
|
1903
1903
|
return n;
|
|
1904
1904
|
if (!we(n))
|
|
1905
1905
|
return e(n, r);
|
|
1906
|
-
for (var i = n.length, o = t ? i : -1, l =
|
|
1906
|
+
for (var i = n.length, o = t ? i : -1, l = G(n); (t ? o-- : ++o < i) && r(l[o], o, l) !== !1; )
|
|
1907
1907
|
;
|
|
1908
1908
|
return n;
|
|
1909
1909
|
};
|
|
1910
1910
|
}
|
|
1911
1911
|
function Ro(e) {
|
|
1912
1912
|
return function(t, n, r) {
|
|
1913
|
-
for (var i = -1, o =
|
|
1913
|
+
for (var i = -1, o = G(t), l = r(t), s = l.length; s--; ) {
|
|
1914
1914
|
var c = l[e ? s : ++i];
|
|
1915
1915
|
if (n(o[c], c, o) === !1)
|
|
1916
1916
|
break;
|
|
@@ -1919,7 +1919,7 @@ function Wv() {
|
|
|
1919
1919
|
};
|
|
1920
1920
|
}
|
|
1921
1921
|
function Jf(e, t, n) {
|
|
1922
|
-
var r = t &
|
|
1922
|
+
var r = t & V, i = _n(e);
|
|
1923
1923
|
function o() {
|
|
1924
1924
|
var l = this && this !== he && this instanceof o ? i : e;
|
|
1925
1925
|
return l.apply(r ? n : this, arguments);
|
|
@@ -1989,7 +1989,7 @@ function Wv() {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
function Bo(e) {
|
|
1991
1991
|
return function(t, n, r) {
|
|
1992
|
-
var i =
|
|
1992
|
+
var i = G(t);
|
|
1993
1993
|
if (!we(t)) {
|
|
1994
1994
|
var o = O(n, 3);
|
|
1995
1995
|
t = se(t), n = function(s) {
|
|
@@ -2013,7 +2013,7 @@ function Wv() {
|
|
|
2013
2013
|
for (r = l ? r : n; ++r < n; ) {
|
|
2014
2014
|
o = t[r];
|
|
2015
2015
|
var s = fr(o), c = s == "wrapper" ? Ii(o) : a;
|
|
2016
|
-
c && Di(c[0]) && c[1] == (
|
|
2016
|
+
c && Di(c[0]) && c[1] == (K | Me | Fe | Ke) && !c[4].length && c[9] == 1 ? l = l[fr(c[0])].apply(l, c[3]) : l = o.length == 1 && Di(o) ? l[s]() : l.thru(o);
|
|
2017
2017
|
}
|
|
2018
2018
|
return function() {
|
|
2019
2019
|
var g = arguments, v = g[0];
|
|
@@ -2026,7 +2026,7 @@ function Wv() {
|
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
2028
|
function or(e, t, n, r, i, o, l, s, c, g) {
|
|
2029
|
-
var v = t &
|
|
2029
|
+
var v = t & K, _ = t & V, y = t & ce, x = t & (Me | xt), C = t & At, I = y ? a : _n(e);
|
|
2030
2030
|
function S() {
|
|
2031
2031
|
for (var B = arguments.length, M = h(B), Le = B; Le--; )
|
|
2032
2032
|
M[Le] = arguments[Le];
|
|
@@ -2089,7 +2089,7 @@ function Wv() {
|
|
|
2089
2089
|
return Wt(t) ? wt(ze(r), 0, e).join("") : r.slice(0, e);
|
|
2090
2090
|
}
|
|
2091
2091
|
function Qf(e, t, n, r) {
|
|
2092
|
-
var i = t &
|
|
2092
|
+
var i = t & V, o = _n(e);
|
|
2093
2093
|
function l() {
|
|
2094
2094
|
for (var s = -1, c = arguments.length, g = -1, v = r.length, _ = h(v + c), y = this && this !== he && this instanceof l ? o : e; ++g < v; )
|
|
2095
2095
|
_[g] = r[g];
|
|
@@ -2166,9 +2166,9 @@ function Wv() {
|
|
|
2166
2166
|
l,
|
|
2167
2167
|
s
|
|
2168
2168
|
];
|
|
2169
|
-
if (y && dc(x, y), e = x[0], t = x[1], n = x[2], r = x[3], i = x[4], s = x[9] = x[9] === a ? c ? 0 : e.length : ae(x[9] - g, 0), !s && t & (Me | xt) && (t &= -25), !t || t ==
|
|
2169
|
+
if (y && dc(x, y), e = x[0], t = x[1], n = x[2], r = x[3], i = x[4], s = x[9] = x[9] === a ? c ? 0 : e.length : ae(x[9] - g, 0), !s && t & (Me | xt) && (t &= -25), !t || t == V)
|
|
2170
2170
|
var C = Jf(e, t, n);
|
|
2171
|
-
else t == Me || t == xt ? C = Xf(e, t, s) : (t == Fe || t == (
|
|
2171
|
+
else t == Me || t == xt ? C = Xf(e, t, s) : (t == Fe || t == (V | Fe)) && !i.length ? C = Qf(e, t, n, r) : C = or.apply(a, x);
|
|
2172
2172
|
var I = y ? yo : Yo;
|
|
2173
2173
|
return Jo(I(C, x), e, t);
|
|
2174
2174
|
}
|
|
@@ -2334,7 +2334,7 @@ function Wv() {
|
|
|
2334
2334
|
return r && (t ? e[Ct] = n : delete e[Ct]), i;
|
|
2335
2335
|
}
|
|
2336
2336
|
var $i = ui ? function(e) {
|
|
2337
|
-
return e == null ? [] : (e =
|
|
2337
|
+
return e == null ? [] : (e = G(e), pt(ui(e), function(t) {
|
|
2338
2338
|
return Hu.call(e, t);
|
|
2339
2339
|
}));
|
|
2340
2340
|
} : Ji, zo = ui ? function(e) {
|
|
@@ -2459,7 +2459,7 @@ function Wv() {
|
|
|
2459
2459
|
if (T(e))
|
|
2460
2460
|
return !1;
|
|
2461
2461
|
var n = typeof e;
|
|
2462
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null || Se(e) ? !0 : ul.test(e) || !il.test(e) || t != null && e in
|
|
2462
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Se(e) ? !0 : ul.test(e) || !il.test(e) || t != null && e in G(t);
|
|
2463
2463
|
}
|
|
2464
2464
|
function fc(e) {
|
|
2465
2465
|
var t = typeof e;
|
|
@@ -2487,7 +2487,7 @@ function Wv() {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
function Ko(e, t) {
|
|
2489
2489
|
return function(n) {
|
|
2490
|
-
return n == null ? !1 : n[e] === t && (t !== a || e in
|
|
2490
|
+
return n == null ? !1 : n[e] === t && (t !== a || e in G(n));
|
|
2491
2491
|
};
|
|
2492
2492
|
}
|
|
2493
2493
|
function pc(e) {
|
|
@@ -2497,21 +2497,21 @@ function Wv() {
|
|
|
2497
2497
|
return t;
|
|
2498
2498
|
}
|
|
2499
2499
|
function dc(e, t) {
|
|
2500
|
-
var n = e[1], r = t[1], i = n | r, o = i < (
|
|
2500
|
+
var n = e[1], r = t[1], i = n | r, o = i < (V | ce | K), l = r == K && n == Me || r == K && n == Ke && e[7].length <= t[8] || r == (K | Ke) && t[7].length <= t[8] && n == Me;
|
|
2501
2501
|
if (!(o || l))
|
|
2502
2502
|
return e;
|
|
2503
|
-
r &
|
|
2503
|
+
r & V && (e[2] = t[2], i |= n & V ? 0 : Bt);
|
|
2504
2504
|
var s = t[3];
|
|
2505
2505
|
if (s) {
|
|
2506
2506
|
var c = e[3];
|
|
2507
2507
|
e[3] = c ? To(c, s, t[4]) : s, e[4] = c ? gt(e[3], fe) : t[4];
|
|
2508
2508
|
}
|
|
2509
|
-
return s = t[5], s && (c = e[5], e[5] = c ? Eo(c, s, t[6]) : s, e[6] = c ? gt(e[5], fe) : t[6]), s = t[7], s && (e[7] = s), r &
|
|
2509
|
+
return s = t[5], s && (c = e[5], e[5] = c ? Eo(c, s, t[6]) : s, e[6] = c ? gt(e[5], fe) : t[6]), s = t[7], s && (e[7] = s), r & K && (e[8] = e[8] == null ? t[8] : de(e[8], t[8])), e[9] == null && (e[9] = t[9]), e[0] = t[0], e[1] = i, e;
|
|
2510
2510
|
}
|
|
2511
2511
|
function gc(e) {
|
|
2512
2512
|
var t = [];
|
|
2513
2513
|
if (e != null)
|
|
2514
|
-
for (var n in
|
|
2514
|
+
for (var n in G(e))
|
|
2515
2515
|
t.push(n);
|
|
2516
2516
|
return t;
|
|
2517
2517
|
}
|
|
@@ -3047,7 +3047,7 @@ function Wv() {
|
|
|
3047
3047
|
};
|
|
3048
3048
|
}
|
|
3049
3049
|
function sa(e, t, n) {
|
|
3050
|
-
return t = n ? a : t, t = e && t == null ? e.length : t, rt(e,
|
|
3050
|
+
return t = n ? a : t, t = e && t == null ? e.length : t, rt(e, K, a, a, a, a, t);
|
|
3051
3051
|
}
|
|
3052
3052
|
function fa(e, t) {
|
|
3053
3053
|
var n;
|
|
@@ -3058,14 +3058,14 @@ function Wv() {
|
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
3060
|
var Wi = R(function(e, t, n) {
|
|
3061
|
-
var r =
|
|
3061
|
+
var r = V;
|
|
3062
3062
|
if (n.length) {
|
|
3063
3063
|
var i = gt(n, Zt(Wi));
|
|
3064
3064
|
r |= Fe;
|
|
3065
3065
|
}
|
|
3066
3066
|
return rt(e, r, t, n, i);
|
|
3067
3067
|
}), ca = R(function(e, t, n) {
|
|
3068
|
-
var r =
|
|
3068
|
+
var r = V | ce;
|
|
3069
3069
|
if (n.length) {
|
|
3070
3070
|
var i = gt(n, Zt(ca));
|
|
3071
3071
|
r |= Fe;
|
|
@@ -3438,7 +3438,7 @@ function Wv() {
|
|
|
3438
3438
|
return t == null ? n : eo(n, t);
|
|
3439
3439
|
}
|
|
3440
3440
|
var qp = R(function(e, t) {
|
|
3441
|
-
e =
|
|
3441
|
+
e = G(e);
|
|
3442
3442
|
var n = -1, r = t.length, i = r > 2 ? t[2] : a;
|
|
3443
3443
|
for (i && _e(t[0], t[1], i) && (r = 1); ++n < r; )
|
|
3444
3444
|
for (var o = t[n], l = be(o), s = -1, c = l.length; ++s < c; ) {
|
|
@@ -4035,31 +4035,31 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4035
4035
|
}(Da, Da.exports)), Da.exports;
|
|
4036
4036
|
}
|
|
4037
4037
|
var Uv = Wv();
|
|
4038
|
-
const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrollbar" }, qv = ["onClick"], Vv = { class: "synt-office-tabs-label" }, Gv = /* @__PURE__ */
|
|
4038
|
+
const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrollbar" }, qv = ["onClick"], Vv = { class: "synt-office-tabs-label" }, Gv = /* @__PURE__ */ Cr({
|
|
4039
4039
|
__name: "OfficeTabs",
|
|
4040
4040
|
setup(d) {
|
|
4041
4041
|
const m = st(null), a = st([]), N = (w, $) => {
|
|
4042
4042
|
a.value.push({ title: w, setActive: $ }), m.value === null && (m.value = w, $(!0));
|
|
4043
4043
|
}, F = (w) => {
|
|
4044
4044
|
var $;
|
|
4045
|
-
a.value = a.value.filter((
|
|
4045
|
+
a.value = a.value.filter((q) => q.title !== w), m.value === w && (m.value = (($ = a.value[0]) == null ? void 0 : $.title) || null, a.value.length > 0 ? (m.value = a.value[0].title, a.value.forEach((q) => q.setActive(q.title === m.value))) : m.value = null);
|
|
4046
4046
|
}, k = (w) => {
|
|
4047
4047
|
m.value = w, a.value.forEach(($) => $.setActive($.title === w));
|
|
4048
4048
|
};
|
|
4049
4049
|
return kg("registerTab", N), kg("unregisterTab", F), (w, $) => (X(), ue(xr, null, [
|
|
4050
4050
|
A("div", zv, [
|
|
4051
|
-
(X(!0), ue(xr, null, Qi(a.value, (
|
|
4052
|
-
key:
|
|
4053
|
-
onClick: (re) => k(
|
|
4054
|
-
class: Er({ active:
|
|
4051
|
+
(X(!0), ue(xr, null, Qi(a.value, (q) => (X(), ue("button", {
|
|
4052
|
+
key: q.title,
|
|
4053
|
+
onClick: (re) => k(q.title),
|
|
4054
|
+
class: Er({ active: q.title === m.value })
|
|
4055
4055
|
}, [
|
|
4056
|
-
A("span", Vv, Qe(br(Nv).capitalize(
|
|
4056
|
+
A("span", Vv, Qe(br(Nv).capitalize(q.title)), 1)
|
|
4057
4057
|
], 10, qv))), 128))
|
|
4058
4058
|
]),
|
|
4059
4059
|
We(w.$slots, "default", {}, void 0, !0)
|
|
4060
4060
|
], 64));
|
|
4061
4061
|
}
|
|
4062
|
-
}),
|
|
4062
|
+
}), _0 = /* @__PURE__ */ Ir(Gv, [["__scopeId", "data-v-cb6fcfc8"]]), Kv = { class: "synt-office-tab" }, Hv = /* @__PURE__ */ Cr({
|
|
4063
4063
|
__name: "OfficeTab",
|
|
4064
4064
|
props: {
|
|
4065
4065
|
title: {
|
|
@@ -4071,19 +4071,19 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4071
4071
|
const m = st(!1), a = Pg(
|
|
4072
4072
|
"registerTab"
|
|
4073
4073
|
), N = Pg("unregisterTab");
|
|
4074
|
-
return Ua(() => a == null ? void 0 : a(d.title, (F) => m.value = F)), Qg(() => N == null ? void 0 : N(d.title)), (F, k) =>
|
|
4074
|
+
return Ua(() => a == null ? void 0 : a(d.title, (F) => m.value = F)), Qg(() => N == null ? void 0 : N(d.title)), (F, k) => Tr((X(), ue("div", Kv, [
|
|
4075
4075
|
We(F.$slots, "default", {}, void 0, !0)
|
|
4076
4076
|
], 512)), [
|
|
4077
|
-
[
|
|
4077
|
+
[Wa, m.value]
|
|
4078
4078
|
]);
|
|
4079
4079
|
}
|
|
4080
|
-
}),
|
|
4080
|
+
}), y0 = /* @__PURE__ */ Ir(Hv, [["__scopeId", "data-v-42b62811"]]), Zv = {
|
|
4081
4081
|
ref: "iconToggleRef",
|
|
4082
4082
|
class: "lux-office-single-text-sm fa-solid fa-arrow-left"
|
|
4083
4083
|
}, Yv = { key: 1 }, Jv = {
|
|
4084
4084
|
key: 0,
|
|
4085
4085
|
class: "lux-office-single-modal-delete-overlay"
|
|
4086
|
-
}, Xv = { class: "lux-office-single-modal-delete-wrapper" }, Qv = { class: "lux-office-single-modal-content" }, jv = { class: "lux-office-single-font-semibold" }, e_ = { class: "lux-office-single-modal-btn-wrapper" }, t_ = { class: "lux-office-single-content" }, n_ = /* @__PURE__ */
|
|
4086
|
+
}, Xv = { class: "lux-office-single-modal-delete-wrapper" }, Qv = { class: "lux-office-single-modal-content" }, jv = { class: "lux-office-single-font-semibold" }, e_ = { class: "lux-office-single-modal-btn-wrapper" }, t_ = { class: "lux-office-single-content" }, n_ = /* @__PURE__ */ Cr({
|
|
4087
4087
|
__name: "OfficeSingle",
|
|
4088
4088
|
props: {
|
|
4089
4089
|
model: {},
|
|
@@ -4092,18 +4092,18 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4092
4092
|
},
|
|
4093
4093
|
emits: ["delete", "duplicate"],
|
|
4094
4094
|
setup(d, { emit: m }) {
|
|
4095
|
-
const a = d, N = m, F = st(!1), k = st({}), w = st(null), $ = st(null),
|
|
4096
|
-
var
|
|
4097
|
-
if (!((
|
|
4098
|
-
const Bt =
|
|
4095
|
+
const a = d, N = m, F = st(!1), k = st({}), w = st(null), $ = st(null), q = st(null), re = st(!1), fe = async () => {
|
|
4096
|
+
var V, ce;
|
|
4097
|
+
if (!((V = a.model.excludes) != null && V.includes("delete") && ((ce = a.model.excludes) != null && ce.includes("duplicate"))) && (F.value = !F.value, await Zg(), F.value && q.value && $.value)) {
|
|
4098
|
+
const Bt = q.value.getBoundingClientRect();
|
|
4099
4099
|
k.value = {
|
|
4100
4100
|
top: `${Bt.height}px`,
|
|
4101
4101
|
right: "0px",
|
|
4102
4102
|
position: "absolute"
|
|
4103
4103
|
};
|
|
4104
4104
|
}
|
|
4105
|
-
}, le = (
|
|
4106
|
-
F.value && w.value && !w.value.contains(
|
|
4105
|
+
}, le = (V) => {
|
|
4106
|
+
F.value && w.value && !w.value.contains(V.target) && (F.value = !1);
|
|
4107
4107
|
}, Y = async () => {
|
|
4108
4108
|
await N("duplicate"), F.value = !1;
|
|
4109
4109
|
}, P = async () => {
|
|
@@ -4117,15 +4117,15 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4117
4117
|
document.addEventListener("click", le);
|
|
4118
4118
|
}), Kg(() => {
|
|
4119
4119
|
document.removeEventListener("click", le);
|
|
4120
|
-
}), (
|
|
4120
|
+
}), (V, ce) => {
|
|
4121
4121
|
const Bt = Bg("RouterLink");
|
|
4122
|
-
return X(),
|
|
4123
|
-
icon:
|
|
4124
|
-
label: `${
|
|
4122
|
+
return X(), Lr(br(Jg), {
|
|
4123
|
+
icon: V.model.info.icon,
|
|
4124
|
+
label: `${V.isNew ? "New" : ""} ${V.model.label}`
|
|
4125
4125
|
}, {
|
|
4126
4126
|
start: ft(() => [
|
|
4127
4127
|
Ar(Bt, {
|
|
4128
|
-
to: `${
|
|
4128
|
+
to: `${V.model.single.path}`,
|
|
4129
4129
|
class: "lux-office-single-btn-back"
|
|
4130
4130
|
}, {
|
|
4131
4131
|
default: ft(() => [
|
|
@@ -4133,7 +4133,7 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4133
4133
|
]),
|
|
4134
4134
|
_: 1
|
|
4135
4135
|
}, 8, ["to"]),
|
|
4136
|
-
We(
|
|
4136
|
+
We(V.$slots, "start", {}, void 0, !0)
|
|
4137
4137
|
]),
|
|
4138
4138
|
end: ft(() => [
|
|
4139
4139
|
A("div", {
|
|
@@ -4141,10 +4141,10 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4141
4141
|
ref: w,
|
|
4142
4142
|
class: "lux-office-single-dropdown-wrapper"
|
|
4143
4143
|
}, [
|
|
4144
|
-
|
|
4144
|
+
V.isNew ? ct("", !0) : (X(), ue("button", {
|
|
4145
4145
|
key: 0,
|
|
4146
4146
|
ref_key: "buttonRef",
|
|
4147
|
-
ref:
|
|
4147
|
+
ref: q,
|
|
4148
4148
|
type: "button",
|
|
4149
4149
|
class: "lux-office-single-dropdown-btn",
|
|
4150
4150
|
onClick: xn(fe, ["prevent"])
|
|
@@ -4163,7 +4163,7 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4163
4163
|
style: Hg(k.value)
|
|
4164
4164
|
}, [
|
|
4165
4165
|
A("ul", null, [
|
|
4166
|
-
(Me =
|
|
4166
|
+
(Me = V.model.excludes) != null && Me.includes("duplicate") ? ct("", !0) : (X(), ue("li", {
|
|
4167
4167
|
key: 0,
|
|
4168
4168
|
class: "lux-office-single-dropdown-option",
|
|
4169
4169
|
onClick: Y
|
|
@@ -4171,8 +4171,8 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4171
4171
|
A("i", { class: "lux-office-single-dropdown-option-icon fa-regular fa-copy" }, null, -1),
|
|
4172
4172
|
A("span", null, "Duplicate", -1)
|
|
4173
4173
|
]))),
|
|
4174
|
-
!((xt =
|
|
4175
|
-
(j =
|
|
4174
|
+
!((xt = V.model.excludes) != null && xt.includes("delete")) && !((Fe = V.model.excludes) != null && Fe.includes("duplicate")) ? (X(), ue("hr", Yv)) : ct("", !0),
|
|
4175
|
+
(j = V.model.excludes) != null && j.includes("delete") ? ct("", !0) : (X(), ue("li", {
|
|
4176
4176
|
key: 2,
|
|
4177
4177
|
class: "lux-office-single-dropdown-option",
|
|
4178
4178
|
onClick: ie
|
|
@@ -4187,7 +4187,7 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4187
4187
|
_: 1
|
|
4188
4188
|
})
|
|
4189
4189
|
], 512),
|
|
4190
|
-
We(
|
|
4190
|
+
We(V.$slots, "end", {}, void 0, !0)
|
|
4191
4191
|
]),
|
|
4192
4192
|
default: ft(() => [
|
|
4193
4193
|
Ar(ka, { name: "fade" }, {
|
|
@@ -4202,9 +4202,9 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4202
4202
|
], -1)),
|
|
4203
4203
|
A("div", Qv, [
|
|
4204
4204
|
A("p", null, [
|
|
4205
|
-
ce[3] || (ce[3] =
|
|
4206
|
-
A("span", jv, Qe(
|
|
4207
|
-
ce[4] || (ce[4] =
|
|
4205
|
+
ce[3] || (ce[3] = Or(" Are you sure want to delete item ")),
|
|
4206
|
+
A("span", jv, Qe(V.values[V.model.info.display]), 1),
|
|
4207
|
+
ce[4] || (ce[4] = Or(" ? "))
|
|
4208
4208
|
]),
|
|
4209
4209
|
A("div", e_, [
|
|
4210
4210
|
A("button", {
|
|
@@ -4225,14 +4225,14 @@ const Nv = /* @__PURE__ */ Mv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4225
4225
|
_: 1
|
|
4226
4226
|
}),
|
|
4227
4227
|
A("div", t_, [
|
|
4228
|
-
We(
|
|
4228
|
+
We(V.$slots, "default", {}, void 0, !0)
|
|
4229
4229
|
])
|
|
4230
4230
|
]),
|
|
4231
4231
|
_: 3
|
|
4232
4232
|
}, 8, ["icon", "label"]);
|
|
4233
4233
|
};
|
|
4234
4234
|
}
|
|
4235
|
-
}),
|
|
4235
|
+
}), m0 = /* @__PURE__ */ Ir(n_, [["__scopeId", "data-v-17c8510a"]]);
|
|
4236
4236
|
var r_ = Object.defineProperty, i_ = Object.defineProperties, u_ = Object.getOwnPropertyDescriptors, Wg = Object.getOwnPropertySymbols, o_ = Object.prototype.hasOwnProperty, a_ = Object.prototype.propertyIsEnumerable, Ug = (d, m, a) => m in d ? r_(d, m, { enumerable: !0, configurable: !0, writable: !0, value: a }) : d[m] = a, tu = (d, m) => {
|
|
4237
4237
|
for (var a in m || (m = {}))
|
|
4238
4238
|
o_.call(m, a) && Ug(d, a, m[a]);
|
|
@@ -4871,7 +4871,7 @@ https://vue-select.org/api/props.html#getoptionkey`, d, m);
|
|
|
4871
4871
|
}, B_ = ["disabled"], D_ = { class: "vs__spinner" }, k_ = ["id"], P_ = ["id", "aria-selected", "onMouseover", "onClick"], M_ = {
|
|
4872
4872
|
key: 0,
|
|
4873
4873
|
class: "vs__no-options"
|
|
4874
|
-
}, F_ = /* @__PURE__ */
|
|
4874
|
+
}, F_ = /* @__PURE__ */ Or(" Sorry, no matching options. "), W_ = ["id"];
|
|
4875
4875
|
function U_(d, m, a, N, F, k) {
|
|
4876
4876
|
const w = jg("append-to-body");
|
|
4877
4877
|
return X(), ue("div", {
|
|
@@ -4890,7 +4890,7 @@ function U_(d, m, a, N, F, k) {
|
|
|
4890
4890
|
onMousedown: m[1] || (m[1] = ($) => k.toggleDropdown($))
|
|
4891
4891
|
}, [
|
|
4892
4892
|
A("div", I_, [
|
|
4893
|
-
(X(!0), ue(xr, null, Qi(k.selectedValue, ($,
|
|
4893
|
+
(X(!0), ue(xr, null, Qi(k.selectedValue, ($, q) => We(d.$slots, "selected-option-container", {
|
|
4894
4894
|
option: k.normalizeOptionForSlot($),
|
|
4895
4895
|
deselect: k.deselect,
|
|
4896
4896
|
multiple: a.multiple,
|
|
@@ -4901,12 +4901,12 @@ function U_(d, m, a, N, F, k) {
|
|
|
4901
4901
|
class: "vs__selected"
|
|
4902
4902
|
}, [
|
|
4903
4903
|
We(d.$slots, "selected-option", bn(On(k.normalizeOptionForSlot($))), () => [
|
|
4904
|
-
|
|
4904
|
+
Or(Qe(a.getOptionLabel($)), 1)
|
|
4905
4905
|
]),
|
|
4906
4906
|
a.multiple ? (X(), ue("button", {
|
|
4907
4907
|
key: 0,
|
|
4908
4908
|
ref_for: !0,
|
|
4909
|
-
ref: (re) => F.deselectButtons[
|
|
4909
|
+
ref: (re) => F.deselectButtons[q] = re,
|
|
4910
4910
|
disabled: a.disabled,
|
|
4911
4911
|
type: "button",
|
|
4912
4912
|
class: "vs__deselect",
|
|
@@ -4914,7 +4914,7 @@ function U_(d, m, a, N, F, k) {
|
|
|
4914
4914
|
"aria-label": `Deselect ${a.getOptionLabel($)}`,
|
|
4915
4915
|
onClick: (re) => k.deselect($)
|
|
4916
4916
|
}, [
|
|
4917
|
-
(X(),
|
|
4917
|
+
(X(), Lr(Rg(k.childComponents.Deselect)))
|
|
4918
4918
|
], 8, R_)) : ct("", !0)
|
|
4919
4919
|
]))
|
|
4920
4920
|
])), 256)),
|
|
@@ -4923,7 +4923,7 @@ function U_(d, m, a, N, F, k) {
|
|
|
4923
4923
|
])
|
|
4924
4924
|
], 512),
|
|
4925
4925
|
A("div", $_, [
|
|
4926
|
-
|
|
4926
|
+
Tr(A("button", {
|
|
4927
4927
|
ref: "clearButton",
|
|
4928
4928
|
disabled: a.disabled,
|
|
4929
4929
|
type: "button",
|
|
@@ -4932,23 +4932,23 @@ function U_(d, m, a, N, F, k) {
|
|
|
4932
4932
|
"aria-label": "Clear Selected",
|
|
4933
4933
|
onClick: m[0] || (m[0] = (...$) => k.clearSelection && k.clearSelection(...$))
|
|
4934
4934
|
}, [
|
|
4935
|
-
(X(),
|
|
4935
|
+
(X(), Lr(Rg(k.childComponents.Deselect)))
|
|
4936
4936
|
], 8, B_), [
|
|
4937
|
-
[
|
|
4937
|
+
[Wa, k.showClearButton]
|
|
4938
4938
|
]),
|
|
4939
4939
|
We(d.$slots, "open-indicator", bn(On(k.scope.openIndicator)), () => [
|
|
4940
|
-
a.noDrop ? ct("", !0) : (X(),
|
|
4940
|
+
a.noDrop ? ct("", !0) : (X(), Lr(Rg(k.childComponents.OpenIndicator), bn(Mg({ key: 0 }, k.scope.openIndicator.attributes)), null, 16))
|
|
4941
4941
|
]),
|
|
4942
4942
|
We(d.$slots, "spinner", bn(On(k.scope.spinner)), () => [
|
|
4943
|
-
|
|
4944
|
-
[
|
|
4943
|
+
Tr(A("div", D_, "Loading...", 512), [
|
|
4944
|
+
[Wa, d.mutableLoading]
|
|
4945
4945
|
])
|
|
4946
4946
|
])
|
|
4947
4947
|
], 512)
|
|
4948
4948
|
], 40, E_),
|
|
4949
4949
|
Ar(ka, { name: a.transition }, {
|
|
4950
4950
|
default: ft(() => [
|
|
4951
|
-
k.dropdownOpen ?
|
|
4951
|
+
k.dropdownOpen ? Tr((X(), ue("ul", {
|
|
4952
4952
|
id: `vs${a.uid}__listbox`,
|
|
4953
4953
|
ref: "dropdownMenu",
|
|
4954
4954
|
key: `vs${a.uid}__listbox`,
|
|
@@ -4959,22 +4959,22 @@ function U_(d, m, a, N, F, k) {
|
|
|
4959
4959
|
onMouseup: m[3] || (m[3] = (...$) => k.onMouseUp && k.onMouseUp(...$))
|
|
4960
4960
|
}, [
|
|
4961
4961
|
We(d.$slots, "list-header", bn(On(k.scope.listHeader))),
|
|
4962
|
-
(X(!0), ue(xr, null, Qi(k.filteredOptions, ($,
|
|
4963
|
-
id: `vs${a.uid}__option-${
|
|
4962
|
+
(X(!0), ue(xr, null, Qi(k.filteredOptions, ($, q) => (X(), ue("li", {
|
|
4963
|
+
id: `vs${a.uid}__option-${q}`,
|
|
4964
4964
|
key: a.getOptionKey($),
|
|
4965
4965
|
role: "option",
|
|
4966
4966
|
class: Er(["vs__dropdown-option", {
|
|
4967
|
-
"vs__dropdown-option--deselect": k.isOptionDeselectable($) &&
|
|
4967
|
+
"vs__dropdown-option--deselect": k.isOptionDeselectable($) && q === d.typeAheadPointer,
|
|
4968
4968
|
"vs__dropdown-option--selected": k.isOptionSelected($),
|
|
4969
|
-
"vs__dropdown-option--highlight":
|
|
4969
|
+
"vs__dropdown-option--highlight": q === d.typeAheadPointer,
|
|
4970
4970
|
"vs__dropdown-option--disabled": !a.selectable($)
|
|
4971
4971
|
}]),
|
|
4972
|
-
"aria-selected":
|
|
4973
|
-
onMouseover: (re) => a.selectable($) ? d.typeAheadPointer =
|
|
4972
|
+
"aria-selected": q === d.typeAheadPointer ? !0 : null,
|
|
4973
|
+
onMouseover: (re) => a.selectable($) ? d.typeAheadPointer = q : null,
|
|
4974
4974
|
onClick: xn((re) => a.selectable($) ? k.select($) : null, ["prevent", "stop"])
|
|
4975
4975
|
}, [
|
|
4976
4976
|
We(d.$slots, "option", bn(On(k.normalizeOptionForSlot($))), () => [
|
|
4977
|
-
|
|
4977
|
+
Or(Qe(a.getOptionLabel($)), 1)
|
|
4978
4978
|
])
|
|
4979
4979
|
], 42, P_))), 128)),
|
|
4980
4980
|
k.filteredOptions.length === 0 ? (X(), ue("li", M_, [
|
|
@@ -4998,7 +4998,7 @@ function U_(d, m, a, N, F, k) {
|
|
|
4998
4998
|
], 10, T_);
|
|
4999
4999
|
}
|
|
5000
5000
|
const N_ = /* @__PURE__ */ Dg(L_, [["render", U_]]);
|
|
5001
|
-
var
|
|
5001
|
+
var Ma = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Fa = { exports: {} };
|
|
5002
5002
|
/**
|
|
5003
5003
|
* @license
|
|
5004
5004
|
* Lodash <https://lodash.com/>
|
|
@@ -5007,13 +5007,13 @@ var Fa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
5007
5007
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
5008
5008
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
5009
5009
|
*/
|
|
5010
|
-
var z_ =
|
|
5010
|
+
var z_ = Fa.exports, qg;
|
|
5011
5011
|
function q_() {
|
|
5012
5012
|
return qg || (qg = 1, function(d, m) {
|
|
5013
5013
|
(function() {
|
|
5014
|
-
var a, N = "4.17.21", F = 200, k = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", w = "Expected a function", $ = "Invalid `variable` option passed into `_.template`",
|
|
5015
|
-
["ary",
|
|
5016
|
-
["bind",
|
|
5014
|
+
var a, N = "4.17.21", F = 200, k = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", w = "Expected a function", $ = "Invalid `variable` option passed into `_.template`", q = "__lodash_hash_undefined__", re = 500, fe = "__lodash_placeholder__", le = 1, Y = 2, P = 4, ie = 1, Xe = 2, V = 1, ce = 2, Bt = 4, Me = 8, xt = 16, Fe = 32, j = 64, K = 128, Ke = 256, At = 512, Cn = 30, Sn = "...", ji = 800, Xt = 16, ht = 1, Ln = 2, eu = 3, An = 1 / 0, Dt = 9007199254740991, Na = 17976931348623157e292, Tn = NaN, He = 4294967295, za = He - 1, qa = He >>> 1, Va = [
|
|
5015
|
+
["ary", K],
|
|
5016
|
+
["bind", V],
|
|
5017
5017
|
["bindKey", ce],
|
|
5018
5018
|
["curry", Me],
|
|
5019
5019
|
["curryRight", xt],
|
|
@@ -5277,7 +5277,7 @@ function q_() {
|
|
|
5277
5277
|
"\r": "r",
|
|
5278
5278
|
"\u2028": "u2028",
|
|
5279
5279
|
"\u2029": "u2029"
|
|
5280
|
-
}, Jl = parseFloat, Xl = parseInt, Su = typeof
|
|
5280
|
+
}, Jl = parseFloat, Xl = parseInt, Su = typeof Ma == "object" && Ma && Ma.Object === Object && Ma, Ql = typeof self == "object" && self && self.Object === Object && self, he = Su || Ql || Function("return this")(), Hr = m && !m.nodeType && m, Ot = Hr && !0 && d && !d.nodeType && d, Lu = Ot && Ot.exports === Hr, Zr = Lu && Su.process, Ee = function() {
|
|
5281
5281
|
try {
|
|
5282
5282
|
var f = Ot && Ot.require && Ot.require("util").types;
|
|
5283
5283
|
return f || Zr && Zr.binding && Zr.binding("util");
|
|
@@ -5412,8 +5412,8 @@ function q_() {
|
|
|
5412
5412
|
};
|
|
5413
5413
|
}
|
|
5414
5414
|
function Fu(f, p, h, b, L) {
|
|
5415
|
-
return L(f, function(W, oe,
|
|
5416
|
-
h = b ? (b = !1, W) : p(h, W, oe,
|
|
5415
|
+
return L(f, function(W, oe, G) {
|
|
5416
|
+
h = b ? (b = !1, W) : p(h, W, oe, G);
|
|
5417
5417
|
}), h;
|
|
5418
5418
|
}
|
|
5419
5419
|
function os(f, p) {
|
|
@@ -5555,18 +5555,18 @@ function q_() {
|
|
|
5555
5555
|
}
|
|
5556
5556
|
var xs = function f(p) {
|
|
5557
5557
|
p = p == null ? he : Nt.defaults(he.Object(), p, Nt.pick(he, Vl));
|
|
5558
|
-
var h = p.Array, b = p.Date, L = p.Error, W = p.Function, oe = p.Math,
|
|
5558
|
+
var h = p.Array, b = p.Date, L = p.Error, W = p.Function, oe = p.Math, G = p.Object, ii = p.RegExp, As = p.String, Re = p.TypeError, Wn = h.prototype, Os = W.prototype, zt = G.prototype, Un = p["__core-js_shared__"], Nn = Os.toString, z = zt.hasOwnProperty, Cs = 0, Vu = function() {
|
|
5559
5559
|
var e = /[^.]+$/.exec(Un && Un.keys && Un.keys.IE_PROTO || "");
|
|
5560
5560
|
return e ? "Symbol(src)_1." + e : "";
|
|
5561
|
-
}(), zn = zt.toString, Ss = Nn.call(
|
|
5561
|
+
}(), zn = zt.toString, Ss = Nn.call(G), Ls = he._, Ts = ii(
|
|
5562
5562
|
"^" + Nn.call(z).replace(Ur, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
5563
|
-
), qn = Lu ? p.Buffer : a, vt = p.Symbol, Vn = p.Uint8Array, Gu = qn ? qn.allocUnsafe : a, Gn = zu(
|
|
5563
|
+
), qn = Lu ? p.Buffer : a, vt = p.Symbol, Vn = p.Uint8Array, Gu = qn ? qn.allocUnsafe : a, Gn = zu(G.getPrototypeOf, G), Ku = G.create, Hu = zt.propertyIsEnumerable, Kn = Wn.splice, Zu = vt ? vt.isConcatSpreadable : a, an = vt ? vt.iterator : a, Ct = vt ? vt.toStringTag : a, Hn = function() {
|
|
5564
5564
|
try {
|
|
5565
|
-
var e = It(
|
|
5565
|
+
var e = It(G, "defineProperty");
|
|
5566
5566
|
return e({}, "", {}), e;
|
|
5567
5567
|
} catch {
|
|
5568
5568
|
}
|
|
5569
|
-
}(), Es = p.clearTimeout !== he.clearTimeout && p.clearTimeout, Is = b && b.now !== he.Date.now && b.now, Rs = p.setTimeout !== he.setTimeout && p.setTimeout, Zn = oe.ceil, Yn = oe.floor, ui =
|
|
5569
|
+
}(), Es = p.clearTimeout !== he.clearTimeout && p.clearTimeout, Is = b && b.now !== he.Date.now && b.now, Rs = p.setTimeout !== he.setTimeout && p.setTimeout, Zn = oe.ceil, Yn = oe.floor, ui = G.getOwnPropertySymbols, $s = qn ? qn.isBuffer : a, Yu = p.isFinite, Bs = Wn.join, Ds = zu(G.keys, G), ae = oe.max, de = oe.min, ks = b.now, Ps = p.parseInt, Ju = oe.random, Ms = Wn.reverse, oi = It(p, "DataView"), ln = It(p, "Map"), ai = It(p, "Promise"), qt = It(p, "Set"), sn = It(p, "WeakMap"), fn = It(G, "create"), Jn = sn && new sn(), Vt = {}, Fs = Rt(oi), Ws = Rt(ln), Us = Rt(ai), Ns = Rt(qt), zs = Rt(sn), Xn = vt ? vt.prototype : a, cn = Xn ? Xn.valueOf : a, Xu = Xn ? Xn.toString : a;
|
|
5570
5570
|
function u(e) {
|
|
5571
5571
|
if (ee(e) && !T(e) && !(e instanceof D)) {
|
|
5572
5572
|
if (e instanceof $e)
|
|
@@ -5695,7 +5695,7 @@ function q_() {
|
|
|
5695
5695
|
var t = this.__data__;
|
|
5696
5696
|
if (fn) {
|
|
5697
5697
|
var n = t[e];
|
|
5698
|
-
return n ===
|
|
5698
|
+
return n === q ? a : n;
|
|
5699
5699
|
}
|
|
5700
5700
|
return z.call(t, e) ? t[e] : a;
|
|
5701
5701
|
}
|
|
@@ -5705,7 +5705,7 @@ function q_() {
|
|
|
5705
5705
|
}
|
|
5706
5706
|
function Js(e, t) {
|
|
5707
5707
|
var n = this.__data__;
|
|
5708
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = fn && t === a ?
|
|
5708
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = fn && t === a ? q : t, this;
|
|
5709
5709
|
}
|
|
5710
5710
|
St.prototype.clear = Ks, St.prototype.delete = Hs, St.prototype.get = Zs, St.prototype.has = Ys, St.prototype.set = Js;
|
|
5711
5711
|
function et(e) {
|
|
@@ -5772,7 +5772,7 @@ function q_() {
|
|
|
5772
5772
|
this.add(e[t]);
|
|
5773
5773
|
}
|
|
5774
5774
|
function lf(e) {
|
|
5775
|
-
return this.__data__.set(e,
|
|
5775
|
+
return this.__data__.set(e, q), this;
|
|
5776
5776
|
}
|
|
5777
5777
|
function sf(e) {
|
|
5778
5778
|
return this.__data__.has(e);
|
|
@@ -5913,7 +5913,7 @@ function q_() {
|
|
|
5913
5913
|
var r = n.length;
|
|
5914
5914
|
if (e == null)
|
|
5915
5915
|
return !r;
|
|
5916
|
-
for (e =
|
|
5916
|
+
for (e = G(e); r--; ) {
|
|
5917
5917
|
var i = n[r], o = t[i], l = e[i];
|
|
5918
5918
|
if (l === a && !(i in e) || !o(l))
|
|
5919
5919
|
return !1;
|
|
@@ -6002,7 +6002,7 @@ function q_() {
|
|
|
6002
6002
|
return T(e) ? r : dt(r, n(e));
|
|
6003
6003
|
}
|
|
6004
6004
|
function ve(e) {
|
|
6005
|
-
return e == null ? e === a ? Ya : Ha : Ct && Ct in
|
|
6005
|
+
return e == null ? e === a ? Ya : Ha : Ct && Ct in G(e) ? rc(e) : vc(e);
|
|
6006
6006
|
}
|
|
6007
6007
|
function hi(e, t) {
|
|
6008
6008
|
return e > t;
|
|
@@ -6011,7 +6011,7 @@ function q_() {
|
|
|
6011
6011
|
return e != null && z.call(e, t);
|
|
6012
6012
|
}
|
|
6013
6013
|
function Af(e, t) {
|
|
6014
|
-
return e != null && t in
|
|
6014
|
+
return e != null && t in G(e);
|
|
6015
6015
|
}
|
|
6016
6016
|
function Of(e, t, n) {
|
|
6017
6017
|
return e >= de(t, n) && e < ae(t, n);
|
|
@@ -6086,7 +6086,7 @@ function q_() {
|
|
|
6086
6086
|
var i = n.length, o = i, l = !r;
|
|
6087
6087
|
if (e == null)
|
|
6088
6088
|
return !o;
|
|
6089
|
-
for (e =
|
|
6089
|
+
for (e = G(e); i--; ) {
|
|
6090
6090
|
var s = n[i];
|
|
6091
6091
|
if (l && s[2] ? s[1] !== e[s[0]] : !(s[0] in e))
|
|
6092
6092
|
return !1;
|
|
@@ -6129,7 +6129,7 @@ function q_() {
|
|
|
6129
6129
|
if (!yn(e))
|
|
6130
6130
|
return Ds(e);
|
|
6131
6131
|
var t = [];
|
|
6132
|
-
for (var n in
|
|
6132
|
+
for (var n in G(e))
|
|
6133
6133
|
z.call(e, n) && n != "constructor" && t.push(n);
|
|
6134
6134
|
return t;
|
|
6135
6135
|
}
|
|
@@ -6451,7 +6451,7 @@ function q_() {
|
|
|
6451
6451
|
return t.lastIndex = e.lastIndex, t;
|
|
6452
6452
|
}
|
|
6453
6453
|
function Kf(e) {
|
|
6454
|
-
return cn ?
|
|
6454
|
+
return cn ? G(cn.call(e)) : {};
|
|
6455
6455
|
}
|
|
6456
6456
|
function So(e, t) {
|
|
6457
6457
|
var n = t ? Ci(e.buffer) : e.buffer;
|
|
@@ -6527,7 +6527,7 @@ function q_() {
|
|
|
6527
6527
|
function Kt(e) {
|
|
6528
6528
|
return R(function(t, n) {
|
|
6529
6529
|
var r = -1, i = n.length, o = i > 1 ? n[i - 1] : a, l = i > 2 ? n[2] : a;
|
|
6530
|
-
for (o = e.length > 3 && typeof o == "function" ? (i--, o) : a, l && _e(n[0], n[1], l) && (o = i < 3 ? a : o, i = 1), t =
|
|
6530
|
+
for (o = e.length > 3 && typeof o == "function" ? (i--, o) : a, l && _e(n[0], n[1], l) && (o = i < 3 ? a : o, i = 1), t = G(t); ++r < i; ) {
|
|
6531
6531
|
var s = n[r];
|
|
6532
6532
|
s && e(t, s, r, o);
|
|
6533
6533
|
}
|
|
@@ -6540,14 +6540,14 @@ function q_() {
|
|
|
6540
6540
|
return n;
|
|
6541
6541
|
if (!we(n))
|
|
6542
6542
|
return e(n, r);
|
|
6543
|
-
for (var i = n.length, o = t ? i : -1, l =
|
|
6543
|
+
for (var i = n.length, o = t ? i : -1, l = G(n); (t ? o-- : ++o < i) && r(l[o], o, l) !== !1; )
|
|
6544
6544
|
;
|
|
6545
6545
|
return n;
|
|
6546
6546
|
};
|
|
6547
6547
|
}
|
|
6548
6548
|
function Ro(e) {
|
|
6549
6549
|
return function(t, n, r) {
|
|
6550
|
-
for (var i = -1, o =
|
|
6550
|
+
for (var i = -1, o = G(t), l = r(t), s = l.length; s--; ) {
|
|
6551
6551
|
var c = l[e ? s : ++i];
|
|
6552
6552
|
if (n(o[c], c, o) === !1)
|
|
6553
6553
|
break;
|
|
@@ -6556,7 +6556,7 @@ function q_() {
|
|
|
6556
6556
|
};
|
|
6557
6557
|
}
|
|
6558
6558
|
function Jf(e, t, n) {
|
|
6559
|
-
var r = t &
|
|
6559
|
+
var r = t & V, i = _n(e);
|
|
6560
6560
|
function o() {
|
|
6561
6561
|
var l = this && this !== he && this instanceof o ? i : e;
|
|
6562
6562
|
return l.apply(r ? n : this, arguments);
|
|
@@ -6626,7 +6626,7 @@ function q_() {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
function Bo(e) {
|
|
6628
6628
|
return function(t, n, r) {
|
|
6629
|
-
var i =
|
|
6629
|
+
var i = G(t);
|
|
6630
6630
|
if (!we(t)) {
|
|
6631
6631
|
var o = O(n, 3);
|
|
6632
6632
|
t = se(t), n = function(s) {
|
|
@@ -6650,7 +6650,7 @@ function q_() {
|
|
|
6650
6650
|
for (r = l ? r : n; ++r < n; ) {
|
|
6651
6651
|
o = t[r];
|
|
6652
6652
|
var s = fr(o), c = s == "wrapper" ? Ii(o) : a;
|
|
6653
|
-
c && Di(c[0]) && c[1] == (
|
|
6653
|
+
c && Di(c[0]) && c[1] == (K | Me | Fe | Ke) && !c[4].length && c[9] == 1 ? l = l[fr(c[0])].apply(l, c[3]) : l = o.length == 1 && Di(o) ? l[s]() : l.thru(o);
|
|
6654
6654
|
}
|
|
6655
6655
|
return function() {
|
|
6656
6656
|
var g = arguments, v = g[0];
|
|
@@ -6663,7 +6663,7 @@ function q_() {
|
|
|
6663
6663
|
});
|
|
6664
6664
|
}
|
|
6665
6665
|
function or(e, t, n, r, i, o, l, s, c, g) {
|
|
6666
|
-
var v = t &
|
|
6666
|
+
var v = t & K, _ = t & V, y = t & ce, x = t & (Me | xt), C = t & At, I = y ? a : _n(e);
|
|
6667
6667
|
function S() {
|
|
6668
6668
|
for (var B = arguments.length, M = h(B), Le = B; Le--; )
|
|
6669
6669
|
M[Le] = arguments[Le];
|
|
@@ -6726,7 +6726,7 @@ function q_() {
|
|
|
6726
6726
|
return Wt(t) ? wt(ze(r), 0, e).join("") : r.slice(0, e);
|
|
6727
6727
|
}
|
|
6728
6728
|
function Qf(e, t, n, r) {
|
|
6729
|
-
var i = t &
|
|
6729
|
+
var i = t & V, o = _n(e);
|
|
6730
6730
|
function l() {
|
|
6731
6731
|
for (var s = -1, c = arguments.length, g = -1, v = r.length, _ = h(v + c), y = this && this !== he && this instanceof l ? o : e; ++g < v; )
|
|
6732
6732
|
_[g] = r[g];
|
|
@@ -6803,9 +6803,9 @@ function q_() {
|
|
|
6803
6803
|
l,
|
|
6804
6804
|
s
|
|
6805
6805
|
];
|
|
6806
|
-
if (y && dc(x, y), e = x[0], t = x[1], n = x[2], r = x[3], i = x[4], s = x[9] = x[9] === a ? c ? 0 : e.length : ae(x[9] - g, 0), !s && t & (Me | xt) && (t &= -25), !t || t ==
|
|
6806
|
+
if (y && dc(x, y), e = x[0], t = x[1], n = x[2], r = x[3], i = x[4], s = x[9] = x[9] === a ? c ? 0 : e.length : ae(x[9] - g, 0), !s && t & (Me | xt) && (t &= -25), !t || t == V)
|
|
6807
6807
|
var C = Jf(e, t, n);
|
|
6808
|
-
else t == Me || t == xt ? C = Xf(e, t, s) : (t == Fe || t == (
|
|
6808
|
+
else t == Me || t == xt ? C = Xf(e, t, s) : (t == Fe || t == (V | Fe)) && !i.length ? C = Qf(e, t, n, r) : C = or.apply(a, x);
|
|
6809
6809
|
var I = y ? yo : Yo;
|
|
6810
6810
|
return Jo(I(C, x), e, t);
|
|
6811
6811
|
}
|
|
@@ -6971,7 +6971,7 @@ function q_() {
|
|
|
6971
6971
|
return r && (t ? e[Ct] = n : delete e[Ct]), i;
|
|
6972
6972
|
}
|
|
6973
6973
|
var $i = ui ? function(e) {
|
|
6974
|
-
return e == null ? [] : (e =
|
|
6974
|
+
return e == null ? [] : (e = G(e), pt(ui(e), function(t) {
|
|
6975
6975
|
return Hu.call(e, t);
|
|
6976
6976
|
}));
|
|
6977
6977
|
} : Ji, zo = ui ? function(e) {
|
|
@@ -7096,7 +7096,7 @@ function q_() {
|
|
|
7096
7096
|
if (T(e))
|
|
7097
7097
|
return !1;
|
|
7098
7098
|
var n = typeof e;
|
|
7099
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null || Se(e) ? !0 : ul.test(e) || !il.test(e) || t != null && e in
|
|
7099
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Se(e) ? !0 : ul.test(e) || !il.test(e) || t != null && e in G(t);
|
|
7100
7100
|
}
|
|
7101
7101
|
function fc(e) {
|
|
7102
7102
|
var t = typeof e;
|
|
@@ -7124,7 +7124,7 @@ function q_() {
|
|
|
7124
7124
|
}
|
|
7125
7125
|
function Ko(e, t) {
|
|
7126
7126
|
return function(n) {
|
|
7127
|
-
return n == null ? !1 : n[e] === t && (t !== a || e in
|
|
7127
|
+
return n == null ? !1 : n[e] === t && (t !== a || e in G(n));
|
|
7128
7128
|
};
|
|
7129
7129
|
}
|
|
7130
7130
|
function pc(e) {
|
|
@@ -7134,21 +7134,21 @@ function q_() {
|
|
|
7134
7134
|
return t;
|
|
7135
7135
|
}
|
|
7136
7136
|
function dc(e, t) {
|
|
7137
|
-
var n = e[1], r = t[1], i = n | r, o = i < (
|
|
7137
|
+
var n = e[1], r = t[1], i = n | r, o = i < (V | ce | K), l = r == K && n == Me || r == K && n == Ke && e[7].length <= t[8] || r == (K | Ke) && t[7].length <= t[8] && n == Me;
|
|
7138
7138
|
if (!(o || l))
|
|
7139
7139
|
return e;
|
|
7140
|
-
r &
|
|
7140
|
+
r & V && (e[2] = t[2], i |= n & V ? 0 : Bt);
|
|
7141
7141
|
var s = t[3];
|
|
7142
7142
|
if (s) {
|
|
7143
7143
|
var c = e[3];
|
|
7144
7144
|
e[3] = c ? To(c, s, t[4]) : s, e[4] = c ? gt(e[3], fe) : t[4];
|
|
7145
7145
|
}
|
|
7146
|
-
return s = t[5], s && (c = e[5], e[5] = c ? Eo(c, s, t[6]) : s, e[6] = c ? gt(e[5], fe) : t[6]), s = t[7], s && (e[7] = s), r &
|
|
7146
|
+
return s = t[5], s && (c = e[5], e[5] = c ? Eo(c, s, t[6]) : s, e[6] = c ? gt(e[5], fe) : t[6]), s = t[7], s && (e[7] = s), r & K && (e[8] = e[8] == null ? t[8] : de(e[8], t[8])), e[9] == null && (e[9] = t[9]), e[0] = t[0], e[1] = i, e;
|
|
7147
7147
|
}
|
|
7148
7148
|
function gc(e) {
|
|
7149
7149
|
var t = [];
|
|
7150
7150
|
if (e != null)
|
|
7151
|
-
for (var n in
|
|
7151
|
+
for (var n in G(e))
|
|
7152
7152
|
t.push(n);
|
|
7153
7153
|
return t;
|
|
7154
7154
|
}
|
|
@@ -7684,7 +7684,7 @@ function q_() {
|
|
|
7684
7684
|
};
|
|
7685
7685
|
}
|
|
7686
7686
|
function sa(e, t, n) {
|
|
7687
|
-
return t = n ? a : t, t = e && t == null ? e.length : t, rt(e,
|
|
7687
|
+
return t = n ? a : t, t = e && t == null ? e.length : t, rt(e, K, a, a, a, a, t);
|
|
7688
7688
|
}
|
|
7689
7689
|
function fa(e, t) {
|
|
7690
7690
|
var n;
|
|
@@ -7695,14 +7695,14 @@ function q_() {
|
|
|
7695
7695
|
};
|
|
7696
7696
|
}
|
|
7697
7697
|
var Wi = R(function(e, t, n) {
|
|
7698
|
-
var r =
|
|
7698
|
+
var r = V;
|
|
7699
7699
|
if (n.length) {
|
|
7700
7700
|
var i = gt(n, Zt(Wi));
|
|
7701
7701
|
r |= Fe;
|
|
7702
7702
|
}
|
|
7703
7703
|
return rt(e, r, t, n, i);
|
|
7704
7704
|
}), ca = R(function(e, t, n) {
|
|
7705
|
-
var r =
|
|
7705
|
+
var r = V | ce;
|
|
7706
7706
|
if (n.length) {
|
|
7707
7707
|
var i = gt(n, Zt(ca));
|
|
7708
7708
|
r |= Fe;
|
|
@@ -8075,7 +8075,7 @@ function q_() {
|
|
|
8075
8075
|
return t == null ? n : eo(n, t);
|
|
8076
8076
|
}
|
|
8077
8077
|
var qp = R(function(e, t) {
|
|
8078
|
-
e =
|
|
8078
|
+
e = G(e);
|
|
8079
8079
|
var n = -1, r = t.length, i = r > 2 ? t[2] : a;
|
|
8080
8080
|
for (i && _e(t[0], t[1], i) && (r = 1); ++n < r; )
|
|
8081
8081
|
for (var o = t[n], l = be(o), s = -1, c = l.length; ++s < c; ) {
|
|
@@ -8669,7 +8669,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8669
8669
|
}, Nt = xs();
|
|
8670
8670
|
Ot ? ((Ot.exports = Nt)._ = Nt, Hr._ = Nt) : he._ = Nt;
|
|
8671
8671
|
}).call(z_);
|
|
8672
|
-
}(
|
|
8672
|
+
}(Fa, Fa.exports)), Fa.exports;
|
|
8673
8673
|
}
|
|
8674
8674
|
q_();
|
|
8675
8675
|
var $g = { exports: {} };
|
|
@@ -8731,15 +8731,15 @@ function G_() {
|
|
|
8731
8731
|
if (this.options.ariaLive && w.setAttribute("aria-live", this.options.ariaLive), this.options.node && this.options.node.nodeType === Node.ELEMENT_NODE)
|
|
8732
8732
|
w.appendChild(this.options.node);
|
|
8733
8733
|
else if (this.options.escapeMarkup ? w.innerText = this.options.text : w.innerHTML = this.options.text, this.options.avatar !== "") {
|
|
8734
|
-
var
|
|
8735
|
-
|
|
8734
|
+
var q = document.createElement("img");
|
|
8735
|
+
q.src = this.options.avatar, q.className = "toastify-avatar", this.options.position == "left" || this.options.positionLeft === !0 ? w.appendChild(q) : w.insertAdjacentElement("afterbegin", q);
|
|
8736
8736
|
}
|
|
8737
8737
|
if (this.options.close === !0) {
|
|
8738
8738
|
var re = document.createElement("button");
|
|
8739
8739
|
re.type = "button", re.setAttribute("aria-label", "Close"), re.className = "toast-close", re.innerHTML = "✖", re.addEventListener(
|
|
8740
8740
|
"click",
|
|
8741
|
-
(function(
|
|
8742
|
-
|
|
8741
|
+
(function(V) {
|
|
8742
|
+
V.stopPropagation(), this.removeElement(this.toastElement), window.clearTimeout(this.toastElement.timeOutValue);
|
|
8743
8743
|
}).bind(this)
|
|
8744
8744
|
);
|
|
8745
8745
|
var fe = window.innerWidth > 0 ? window.innerWidth : screen.width;
|
|
@@ -8749,7 +8749,7 @@ function G_() {
|
|
|
8749
8749
|
var le = this;
|
|
8750
8750
|
w.addEventListener(
|
|
8751
8751
|
"mouseover",
|
|
8752
|
-
function(
|
|
8752
|
+
function(V) {
|
|
8753
8753
|
window.clearTimeout(w.timeOutValue);
|
|
8754
8754
|
}
|
|
8755
8755
|
), w.addEventListener(
|
|
@@ -8766,13 +8766,13 @@ function G_() {
|
|
|
8766
8766
|
}
|
|
8767
8767
|
if (typeof this.options.destination < "u" && w.addEventListener(
|
|
8768
8768
|
"click",
|
|
8769
|
-
(function(
|
|
8770
|
-
|
|
8769
|
+
(function(V) {
|
|
8770
|
+
V.stopPropagation(), this.options.newWindow === !0 ? window.open(this.options.destination, "_blank") : window.location = this.options.destination;
|
|
8771
8771
|
}).bind(this)
|
|
8772
8772
|
), typeof this.options.onClick == "function" && typeof this.options.destination > "u" && w.addEventListener(
|
|
8773
8773
|
"click",
|
|
8774
|
-
(function(
|
|
8775
|
-
|
|
8774
|
+
(function(V) {
|
|
8775
|
+
V.stopPropagation(), this.options.onClick();
|
|
8776
8776
|
}).bind(this)
|
|
8777
8777
|
), typeof this.options.offset == "object") {
|
|
8778
8778
|
var Y = F("x", this.options), P = F("y", this.options), ie = this.options.position == "left" ? Y : "-" + Y, Xe = this.options.gravity == "toastify-top" ? P : "-" + P;
|
|
@@ -8813,7 +8813,7 @@ function G_() {
|
|
|
8813
8813
|
}, $ = {
|
|
8814
8814
|
top: 15,
|
|
8815
8815
|
bottom: 15
|
|
8816
|
-
},
|
|
8816
|
+
}, q = {
|
|
8817
8817
|
top: 15,
|
|
8818
8818
|
bottom: 15
|
|
8819
8819
|
}, re = document.getElementsByClassName("toastify"), fe, le = 0; le < re.length; le++) {
|
|
@@ -8821,7 +8821,7 @@ function G_() {
|
|
|
8821
8821
|
var Y = re[le].offsetHeight;
|
|
8822
8822
|
fe = fe.substr(9, fe.length - 1);
|
|
8823
8823
|
var P = 15, ie = window.innerWidth > 0 ? window.innerWidth : screen.width;
|
|
8824
|
-
ie <= 360 ? (re[le].style[fe] =
|
|
8824
|
+
ie <= 360 ? (re[le].style[fe] = q[fe] + "px", q[fe] += Y + P) : k(re[le], "toastify-left") === !0 ? (re[le].style[fe] = w[fe] + "px", w[fe] += Y + P) : (re[le].style[fe] = $[fe] + "px", $[fe] += Y + P);
|
|
8825
8825
|
}
|
|
8826
8826
|
return this;
|
|
8827
8827
|
};
|
|
@@ -8848,28 +8848,28 @@ function K_(d) {
|
|
|
8848
8848
|
fetchData: async () => {
|
|
8849
8849
|
k.value = !0;
|
|
8850
8850
|
try {
|
|
8851
|
-
const
|
|
8851
|
+
const q = Sr(() => ({
|
|
8852
8852
|
limit: $.value.limit,
|
|
8853
8853
|
page: $.value.page,
|
|
8854
8854
|
filter: JSON.stringify(d.query)
|
|
8855
8855
|
}));
|
|
8856
8856
|
await F.get(`/api/${N}`, {
|
|
8857
|
-
params:
|
|
8857
|
+
params: q.value
|
|
8858
8858
|
}).then((re) => re.data).then((re) => {
|
|
8859
8859
|
re.code == 200 && (w.value = re == null ? void 0 : re.data);
|
|
8860
8860
|
});
|
|
8861
|
-
} catch (
|
|
8862
|
-
console.error("Error fetching data:",
|
|
8861
|
+
} catch (q) {
|
|
8862
|
+
console.error("Error fetching data:", q);
|
|
8863
8863
|
} finally {
|
|
8864
8864
|
k.value = !1;
|
|
8865
8865
|
}
|
|
8866
8866
|
}
|
|
8867
8867
|
};
|
|
8868
8868
|
}
|
|
8869
|
-
const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office-relation-label" }, Y_ = { class: "synt-office-relation-note" }, J_ = { class: "synt-office-relation-group-input-wrapper" }, X_ = { class: "synt-office-relation-input-wrapper" }, Q_ = {
|
|
8869
|
+
const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office-relation-label" }, Y_ = { class: "synt-office-relation-note" }, J_ = { class: "synt-office-relation-group-input-wrapper" }, X_ = { class: "synt-office-relation-input-wrapper" }, Q_ = {
|
|
8870
8870
|
key: 0,
|
|
8871
8871
|
class: "synt-office-relation-modal-overlay"
|
|
8872
|
-
},
|
|
8872
|
+
}, j_ = { class: "synt-office-relation-modal-wrapper" }, e0 = { class: "synt-office-relation-modal-header-end" }, t0 = { class: "synt-office-relation-modal-option" }, n0 = { class: "synt-office-relation-modal-table-wrapper" }, r0 = { id: "table-relation-collection" }, i0 = ["checked"], u0 = { class: "synt-office-relation-modal-table-label" }, o0 = ["checked", "onChange"], a0 = { class: "synt-badge-tabel" }, l0 = { class: "synt-office-relation-modal-table-footer" }, s0 = { class: "synt-office-relation-modal-table-footer-end" }, f0 = { class: "synt-office-relation-font-bold" }, c0 = { class: "synt-office-relation-font-bold" }, w0 = /* @__PURE__ */ Cr({
|
|
8873
8873
|
__name: "OfficeRelation",
|
|
8874
8874
|
props: /* @__PURE__ */ tv({
|
|
8875
8875
|
fields: {},
|
|
@@ -8885,27 +8885,27 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8885
8885
|
const m = d, a = nv(d, "modelValue"), { options: N, isLoading: F, fetchData: k } = K_({
|
|
8886
8886
|
relation: m.fields.relation,
|
|
8887
8887
|
query: m.query
|
|
8888
|
-
}), w = st(""), $ = st(500),
|
|
8889
|
-
var j,
|
|
8890
|
-
return (
|
|
8891
|
-
}), Y =
|
|
8888
|
+
}), w = st(""), $ = st(500), q = st(null), re = st(null), fe = st(!1), le = Sr(() => {
|
|
8889
|
+
var j, K;
|
|
8890
|
+
return (K = (j = m.fields) == null ? void 0 : j.options) == null ? void 0 : K.isMultiple;
|
|
8891
|
+
}), Y = Sr(() => {
|
|
8892
8892
|
var j;
|
|
8893
8893
|
return (j = N.value) == null ? void 0 : j.filter(
|
|
8894
|
-
(
|
|
8894
|
+
(K) => {
|
|
8895
8895
|
var Ke, At, Cn, Sn;
|
|
8896
|
-
return (Sn = (Cn =
|
|
8896
|
+
return (Sn = (Cn = K == null ? void 0 : K[(At = (Ke = m.fields) == null ? void 0 : Ke.relation) == null ? void 0 : At.display]) == null ? void 0 : Cn.toLowerCase()) == null ? void 0 : Sn.includes(w.value);
|
|
8897
8897
|
}
|
|
8898
8898
|
);
|
|
8899
|
-
}), P =
|
|
8899
|
+
}), P = Sr(() => Y.value.slice(0, $.value)), ie = Sr(() => P.value.length < Y.value.length), Xe = async ([{ isIntersecting: j, target: K }]) => {
|
|
8900
8900
|
if (j) {
|
|
8901
|
-
const Ke =
|
|
8901
|
+
const Ke = K.offsetParent, At = Ke.scrollTop;
|
|
8902
8902
|
$.value += 10, await Zg(), Ke.scrollTop = At;
|
|
8903
8903
|
}
|
|
8904
|
-
},
|
|
8904
|
+
}, V = async () => {
|
|
8905
8905
|
N.value.length || await k();
|
|
8906
8906
|
}, ce = async (j) => {
|
|
8907
8907
|
Array.isArray(a.value) && (a.value.includes(j) ? a.value = a.value.filter((Ke) => Ke !== j) : a.value.push(j)), await k();
|
|
8908
|
-
}, Bt =
|
|
8908
|
+
}, Bt = Sr(() => {
|
|
8909
8909
|
if (Array.isArray(a.value))
|
|
8910
8910
|
return Y.value.length > 0 && Y.value.every(
|
|
8911
8911
|
(j) => Array.isArray(a.value) && a.value.includes(j.id)
|
|
@@ -8915,10 +8915,10 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8915
8915
|
if (Array.isArray(a.value))
|
|
8916
8916
|
if (Bt.value)
|
|
8917
8917
|
a.value = a.value.filter(
|
|
8918
|
-
(j) => !Y.value.map((
|
|
8918
|
+
(j) => !Y.value.map((K) => K.id).includes(j)
|
|
8919
8919
|
);
|
|
8920
8920
|
else {
|
|
8921
|
-
const j = Y.value.map((
|
|
8921
|
+
const j = Y.value.map((K) => K.id);
|
|
8922
8922
|
a.value = Array.from(/* @__PURE__ */ new Set([...a.value, ...j]));
|
|
8923
8923
|
}
|
|
8924
8924
|
}
|
|
@@ -8933,8 +8933,8 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8933
8933
|
N.value.length || (F.value = !0, a.value && await k(), F.value = !1);
|
|
8934
8934
|
}
|
|
8935
8935
|
), Ua(async () => {
|
|
8936
|
-
|
|
8937
|
-
}), (j,
|
|
8936
|
+
q.value = new IntersectionObserver(Xe);
|
|
8937
|
+
}), (j, K) => {
|
|
8938
8938
|
var Ke, At, Cn, Sn, ji;
|
|
8939
8939
|
return X(), ue("div", null, [
|
|
8940
8940
|
A("div", H_, [
|
|
@@ -8942,16 +8942,9 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8942
8942
|
A("span", Y_, Qe((Cn = (At = j.fields) == null ? void 0 : At.options) == null ? void 0 : Cn.note), 1),
|
|
8943
8943
|
A("div", J_, [
|
|
8944
8944
|
A("div", X_, [
|
|
8945
|
-
Or(A("div", Q_, q[3] || (q[3] = [
|
|
8946
|
-
A("div", { class: "synt-office-relation-skeleton" }, [
|
|
8947
|
-
A("div", { class: "synt-office-relation-content" })
|
|
8948
|
-
], -1)
|
|
8949
|
-
]), 512), [
|
|
8950
|
-
[Pa, br(F)]
|
|
8951
|
-
]),
|
|
8952
8945
|
Ar(br(N_), {
|
|
8953
8946
|
modelValue: a.value,
|
|
8954
|
-
"onUpdate:modelValue":
|
|
8947
|
+
"onUpdate:modelValue": K[0] || (K[0] = (Xt) => a.value = Xt),
|
|
8955
8948
|
class: Er(["synt-relation-control", {
|
|
8956
8949
|
"synt-office-relation-error": j.isError,
|
|
8957
8950
|
"synt-office-relation-disabled": j.isDisabled,
|
|
@@ -8963,7 +8956,8 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8963
8956
|
placeholder: "Please enter at least 3 letters...",
|
|
8964
8957
|
disabled: j.isDisabled,
|
|
8965
8958
|
multiple: le.value,
|
|
8966
|
-
|
|
8959
|
+
loading: br(F),
|
|
8960
|
+
onOpen: V
|
|
8967
8961
|
}, {
|
|
8968
8962
|
option: ft((Xt) => {
|
|
8969
8963
|
var ht, Ln;
|
|
@@ -8972,25 +8966,25 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8972
8966
|
];
|
|
8973
8967
|
}),
|
|
8974
8968
|
"list-footer": ft(() => [
|
|
8975
|
-
|
|
8969
|
+
Tr(A("li", {
|
|
8976
8970
|
ref_key: "load",
|
|
8977
8971
|
ref: re,
|
|
8978
8972
|
class: "synt-office-relation-loading"
|
|
8979
|
-
},
|
|
8973
|
+
}, K[3] || (K[3] = [
|
|
8980
8974
|
A("i", { class: "synt-office-relation-loading-spin fa-solid fa-spinner" }, null, -1)
|
|
8981
8975
|
]), 512), [
|
|
8982
|
-
[
|
|
8976
|
+
[Wa, ie.value]
|
|
8983
8977
|
])
|
|
8984
8978
|
]),
|
|
8985
8979
|
_: 1
|
|
8986
|
-
}, 8, ["modelValue", "class", "options", "reduce", "label", "disabled", "multiple"])
|
|
8980
|
+
}, 8, ["modelValue", "class", "options", "reduce", "label", "disabled", "multiple", "loading"])
|
|
8987
8981
|
]),
|
|
8988
8982
|
le.value ? (X(), ue("button", {
|
|
8989
8983
|
key: 0,
|
|
8990
8984
|
type: "button",
|
|
8991
8985
|
class: "synt-office-relation-btn-expands",
|
|
8992
8986
|
onClick: xn(xt, ["prevent"])
|
|
8993
|
-
},
|
|
8987
|
+
}, K[4] || (K[4] = [
|
|
8994
8988
|
A("i", { class: "synt-office-relation-btn-expands-icon fa-solid fa-up-right-and-down-left-from-center" }, null, -1)
|
|
8995
8989
|
]))) : ct("", !0)
|
|
8996
8990
|
])
|
|
@@ -8999,28 +8993,28 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8999
8993
|
default: ft(() => {
|
|
9000
8994
|
var Xt;
|
|
9001
8995
|
return [
|
|
9002
|
-
fe.value ? (X(), ue("div",
|
|
9003
|
-
A("div",
|
|
8996
|
+
fe.value ? (X(), ue("div", Q_, [
|
|
8997
|
+
A("div", j_, [
|
|
9004
8998
|
Ar(br(Yg), {
|
|
9005
8999
|
label: j.fields.name,
|
|
9006
9000
|
icon: "fa-solid fa-table"
|
|
9007
9001
|
}, {
|
|
9008
9002
|
end: ft(() => [
|
|
9009
|
-
A("div",
|
|
9003
|
+
A("div", e0, [
|
|
9010
9004
|
A("button", {
|
|
9011
9005
|
type: "button",
|
|
9012
9006
|
class: "synt-office-relation-modal-btn-close",
|
|
9013
9007
|
onClick: xn(Fe, ["prevent"])
|
|
9014
|
-
},
|
|
9008
|
+
}, K[5] || (K[5] = [
|
|
9015
9009
|
A("i", { class: "fa-solid fa-xmark" }, null, -1)
|
|
9016
9010
|
]))
|
|
9017
9011
|
])
|
|
9018
9012
|
]),
|
|
9019
9013
|
_: 1
|
|
9020
9014
|
}, 8, ["label"]),
|
|
9021
|
-
A("div",
|
|
9022
|
-
|
|
9023
|
-
"onUpdate:modelValue":
|
|
9015
|
+
A("div", t0, [
|
|
9016
|
+
Tr(A("input", {
|
|
9017
|
+
"onUpdate:modelValue": K[1] || (K[1] = (ht) => w.value = ht),
|
|
9024
9018
|
type: "search",
|
|
9025
9019
|
placeholder: "Cari...",
|
|
9026
9020
|
class: "synt-office-relation-modal-search"
|
|
@@ -9030,17 +9024,17 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
9030
9024
|
A("button", {
|
|
9031
9025
|
type: "button",
|
|
9032
9026
|
class: "synt-office-relation-modal-btn-refresh",
|
|
9033
|
-
onClick:
|
|
9027
|
+
onClick: K[2] || (K[2] = xn(
|
|
9034
9028
|
//@ts-ignore
|
|
9035
9029
|
(...ht) => br(k) && br(k)(...ht),
|
|
9036
9030
|
["prevent"]
|
|
9037
9031
|
))
|
|
9038
|
-
},
|
|
9032
|
+
}, K[6] || (K[6] = [
|
|
9039
9033
|
A("i", { class: "synt-office-relation-modal-btn-icon fa-solid fa-sync" }, null, -1)
|
|
9040
9034
|
]))
|
|
9041
9035
|
]),
|
|
9042
|
-
A("div",
|
|
9043
|
-
A("table",
|
|
9036
|
+
A("div", n0, [
|
|
9037
|
+
A("table", r0, [
|
|
9044
9038
|
A("thead", null, [
|
|
9045
9039
|
A("tr", null, [
|
|
9046
9040
|
A("th", null, [
|
|
@@ -9050,9 +9044,9 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
9050
9044
|
class: "synt-office-relation-modal-table-checkbox",
|
|
9051
9045
|
checked: Bt.value,
|
|
9052
9046
|
onChange: Me
|
|
9053
|
-
}, null, 40,
|
|
9047
|
+
}, null, 40, i0))
|
|
9054
9048
|
]),
|
|
9055
|
-
A("th",
|
|
9049
|
+
A("th", u0, Qe((Xt = j.fields) == null ? void 0 : Xt.name), 1)
|
|
9056
9050
|
])
|
|
9057
9051
|
]),
|
|
9058
9052
|
A("tbody", null, [
|
|
@@ -9067,23 +9061,23 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
9067
9061
|
class: "synt-office-relation-modal-table-checkbox",
|
|
9068
9062
|
checked: Array.isArray(a.value) && a.value.includes(ht.id),
|
|
9069
9063
|
onChange: (An) => ce(ht.id)
|
|
9070
|
-
}, null, 40,
|
|
9064
|
+
}, null, 40, o0)
|
|
9071
9065
|
]),
|
|
9072
9066
|
A("td", null, [
|
|
9073
|
-
A("div",
|
|
9067
|
+
A("div", a0, Qe(ht[(eu = (Ln = j.fields) == null ? void 0 : Ln.relation) == null ? void 0 : eu.display]), 1)
|
|
9074
9068
|
])
|
|
9075
9069
|
]);
|
|
9076
9070
|
}), 128))
|
|
9077
9071
|
])
|
|
9078
9072
|
])
|
|
9079
9073
|
]),
|
|
9080
|
-
A("div",
|
|
9081
|
-
A("div",
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
A("span",
|
|
9085
|
-
|
|
9086
|
-
A("span",
|
|
9074
|
+
A("div", l0, [
|
|
9075
|
+
A("div", s0, [
|
|
9076
|
+
K[7] || (K[7] = A("span", { class: "synt-office-relation-font-bold" }, Qe(1), -1)),
|
|
9077
|
+
K[8] || (K[8] = Or(" - ")),
|
|
9078
|
+
A("span", f0, Qe(Y.value.length), 1),
|
|
9079
|
+
K[9] || (K[9] = Or(" dari ")),
|
|
9080
|
+
A("span", c0, Qe(Y.value.length), 1)
|
|
9087
9081
|
])
|
|
9088
9082
|
])
|
|
9089
9083
|
])
|
|
@@ -9097,14 +9091,14 @@ const H_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
9097
9091
|
}
|
|
9098
9092
|
});
|
|
9099
9093
|
export {
|
|
9100
|
-
|
|
9101
|
-
|
|
9094
|
+
g0 as OfficeCollection,
|
|
9095
|
+
v0 as OfficeCollectionTable,
|
|
9102
9096
|
Yg as OfficeHeader,
|
|
9103
9097
|
Jg as OfficeLayout,
|
|
9104
9098
|
fv as OfficeLayoutWrapper,
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9099
|
+
d0 as OfficeLink,
|
|
9100
|
+
w0 as OfficeRelation,
|
|
9101
|
+
m0 as OfficeSingle,
|
|
9102
|
+
y0 as OfficeTab,
|
|
9103
|
+
_0 as OfficeTabs
|
|
9110
9104
|
};
|