@stll/folio-vue 0.9.0 → 0.10.0
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/{ListButtons-C1rU_Y1e.cjs → ListButtons-BcB7qvzQ.cjs} +2 -2
- package/dist/{ListButtons-DMnOM2pN.js → ListButtons-rpVlLZJ8.js} +388 -384
- package/dist/SplitCellDialog-B_TOoiMw.cjs +15 -0
- package/dist/{WatermarkDialog-Cf9ISDvv.js → SplitCellDialog-DRQuZsA3.js} +907 -907
- package/dist/components/AutocompleteCaretOverlay.types.d.ts +18 -0
- package/dist/components/DocxEditor/pagedEditorRef.d.ts +14 -0
- package/dist/components/DocxEditor/types.d.ts +27 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useColorMode.d.ts +17 -4
- package/dist/composables/useContextMenus.d.ts +3 -0
- package/dist/composables/useDocxEditor.d.ts +21 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +13 -0
- package/dist/composables/useFontLifecycle.d.ts +21 -0
- package/dist/composables/useKeyboardShortcuts.d.ts +0 -1
- package/dist/composables/usePagesPointer.d.ts +5 -0
- package/dist/composables.cjs +2 -2
- package/dist/composables.js +75 -75
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +2 -2
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1719 -1275
- package/dist/renderAsync.d.ts +4 -0
- package/dist/ui/folio-ui.d.ts +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +10 -10
- package/dist/useZoom-DBbzwfMG.cjs +1 -0
- package/dist/useZoom-DwDDS7hq.js +749 -0
- package/dist/utils/colorMode.d.ts +3 -4
- package/dist/utils/embeddedFonts.d.ts +7 -0
- package/dist/utils/fontFaces.d.ts +10 -0
- package/dist/utils/hostFonts.d.ts +1 -5
- package/package.json +1 -1
- package/dist/WatermarkDialog-ChJtT7Bs.cjs +0 -15
- package/dist/composables/useHostCallbacks.d.ts +0 -24
- package/dist/composables/useMenuActions.d.ts +0 -36
- package/dist/useZoom-BYEcnpS0.cjs +0 -1
- package/dist/useZoom-C0p0o54p.js +0 -656
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./useFindReplace-CL8Rbc3y.js";
|
|
2
2
|
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, inject as d, isRef as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _, onMounted as v, openBlock as y, provide as b, reactive as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRef as E, toValue as D, unref as O, vModelCheckbox as k, vModelRadio as A, vModelSelect as j, vModelText as M, watch as N, withCtx as P, withDirectives as F, withKeys as I, withModifiers as L } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { SYMBOL_CATEGORIES as
|
|
6
|
-
import { TWIPS_PER_INCH as
|
|
3
|
+
import { getFolioMessages as R } from "@stll/folio-core/i18n/messages";
|
|
4
|
+
import { generateThemeTintShadeMatrix as ee, resolveColor as z, resolveColorToHex as te, resolveHighlightColor as ne } from "@stll/folio-core/utils/colorResolver";
|
|
5
|
+
import { SYMBOL_CATEGORIES as re, filterSymbols as ie } from "@stll/folio-core/symbols";
|
|
6
|
+
import { TWIPS_PER_INCH as B } from "@stll/folio-core/utils/units";
|
|
7
7
|
//#region \0rolldown/runtime.js
|
|
8
|
-
var
|
|
8
|
+
var V = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), H = (e, t) => {
|
|
9
9
|
let n = e.__vccOpts || e;
|
|
10
10
|
for (let [e, r] of t) n[e] = r;
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
12
|
+
}, ae = {
|
|
13
13
|
undo: ["M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z"],
|
|
14
14
|
redo: ["M396-200q-97 0-166.5-63T160-420q0-94 69.5-157T396-640h252L544-744l56-56 200 200-200 200-56-56 104-104H396q-63 0-109.5 40T240-420q0 60 46.5 100T396-280h284v80H396Z"],
|
|
15
15
|
print: ["M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Zm80-240v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160h80v-80h480v80h80Z"],
|
|
@@ -109,7 +109,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
109
109
|
format_textdirection_l_to_r: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm0-280v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80ZM680-80l-56-56 64-64H120v-80h568l-64-64 56-56 160 160L680-80Z"],
|
|
110
110
|
format_textdirection_r_to_l: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm-88 160 64 64-56 56-160-160 160-160 56 56-64 64h568v80H272Zm88-440v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80Z"],
|
|
111
111
|
"agent-sparkle": ["m760-600-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110Zm0 560-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110ZM360-160 260-380 40-480l220-100 100-220 100 220 220 100-220 100-100 220Zm0-194 40-86 86-40-86-40-40-86-40 86-86 40 86 40 40 86Zm0-126Z"]
|
|
112
|
-
},
|
|
112
|
+
}, oe = ["width", "height"], se = ["d"], U = /* @__PURE__ */ u({
|
|
113
113
|
__name: "MaterialSymbol",
|
|
114
114
|
props: {
|
|
115
115
|
name: {},
|
|
@@ -118,7 +118,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
118
118
|
style: {}
|
|
119
119
|
},
|
|
120
120
|
setup(e) {
|
|
121
|
-
let n = e, i =
|
|
121
|
+
let n = e, i = ae, a = r(() => i[n.name] || (typeof console < "u" && console.warn(`Icon not found: ${n.name}`), null));
|
|
122
122
|
return (n, r) => a.value ? (y(), o("svg", {
|
|
123
123
|
key: 0,
|
|
124
124
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -136,7 +136,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
136
136
|
}, [(y(!0), o(t, null, C(a.value, (e, t) => (y(), o("path", {
|
|
137
137
|
key: t,
|
|
138
138
|
d: e
|
|
139
|
-
}, null, 8,
|
|
139
|
+
}, null, 8, se))), 128))], 14, oe)) : (y(), o("span", {
|
|
140
140
|
key: 1,
|
|
141
141
|
class: h(e.className),
|
|
142
142
|
style: g({
|
|
@@ -148,103 +148,43 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
148
148
|
})
|
|
149
149
|
}, T(e.name), 7));
|
|
150
150
|
}
|
|
151
|
-
})
|
|
152
|
-
__name: "Button",
|
|
153
|
-
props: {
|
|
154
|
-
variant: { default: "default" },
|
|
155
|
-
size: { default: "default" },
|
|
156
|
-
disabled: {
|
|
157
|
-
type: Boolean,
|
|
158
|
-
default: !1
|
|
159
|
-
},
|
|
160
|
-
className: { default: "" }
|
|
161
|
-
},
|
|
162
|
-
emits: ["click"],
|
|
163
|
-
setup(e) {
|
|
164
|
-
let t = e, n = {
|
|
165
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
166
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
167
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
168
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
169
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
170
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
171
|
-
}, i = {
|
|
172
|
-
default: "h-10 px-4 py-2",
|
|
173
|
-
sm: "h-9 rounded-md px-3",
|
|
174
|
-
lg: "h-11 rounded-md px-8",
|
|
175
|
-
icon: "h-9 w-9",
|
|
176
|
-
"icon-sm": "h-7 w-7",
|
|
177
|
-
xs: "h-7 rounded-md px-2 text-xs",
|
|
178
|
-
"icon-xs": "h-7 w-7"
|
|
179
|
-
}, a = r(() => [
|
|
180
|
-
U,
|
|
181
|
-
n[t.variant],
|
|
182
|
-
i[t.size],
|
|
183
|
-
t.className
|
|
184
|
-
].filter(Boolean).join(" "));
|
|
185
|
-
return (t, n) => (y(), o("button", {
|
|
186
|
-
type: "button",
|
|
187
|
-
class: h(a.value),
|
|
188
|
-
disabled: e.disabled,
|
|
189
|
-
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
190
|
-
}, [w(t.$slots, "default")], 10, le));
|
|
191
|
-
}
|
|
192
|
-
}), de = ["checked"], W = /*#__PURE__*/ V(/* @__PURE__ */ u({
|
|
193
|
-
__name: "Checkbox",
|
|
194
|
-
props: {
|
|
195
|
-
checked: { type: Boolean },
|
|
196
|
-
className: {}
|
|
197
|
-
},
|
|
198
|
-
emits: ["update:checked"],
|
|
199
|
-
setup(e, { emit: t }) {
|
|
200
|
-
let n = t;
|
|
201
|
-
function r(e) {
|
|
202
|
-
e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
|
|
203
|
-
}
|
|
204
|
-
return (t, n) => (y(), o("input", {
|
|
205
|
-
type: "checkbox",
|
|
206
|
-
class: h(["folio-default-checkbox", e.className]),
|
|
207
|
-
checked: e.checked,
|
|
208
|
-
onChange: r
|
|
209
|
-
}, null, 42, de));
|
|
210
|
-
}
|
|
211
|
-
}), [["__scopeId", "data-v-2e4f5470"]]);
|
|
151
|
+
});
|
|
212
152
|
//#endregion
|
|
213
153
|
//#region ../../node_modules/.bun/@formatjs+fast-memoize@3.1.6/node_modules/@formatjs/fast-memoize/index.js
|
|
214
|
-
function
|
|
215
|
-
let n = t && t.cache ? t.cache :
|
|
216
|
-
return (t && t.strategy ? t.strategy :
|
|
154
|
+
function W(e, t) {
|
|
155
|
+
let n = t && t.cache ? t.cache : he, r = t && t.serializer ? t.serializer : pe;
|
|
156
|
+
return (t && t.strategy ? t.strategy : ue)(e, {
|
|
217
157
|
cache: n,
|
|
218
158
|
serializer: r
|
|
219
159
|
});
|
|
220
160
|
}
|
|
221
|
-
function
|
|
161
|
+
function G(e) {
|
|
222
162
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
223
163
|
}
|
|
224
|
-
function
|
|
225
|
-
let i =
|
|
164
|
+
function ce(e, t, n, r) {
|
|
165
|
+
let i = G(r) ? r : n(r), a = t.get(i);
|
|
226
166
|
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
227
167
|
}
|
|
228
|
-
function
|
|
168
|
+
function le(e, t, n) {
|
|
229
169
|
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
230
170
|
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
231
171
|
}
|
|
232
|
-
function
|
|
172
|
+
function K(e, t, n, r, i) {
|
|
233
173
|
return n.bind(t, e, r, i);
|
|
234
174
|
}
|
|
235
|
-
function
|
|
236
|
-
let n = e.length === 1 ?
|
|
237
|
-
return
|
|
175
|
+
function ue(e, t) {
|
|
176
|
+
let n = e.length === 1 ? ce : le;
|
|
177
|
+
return K(e, this, n, t.cache.create(), t.serializer);
|
|
238
178
|
}
|
|
239
|
-
function
|
|
240
|
-
return
|
|
179
|
+
function de(e, t) {
|
|
180
|
+
return K(e, this, le, t.cache.create(), t.serializer);
|
|
241
181
|
}
|
|
242
|
-
function
|
|
243
|
-
return
|
|
182
|
+
function fe(e, t) {
|
|
183
|
+
return K(e, this, ce, t.cache.create(), t.serializer);
|
|
244
184
|
}
|
|
245
|
-
var
|
|
185
|
+
var pe = function() {
|
|
246
186
|
return JSON.stringify(arguments);
|
|
247
|
-
},
|
|
187
|
+
}, me = class {
|
|
248
188
|
constructor() {
|
|
249
189
|
this.cache = Object.create(null);
|
|
250
190
|
}
|
|
@@ -254,11 +194,11 @@ var ye = function() {
|
|
|
254
194
|
set(e, t) {
|
|
255
195
|
this.cache[e] = t;
|
|
256
196
|
}
|
|
257
|
-
},
|
|
258
|
-
return new
|
|
259
|
-
} },
|
|
260
|
-
variadic:
|
|
261
|
-
monadic:
|
|
197
|
+
}, he = { create: function() {
|
|
198
|
+
return new me();
|
|
199
|
+
} }, ge = {
|
|
200
|
+
variadic: de,
|
|
201
|
+
monadic: fe
|
|
262
202
|
}, q = class extends Error {
|
|
263
203
|
constructor(e, t) {
|
|
264
204
|
let n = e;
|
|
@@ -267,7 +207,7 @@ var ye = function() {
|
|
|
267
207
|
}, J = function(e) {
|
|
268
208
|
return e.MISSING_MESSAGE = "MISSING_MESSAGE", e.MISSING_FORMAT = "MISSING_FORMAT", e.ENVIRONMENT_FALLBACK = "ENVIRONMENT_FALLBACK", e.INSUFFICIENT_PATH = "INSUFFICIENT_PATH", e.INVALID_MESSAGE = "INVALID_MESSAGE", e.INVALID_KEY = "INVALID_KEY", e.FORMATTING_ERROR = "FORMATTING_ERROR", e;
|
|
269
209
|
}(J || {});
|
|
270
|
-
function
|
|
210
|
+
function _e() {
|
|
271
211
|
return {
|
|
272
212
|
dateTime: {},
|
|
273
213
|
number: {},
|
|
@@ -278,22 +218,22 @@ function Se() {
|
|
|
278
218
|
displayNames: {}
|
|
279
219
|
};
|
|
280
220
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
221
|
+
function ve(e, t) {
|
|
222
|
+
return W(e, {
|
|
283
223
|
cache: (n = t, { create: () => ({
|
|
284
224
|
get: (e) => n[e],
|
|
285
225
|
set(e, t) {
|
|
286
226
|
n[e] = t;
|
|
287
227
|
}
|
|
288
228
|
}) }),
|
|
289
|
-
strategy:
|
|
229
|
+
strategy: ge.variadic
|
|
290
230
|
});
|
|
291
231
|
var n;
|
|
292
232
|
}
|
|
293
233
|
function Y(e, t) {
|
|
294
|
-
return
|
|
234
|
+
return ve(((...t) => new e(...t)), t);
|
|
295
235
|
}
|
|
296
|
-
function
|
|
236
|
+
function ye(e) {
|
|
297
237
|
return {
|
|
298
238
|
getDateTimeFormat: Y(Intl.DateTimeFormat, e.dateTime),
|
|
299
239
|
getNumberFormat: Y(Intl.NumberFormat, e.number),
|
|
@@ -305,7 +245,7 @@ function we(e) {
|
|
|
305
245
|
}
|
|
306
246
|
//#endregion
|
|
307
247
|
//#region ../../node_modules/.bun/react@19.2.7/node_modules/react/cjs/react.production.js
|
|
308
|
-
var
|
|
248
|
+
var be = /* @__PURE__ */ V(((e) => {
|
|
309
249
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
|
|
310
250
|
function m(e) {
|
|
311
251
|
return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -591,7 +531,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
591
531
|
}, e.useTransition = function() {
|
|
592
532
|
return w.H.useTransition();
|
|
593
533
|
}, e.version = "19.2.7";
|
|
594
|
-
})),
|
|
534
|
+
})), xe = /* @__PURE__ */ V(((e, t) => {
|
|
595
535
|
process.env.NODE_ENV !== "production" && (function() {
|
|
596
536
|
function n(e, t) {
|
|
597
537
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -599,19 +539,19 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
599
539
|
} });
|
|
600
540
|
}
|
|
601
541
|
function r(e) {
|
|
602
|
-
return typeof e != "object" || !e ? null : (e =
|
|
542
|
+
return typeof e != "object" || !e ? null : (e = ae && e[ae] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
603
543
|
}
|
|
604
544
|
function i(e, t) {
|
|
605
545
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
606
546
|
var n = e + "." + t;
|
|
607
|
-
|
|
547
|
+
oe[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), oe[n] = !0);
|
|
608
548
|
}
|
|
609
549
|
function a(e, t, n) {
|
|
610
|
-
this.props = e, this.context = t, this.refs =
|
|
550
|
+
this.props = e, this.context = t, this.refs = W, this.updater = n || se;
|
|
611
551
|
}
|
|
612
552
|
function o() {}
|
|
613
553
|
function s(e, t, n) {
|
|
614
|
-
this.props = e, this.context = t, this.refs =
|
|
554
|
+
this.props = e, this.context = t, this.refs = W, this.updater = n || se;
|
|
615
555
|
}
|
|
616
556
|
function c() {}
|
|
617
557
|
function l(e) {
|
|
@@ -632,25 +572,25 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
632
572
|
}
|
|
633
573
|
function d(e) {
|
|
634
574
|
if (e == null) return null;
|
|
635
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
575
|
+
if (typeof e == "function") return e.$$typeof === le ? null : e.displayName || e.name || null;
|
|
636
576
|
if (typeof e == "string") return e;
|
|
637
577
|
switch (e) {
|
|
638
578
|
case L: return "Fragment";
|
|
639
|
-
case
|
|
640
|
-
case
|
|
641
|
-
case
|
|
642
|
-
case
|
|
643
|
-
case
|
|
579
|
+
case ee: return "Profiler";
|
|
580
|
+
case R: return "StrictMode";
|
|
581
|
+
case re: return "Suspense";
|
|
582
|
+
case ie: return "SuspenseList";
|
|
583
|
+
case H: return "Activity";
|
|
644
584
|
}
|
|
645
585
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
646
586
|
case I: return "Portal";
|
|
647
|
-
case
|
|
648
|
-
case
|
|
649
|
-
case
|
|
587
|
+
case te: return e.displayName || "Context";
|
|
588
|
+
case z: return (e._context.displayName || "Context") + ".Consumer";
|
|
589
|
+
case ne:
|
|
650
590
|
var t = e.render;
|
|
651
591
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
652
|
-
case
|
|
653
|
-
case
|
|
592
|
+
case B: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
593
|
+
case V:
|
|
654
594
|
t = e._payload, e = e._init;
|
|
655
595
|
try {
|
|
656
596
|
return d(e(t));
|
|
@@ -660,7 +600,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
660
600
|
}
|
|
661
601
|
function f(e) {
|
|
662
602
|
if (e === L) return "<>";
|
|
663
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
603
|
+
if (typeof e == "object" && e && e.$$typeof === V) return "<...>";
|
|
664
604
|
try {
|
|
665
605
|
var t = d(e);
|
|
666
606
|
return t ? "<" + t + ">" : "<...>";
|
|
@@ -669,14 +609,14 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
669
609
|
}
|
|
670
610
|
}
|
|
671
611
|
function p() {
|
|
672
|
-
var e =
|
|
612
|
+
var e = K.A;
|
|
673
613
|
return e === null ? null : e.getOwner();
|
|
674
614
|
}
|
|
675
615
|
function m() {
|
|
676
616
|
return Error("react-stack-top-frame");
|
|
677
617
|
}
|
|
678
618
|
function h(e) {
|
|
679
|
-
if (
|
|
619
|
+
if (ue.call(e, "key")) {
|
|
680
620
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
681
621
|
if (t && t.isReactWarning) return !1;
|
|
682
622
|
}
|
|
@@ -684,7 +624,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
684
624
|
}
|
|
685
625
|
function g(e, t) {
|
|
686
626
|
function n() {
|
|
687
|
-
|
|
627
|
+
fe || (fe = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
688
628
|
}
|
|
689
629
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
690
630
|
get: n,
|
|
@@ -693,7 +633,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
693
633
|
}
|
|
694
634
|
function _() {
|
|
695
635
|
var e = d(this.type);
|
|
696
|
-
return
|
|
636
|
+
return me[e] || (me[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
697
637
|
}
|
|
698
638
|
function v(e, t, n, r, i, a) {
|
|
699
639
|
var o = n.ref;
|
|
@@ -735,7 +675,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
735
675
|
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
736
676
|
}
|
|
737
677
|
function b(e) {
|
|
738
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof ===
|
|
678
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === V && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
739
679
|
}
|
|
740
680
|
function x(e) {
|
|
741
681
|
return typeof e == "object" && !!e && e.$$typeof === F;
|
|
@@ -783,18 +723,18 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
783
723
|
case I:
|
|
784
724
|
s = !0;
|
|
785
725
|
break;
|
|
786
|
-
case
|
|
726
|
+
case V: return s = e._init, T(s(e._payload), t, n, i, a);
|
|
787
727
|
}
|
|
788
728
|
}
|
|
789
729
|
if (s) {
|
|
790
730
|
s = e, a = a(s);
|
|
791
731
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
792
|
-
return
|
|
732
|
+
return ce(a) ? (n = "", c != null && (n = c.replace(J, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
793
733
|
return e;
|
|
794
|
-
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(
|
|
734
|
+
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(J, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
795
735
|
}
|
|
796
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
797
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (
|
|
736
|
+
if (s = 0, c = i === "" ? "." : i + ":", ce(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
|
|
737
|
+
else if (l = r(e), typeof l == "function") for (l === e.entries && (q || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), q = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + C(i, l++), s += T(i, t, n, o, a);
|
|
798
738
|
else if (o === "object") {
|
|
799
739
|
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
800
740
|
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -836,56 +776,56 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
836
776
|
throw e._result;
|
|
837
777
|
}
|
|
838
778
|
function O() {
|
|
839
|
-
var e =
|
|
779
|
+
var e = K.H;
|
|
840
780
|
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
841
781
|
}
|
|
842
782
|
function k() {
|
|
843
|
-
|
|
783
|
+
K.asyncTransitions--;
|
|
844
784
|
}
|
|
845
785
|
function A(e) {
|
|
846
|
-
if (
|
|
786
|
+
if (Y === null) try {
|
|
847
787
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
848
|
-
|
|
788
|
+
Y = (t && t[n]).call(t, "timers").setImmediate;
|
|
849
789
|
} catch {
|
|
850
|
-
|
|
851
|
-
!1 ===
|
|
790
|
+
Y = function(e) {
|
|
791
|
+
!1 === ve && (ve = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
852
792
|
var t = new MessageChannel();
|
|
853
793
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
854
794
|
};
|
|
855
795
|
}
|
|
856
|
-
return
|
|
796
|
+
return Y(e);
|
|
857
797
|
}
|
|
858
798
|
function j(e) {
|
|
859
799
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
860
800
|
}
|
|
861
801
|
function M(e, t) {
|
|
862
|
-
t !==
|
|
802
|
+
t !== ye - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ye = t;
|
|
863
803
|
}
|
|
864
804
|
function N(e, t, n) {
|
|
865
|
-
var r =
|
|
805
|
+
var r = K.actQueue;
|
|
866
806
|
if (r !== null) if (r.length !== 0) try {
|
|
867
807
|
P(r), A(function() {
|
|
868
808
|
return N(e, t, n);
|
|
869
809
|
});
|
|
870
810
|
return;
|
|
871
811
|
} catch (e) {
|
|
872
|
-
|
|
812
|
+
K.thrownErrors.push(e);
|
|
873
813
|
}
|
|
874
|
-
else
|
|
875
|
-
0 <
|
|
814
|
+
else K.actQueue = null;
|
|
815
|
+
0 < K.thrownErrors.length ? (r = j(K.thrownErrors), K.thrownErrors.length = 0, n(r)) : t(e);
|
|
876
816
|
}
|
|
877
817
|
function P(e) {
|
|
878
|
-
if (!
|
|
879
|
-
|
|
818
|
+
if (!xe) {
|
|
819
|
+
xe = !0;
|
|
880
820
|
var t = 0;
|
|
881
821
|
try {
|
|
882
822
|
for (; t < e.length; t++) {
|
|
883
823
|
var n = e[t];
|
|
884
824
|
do {
|
|
885
|
-
|
|
825
|
+
K.didUsePromise = !1;
|
|
886
826
|
var r = n(!1);
|
|
887
827
|
if (r !== null) {
|
|
888
|
-
if (
|
|
828
|
+
if (K.didUsePromise) {
|
|
889
829
|
e[t] = n, e.splice(0, t);
|
|
890
830
|
return;
|
|
891
831
|
}
|
|
@@ -895,14 +835,14 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
895
835
|
}
|
|
896
836
|
e.length = 0;
|
|
897
837
|
} catch (n) {
|
|
898
|
-
e.splice(0, t + 1),
|
|
838
|
+
e.splice(0, t + 1), K.thrownErrors.push(n);
|
|
899
839
|
} finally {
|
|
900
|
-
|
|
840
|
+
xe = !1;
|
|
901
841
|
}
|
|
902
842
|
}
|
|
903
843
|
}
|
|
904
844
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
905
|
-
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"),
|
|
845
|
+
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), te = Symbol.for("react.context"), ne = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), ae = Symbol.iterator, oe = {}, se = {
|
|
906
846
|
isMounted: function() {
|
|
907
847
|
return !1;
|
|
908
848
|
},
|
|
@@ -915,20 +855,20 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
915
855
|
enqueueSetState: function(e) {
|
|
916
856
|
i(e, "setState");
|
|
917
857
|
}
|
|
918
|
-
},
|
|
919
|
-
Object.freeze(
|
|
858
|
+
}, U = Object.assign, W = {};
|
|
859
|
+
Object.freeze(W), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
920
860
|
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
921
861
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
922
862
|
}, a.prototype.forceUpdate = function(e) {
|
|
923
863
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
924
864
|
};
|
|
925
|
-
var
|
|
865
|
+
var G = {
|
|
926
866
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
927
867
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
928
868
|
};
|
|
929
|
-
for (
|
|
930
|
-
o.prototype = a.prototype,
|
|
931
|
-
var
|
|
869
|
+
for (Ce in G) G.hasOwnProperty(Ce) && n(Ce, G[Ce]);
|
|
870
|
+
o.prototype = a.prototype, G = s.prototype = new o(), G.constructor = s, U(G, a.prototype), G.isPureReactComponent = !0;
|
|
871
|
+
var ce = Array.isArray, le = Symbol.for("react.client.reference"), K = {
|
|
932
872
|
H: null,
|
|
933
873
|
A: null,
|
|
934
874
|
T: null,
|
|
@@ -941,13 +881,13 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
941
881
|
thrownErrors: [],
|
|
942
882
|
getCurrentStack: null,
|
|
943
883
|
recentlyCreatedOwnerStacks: 0
|
|
944
|
-
},
|
|
884
|
+
}, ue = Object.prototype.hasOwnProperty, de = console.createTask ? console.createTask : function() {
|
|
945
885
|
return null;
|
|
946
886
|
};
|
|
947
|
-
|
|
887
|
+
G = { react_stack_bottom_frame: function(e) {
|
|
948
888
|
return e();
|
|
949
889
|
} };
|
|
950
|
-
var pe, me
|
|
890
|
+
var fe, pe, me = {}, he = G.react_stack_bottom_frame.bind(G, m)(), ge = de(f(m)), q = !1, J = /\/+/g, _e = typeof reportError == "function" ? reportError : function(e) {
|
|
951
891
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
952
892
|
var t = new window.ErrorEvent("error", {
|
|
953
893
|
bubbles: !0,
|
|
@@ -961,18 +901,18 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
961
901
|
return;
|
|
962
902
|
}
|
|
963
903
|
console.error(e);
|
|
964
|
-
},
|
|
904
|
+
}, ve = !1, Y = null, ye = 0, be = !1, xe = !1, Se = typeof queueMicrotask == "function" ? function(e) {
|
|
965
905
|
queueMicrotask(function() {
|
|
966
906
|
return queueMicrotask(e);
|
|
967
907
|
});
|
|
968
908
|
} : A;
|
|
969
|
-
|
|
909
|
+
G = Object.freeze({
|
|
970
910
|
__proto__: null,
|
|
971
911
|
c: function(e) {
|
|
972
912
|
return O().useMemoCache(e);
|
|
973
913
|
}
|
|
974
914
|
});
|
|
975
|
-
var
|
|
915
|
+
var Ce = {
|
|
976
916
|
map: E,
|
|
977
917
|
forEach: function(e, t, n) {
|
|
978
918
|
E(e, function() {
|
|
@@ -995,20 +935,20 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
995
935
|
return e;
|
|
996
936
|
}
|
|
997
937
|
};
|
|
998
|
-
e.Activity =
|
|
999
|
-
var t =
|
|
1000
|
-
|
|
1001
|
-
var r =
|
|
938
|
+
e.Activity = H, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = ee, e.PureComponent = s, e.StrictMode = R, e.Suspense = re, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = K, e.__COMPILER_RUNTIME = G, e.act = function(e) {
|
|
939
|
+
var t = K.actQueue, n = ye;
|
|
940
|
+
ye++;
|
|
941
|
+
var r = K.actQueue = t === null ? [] : t, i = !1;
|
|
1002
942
|
try {
|
|
1003
943
|
var a = e();
|
|
1004
944
|
} catch (e) {
|
|
1005
|
-
|
|
945
|
+
K.thrownErrors.push(e);
|
|
1006
946
|
}
|
|
1007
|
-
if (0 <
|
|
947
|
+
if (0 < K.thrownErrors.length) throw M(t, n), e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
1008
948
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
1009
949
|
var o = a;
|
|
1010
|
-
return
|
|
1011
|
-
i ||
|
|
950
|
+
return Se(function() {
|
|
951
|
+
i || be || (be = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1012
952
|
}), { then: function(e, a) {
|
|
1013
953
|
i = !0, o.then(function(i) {
|
|
1014
954
|
if (M(t, n), n === 0) {
|
|
@@ -1017,24 +957,24 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1017
957
|
return N(i, e, a);
|
|
1018
958
|
});
|
|
1019
959
|
} catch (e) {
|
|
1020
|
-
|
|
960
|
+
K.thrownErrors.push(e);
|
|
1021
961
|
}
|
|
1022
|
-
if (0 <
|
|
1023
|
-
var o = j(
|
|
1024
|
-
|
|
962
|
+
if (0 < K.thrownErrors.length) {
|
|
963
|
+
var o = j(K.thrownErrors);
|
|
964
|
+
K.thrownErrors.length = 0, a(o);
|
|
1025
965
|
}
|
|
1026
966
|
} else e(i);
|
|
1027
967
|
}, function(e) {
|
|
1028
|
-
M(t, n), 0 <
|
|
968
|
+
M(t, n), 0 < K.thrownErrors.length ? (e = j(K.thrownErrors), K.thrownErrors.length = 0, a(e)) : a(e);
|
|
1029
969
|
});
|
|
1030
970
|
} };
|
|
1031
971
|
}
|
|
1032
972
|
var s = a;
|
|
1033
|
-
if (M(t, n), n === 0 && (P(r), r.length !== 0 &&
|
|
1034
|
-
i ||
|
|
1035
|
-
}),
|
|
973
|
+
if (M(t, n), n === 0 && (P(r), r.length !== 0 && Se(function() {
|
|
974
|
+
i || be || (be = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
975
|
+
}), K.actQueue = null), 0 < K.thrownErrors.length) throw e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
1036
976
|
return { then: function(e, t) {
|
|
1037
|
-
i = !0, n === 0 ? (
|
|
977
|
+
i = !0, n === 0 ? (K.actQueue = r, A(function() {
|
|
1038
978
|
return N(s, e, t);
|
|
1039
979
|
})) : e(s);
|
|
1040
980
|
} };
|
|
@@ -1045,21 +985,21 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1045
985
|
}, e.cacheSignal = function() {
|
|
1046
986
|
return null;
|
|
1047
987
|
}, e.captureOwnerStack = function() {
|
|
1048
|
-
var e =
|
|
988
|
+
var e = K.getCurrentStack;
|
|
1049
989
|
return e === null ? null : e();
|
|
1050
990
|
}, e.cloneElement = function(e, t, n) {
|
|
1051
991
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
1052
|
-
var r =
|
|
992
|
+
var r = U({}, e.props), i = e.key, a = e._owner;
|
|
1053
993
|
if (t != null) {
|
|
1054
994
|
var o;
|
|
1055
995
|
a: {
|
|
1056
|
-
if (
|
|
996
|
+
if (ue.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
1057
997
|
o = !1;
|
|
1058
998
|
break a;
|
|
1059
999
|
}
|
|
1060
1000
|
o = t.ref !== void 0;
|
|
1061
1001
|
}
|
|
1062
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
1002
|
+
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !ue.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
1063
1003
|
}
|
|
1064
1004
|
var s = arguments.length - 2;
|
|
1065
1005
|
if (s === 1) r.children = n;
|
|
@@ -1072,21 +1012,21 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1072
1012
|
return r;
|
|
1073
1013
|
}, e.createContext = function(e) {
|
|
1074
1014
|
return e = {
|
|
1075
|
-
$$typeof:
|
|
1015
|
+
$$typeof: te,
|
|
1076
1016
|
_currentValue: e,
|
|
1077
1017
|
_currentValue2: e,
|
|
1078
1018
|
_threadCount: 0,
|
|
1079
1019
|
Provider: null,
|
|
1080
1020
|
Consumer: null
|
|
1081
1021
|
}, e.Provider = e, e.Consumer = {
|
|
1082
|
-
$$typeof:
|
|
1022
|
+
$$typeof: z,
|
|
1083
1023
|
_context: e
|
|
1084
1024
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1085
1025
|
}, e.createElement = function(e, t, n) {
|
|
1086
1026
|
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
1087
1027
|
r = {};
|
|
1088
1028
|
var i = null;
|
|
1089
|
-
if (t != null) for (c in
|
|
1029
|
+
if (t != null) for (c in pe || !("__self" in t) || "key" in t || (pe = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) ue.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
|
|
1090
1030
|
var a = arguments.length - 2;
|
|
1091
1031
|
if (a === 1) r.children = n;
|
|
1092
1032
|
else if (1 < a) {
|
|
@@ -1095,15 +1035,15 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1095
1035
|
}
|
|
1096
1036
|
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
1097
1037
|
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
1098
|
-
var c = 1e4 >
|
|
1099
|
-
return v(e, i, r, p(), c ? Error("react-stack-top-frame") :
|
|
1038
|
+
var c = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
1039
|
+
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : he, c ? de(f(e)) : ge);
|
|
1100
1040
|
}, e.createRef = function() {
|
|
1101
1041
|
var e = { current: null };
|
|
1102
1042
|
return Object.seal(e), e;
|
|
1103
1043
|
}, e.forwardRef = function(e) {
|
|
1104
|
-
e != null && e.$$typeof ===
|
|
1044
|
+
e != null && e.$$typeof === B ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
1105
1045
|
var t = {
|
|
1106
|
-
$$typeof:
|
|
1046
|
+
$$typeof: ne,
|
|
1107
1047
|
render: e
|
|
1108
1048
|
}, n;
|
|
1109
1049
|
return Object.defineProperty(t, "displayName", {
|
|
@@ -1122,7 +1062,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1122
1062
|
_result: e
|
|
1123
1063
|
};
|
|
1124
1064
|
var t = {
|
|
1125
|
-
$$typeof:
|
|
1065
|
+
$$typeof: V,
|
|
1126
1066
|
_payload: e,
|
|
1127
1067
|
_init: D
|
|
1128
1068
|
}, n = {
|
|
@@ -1137,7 +1077,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1137
1077
|
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
1138
1078
|
}, e.memo = function(e, t) {
|
|
1139
1079
|
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
1140
|
-
$$typeof:
|
|
1080
|
+
$$typeof: B,
|
|
1141
1081
|
type: e,
|
|
1142
1082
|
compare: t === void 0 ? null : t
|
|
1143
1083
|
};
|
|
@@ -1153,15 +1093,15 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1153
1093
|
}
|
|
1154
1094
|
}), t;
|
|
1155
1095
|
}, e.startTransition = function(e) {
|
|
1156
|
-
var t =
|
|
1157
|
-
n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
1096
|
+
var t = K.T, n = {};
|
|
1097
|
+
n._updatedFibers = /* @__PURE__ */ new Set(), K.T = n;
|
|
1158
1098
|
try {
|
|
1159
|
-
var r = e(), i =
|
|
1160
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
1099
|
+
var r = e(), i = K.S;
|
|
1100
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (K.asyncTransitions++, r.then(k, k), r.then(c, _e));
|
|
1161
1101
|
} catch (e) {
|
|
1162
|
-
|
|
1102
|
+
_e(e);
|
|
1163
1103
|
} finally {
|
|
1164
|
-
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types),
|
|
1104
|
+
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), K.T = t;
|
|
1165
1105
|
}
|
|
1166
1106
|
}, e.unstable_useCacheRefresh = function() {
|
|
1167
1107
|
return O().useCacheRefresh();
|
|
@@ -1173,7 +1113,7 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1173
1113
|
return O().useCallback(e, t);
|
|
1174
1114
|
}, e.useContext = function(e) {
|
|
1175
1115
|
var t = O();
|
|
1176
|
-
return e.$$typeof ===
|
|
1116
|
+
return e.$$typeof === z && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
|
|
1177
1117
|
}, e.useDebugValue = function(e, t) {
|
|
1178
1118
|
return O().useDebugValue(e, t);
|
|
1179
1119
|
}, e.useDeferredValue = function(e, t) {
|
|
@@ -1206,12 +1146,12 @@ var Te = /* @__PURE__ */ B(((e) => {
|
|
|
1206
1146
|
return O().useTransition();
|
|
1207
1147
|
}, e.version = "19.2.7", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1208
1148
|
})();
|
|
1209
|
-
})),
|
|
1210
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
1211
|
-
})))(),
|
|
1212
|
-
function
|
|
1149
|
+
})), Se = (/* @__PURE__ */ V(((e, t) => {
|
|
1150
|
+
process.env.NODE_ENV === "production" ? t.exports = be() : t.exports = xe();
|
|
1151
|
+
})))(), Ce = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1152
|
+
function we(e) {
|
|
1213
1153
|
let t = {};
|
|
1214
|
-
return e.replace(
|
|
1154
|
+
return e.replace(Ce, (e) => {
|
|
1215
1155
|
let n = e.length;
|
|
1216
1156
|
switch (e[0]) {
|
|
1217
1157
|
case "G":
|
|
@@ -1306,10 +1246,10 @@ function ke(e) {
|
|
|
1306
1246
|
return "";
|
|
1307
1247
|
}), t;
|
|
1308
1248
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1249
|
+
var Te = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1250
|
+
function Ee(e) {
|
|
1311
1251
|
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
1312
|
-
let t = e.split(
|
|
1252
|
+
let t = e.split(Te).filter((e) => e.length > 0), n = [];
|
|
1313
1253
|
for (let e of t) {
|
|
1314
1254
|
let t = e.split("/");
|
|
1315
1255
|
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
@@ -1322,17 +1262,17 @@ function je(e) {
|
|
|
1322
1262
|
}
|
|
1323
1263
|
return n;
|
|
1324
1264
|
}
|
|
1325
|
-
function
|
|
1265
|
+
function De(e) {
|
|
1326
1266
|
return e.replace(/^(.*?)-/, "");
|
|
1327
1267
|
}
|
|
1328
|
-
var
|
|
1329
|
-
function
|
|
1268
|
+
var Oe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ke = /^(@+)?(\+|#+)?[rs]?$/g, Ae = /(\*)(0+)|(#+)(0+)|(0+)/g, je = /^(0+)$/;
|
|
1269
|
+
function Me(e) {
|
|
1330
1270
|
let t = {};
|
|
1331
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1271
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ke, function(e, n, r) {
|
|
1332
1272
|
return typeof r == "string" ? r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), "";
|
|
1333
1273
|
}), t;
|
|
1334
1274
|
}
|
|
1335
|
-
function
|
|
1275
|
+
function Ne(e) {
|
|
1336
1276
|
switch (e) {
|
|
1337
1277
|
case "sign-auto": return { signDisplay: "auto" };
|
|
1338
1278
|
case "sign-accounting":
|
|
@@ -1355,19 +1295,19 @@ function Re(e) {
|
|
|
1355
1295
|
case "+_": return { signDisplay: "never" };
|
|
1356
1296
|
}
|
|
1357
1297
|
}
|
|
1358
|
-
function
|
|
1298
|
+
function Pe(e) {
|
|
1359
1299
|
let t;
|
|
1360
1300
|
if (e[0] === "E" && e[1] === "E" ? (t = { notation: "engineering" }, e = e.slice(2)) : e[0] === "E" && (t = { notation: "scientific" }, e = e.slice(1)), t) {
|
|
1361
1301
|
let n = e.slice(0, 2);
|
|
1362
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1302
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !je.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
1363
1303
|
t.minimumIntegerDigits = e.length;
|
|
1364
1304
|
}
|
|
1365
1305
|
return t;
|
|
1366
1306
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1307
|
+
function Fe(e) {
|
|
1308
|
+
return Ne(e) || {};
|
|
1369
1309
|
}
|
|
1370
|
-
function
|
|
1310
|
+
function Ie(e) {
|
|
1371
1311
|
let t = {};
|
|
1372
1312
|
for (let n of e) {
|
|
1373
1313
|
switch (n.stem) {
|
|
@@ -1391,7 +1331,7 @@ function Ve(e) {
|
|
|
1391
1331
|
continue;
|
|
1392
1332
|
case "measure-unit":
|
|
1393
1333
|
case "unit":
|
|
1394
|
-
t.style = "unit", t.unit =
|
|
1334
|
+
t.style = "unit", t.unit = De(n.options[0]);
|
|
1395
1335
|
continue;
|
|
1396
1336
|
case "compact-short":
|
|
1397
1337
|
case "K":
|
|
@@ -1407,7 +1347,7 @@ function Ve(e) {
|
|
|
1407
1347
|
notation: "scientific",
|
|
1408
1348
|
...n.options.reduce((e, t) => ({
|
|
1409
1349
|
...e,
|
|
1410
|
-
...
|
|
1350
|
+
...Fe(t)
|
|
1411
1351
|
}), {})
|
|
1412
1352
|
};
|
|
1413
1353
|
continue;
|
|
@@ -1417,7 +1357,7 @@ function Ve(e) {
|
|
|
1417
1357
|
notation: "engineering",
|
|
1418
1358
|
...n.options.reduce((e, t) => ({
|
|
1419
1359
|
...e,
|
|
1420
|
-
...
|
|
1360
|
+
...Fe(t)
|
|
1421
1361
|
}), {})
|
|
1422
1362
|
};
|
|
1423
1363
|
continue;
|
|
@@ -1462,7 +1402,7 @@ function Ve(e) {
|
|
|
1462
1402
|
continue;
|
|
1463
1403
|
case "integer-width":
|
|
1464
1404
|
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
1465
|
-
n.options[0].replace(
|
|
1405
|
+
n.options[0].replace(Ae, function(e, n, r, i, a, o) {
|
|
1466
1406
|
if (n) t.minimumIntegerDigits = r.length;
|
|
1467
1407
|
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
1468
1408
|
else if (o) throw Error("We currently do not support exact integer digits");
|
|
@@ -1470,13 +1410,13 @@ function Ve(e) {
|
|
|
1470
1410
|
});
|
|
1471
1411
|
continue;
|
|
1472
1412
|
}
|
|
1473
|
-
if (
|
|
1413
|
+
if (je.test(n.stem)) {
|
|
1474
1414
|
t.minimumIntegerDigits = n.stem.length;
|
|
1475
1415
|
continue;
|
|
1476
1416
|
}
|
|
1477
|
-
if (
|
|
1417
|
+
if (Oe.test(n.stem)) {
|
|
1478
1418
|
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
1479
|
-
n.stem.replace(
|
|
1419
|
+
n.stem.replace(Oe, function(e, n, r, i, a, o) {
|
|
1480
1420
|
return r === "*" ? t.minimumFractionDigits = n.length : i && i[0] === "#" ? t.maximumFractionDigits = i.length : a && o ? (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length + o.length) : (t.minimumFractionDigits = n.length, t.maximumFractionDigits = n.length), "";
|
|
1481
1421
|
});
|
|
1482
1422
|
let e = n.options[0];
|
|
@@ -1485,23 +1425,23 @@ function Ve(e) {
|
|
|
1485
1425
|
trailingZeroDisplay: "stripIfInteger"
|
|
1486
1426
|
} : e && (t = {
|
|
1487
1427
|
...t,
|
|
1488
|
-
...
|
|
1428
|
+
...Me(e)
|
|
1489
1429
|
});
|
|
1490
1430
|
continue;
|
|
1491
1431
|
}
|
|
1492
|
-
if (
|
|
1432
|
+
if (ke.test(n.stem)) {
|
|
1493
1433
|
t = {
|
|
1494
1434
|
...t,
|
|
1495
|
-
...
|
|
1435
|
+
...Me(n.stem)
|
|
1496
1436
|
};
|
|
1497
1437
|
continue;
|
|
1498
1438
|
}
|
|
1499
|
-
let e =
|
|
1439
|
+
let e = Ne(n.stem);
|
|
1500
1440
|
e && (t = {
|
|
1501
1441
|
...t,
|
|
1502
1442
|
...e
|
|
1503
1443
|
});
|
|
1504
|
-
let r =
|
|
1444
|
+
let r = Pe(n.stem);
|
|
1505
1445
|
r && (t = {
|
|
1506
1446
|
...t,
|
|
1507
1447
|
...r
|
|
@@ -1511,43 +1451,43 @@ function Ve(e) {
|
|
|
1511
1451
|
}
|
|
1512
1452
|
//#endregion
|
|
1513
1453
|
//#region ../../node_modules/.bun/@formatjs+icu-messageformat-parser@3.5.12/node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
1514
|
-
var
|
|
1454
|
+
var Le = /* @__PURE__ */ function(e) {
|
|
1515
1455
|
return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
|
|
1516
1456
|
}({});
|
|
1517
|
-
function
|
|
1457
|
+
function Re(e) {
|
|
1518
1458
|
return e.type === 0;
|
|
1519
1459
|
}
|
|
1520
|
-
function
|
|
1460
|
+
function ze(e) {
|
|
1521
1461
|
return e.type === 1;
|
|
1522
1462
|
}
|
|
1523
|
-
function
|
|
1463
|
+
function Be(e) {
|
|
1524
1464
|
return e.type === 2;
|
|
1525
1465
|
}
|
|
1526
|
-
function
|
|
1466
|
+
function Ve(e) {
|
|
1527
1467
|
return e.type === 3;
|
|
1528
1468
|
}
|
|
1529
|
-
function
|
|
1469
|
+
function He(e) {
|
|
1530
1470
|
return e.type === 4;
|
|
1531
1471
|
}
|
|
1532
|
-
function
|
|
1472
|
+
function Ue(e) {
|
|
1533
1473
|
return e.type === 5;
|
|
1534
1474
|
}
|
|
1535
|
-
function
|
|
1475
|
+
function We(e) {
|
|
1536
1476
|
return e.type === 6;
|
|
1537
1477
|
}
|
|
1538
|
-
function
|
|
1478
|
+
function Ge(e) {
|
|
1539
1479
|
return e.type === 7;
|
|
1540
1480
|
}
|
|
1541
|
-
function
|
|
1481
|
+
function Ke(e) {
|
|
1542
1482
|
return e.type === 8;
|
|
1543
1483
|
}
|
|
1544
|
-
function
|
|
1484
|
+
function qe(e) {
|
|
1545
1485
|
return !!(e && typeof e == "object" && e.type === 0);
|
|
1546
1486
|
}
|
|
1547
|
-
function
|
|
1487
|
+
function Je(e) {
|
|
1548
1488
|
return !!(e && typeof e == "object" && e.type === 1);
|
|
1549
1489
|
}
|
|
1550
|
-
var
|
|
1490
|
+
var Ye = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xe = {
|
|
1551
1491
|
"001": ["H", "h"],
|
|
1552
1492
|
419: [
|
|
1553
1493
|
"h",
|
|
@@ -2710,21 +2650,21 @@ var et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tt = {
|
|
|
2710
2650
|
"h"
|
|
2711
2651
|
]
|
|
2712
2652
|
};
|
|
2713
|
-
function
|
|
2653
|
+
function Ze(e, t) {
|
|
2714
2654
|
let n = "";
|
|
2715
2655
|
for (let r = 0; r < e.length; r++) {
|
|
2716
2656
|
let i = e.charAt(r);
|
|
2717
2657
|
if (i === "j") {
|
|
2718
2658
|
let a = 0;
|
|
2719
2659
|
for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
|
|
2720
|
-
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c =
|
|
2660
|
+
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = Qe(t);
|
|
2721
2661
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
2722
2662
|
for (; o-- > 0;) n = c + n;
|
|
2723
2663
|
} else i === "J" ? n += "H" : n += i;
|
|
2724
2664
|
}
|
|
2725
2665
|
return n;
|
|
2726
2666
|
}
|
|
2727
|
-
function
|
|
2667
|
+
function Qe(e) {
|
|
2728
2668
|
let t = e.hourCycle;
|
|
2729
2669
|
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
2730
2670
|
case "h24": return "k";
|
|
@@ -2734,32 +2674,32 @@ function rt(e) {
|
|
|
2734
2674
|
default: throw Error("Invalid hourCycle");
|
|
2735
2675
|
}
|
|
2736
2676
|
let n = e.language, r;
|
|
2737
|
-
return n !== "root" && (r = e.maximize().region), (
|
|
2677
|
+
return n !== "root" && (r = e.maximize().region), (Xe[r || ""] || Xe[n || ""] || Xe[`${n}-001`] || Xe["001"])[0];
|
|
2738
2678
|
}
|
|
2739
|
-
var
|
|
2679
|
+
var $e = RegExp(`^${Ye.source}*`), et = RegExp(`${Ye.source}*$`);
|
|
2740
2680
|
function X(e, t) {
|
|
2741
2681
|
return {
|
|
2742
2682
|
start: e,
|
|
2743
2683
|
end: t
|
|
2744
2684
|
};
|
|
2745
2685
|
}
|
|
2746
|
-
var
|
|
2686
|
+
var tt = !!Object.fromEntries, nt = !!String.prototype.trimStart, rt = !!String.prototype.trimEnd, it = tt ? Object.fromEntries : function(e) {
|
|
2747
2687
|
let t = {};
|
|
2748
2688
|
for (let [n, r] of e) t[n] = r;
|
|
2749
2689
|
return t;
|
|
2750
|
-
},
|
|
2690
|
+
}, at = nt ? function(e) {
|
|
2751
2691
|
return e.trimStart();
|
|
2752
2692
|
} : function(e) {
|
|
2753
|
-
return e.replace(
|
|
2754
|
-
},
|
|
2693
|
+
return e.replace($e, "");
|
|
2694
|
+
}, ot = rt ? function(e) {
|
|
2755
2695
|
return e.trimEnd();
|
|
2756
2696
|
} : function(e) {
|
|
2757
|
-
return e.replace(
|
|
2758
|
-
},
|
|
2759
|
-
function
|
|
2760
|
-
return
|
|
2697
|
+
return e.replace(et, "");
|
|
2698
|
+
}, st = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2699
|
+
function ct(e, t) {
|
|
2700
|
+
return st.lastIndex = t, st.exec(e)[1] ?? "";
|
|
2761
2701
|
}
|
|
2762
|
-
function
|
|
2702
|
+
function lt(e) {
|
|
2763
2703
|
if (e.length === 0) return null;
|
|
2764
2704
|
let t = 1, n = 1;
|
|
2765
2705
|
for (let r = 0; r < e.length;) {
|
|
@@ -2783,7 +2723,7 @@ function mt(e) {
|
|
|
2783
2723
|
column: n
|
|
2784
2724
|
};
|
|
2785
2725
|
}
|
|
2786
|
-
var
|
|
2726
|
+
var ut = class {
|
|
2787
2727
|
constructor(e, t = {}) {
|
|
2788
2728
|
this.message = e, this.position = {
|
|
2789
2729
|
offset: 0,
|
|
@@ -2796,7 +2736,7 @@ var ht = class {
|
|
|
2796
2736
|
if (this.message.length > 0) {
|
|
2797
2737
|
let e = this.message.charCodeAt(0);
|
|
2798
2738
|
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
2799
|
-
let e =
|
|
2739
|
+
let e = lt(this.message);
|
|
2800
2740
|
if (e) {
|
|
2801
2741
|
let t = this.clonePosition();
|
|
2802
2742
|
return this.position = e, {
|
|
@@ -2830,7 +2770,7 @@ var ht = class {
|
|
|
2830
2770
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2831
2771
|
if (n) break;
|
|
2832
2772
|
return this.error(26, X(this.clonePosition(), this.clonePosition()));
|
|
2833
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
2773
|
+
} else if (i === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
|
2834
2774
|
let n = this.parseTag(e, t);
|
|
2835
2775
|
if (n.err) return n;
|
|
2836
2776
|
r.push(n.val);
|
|
@@ -2862,7 +2802,7 @@ var ht = class {
|
|
|
2862
2802
|
if (i.err) return i;
|
|
2863
2803
|
let a = i.val, o = this.clonePosition();
|
|
2864
2804
|
if (this.bumpIf("</")) {
|
|
2865
|
-
if (this.isEOF() || !
|
|
2805
|
+
if (this.isEOF() || !dt(this.char())) return this.error(23, X(o, this.clonePosition()));
|
|
2866
2806
|
let e = this.clonePosition();
|
|
2867
2807
|
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2868
2808
|
val: {
|
|
@@ -2878,7 +2818,7 @@ var ht = class {
|
|
|
2878
2818
|
}
|
|
2879
2819
|
parseTagName() {
|
|
2880
2820
|
let e = this.offset();
|
|
2881
|
-
for (this.bump(); !this.isEOF() &&
|
|
2821
|
+
for (this.bump(); !this.isEOF() && pt(this.char());) this.bump();
|
|
2882
2822
|
return this.message.slice(e, this.offset());
|
|
2883
2823
|
}
|
|
2884
2824
|
parseLiteral(e, t) {
|
|
@@ -2912,7 +2852,7 @@ var ht = class {
|
|
|
2912
2852
|
};
|
|
2913
2853
|
}
|
|
2914
2854
|
tryParseLeftAngleBracket() {
|
|
2915
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
2855
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !ft(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2916
2856
|
}
|
|
2917
2857
|
tryParseQuote(e) {
|
|
2918
2858
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -2967,7 +2907,7 @@ var ht = class {
|
|
|
2967
2907
|
}
|
|
2968
2908
|
}
|
|
2969
2909
|
parseIdentifierIfPossible() {
|
|
2970
|
-
let e = this.clonePosition(), t = this.offset(), n =
|
|
2910
|
+
let e = this.clonePosition(), t = this.offset(), n = ct(this.message, t), r = t + n.length;
|
|
2971
2911
|
return this.bumpTo(r), {
|
|
2972
2912
|
value: n,
|
|
2973
2913
|
location: X(e, this.clonePosition())
|
|
@@ -2986,7 +2926,7 @@ var ht = class {
|
|
|
2986
2926
|
this.bumpSpace();
|
|
2987
2927
|
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
2988
2928
|
if (n.err) return n;
|
|
2989
|
-
let r =
|
|
2929
|
+
let r = ot(n.val);
|
|
2990
2930
|
if (r.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
|
|
2991
2931
|
e = {
|
|
2992
2932
|
style: r,
|
|
@@ -2997,7 +2937,7 @@ var ht = class {
|
|
|
2997
2937
|
if (t.err) return t;
|
|
2998
2938
|
let i = X(r, this.clonePosition());
|
|
2999
2939
|
if (e && e.style.startsWith("::")) {
|
|
3000
|
-
let t =
|
|
2940
|
+
let t = at(e.style.slice(2));
|
|
3001
2941
|
if (a === "number") {
|
|
3002
2942
|
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
3003
2943
|
return r.err ? r : {
|
|
@@ -3012,12 +2952,12 @@ var ht = class {
|
|
|
3012
2952
|
} else {
|
|
3013
2953
|
if (t.length === 0) return this.error(10, i);
|
|
3014
2954
|
let r = t;
|
|
3015
|
-
this.locale && (r =
|
|
2955
|
+
this.locale && (r = Ze(t, this.locale));
|
|
3016
2956
|
let o = {
|
|
3017
2957
|
type: 1,
|
|
3018
2958
|
pattern: r,
|
|
3019
2959
|
location: e.styleLocation,
|
|
3020
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2960
|
+
parsedOptions: this.shouldParseSkeletons ? we(r) : {}
|
|
3021
2961
|
};
|
|
3022
2962
|
return {
|
|
3023
2963
|
val: {
|
|
@@ -3063,7 +3003,7 @@ var ht = class {
|
|
|
3063
3003
|
val: {
|
|
3064
3004
|
type: 5,
|
|
3065
3005
|
value: n,
|
|
3066
|
-
options:
|
|
3006
|
+
options: it(c.val),
|
|
3067
3007
|
location: u
|
|
3068
3008
|
},
|
|
3069
3009
|
err: null
|
|
@@ -3071,7 +3011,7 @@ var ht = class {
|
|
|
3071
3011
|
val: {
|
|
3072
3012
|
type: 6,
|
|
3073
3013
|
value: n,
|
|
3074
|
-
options:
|
|
3014
|
+
options: it(c.val),
|
|
3075
3015
|
offset: s,
|
|
3076
3016
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3077
3017
|
location: u
|
|
@@ -3120,7 +3060,7 @@ var ht = class {
|
|
|
3120
3060
|
parseNumberSkeletonFromString(e, t) {
|
|
3121
3061
|
let n = [];
|
|
3122
3062
|
try {
|
|
3123
|
-
n =
|
|
3063
|
+
n = Ee(e);
|
|
3124
3064
|
} catch {
|
|
3125
3065
|
return this.error(7, t);
|
|
3126
3066
|
}
|
|
@@ -3129,7 +3069,7 @@ var ht = class {
|
|
|
3129
3069
|
type: 0,
|
|
3130
3070
|
tokens: n,
|
|
3131
3071
|
location: t,
|
|
3132
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3072
|
+
parsedOptions: this.shouldParseSkeletons ? Ie(n) : {}
|
|
3133
3073
|
},
|
|
3134
3074
|
err: null
|
|
3135
3075
|
};
|
|
@@ -3234,7 +3174,7 @@ var ht = class {
|
|
|
3234
3174
|
}
|
|
3235
3175
|
}
|
|
3236
3176
|
bumpSpace() {
|
|
3237
|
-
for (; !this.isEOF() &&
|
|
3177
|
+
for (; !this.isEOF() && mt(this.char());) this.bump();
|
|
3238
3178
|
}
|
|
3239
3179
|
peek() {
|
|
3240
3180
|
if (this.isEOF()) return null;
|
|
@@ -3242,83 +3182,83 @@ var ht = class {
|
|
|
3242
3182
|
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
3243
3183
|
}
|
|
3244
3184
|
};
|
|
3245
|
-
function
|
|
3185
|
+
function dt(e) {
|
|
3246
3186
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3247
3187
|
}
|
|
3248
|
-
function
|
|
3249
|
-
return
|
|
3188
|
+
function ft(e) {
|
|
3189
|
+
return dt(e) || e === 47;
|
|
3250
3190
|
}
|
|
3251
|
-
function
|
|
3191
|
+
function pt(e) {
|
|
3252
3192
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3253
3193
|
}
|
|
3254
|
-
function
|
|
3194
|
+
function mt(e) {
|
|
3255
3195
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3256
3196
|
}
|
|
3257
|
-
function
|
|
3197
|
+
function ht(e) {
|
|
3258
3198
|
e.forEach((e) => {
|
|
3259
|
-
if (delete e.location,
|
|
3260
|
-
else
|
|
3199
|
+
if (delete e.location, Ue(e) || We(e)) for (let t in e.options) delete e.options[t].location, ht(e.options[t].value);
|
|
3200
|
+
else Be(e) && qe(e.style) || (Ve(e) || He(e)) && Je(e.style) ? delete e.style.location : Ke(e) && ht(e.children);
|
|
3261
3201
|
});
|
|
3262
3202
|
}
|
|
3263
|
-
function
|
|
3203
|
+
function gt(e, t = {}) {
|
|
3264
3204
|
t = {
|
|
3265
3205
|
shouldParseSkeletons: !0,
|
|
3266
3206
|
requiresOtherClause: !0,
|
|
3267
3207
|
...t
|
|
3268
3208
|
};
|
|
3269
|
-
let n = new
|
|
3209
|
+
let n = new ut(e, t).parse();
|
|
3270
3210
|
if (n.err) {
|
|
3271
|
-
let e = SyntaxError(
|
|
3211
|
+
let e = SyntaxError(Le[n.err.kind]);
|
|
3272
3212
|
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
3273
3213
|
}
|
|
3274
|
-
return t?.captureLocation ||
|
|
3214
|
+
return t?.captureLocation || ht(n.val), n.val;
|
|
3275
3215
|
}
|
|
3276
3216
|
//#endregion
|
|
3277
3217
|
//#region ../../node_modules/.bun/intl-messageformat@11.2.9/node_modules/intl-messageformat/index.js
|
|
3278
|
-
var
|
|
3218
|
+
var _t = class extends Error {
|
|
3279
3219
|
constructor(e, t, n) {
|
|
3280
3220
|
super(e), this.code = t, this.originalMessage = n;
|
|
3281
3221
|
}
|
|
3282
3222
|
toString() {
|
|
3283
3223
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3284
3224
|
}
|
|
3285
|
-
},
|
|
3225
|
+
}, vt = class extends _t {
|
|
3286
3226
|
constructor(e, t, n, r) {
|
|
3287
3227
|
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
3288
3228
|
}
|
|
3289
|
-
},
|
|
3229
|
+
}, yt = class extends _t {
|
|
3290
3230
|
constructor(e, t, n) {
|
|
3291
3231
|
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
3292
3232
|
}
|
|
3293
|
-
},
|
|
3233
|
+
}, bt = class extends _t {
|
|
3294
3234
|
constructor(e, t) {
|
|
3295
3235
|
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
3296
3236
|
}
|
|
3297
3237
|
};
|
|
3298
|
-
function
|
|
3238
|
+
function xt(e) {
|
|
3299
3239
|
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
3300
3240
|
let n = e[e.length - 1];
|
|
3301
3241
|
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
3302
3242
|
}, []);
|
|
3303
3243
|
}
|
|
3304
|
-
function
|
|
3244
|
+
function St(e) {
|
|
3305
3245
|
return typeof e == "function";
|
|
3306
3246
|
}
|
|
3307
|
-
function
|
|
3308
|
-
if (e.length === 1 &&
|
|
3247
|
+
function Ct(e, t, n, r, i, a, o) {
|
|
3248
|
+
if (e.length === 1 && Re(e[0])) return [{
|
|
3309
3249
|
type: 0,
|
|
3310
3250
|
value: e[0].value
|
|
3311
3251
|
}];
|
|
3312
3252
|
let s = [];
|
|
3313
3253
|
for (let c of e) {
|
|
3314
|
-
if (
|
|
3254
|
+
if (Re(c)) {
|
|
3315
3255
|
s.push({
|
|
3316
3256
|
type: 0,
|
|
3317
3257
|
value: c.value
|
|
3318
3258
|
});
|
|
3319
3259
|
continue;
|
|
3320
3260
|
}
|
|
3321
|
-
if (
|
|
3261
|
+
if (Ge(c)) {
|
|
3322
3262
|
typeof a == "number" && s.push({
|
|
3323
3263
|
type: 0,
|
|
3324
3264
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3326,33 +3266,33 @@ function Ot(e, t, n, r, i, a, o) {
|
|
|
3326
3266
|
continue;
|
|
3327
3267
|
}
|
|
3328
3268
|
let { value: e } = c;
|
|
3329
|
-
if (!(i && e in i)) throw new
|
|
3269
|
+
if (!(i && e in i)) throw new bt(e, o);
|
|
3330
3270
|
let l = i[e];
|
|
3331
|
-
if (
|
|
3271
|
+
if (ze(c)) {
|
|
3332
3272
|
(!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
|
|
3333
3273
|
type: typeof l == "string" ? 0 : 1,
|
|
3334
3274
|
value: l
|
|
3335
3275
|
});
|
|
3336
3276
|
continue;
|
|
3337
3277
|
}
|
|
3338
|
-
if (
|
|
3339
|
-
let e = typeof c.style == "string" ? r.date[c.style] :
|
|
3278
|
+
if (Ve(c)) {
|
|
3279
|
+
let e = typeof c.style == "string" ? r.date[c.style] : Je(c.style) ? c.style.parsedOptions : void 0;
|
|
3340
3280
|
s.push({
|
|
3341
3281
|
type: 0,
|
|
3342
3282
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3343
3283
|
});
|
|
3344
3284
|
continue;
|
|
3345
3285
|
}
|
|
3346
|
-
if (
|
|
3347
|
-
let e = typeof c.style == "string" ? r.time[c.style] :
|
|
3286
|
+
if (He(c)) {
|
|
3287
|
+
let e = typeof c.style == "string" ? r.time[c.style] : Je(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3348
3288
|
s.push({
|
|
3349
3289
|
type: 0,
|
|
3350
3290
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3351
3291
|
});
|
|
3352
3292
|
continue;
|
|
3353
3293
|
}
|
|
3354
|
-
if (
|
|
3355
|
-
let e = typeof c.style == "string" ? r.number[c.style] :
|
|
3294
|
+
if (Be(c)) {
|
|
3295
|
+
let e = typeof c.style == "string" ? r.number[c.style] : qe(c.style) ? c.style.parsedOptions : void 0;
|
|
3356
3296
|
if (e && e.scale) {
|
|
3357
3297
|
let t = e.scale || 1;
|
|
3358
3298
|
if (typeof l == "bigint") {
|
|
@@ -3366,37 +3306,37 @@ function Ot(e, t, n, r, i, a, o) {
|
|
|
3366
3306
|
});
|
|
3367
3307
|
continue;
|
|
3368
3308
|
}
|
|
3369
|
-
if (
|
|
3309
|
+
if (Ke(c)) {
|
|
3370
3310
|
let { children: e, value: l } = c, u = i[l];
|
|
3371
|
-
if (!
|
|
3372
|
-
let d = u(
|
|
3311
|
+
if (!St(u)) throw new yt(l, "function", o);
|
|
3312
|
+
let d = u(Ct(e, t, n, r, i, a).map((e) => e.value));
|
|
3373
3313
|
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
3374
3314
|
type: typeof e == "string" ? 0 : 1,
|
|
3375
3315
|
value: e
|
|
3376
3316
|
})));
|
|
3377
3317
|
}
|
|
3378
|
-
if (
|
|
3318
|
+
if (Ue(c)) {
|
|
3379
3319
|
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
3380
|
-
if (!a) throw new
|
|
3381
|
-
s.push(...
|
|
3320
|
+
if (!a) throw new vt(c.value, l, Object.keys(c.options), o);
|
|
3321
|
+
s.push(...Ct(a.value, t, n, r, i));
|
|
3382
3322
|
continue;
|
|
3383
3323
|
}
|
|
3384
|
-
if (
|
|
3324
|
+
if (We(c)) {
|
|
3385
3325
|
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
3386
3326
|
if (!a) {
|
|
3387
|
-
if (!Intl.PluralRules) throw new
|
|
3327
|
+
if (!Intl.PluralRules) throw new _t("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
3388
3328
|
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
3389
3329
|
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
3390
3330
|
}
|
|
3391
|
-
if (!a) throw new
|
|
3331
|
+
if (!a) throw new vt(c.value, l, Object.keys(c.options), o);
|
|
3392
3332
|
let u = typeof l == "bigint" ? Number(l) : l;
|
|
3393
|
-
s.push(...
|
|
3333
|
+
s.push(...Ct(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
3394
3334
|
continue;
|
|
3395
3335
|
}
|
|
3396
3336
|
}
|
|
3397
|
-
return
|
|
3337
|
+
return xt(s);
|
|
3398
3338
|
}
|
|
3399
|
-
function
|
|
3339
|
+
function wt(e, t) {
|
|
3400
3340
|
return t ? {
|
|
3401
3341
|
...e,
|
|
3402
3342
|
...t,
|
|
@@ -3406,10 +3346,10 @@ function kt(e, t) {
|
|
|
3406
3346
|
}, n), {})
|
|
3407
3347
|
} : e;
|
|
3408
3348
|
}
|
|
3409
|
-
function
|
|
3410
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] =
|
|
3349
|
+
function Tt(e, t) {
|
|
3350
|
+
return t ? Object.keys(e).reduce((n, r) => (n[r] = wt(e[r], t[r]), n), { ...e }) : e;
|
|
3411
3351
|
}
|
|
3412
|
-
function
|
|
3352
|
+
function Et(e) {
|
|
3413
3353
|
return { create() {
|
|
3414
3354
|
return {
|
|
3415
3355
|
get(t) {
|
|
@@ -3421,27 +3361,27 @@ function jt(e) {
|
|
|
3421
3361
|
};
|
|
3422
3362
|
} };
|
|
3423
3363
|
}
|
|
3424
|
-
function
|
|
3364
|
+
function Dt(e = {
|
|
3425
3365
|
number: {},
|
|
3426
3366
|
dateTime: {},
|
|
3427
3367
|
pluralRules: {}
|
|
3428
3368
|
}) {
|
|
3429
3369
|
return {
|
|
3430
|
-
getNumberFormat:
|
|
3431
|
-
cache:
|
|
3432
|
-
strategy:
|
|
3370
|
+
getNumberFormat: W((...e) => new Intl.NumberFormat(...e), {
|
|
3371
|
+
cache: Et(e.number),
|
|
3372
|
+
strategy: ge.variadic
|
|
3433
3373
|
}),
|
|
3434
|
-
getDateTimeFormat:
|
|
3435
|
-
cache:
|
|
3436
|
-
strategy:
|
|
3374
|
+
getDateTimeFormat: W((...e) => new Intl.DateTimeFormat(...e), {
|
|
3375
|
+
cache: Et(e.dateTime),
|
|
3376
|
+
strategy: ge.variadic
|
|
3437
3377
|
}),
|
|
3438
|
-
getPluralRules:
|
|
3439
|
-
cache:
|
|
3440
|
-
strategy:
|
|
3378
|
+
getPluralRules: W((...e) => new Intl.PluralRules(...e), {
|
|
3379
|
+
cache: Et(e.pluralRules),
|
|
3380
|
+
strategy: ge.variadic
|
|
3441
3381
|
})
|
|
3442
3382
|
};
|
|
3443
3383
|
}
|
|
3444
|
-
var
|
|
3384
|
+
var Ot = class e {
|
|
3445
3385
|
constructor(t, n = e.defaultLocale, r, i) {
|
|
3446
3386
|
if (this.formatterCache = {
|
|
3447
3387
|
number: {},
|
|
@@ -3452,7 +3392,7 @@ var Nt = class e {
|
|
|
3452
3392
|
if (t.length === 1) return t[0].value;
|
|
3453
3393
|
let n = t.reduce((e, t) => (!e.length || t.type !== 0 || typeof e[e.length - 1] != "string" ? e.push(t.value) : e[e.length - 1] += t.value, e), []);
|
|
3454
3394
|
return n.length <= 1 ? n[0] || "" : n;
|
|
3455
|
-
}, this.formatToParts = (e) =>
|
|
3395
|
+
}, this.formatToParts = (e) => Ct(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3456
3396
|
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3457
3397
|
let { ...n } = i || {};
|
|
3458
3398
|
this.ast = e.__parse(t, {
|
|
@@ -3461,7 +3401,7 @@ var Nt = class e {
|
|
|
3461
3401
|
});
|
|
3462
3402
|
} else this.ast = t;
|
|
3463
3403
|
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
3464
|
-
this.formats =
|
|
3404
|
+
this.formats = Tt(e.formats, r), this.formatters = i && i.formatters || Dt(this.formatterCache);
|
|
3465
3405
|
}
|
|
3466
3406
|
static {
|
|
3467
3407
|
this.memoizedDefaultLocale = null;
|
|
@@ -3477,7 +3417,7 @@ var Nt = class e {
|
|
|
3477
3417
|
};
|
|
3478
3418
|
}
|
|
3479
3419
|
static {
|
|
3480
|
-
this.__parse =
|
|
3420
|
+
this.__parse = gt;
|
|
3481
3421
|
}
|
|
3482
3422
|
static {
|
|
3483
3423
|
this.formats = {
|
|
@@ -3537,7 +3477,7 @@ var Nt = class e {
|
|
|
3537
3477
|
};
|
|
3538
3478
|
//#endregion
|
|
3539
3479
|
//#region ../../node_modules/.bun/use-intl@4.13.2+e14d3f224186685e/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3540
|
-
function
|
|
3480
|
+
function kt(...[e, t, n, r]) {
|
|
3541
3481
|
if (Array.isArray(t)) throw new q(J.INVALID_MESSAGE, void 0);
|
|
3542
3482
|
if (typeof t == "object") throw new q(J.INSUFFICIENT_PATH, void 0);
|
|
3543
3483
|
if (typeof t == "string") {
|
|
@@ -3548,14 +3488,14 @@ function Pt(...[e, t, n, r]) {
|
|
|
3548
3488
|
}
|
|
3549
3489
|
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3550
3490
|
o.getMessageFormat ||= function(e, t) {
|
|
3551
|
-
return
|
|
3491
|
+
return ve(((...e) => new Ot(e[0], e[1], e[2], {
|
|
3552
3492
|
formatters: t,
|
|
3553
3493
|
...e[3]
|
|
3554
3494
|
})), e.message);
|
|
3555
3495
|
}(i, o);
|
|
3556
3496
|
try {
|
|
3557
3497
|
u = o.getMessageFormat(t, c, function(e, t, n) {
|
|
3558
|
-
let r =
|
|
3498
|
+
let r = Ot.formats.date, i = Ot.formats.time, a = {
|
|
3559
3499
|
...e?.dateTime,
|
|
3560
3500
|
...t?.dateTime
|
|
3561
3501
|
}, o = {
|
|
@@ -3590,22 +3530,22 @@ function Pt(...[e, t, n, r]) {
|
|
|
3590
3530
|
throw new q(J.INVALID_MESSAGE, void 0);
|
|
3591
3531
|
}
|
|
3592
3532
|
let d = u.format(n);
|
|
3593
|
-
return (0,
|
|
3533
|
+
return (0, Se.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
3594
3534
|
}
|
|
3595
|
-
|
|
3535
|
+
kt.raw = !0;
|
|
3596
3536
|
//#endregion
|
|
3597
3537
|
//#region ../../node_modules/.bun/use-intl@4.13.2+e14d3f224186685e/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
|
|
3598
|
-
function
|
|
3538
|
+
function At(...e) {
|
|
3599
3539
|
return e.filter(Boolean).join(".");
|
|
3600
3540
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3541
|
+
function jt(e) {
|
|
3542
|
+
return At(e.namespace, e.key);
|
|
3603
3543
|
}
|
|
3604
|
-
function
|
|
3544
|
+
function Mt(e) {
|
|
3605
3545
|
console.error(e);
|
|
3606
3546
|
}
|
|
3607
|
-
function
|
|
3608
|
-
let i =
|
|
3547
|
+
function Nt(e, t, n, r) {
|
|
3548
|
+
let i = At(r, n);
|
|
3609
3549
|
if (!t) throw Error(i);
|
|
3610
3550
|
let a = t;
|
|
3611
3551
|
return n.split(".").forEach(((t) => {
|
|
@@ -3614,18 +3554,18 @@ function Rt(e, t, n, r) {
|
|
|
3614
3554
|
a = n;
|
|
3615
3555
|
})), a;
|
|
3616
3556
|
}
|
|
3617
|
-
function
|
|
3557
|
+
function Pt(e) {
|
|
3618
3558
|
let t = function(e, t, n) {
|
|
3619
3559
|
try {
|
|
3620
3560
|
if (!t) throw Error(void 0);
|
|
3621
|
-
let r = n ?
|
|
3561
|
+
let r = n ? Nt(e, t, n) : t;
|
|
3622
3562
|
if (!r) throw Error(n);
|
|
3623
3563
|
return r;
|
|
3624
3564
|
} catch (e) {
|
|
3625
3565
|
return new q(J.MISSING_MESSAGE, e.message);
|
|
3626
3566
|
}
|
|
3627
3567
|
}(e.locale, e.messages, e.namespace);
|
|
3628
|
-
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r =
|
|
3568
|
+
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = jt, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3629
3569
|
let l = a instanceof q;
|
|
3630
3570
|
function u(e, t, n, i) {
|
|
3631
3571
|
let a = new q(t, n);
|
|
@@ -3647,20 +3587,20 @@ function zt(e) {
|
|
|
3647
3587
|
} else {
|
|
3648
3588
|
let e = a;
|
|
3649
3589
|
try {
|
|
3650
|
-
g =
|
|
3590
|
+
g = Nt(i, e, d, o);
|
|
3651
3591
|
} catch (e) {
|
|
3652
3592
|
if (!h) return u(d, J.MISSING_MESSAGE, e.message, h);
|
|
3653
3593
|
g = h;
|
|
3654
3594
|
}
|
|
3655
3595
|
}
|
|
3656
3596
|
try {
|
|
3657
|
-
return
|
|
3597
|
+
return kt(At(o, d), g, f && function(e) {
|
|
3658
3598
|
let t = {};
|
|
3659
3599
|
return Object.keys(e).forEach(((n) => {
|
|
3660
3600
|
let r = 0, i = e[n], a;
|
|
3661
3601
|
a = typeof i == "function" ? (e) => {
|
|
3662
3602
|
let t = i(e);
|
|
3663
|
-
return (0,
|
|
3603
|
+
return (0, Se.isValidElement)(t) ? (0, Se.cloneElement)(t, { key: n + r++ }) : t;
|
|
3664
3604
|
} : i, t[n] = a;
|
|
3665
3605
|
})), t;
|
|
3666
3606
|
}(f), {
|
|
@@ -3688,14 +3628,14 @@ function zt(e) {
|
|
|
3688
3628
|
});
|
|
3689
3629
|
let t = a;
|
|
3690
3630
|
try {
|
|
3691
|
-
return
|
|
3631
|
+
return Nt(i, t, e, o);
|
|
3692
3632
|
} catch (t) {
|
|
3693
3633
|
return u(e, J.MISSING_MESSAGE, t.message);
|
|
3694
3634
|
}
|
|
3695
3635
|
}, f.has = (e) => {
|
|
3696
3636
|
if (l) return !1;
|
|
3697
3637
|
try {
|
|
3698
|
-
return
|
|
3638
|
+
return Nt(i, a, e, o), !0;
|
|
3699
3639
|
} catch {
|
|
3700
3640
|
return !1;
|
|
3701
3641
|
}
|
|
@@ -3705,16 +3645,16 @@ function zt(e) {
|
|
|
3705
3645
|
messagesOrError: t
|
|
3706
3646
|
});
|
|
3707
3647
|
}
|
|
3708
|
-
function
|
|
3648
|
+
function Ft(e, t) {
|
|
3709
3649
|
return e === t ? void 0 : e.slice((t + ".").length);
|
|
3710
3650
|
}
|
|
3711
|
-
var
|
|
3712
|
-
7 *
|
|
3651
|
+
var It = 86400;
|
|
3652
|
+
7 * It, 365 * It;
|
|
3713
3653
|
//#endregion
|
|
3714
3654
|
//#region ../../node_modules/.bun/use-intl@4.13.2+e14d3f224186685e/node_modules/use-intl/dist/esm/production/core.js
|
|
3715
|
-
function
|
|
3655
|
+
function Lt({ _cache: e = _e(), _formatters: t = ye(e), getMessageFallback: n = jt, messages: r, namespace: i, onError: a = Mt, ...o }) {
|
|
3716
3656
|
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3717
|
-
return e = e[r], t =
|
|
3657
|
+
return e = e[r], t = Ft(t, r), Pt({
|
|
3718
3658
|
...n,
|
|
3719
3659
|
messages: e,
|
|
3720
3660
|
namespace: t
|
|
@@ -3731,18 +3671,78 @@ function Ht({ _cache: e = Se(), _formatters: t = we(e), getMessageFallback: n =
|
|
|
3731
3671
|
}
|
|
3732
3672
|
//#endregion
|
|
3733
3673
|
//#region src/i18n/index.ts
|
|
3734
|
-
var
|
|
3674
|
+
var Rt = "en", zt = (e) => Lt({
|
|
3735
3675
|
locale: e,
|
|
3736
|
-
messages:
|
|
3676
|
+
messages: R(e),
|
|
3737
3677
|
namespace: "folio"
|
|
3738
|
-
}),
|
|
3739
|
-
b(
|
|
3678
|
+
}), Bt = Symbol("folioTranslator"), Vt = r(() => zt("en")), Ht = (e = "en") => {
|
|
3679
|
+
b(Bt, r(() => zt(D(e))));
|
|
3740
3680
|
}, Z = () => {
|
|
3741
|
-
let e = d(
|
|
3681
|
+
let e = d(Bt, Vt);
|
|
3742
3682
|
return { t: (t, n) => e.value(t, n) };
|
|
3743
|
-
},
|
|
3744
|
-
e.provide(
|
|
3745
|
-
} },
|
|
3683
|
+
}, Ut = { install(e, t = "en") {
|
|
3684
|
+
e.provide(Bt, r(() => zt(D(t))));
|
|
3685
|
+
} }, Wt = ["disabled"], Gt = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", Kt = /* @__PURE__ */ u({
|
|
3686
|
+
__name: "Button",
|
|
3687
|
+
props: {
|
|
3688
|
+
variant: { default: "default" },
|
|
3689
|
+
size: { default: "default" },
|
|
3690
|
+
disabled: {
|
|
3691
|
+
type: Boolean,
|
|
3692
|
+
default: !1
|
|
3693
|
+
},
|
|
3694
|
+
className: { default: "" }
|
|
3695
|
+
},
|
|
3696
|
+
emits: ["click"],
|
|
3697
|
+
setup(e) {
|
|
3698
|
+
let t = e, n = {
|
|
3699
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
3700
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
3701
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
3702
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
3703
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
3704
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
3705
|
+
}, i = {
|
|
3706
|
+
default: "h-10 px-4 py-2",
|
|
3707
|
+
sm: "h-9 rounded-md px-3",
|
|
3708
|
+
lg: "h-11 rounded-md px-8",
|
|
3709
|
+
icon: "h-9 w-9",
|
|
3710
|
+
"icon-sm": "h-7 w-7",
|
|
3711
|
+
xs: "h-7 rounded-md px-2 text-xs",
|
|
3712
|
+
"icon-xs": "h-7 w-7"
|
|
3713
|
+
}, a = r(() => [
|
|
3714
|
+
Gt,
|
|
3715
|
+
n[t.variant],
|
|
3716
|
+
i[t.size],
|
|
3717
|
+
t.className
|
|
3718
|
+
].filter(Boolean).join(" "));
|
|
3719
|
+
return (t, n) => (y(), o("button", {
|
|
3720
|
+
type: "button",
|
|
3721
|
+
class: h(a.value),
|
|
3722
|
+
disabled: e.disabled,
|
|
3723
|
+
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
3724
|
+
}, [w(t.$slots, "default")], 10, Wt));
|
|
3725
|
+
}
|
|
3726
|
+
}), qt = ["checked"], Jt = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
3727
|
+
__name: "Checkbox",
|
|
3728
|
+
props: {
|
|
3729
|
+
checked: { type: Boolean },
|
|
3730
|
+
className: {}
|
|
3731
|
+
},
|
|
3732
|
+
emits: ["update:checked"],
|
|
3733
|
+
setup(e, { emit: t }) {
|
|
3734
|
+
let n = t;
|
|
3735
|
+
function r(e) {
|
|
3736
|
+
e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
|
|
3737
|
+
}
|
|
3738
|
+
return (t, n) => (y(), o("input", {
|
|
3739
|
+
type: "checkbox",
|
|
3740
|
+
class: h(["folio-default-checkbox", e.className]),
|
|
3741
|
+
checked: e.checked,
|
|
3742
|
+
onChange: r
|
|
3743
|
+
}, null, 42, qt));
|
|
3744
|
+
}
|
|
3745
|
+
}), [["__scopeId", "data-v-2e4f5470"]]), Yt = [
|
|
3746
3746
|
"disabled",
|
|
3747
3747
|
"title",
|
|
3748
3748
|
"aria-label"
|
|
@@ -3772,7 +3772,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3772
3772
|
"aria-label",
|
|
3773
3773
|
"aria-selected",
|
|
3774
3774
|
"onClick"
|
|
3775
|
-
], ln = { class: "docx-color-picker__section-label" }, un = { class: "docx-color-picker__custom" }, dn = ["onKeydown"], fn = ["disabled"], pn = /*#__PURE__*/
|
|
3775
|
+
], ln = { class: "docx-color-picker__section-label" }, un = { class: "docx-color-picker__custom" }, dn = ["onKeydown"], fn = ["disabled"], pn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
3776
3776
|
__name: "ColorPicker",
|
|
3777
3777
|
props: {
|
|
3778
3778
|
mode: {},
|
|
@@ -3838,7 +3838,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3838
3838
|
}
|
|
3839
3839
|
];
|
|
3840
3840
|
function p(e) {
|
|
3841
|
-
return e ? typeof e == "string" ? i.mode === "highlight" ? ne(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` :
|
|
3841
|
+
return e ? typeof e == "string" ? i.mode === "highlight" ? ne(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : z(e, i.theme) : i.mode === "text" || i.mode === "border" ? "#000000" : "transparent";
|
|
3842
3842
|
}
|
|
3843
3843
|
function m(e) {
|
|
3844
3844
|
return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
|
|
@@ -3850,7 +3850,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3850
3850
|
return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
|
|
3851
3851
|
}
|
|
3852
3852
|
function x(e, t) {
|
|
3853
|
-
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() :
|
|
3853
|
+
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : te(e, i.theme)) === t.toUpperCase() : !1;
|
|
3854
3854
|
}
|
|
3855
3855
|
function w(e) {
|
|
3856
3856
|
return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
|
|
@@ -3861,10 +3861,10 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3861
3861
|
function D(e) {
|
|
3862
3862
|
return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
|
|
3863
3863
|
}
|
|
3864
|
-
let k = S(!1), A = S(""), j = S(null), P = S(null),
|
|
3864
|
+
let k = S(!1), A = S(""), j = S(null), P = S(null), R = S(i.defaultColor ?? w(i.mode)), re = r(() => ee(i.theme?.colorScheme ?? null)), ie = r(() => re.value.flatMap((e, t) => e.map((e, n) => ({
|
|
3865
3865
|
...e,
|
|
3866
3866
|
key: `${t}-${n}`
|
|
3867
|
-
})))),
|
|
3867
|
+
})))), B = r(() => p(i.value)), V = r(() => p(R.value)), H = r(() => E(i.mode)), ae = r(() => i.icon ?? D(i.mode));
|
|
3868
3868
|
N(() => [
|
|
3869
3869
|
i.value,
|
|
3870
3870
|
i.mode,
|
|
@@ -3873,55 +3873,55 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3873
3873
|
let e = p(i.value).replace(/^#/, "");
|
|
3874
3874
|
/^[0-9A-Fa-f]{6}$/.test(e) && (A.value = e.toUpperCase());
|
|
3875
3875
|
}, { immediate: !0 });
|
|
3876
|
-
let
|
|
3877
|
-
function
|
|
3876
|
+
let oe = S({});
|
|
3877
|
+
function se() {
|
|
3878
3878
|
let e = j.value;
|
|
3879
3879
|
if (!e) return;
|
|
3880
3880
|
let t = e.getBoundingClientRect();
|
|
3881
|
-
|
|
3881
|
+
oe.value = {
|
|
3882
3882
|
top: `${t.bottom + 4}px`,
|
|
3883
3883
|
left: `${t.left}px`
|
|
3884
3884
|
};
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3887
|
-
i.disabled || (k.value ||
|
|
3886
|
+
function W() {
|
|
3887
|
+
i.disabled || (k.value || se(), k.value = !k.value);
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3890
|
-
t && (
|
|
3889
|
+
function G(e, t = !0) {
|
|
3890
|
+
t && (R.value = e), u("change", e), k.value = !1;
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3893
|
-
i.disabled || u("change",
|
|
3892
|
+
function ce() {
|
|
3893
|
+
i.disabled || u("change", R.value);
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function le(e) {
|
|
3896
3896
|
if (i.mode === "highlight") {
|
|
3897
|
-
|
|
3897
|
+
G(e.hex);
|
|
3898
3898
|
return;
|
|
3899
3899
|
}
|
|
3900
3900
|
let t = {
|
|
3901
3901
|
themeColor: e.themeSlot,
|
|
3902
3902
|
rgb: e.hex
|
|
3903
3903
|
};
|
|
3904
|
-
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade),
|
|
3904
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), G(t);
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3907
|
-
|
|
3906
|
+
function K(e) {
|
|
3907
|
+
G(i.mode === "highlight" ? e : { rgb: e });
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3910
|
-
|
|
3909
|
+
function ue() {
|
|
3910
|
+
G(i.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3911
3911
|
}
|
|
3912
|
-
function
|
|
3912
|
+
function de() {
|
|
3913
3913
|
let e = A.value.replace(/^#/, "").toUpperCase();
|
|
3914
|
-
m(e) && (
|
|
3914
|
+
m(e) && (G(i.mode === "highlight" ? e : { rgb: e }), A.value = "");
|
|
3915
3915
|
}
|
|
3916
|
-
function
|
|
3916
|
+
function fe(e) {
|
|
3917
3917
|
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
3918
3918
|
}
|
|
3919
|
-
function
|
|
3919
|
+
function pe(e) {
|
|
3920
3920
|
if (!k.value) return;
|
|
3921
3921
|
let t = e.target;
|
|
3922
3922
|
t instanceof Node && (j.value?.contains(t) || P.value?.contains(t) || (k.value = !1));
|
|
3923
3923
|
}
|
|
3924
|
-
return v(() => document.addEventListener("mousedown",
|
|
3924
|
+
return v(() => document.addEventListener("mousedown", pe)), _(() => document.removeEventListener("mousedown", pe)), (n, r) => (y(), o("div", {
|
|
3925
3925
|
ref_key: "containerRef",
|
|
3926
3926
|
ref: j,
|
|
3927
3927
|
class: h(["docx-color-picker", e.className]),
|
|
@@ -3933,27 +3933,27 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3933
3933
|
type: "button",
|
|
3934
3934
|
class: "docx-color-picker__apply",
|
|
3935
3935
|
disabled: e.disabled,
|
|
3936
|
-
title: e.title ??
|
|
3937
|
-
"aria-label": e.title ??
|
|
3936
|
+
title: e.title ?? H.value,
|
|
3937
|
+
"aria-label": e.title ?? H.value,
|
|
3938
3938
|
onMousedown: r[0] ||= L(() => {}, ["prevent"]),
|
|
3939
|
-
onClick:
|
|
3940
|
-
}, [l(
|
|
3941
|
-
name:
|
|
3939
|
+
onClick: ce
|
|
3940
|
+
}, [l(U, {
|
|
3941
|
+
name: ae.value,
|
|
3942
3942
|
size: 18
|
|
3943
3943
|
}, null, 8, ["name"]), s("span", {
|
|
3944
|
-
class: h(["docx-color-picker__bar", { "is-light":
|
|
3945
|
-
style: g({ background:
|
|
3944
|
+
class: h(["docx-color-picker__bar", { "is-light": V.value === "transparent" || b(V.value) }]),
|
|
3945
|
+
style: g({ background: V.value === "transparent" ? "#fff" : V.value })
|
|
3946
3946
|
}, null, 6)], 40, Yt), s("button", {
|
|
3947
3947
|
type: "button",
|
|
3948
3948
|
class: h(["docx-color-picker__arrow", { "is-open": k.value }]),
|
|
3949
3949
|
disabled: e.disabled,
|
|
3950
|
-
title: e.title ??
|
|
3951
|
-
"aria-label": e.title ??
|
|
3950
|
+
title: e.title ?? H.value,
|
|
3951
|
+
"aria-label": e.title ?? H.value,
|
|
3952
3952
|
"aria-haspopup": "true",
|
|
3953
3953
|
"aria-expanded": k.value,
|
|
3954
3954
|
onMousedown: r[1] ||= L(() => {}, ["prevent"]),
|
|
3955
|
-
onClick:
|
|
3956
|
-
}, [l(
|
|
3955
|
+
onClick: W
|
|
3956
|
+
}, [l(U, {
|
|
3957
3957
|
name: "arrow_drop_down",
|
|
3958
3958
|
size: 18
|
|
3959
3959
|
})], 42, Xt)], 2)) : (y(), o("button", {
|
|
@@ -3961,19 +3961,19 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3961
3961
|
type: "button",
|
|
3962
3962
|
class: h(["docx-color-picker__button", { "is-open": k.value }]),
|
|
3963
3963
|
disabled: e.disabled,
|
|
3964
|
-
title: e.title ??
|
|
3965
|
-
"aria-label": e.title ??
|
|
3964
|
+
title: e.title ?? H.value,
|
|
3965
|
+
"aria-label": e.title ?? H.value,
|
|
3966
3966
|
"aria-haspopup": "true",
|
|
3967
3967
|
"aria-expanded": k.value,
|
|
3968
3968
|
onMousedown: r[2] ||= L(() => {}, ["prevent"]),
|
|
3969
|
-
onClick:
|
|
3970
|
-
}, [s("span", Qt, [l(
|
|
3971
|
-
name:
|
|
3969
|
+
onClick: W
|
|
3970
|
+
}, [s("span", Qt, [l(U, {
|
|
3971
|
+
name: ae.value,
|
|
3972
3972
|
size: 18
|
|
3973
3973
|
}, null, 8, ["name"]), s("span", {
|
|
3974
|
-
class: h(["docx-color-picker__bar", { "is-light":
|
|
3975
|
-
style: g({ background:
|
|
3976
|
-
}, null, 6)]), l(
|
|
3974
|
+
class: h(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
|
|
3975
|
+
style: g({ background: B.value === "transparent" ? "#fff" : B.value })
|
|
3976
|
+
}, null, 6)]), l(U, {
|
|
3977
3977
|
name: "arrow_drop_down",
|
|
3978
3978
|
size: 14
|
|
3979
3979
|
})], 42, Zt)), k.value && !e.disabled ? (y(), o("div", {
|
|
@@ -3981,20 +3981,20 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
3981
3981
|
ref_key: "panelRef",
|
|
3982
3982
|
ref: P,
|
|
3983
3983
|
class: "docx-color-picker__panel",
|
|
3984
|
-
style: g(
|
|
3984
|
+
style: g(oe.value),
|
|
3985
3985
|
role: "dialog",
|
|
3986
|
-
"aria-label": O(d)("colorPicker.ariaLabel", { type:
|
|
3987
|
-
onMousedown:
|
|
3986
|
+
"aria-label": O(d)("colorPicker.ariaLabel", { type: H.value }),
|
|
3987
|
+
onMousedown: fe
|
|
3988
3988
|
}, [
|
|
3989
3989
|
s("button", {
|
|
3990
3990
|
type: "button",
|
|
3991
3991
|
class: "docx-color-picker__auto",
|
|
3992
3992
|
onMousedown: r[3] ||= L(() => {}, ["prevent"]),
|
|
3993
|
-
onClick:
|
|
3993
|
+
onClick: ue
|
|
3994
3994
|
}, [e.mode === "highlight" ? (y(), o("span", en, [...r[10] ||= [s("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (y(), o("span", tn)), c(" " + T(e.autoLabel ?? (e.mode === "highlight" ? O(d)("colorPicker.noColor") : O(d)("colorPicker.automatic"))), 1)], 32),
|
|
3995
3995
|
r[12] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
3996
3996
|
s("div", nn, T(O(d)("colorPicker.themeColors")), 1),
|
|
3997
|
-
s("div", rn, [(y(!0), o(t, null, C(
|
|
3997
|
+
s("div", rn, [(y(!0), o(t, null, C(ie.value, (t) => (y(), o("button", {
|
|
3998
3998
|
key: t.key,
|
|
3999
3999
|
type: "button",
|
|
4000
4000
|
class: h(["docx-color-picker__cell", { "is-selected": x(e.value, t.hex) }]),
|
|
@@ -4003,7 +4003,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4003
4003
|
"aria-label": t.label,
|
|
4004
4004
|
"aria-selected": x(e.value, t.hex),
|
|
4005
4005
|
onMousedown: r[4] ||= L(() => {}, ["prevent"]),
|
|
4006
|
-
onClick: (e) =>
|
|
4006
|
+
onClick: (e) => le(t)
|
|
4007
4007
|
}, null, 46, an))), 128))]),
|
|
4008
4008
|
r[13] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4009
4009
|
s("div", on, T(O(d)("colorPicker.standardColors")), 1),
|
|
@@ -4016,7 +4016,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4016
4016
|
"aria-label": O(d)(t.nameKey),
|
|
4017
4017
|
"aria-selected": x(e.value, t.hex),
|
|
4018
4018
|
onMousedown: r[5] ||= L(() => {}, ["prevent"]),
|
|
4019
|
-
onClick: (e) =>
|
|
4019
|
+
onClick: (e) => K(t.hex)
|
|
4020
4020
|
}, null, 46, cn)), 64))]),
|
|
4021
4021
|
r[14] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4022
4022
|
s("div", ln, T(O(d)("colorPicker.customColor")), 1),
|
|
@@ -4030,7 +4030,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4030
4030
|
maxlength: "6",
|
|
4031
4031
|
"aria-label": "Custom hex color",
|
|
4032
4032
|
onInput: r[7] ||= (e) => A.value = A.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
|
|
4033
|
-
onKeydown: I(L(
|
|
4033
|
+
onKeydown: I(L(de, ["prevent"]), ["enter"]),
|
|
4034
4034
|
onMousedown: r[8] ||= L(() => {}, ["stop"])
|
|
4035
4035
|
}, null, 40, dn), [[M, A.value]]),
|
|
4036
4036
|
s("button", {
|
|
@@ -4038,12 +4038,12 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4038
4038
|
class: "docx-color-picker__apply-btn",
|
|
4039
4039
|
disabled: !m(A.value),
|
|
4040
4040
|
onMousedown: r[9] ||= L(() => {}, ["prevent"]),
|
|
4041
|
-
onClick:
|
|
4041
|
+
onClick: de
|
|
4042
4042
|
}, T(O(d)("common.apply")), 41, fn)
|
|
4043
4043
|
])
|
|
4044
4044
|
], 44, $t)) : a("", !0)], 6));
|
|
4045
4045
|
}
|
|
4046
|
-
}), [["__scopeId", "data-v-
|
|
4046
|
+
}), [["__scopeId", "data-v-ea554ffa"]]), mn = ["value", "autofocus"], hn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4047
4047
|
__name: "DatePickerPopover",
|
|
4048
4048
|
props: {
|
|
4049
4049
|
value: {},
|
|
@@ -4070,7 +4070,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4070
4070
|
onChange: c
|
|
4071
4071
|
}, null, 40, mn));
|
|
4072
4072
|
}
|
|
4073
|
-
}), [["__scopeId", "data-v-
|
|
4073
|
+
}), [["__scopeId", "data-v-3101462d"]]), gn = ["aria-label"], _n = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4074
4074
|
inheritAttrs: !1,
|
|
4075
4075
|
__name: "Dialog",
|
|
4076
4076
|
props: {
|
|
@@ -4105,7 +4105,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4105
4105
|
onMousedown: r[0] ||= L(() => {}, ["stop"])
|
|
4106
4106
|
}), [w(t.$slots, "default", {}, void 0, !0)], 16, gn)], 34)) : a("", !0)]));
|
|
4107
4107
|
}
|
|
4108
|
-
}), [["__scopeId", "data-v-76309dbc"]]), vn = ["value"], yn = /*#__PURE__*/
|
|
4108
|
+
}), [["__scopeId", "data-v-76309dbc"]]), vn = ["value"], yn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4109
4109
|
__name: "Input",
|
|
4110
4110
|
props: {
|
|
4111
4111
|
modelValue: {},
|
|
@@ -4130,7 +4130,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4130
4130
|
onInput: i
|
|
4131
4131
|
}, null, 42, vn));
|
|
4132
4132
|
}
|
|
4133
|
-
}), [["__scopeId", "data-v-a34b139d"]]), bn = 4, xn = /*#__PURE__*/
|
|
4133
|
+
}), [["__scopeId", "data-v-a34b139d"]]), bn = 4, xn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4134
4134
|
__name: "Popover",
|
|
4135
4135
|
props: {
|
|
4136
4136
|
open: { type: Boolean },
|
|
@@ -4209,7 +4209,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4209
4209
|
}, kn = {
|
|
4210
4210
|
key: 0,
|
|
4211
4211
|
class: "docx-menu-dropdown__submenu"
|
|
4212
|
-
}, An = /*#__PURE__*/
|
|
4212
|
+
}, An = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4213
4213
|
__name: "MenuDropdown",
|
|
4214
4214
|
props: {
|
|
4215
4215
|
label: {},
|
|
@@ -4242,7 +4242,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4242
4242
|
disabled: e.disabled,
|
|
4243
4243
|
onMousedown: m[0] ||= L(() => {}, ["prevent"]),
|
|
4244
4244
|
onClick: L(t, ["prevent"])
|
|
4245
|
-
}, [c(T(e.label) + " ", 1), e.showChevron ? (y(), i(
|
|
4245
|
+
}, [c(T(e.label) + " ", 1), e.showChevron ? (y(), i(U, {
|
|
4246
4246
|
key: 0,
|
|
4247
4247
|
name: "arrow_drop_down",
|
|
4248
4248
|
size: 16
|
|
@@ -4261,14 +4261,14 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4261
4261
|
disabled: e.disabled,
|
|
4262
4262
|
onClick: L((t) => f(e), ["prevent"])
|
|
4263
4263
|
}, [
|
|
4264
|
-
e.icon ? (y(), i(
|
|
4264
|
+
e.icon ? (y(), i(U, {
|
|
4265
4265
|
key: 0,
|
|
4266
4266
|
name: e.icon,
|
|
4267
4267
|
size: 18
|
|
4268
4268
|
}, null, 8, ["name"])) : a("", !0),
|
|
4269
4269
|
s("span", En, T(e.label), 1),
|
|
4270
4270
|
e.shortcut ? (y(), o("span", Dn, T(e.shortcut), 1)) : a("", !0),
|
|
4271
|
-
e.submenu ? (y(), o("span", On, [l(
|
|
4271
|
+
e.submenu ? (y(), o("span", On, [l(U, {
|
|
4272
4272
|
name: "keyboard_arrow_right",
|
|
4273
4273
|
size: 16
|
|
4274
4274
|
})])) : a("", !0)
|
|
@@ -4283,7 +4283,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4283
4283
|
"aria-current",
|
|
4284
4284
|
"title",
|
|
4285
4285
|
"onMousedown"
|
|
4286
|
-
], Nn = /*#__PURE__*/
|
|
4286
|
+
], Nn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4287
4287
|
__name: "OutlineRail",
|
|
4288
4288
|
props: {
|
|
4289
4289
|
items: {},
|
|
@@ -4315,7 +4315,7 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4315
4315
|
key: 0,
|
|
4316
4316
|
disabled: "",
|
|
4317
4317
|
value: ""
|
|
4318
|
-
}, In = ["disabled", "value"], Ln = /*#__PURE__*/
|
|
4318
|
+
}, In = ["disabled", "value"], Ln = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4319
4319
|
__name: "Select",
|
|
4320
4320
|
props: {
|
|
4321
4321
|
value: {},
|
|
@@ -4342,13 +4342,13 @@ var Ut = "en", Wt = (e) => Ht({
|
|
|
4342
4342
|
}, T(e.label), 9, In))), 128))], 42, Pn));
|
|
4343
4343
|
}
|
|
4344
4344
|
}), [["__scopeId", "data-v-ce79245b"]]), Rn = {
|
|
4345
|
-
Button:
|
|
4345
|
+
Button: Kt,
|
|
4346
4346
|
Dialog: _n,
|
|
4347
4347
|
Select: Ln,
|
|
4348
4348
|
Menu: An,
|
|
4349
4349
|
Popover: xn,
|
|
4350
4350
|
Input: yn,
|
|
4351
|
-
Checkbox:
|
|
4351
|
+
Checkbox: Jt,
|
|
4352
4352
|
ColorPicker: pn,
|
|
4353
4353
|
DatePickerPopover: hn,
|
|
4354
4354
|
OutlineRail: Nn
|
|
@@ -4377,7 +4377,7 @@ var Hn = u({
|
|
|
4377
4377
|
}), Un = { class: "find-replace-dialog__header" }, Wn = { class: "find-replace-dialog__title" }, Gn = { class: "find-replace-dialog__body" }, Kn = { class: "find-replace-dialog__row" }, qn = { class: "find-replace-dialog__count" }, Jn = { class: "find-replace-dialog__options" }, Yn = {
|
|
4378
4378
|
key: 0,
|
|
4379
4379
|
class: "find-replace-dialog__row"
|
|
4380
|
-
}, Xn = /*#__PURE__*/
|
|
4380
|
+
}, Xn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4381
4381
|
__name: "FindReplaceDialog",
|
|
4382
4382
|
props: {
|
|
4383
4383
|
isOpen: { type: Boolean },
|
|
@@ -4386,21 +4386,21 @@ var Hn = u({
|
|
|
4386
4386
|
},
|
|
4387
4387
|
emits: ["close"],
|
|
4388
4388
|
setup(t, { emit: n }) {
|
|
4389
|
-
let { t: i } = Z(), { Button: u, Input: d, Checkbox: p } = Q(), g = t, _ = n, v = S(null), b = S(!1), { searchText: x, replaceText: C, options: w, matches: D, currentIndex: k, performSearch: A, findNext: j, findPrevious: M, replaceCurrent: F, replaceAll:
|
|
4389
|
+
let { t: i } = Z(), { Button: u, Input: d, Checkbox: p } = Q(), g = t, _ = n, v = S(null), b = S(!1), { searchText: x, replaceText: C, options: w, matches: D, currentIndex: k, performSearch: A, findNext: j, findPrevious: M, replaceCurrent: F, replaceAll: R, clear: ee } = e({
|
|
4390
4390
|
editorView: E(g, "view"),
|
|
4391
4391
|
scrollVisiblePositionIntoView: (e) => g.scrollVisiblePositionIntoView?.(e)
|
|
4392
|
-
}),
|
|
4392
|
+
}), z = E(w, "matchCase"), te = E(w, "matchWholeWord"), ne = r(() => x.value.trim() ? D.value.length === 0 ? i("findReplace.noResults") : k.value < 0 ? i("dialogs.findReplace.matchesFound", { total: D.value.length }) : i("findReplace.matchCounter", {
|
|
4393
4393
|
current: k.value + 1,
|
|
4394
4394
|
total: D.value.length
|
|
4395
4395
|
}) : "");
|
|
4396
4396
|
N(() => g.isOpen, async (e) => {
|
|
4397
|
-
e ? (await m(), v.value?.focus(), v.value?.select(), A()) :
|
|
4397
|
+
e ? (await m(), v.value?.focus(), v.value?.select(), A()) : ee();
|
|
4398
4398
|
});
|
|
4399
|
-
function
|
|
4400
|
-
|
|
4399
|
+
function re() {
|
|
4400
|
+
ee(), _("close");
|
|
4401
4401
|
}
|
|
4402
|
-
function
|
|
4403
|
-
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? M() : j()) : e.key === "Escape" &&
|
|
4402
|
+
function ie(e) {
|
|
4403
|
+
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? M() : j()) : e.key === "Escape" && re();
|
|
4404
4404
|
}
|
|
4405
4405
|
return (e, n) => t.isOpen ? (y(), o("div", {
|
|
4406
4406
|
key: 0,
|
|
@@ -4412,7 +4412,7 @@ var Hn = u({
|
|
|
4412
4412
|
class: "find-replace-dialog__close",
|
|
4413
4413
|
variant: "ghost",
|
|
4414
4414
|
size: "icon-xs",
|
|
4415
|
-
onClick:
|
|
4415
|
+
onClick: re,
|
|
4416
4416
|
title: O(i)("findReplace.close")
|
|
4417
4417
|
}, {
|
|
4418
4418
|
default: P(() => [...n[7] ||= [c(" ✕ ", -1)]]),
|
|
@@ -4428,7 +4428,7 @@ var Hn = u({
|
|
|
4428
4428
|
"data-testid": "find-input",
|
|
4429
4429
|
placeholder: O(i)("findReplace.findPlaceholder"),
|
|
4430
4430
|
"aria-label": O(i)("findReplace.findText"),
|
|
4431
|
-
onKeydown:
|
|
4431
|
+
onKeydown: ie,
|
|
4432
4432
|
onInput: O(A)
|
|
4433
4433
|
}, null, 8, [
|
|
4434
4434
|
"modelValue",
|
|
@@ -4436,7 +4436,7 @@ var Hn = u({
|
|
|
4436
4436
|
"aria-label",
|
|
4437
4437
|
"onInput"
|
|
4438
4438
|
]),
|
|
4439
|
-
s("span", qn, T(
|
|
4439
|
+
s("span", qn, T(ne.value), 1),
|
|
4440
4440
|
l(O(u), {
|
|
4441
4441
|
variant: "ghost",
|
|
4442
4442
|
size: "icon-xs",
|
|
@@ -4458,15 +4458,15 @@ var Hn = u({
|
|
|
4458
4458
|
]),
|
|
4459
4459
|
s("div", Jn, [
|
|
4460
4460
|
s("label", null, [l(O(p), {
|
|
4461
|
-
checked:
|
|
4461
|
+
checked: z.value,
|
|
4462
4462
|
"onUpdate:checked": n[1] ||= (e) => {
|
|
4463
|
-
|
|
4463
|
+
z.value = e, O(A)();
|
|
4464
4464
|
}
|
|
4465
4465
|
}, null, 8, ["checked"]), c(" " + T(O(i)("findReplace.matchCase")), 1)]),
|
|
4466
4466
|
s("label", null, [l(O(p), {
|
|
4467
|
-
checked:
|
|
4467
|
+
checked: te.value,
|
|
4468
4468
|
"onUpdate:checked": n[2] ||= (e) => {
|
|
4469
|
-
|
|
4469
|
+
te.value = e, O(A)();
|
|
4470
4470
|
}
|
|
4471
4471
|
}, null, 8, ["checked"]), c(" " + T(O(i)("findReplace.wholeWords")), 1)]),
|
|
4472
4472
|
l(O(u), {
|
|
@@ -4511,7 +4511,7 @@ var Hn = u({
|
|
|
4511
4511
|
size: "xs",
|
|
4512
4512
|
"data-testid": "replace-all",
|
|
4513
4513
|
title: O(i)("findReplace.replaceAll"),
|
|
4514
|
-
onMousedown: L(O(
|
|
4514
|
+
onMousedown: L(O(R), ["prevent"])
|
|
4515
4515
|
}, {
|
|
4516
4516
|
default: P(() => [c(T(O(i)("findReplace.replaceAll")), 1)]),
|
|
4517
4517
|
_: 1
|
|
@@ -4539,7 +4539,7 @@ var Hn = u({
|
|
|
4539
4539
|
}, lr = {
|
|
4540
4540
|
key: 2,
|
|
4541
4541
|
class: "field"
|
|
4542
|
-
}, ur = { class: "field__label" }, dr = ["onKeydown"], fr = { value: "" }, pr = ["value"], mr = { class: "field" }, hr = { class: "field__label" }, gr = ["placeholder"], _r = { class: "field__hint" }, vr = { class: "field" }, yr = { class: "field__label" }, br = ["placeholder"], xr = { class: "dialog__actions" }, Sr = ["disabled"], Cr = /*#__PURE__*/
|
|
4542
|
+
}, ur = { class: "field__label" }, dr = ["onKeydown"], fr = { value: "" }, pr = ["value"], mr = { class: "field" }, hr = { class: "field__label" }, gr = ["placeholder"], _r = { class: "field__hint" }, vr = { class: "field" }, yr = { class: "field__label" }, br = ["placeholder"], xr = { class: "dialog__actions" }, Sr = ["disabled"], Cr = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4543
4543
|
__name: "HyperlinkDialog",
|
|
4544
4544
|
props: {
|
|
4545
4545
|
isOpen: { type: Boolean },
|
|
@@ -4589,7 +4589,7 @@ var Hn = u({
|
|
|
4589
4589
|
function P() {
|
|
4590
4590
|
l("close");
|
|
4591
4591
|
}
|
|
4592
|
-
function
|
|
4592
|
+
function R() {
|
|
4593
4593
|
if (f.value === "bookmark") {
|
|
4594
4594
|
if (!g.value) return;
|
|
4595
4595
|
l("submit", {
|
|
@@ -4609,7 +4609,7 @@ var Hn = u({
|
|
|
4609
4609
|
tooltip: v.value
|
|
4610
4610
|
}), P();
|
|
4611
4611
|
}
|
|
4612
|
-
function
|
|
4612
|
+
function ee() {
|
|
4613
4613
|
if (f.value === "url") {
|
|
4614
4614
|
if (w.value = !0, !p.value.trim()) {
|
|
4615
4615
|
x.value = "";
|
|
@@ -4618,7 +4618,7 @@ var Hn = u({
|
|
|
4618
4618
|
x.value = k(p.value) ? "" : i("dialogs.hyperlink.invalidUrl");
|
|
4619
4619
|
}
|
|
4620
4620
|
}
|
|
4621
|
-
function
|
|
4621
|
+
function z() {
|
|
4622
4622
|
l("remove"), P();
|
|
4623
4623
|
}
|
|
4624
4624
|
return (n, r) => e.isOpen ? (y(), o("div", {
|
|
@@ -4654,8 +4654,8 @@ var Hn = u({
|
|
|
4654
4654
|
class: h(["field__input", { "field__input--error": w.value && !!x.value }]),
|
|
4655
4655
|
placeholder: O(i)("dialogs.hyperlink.urlPlaceholder"),
|
|
4656
4656
|
"aria-invalid": w.value && !!x.value,
|
|
4657
|
-
onKeydown: I(L(
|
|
4658
|
-
onBlur:
|
|
4657
|
+
onKeydown: I(L(R, ["prevent"]), ["enter"]),
|
|
4658
|
+
onBlur: ee
|
|
4659
4659
|
}, null, 42, or), [[M, p.value]]),
|
|
4660
4660
|
w.value && x.value ? (y(), o("div", sr, T(x.value), 1)) : (y(), o("div", cr, T(O(i)("dialogs.hyperlink.urlHint")), 1))
|
|
4661
4661
|
])) : (y(), o("div", lr, [s("label", ur, T(O(i)("dialogs.hyperlink.bookmarkLabel")), 1), F(s("select", {
|
|
@@ -4663,7 +4663,7 @@ var Hn = u({
|
|
|
4663
4663
|
ref: d,
|
|
4664
4664
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e,
|
|
4665
4665
|
class: "field__input",
|
|
4666
|
-
onKeydown: I(L(
|
|
4666
|
+
onKeydown: I(L(R, ["prevent"]), ["enter"])
|
|
4667
4667
|
}, [s("option", fr, T(O(i)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (y(!0), o(t, null, C(E.value, (e) => (y(), o("option", {
|
|
4668
4668
|
key: e.name,
|
|
4669
4669
|
value: e.name
|
|
@@ -4686,7 +4686,7 @@ var Hn = u({
|
|
|
4686
4686
|
b.value ? (y(), o("button", {
|
|
4687
4687
|
key: 0,
|
|
4688
4688
|
class: "dialog__btn dialog__btn--danger",
|
|
4689
|
-
onMousedown: L(
|
|
4689
|
+
onMousedown: L(z, ["prevent"])
|
|
4690
4690
|
}, T(O(i)("dialogs.hyperlink.removeLink")), 33)) : a("", !0),
|
|
4691
4691
|
r[8] ||= s("div", { style: { flex: "1" } }, null, -1),
|
|
4692
4692
|
s("button", {
|
|
@@ -4695,13 +4695,13 @@ var Hn = u({
|
|
|
4695
4695
|
}, T(O(i)("common.cancel")), 1),
|
|
4696
4696
|
s("button", {
|
|
4697
4697
|
class: "dialog__btn dialog__btn--primary",
|
|
4698
|
-
onMousedown: L(
|
|
4698
|
+
onMousedown: L(R, ["prevent"]),
|
|
4699
4699
|
disabled: !D.value
|
|
4700
4700
|
}, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41, Sr)
|
|
4701
4701
|
])
|
|
4702
4702
|
])], 32)], 32)) : a("", !0);
|
|
4703
4703
|
}
|
|
4704
|
-
}), [["__scopeId", "data-v-3078565e"]]), wr = { class: "dialog__header" }, Tr = { class: "dialog__title" }, Er = ["aria-label"], Dr = { class: "dialog__body" }, Or = { class: "field" }, kr = { class: "field__label" }, Ar = ["placeholder"], jr = { class: "field" }, Mr = { class: "field__label" }, Nr = { value: "inline" }, Pr = { value: "wrapRight" }, Fr = { value: "wrapLeft" }, Ir = { value: "topAndBottom" }, Lr = { value: "behind" }, Rr = { value: "inFront" }, zr = { class: "field" }, Br = { class: "field__label" }, Vr = { class: "field-row" }, Hr = { value: "solid" }, Ur = { value: "dashed" }, Wr = { value: "dotted" }, Gr = { value: "double" }, Kr = { class: "field" }, qr = { class: "field__label" }, Jr = { class: "field-row" }, Yr = ["value"], Xr = ["value"], Zr = { class: "field__checkbox" }, Qr = { class: "dialog__actions" }, $r = /*#__PURE__*/
|
|
4704
|
+
}), [["__scopeId", "data-v-3078565e"]]), wr = { class: "dialog__header" }, Tr = { class: "dialog__title" }, Er = ["aria-label"], Dr = { class: "dialog__body" }, Or = { class: "field" }, kr = { class: "field__label" }, Ar = ["placeholder"], jr = { class: "field" }, Mr = { class: "field__label" }, Nr = { value: "inline" }, Pr = { value: "wrapRight" }, Fr = { value: "wrapLeft" }, Ir = { value: "topAndBottom" }, Lr = { value: "behind" }, Rr = { value: "inFront" }, zr = { class: "field" }, Br = { class: "field__label" }, Vr = { class: "field-row" }, Hr = { value: "solid" }, Ur = { value: "dashed" }, Wr = { value: "dotted" }, Gr = { value: "double" }, Kr = { class: "field" }, qr = { class: "field__label" }, Jr = { class: "field-row" }, Yr = ["value"], Xr = ["value"], Zr = { class: "field__checkbox" }, Qr = { class: "dialog__actions" }, $r = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4705
4705
|
__name: "ImagePropertiesDialog",
|
|
4706
4706
|
props: {
|
|
4707
4707
|
isOpen: { type: Boolean },
|
|
@@ -4900,13 +4900,13 @@ var Hn = u({
|
|
|
4900
4900
|
}, di = { class: "symbol-preview__char" }, fi = { class: "symbol-preview__info" }, pi = {
|
|
4901
4901
|
key: 2,
|
|
4902
4902
|
class: "symbol-recent"
|
|
4903
|
-
}, mi = { class: "symbol-recent__label" }, hi = ["onDblclick", "onClick"], gi = { class: "dialog__actions" }, _i = ["disabled"], vi = /*#__PURE__*/
|
|
4903
|
+
}, mi = { class: "symbol-recent__label" }, hi = ["onDblclick", "onClick"], gi = { class: "dialog__actions" }, _i = ["disabled"], vi = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4904
4904
|
__name: "InsertSymbolDialog",
|
|
4905
4905
|
props: { isOpen: { type: Boolean } },
|
|
4906
4906
|
emits: ["close", "insert"],
|
|
4907
4907
|
setup(e, { emit: n }) {
|
|
4908
|
-
let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ =
|
|
4909
|
-
if (d.value) return
|
|
4908
|
+
let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ = re, v = r(() => {
|
|
4909
|
+
if (d.value) return ie(d.value);
|
|
4910
4910
|
let e = _.find((e) => e.name === f.value);
|
|
4911
4911
|
return e ? e.symbols.map((t) => Object.assign({}, t, { category: e.name })) : [];
|
|
4912
4912
|
});
|
|
@@ -4972,7 +4972,7 @@ var Hn = u({
|
|
|
4972
4972
|
}), [["__scopeId", "data-v-dc4046d2"]]), yi = { class: "ps-header" }, bi = { class: "ps-body" }, xi = { class: "ps-section-label" }, Si = { class: "ps-row" }, Ci = { class: "ps-label" }, wi = ["value"], Ti = ["value"], Ei = {
|
|
4973
4973
|
key: 0,
|
|
4974
4974
|
value: -1
|
|
4975
|
-
}, Di = { class: "ps-row" }, Oi = { class: "ps-label" }, ki = ["value"], Ai = { value: "portrait" }, ji = { value: "landscape" }, Mi = { class: "ps-section-label ps-section-label--spaced" }, Ni = { class: "ps-row" }, Pi = { class: "ps-label" }, Fi = { class: "ps-row" }, Ii = { class: "ps-label" }, Li = { class: "ps-row" }, Ri = { class: "ps-label" }, zi = { class: "ps-row" }, Bi = { class: "ps-label" }, Vi = { class: "ps-footer" }, Hi = 12240, Ui = 15840, Wi = 1440, Gi = /*#__PURE__*/
|
|
4975
|
+
}, Di = { class: "ps-row" }, Oi = { class: "ps-label" }, ki = ["value"], Ai = { value: "portrait" }, ji = { value: "landscape" }, Mi = { class: "ps-section-label ps-section-label--spaced" }, Ni = { class: "ps-row" }, Pi = { class: "ps-label" }, Fi = { class: "ps-row" }, Ii = { class: "ps-label" }, Li = { class: "ps-row" }, Ri = { class: "ps-label" }, zi = { class: "ps-row" }, Bi = { class: "ps-label" }, Vi = { class: "ps-footer" }, Hi = 12240, Ui = 15840, Wi = 1440, Gi = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4976
4976
|
__name: "PageSetupDialog",
|
|
4977
4977
|
props: {
|
|
4978
4978
|
isOpen: { type: Boolean },
|
|
@@ -5018,10 +5018,10 @@ var Hn = u({
|
|
|
5018
5018
|
}
|
|
5019
5019
|
], d = e, f = n, p = S(Hi), m = S(Ui), h = S("portrait"), g = S(1), _ = S(1), v = S(1), b = S(1);
|
|
5020
5020
|
function x(e) {
|
|
5021
|
-
return Math.round(e /
|
|
5021
|
+
return Math.round(e / B * 100) / 100;
|
|
5022
5022
|
}
|
|
5023
5023
|
function w(e) {
|
|
5024
|
-
return Math.round((Number(e) || 0) *
|
|
5024
|
+
return Math.round((Number(e) || 0) * B);
|
|
5025
5025
|
}
|
|
5026
5026
|
let E = r(() => {
|
|
5027
5027
|
let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
|
|
@@ -5171,82 +5171,334 @@ var Hn = u({
|
|
|
5171
5171
|
_: 1
|
|
5172
5172
|
}, 8, ["open", "aria-label"]));
|
|
5173
5173
|
}
|
|
5174
|
-
}), [["__scopeId", "data-v-1e078cda"]]), Ki = { class: "
|
|
5175
|
-
|
|
5174
|
+
}), [["__scopeId", "data-v-1e078cda"]]), Ki = { class: "tpd-dialog__header" }, qi = { class: "tpd-dialog__body" }, Ji = { class: "tpd-row" }, Yi = { class: "tpd-label" }, Xi = { value: "auto" }, Zi = { value: "dxa" }, Qi = { value: "pct" }, $i = {
|
|
5175
|
+
key: 0,
|
|
5176
|
+
class: "tpd-row"
|
|
5177
|
+
}, ea = { class: "tpd-label" }, ta = ["step"], na = { class: "tpd-unit" }, ra = { class: "tpd-row" }, ia = { class: "tpd-label" }, aa = { value: "left" }, oa = { value: "center" }, sa = { value: "right" }, ca = { class: "tpd-dialog__footer" }, la = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5178
|
+
__name: "TablePropertiesDialog",
|
|
5176
5179
|
props: {
|
|
5177
5180
|
isOpen: { type: Boolean },
|
|
5178
|
-
|
|
5179
|
-
endnotePr: {}
|
|
5181
|
+
currentProps: {}
|
|
5180
5182
|
},
|
|
5181
5183
|
emits: ["close", "apply"],
|
|
5182
|
-
setup(e, { emit:
|
|
5183
|
-
let { t:
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
value: "lowerLetter",
|
|
5190
|
-
label: a("dialogs.footnoteProperties.formats.lowerAlpha")
|
|
5191
|
-
},
|
|
5192
|
-
{
|
|
5193
|
-
value: "upperLetter",
|
|
5194
|
-
label: a("dialogs.footnoteProperties.formats.upperAlpha")
|
|
5195
|
-
},
|
|
5196
|
-
{
|
|
5197
|
-
value: "lowerRoman",
|
|
5198
|
-
label: a("dialogs.footnoteProperties.formats.lowerRoman")
|
|
5199
|
-
},
|
|
5200
|
-
{
|
|
5201
|
-
value: "upperRoman",
|
|
5202
|
-
label: a("dialogs.footnoteProperties.formats.upperRoman")
|
|
5203
|
-
},
|
|
5204
|
-
{
|
|
5205
|
-
value: "chicago",
|
|
5206
|
-
label: a("dialogs.footnoteProperties.formats.symbols")
|
|
5207
|
-
}
|
|
5208
|
-
]), f = S("pageBottom"), p = S("decimal"), m = S(1), h = S("continuous"), g = S("docEnd"), _ = S("lowerRoman"), v = S(1), b = S("continuous");
|
|
5209
|
-
N(() => l.isOpen, (e) => {
|
|
5210
|
-
e && (f.value = l.footnotePr?.position ?? "pageBottom", p.value = l.footnotePr?.numFmt ?? "decimal", m.value = l.footnotePr?.numStart ?? 1, h.value = l.footnotePr?.numRestart ?? "continuous", g.value = l.endnotePr?.position ?? "docEnd", _.value = l.endnotePr?.numFmt ?? "lowerRoman", v.value = l.endnotePr?.numStart ?? 1, b.value = l.endnotePr?.numRestart ?? "continuous");
|
|
5184
|
+
setup(e, { emit: t }) {
|
|
5185
|
+
let { t: n } = Z(), { Dialog: r } = Q(), c = e, l = t, u = S(0), d = S("auto"), f = S("left");
|
|
5186
|
+
function p(e) {
|
|
5187
|
+
return e === "center" || e === "right" ? e : "left";
|
|
5188
|
+
}
|
|
5189
|
+
N(() => c.isOpen, (e) => {
|
|
5190
|
+
e && (u.value = c.currentProps?.width ?? 0, d.value = c.currentProps?.widthType ?? "auto", f.value = p(c.currentProps?.justification));
|
|
5211
5191
|
});
|
|
5212
|
-
function
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
}), u("close");
|
|
5192
|
+
function m() {
|
|
5193
|
+
let e = d.value === "auto" ? {
|
|
5194
|
+
justification: f.value,
|
|
5195
|
+
width: null,
|
|
5196
|
+
widthType: "auto"
|
|
5197
|
+
} : {
|
|
5198
|
+
justification: f.value,
|
|
5199
|
+
width: u.value,
|
|
5200
|
+
widthType: d.value
|
|
5201
|
+
};
|
|
5202
|
+
l("apply", e), l("close");
|
|
5224
5203
|
}
|
|
5225
|
-
return (
|
|
5204
|
+
return (t, c) => (y(), i(O(r), {
|
|
5226
5205
|
open: e.isOpen,
|
|
5227
|
-
"aria-label": O(
|
|
5206
|
+
"aria-label": O(n)("dialogs.tableProperties.title"),
|
|
5228
5207
|
style: {
|
|
5229
|
-
|
|
5230
|
-
maxWidth: "
|
|
5208
|
+
minWidth: "360px",
|
|
5209
|
+
maxWidth: "440px",
|
|
5210
|
+
width: "100%"
|
|
5231
5211
|
},
|
|
5232
|
-
onClose:
|
|
5212
|
+
onClose: c[4] ||= (e) => t.$emit("close"),
|
|
5213
|
+
onKeydown: I(m, ["enter"])
|
|
5233
5214
|
}, {
|
|
5234
5215
|
default: P(() => [
|
|
5235
|
-
s("div", Ki, T(O(
|
|
5236
|
-
s("div", qi, [
|
|
5237
|
-
s("
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
"
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5216
|
+
s("div", Ki, T(O(n)("dialogs.tableProperties.title")), 1),
|
|
5217
|
+
s("div", qi, [
|
|
5218
|
+
s("div", Ji, [s("label", Yi, T(O(n)("dialogs.tableProperties.widthType")), 1), F(s("select", {
|
|
5219
|
+
"onUpdate:modelValue": c[0] ||= (e) => d.value = e,
|
|
5220
|
+
class: "tpd-select"
|
|
5221
|
+
}, [
|
|
5222
|
+
s("option", Xi, T(O(n)("dialogs.tableProperties.widthTypes.auto")), 1),
|
|
5223
|
+
s("option", Zi, T(O(n)("dialogs.tableProperties.widthTypes.fixed")), 1),
|
|
5224
|
+
s("option", Qi, T(O(n)("dialogs.tableProperties.widthTypes.percentage")), 1)
|
|
5225
|
+
], 512), [[j, d.value]])]),
|
|
5226
|
+
d.value === "auto" ? a("", !0) : (y(), o("div", $i, [
|
|
5227
|
+
s("label", ea, T(O(n)("dialogs.tableProperties.widthLabel")), 1),
|
|
5228
|
+
F(s("input", {
|
|
5229
|
+
"onUpdate:modelValue": c[1] ||= (e) => u.value = e,
|
|
5230
|
+
type: "number",
|
|
5231
|
+
class: "tpd-input",
|
|
5232
|
+
min: 0,
|
|
5233
|
+
step: d.value === "pct" ? 5 : 100
|
|
5234
|
+
}, null, 8, ta), [[
|
|
5235
|
+
M,
|
|
5236
|
+
u.value,
|
|
5237
|
+
void 0,
|
|
5238
|
+
{ number: !0 }
|
|
5239
|
+
]]),
|
|
5240
|
+
s("span", na, T(d.value === "pct" ? O(n)("dialogs.tableProperties.units.fiftiethsPercent") : O(n)("dialogs.tableProperties.units.twips")), 1)
|
|
5241
|
+
])),
|
|
5242
|
+
s("div", ra, [s("label", ia, T(O(n)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
|
|
5243
|
+
"onUpdate:modelValue": c[2] ||= (e) => f.value = e,
|
|
5244
|
+
class: "tpd-select"
|
|
5245
|
+
}, [
|
|
5246
|
+
s("option", aa, T(O(n)("dialogs.tableProperties.alignOptions.left")), 1),
|
|
5247
|
+
s("option", oa, T(O(n)("dialogs.tableProperties.alignOptions.center")), 1),
|
|
5248
|
+
s("option", sa, T(O(n)("dialogs.tableProperties.alignOptions.right")), 1)
|
|
5249
|
+
], 512), [[j, f.value]])])
|
|
5250
|
+
]),
|
|
5251
|
+
s("div", ca, [s("button", {
|
|
5252
|
+
class: "tpd-btn",
|
|
5253
|
+
onClick: c[3] ||= (e) => t.$emit("close")
|
|
5254
|
+
}, T(O(n)("common.cancel")), 1), s("button", {
|
|
5255
|
+
class: "tpd-btn tpd-btn--primary",
|
|
5256
|
+
onClick: m
|
|
5257
|
+
}, T(O(n)("common.apply")), 1)])
|
|
5258
|
+
]),
|
|
5259
|
+
_: 1
|
|
5260
|
+
}, 8, ["open", "aria-label"]));
|
|
5261
|
+
}
|
|
5262
|
+
}), [["__scopeId", "data-v-6e0fd92d"]]), ua = { class: "dialog__body" }, da = { class: "field" }, fa = {
|
|
5263
|
+
key: 0,
|
|
5264
|
+
class: "grid"
|
|
5265
|
+
}, pa = { class: "field field--wide" }, ma = { class: "field" }, ha = { class: "field" }, ga = { class: "field" }, _a = { class: "check" }, va = {
|
|
5266
|
+
key: 1,
|
|
5267
|
+
class: "grid"
|
|
5268
|
+
}, ya = { class: "field field--wide" }, ba = { class: "field field--wide" }, xa = { class: "field" }, Sa = { class: "check" }, Ca = { class: "check field--wide" }, wa = { class: "dialog__footer" }, Ta = ["disabled"], Ea = "#C0C0C0", Da = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5269
|
+
__name: "WatermarkDialog",
|
|
5270
|
+
props: {
|
|
5271
|
+
isOpen: { type: Boolean },
|
|
5272
|
+
currentWatermark: {}
|
|
5273
|
+
},
|
|
5274
|
+
emits: ["close", "apply"],
|
|
5275
|
+
setup(e, { emit: t }) {
|
|
5276
|
+
let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(Ea), m = S(!0), h = S(50), g = S(""), _ = S(""), v = S(!1), b = S(100), x = S(!0), C = r(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0);
|
|
5277
|
+
N([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
|
|
5278
|
+
if (e) {
|
|
5279
|
+
if (!t) {
|
|
5280
|
+
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = Ea, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0;
|
|
5281
|
+
return;
|
|
5282
|
+
}
|
|
5283
|
+
if (u.value = t.kind, t.kind === "text") {
|
|
5284
|
+
d.value = t.text, f.value = t.font ?? "Calibri", p.value = A(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100);
|
|
5285
|
+
return;
|
|
5286
|
+
}
|
|
5287
|
+
g.value = t.imageRId, _.value = t.imageTarget ?? "", v.value = t.imageTargetExternal ?? !1, b.value = Math.round((t.scale ?? 1) * 100), x.value = t.washout ?? !0;
|
|
5288
|
+
}
|
|
5289
|
+
}, { immediate: !0 });
|
|
5290
|
+
function w() {
|
|
5291
|
+
if (C.value) {
|
|
5292
|
+
if (u.value === "none") {
|
|
5293
|
+
l("apply", void 0), l("close");
|
|
5294
|
+
return;
|
|
5295
|
+
}
|
|
5296
|
+
if (u.value === "text") {
|
|
5297
|
+
l("apply", {
|
|
5298
|
+
kind: "text",
|
|
5299
|
+
text: d.value.trim(),
|
|
5300
|
+
...f.value.trim() ? { font: f.value.trim() } : {},
|
|
5301
|
+
color: D(p.value),
|
|
5302
|
+
diagonal: m.value,
|
|
5303
|
+
opacity: T(h.value) / 100
|
|
5304
|
+
}), l("close");
|
|
5305
|
+
return;
|
|
5306
|
+
}
|
|
5307
|
+
l("apply", {
|
|
5308
|
+
kind: "picture",
|
|
5309
|
+
imageRId: g.value.trim(),
|
|
5310
|
+
..._.value.trim() ? { imageTarget: _.value.trim() } : {},
|
|
5311
|
+
..._.value.trim() ? { imageTargetExternal: v.value } : {},
|
|
5312
|
+
scale: E(b.value) / 100,
|
|
5313
|
+
washout: x.value
|
|
5314
|
+
}), l("close");
|
|
5315
|
+
}
|
|
5316
|
+
}
|
|
5317
|
+
function T(e) {
|
|
5318
|
+
return Math.min(100, Math.max(0, e));
|
|
5319
|
+
}
|
|
5320
|
+
function E(e) {
|
|
5321
|
+
return Math.min(300, Math.max(1, e));
|
|
5322
|
+
}
|
|
5323
|
+
function D(e) {
|
|
5324
|
+
return e.startsWith("#") ? e.slice(1) : e;
|
|
5325
|
+
}
|
|
5326
|
+
function A(e) {
|
|
5327
|
+
return !e || e === "auto" ? Ea : e.startsWith("#") ? e : `#${e}`;
|
|
5328
|
+
}
|
|
5329
|
+
return (t, r) => (y(), i(O(n), {
|
|
5330
|
+
open: e.isOpen,
|
|
5331
|
+
"aria-label": "Watermark",
|
|
5332
|
+
style: {
|
|
5333
|
+
minWidth: "360px",
|
|
5334
|
+
maxWidth: "520px",
|
|
5335
|
+
width: "100%"
|
|
5336
|
+
},
|
|
5337
|
+
onClose: r[12] ||= (e) => t.$emit("close")
|
|
5338
|
+
}, {
|
|
5339
|
+
default: P(() => [
|
|
5340
|
+
r[25] ||= s("div", { class: "dialog__header" }, "Watermark", -1),
|
|
5341
|
+
s("div", ua, [
|
|
5342
|
+
s("label", da, [r[14] ||= s("span", { class: "field__label" }, "Type", -1), F(s("select", {
|
|
5343
|
+
"onUpdate:modelValue": r[0] ||= (e) => u.value = e,
|
|
5344
|
+
class: "field__input"
|
|
5345
|
+
}, [...r[13] ||= [
|
|
5346
|
+
s("option", { value: "text" }, "Text watermark", -1),
|
|
5347
|
+
s("option", { value: "picture" }, "Picture watermark", -1),
|
|
5348
|
+
s("option", { value: "none" }, "No watermark", -1)
|
|
5349
|
+
]], 512), [[j, u.value]])]),
|
|
5350
|
+
u.value === "text" ? (y(), o("div", fa, [
|
|
5351
|
+
s("label", pa, [r[15] ||= s("span", { class: "field__label" }, "Text", -1), F(s("input", {
|
|
5352
|
+
"onUpdate:modelValue": r[1] ||= (e) => d.value = e,
|
|
5353
|
+
class: "field__input"
|
|
5354
|
+
}, null, 512), [[M, d.value]])]),
|
|
5355
|
+
s("label", ma, [r[16] ||= s("span", { class: "field__label" }, "Font", -1), F(s("input", {
|
|
5356
|
+
"onUpdate:modelValue": r[2] ||= (e) => f.value = e,
|
|
5357
|
+
class: "field__input"
|
|
5358
|
+
}, null, 512), [[M, f.value]])]),
|
|
5359
|
+
s("label", ha, [r[17] ||= s("span", { class: "field__label" }, "Color", -1), F(s("input", {
|
|
5360
|
+
"onUpdate:modelValue": r[3] ||= (e) => p.value = e,
|
|
5361
|
+
class: "field__input field__input--color",
|
|
5362
|
+
type: "color"
|
|
5363
|
+
}, null, 512), [[M, p.value]])]),
|
|
5364
|
+
s("label", ga, [r[18] ||= s("span", { class: "field__label" }, "Opacity", -1), F(s("input", {
|
|
5365
|
+
"onUpdate:modelValue": r[4] ||= (e) => h.value = e,
|
|
5366
|
+
class: "field__input",
|
|
5367
|
+
max: "100",
|
|
5368
|
+
min: "0",
|
|
5369
|
+
type: "number"
|
|
5370
|
+
}, null, 512), [[
|
|
5371
|
+
M,
|
|
5372
|
+
h.value,
|
|
5373
|
+
void 0,
|
|
5374
|
+
{ number: !0 }
|
|
5375
|
+
]])]),
|
|
5376
|
+
s("label", _a, [F(s("input", {
|
|
5377
|
+
"onUpdate:modelValue": r[5] ||= (e) => m.value = e,
|
|
5378
|
+
type: "checkbox"
|
|
5379
|
+
}, null, 512), [[k, m.value]]), r[19] ||= s("span", null, "Diagonal", -1)])
|
|
5380
|
+
])) : a("", !0),
|
|
5381
|
+
u.value === "picture" ? (y(), o("div", va, [
|
|
5382
|
+
s("label", ya, [r[20] ||= s("span", { class: "field__label" }, "Header image relationship id", -1), F(s("input", {
|
|
5383
|
+
"onUpdate:modelValue": r[6] ||= (e) => g.value = e,
|
|
5384
|
+
class: "field__input",
|
|
5385
|
+
placeholder: "rId12"
|
|
5386
|
+
}, null, 512), [[M, g.value]])]),
|
|
5387
|
+
s("label", ba, [r[21] ||= s("span", { class: "field__label" }, "Image target", -1), F(s("input", {
|
|
5388
|
+
"onUpdate:modelValue": r[7] ||= (e) => _.value = e,
|
|
5389
|
+
class: "field__input",
|
|
5390
|
+
placeholder: "word/media/image1.png"
|
|
5391
|
+
}, null, 512), [[M, _.value]])]),
|
|
5392
|
+
s("label", xa, [r[22] ||= s("span", { class: "field__label" }, "Scale", -1), F(s("input", {
|
|
5393
|
+
"onUpdate:modelValue": r[8] ||= (e) => b.value = e,
|
|
5394
|
+
class: "field__input",
|
|
5395
|
+
max: "300",
|
|
5396
|
+
min: "1",
|
|
5397
|
+
type: "number"
|
|
5398
|
+
}, null, 512), [[
|
|
5399
|
+
M,
|
|
5400
|
+
b.value,
|
|
5401
|
+
void 0,
|
|
5402
|
+
{ number: !0 }
|
|
5403
|
+
]])]),
|
|
5404
|
+
s("label", Sa, [F(s("input", {
|
|
5405
|
+
"onUpdate:modelValue": r[9] ||= (e) => x.value = e,
|
|
5406
|
+
type: "checkbox"
|
|
5407
|
+
}, null, 512), [[k, x.value]]), r[23] ||= s("span", null, "Washout", -1)]),
|
|
5408
|
+
s("label", Ca, [F(s("input", {
|
|
5409
|
+
"onUpdate:modelValue": r[10] ||= (e) => v.value = e,
|
|
5410
|
+
type: "checkbox"
|
|
5411
|
+
}, null, 512), [[k, v.value]]), r[24] ||= s("span", null, "Target is an external URL", -1)])
|
|
5412
|
+
])) : a("", !0)
|
|
5413
|
+
]),
|
|
5414
|
+
s("div", wa, [s("button", {
|
|
5415
|
+
class: "dialog__btn",
|
|
5416
|
+
onClick: r[11] ||= (e) => t.$emit("close")
|
|
5417
|
+
}, "Cancel"), s("button", {
|
|
5418
|
+
class: "dialog__btn dialog__btn--primary",
|
|
5419
|
+
disabled: !C.value,
|
|
5420
|
+
onClick: w
|
|
5421
|
+
}, " Apply ", 8, Ta)])
|
|
5422
|
+
]),
|
|
5423
|
+
_: 1
|
|
5424
|
+
}, 8, ["open"]));
|
|
5425
|
+
}
|
|
5426
|
+
}), [["__scopeId", "data-v-1e6e7635"]]), Oa = { class: "fnpd-dialog__header" }, ka = { class: "fnpd-dialog__body" }, Aa = { class: "fnpd-fieldset" }, ja = { class: "fnpd-legend" }, Ma = { class: "fnpd-row" }, Na = { class: "fnpd-label" }, Pa = { value: "pageBottom" }, Fa = { value: "beneathText" }, Ia = { class: "fnpd-row" }, La = { class: "fnpd-label" }, Ra = ["value"], za = { class: "fnpd-row" }, Ba = { class: "fnpd-label" }, Va = { class: "fnpd-row" }, Ha = { class: "fnpd-label" }, Ua = { value: "continuous" }, Wa = { value: "eachSect" }, Ga = { value: "eachPage" }, Ka = { class: "fnpd-fieldset" }, qa = { class: "fnpd-legend" }, Ja = { class: "fnpd-row" }, Ya = { class: "fnpd-label" }, Xa = { value: "docEnd" }, Za = { value: "sectEnd" }, Qa = { class: "fnpd-row" }, $a = { class: "fnpd-label" }, eo = ["value"], to = { class: "fnpd-row" }, no = { class: "fnpd-label" }, ro = { class: "fnpd-row" }, io = { class: "fnpd-label" }, ao = { value: "continuous" }, oo = { value: "eachSect" }, so = { class: "fnpd-dialog__footer" }, co = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5427
|
+
__name: "FootnotePropertiesDialog",
|
|
5428
|
+
props: {
|
|
5429
|
+
isOpen: { type: Boolean },
|
|
5430
|
+
footnotePr: {},
|
|
5431
|
+
endnotePr: {}
|
|
5432
|
+
},
|
|
5433
|
+
emits: ["close", "apply"],
|
|
5434
|
+
setup(e, { emit: n }) {
|
|
5435
|
+
let { t: a } = Z(), { Dialog: c } = Q(), l = e, u = n, d = r(() => [
|
|
5436
|
+
{
|
|
5437
|
+
value: "decimal",
|
|
5438
|
+
label: a("dialogs.footnoteProperties.formats.decimal")
|
|
5439
|
+
},
|
|
5440
|
+
{
|
|
5441
|
+
value: "lowerLetter",
|
|
5442
|
+
label: a("dialogs.footnoteProperties.formats.lowerAlpha")
|
|
5443
|
+
},
|
|
5444
|
+
{
|
|
5445
|
+
value: "upperLetter",
|
|
5446
|
+
label: a("dialogs.footnoteProperties.formats.upperAlpha")
|
|
5447
|
+
},
|
|
5448
|
+
{
|
|
5449
|
+
value: "lowerRoman",
|
|
5450
|
+
label: a("dialogs.footnoteProperties.formats.lowerRoman")
|
|
5451
|
+
},
|
|
5452
|
+
{
|
|
5453
|
+
value: "upperRoman",
|
|
5454
|
+
label: a("dialogs.footnoteProperties.formats.upperRoman")
|
|
5455
|
+
},
|
|
5456
|
+
{
|
|
5457
|
+
value: "chicago",
|
|
5458
|
+
label: a("dialogs.footnoteProperties.formats.symbols")
|
|
5459
|
+
}
|
|
5460
|
+
]), f = S("pageBottom"), p = S("decimal"), m = S(1), h = S("continuous"), g = S("docEnd"), _ = S("lowerRoman"), v = S(1), b = S("continuous");
|
|
5461
|
+
N(() => l.isOpen, (e) => {
|
|
5462
|
+
e && (f.value = l.footnotePr?.position ?? "pageBottom", p.value = l.footnotePr?.numFmt ?? "decimal", m.value = l.footnotePr?.numStart ?? 1, h.value = l.footnotePr?.numRestart ?? "continuous", g.value = l.endnotePr?.position ?? "docEnd", _.value = l.endnotePr?.numFmt ?? "lowerRoman", v.value = l.endnotePr?.numStart ?? 1, b.value = l.endnotePr?.numRestart ?? "continuous");
|
|
5463
|
+
});
|
|
5464
|
+
function x() {
|
|
5465
|
+
u("apply", {
|
|
5466
|
+
position: f.value,
|
|
5467
|
+
numFmt: p.value,
|
|
5468
|
+
numStart: m.value,
|
|
5469
|
+
numRestart: h.value
|
|
5470
|
+
}, {
|
|
5471
|
+
position: g.value,
|
|
5472
|
+
numFmt: _.value,
|
|
5473
|
+
numStart: v.value,
|
|
5474
|
+
numRestart: b.value
|
|
5475
|
+
}), u("close");
|
|
5476
|
+
}
|
|
5477
|
+
return (n, r) => (y(), i(O(c), {
|
|
5478
|
+
open: e.isOpen,
|
|
5479
|
+
"aria-label": O(a)("dialogs.footnoteProperties.title"),
|
|
5480
|
+
style: {
|
|
5481
|
+
width: "440px",
|
|
5482
|
+
maxWidth: "90vw"
|
|
5483
|
+
},
|
|
5484
|
+
onClose: r[9] ||= (e) => n.$emit("close")
|
|
5485
|
+
}, {
|
|
5486
|
+
default: P(() => [
|
|
5487
|
+
s("div", Oa, T(O(a)("dialogs.footnoteProperties.title")), 1),
|
|
5488
|
+
s("div", ka, [s("fieldset", Aa, [
|
|
5489
|
+
s("legend", ja, T(O(a)("dialogs.footnoteProperties.footnotes")), 1),
|
|
5490
|
+
s("div", Ma, [s("label", Na, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
|
|
5491
|
+
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
5492
|
+
class: "fnpd-select"
|
|
5493
|
+
}, [s("option", Pa, T(O(a)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), s("option", Fa, T(O(a)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[j, f.value]])]),
|
|
5494
|
+
s("div", Ia, [s("label", La, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
|
|
5495
|
+
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
5496
|
+
class: "fnpd-select"
|
|
5497
|
+
}, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
|
|
5498
|
+
key: e.value,
|
|
5247
5499
|
value: e.value
|
|
5248
|
-
}, T(e.label), 9,
|
|
5249
|
-
s("div",
|
|
5500
|
+
}, T(e.label), 9, Ra))), 128))], 512), [[j, p.value]])]),
|
|
5501
|
+
s("div", za, [s("label", Ba, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
|
|
5250
5502
|
"onUpdate:modelValue": r[2] ||= (e) => m.value = e,
|
|
5251
5503
|
type: "number",
|
|
5252
5504
|
class: "fnpd-input",
|
|
@@ -5257,28 +5509,28 @@ var Hn = u({
|
|
|
5257
5509
|
void 0,
|
|
5258
5510
|
{ number: !0 }
|
|
5259
5511
|
]])]),
|
|
5260
|
-
s("div",
|
|
5512
|
+
s("div", Va, [s("label", Ha, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
|
|
5261
5513
|
"onUpdate:modelValue": r[3] ||= (e) => h.value = e,
|
|
5262
5514
|
class: "fnpd-select"
|
|
5263
5515
|
}, [
|
|
5264
|
-
s("option",
|
|
5265
|
-
s("option",
|
|
5266
|
-
s("option",
|
|
5516
|
+
s("option", Ua, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
|
|
5517
|
+
s("option", Wa, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
|
|
5518
|
+
s("option", Ga, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
|
|
5267
5519
|
], 512), [[j, h.value]])])
|
|
5268
|
-
]), s("fieldset",
|
|
5269
|
-
s("legend",
|
|
5270
|
-
s("div",
|
|
5520
|
+
]), s("fieldset", Ka, [
|
|
5521
|
+
s("legend", qa, T(O(a)("dialogs.footnoteProperties.endnotes")), 1),
|
|
5522
|
+
s("div", Ja, [s("label", Ya, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
|
|
5271
5523
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e,
|
|
5272
5524
|
class: "fnpd-select"
|
|
5273
|
-
}, [s("option",
|
|
5274
|
-
s("div",
|
|
5525
|
+
}, [s("option", Xa, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), s("option", Za, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[j, g.value]])]),
|
|
5526
|
+
s("div", Qa, [s("label", $a, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
|
|
5275
5527
|
"onUpdate:modelValue": r[5] ||= (e) => _.value = e,
|
|
5276
5528
|
class: "fnpd-select"
|
|
5277
5529
|
}, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
|
|
5278
5530
|
key: e.value,
|
|
5279
5531
|
value: e.value
|
|
5280
|
-
}, T(e.label), 9,
|
|
5281
|
-
s("div",
|
|
5532
|
+
}, T(e.label), 9, eo))), 128))], 512), [[j, _.value]])]),
|
|
5533
|
+
s("div", to, [s("label", no, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
|
|
5282
5534
|
"onUpdate:modelValue": r[6] ||= (e) => v.value = e,
|
|
5283
5535
|
type: "number",
|
|
5284
5536
|
class: "fnpd-input",
|
|
@@ -5289,12 +5541,12 @@ var Hn = u({
|
|
|
5289
5541
|
void 0,
|
|
5290
5542
|
{ number: !0 }
|
|
5291
5543
|
]])]),
|
|
5292
|
-
s("div",
|
|
5544
|
+
s("div", ro, [s("label", io, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
|
|
5293
5545
|
"onUpdate:modelValue": r[7] ||= (e) => b.value = e,
|
|
5294
5546
|
class: "fnpd-select"
|
|
5295
|
-
}, [s("option",
|
|
5547
|
+
}, [s("option", ao, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), s("option", oo, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[j, b.value]])])
|
|
5296
5548
|
])]),
|
|
5297
|
-
s("div",
|
|
5549
|
+
s("div", so, [s("button", {
|
|
5298
5550
|
class: "fnpd-btn",
|
|
5299
5551
|
onClick: r[8] ||= (e) => n.$emit("close")
|
|
5300
5552
|
}, T(O(a)("common.cancel")), 1), s("button", {
|
|
@@ -5305,25 +5557,25 @@ var Hn = u({
|
|
|
5305
5557
|
_: 1
|
|
5306
5558
|
}, 8, ["open", "aria-label"]));
|
|
5307
5559
|
}
|
|
5308
|
-
}), [["__scopeId", "data-v-86718c10"]]),
|
|
5560
|
+
}), [["__scopeId", "data-v-86718c10"]]), lo = { class: "ipd-dialog__header" }, uo = { class: "ipd-dialog__body" }, fo = { class: "ipd-fieldset" }, po = { class: "ipd-legend" }, mo = { class: "ipd-row" }, ho = { value: "align" }, go = { value: "offset" }, _o = {
|
|
5309
5561
|
key: 0,
|
|
5310
5562
|
class: "ipd-row"
|
|
5311
|
-
},
|
|
5563
|
+
}, vo = { class: "ipd-label" }, yo = { value: "left" }, bo = { value: "center" }, xo = { value: "right" }, So = {
|
|
5312
5564
|
key: 1,
|
|
5313
5565
|
class: "ipd-row"
|
|
5314
|
-
},
|
|
5566
|
+
}, Co = { class: "ipd-label" }, wo = { class: "ipd-row" }, To = { class: "ipd-label" }, Eo = { value: "page" }, Do = { value: "column" }, Oo = { value: "margin" }, ko = { value: "character" }, Ao = { class: "ipd-fieldset" }, jo = { class: "ipd-legend" }, Mo = { class: "ipd-row" }, No = { value: "align" }, Po = { value: "offset" }, Fo = {
|
|
5315
5567
|
key: 0,
|
|
5316
5568
|
class: "ipd-row"
|
|
5317
|
-
},
|
|
5569
|
+
}, Io = { class: "ipd-label" }, Lo = { value: "top" }, Ro = { value: "center" }, zo = { value: "bottom" }, Bo = {
|
|
5318
5570
|
key: 1,
|
|
5319
5571
|
class: "ipd-row"
|
|
5320
|
-
},
|
|
5572
|
+
}, Vo = { class: "ipd-label" }, Ho = { class: "ipd-row" }, Uo = { class: "ipd-label" }, Wo = { value: "page" }, Go = { value: "margin" }, Ko = { value: "paragraph" }, qo = { value: "line" }, Jo = { class: "ipd-fieldset" }, Yo = { class: "ipd-row" }, Xo = { class: "ipd-label" }, Zo = {
|
|
5321
5573
|
class: "ipd-label",
|
|
5322
5574
|
style: { width: "60px" }
|
|
5323
|
-
},
|
|
5575
|
+
}, Qo = { class: "ipd-row" }, $o = { class: "ipd-label" }, es = {
|
|
5324
5576
|
class: "ipd-label",
|
|
5325
5577
|
style: { width: "60px" }
|
|
5326
|
-
},
|
|
5578
|
+
}, ts = { class: "ipd-dialog__footer" }, ns = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5327
5579
|
__name: "ImagePositionDialog",
|
|
5328
5580
|
props: {
|
|
5329
5581
|
isOpen: { type: Boolean },
|
|
@@ -5364,22 +5616,22 @@ var Hn = u({
|
|
|
5364
5616
|
onClose: a[13] ||= (e) => t.$emit("close")
|
|
5365
5617
|
}, {
|
|
5366
5618
|
default: P(() => [
|
|
5367
|
-
s("div",
|
|
5368
|
-
s("div",
|
|
5369
|
-
s("fieldset",
|
|
5370
|
-
s("legend",
|
|
5371
|
-
s("div",
|
|
5619
|
+
s("div", lo, T(O(n)("dialogs.imagePosition.title")), 1),
|
|
5620
|
+
s("div", uo, [
|
|
5621
|
+
s("fieldset", fo, [
|
|
5622
|
+
s("legend", po, T(O(n)("dialogs.imagePosition.horizontal")), 1),
|
|
5623
|
+
s("div", mo, [a[14] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
|
|
5372
5624
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
5373
5625
|
class: "ipd-select"
|
|
5374
|
-
}, [s("option",
|
|
5375
|
-
l.value === "align" ? (y(), o("div",
|
|
5626
|
+
}, [s("option", ho, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", go, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, l.value]])]),
|
|
5627
|
+
l.value === "align" ? (y(), o("div", _o, [s("label", vo, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
|
|
5376
5628
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
5377
5629
|
class: "ipd-select"
|
|
5378
5630
|
}, [
|
|
5379
|
-
s("option",
|
|
5380
|
-
s("option",
|
|
5381
|
-
s("option",
|
|
5382
|
-
], 512), [[j, u.value]])])) : (y(), o("div",
|
|
5631
|
+
s("option", yo, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5632
|
+
s("option", bo, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5633
|
+
s("option", xo, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1)
|
|
5634
|
+
], 512), [[j, u.value]])])) : (y(), o("div", So, [s("label", Co, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
|
|
5383
5635
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
5384
5636
|
type: "number",
|
|
5385
5637
|
class: "ipd-input"
|
|
@@ -5389,30 +5641,30 @@ var Hn = u({
|
|
|
5389
5641
|
void 0,
|
|
5390
5642
|
{ number: !0 }
|
|
5391
5643
|
]])])),
|
|
5392
|
-
s("div",
|
|
5644
|
+
s("div", wo, [s("label", To, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
|
|
5393
5645
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
5394
5646
|
class: "ipd-select"
|
|
5395
5647
|
}, [
|
|
5396
|
-
s("option",
|
|
5397
|
-
s("option",
|
|
5398
|
-
s("option",
|
|
5399
|
-
s("option",
|
|
5648
|
+
s("option", Eo, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5649
|
+
s("option", Do, T(O(n)("dialogs.imagePosition.relativeOptions.column")), 1),
|
|
5650
|
+
s("option", Oo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5651
|
+
s("option", ko, T(O(n)("dialogs.imagePosition.relativeOptions.character")), 1)
|
|
5400
5652
|
], 512), [[j, f.value]])])
|
|
5401
5653
|
]),
|
|
5402
|
-
s("fieldset",
|
|
5403
|
-
s("legend",
|
|
5404
|
-
s("div",
|
|
5654
|
+
s("fieldset", Ao, [
|
|
5655
|
+
s("legend", jo, T(O(n)("dialogs.imagePosition.vertical")), 1),
|
|
5656
|
+
s("div", Mo, [a[15] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
|
|
5405
5657
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
5406
5658
|
class: "ipd-select"
|
|
5407
|
-
}, [s("option",
|
|
5408
|
-
p.value === "align" ? (y(), o("div",
|
|
5659
|
+
}, [s("option", No, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Po, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, p.value]])]),
|
|
5660
|
+
p.value === "align" ? (y(), o("div", Fo, [s("label", Io, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
|
|
5409
5661
|
"onUpdate:modelValue": a[5] ||= (e) => m.value = e,
|
|
5410
5662
|
class: "ipd-select"
|
|
5411
5663
|
}, [
|
|
5412
|
-
s("option",
|
|
5413
|
-
s("option",
|
|
5414
|
-
s("option",
|
|
5415
|
-
], 512), [[j, m.value]])])) : (y(), o("div",
|
|
5664
|
+
s("option", Lo, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5665
|
+
s("option", Ro, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5666
|
+
s("option", zo, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
|
|
5667
|
+
], 512), [[j, m.value]])])) : (y(), o("div", Bo, [s("label", Vo, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
|
|
5416
5668
|
"onUpdate:modelValue": a[6] ||= (e) => h.value = e,
|
|
5417
5669
|
type: "number",
|
|
5418
5670
|
class: "ipd-input"
|
|
@@ -5422,20 +5674,20 @@ var Hn = u({
|
|
|
5422
5674
|
void 0,
|
|
5423
5675
|
{ number: !0 }
|
|
5424
5676
|
]])])),
|
|
5425
|
-
s("div",
|
|
5677
|
+
s("div", Ho, [s("label", Uo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
|
|
5426
5678
|
"onUpdate:modelValue": a[7] ||= (e) => g.value = e,
|
|
5427
5679
|
class: "ipd-select"
|
|
5428
5680
|
}, [
|
|
5429
|
-
s("option",
|
|
5430
|
-
s("option",
|
|
5431
|
-
s("option",
|
|
5432
|
-
s("option",
|
|
5681
|
+
s("option", Wo, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5682
|
+
s("option", Go, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5683
|
+
s("option", Ko, T(O(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
|
|
5684
|
+
s("option", qo, T(O(n)("dialogs.imagePosition.relativeOptions.line")), 1)
|
|
5433
5685
|
], 512), [[j, g.value]])])
|
|
5434
5686
|
]),
|
|
5435
|
-
s("fieldset",
|
|
5687
|
+
s("fieldset", Jo, [
|
|
5436
5688
|
a[16] ||= s("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
|
|
5437
|
-
s("div",
|
|
5438
|
-
s("label",
|
|
5689
|
+
s("div", Yo, [
|
|
5690
|
+
s("label", Xo, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5439
5691
|
F(s("input", {
|
|
5440
5692
|
"onUpdate:modelValue": a[8] ||= (e) => _.value = e,
|
|
5441
5693
|
type: "number",
|
|
@@ -5447,7 +5699,7 @@ var Hn = u({
|
|
|
5447
5699
|
void 0,
|
|
5448
5700
|
{ number: !0 }
|
|
5449
5701
|
]]),
|
|
5450
|
-
s("label",
|
|
5702
|
+
s("label", Zo, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
|
|
5451
5703
|
F(s("input", {
|
|
5452
5704
|
"onUpdate:modelValue": a[9] ||= (e) => v.value = e,
|
|
5453
5705
|
type: "number",
|
|
@@ -5460,8 +5712,8 @@ var Hn = u({
|
|
|
5460
5712
|
{ number: !0 }
|
|
5461
5713
|
]])
|
|
5462
5714
|
]),
|
|
5463
|
-
s("div",
|
|
5464
|
-
s("label",
|
|
5715
|
+
s("div", Qo, [
|
|
5716
|
+
s("label", $o, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5465
5717
|
F(s("input", {
|
|
5466
5718
|
"onUpdate:modelValue": a[10] ||= (e) => b.value = e,
|
|
5467
5719
|
type: "number",
|
|
@@ -5473,7 +5725,7 @@ var Hn = u({
|
|
|
5473
5725
|
void 0,
|
|
5474
5726
|
{ number: !0 }
|
|
5475
5727
|
]]),
|
|
5476
|
-
s("label",
|
|
5728
|
+
s("label", es, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1),
|
|
5477
5729
|
F(s("input", {
|
|
5478
5730
|
"onUpdate:modelValue": a[11] ||= (e) => x.value = e,
|
|
5479
5731
|
type: "number",
|
|
@@ -5488,7 +5740,7 @@ var Hn = u({
|
|
|
5488
5740
|
])
|
|
5489
5741
|
])
|
|
5490
5742
|
]),
|
|
5491
|
-
s("div",
|
|
5743
|
+
s("div", ts, [s("button", {
|
|
5492
5744
|
class: "ipd-btn",
|
|
5493
5745
|
onClick: a[12] ||= (e) => t.$emit("close")
|
|
5494
5746
|
}, T(O(n)("common.cancel")), 1), s("button", {
|
|
@@ -5499,7 +5751,7 @@ var Hn = u({
|
|
|
5499
5751
|
_: 1
|
|
5500
5752
|
}, 8, ["open", "aria-label"]));
|
|
5501
5753
|
}
|
|
5502
|
-
}), [["__scopeId", "data-v-64d4c153"]]),
|
|
5754
|
+
}), [["__scopeId", "data-v-64d4c153"]]), rs = { class: "dialog__body" }, is = { class: "field" }, as = ["accept"], os = { class: "field" }, ss = ["placeholder"], cs = { class: "grid" }, ls = { class: "field" }, us = { class: "field" }, ds = { class: "dialog__footer" }, fs = ["disabled"], ps = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5503
5755
|
__name: "InsertImageDialog",
|
|
5504
5756
|
props: {
|
|
5505
5757
|
isOpen: { type: Boolean },
|
|
@@ -5541,25 +5793,25 @@ var Hn = u({
|
|
|
5541
5793
|
}, {
|
|
5542
5794
|
default: P(() => [
|
|
5543
5795
|
r[9] ||= s("div", { class: "dialog__header" }, "Insert Image", -1),
|
|
5544
|
-
s("div",
|
|
5545
|
-
s("label",
|
|
5796
|
+
s("div", rs, [
|
|
5797
|
+
s("label", is, [r[5] ||= s("span", { class: "field__label" }, "Image file", -1), s("input", {
|
|
5546
5798
|
class: "field__input",
|
|
5547
5799
|
type: "file",
|
|
5548
5800
|
accept: e.accept,
|
|
5549
5801
|
onChange: d
|
|
5550
|
-
}, null, 40,
|
|
5551
|
-
s("label",
|
|
5802
|
+
}, null, 40, as)]),
|
|
5803
|
+
s("label", os, [r[6] ||= s("span", { class: "field__label" }, "Alt text", -1), F(s("input", {
|
|
5552
5804
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
5553
5805
|
class: "field__input",
|
|
5554
5806
|
placeholder: o.value?.name ?? ""
|
|
5555
|
-
}, null, 8,
|
|
5556
|
-
s("div",
|
|
5807
|
+
}, null, 8, ss), [[M, c.value]])]),
|
|
5808
|
+
s("div", cs, [s("label", ls, [r[7] ||= s("span", { class: "field__label" }, "Width", -1), F(s("input", {
|
|
5557
5809
|
"onUpdate:modelValue": r[1] ||= (e) => l.value = e,
|
|
5558
5810
|
class: "field__input",
|
|
5559
5811
|
min: "1",
|
|
5560
5812
|
placeholder: "Auto",
|
|
5561
5813
|
type: "number"
|
|
5562
|
-
}, null, 512), [[M, l.value]])]), s("label",
|
|
5814
|
+
}, null, 512), [[M, l.value]])]), s("label", us, [r[8] ||= s("span", { class: "field__label" }, "Height", -1), F(s("input", {
|
|
5563
5815
|
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
5564
5816
|
class: "field__input",
|
|
5565
5817
|
min: "1",
|
|
@@ -5567,14 +5819,14 @@ var Hn = u({
|
|
|
5567
5819
|
type: "number"
|
|
5568
5820
|
}, null, 512), [[M, u.value]])])])
|
|
5569
5821
|
]),
|
|
5570
|
-
s("div",
|
|
5822
|
+
s("div", ds, [s("button", {
|
|
5571
5823
|
class: "dialog__btn",
|
|
5572
5824
|
onClick: r[3] ||= (e) => t.$emit("close")
|
|
5573
5825
|
}, "Cancel"), s("button", {
|
|
5574
5826
|
class: "dialog__btn dialog__btn--primary",
|
|
5575
5827
|
disabled: !o.value,
|
|
5576
5828
|
onClick: f
|
|
5577
|
-
}, " Insert ", 8,
|
|
5829
|
+
}, " Insert ", 8, fs)])
|
|
5578
5830
|
]),
|
|
5579
5831
|
_: 1
|
|
5580
5832
|
}, 8, ["open"]));
|
|
@@ -5583,7 +5835,7 @@ var Hn = u({
|
|
|
5583
5835
|
style: "single",
|
|
5584
5836
|
size: 4,
|
|
5585
5837
|
color: { rgb: e }
|
|
5586
|
-
}),
|
|
5838
|
+
}), ms = [
|
|
5587
5839
|
{
|
|
5588
5840
|
id: "TableNormal",
|
|
5589
5841
|
name: "Normal Table",
|
|
@@ -5875,7 +6127,7 @@ var Hn = u({
|
|
|
5875
6127
|
band1Horz: { backgroundColor: "#E2EFDA" }
|
|
5876
6128
|
}
|
|
5877
6129
|
}
|
|
5878
|
-
],
|
|
6130
|
+
], hs = {
|
|
5879
6131
|
TableNormal: "table.styles.normalTable",
|
|
5880
6132
|
TableGrid: "table.styles.tableGrid",
|
|
5881
6133
|
TableGridLight: "table.styles.gridTableLight",
|
|
@@ -5890,14 +6142,14 @@ var Hn = u({
|
|
|
5890
6142
|
"ListTable4-Accent3": "table.styles.listTable4Accent3",
|
|
5891
6143
|
"GridTable4-Accent5": "table.styles.gridTable4Accent5",
|
|
5892
6144
|
"GridTable4-Accent6": "table.styles.gridTable4Accent6"
|
|
5893
|
-
},
|
|
5894
|
-
function
|
|
6145
|
+
}, gs = 4, _s = 3;
|
|
6146
|
+
function vs(e) {
|
|
5895
6147
|
return !e || e.style === "none" ? "none" : `${e.size ? Math.max(1, Math.round(e.size / 8)) : 1}px solid ${e.color?.rgb ? `#${e.color.rgb}` : "#000"}`;
|
|
5896
6148
|
}
|
|
5897
|
-
function
|
|
5898
|
-
return
|
|
6149
|
+
function ys(e, t, n, r) {
|
|
6150
|
+
return vs(e === void 0 ? t ? n ?? r : r : e);
|
|
5899
6151
|
}
|
|
5900
|
-
function
|
|
6152
|
+
function bs(e, t = gs, n = _s) {
|
|
5901
6153
|
let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
|
|
5902
6154
|
for (let e = 0; e < t; e++) {
|
|
5903
6155
|
let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
|
|
@@ -5910,10 +6162,10 @@ function Ro(e, t = Po, n = Fo) {
|
|
|
5910
6162
|
height: "10px",
|
|
5911
6163
|
boxSizing: "border-box",
|
|
5912
6164
|
backgroundColor: m?.backgroundColor ?? "transparent",
|
|
5913
|
-
borderTop:
|
|
5914
|
-
borderBottom:
|
|
5915
|
-
borderLeft:
|
|
5916
|
-
borderRight:
|
|
6165
|
+
borderTop: ys(h?.top, e > 0, a?.insideH, a?.top),
|
|
6166
|
+
borderBottom: ys(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
|
|
6167
|
+
borderLeft: ys(h?.left, s > 0, a?.insideV, a?.left),
|
|
6168
|
+
borderRight: ys(h?.right, s < n - 1, a?.insideV, a?.right)
|
|
5917
6169
|
};
|
|
5918
6170
|
o.push(g);
|
|
5919
6171
|
}
|
|
@@ -5922,40 +6174,40 @@ function Ro(e, t = Po, n = Fo) {
|
|
|
5922
6174
|
}
|
|
5923
6175
|
//#endregion
|
|
5924
6176
|
//#region src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
|
|
5925
|
-
var
|
|
6177
|
+
var xs = { class: "tsg" }, Ss = { class: "tsg__grid" }, Cs = ["title", "onMousedown"], ws = { class: "tsg__preview" }, Ts = { class: "tsg__name" }, Es = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5926
6178
|
__name: "TableStyleGallery",
|
|
5927
6179
|
props: { currentStyleId: {} },
|
|
5928
6180
|
emits: ["apply"],
|
|
5929
6181
|
setup(e) {
|
|
5930
|
-
let { t: n } = Z(), r =
|
|
6182
|
+
let { t: n } = Z(), r = ms;
|
|
5931
6183
|
function i(e) {
|
|
5932
|
-
let t =
|
|
6184
|
+
let t = hs[e.id];
|
|
5933
6185
|
return t ? n(t) : e.name;
|
|
5934
6186
|
}
|
|
5935
|
-
return (n, a) => (y(), o("div",
|
|
6187
|
+
return (n, a) => (y(), o("div", xs, [s("div", Ss, [(y(!0), o(t, null, C(O(r), (r) => (y(), o("button", {
|
|
5936
6188
|
key: r.id,
|
|
5937
6189
|
class: h(["tsg__item", { "tsg__item--selected": e.currentStyleId === r.id }]),
|
|
5938
6190
|
title: i(r),
|
|
5939
6191
|
onMousedown: L((e) => n.$emit("apply", r.id), ["prevent"])
|
|
5940
|
-
}, [s("div",
|
|
6192
|
+
}, [s("div", ws, [(y(!0), o(t, null, C(O(bs)(r), (e, t) => (y(), o("div", {
|
|
5941
6193
|
key: t,
|
|
5942
6194
|
class: "tsg__cell",
|
|
5943
6195
|
style: g(e)
|
|
5944
|
-
}, null, 4))), 128))]), s("span",
|
|
6196
|
+
}, null, 4))), 128))]), s("span", Ts, T(i(r)), 1)], 42, Cs))), 128))])]));
|
|
5945
6197
|
}
|
|
5946
|
-
}), [["__scopeId", "data-v-c155c39f"]]),
|
|
6198
|
+
}), [["__scopeId", "data-v-c155c39f"]]), Ds = x({
|
|
5947
6199
|
rows: 3,
|
|
5948
6200
|
cols: 3
|
|
5949
|
-
}),
|
|
6201
|
+
}), Os = { class: "dialog__header" }, ks = { class: "dialog__title" }, As = ["title"], js = { class: "dialog__body" }, Ms = ["aria-label"], Ns = ["onMouseenter", "onMousedown"], Ps = { class: "table-grid__label" }, Fs = { class: "dialog__separator" }, Is = { class: "table-manual" }, Ls = { class: "table-manual__field" }, Rs = { class: "table-manual__field" }, zs = { class: "table-options" }, Bs = { class: "table-options__radio" }, Vs = { class: "table-options__radio" }, Hs = { class: "dialog__separator" }, Us = { class: "dialog__footer" }, Ws = ["disabled"], Gs = 8, Ks = 10, qs = 1, Js = 100, Ys = 1, Xs = 20, Zs = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5950
6202
|
__name: "InsertTableDialog",
|
|
5951
6203
|
props: { isOpen: { type: Boolean } },
|
|
5952
6204
|
emits: ["close", "insert"],
|
|
5953
6205
|
setup(e, { emit: n }) {
|
|
5954
|
-
let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(
|
|
6206
|
+
let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(Ds.rows), m = S(Ds.cols), g = S("fixed"), _ = S(null);
|
|
5955
6207
|
N(() => c.isOpen, (e) => {
|
|
5956
|
-
e && (p.value =
|
|
6208
|
+
e && (p.value = Ds.rows, m.value = Ds.cols, d.value = 0, f.value = 0);
|
|
5957
6209
|
});
|
|
5958
|
-
let v = r(() => Number.parseInt(String(p.value), 10)), b = r(() => Number.parseInt(String(m.value), 10)), x = r(() => Number.isFinite(v.value) && v.value >=
|
|
6210
|
+
let v = r(() => Number.parseInt(String(p.value), 10)), b = r(() => Number.parseInt(String(m.value), 10)), x = r(() => Number.isFinite(v.value) && v.value >= qs && v.value <= Js), w = r(() => Number.isFinite(b.value) && b.value >= Ys && b.value <= Xs), E = r(() => x.value && w.value);
|
|
5959
6211
|
function D() {
|
|
5960
6212
|
u("close");
|
|
5961
6213
|
}
|
|
@@ -5967,8 +6219,8 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
|
|
|
5967
6219
|
}
|
|
5968
6220
|
function P() {
|
|
5969
6221
|
if (!E.value) return;
|
|
5970
|
-
let e = Math.min(Math.max(
|
|
5971
|
-
|
|
6222
|
+
let e = Math.min(Math.max(qs, v.value), Js), t = Math.min(Math.max(Ys, b.value), Xs);
|
|
6223
|
+
Ds.rows = e, Ds.cols = t, u("insert", {
|
|
5972
6224
|
rows: e,
|
|
5973
6225
|
cols: t,
|
|
5974
6226
|
autofit: g.value === "autofit",
|
|
@@ -5984,83 +6236,83 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
|
|
|
5984
6236
|
onMousedown: r[7] ||= L(() => {}, ["stop"]),
|
|
5985
6237
|
onKeydown: L(j, ["stop"])
|
|
5986
6238
|
}, [
|
|
5987
|
-
s("div",
|
|
6239
|
+
s("div", Os, [s("span", ks, T(O(i)("dialogs.insertTable.title")), 1), s("button", {
|
|
5988
6240
|
class: "dialog__close",
|
|
5989
6241
|
title: O(i)("common.closeDialog"),
|
|
5990
6242
|
onClick: D
|
|
5991
|
-
}, "✕", 8,
|
|
5992
|
-
s("div",
|
|
6243
|
+
}, "✕", 8, As)]),
|
|
6244
|
+
s("div", js, [
|
|
5993
6245
|
s("div", {
|
|
5994
6246
|
class: "table-grid",
|
|
5995
6247
|
"aria-label": O(i)("dialogs.insertTable.sizeSelector"),
|
|
5996
6248
|
onMouseleave: r[0] ||= (e) => {
|
|
5997
6249
|
d.value = 0, f.value = 0;
|
|
5998
6250
|
}
|
|
5999
|
-
}, [(y(), o(t, null, C(
|
|
6251
|
+
}, [(y(), o(t, null, C(Gs, (e) => s("div", {
|
|
6000
6252
|
key: e,
|
|
6001
6253
|
class: "table-grid__row"
|
|
6002
|
-
}, [(y(), o(t, null, C(
|
|
6254
|
+
}, [(y(), o(t, null, C(Ks, (t) => s("div", {
|
|
6003
6255
|
key: t,
|
|
6004
6256
|
class: h(["table-grid__cell", { highlight: e <= d.value && t <= f.value }]),
|
|
6005
6257
|
onMouseenter: (n) => {
|
|
6006
6258
|
d.value = e, f.value = t;
|
|
6007
6259
|
},
|
|
6008
6260
|
onMousedown: L((n) => k(e, t), ["prevent"])
|
|
6009
|
-
}, null, 42,
|
|
6010
|
-
s("div",
|
|
6261
|
+
}, null, 42, Ns)), 64))])), 64))], 40, Ms),
|
|
6262
|
+
s("div", Ps, T(d.value > 0 ? O(i)("dialogs.insertTable.tableSize", {
|
|
6011
6263
|
cols: f.value,
|
|
6012
6264
|
rows: d.value
|
|
6013
6265
|
}) : O(i)("dialogs.insertTable.hoverToSelect")), 1),
|
|
6014
|
-
s("div",
|
|
6015
|
-
s("div",
|
|
6266
|
+
s("div", Fs, [s("span", null, T(O(i)("dialogs.insertTable.orSpecifySize")), 1)]),
|
|
6267
|
+
s("div", Is, [s("label", Ls, [s("span", null, T(O(i)("dialogs.insertTable.rowsLabel")), 1), F(s("input", {
|
|
6016
6268
|
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
6017
6269
|
type: "number",
|
|
6018
|
-
min:
|
|
6019
|
-
max:
|
|
6270
|
+
min: qs,
|
|
6271
|
+
max: Js,
|
|
6020
6272
|
class: h(["table-manual__input", { "table-manual__input--invalid": !x.value }])
|
|
6021
|
-
}, null, 2), [[M, p.value]])]), s("label",
|
|
6273
|
+
}, null, 2), [[M, p.value]])]), s("label", Rs, [s("span", null, T(O(i)("dialogs.insertTable.columnsLabel")), 1), F(s("input", {
|
|
6022
6274
|
"onUpdate:modelValue": r[2] ||= (e) => m.value = e,
|
|
6023
6275
|
type: "number",
|
|
6024
|
-
min:
|
|
6025
|
-
max:
|
|
6276
|
+
min: Ys,
|
|
6277
|
+
max: Xs,
|
|
6026
6278
|
class: h(["table-manual__input", { "table-manual__input--invalid": !w.value }])
|
|
6027
6279
|
}, null, 2), [[M, m.value]])])]),
|
|
6028
6280
|
s("div", { class: h(["table-manual__hint", { "table-manual__hint--error": !E.value }]) }, T(O(i)("dialogs.insertTable.validationHint", {
|
|
6029
|
-
minRows:
|
|
6030
|
-
maxRows:
|
|
6031
|
-
minCols:
|
|
6032
|
-
maxCols:
|
|
6281
|
+
minRows: qs,
|
|
6282
|
+
maxRows: Js,
|
|
6283
|
+
minCols: Ys,
|
|
6284
|
+
maxCols: Xs
|
|
6033
6285
|
})), 3),
|
|
6034
|
-
s("fieldset",
|
|
6286
|
+
s("fieldset", zs, [
|
|
6035
6287
|
s("legend", null, T(O(i)("dialogs.insertTable.columnWidthLabel")), 1),
|
|
6036
|
-
s("label",
|
|
6288
|
+
s("label", Bs, [F(s("input", {
|
|
6037
6289
|
type: "radio",
|
|
6038
6290
|
value: "fixed",
|
|
6039
6291
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e
|
|
6040
6292
|
}, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.fixedWidth")), 1)]),
|
|
6041
|
-
s("label",
|
|
6293
|
+
s("label", Vs, [F(s("input", {
|
|
6042
6294
|
type: "radio",
|
|
6043
6295
|
value: "autofit",
|
|
6044
6296
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e
|
|
6045
6297
|
}, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.autofit")), 1)])
|
|
6046
6298
|
]),
|
|
6047
|
-
s("div",
|
|
6048
|
-
l(
|
|
6299
|
+
s("div", Hs, [s("span", null, T(O(i)("dialogs.insertTable.style")), 1)]),
|
|
6300
|
+
l(Es, {
|
|
6049
6301
|
"current-style-id": _.value,
|
|
6050
6302
|
onApply: r[5] ||= (e) => _.value = e
|
|
6051
6303
|
}, null, 8, ["current-style-id"])
|
|
6052
6304
|
]),
|
|
6053
|
-
s("div",
|
|
6305
|
+
s("div", Us, [s("button", {
|
|
6054
6306
|
class: "dialog__btn",
|
|
6055
6307
|
onMousedown: L(D, ["prevent"])
|
|
6056
6308
|
}, T(O(i)("common.cancel")), 33), s("button", {
|
|
6057
6309
|
class: "dialog__btn dialog__btn--primary",
|
|
6058
6310
|
disabled: !E.value,
|
|
6059
6311
|
onMousedown: r[6] ||= L((e) => P(), ["prevent"])
|
|
6060
|
-
}, T(O(i)("dialogs.insertTable.insertButton")), 41,
|
|
6312
|
+
}, T(O(i)("dialogs.insertTable.insertButton")), 41, Ws)])
|
|
6061
6313
|
], 32)], 32)) : a("", !0);
|
|
6062
6314
|
}
|
|
6063
|
-
}), [["__scopeId", "data-v-cc53b9fa"]]),
|
|
6315
|
+
}), [["__scopeId", "data-v-cc53b9fa"]]), Qs = { class: "dialog__body" }, $s = { class: "options" }, ec = ["value"], tc = { class: "option__body" }, nc = { class: "option__label" }, rc = { class: "option__description" }, ic = { class: "dialog__footer" }, ac = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
6064
6316
|
__name: "PasteSpecialDialog",
|
|
6065
6317
|
props: {
|
|
6066
6318
|
isOpen: { type: Boolean },
|
|
@@ -6103,15 +6355,15 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
|
|
|
6103
6355
|
}, {
|
|
6104
6356
|
default: P(() => [
|
|
6105
6357
|
c[4] ||= s("div", { class: "dialog__header" }, "Paste Special", -1),
|
|
6106
|
-
s("div",
|
|
6358
|
+
s("div", Qs, [s("fieldset", $s, [c[3] ||= s("legend", { class: "options__legend" }, "Paste mode", -1), (y(), o(t, null, C(a, (e) => s("label", {
|
|
6107
6359
|
key: e.value,
|
|
6108
6360
|
class: "option"
|
|
6109
6361
|
}, [F(s("input", {
|
|
6110
6362
|
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
6111
6363
|
type: "radio",
|
|
6112
6364
|
value: e.value
|
|
6113
|
-
}, null, 8,
|
|
6114
|
-
s("div",
|
|
6365
|
+
}, null, 8, ec), [[A, u.value]]), s("span", tc, [s("span", nc, T(e.label), 1), s("span", rc, T(e.description), 1)])])), 64))])]),
|
|
6366
|
+
s("div", ic, [s("button", {
|
|
6115
6367
|
class: "dialog__btn",
|
|
6116
6368
|
onClick: c[1] ||= (e) => n.$emit("close")
|
|
6117
6369
|
}, "Cancel"), s("button", {
|
|
@@ -6122,7 +6374,7 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
|
|
|
6122
6374
|
_: 1
|
|
6123
6375
|
}, 8, ["open"]));
|
|
6124
6376
|
}
|
|
6125
|
-
}), [["__scopeId", "data-v-540e9db3"]]),
|
|
6377
|
+
}), [["__scopeId", "data-v-540e9db3"]]), oc = { class: "dialog__body" }, sc = { class: "grid" }, cc = { class: "field" }, lc = { class: "field" }, uc = { class: "check" }, dc = { class: "dialog__footer" }, fc = ["disabled"], pc = 1, mc = 63, hc = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
6126
6378
|
__name: "SplitCellDialog",
|
|
6127
6379
|
props: {
|
|
6128
6380
|
isOpen: { type: Boolean },
|
|
@@ -6143,7 +6395,7 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
|
|
|
6143
6395
|
}), o("close"));
|
|
6144
6396
|
}
|
|
6145
6397
|
function h(e) {
|
|
6146
|
-
return Math.min(
|
|
6398
|
+
return Math.min(mc, Math.max(pc, Math.trunc(e)));
|
|
6147
6399
|
}
|
|
6148
6400
|
return (t, r) => (y(), i(O(n), {
|
|
6149
6401
|
open: e.isOpen,
|
|
@@ -6158,296 +6410,44 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
|
|
|
6158
6410
|
}, {
|
|
6159
6411
|
default: P(() => [
|
|
6160
6412
|
r[8] ||= s("div", { class: "dialog__header" }, "Split Cell", -1),
|
|
6161
|
-
s("div",
|
|
6413
|
+
s("div", oc, [s("div", sc, [s("label", cc, [r[5] ||= s("span", { class: "field__label" }, "Columns", -1), F(s("input", {
|
|
6162
6414
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
6163
6415
|
class: "field__input",
|
|
6164
|
-
max:
|
|
6165
|
-
min:
|
|
6416
|
+
max: mc,
|
|
6417
|
+
min: pc,
|
|
6166
6418
|
type: "number"
|
|
6167
6419
|
}, null, 512), [[
|
|
6168
6420
|
M,
|
|
6169
6421
|
l.value,
|
|
6170
6422
|
void 0,
|
|
6171
6423
|
{ number: !0 }
|
|
6172
|
-
]])]), s("label",
|
|
6424
|
+
]])]), s("label", lc, [r[6] ||= s("span", { class: "field__label" }, "Rows", -1), F(s("input", {
|
|
6173
6425
|
"onUpdate:modelValue": r[1] ||= (e) => c.value = e,
|
|
6174
6426
|
class: "field__input",
|
|
6175
|
-
max:
|
|
6176
|
-
min:
|
|
6427
|
+
max: mc,
|
|
6428
|
+
min: pc,
|
|
6177
6429
|
type: "number"
|
|
6178
6430
|
}, null, 512), [[
|
|
6179
6431
|
M,
|
|
6180
6432
|
c.value,
|
|
6181
6433
|
void 0,
|
|
6182
6434
|
{ number: !0 }
|
|
6183
|
-
]])])]), s("label",
|
|
6435
|
+
]])])]), s("label", uc, [F(s("input", {
|
|
6184
6436
|
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
6185
6437
|
type: "checkbox"
|
|
6186
6438
|
}, null, 512), [[k, u.value]]), r[7] ||= s("span", null, "Merge selected cells before splitting", -1)])]),
|
|
6187
|
-
s("div",
|
|
6439
|
+
s("div", dc, [s("button", {
|
|
6188
6440
|
class: "dialog__btn",
|
|
6189
6441
|
onClick: r[3] ||= (e) => t.$emit("close")
|
|
6190
6442
|
}, "Cancel"), s("button", {
|
|
6191
6443
|
class: "dialog__btn dialog__btn--primary",
|
|
6192
6444
|
disabled: !p.value,
|
|
6193
6445
|
onClick: m
|
|
6194
|
-
}, " Split ", 8,
|
|
6195
|
-
]),
|
|
6196
|
-
_: 1
|
|
6197
|
-
}, 8, ["open"]));
|
|
6198
|
-
}
|
|
6199
|
-
}), [["__scopeId", "data-v-c4c6621c"]]), Ps = { class: "tpd-dialog__header" }, Fs = { class: "tpd-dialog__body" }, Is = { class: "tpd-row" }, Ls = { class: "tpd-label" }, Rs = { value: "auto" }, zs = { value: "dxa" }, Bs = { value: "pct" }, Vs = {
|
|
6200
|
-
key: 0,
|
|
6201
|
-
class: "tpd-row"
|
|
6202
|
-
}, Hs = { class: "tpd-label" }, Us = ["step"], Ws = { class: "tpd-unit" }, Gs = { class: "tpd-row" }, Ks = { class: "tpd-label" }, qs = { value: "left" }, Js = { value: "center" }, Ys = { value: "right" }, Xs = { class: "tpd-dialog__footer" }, Zs = /*#__PURE__*/ V(/* @__PURE__ */ u({
|
|
6203
|
-
__name: "TablePropertiesDialog",
|
|
6204
|
-
props: {
|
|
6205
|
-
isOpen: { type: Boolean },
|
|
6206
|
-
currentProps: {}
|
|
6207
|
-
},
|
|
6208
|
-
emits: ["close", "apply"],
|
|
6209
|
-
setup(e, { emit: t }) {
|
|
6210
|
-
let { t: n } = Z(), { Dialog: r } = Q(), c = e, l = t, u = S(0), d = S("auto"), f = S("left");
|
|
6211
|
-
function p(e) {
|
|
6212
|
-
return e === "center" || e === "right" ? e : "left";
|
|
6213
|
-
}
|
|
6214
|
-
N(() => c.isOpen, (e) => {
|
|
6215
|
-
e && (u.value = c.currentProps?.width ?? 0, d.value = c.currentProps?.widthType ?? "auto", f.value = p(c.currentProps?.justification));
|
|
6216
|
-
});
|
|
6217
|
-
function m() {
|
|
6218
|
-
let e = d.value === "auto" ? {
|
|
6219
|
-
justification: f.value,
|
|
6220
|
-
width: null,
|
|
6221
|
-
widthType: "auto"
|
|
6222
|
-
} : {
|
|
6223
|
-
justification: f.value,
|
|
6224
|
-
width: u.value,
|
|
6225
|
-
widthType: d.value
|
|
6226
|
-
};
|
|
6227
|
-
l("apply", e), l("close");
|
|
6228
|
-
}
|
|
6229
|
-
return (t, c) => (y(), i(O(r), {
|
|
6230
|
-
open: e.isOpen,
|
|
6231
|
-
"aria-label": O(n)("dialogs.tableProperties.title"),
|
|
6232
|
-
style: {
|
|
6233
|
-
minWidth: "360px",
|
|
6234
|
-
maxWidth: "440px",
|
|
6235
|
-
width: "100%"
|
|
6236
|
-
},
|
|
6237
|
-
onClose: c[4] ||= (e) => t.$emit("close"),
|
|
6238
|
-
onKeydown: I(m, ["enter"])
|
|
6239
|
-
}, {
|
|
6240
|
-
default: P(() => [
|
|
6241
|
-
s("div", Ps, T(O(n)("dialogs.tableProperties.title")), 1),
|
|
6242
|
-
s("div", Fs, [
|
|
6243
|
-
s("div", Is, [s("label", Ls, T(O(n)("dialogs.tableProperties.widthType")), 1), F(s("select", {
|
|
6244
|
-
"onUpdate:modelValue": c[0] ||= (e) => d.value = e,
|
|
6245
|
-
class: "tpd-select"
|
|
6246
|
-
}, [
|
|
6247
|
-
s("option", Rs, T(O(n)("dialogs.tableProperties.widthTypes.auto")), 1),
|
|
6248
|
-
s("option", zs, T(O(n)("dialogs.tableProperties.widthTypes.fixed")), 1),
|
|
6249
|
-
s("option", Bs, T(O(n)("dialogs.tableProperties.widthTypes.percentage")), 1)
|
|
6250
|
-
], 512), [[j, d.value]])]),
|
|
6251
|
-
d.value === "auto" ? a("", !0) : (y(), o("div", Vs, [
|
|
6252
|
-
s("label", Hs, T(O(n)("dialogs.tableProperties.widthLabel")), 1),
|
|
6253
|
-
F(s("input", {
|
|
6254
|
-
"onUpdate:modelValue": c[1] ||= (e) => u.value = e,
|
|
6255
|
-
type: "number",
|
|
6256
|
-
class: "tpd-input",
|
|
6257
|
-
min: 0,
|
|
6258
|
-
step: d.value === "pct" ? 5 : 100
|
|
6259
|
-
}, null, 8, Us), [[
|
|
6260
|
-
M,
|
|
6261
|
-
u.value,
|
|
6262
|
-
void 0,
|
|
6263
|
-
{ number: !0 }
|
|
6264
|
-
]]),
|
|
6265
|
-
s("span", Ws, T(d.value === "pct" ? O(n)("dialogs.tableProperties.units.fiftiethsPercent") : O(n)("dialogs.tableProperties.units.twips")), 1)
|
|
6266
|
-
])),
|
|
6267
|
-
s("div", Gs, [s("label", Ks, T(O(n)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
|
|
6268
|
-
"onUpdate:modelValue": c[2] ||= (e) => f.value = e,
|
|
6269
|
-
class: "tpd-select"
|
|
6270
|
-
}, [
|
|
6271
|
-
s("option", qs, T(O(n)("dialogs.tableProperties.alignOptions.left")), 1),
|
|
6272
|
-
s("option", Js, T(O(n)("dialogs.tableProperties.alignOptions.center")), 1),
|
|
6273
|
-
s("option", Ys, T(O(n)("dialogs.tableProperties.alignOptions.right")), 1)
|
|
6274
|
-
], 512), [[j, f.value]])])
|
|
6275
|
-
]),
|
|
6276
|
-
s("div", Xs, [s("button", {
|
|
6277
|
-
class: "tpd-btn",
|
|
6278
|
-
onClick: c[3] ||= (e) => t.$emit("close")
|
|
6279
|
-
}, T(O(n)("common.cancel")), 1), s("button", {
|
|
6280
|
-
class: "tpd-btn tpd-btn--primary",
|
|
6281
|
-
onClick: m
|
|
6282
|
-
}, T(O(n)("common.apply")), 1)])
|
|
6283
|
-
]),
|
|
6284
|
-
_: 1
|
|
6285
|
-
}, 8, ["open", "aria-label"]));
|
|
6286
|
-
}
|
|
6287
|
-
}), [["__scopeId", "data-v-6e0fd92d"]]), Qs = { class: "dialog__body" }, $s = { class: "field" }, ec = {
|
|
6288
|
-
key: 0,
|
|
6289
|
-
class: "grid"
|
|
6290
|
-
}, tc = { class: "field field--wide" }, nc = { class: "field" }, rc = { class: "field" }, ic = { class: "field" }, ac = { class: "check" }, oc = {
|
|
6291
|
-
key: 1,
|
|
6292
|
-
class: "grid"
|
|
6293
|
-
}, sc = { class: "field field--wide" }, cc = { class: "field field--wide" }, lc = { class: "field" }, uc = { class: "check" }, dc = { class: "check field--wide" }, fc = { class: "dialog__footer" }, pc = ["disabled"], mc = "#C0C0C0", hc = /*#__PURE__*/ V(/* @__PURE__ */ u({
|
|
6294
|
-
__name: "WatermarkDialog",
|
|
6295
|
-
props: {
|
|
6296
|
-
isOpen: { type: Boolean },
|
|
6297
|
-
currentWatermark: {}
|
|
6298
|
-
},
|
|
6299
|
-
emits: ["close", "apply"],
|
|
6300
|
-
setup(e, { emit: t }) {
|
|
6301
|
-
let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(mc), m = S(!0), h = S(50), g = S(""), _ = S(""), v = S(!1), b = S(100), x = S(!0), C = r(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0);
|
|
6302
|
-
N([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
|
|
6303
|
-
if (e) {
|
|
6304
|
-
if (!t) {
|
|
6305
|
-
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = mc, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0;
|
|
6306
|
-
return;
|
|
6307
|
-
}
|
|
6308
|
-
if (u.value = t.kind, t.kind === "text") {
|
|
6309
|
-
d.value = t.text, f.value = t.font ?? "Calibri", p.value = A(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100);
|
|
6310
|
-
return;
|
|
6311
|
-
}
|
|
6312
|
-
g.value = t.imageRId, _.value = t.imageTarget ?? "", v.value = t.imageTargetExternal ?? !1, b.value = Math.round((t.scale ?? 1) * 100), x.value = t.washout ?? !0;
|
|
6313
|
-
}
|
|
6314
|
-
}, { immediate: !0 });
|
|
6315
|
-
function w() {
|
|
6316
|
-
if (C.value) {
|
|
6317
|
-
if (u.value === "none") {
|
|
6318
|
-
l("apply", void 0), l("close");
|
|
6319
|
-
return;
|
|
6320
|
-
}
|
|
6321
|
-
if (u.value === "text") {
|
|
6322
|
-
l("apply", {
|
|
6323
|
-
kind: "text",
|
|
6324
|
-
text: d.value.trim(),
|
|
6325
|
-
...f.value.trim() ? { font: f.value.trim() } : {},
|
|
6326
|
-
color: D(p.value),
|
|
6327
|
-
diagonal: m.value,
|
|
6328
|
-
opacity: T(h.value) / 100
|
|
6329
|
-
}), l("close");
|
|
6330
|
-
return;
|
|
6331
|
-
}
|
|
6332
|
-
l("apply", {
|
|
6333
|
-
kind: "picture",
|
|
6334
|
-
imageRId: g.value.trim(),
|
|
6335
|
-
..._.value.trim() ? { imageTarget: _.value.trim() } : {},
|
|
6336
|
-
..._.value.trim() ? { imageTargetExternal: v.value } : {},
|
|
6337
|
-
scale: E(b.value) / 100,
|
|
6338
|
-
washout: x.value
|
|
6339
|
-
}), l("close");
|
|
6340
|
-
}
|
|
6341
|
-
}
|
|
6342
|
-
function T(e) {
|
|
6343
|
-
return Math.min(100, Math.max(0, e));
|
|
6344
|
-
}
|
|
6345
|
-
function E(e) {
|
|
6346
|
-
return Math.min(300, Math.max(1, e));
|
|
6347
|
-
}
|
|
6348
|
-
function D(e) {
|
|
6349
|
-
return e.startsWith("#") ? e.slice(1) : e;
|
|
6350
|
-
}
|
|
6351
|
-
function A(e) {
|
|
6352
|
-
return !e || e === "auto" ? mc : e.startsWith("#") ? e : `#${e}`;
|
|
6353
|
-
}
|
|
6354
|
-
return (t, r) => (y(), i(O(n), {
|
|
6355
|
-
open: e.isOpen,
|
|
6356
|
-
"aria-label": "Watermark",
|
|
6357
|
-
style: {
|
|
6358
|
-
minWidth: "360px",
|
|
6359
|
-
maxWidth: "520px",
|
|
6360
|
-
width: "100%"
|
|
6361
|
-
},
|
|
6362
|
-
onClose: r[12] ||= (e) => t.$emit("close")
|
|
6363
|
-
}, {
|
|
6364
|
-
default: P(() => [
|
|
6365
|
-
r[25] ||= s("div", { class: "dialog__header" }, "Watermark", -1),
|
|
6366
|
-
s("div", Qs, [
|
|
6367
|
-
s("label", $s, [r[14] ||= s("span", { class: "field__label" }, "Type", -1), F(s("select", {
|
|
6368
|
-
"onUpdate:modelValue": r[0] ||= (e) => u.value = e,
|
|
6369
|
-
class: "field__input"
|
|
6370
|
-
}, [...r[13] ||= [
|
|
6371
|
-
s("option", { value: "text" }, "Text watermark", -1),
|
|
6372
|
-
s("option", { value: "picture" }, "Picture watermark", -1),
|
|
6373
|
-
s("option", { value: "none" }, "No watermark", -1)
|
|
6374
|
-
]], 512), [[j, u.value]])]),
|
|
6375
|
-
u.value === "text" ? (y(), o("div", ec, [
|
|
6376
|
-
s("label", tc, [r[15] ||= s("span", { class: "field__label" }, "Text", -1), F(s("input", {
|
|
6377
|
-
"onUpdate:modelValue": r[1] ||= (e) => d.value = e,
|
|
6378
|
-
class: "field__input"
|
|
6379
|
-
}, null, 512), [[M, d.value]])]),
|
|
6380
|
-
s("label", nc, [r[16] ||= s("span", { class: "field__label" }, "Font", -1), F(s("input", {
|
|
6381
|
-
"onUpdate:modelValue": r[2] ||= (e) => f.value = e,
|
|
6382
|
-
class: "field__input"
|
|
6383
|
-
}, null, 512), [[M, f.value]])]),
|
|
6384
|
-
s("label", rc, [r[17] ||= s("span", { class: "field__label" }, "Color", -1), F(s("input", {
|
|
6385
|
-
"onUpdate:modelValue": r[3] ||= (e) => p.value = e,
|
|
6386
|
-
class: "field__input field__input--color",
|
|
6387
|
-
type: "color"
|
|
6388
|
-
}, null, 512), [[M, p.value]])]),
|
|
6389
|
-
s("label", ic, [r[18] ||= s("span", { class: "field__label" }, "Opacity", -1), F(s("input", {
|
|
6390
|
-
"onUpdate:modelValue": r[4] ||= (e) => h.value = e,
|
|
6391
|
-
class: "field__input",
|
|
6392
|
-
max: "100",
|
|
6393
|
-
min: "0",
|
|
6394
|
-
type: "number"
|
|
6395
|
-
}, null, 512), [[
|
|
6396
|
-
M,
|
|
6397
|
-
h.value,
|
|
6398
|
-
void 0,
|
|
6399
|
-
{ number: !0 }
|
|
6400
|
-
]])]),
|
|
6401
|
-
s("label", ac, [F(s("input", {
|
|
6402
|
-
"onUpdate:modelValue": r[5] ||= (e) => m.value = e,
|
|
6403
|
-
type: "checkbox"
|
|
6404
|
-
}, null, 512), [[k, m.value]]), r[19] ||= s("span", null, "Diagonal", -1)])
|
|
6405
|
-
])) : a("", !0),
|
|
6406
|
-
u.value === "picture" ? (y(), o("div", oc, [
|
|
6407
|
-
s("label", sc, [r[20] ||= s("span", { class: "field__label" }, "Header image relationship id", -1), F(s("input", {
|
|
6408
|
-
"onUpdate:modelValue": r[6] ||= (e) => g.value = e,
|
|
6409
|
-
class: "field__input",
|
|
6410
|
-
placeholder: "rId12"
|
|
6411
|
-
}, null, 512), [[M, g.value]])]),
|
|
6412
|
-
s("label", cc, [r[21] ||= s("span", { class: "field__label" }, "Image target", -1), F(s("input", {
|
|
6413
|
-
"onUpdate:modelValue": r[7] ||= (e) => _.value = e,
|
|
6414
|
-
class: "field__input",
|
|
6415
|
-
placeholder: "word/media/image1.png"
|
|
6416
|
-
}, null, 512), [[M, _.value]])]),
|
|
6417
|
-
s("label", lc, [r[22] ||= s("span", { class: "field__label" }, "Scale", -1), F(s("input", {
|
|
6418
|
-
"onUpdate:modelValue": r[8] ||= (e) => b.value = e,
|
|
6419
|
-
class: "field__input",
|
|
6420
|
-
max: "300",
|
|
6421
|
-
min: "1",
|
|
6422
|
-
type: "number"
|
|
6423
|
-
}, null, 512), [[
|
|
6424
|
-
M,
|
|
6425
|
-
b.value,
|
|
6426
|
-
void 0,
|
|
6427
|
-
{ number: !0 }
|
|
6428
|
-
]])]),
|
|
6429
|
-
s("label", uc, [F(s("input", {
|
|
6430
|
-
"onUpdate:modelValue": r[9] ||= (e) => x.value = e,
|
|
6431
|
-
type: "checkbox"
|
|
6432
|
-
}, null, 512), [[k, x.value]]), r[23] ||= s("span", null, "Washout", -1)]),
|
|
6433
|
-
s("label", dc, [F(s("input", {
|
|
6434
|
-
"onUpdate:modelValue": r[10] ||= (e) => v.value = e,
|
|
6435
|
-
type: "checkbox"
|
|
6436
|
-
}, null, 512), [[k, v.value]]), r[24] ||= s("span", null, "Target is an external URL", -1)])
|
|
6437
|
-
])) : a("", !0)
|
|
6438
|
-
]),
|
|
6439
|
-
s("div", fc, [s("button", {
|
|
6440
|
-
class: "dialog__btn",
|
|
6441
|
-
onClick: r[11] ||= (e) => t.$emit("close")
|
|
6442
|
-
}, "Cancel"), s("button", {
|
|
6443
|
-
class: "dialog__btn dialog__btn--primary",
|
|
6444
|
-
disabled: !C.value,
|
|
6445
|
-
onClick: w
|
|
6446
|
-
}, " Apply ", 8, pc)])
|
|
6446
|
+
}, " Split ", 8, fc)])
|
|
6447
6447
|
]),
|
|
6448
6448
|
_: 1
|
|
6449
6449
|
}, 8, ["open"]));
|
|
6450
6450
|
}
|
|
6451
|
-
}), [["__scopeId", "data-v-
|
|
6451
|
+
}), [["__scopeId", "data-v-c4c6621c"]]);
|
|
6452
6452
|
//#endregion
|
|
6453
|
-
export {
|
|
6453
|
+
export { Rt as A, xn as C, pn as D, hn as E, H as F, Ht as M, Z as N, Jt as O, U as P, An as S, _n as T, Vn as _, ps as a, Ln as b, Da as c, vi as d, $r as f, Hn as g, Rn as h, Es as i, Ut as j, Kt as k, la as l, Xn as m, ac as n, ns as o, Cr as p, Zs as r, co as s, hc as t, Gi as u, Bn as v, yn as w, Nn as x, Q as y };
|