@stll/folio-vue 0.3.0 → 0.4.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-CDkmhg3v.js → ListButtons-BaILr4AO.js} +79 -79
- package/dist/{ListButtons-3UeVXRAK.cjs → ListButtons-CC7_7-e3.cjs} +2 -2
- package/dist/{PageSetupDialog-Djs8aW5A.js → WatermarkDialog-D-uTab0-.js} +2092 -818
- package/dist/WatermarkDialog-SzyoSZmL.cjs +15 -0
- package/dist/components/DocxEditor/types.d.ts +2 -0
- package/dist/components/dialogs/index.d.ts +13 -9
- package/dist/composables/useDocxEditor.d.ts +2 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +5 -3
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1118 -1114
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +6 -2
- package/dist/ui.js +58 -59
- package/dist/useZoom-8M2AQIMJ.cjs +1 -0
- package/dist/{useZoom-CIIRid8U.js → useZoom-BR--m9w3.js} +140 -140
- package/package.json +1 -1
- package/dist/PageSetupDialog-GGWMpoe-.cjs +0 -15
- package/dist/TablePropertiesDialog-B399kZgL.js +0 -901
- package/dist/TablePropertiesDialog-DYbjwevC.cjs +0 -1
- package/dist/useZoom-BryUw3Cu.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, provide as v,
|
|
2
|
-
import { generateThemeTintShadeMatrix as
|
|
3
|
-
import { getFolioMessages as
|
|
4
|
-
import { TextSelection as
|
|
1
|
+
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, provide as v, reactive as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, toValue as w, unref as T, vModelCheckbox as E, vModelRadio as D, vModelSelect as O, vModelText as k, watch as A, withCtx as j, withDirectives as M, withKeys as N, withModifiers as P } from "vue";
|
|
2
|
+
import { generateThemeTintShadeMatrix as F, resolveColor as I, resolveColorToHex as L, resolveHighlightColor as ee } from "@stll/folio-core/utils/colorResolver";
|
|
3
|
+
import { getFolioMessages as R } from "@stll/folio-core/i18n/messages";
|
|
4
|
+
import { TextSelection as te } from "prosemirror-state";
|
|
5
5
|
import { TWIPS_PER_INCH as z } from "@stll/folio-core/utils/units";
|
|
6
6
|
//#region \0rolldown/runtime.js
|
|
7
7
|
var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), V = (e, t) => {
|
|
8
8
|
let n = e.__vccOpts || e;
|
|
9
9
|
for (let [e, r] of t) n[e] = r;
|
|
10
10
|
return n;
|
|
11
|
-
},
|
|
11
|
+
}, ne = {
|
|
12
12
|
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"],
|
|
13
13
|
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"],
|
|
14
14
|
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"],
|
|
@@ -108,7 +108,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
108
108
|
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"],
|
|
109
109
|
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"],
|
|
110
110
|
"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"]
|
|
111
|
-
},
|
|
111
|
+
}, re = ["width", "height"], H = ["d"], U = /* @__PURE__ */ l({
|
|
112
112
|
__name: "MaterialSymbol",
|
|
113
113
|
props: {
|
|
114
114
|
name: {},
|
|
@@ -117,7 +117,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
117
117
|
style: {}
|
|
118
118
|
},
|
|
119
119
|
setup(t) {
|
|
120
|
-
let r = t, i =
|
|
120
|
+
let r = t, i = ne, o = n(() => i[r.name] || (typeof console < "u" && console.warn(`Icon not found: ${r.name}`), null));
|
|
121
121
|
return (n, r) => o.value ? (_(), a("svg", {
|
|
122
122
|
key: 0,
|
|
123
123
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -132,10 +132,10 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
132
132
|
...t.style ?? {}
|
|
133
133
|
}),
|
|
134
134
|
"aria-hidden": "true"
|
|
135
|
-
}, [(_(!0), a(e, null,
|
|
135
|
+
}, [(_(!0), a(e, null, x(o.value, (e, t) => (_(), a("path", {
|
|
136
136
|
key: t,
|
|
137
137
|
d: e
|
|
138
|
-
}, null, 8,
|
|
138
|
+
}, null, 8, H))), 128))], 14, re)) : (_(), a("span", {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: p(t.className),
|
|
141
141
|
style: m({
|
|
@@ -145,9 +145,9 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
145
145
|
display: "inline-flex",
|
|
146
146
|
...t.style ?? {}
|
|
147
147
|
})
|
|
148
|
-
},
|
|
148
|
+
}, C(t.name), 7));
|
|
149
149
|
}
|
|
150
|
-
}), W = ["disabled"],
|
|
150
|
+
}), W = ["disabled"], ie = "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", ae = /* @__PURE__ */ l({
|
|
151
151
|
__name: "Button",
|
|
152
152
|
props: {
|
|
153
153
|
variant: { default: "default" },
|
|
@@ -176,7 +176,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
176
176
|
xs: "h-7 rounded-md px-2 text-xs",
|
|
177
177
|
"icon-xs": "h-7 w-7"
|
|
178
178
|
}, o = n(() => [
|
|
179
|
-
|
|
179
|
+
ie,
|
|
180
180
|
r[t.variant],
|
|
181
181
|
i[t.size],
|
|
182
182
|
t.className
|
|
@@ -186,9 +186,9 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
186
186
|
class: p(o.value),
|
|
187
187
|
disabled: e.disabled,
|
|
188
188
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
189
|
-
}, [
|
|
189
|
+
}, [S(t.$slots, "default")], 10, W));
|
|
190
190
|
}
|
|
191
|
-
}),
|
|
191
|
+
}), oe = ["checked"], se = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
192
192
|
__name: "Checkbox",
|
|
193
193
|
props: {
|
|
194
194
|
checked: { type: Boolean },
|
|
@@ -205,45 +205,45 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
205
205
|
class: p(["folio-default-checkbox", e.className]),
|
|
206
206
|
checked: e.checked,
|
|
207
207
|
onChange: r
|
|
208
|
-
}, null, 42,
|
|
208
|
+
}, null, 42, oe));
|
|
209
209
|
}
|
|
210
210
|
}), [["__scopeId", "data-v-cc413720"]]);
|
|
211
211
|
//#endregion
|
|
212
212
|
//#region ../../node_modules/.bun/@formatjs+fast-memoize@3.1.6/node_modules/@formatjs/fast-memoize/index.js
|
|
213
|
-
function
|
|
214
|
-
let n = t && t.cache ? t.cache :
|
|
215
|
-
return (t && t.strategy ? t.strategy :
|
|
213
|
+
function G(e, t) {
|
|
214
|
+
let n = t && t.cache ? t.cache : ge, r = t && t.serializer ? t.serializer : me;
|
|
215
|
+
return (t && t.strategy ? t.strategy : de)(e, {
|
|
216
216
|
cache: n,
|
|
217
217
|
serializer: r
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function ce(e) {
|
|
221
221
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
let i =
|
|
223
|
+
function le(e, t, n, r) {
|
|
224
|
+
let i = ce(r) ? r : n(r), a = t.get(i);
|
|
225
225
|
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function K(e, t, n) {
|
|
228
228
|
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
229
229
|
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function ue(e, t, n, r, i) {
|
|
232
232
|
return n.bind(t, e, r, i);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
let n = e.length === 1 ?
|
|
236
|
-
return
|
|
234
|
+
function de(e, t) {
|
|
235
|
+
let n = e.length === 1 ? le : K;
|
|
236
|
+
return ue(e, this, n, t.cache.create(), t.serializer);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
return
|
|
238
|
+
function fe(e, t) {
|
|
239
|
+
return ue(e, this, K, t.cache.create(), t.serializer);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
return
|
|
241
|
+
function pe(e, t) {
|
|
242
|
+
return ue(e, this, le, t.cache.create(), t.serializer);
|
|
243
243
|
}
|
|
244
|
-
var
|
|
244
|
+
var me = function() {
|
|
245
245
|
return JSON.stringify(arguments);
|
|
246
|
-
},
|
|
246
|
+
}, he = class {
|
|
247
247
|
constructor() {
|
|
248
248
|
this.cache = Object.create(null);
|
|
249
249
|
}
|
|
@@ -253,20 +253,20 @@ var le = function() {
|
|
|
253
253
|
set(e, t) {
|
|
254
254
|
this.cache[e] = t;
|
|
255
255
|
}
|
|
256
|
-
},
|
|
257
|
-
return new
|
|
258
|
-
} },
|
|
259
|
-
variadic:
|
|
260
|
-
monadic:
|
|
261
|
-
},
|
|
256
|
+
}, ge = { create: function() {
|
|
257
|
+
return new he();
|
|
258
|
+
} }, _e = {
|
|
259
|
+
variadic: fe,
|
|
260
|
+
monadic: pe
|
|
261
|
+
}, q = class extends Error {
|
|
262
262
|
constructor(e, t) {
|
|
263
263
|
let n = e;
|
|
264
264
|
t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
|
|
265
265
|
}
|
|
266
|
-
},
|
|
266
|
+
}, J = function(e) {
|
|
267
267
|
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;
|
|
268
|
-
}(
|
|
269
|
-
function
|
|
268
|
+
}(J || {});
|
|
269
|
+
function ve() {
|
|
270
270
|
return {
|
|
271
271
|
dateTime: {},
|
|
272
272
|
number: {},
|
|
@@ -277,34 +277,34 @@ function pe() {
|
|
|
277
277
|
displayNames: {}
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function ye(e, t) {
|
|
281
|
+
return G(e, {
|
|
282
282
|
cache: (n = t, { create: () => ({
|
|
283
283
|
get: (e) => n[e],
|
|
284
284
|
set(e, t) {
|
|
285
285
|
n[e] = t;
|
|
286
286
|
}
|
|
287
287
|
}) }),
|
|
288
|
-
strategy:
|
|
288
|
+
strategy: _e.variadic
|
|
289
289
|
});
|
|
290
290
|
var n;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
292
|
+
function Y(e, t) {
|
|
293
|
+
return ye(((...t) => new e(...t)), t);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function be(e) {
|
|
296
296
|
return {
|
|
297
|
-
getDateTimeFormat:
|
|
298
|
-
getNumberFormat:
|
|
299
|
-
getPluralRules:
|
|
300
|
-
getRelativeTimeFormat:
|
|
301
|
-
getListFormat:
|
|
302
|
-
getDisplayNames:
|
|
297
|
+
getDateTimeFormat: Y(Intl.DateTimeFormat, e.dateTime),
|
|
298
|
+
getNumberFormat: Y(Intl.NumberFormat, e.number),
|
|
299
|
+
getPluralRules: Y(Intl.PluralRules, e.pluralRules),
|
|
300
|
+
getRelativeTimeFormat: Y(Intl.RelativeTimeFormat, e.relativeTime),
|
|
301
|
+
getListFormat: Y(Intl.ListFormat, e.list),
|
|
302
|
+
getDisplayNames: Y(Intl.DisplayNames, e.displayNames)
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
//#endregion
|
|
306
306
|
//#region ../../node_modules/.bun/react@19.2.7/node_modules/react/cjs/react.production.js
|
|
307
|
-
var
|
|
307
|
+
var xe = /* @__PURE__ */ B(((e) => {
|
|
308
308
|
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;
|
|
309
309
|
function m(e) {
|
|
310
310
|
return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -590,7 +590,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
590
590
|
}, e.useTransition = function() {
|
|
591
591
|
return w.H.useTransition();
|
|
592
592
|
}, e.version = "19.2.7";
|
|
593
|
-
})),
|
|
593
|
+
})), Se = /* @__PURE__ */ B(((e, t) => {
|
|
594
594
|
process.env.NODE_ENV !== "production" && (function() {
|
|
595
595
|
function n(e, t) {
|
|
596
596
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -598,19 +598,19 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
598
598
|
} });
|
|
599
599
|
}
|
|
600
600
|
function r(e) {
|
|
601
|
-
return typeof e != "object" || !e ? null : (e =
|
|
601
|
+
return typeof e != "object" || !e ? null : (e = W && e[W] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
602
602
|
}
|
|
603
603
|
function i(e, t) {
|
|
604
604
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
605
605
|
var n = e + "." + t;
|
|
606
|
-
|
|
606
|
+
ie[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), ie[n] = !0);
|
|
607
607
|
}
|
|
608
608
|
function a(e, t, n) {
|
|
609
|
-
this.props = e, this.context = t, this.refs =
|
|
609
|
+
this.props = e, this.context = t, this.refs = se, this.updater = n || ae;
|
|
610
610
|
}
|
|
611
611
|
function o() {}
|
|
612
612
|
function s(e, t, n) {
|
|
613
|
-
this.props = e, this.context = t, this.refs =
|
|
613
|
+
this.props = e, this.context = t, this.refs = se, this.updater = n || ae;
|
|
614
614
|
}
|
|
615
615
|
function c() {}
|
|
616
616
|
function l(e) {
|
|
@@ -631,25 +631,25 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
631
631
|
}
|
|
632
632
|
function d(e) {
|
|
633
633
|
if (e == null) return null;
|
|
634
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
634
|
+
if (typeof e == "function") return e.$$typeof === le ? null : e.displayName || e.name || null;
|
|
635
635
|
if (typeof e == "string") return e;
|
|
636
636
|
switch (e) {
|
|
637
637
|
case L: return "Fragment";
|
|
638
|
-
case
|
|
639
|
-
case
|
|
640
|
-
case
|
|
641
|
-
case
|
|
642
|
-
case
|
|
638
|
+
case R: return "Profiler";
|
|
639
|
+
case ee: return "StrictMode";
|
|
640
|
+
case V: return "Suspense";
|
|
641
|
+
case ne: return "SuspenseList";
|
|
642
|
+
case U: return "Activity";
|
|
643
643
|
}
|
|
644
644
|
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) {
|
|
645
645
|
case I: return "Portal";
|
|
646
|
-
case
|
|
647
|
-
case
|
|
648
|
-
case
|
|
646
|
+
case z: return e.displayName || "Context";
|
|
647
|
+
case te: return (e._context.displayName || "Context") + ".Consumer";
|
|
648
|
+
case B:
|
|
649
649
|
var t = e.render;
|
|
650
650
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
651
|
-
case
|
|
652
|
-
case
|
|
651
|
+
case re: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
652
|
+
case H:
|
|
653
653
|
t = e._payload, e = e._init;
|
|
654
654
|
try {
|
|
655
655
|
return d(e(t));
|
|
@@ -659,7 +659,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
659
659
|
}
|
|
660
660
|
function f(e) {
|
|
661
661
|
if (e === L) return "<>";
|
|
662
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
662
|
+
if (typeof e == "object" && e && e.$$typeof === H) return "<...>";
|
|
663
663
|
try {
|
|
664
664
|
var t = d(e);
|
|
665
665
|
return t ? "<" + t + ">" : "<...>";
|
|
@@ -668,14 +668,14 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
function p() {
|
|
671
|
-
var e =
|
|
671
|
+
var e = K.A;
|
|
672
672
|
return e === null ? null : e.getOwner();
|
|
673
673
|
}
|
|
674
674
|
function m() {
|
|
675
675
|
return Error("react-stack-top-frame");
|
|
676
676
|
}
|
|
677
677
|
function h(e) {
|
|
678
|
-
if (
|
|
678
|
+
if (ue.call(e, "key")) {
|
|
679
679
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
680
680
|
if (t && t.isReactWarning) return !1;
|
|
681
681
|
}
|
|
@@ -683,7 +683,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
683
683
|
}
|
|
684
684
|
function g(e, t) {
|
|
685
685
|
function n() {
|
|
686
|
-
|
|
686
|
+
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));
|
|
687
687
|
}
|
|
688
688
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
689
689
|
get: n,
|
|
@@ -692,7 +692,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
692
692
|
}
|
|
693
693
|
function _() {
|
|
694
694
|
var e = d(this.type);
|
|
695
|
-
return
|
|
695
|
+
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;
|
|
696
696
|
}
|
|
697
697
|
function v(e, t, n, r, i, a) {
|
|
698
698
|
var o = n.ref;
|
|
@@ -734,7 +734,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
734
734
|
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
735
735
|
}
|
|
736
736
|
function b(e) {
|
|
737
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof ===
|
|
737
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === H && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
738
738
|
}
|
|
739
739
|
function x(e) {
|
|
740
740
|
return typeof e == "object" && !!e && e.$$typeof === F;
|
|
@@ -782,18 +782,18 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
782
782
|
case I:
|
|
783
783
|
s = !0;
|
|
784
784
|
break;
|
|
785
|
-
case
|
|
785
|
+
case H: return s = e._init, T(s(e._payload), t, n, i, a);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
if (s) {
|
|
789
789
|
s = e, a = a(s);
|
|
790
790
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
791
|
-
return
|
|
791
|
+
return ce(a) ? (n = "", c != null && (n = c.replace(q, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
792
792
|
return e;
|
|
793
|
-
})) : 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(
|
|
793
|
+
})) : 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(q, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
794
794
|
}
|
|
795
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
796
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (
|
|
795
|
+
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);
|
|
796
|
+
else if (l = r(e), typeof l == "function") for (l === e.entries && (_e || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), _e = !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);
|
|
797
797
|
else if (o === "object") {
|
|
798
798
|
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
799
799
|
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.");
|
|
@@ -835,56 +835,56 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
835
835
|
throw e._result;
|
|
836
836
|
}
|
|
837
837
|
function O() {
|
|
838
|
-
var e =
|
|
838
|
+
var e = K.H;
|
|
839
839
|
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;
|
|
840
840
|
}
|
|
841
841
|
function k() {
|
|
842
|
-
|
|
842
|
+
K.asyncTransitions--;
|
|
843
843
|
}
|
|
844
844
|
function A(e) {
|
|
845
|
-
if (
|
|
845
|
+
if (ye === null) try {
|
|
846
846
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
847
|
-
|
|
847
|
+
ye = (t && t[n]).call(t, "timers").setImmediate;
|
|
848
848
|
} catch {
|
|
849
|
-
|
|
850
|
-
!1 ===
|
|
849
|
+
ye = function(e) {
|
|
850
|
+
!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."));
|
|
851
851
|
var t = new MessageChannel();
|
|
852
852
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
|
-
return
|
|
855
|
+
return ye(e);
|
|
856
856
|
}
|
|
857
857
|
function j(e) {
|
|
858
858
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
859
859
|
}
|
|
860
860
|
function M(e, t) {
|
|
861
|
-
t !==
|
|
861
|
+
t !== Y - 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. "), Y = t;
|
|
862
862
|
}
|
|
863
863
|
function N(e, t, n) {
|
|
864
|
-
var r =
|
|
864
|
+
var r = K.actQueue;
|
|
865
865
|
if (r !== null) if (r.length !== 0) try {
|
|
866
866
|
P(r), A(function() {
|
|
867
867
|
return N(e, t, n);
|
|
868
868
|
});
|
|
869
869
|
return;
|
|
870
870
|
} catch (e) {
|
|
871
|
-
|
|
871
|
+
K.thrownErrors.push(e);
|
|
872
872
|
}
|
|
873
|
-
else
|
|
874
|
-
0 <
|
|
873
|
+
else K.actQueue = null;
|
|
874
|
+
0 < K.thrownErrors.length ? (r = j(K.thrownErrors), K.thrownErrors.length = 0, n(r)) : t(e);
|
|
875
875
|
}
|
|
876
876
|
function P(e) {
|
|
877
|
-
if (!
|
|
878
|
-
|
|
877
|
+
if (!xe) {
|
|
878
|
+
xe = !0;
|
|
879
879
|
var t = 0;
|
|
880
880
|
try {
|
|
881
881
|
for (; t < e.length; t++) {
|
|
882
882
|
var n = e[t];
|
|
883
883
|
do {
|
|
884
|
-
|
|
884
|
+
K.didUsePromise = !1;
|
|
885
885
|
var r = n(!1);
|
|
886
886
|
if (r !== null) {
|
|
887
|
-
if (
|
|
887
|
+
if (K.didUsePromise) {
|
|
888
888
|
e[t] = n, e.splice(0, t);
|
|
889
889
|
return;
|
|
890
890
|
}
|
|
@@ -894,14 +894,14 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
894
894
|
}
|
|
895
895
|
e.length = 0;
|
|
896
896
|
} catch (n) {
|
|
897
|
-
e.splice(0, t + 1),
|
|
897
|
+
e.splice(0, t + 1), K.thrownErrors.push(n);
|
|
898
898
|
} finally {
|
|
899
|
-
|
|
899
|
+
xe = !1;
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
904
|
-
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"),
|
|
904
|
+
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), te = Symbol.for("react.consumer"), z = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), W = Symbol.iterator, ie = {}, ae = {
|
|
905
905
|
isMounted: function() {
|
|
906
906
|
return !1;
|
|
907
907
|
},
|
|
@@ -914,20 +914,20 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
914
914
|
enqueueSetState: function(e) {
|
|
915
915
|
i(e, "setState");
|
|
916
916
|
}
|
|
917
|
-
},
|
|
918
|
-
Object.freeze(
|
|
917
|
+
}, oe = Object.assign, se = {};
|
|
918
|
+
Object.freeze(se), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
919
919
|
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.");
|
|
920
920
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
921
921
|
}, a.prototype.forceUpdate = function(e) {
|
|
922
922
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
923
923
|
};
|
|
924
|
-
var
|
|
924
|
+
var G = {
|
|
925
925
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
926
926
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
927
927
|
};
|
|
928
|
-
for (
|
|
929
|
-
o.prototype = a.prototype,
|
|
930
|
-
var
|
|
928
|
+
for (Ce in G) G.hasOwnProperty(Ce) && n(Ce, G[Ce]);
|
|
929
|
+
o.prototype = a.prototype, G = s.prototype = new o(), G.constructor = s, oe(G, a.prototype), G.isPureReactComponent = !0;
|
|
930
|
+
var ce = Array.isArray, le = Symbol.for("react.client.reference"), K = {
|
|
931
931
|
H: null,
|
|
932
932
|
A: null,
|
|
933
933
|
T: null,
|
|
@@ -940,13 +940,13 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
940
940
|
thrownErrors: [],
|
|
941
941
|
getCurrentStack: null,
|
|
942
942
|
recentlyCreatedOwnerStacks: 0
|
|
943
|
-
},
|
|
943
|
+
}, ue = Object.prototype.hasOwnProperty, de = console.createTask ? console.createTask : function() {
|
|
944
944
|
return null;
|
|
945
945
|
};
|
|
946
|
-
|
|
946
|
+
G = { react_stack_bottom_frame: function(e) {
|
|
947
947
|
return e();
|
|
948
948
|
} };
|
|
949
|
-
var
|
|
949
|
+
var fe, pe, me = {}, he = G.react_stack_bottom_frame.bind(G, m)(), ge = de(f(m)), _e = !1, q = /\/+/g, J = typeof reportError == "function" ? reportError : function(e) {
|
|
950
950
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
951
951
|
var t = new window.ErrorEvent("error", {
|
|
952
952
|
bubbles: !0,
|
|
@@ -960,18 +960,18 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
960
960
|
return;
|
|
961
961
|
}
|
|
962
962
|
console.error(e);
|
|
963
|
-
},
|
|
963
|
+
}, ve = !1, ye = null, Y = 0, be = !1, xe = !1, Se = typeof queueMicrotask == "function" ? function(e) {
|
|
964
964
|
queueMicrotask(function() {
|
|
965
965
|
return queueMicrotask(e);
|
|
966
966
|
});
|
|
967
967
|
} : A;
|
|
968
|
-
|
|
968
|
+
G = Object.freeze({
|
|
969
969
|
__proto__: null,
|
|
970
970
|
c: function(e) {
|
|
971
971
|
return O().useMemoCache(e);
|
|
972
972
|
}
|
|
973
973
|
});
|
|
974
|
-
var
|
|
974
|
+
var Ce = {
|
|
975
975
|
map: E,
|
|
976
976
|
forEach: function(e, t, n) {
|
|
977
977
|
E(e, function() {
|
|
@@ -994,20 +994,20 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
994
994
|
return e;
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
|
-
e.Activity =
|
|
998
|
-
var t =
|
|
999
|
-
|
|
1000
|
-
var r =
|
|
997
|
+
e.Activity = U, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = R, e.PureComponent = s, e.StrictMode = ee, e.Suspense = V, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = K, e.__COMPILER_RUNTIME = G, e.act = function(e) {
|
|
998
|
+
var t = K.actQueue, n = Y;
|
|
999
|
+
Y++;
|
|
1000
|
+
var r = K.actQueue = t === null ? [] : t, i = !1;
|
|
1001
1001
|
try {
|
|
1002
1002
|
var a = e();
|
|
1003
1003
|
} catch (e) {
|
|
1004
|
-
|
|
1004
|
+
K.thrownErrors.push(e);
|
|
1005
1005
|
}
|
|
1006
|
-
if (0 <
|
|
1006
|
+
if (0 < K.thrownErrors.length) throw M(t, n), e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
1007
1007
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
1008
1008
|
var o = a;
|
|
1009
|
-
return
|
|
1010
|
-
i ||
|
|
1009
|
+
return Se(function() {
|
|
1010
|
+
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 () => ...);"));
|
|
1011
1011
|
}), { then: function(e, a) {
|
|
1012
1012
|
i = !0, o.then(function(i) {
|
|
1013
1013
|
if (M(t, n), n === 0) {
|
|
@@ -1016,24 +1016,24 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1016
1016
|
return N(i, e, a);
|
|
1017
1017
|
});
|
|
1018
1018
|
} catch (e) {
|
|
1019
|
-
|
|
1019
|
+
K.thrownErrors.push(e);
|
|
1020
1020
|
}
|
|
1021
|
-
if (0 <
|
|
1022
|
-
var o = j(
|
|
1023
|
-
|
|
1021
|
+
if (0 < K.thrownErrors.length) {
|
|
1022
|
+
var o = j(K.thrownErrors);
|
|
1023
|
+
K.thrownErrors.length = 0, a(o);
|
|
1024
1024
|
}
|
|
1025
1025
|
} else e(i);
|
|
1026
1026
|
}, function(e) {
|
|
1027
|
-
M(t, n), 0 <
|
|
1027
|
+
M(t, n), 0 < K.thrownErrors.length ? (e = j(K.thrownErrors), K.thrownErrors.length = 0, a(e)) : a(e);
|
|
1028
1028
|
});
|
|
1029
1029
|
} };
|
|
1030
1030
|
}
|
|
1031
1031
|
var s = a;
|
|
1032
|
-
if (M(t, n), n === 0 && (P(r), r.length !== 0 &&
|
|
1033
|
-
i ||
|
|
1034
|
-
}),
|
|
1032
|
+
if (M(t, n), n === 0 && (P(r), r.length !== 0 && Se(function() {
|
|
1033
|
+
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(() => ...)"));
|
|
1034
|
+
}), K.actQueue = null), 0 < K.thrownErrors.length) throw e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
1035
1035
|
return { then: function(e, t) {
|
|
1036
|
-
i = !0, n === 0 ? (
|
|
1036
|
+
i = !0, n === 0 ? (K.actQueue = r, A(function() {
|
|
1037
1037
|
return N(s, e, t);
|
|
1038
1038
|
})) : e(s);
|
|
1039
1039
|
} };
|
|
@@ -1044,21 +1044,21 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1044
1044
|
}, e.cacheSignal = function() {
|
|
1045
1045
|
return null;
|
|
1046
1046
|
}, e.captureOwnerStack = function() {
|
|
1047
|
-
var e =
|
|
1047
|
+
var e = K.getCurrentStack;
|
|
1048
1048
|
return e === null ? null : e();
|
|
1049
1049
|
}, e.cloneElement = function(e, t, n) {
|
|
1050
1050
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
1051
|
-
var r =
|
|
1051
|
+
var r = oe({}, e.props), i = e.key, a = e._owner;
|
|
1052
1052
|
if (t != null) {
|
|
1053
1053
|
var o;
|
|
1054
1054
|
a: {
|
|
1055
|
-
if (
|
|
1055
|
+
if (ue.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
1056
1056
|
o = !1;
|
|
1057
1057
|
break a;
|
|
1058
1058
|
}
|
|
1059
1059
|
o = t.ref !== void 0;
|
|
1060
1060
|
}
|
|
1061
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
1061
|
+
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]);
|
|
1062
1062
|
}
|
|
1063
1063
|
var s = arguments.length - 2;
|
|
1064
1064
|
if (s === 1) r.children = n;
|
|
@@ -1071,21 +1071,21 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1071
1071
|
return r;
|
|
1072
1072
|
}, e.createContext = function(e) {
|
|
1073
1073
|
return e = {
|
|
1074
|
-
$$typeof:
|
|
1074
|
+
$$typeof: z,
|
|
1075
1075
|
_currentValue: e,
|
|
1076
1076
|
_currentValue2: e,
|
|
1077
1077
|
_threadCount: 0,
|
|
1078
1078
|
Provider: null,
|
|
1079
1079
|
Consumer: null
|
|
1080
1080
|
}, e.Provider = e, e.Consumer = {
|
|
1081
|
-
$$typeof:
|
|
1081
|
+
$$typeof: te,
|
|
1082
1082
|
_context: e
|
|
1083
1083
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1084
1084
|
}, e.createElement = function(e, t, n) {
|
|
1085
1085
|
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
1086
1086
|
r = {};
|
|
1087
1087
|
var i = null;
|
|
1088
|
-
if (t != null) for (c in
|
|
1088
|
+
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]);
|
|
1089
1089
|
var a = arguments.length - 2;
|
|
1090
1090
|
if (a === 1) r.children = n;
|
|
1091
1091
|
else if (1 < a) {
|
|
@@ -1094,15 +1094,15 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
1096
1096
|
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
1097
|
-
var c = 1e4 >
|
|
1098
|
-
return v(e, i, r, p(), c ? Error("react-stack-top-frame") :
|
|
1097
|
+
var c = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
1098
|
+
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : he, c ? de(f(e)) : ge);
|
|
1099
1099
|
}, e.createRef = function() {
|
|
1100
1100
|
var e = { current: null };
|
|
1101
1101
|
return Object.seal(e), e;
|
|
1102
1102
|
}, e.forwardRef = function(e) {
|
|
1103
|
-
e != null && e.$$typeof ===
|
|
1103
|
+
e != null && e.$$typeof === re ? 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?");
|
|
1104
1104
|
var t = {
|
|
1105
|
-
$$typeof:
|
|
1105
|
+
$$typeof: B,
|
|
1106
1106
|
render: e
|
|
1107
1107
|
}, n;
|
|
1108
1108
|
return Object.defineProperty(t, "displayName", {
|
|
@@ -1121,7 +1121,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1121
1121
|
_result: e
|
|
1122
1122
|
};
|
|
1123
1123
|
var t = {
|
|
1124
|
-
$$typeof:
|
|
1124
|
+
$$typeof: H,
|
|
1125
1125
|
_payload: e,
|
|
1126
1126
|
_init: D
|
|
1127
1127
|
}, n = {
|
|
@@ -1136,7 +1136,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1136
1136
|
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
1137
1137
|
}, e.memo = function(e, t) {
|
|
1138
1138
|
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
1139
|
-
$$typeof:
|
|
1139
|
+
$$typeof: re,
|
|
1140
1140
|
type: e,
|
|
1141
1141
|
compare: t === void 0 ? null : t
|
|
1142
1142
|
};
|
|
@@ -1152,15 +1152,15 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
}), t;
|
|
1154
1154
|
}, e.startTransition = function(e) {
|
|
1155
|
-
var t =
|
|
1156
|
-
n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
1155
|
+
var t = K.T, n = {};
|
|
1156
|
+
n._updatedFibers = /* @__PURE__ */ new Set(), K.T = n;
|
|
1157
1157
|
try {
|
|
1158
|
-
var r = e(), i =
|
|
1159
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
1158
|
+
var r = e(), i = K.S;
|
|
1159
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (K.asyncTransitions++, r.then(k, k), r.then(c, J));
|
|
1160
1160
|
} catch (e) {
|
|
1161
|
-
|
|
1161
|
+
J(e);
|
|
1162
1162
|
} finally {
|
|
1163
|
-
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),
|
|
1163
|
+
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;
|
|
1164
1164
|
}
|
|
1165
1165
|
}, e.unstable_useCacheRefresh = function() {
|
|
1166
1166
|
return O().useCacheRefresh();
|
|
@@ -1172,7 +1172,7 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1172
1172
|
return O().useCallback(e, t);
|
|
1173
1173
|
}, e.useContext = function(e) {
|
|
1174
1174
|
var t = O();
|
|
1175
|
-
return e.$$typeof ===
|
|
1175
|
+
return e.$$typeof === te && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
|
|
1176
1176
|
}, e.useDebugValue = function(e, t) {
|
|
1177
1177
|
return O().useDebugValue(e, t);
|
|
1178
1178
|
}, e.useDeferredValue = function(e, t) {
|
|
@@ -1205,12 +1205,12 @@ var ge = /* @__PURE__ */ B(((e) => {
|
|
|
1205
1205
|
return O().useTransition();
|
|
1206
1206
|
}, e.version = "19.2.7", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1207
1207
|
})();
|
|
1208
|
-
})),
|
|
1209
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
1210
|
-
})))(),
|
|
1211
|
-
function
|
|
1208
|
+
})), Ce = (/* @__PURE__ */ B(((e, t) => {
|
|
1209
|
+
process.env.NODE_ENV === "production" ? t.exports = xe() : t.exports = Se();
|
|
1210
|
+
})))(), we = /(?:[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;
|
|
1211
|
+
function Te(e) {
|
|
1212
1212
|
let t = {};
|
|
1213
|
-
return e.replace(
|
|
1213
|
+
return e.replace(we, (e) => {
|
|
1214
1214
|
let n = e.length;
|
|
1215
1215
|
switch (e[0]) {
|
|
1216
1216
|
case "G":
|
|
@@ -1305,10 +1305,10 @@ function be(e) {
|
|
|
1305
1305
|
return "";
|
|
1306
1306
|
}), t;
|
|
1307
1307
|
}
|
|
1308
|
-
var
|
|
1309
|
-
function
|
|
1308
|
+
var Ee = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1309
|
+
function De(e) {
|
|
1310
1310
|
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
1311
|
-
let t = e.split(
|
|
1311
|
+
let t = e.split(Ee).filter((e) => e.length > 0), n = [];
|
|
1312
1312
|
for (let e of t) {
|
|
1313
1313
|
let t = e.split("/");
|
|
1314
1314
|
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
@@ -1321,17 +1321,17 @@ function Se(e) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
return n;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Oe(e) {
|
|
1325
1325
|
return e.replace(/^(.*?)-/, "");
|
|
1326
1326
|
}
|
|
1327
|
-
var
|
|
1328
|
-
function
|
|
1327
|
+
var ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ae = /^(@+)?(\+|#+)?[rs]?$/g, je = /(\*)(0+)|(#+)(0+)|(0+)/g, Me = /^(0+)$/;
|
|
1328
|
+
function Ne(e) {
|
|
1329
1329
|
let t = {};
|
|
1330
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1330
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ae, function(e, n, r) {
|
|
1331
1331
|
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), "";
|
|
1332
1332
|
}), t;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function Pe(e) {
|
|
1335
1335
|
switch (e) {
|
|
1336
1336
|
case "sign-auto": return { signDisplay: "auto" };
|
|
1337
1337
|
case "sign-accounting":
|
|
@@ -1354,19 +1354,19 @@ function ke(e) {
|
|
|
1354
1354
|
case "+_": return { signDisplay: "never" };
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Fe(e) {
|
|
1358
1358
|
let t;
|
|
1359
1359
|
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) {
|
|
1360
1360
|
let n = e.slice(0, 2);
|
|
1361
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1361
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Me.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
1362
1362
|
t.minimumIntegerDigits = e.length;
|
|
1363
1363
|
}
|
|
1364
1364
|
return t;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1366
|
+
function Ie(e) {
|
|
1367
|
+
return Pe(e) || {};
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Le(e) {
|
|
1370
1370
|
let t = {};
|
|
1371
1371
|
for (let n of e) {
|
|
1372
1372
|
switch (n.stem) {
|
|
@@ -1390,7 +1390,7 @@ function Me(e) {
|
|
|
1390
1390
|
continue;
|
|
1391
1391
|
case "measure-unit":
|
|
1392
1392
|
case "unit":
|
|
1393
|
-
t.style = "unit", t.unit =
|
|
1393
|
+
t.style = "unit", t.unit = Oe(n.options[0]);
|
|
1394
1394
|
continue;
|
|
1395
1395
|
case "compact-short":
|
|
1396
1396
|
case "K":
|
|
@@ -1406,7 +1406,7 @@ function Me(e) {
|
|
|
1406
1406
|
notation: "scientific",
|
|
1407
1407
|
...n.options.reduce((e, t) => ({
|
|
1408
1408
|
...e,
|
|
1409
|
-
...
|
|
1409
|
+
...Ie(t)
|
|
1410
1410
|
}), {})
|
|
1411
1411
|
};
|
|
1412
1412
|
continue;
|
|
@@ -1416,7 +1416,7 @@ function Me(e) {
|
|
|
1416
1416
|
notation: "engineering",
|
|
1417
1417
|
...n.options.reduce((e, t) => ({
|
|
1418
1418
|
...e,
|
|
1419
|
-
...
|
|
1419
|
+
...Ie(t)
|
|
1420
1420
|
}), {})
|
|
1421
1421
|
};
|
|
1422
1422
|
continue;
|
|
@@ -1461,7 +1461,7 @@ function Me(e) {
|
|
|
1461
1461
|
continue;
|
|
1462
1462
|
case "integer-width":
|
|
1463
1463
|
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
1464
|
-
n.options[0].replace(
|
|
1464
|
+
n.options[0].replace(je, function(e, n, r, i, a, o) {
|
|
1465
1465
|
if (n) t.minimumIntegerDigits = r.length;
|
|
1466
1466
|
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
1467
1467
|
else if (o) throw Error("We currently do not support exact integer digits");
|
|
@@ -1469,13 +1469,13 @@ function Me(e) {
|
|
|
1469
1469
|
});
|
|
1470
1470
|
continue;
|
|
1471
1471
|
}
|
|
1472
|
-
if (
|
|
1472
|
+
if (Me.test(n.stem)) {
|
|
1473
1473
|
t.minimumIntegerDigits = n.stem.length;
|
|
1474
1474
|
continue;
|
|
1475
1475
|
}
|
|
1476
|
-
if (
|
|
1476
|
+
if (ke.test(n.stem)) {
|
|
1477
1477
|
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
1478
|
-
n.stem.replace(
|
|
1478
|
+
n.stem.replace(ke, function(e, n, r, i, a, o) {
|
|
1479
1479
|
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), "";
|
|
1480
1480
|
});
|
|
1481
1481
|
let e = n.options[0];
|
|
@@ -1484,23 +1484,23 @@ function Me(e) {
|
|
|
1484
1484
|
trailingZeroDisplay: "stripIfInteger"
|
|
1485
1485
|
} : e && (t = {
|
|
1486
1486
|
...t,
|
|
1487
|
-
...
|
|
1487
|
+
...Ne(e)
|
|
1488
1488
|
});
|
|
1489
1489
|
continue;
|
|
1490
1490
|
}
|
|
1491
|
-
if (
|
|
1491
|
+
if (Ae.test(n.stem)) {
|
|
1492
1492
|
t = {
|
|
1493
1493
|
...t,
|
|
1494
|
-
...
|
|
1494
|
+
...Ne(n.stem)
|
|
1495
1495
|
};
|
|
1496
1496
|
continue;
|
|
1497
1497
|
}
|
|
1498
|
-
let e =
|
|
1498
|
+
let e = Pe(n.stem);
|
|
1499
1499
|
e && (t = {
|
|
1500
1500
|
...t,
|
|
1501
1501
|
...e
|
|
1502
1502
|
});
|
|
1503
|
-
let r =
|
|
1503
|
+
let r = Fe(n.stem);
|
|
1504
1504
|
r && (t = {
|
|
1505
1505
|
...t,
|
|
1506
1506
|
...r
|
|
@@ -1510,43 +1510,43 @@ function Me(e) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
//#endregion
|
|
1512
1512
|
//#region ../../node_modules/.bun/@formatjs+icu-messageformat-parser@3.5.12/node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
1513
|
-
var
|
|
1513
|
+
var Re = /* @__PURE__ */ function(e) {
|
|
1514
1514
|
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;
|
|
1515
1515
|
}({});
|
|
1516
|
-
function
|
|
1516
|
+
function ze(e) {
|
|
1517
1517
|
return e.type === 0;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function Be(e) {
|
|
1520
1520
|
return e.type === 1;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Ve(e) {
|
|
1523
1523
|
return e.type === 2;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function He(e) {
|
|
1526
1526
|
return e.type === 3;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Ue(e) {
|
|
1529
1529
|
return e.type === 4;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function We(e) {
|
|
1532
1532
|
return e.type === 5;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function Ge(e) {
|
|
1535
1535
|
return e.type === 6;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Ke(e) {
|
|
1538
1538
|
return e.type === 7;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function qe(e) {
|
|
1541
1541
|
return e.type === 8;
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Je(e) {
|
|
1544
1544
|
return !!(e && typeof e == "object" && e.type === 0);
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function Ye(e) {
|
|
1547
1547
|
return !!(e && typeof e == "object" && e.type === 1);
|
|
1548
1548
|
}
|
|
1549
|
-
var
|
|
1549
|
+
var Xe = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ze = {
|
|
1550
1550
|
"001": ["H", "h"],
|
|
1551
1551
|
419: [
|
|
1552
1552
|
"h",
|
|
@@ -2709,21 +2709,21 @@ var Ge = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ke = {
|
|
|
2709
2709
|
"h"
|
|
2710
2710
|
]
|
|
2711
2711
|
};
|
|
2712
|
-
function
|
|
2712
|
+
function Qe(e, t) {
|
|
2713
2713
|
let n = "";
|
|
2714
2714
|
for (let r = 0; r < e.length; r++) {
|
|
2715
2715
|
let i = e.charAt(r);
|
|
2716
2716
|
if (i === "j") {
|
|
2717
2717
|
let a = 0;
|
|
2718
2718
|
for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
|
|
2719
|
-
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c =
|
|
2719
|
+
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = $e(t);
|
|
2720
2720
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
2721
2721
|
for (; o-- > 0;) n = c + n;
|
|
2722
2722
|
} else i === "J" ? n += "H" : n += i;
|
|
2723
2723
|
}
|
|
2724
2724
|
return n;
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function $e(e) {
|
|
2727
2727
|
let t = e.hourCycle;
|
|
2728
2728
|
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
2729
2729
|
case "h24": return "k";
|
|
@@ -2733,32 +2733,32 @@ function Je(e) {
|
|
|
2733
2733
|
default: throw Error("Invalid hourCycle");
|
|
2734
2734
|
}
|
|
2735
2735
|
let n = e.language, r;
|
|
2736
|
-
return n !== "root" && (r = e.maximize().region), (
|
|
2736
|
+
return n !== "root" && (r = e.maximize().region), (Ze[r || ""] || Ze[n || ""] || Ze[`${n}-001`] || Ze["001"])[0];
|
|
2737
2737
|
}
|
|
2738
|
-
var
|
|
2739
|
-
function
|
|
2738
|
+
var et = RegExp(`^${Xe.source}*`), tt = RegExp(`${Xe.source}*$`);
|
|
2739
|
+
function X(e, t) {
|
|
2740
2740
|
return {
|
|
2741
2741
|
start: e,
|
|
2742
2742
|
end: t
|
|
2743
2743
|
};
|
|
2744
2744
|
}
|
|
2745
|
-
var
|
|
2745
|
+
var nt = !!Object.fromEntries, rt = !!String.prototype.trimStart, it = !!String.prototype.trimEnd, at = nt ? Object.fromEntries : function(e) {
|
|
2746
2746
|
let t = {};
|
|
2747
2747
|
for (let [n, r] of e) t[n] = r;
|
|
2748
2748
|
return t;
|
|
2749
|
-
},
|
|
2749
|
+
}, ot = rt ? function(e) {
|
|
2750
2750
|
return e.trimStart();
|
|
2751
2751
|
} : function(e) {
|
|
2752
|
-
return e.replace(
|
|
2753
|
-
},
|
|
2752
|
+
return e.replace(et, "");
|
|
2753
|
+
}, st = it ? function(e) {
|
|
2754
2754
|
return e.trimEnd();
|
|
2755
2755
|
} : function(e) {
|
|
2756
|
-
return e.replace(
|
|
2757
|
-
},
|
|
2758
|
-
function
|
|
2759
|
-
return
|
|
2756
|
+
return e.replace(tt, "");
|
|
2757
|
+
}, ct = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2758
|
+
function lt(e, t) {
|
|
2759
|
+
return ct.lastIndex = t, ct.exec(e)[1] ?? "";
|
|
2760
2760
|
}
|
|
2761
|
-
function
|
|
2761
|
+
function ut(e) {
|
|
2762
2762
|
if (e.length === 0) return null;
|
|
2763
2763
|
let t = 1, n = 1;
|
|
2764
2764
|
for (let r = 0; r < e.length;) {
|
|
@@ -2782,7 +2782,7 @@ function at(e) {
|
|
|
2782
2782
|
column: n
|
|
2783
2783
|
};
|
|
2784
2784
|
}
|
|
2785
|
-
var
|
|
2785
|
+
var dt = class {
|
|
2786
2786
|
constructor(e, t = {}) {
|
|
2787
2787
|
this.message = e, this.position = {
|
|
2788
2788
|
offset: 0,
|
|
@@ -2795,14 +2795,14 @@ var ot = class {
|
|
|
2795
2795
|
if (this.message.length > 0) {
|
|
2796
2796
|
let e = this.message.charCodeAt(0);
|
|
2797
2797
|
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
2798
|
-
let e =
|
|
2798
|
+
let e = ut(this.message);
|
|
2799
2799
|
if (e) {
|
|
2800
2800
|
let t = this.clonePosition();
|
|
2801
2801
|
return this.position = e, {
|
|
2802
2802
|
val: [{
|
|
2803
2803
|
type: 0,
|
|
2804
2804
|
value: this.message,
|
|
2805
|
-
location:
|
|
2805
|
+
location: X(t, this.clonePosition())
|
|
2806
2806
|
}],
|
|
2807
2807
|
err: null
|
|
2808
2808
|
};
|
|
@@ -2824,12 +2824,12 @@ var ot = class {
|
|
|
2824
2824
|
let e = this.clonePosition();
|
|
2825
2825
|
this.bump(), r.push({
|
|
2826
2826
|
type: 7,
|
|
2827
|
-
location:
|
|
2827
|
+
location: X(e, this.clonePosition())
|
|
2828
2828
|
});
|
|
2829
2829
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2830
2830
|
if (n) break;
|
|
2831
|
-
return this.error(26,
|
|
2832
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
2831
|
+
return this.error(26, X(this.clonePosition(), this.clonePosition()));
|
|
2832
|
+
} else if (i === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
|
|
2833
2833
|
let n = this.parseTag(e, t);
|
|
2834
2834
|
if (n.err) return n;
|
|
2835
2835
|
r.push(n.val);
|
|
@@ -2852,7 +2852,7 @@ var ot = class {
|
|
|
2852
2852
|
val: {
|
|
2853
2853
|
type: 0,
|
|
2854
2854
|
value: `<${r}/>`,
|
|
2855
|
-
location:
|
|
2855
|
+
location: X(n, this.clonePosition())
|
|
2856
2856
|
},
|
|
2857
2857
|
err: null
|
|
2858
2858
|
};
|
|
@@ -2861,23 +2861,23 @@ var ot = class {
|
|
|
2861
2861
|
if (i.err) return i;
|
|
2862
2862
|
let a = i.val, o = this.clonePosition();
|
|
2863
2863
|
if (this.bumpIf("</")) {
|
|
2864
|
-
if (this.isEOF() || !
|
|
2864
|
+
if (this.isEOF() || !ft(this.char())) return this.error(23, X(o, this.clonePosition()));
|
|
2865
2865
|
let e = this.clonePosition();
|
|
2866
2866
|
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2867
2867
|
val: {
|
|
2868
2868
|
type: 8,
|
|
2869
2869
|
value: r,
|
|
2870
2870
|
children: a,
|
|
2871
|
-
location:
|
|
2871
|
+
location: X(n, this.clonePosition())
|
|
2872
2872
|
},
|
|
2873
2873
|
err: null
|
|
2874
|
-
} : this.error(23,
|
|
2875
|
-
} else return this.error(27,
|
|
2876
|
-
} else return this.error(23,
|
|
2874
|
+
} : this.error(23, X(o, this.clonePosition()))) : this.error(26, X(e, this.clonePosition()));
|
|
2875
|
+
} else return this.error(27, X(n, this.clonePosition()));
|
|
2876
|
+
} else return this.error(23, X(n, this.clonePosition()));
|
|
2877
2877
|
}
|
|
2878
2878
|
parseTagName() {
|
|
2879
2879
|
let e = this.offset();
|
|
2880
|
-
for (this.bump(); !this.isEOF() &&
|
|
2880
|
+
for (this.bump(); !this.isEOF() && mt(this.char());) this.bump();
|
|
2881
2881
|
return this.message.slice(e, this.offset());
|
|
2882
2882
|
}
|
|
2883
2883
|
parseLiteral(e, t) {
|
|
@@ -2900,7 +2900,7 @@ var ot = class {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
break;
|
|
2902
2902
|
}
|
|
2903
|
-
let i =
|
|
2903
|
+
let i = X(n, this.clonePosition());
|
|
2904
2904
|
return {
|
|
2905
2905
|
val: {
|
|
2906
2906
|
type: 0,
|
|
@@ -2911,7 +2911,7 @@ var ot = class {
|
|
|
2911
2911
|
};
|
|
2912
2912
|
}
|
|
2913
2913
|
tryParseLeftAngleBracket() {
|
|
2914
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
2914
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !pt(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2915
2915
|
}
|
|
2916
2916
|
tryParseQuote(e) {
|
|
2917
2917
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -2947,35 +2947,35 @@ var ot = class {
|
|
|
2947
2947
|
}
|
|
2948
2948
|
parseArgument(e, t) {
|
|
2949
2949
|
let n = this.clonePosition();
|
|
2950
|
-
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
2951
|
-
if (this.char() === 125) return this.bump(), this.error(2,
|
|
2950
|
+
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, X(n, this.clonePosition()));
|
|
2951
|
+
if (this.char() === 125) return this.bump(), this.error(2, X(n, this.clonePosition()));
|
|
2952
2952
|
let r = this.parseIdentifierIfPossible().value;
|
|
2953
|
-
if (!r) return this.error(3,
|
|
2954
|
-
if (this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
2953
|
+
if (!r) return this.error(3, X(n, this.clonePosition()));
|
|
2954
|
+
if (this.bumpSpace(), this.isEOF()) return this.error(1, X(n, this.clonePosition()));
|
|
2955
2955
|
switch (this.char()) {
|
|
2956
2956
|
case 125: return this.bump(), {
|
|
2957
2957
|
val: {
|
|
2958
2958
|
type: 1,
|
|
2959
2959
|
value: r,
|
|
2960
|
-
location:
|
|
2960
|
+
location: X(n, this.clonePosition())
|
|
2961
2961
|
},
|
|
2962
2962
|
err: null
|
|
2963
2963
|
};
|
|
2964
|
-
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1,
|
|
2965
|
-
default: return this.error(3,
|
|
2964
|
+
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, X(n, this.clonePosition())) : this.parseArgumentOptions(e, t, r, n);
|
|
2965
|
+
default: return this.error(3, X(n, this.clonePosition()));
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
2968
|
parseIdentifierIfPossible() {
|
|
2969
|
-
let e = this.clonePosition(), t = this.offset(), n =
|
|
2969
|
+
let e = this.clonePosition(), t = this.offset(), n = lt(this.message, t), r = t + n.length;
|
|
2970
2970
|
return this.bumpTo(r), {
|
|
2971
2971
|
value: n,
|
|
2972
|
-
location:
|
|
2972
|
+
location: X(e, this.clonePosition())
|
|
2973
2973
|
};
|
|
2974
2974
|
}
|
|
2975
2975
|
parseArgumentOptions(e, t, n, r) {
|
|
2976
2976
|
let i = this.clonePosition(), a = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2977
2977
|
switch (a) {
|
|
2978
|
-
case "": return this.error(4,
|
|
2978
|
+
case "": return this.error(4, X(i, o));
|
|
2979
2979
|
case "number":
|
|
2980
2980
|
case "date":
|
|
2981
2981
|
case "time": {
|
|
@@ -2985,18 +2985,18 @@ var ot = class {
|
|
|
2985
2985
|
this.bumpSpace();
|
|
2986
2986
|
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
2987
2987
|
if (n.err) return n;
|
|
2988
|
-
let r =
|
|
2989
|
-
if (r.length === 0) return this.error(6,
|
|
2988
|
+
let r = st(n.val);
|
|
2989
|
+
if (r.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
|
|
2990
2990
|
e = {
|
|
2991
2991
|
style: r,
|
|
2992
|
-
styleLocation:
|
|
2992
|
+
styleLocation: X(t, this.clonePosition())
|
|
2993
2993
|
};
|
|
2994
2994
|
}
|
|
2995
2995
|
let t = this.tryParseArgumentClose(r);
|
|
2996
2996
|
if (t.err) return t;
|
|
2997
|
-
let i =
|
|
2997
|
+
let i = X(r, this.clonePosition());
|
|
2998
2998
|
if (e && e.style.startsWith("::")) {
|
|
2999
|
-
let t =
|
|
2999
|
+
let t = ot(e.style.slice(2));
|
|
3000
3000
|
if (a === "number") {
|
|
3001
3001
|
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
3002
3002
|
return r.err ? r : {
|
|
@@ -3011,12 +3011,12 @@ var ot = class {
|
|
|
3011
3011
|
} else {
|
|
3012
3012
|
if (t.length === 0) return this.error(10, i);
|
|
3013
3013
|
let r = t;
|
|
3014
|
-
this.locale && (r =
|
|
3014
|
+
this.locale && (r = Qe(t, this.locale));
|
|
3015
3015
|
let o = {
|
|
3016
3016
|
type: 1,
|
|
3017
3017
|
pattern: r,
|
|
3018
3018
|
location: e.styleLocation,
|
|
3019
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3019
|
+
parsedOptions: this.shouldParseSkeletons ? Te(r) : {}
|
|
3020
3020
|
};
|
|
3021
3021
|
return {
|
|
3022
3022
|
val: {
|
|
@@ -3043,11 +3043,11 @@ var ot = class {
|
|
|
3043
3043
|
case "selectordinal":
|
|
3044
3044
|
case "select": {
|
|
3045
3045
|
let i = this.clonePosition();
|
|
3046
|
-
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12,
|
|
3046
|
+
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12, X(i, { ...i }));
|
|
3047
3047
|
this.bumpSpace();
|
|
3048
3048
|
let o = this.parseIdentifierIfPossible(), s = 0;
|
|
3049
3049
|
if (a !== "select" && o.value === "offset") {
|
|
3050
|
-
if (!this.bumpIf(":")) return this.error(13,
|
|
3050
|
+
if (!this.bumpIf(":")) return this.error(13, X(this.clonePosition(), this.clonePosition()));
|
|
3051
3051
|
this.bumpSpace();
|
|
3052
3052
|
let e = this.tryParseDecimalInteger(13, 14);
|
|
3053
3053
|
if (e.err) return e;
|
|
@@ -3057,12 +3057,12 @@ var ot = class {
|
|
|
3057
3057
|
if (c.err) return c;
|
|
3058
3058
|
let l = this.tryParseArgumentClose(r);
|
|
3059
3059
|
if (l.err) return l;
|
|
3060
|
-
let u =
|
|
3060
|
+
let u = X(r, this.clonePosition());
|
|
3061
3061
|
return a === "select" ? {
|
|
3062
3062
|
val: {
|
|
3063
3063
|
type: 5,
|
|
3064
3064
|
value: n,
|
|
3065
|
-
options:
|
|
3065
|
+
options: at(c.val),
|
|
3066
3066
|
location: u
|
|
3067
3067
|
},
|
|
3068
3068
|
err: null
|
|
@@ -3070,7 +3070,7 @@ var ot = class {
|
|
|
3070
3070
|
val: {
|
|
3071
3071
|
type: 6,
|
|
3072
3072
|
value: n,
|
|
3073
|
-
options:
|
|
3073
|
+
options: at(c.val),
|
|
3074
3074
|
offset: s,
|
|
3075
3075
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3076
3076
|
location: u
|
|
@@ -3078,11 +3078,11 @@ var ot = class {
|
|
|
3078
3078
|
err: null
|
|
3079
3079
|
};
|
|
3080
3080
|
}
|
|
3081
|
-
default: return this.error(5,
|
|
3081
|
+
default: return this.error(5, X(i, o));
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
tryParseArgumentClose(e) {
|
|
3085
|
-
return this.isEOF() || this.char() !== 125 ? this.error(1,
|
|
3085
|
+
return this.isEOF() || this.char() !== 125 ? this.error(1, X(e, this.clonePosition())) : (this.bump(), {
|
|
3086
3086
|
val: !0,
|
|
3087
3087
|
err: null
|
|
3088
3088
|
});
|
|
@@ -3093,7 +3093,7 @@ var ot = class {
|
|
|
3093
3093
|
case 39: {
|
|
3094
3094
|
this.bump();
|
|
3095
3095
|
let e = this.clonePosition();
|
|
3096
|
-
if (!this.bumpUntil("'")) return this.error(11,
|
|
3096
|
+
if (!this.bumpUntil("'")) return this.error(11, X(e, this.clonePosition()));
|
|
3097
3097
|
this.bump();
|
|
3098
3098
|
break;
|
|
3099
3099
|
}
|
|
@@ -3119,7 +3119,7 @@ var ot = class {
|
|
|
3119
3119
|
parseNumberSkeletonFromString(e, t) {
|
|
3120
3120
|
let n = [];
|
|
3121
3121
|
try {
|
|
3122
|
-
n =
|
|
3122
|
+
n = De(e);
|
|
3123
3123
|
} catch {
|
|
3124
3124
|
return this.error(7, t);
|
|
3125
3125
|
}
|
|
@@ -3128,7 +3128,7 @@ var ot = class {
|
|
|
3128
3128
|
type: 0,
|
|
3129
3129
|
tokens: n,
|
|
3130
3130
|
location: t,
|
|
3131
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3131
|
+
parsedOptions: this.shouldParseSkeletons ? Le(n) : {}
|
|
3132
3132
|
},
|
|
3133
3133
|
err: null
|
|
3134
3134
|
};
|
|
@@ -3141,23 +3141,23 @@ var ot = class {
|
|
|
3141
3141
|
if (t !== "select" && this.bumpIf("=")) {
|
|
3142
3142
|
let t = this.tryParseDecimalInteger(16, 19);
|
|
3143
3143
|
if (t.err) return t;
|
|
3144
|
-
c =
|
|
3144
|
+
c = X(e, this.clonePosition()), s = this.message.slice(e.offset, this.offset());
|
|
3145
3145
|
} else break;
|
|
3146
3146
|
}
|
|
3147
3147
|
if (o.has(s)) return this.error(t === "select" ? 21 : 20, c);
|
|
3148
3148
|
s === "other" && (i = !0), this.bumpSpace();
|
|
3149
3149
|
let r = this.clonePosition();
|
|
3150
|
-
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18,
|
|
3150
|
+
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18, X(this.clonePosition(), this.clonePosition()));
|
|
3151
3151
|
let l = this.parseMessage(e + 1, t, n);
|
|
3152
3152
|
if (l.err) return l;
|
|
3153
3153
|
let u = this.tryParseArgumentClose(r);
|
|
3154
3154
|
if (u.err) return u;
|
|
3155
3155
|
a.push([s, {
|
|
3156
3156
|
value: l.val,
|
|
3157
|
-
location:
|
|
3157
|
+
location: X(r, this.clonePosition())
|
|
3158
3158
|
}]), o.add(s), this.bumpSpace(), {value: s, location: c} = this.parseIdentifierIfPossible();
|
|
3159
3159
|
}
|
|
3160
|
-
return a.length === 0 ? this.error(t === "select" ? 15 : 16,
|
|
3160
|
+
return a.length === 0 ? this.error(t === "select" ? 15 : 16, X(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i ? this.error(22, X(this.clonePosition(), this.clonePosition())) : {
|
|
3161
3161
|
val: a,
|
|
3162
3162
|
err: null
|
|
3163
3163
|
};
|
|
@@ -3171,7 +3171,7 @@ var ot = class {
|
|
|
3171
3171
|
if (e >= 48 && e <= 57) i = !0, a = a * 10 + (e - 48), this.bump();
|
|
3172
3172
|
else break;
|
|
3173
3173
|
}
|
|
3174
|
-
let o =
|
|
3174
|
+
let o = X(r, this.clonePosition());
|
|
3175
3175
|
return i ? (a *= n, Number.isSafeInteger(a) ? {
|
|
3176
3176
|
val: a,
|
|
3177
3177
|
err: null
|
|
@@ -3233,7 +3233,7 @@ var ot = class {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
3235
|
bumpSpace() {
|
|
3236
|
-
for (; !this.isEOF() &&
|
|
3236
|
+
for (; !this.isEOF() && ht(this.char());) this.bump();
|
|
3237
3237
|
}
|
|
3238
3238
|
peek() {
|
|
3239
3239
|
if (this.isEOF()) return null;
|
|
@@ -3241,83 +3241,83 @@ var ot = class {
|
|
|
3241
3241
|
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
3242
3242
|
}
|
|
3243
3243
|
};
|
|
3244
|
-
function
|
|
3244
|
+
function ft(e) {
|
|
3245
3245
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return
|
|
3247
|
+
function pt(e) {
|
|
3248
|
+
return ft(e) || e === 47;
|
|
3249
3249
|
}
|
|
3250
|
-
function
|
|
3250
|
+
function mt(e) {
|
|
3251
3251
|
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;
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3253
|
+
function ht(e) {
|
|
3254
3254
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function gt(e) {
|
|
3257
3257
|
e.forEach((e) => {
|
|
3258
|
-
if (delete e.location,
|
|
3259
|
-
else
|
|
3258
|
+
if (delete e.location, We(e) || Ge(e)) for (let t in e.options) delete e.options[t].location, gt(e.options[t].value);
|
|
3259
|
+
else Ve(e) && Je(e.style) || (He(e) || Ue(e)) && Ye(e.style) ? delete e.style.location : qe(e) && gt(e.children);
|
|
3260
3260
|
});
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function _t(e, t = {}) {
|
|
3263
3263
|
t = {
|
|
3264
3264
|
shouldParseSkeletons: !0,
|
|
3265
3265
|
requiresOtherClause: !0,
|
|
3266
3266
|
...t
|
|
3267
3267
|
};
|
|
3268
|
-
let n = new
|
|
3268
|
+
let n = new dt(e, t).parse();
|
|
3269
3269
|
if (n.err) {
|
|
3270
|
-
let e = SyntaxError(
|
|
3270
|
+
let e = SyntaxError(Re[n.err.kind]);
|
|
3271
3271
|
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
3272
3272
|
}
|
|
3273
|
-
return t?.captureLocation ||
|
|
3273
|
+
return t?.captureLocation || gt(n.val), n.val;
|
|
3274
3274
|
}
|
|
3275
3275
|
//#endregion
|
|
3276
3276
|
//#region ../../node_modules/.bun/intl-messageformat@11.2.9/node_modules/intl-messageformat/index.js
|
|
3277
|
-
var
|
|
3277
|
+
var vt = class extends Error {
|
|
3278
3278
|
constructor(e, t, n) {
|
|
3279
3279
|
super(e), this.code = t, this.originalMessage = n;
|
|
3280
3280
|
}
|
|
3281
3281
|
toString() {
|
|
3282
3282
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3283
3283
|
}
|
|
3284
|
-
},
|
|
3284
|
+
}, yt = class extends vt {
|
|
3285
3285
|
constructor(e, t, n, r) {
|
|
3286
3286
|
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
3287
3287
|
}
|
|
3288
|
-
},
|
|
3288
|
+
}, bt = class extends vt {
|
|
3289
3289
|
constructor(e, t, n) {
|
|
3290
3290
|
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
3291
3291
|
}
|
|
3292
|
-
},
|
|
3292
|
+
}, xt = class extends vt {
|
|
3293
3293
|
constructor(e, t) {
|
|
3294
3294
|
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
3295
3295
|
}
|
|
3296
3296
|
};
|
|
3297
|
-
function
|
|
3297
|
+
function St(e) {
|
|
3298
3298
|
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
3299
3299
|
let n = e[e.length - 1];
|
|
3300
3300
|
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
3301
3301
|
}, []);
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function Ct(e) {
|
|
3304
3304
|
return typeof e == "function";
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3307
|
-
if (e.length === 1 &&
|
|
3306
|
+
function wt(e, t, n, r, i, a, o) {
|
|
3307
|
+
if (e.length === 1 && ze(e[0])) return [{
|
|
3308
3308
|
type: 0,
|
|
3309
3309
|
value: e[0].value
|
|
3310
3310
|
}];
|
|
3311
3311
|
let s = [];
|
|
3312
3312
|
for (let c of e) {
|
|
3313
|
-
if (
|
|
3313
|
+
if (ze(c)) {
|
|
3314
3314
|
s.push({
|
|
3315
3315
|
type: 0,
|
|
3316
3316
|
value: c.value
|
|
3317
3317
|
});
|
|
3318
3318
|
continue;
|
|
3319
3319
|
}
|
|
3320
|
-
if (
|
|
3320
|
+
if (Ke(c)) {
|
|
3321
3321
|
typeof a == "number" && s.push({
|
|
3322
3322
|
type: 0,
|
|
3323
3323
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3325,33 +3325,33 @@ function yt(e, t, n, r, i, a, o) {
|
|
|
3325
3325
|
continue;
|
|
3326
3326
|
}
|
|
3327
3327
|
let { value: e } = c;
|
|
3328
|
-
if (!(i && e in i)) throw new
|
|
3328
|
+
if (!(i && e in i)) throw new xt(e, o);
|
|
3329
3329
|
let l = i[e];
|
|
3330
|
-
if (
|
|
3330
|
+
if (Be(c)) {
|
|
3331
3331
|
(!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
|
|
3332
3332
|
type: typeof l == "string" ? 0 : 1,
|
|
3333
3333
|
value: l
|
|
3334
3334
|
});
|
|
3335
3335
|
continue;
|
|
3336
3336
|
}
|
|
3337
|
-
if (
|
|
3338
|
-
let e = typeof c.style == "string" ? r.date[c.style] :
|
|
3337
|
+
if (He(c)) {
|
|
3338
|
+
let e = typeof c.style == "string" ? r.date[c.style] : Ye(c.style) ? c.style.parsedOptions : void 0;
|
|
3339
3339
|
s.push({
|
|
3340
3340
|
type: 0,
|
|
3341
3341
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3342
3342
|
});
|
|
3343
3343
|
continue;
|
|
3344
3344
|
}
|
|
3345
|
-
if (
|
|
3346
|
-
let e = typeof c.style == "string" ? r.time[c.style] :
|
|
3345
|
+
if (Ue(c)) {
|
|
3346
|
+
let e = typeof c.style == "string" ? r.time[c.style] : Ye(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3347
3347
|
s.push({
|
|
3348
3348
|
type: 0,
|
|
3349
3349
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3350
3350
|
});
|
|
3351
3351
|
continue;
|
|
3352
3352
|
}
|
|
3353
|
-
if (
|
|
3354
|
-
let e = typeof c.style == "string" ? r.number[c.style] :
|
|
3353
|
+
if (Ve(c)) {
|
|
3354
|
+
let e = typeof c.style == "string" ? r.number[c.style] : Je(c.style) ? c.style.parsedOptions : void 0;
|
|
3355
3355
|
if (e && e.scale) {
|
|
3356
3356
|
let t = e.scale || 1;
|
|
3357
3357
|
if (typeof l == "bigint") {
|
|
@@ -3365,37 +3365,37 @@ function yt(e, t, n, r, i, a, o) {
|
|
|
3365
3365
|
});
|
|
3366
3366
|
continue;
|
|
3367
3367
|
}
|
|
3368
|
-
if (
|
|
3368
|
+
if (qe(c)) {
|
|
3369
3369
|
let { children: e, value: l } = c, u = i[l];
|
|
3370
|
-
if (!
|
|
3371
|
-
let d = u(
|
|
3370
|
+
if (!Ct(u)) throw new bt(l, "function", o);
|
|
3371
|
+
let d = u(wt(e, t, n, r, i, a).map((e) => e.value));
|
|
3372
3372
|
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
3373
3373
|
type: typeof e == "string" ? 0 : 1,
|
|
3374
3374
|
value: e
|
|
3375
3375
|
})));
|
|
3376
3376
|
}
|
|
3377
|
-
if (
|
|
3377
|
+
if (We(c)) {
|
|
3378
3378
|
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
3379
|
-
if (!a) throw new
|
|
3380
|
-
s.push(...
|
|
3379
|
+
if (!a) throw new yt(c.value, l, Object.keys(c.options), o);
|
|
3380
|
+
s.push(...wt(a.value, t, n, r, i));
|
|
3381
3381
|
continue;
|
|
3382
3382
|
}
|
|
3383
|
-
if (
|
|
3383
|
+
if (Ge(c)) {
|
|
3384
3384
|
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
3385
3385
|
if (!a) {
|
|
3386
|
-
if (!Intl.PluralRules) throw new
|
|
3386
|
+
if (!Intl.PluralRules) throw new vt("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
3387
3387
|
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
3388
3388
|
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
3389
3389
|
}
|
|
3390
|
-
if (!a) throw new
|
|
3390
|
+
if (!a) throw new yt(c.value, l, Object.keys(c.options), o);
|
|
3391
3391
|
let u = typeof l == "bigint" ? Number(l) : l;
|
|
3392
|
-
s.push(...
|
|
3392
|
+
s.push(...wt(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
3393
3393
|
continue;
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
|
-
return
|
|
3396
|
+
return St(s);
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function Tt(e, t) {
|
|
3399
3399
|
return t ? {
|
|
3400
3400
|
...e,
|
|
3401
3401
|
...t,
|
|
@@ -3405,10 +3405,10 @@ function bt(e, t) {
|
|
|
3405
3405
|
}, n), {})
|
|
3406
3406
|
} : e;
|
|
3407
3407
|
}
|
|
3408
|
-
function
|
|
3409
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] =
|
|
3408
|
+
function Et(e, t) {
|
|
3409
|
+
return t ? Object.keys(e).reduce((n, r) => (n[r] = Tt(e[r], t[r]), n), { ...e }) : e;
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Dt(e) {
|
|
3412
3412
|
return { create() {
|
|
3413
3413
|
return {
|
|
3414
3414
|
get(t) {
|
|
@@ -3420,27 +3420,27 @@ function St(e) {
|
|
|
3420
3420
|
};
|
|
3421
3421
|
} };
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function Ot(e = {
|
|
3424
3424
|
number: {},
|
|
3425
3425
|
dateTime: {},
|
|
3426
3426
|
pluralRules: {}
|
|
3427
3427
|
}) {
|
|
3428
3428
|
return {
|
|
3429
|
-
getNumberFormat:
|
|
3430
|
-
cache:
|
|
3431
|
-
strategy:
|
|
3429
|
+
getNumberFormat: G((...e) => new Intl.NumberFormat(...e), {
|
|
3430
|
+
cache: Dt(e.number),
|
|
3431
|
+
strategy: _e.variadic
|
|
3432
3432
|
}),
|
|
3433
|
-
getDateTimeFormat:
|
|
3434
|
-
cache:
|
|
3435
|
-
strategy:
|
|
3433
|
+
getDateTimeFormat: G((...e) => new Intl.DateTimeFormat(...e), {
|
|
3434
|
+
cache: Dt(e.dateTime),
|
|
3435
|
+
strategy: _e.variadic
|
|
3436
3436
|
}),
|
|
3437
|
-
getPluralRules:
|
|
3438
|
-
cache:
|
|
3439
|
-
strategy:
|
|
3437
|
+
getPluralRules: G((...e) => new Intl.PluralRules(...e), {
|
|
3438
|
+
cache: Dt(e.pluralRules),
|
|
3439
|
+
strategy: _e.variadic
|
|
3440
3440
|
})
|
|
3441
3441
|
};
|
|
3442
3442
|
}
|
|
3443
|
-
var
|
|
3443
|
+
var kt = class e {
|
|
3444
3444
|
constructor(t, n = e.defaultLocale, r, i) {
|
|
3445
3445
|
if (this.formatterCache = {
|
|
3446
3446
|
number: {},
|
|
@@ -3451,7 +3451,7 @@ var wt = class e {
|
|
|
3451
3451
|
if (t.length === 1) return t[0].value;
|
|
3452
3452
|
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), []);
|
|
3453
3453
|
return n.length <= 1 ? n[0] || "" : n;
|
|
3454
|
-
}, this.formatToParts = (e) =>
|
|
3454
|
+
}, this.formatToParts = (e) => wt(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") {
|
|
3455
3455
|
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3456
3456
|
let { ...n } = i || {};
|
|
3457
3457
|
this.ast = e.__parse(t, {
|
|
@@ -3460,7 +3460,7 @@ var wt = class e {
|
|
|
3460
3460
|
});
|
|
3461
3461
|
} else this.ast = t;
|
|
3462
3462
|
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
3463
|
-
this.formats =
|
|
3463
|
+
this.formats = Et(e.formats, r), this.formatters = i && i.formatters || Ot(this.formatterCache);
|
|
3464
3464
|
}
|
|
3465
3465
|
static {
|
|
3466
3466
|
this.memoizedDefaultLocale = null;
|
|
@@ -3476,7 +3476,7 @@ var wt = class e {
|
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
static {
|
|
3479
|
-
this.__parse =
|
|
3479
|
+
this.__parse = _t;
|
|
3480
3480
|
}
|
|
3481
3481
|
static {
|
|
3482
3482
|
this.formats = {
|
|
@@ -3536,9 +3536,9 @@ var wt = class e {
|
|
|
3536
3536
|
};
|
|
3537
3537
|
//#endregion
|
|
3538
3538
|
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3539
|
-
function
|
|
3540
|
-
if (Array.isArray(t)) throw new
|
|
3541
|
-
if (typeof t == "object") throw new
|
|
3539
|
+
function At(...[e, t, n, r]) {
|
|
3540
|
+
if (Array.isArray(t)) throw new q(J.INVALID_MESSAGE, void 0);
|
|
3541
|
+
if (typeof t == "object") throw new q(J.INSUFFICIENT_PATH, void 0);
|
|
3542
3542
|
if (typeof t == "string") {
|
|
3543
3543
|
let e = function(e, t) {
|
|
3544
3544
|
return t || /'[{}]/.test(e) ? void 0 : e;
|
|
@@ -3547,14 +3547,14 @@ function Tt(...[e, t, n, r]) {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3549
3549
|
o.getMessageFormat ||= function(e, t) {
|
|
3550
|
-
return
|
|
3550
|
+
return ye(((...e) => new kt(e[0], e[1], e[2], {
|
|
3551
3551
|
formatters: t,
|
|
3552
3552
|
...e[3]
|
|
3553
3553
|
})), e.message);
|
|
3554
3554
|
}(i, o);
|
|
3555
3555
|
try {
|
|
3556
3556
|
u = o.getMessageFormat(t, c, function(e, t, n) {
|
|
3557
|
-
let r =
|
|
3557
|
+
let r = kt.formats.date, i = kt.formats.time, a = {
|
|
3558
3558
|
...e?.dateTime,
|
|
3559
3559
|
...t?.dateTime
|
|
3560
3560
|
}, o = {
|
|
@@ -3586,25 +3586,25 @@ function Tt(...[e, t, n, r]) {
|
|
|
3586
3586
|
})
|
|
3587
3587
|
} });
|
|
3588
3588
|
} catch {
|
|
3589
|
-
throw new
|
|
3589
|
+
throw new q(J.INVALID_MESSAGE, void 0);
|
|
3590
3590
|
}
|
|
3591
3591
|
let d = u.format(n);
|
|
3592
|
-
return (0,
|
|
3592
|
+
return (0, Ce.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
3593
3593
|
}
|
|
3594
|
-
|
|
3594
|
+
At.raw = !0;
|
|
3595
3595
|
//#endregion
|
|
3596
3596
|
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
|
|
3597
|
-
function
|
|
3597
|
+
function jt(...e) {
|
|
3598
3598
|
return e.filter(Boolean).join(".");
|
|
3599
3599
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3600
|
+
function Mt(e) {
|
|
3601
|
+
return jt(e.namespace, e.key);
|
|
3602
3602
|
}
|
|
3603
|
-
function
|
|
3603
|
+
function Nt(e) {
|
|
3604
3604
|
console.error(e);
|
|
3605
3605
|
}
|
|
3606
|
-
function
|
|
3607
|
-
let i =
|
|
3606
|
+
function Pt(e, t, n, r) {
|
|
3607
|
+
let i = jt(r, n);
|
|
3608
3608
|
if (!t) throw Error(i);
|
|
3609
3609
|
let a = t;
|
|
3610
3610
|
return n.split(".").forEach(((t) => {
|
|
@@ -3613,21 +3613,21 @@ function kt(e, t, n, r) {
|
|
|
3613
3613
|
a = n;
|
|
3614
3614
|
})), a;
|
|
3615
3615
|
}
|
|
3616
|
-
function
|
|
3616
|
+
function Ft(e) {
|
|
3617
3617
|
let t = function(e, t, n) {
|
|
3618
3618
|
try {
|
|
3619
3619
|
if (!t) throw Error(void 0);
|
|
3620
|
-
let r = n ?
|
|
3620
|
+
let r = n ? Pt(e, t, n) : t;
|
|
3621
3621
|
if (!r) throw Error(n);
|
|
3622
3622
|
return r;
|
|
3623
3623
|
} catch (e) {
|
|
3624
|
-
return new
|
|
3624
|
+
return new q(J.MISSING_MESSAGE, e.message);
|
|
3625
3625
|
}
|
|
3626
3626
|
}(e.locale, e.messages, e.namespace);
|
|
3627
|
-
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r =
|
|
3628
|
-
let l = a instanceof
|
|
3627
|
+
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = Mt, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3628
|
+
let l = a instanceof q;
|
|
3629
3629
|
function u(e, t, n, i) {
|
|
3630
|
-
let a = new
|
|
3630
|
+
let a = new q(t, n);
|
|
3631
3631
|
return s(a), i ?? r({
|
|
3632
3632
|
error: a,
|
|
3633
3633
|
key: e,
|
|
@@ -3646,20 +3646,20 @@ function At(e) {
|
|
|
3646
3646
|
} else {
|
|
3647
3647
|
let e = a;
|
|
3648
3648
|
try {
|
|
3649
|
-
g =
|
|
3649
|
+
g = Pt(i, e, d, o);
|
|
3650
3650
|
} catch (e) {
|
|
3651
|
-
if (!h) return u(d,
|
|
3651
|
+
if (!h) return u(d, J.MISSING_MESSAGE, e.message, h);
|
|
3652
3652
|
g = h;
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
3655
3655
|
try {
|
|
3656
|
-
return
|
|
3656
|
+
return At(jt(o, d), g, f && function(e) {
|
|
3657
3657
|
let t = {};
|
|
3658
3658
|
return Object.keys(e).forEach(((n) => {
|
|
3659
3659
|
let r = 0, i = e[n], a;
|
|
3660
3660
|
a = typeof i == "function" ? (e) => {
|
|
3661
3661
|
let t = i(e);
|
|
3662
|
-
return (0,
|
|
3662
|
+
return (0, Ce.isValidElement)(t) ? (0, Ce.cloneElement)(t, { key: n + r++ }) : t;
|
|
3663
3663
|
} : i, t[n] = a;
|
|
3664
3664
|
})), t;
|
|
3665
3665
|
}(f), {
|
|
@@ -3672,12 +3672,12 @@ function At(e) {
|
|
|
3672
3672
|
});
|
|
3673
3673
|
} catch (e) {
|
|
3674
3674
|
let t, n;
|
|
3675
|
-
return e instanceof
|
|
3675
|
+
return e instanceof q ? (t = e.code, n = e.originalMessage) : (t = J.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
|
|
3676
3676
|
}
|
|
3677
3677
|
}
|
|
3678
3678
|
function f(e, t, n, r) {
|
|
3679
3679
|
let i = d(e, t, n, r);
|
|
3680
|
-
return typeof i == "string" ? i : u(e,
|
|
3680
|
+
return typeof i == "string" ? i : u(e, J.INVALID_MESSAGE, void 0);
|
|
3681
3681
|
}
|
|
3682
3682
|
return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
|
|
3683
3683
|
if (l) return s(a), r({
|
|
@@ -3687,14 +3687,14 @@ function At(e) {
|
|
|
3687
3687
|
});
|
|
3688
3688
|
let t = a;
|
|
3689
3689
|
try {
|
|
3690
|
-
return
|
|
3690
|
+
return Pt(i, t, e, o);
|
|
3691
3691
|
} catch (t) {
|
|
3692
|
-
return u(e,
|
|
3692
|
+
return u(e, J.MISSING_MESSAGE, t.message);
|
|
3693
3693
|
}
|
|
3694
3694
|
}, f.has = (e) => {
|
|
3695
3695
|
if (l) return !1;
|
|
3696
3696
|
try {
|
|
3697
|
-
return
|
|
3697
|
+
return Pt(i, a, e, o), !0;
|
|
3698
3698
|
} catch {
|
|
3699
3699
|
return !1;
|
|
3700
3700
|
}
|
|
@@ -3704,16 +3704,16 @@ function At(e) {
|
|
|
3704
3704
|
messagesOrError: t
|
|
3705
3705
|
});
|
|
3706
3706
|
}
|
|
3707
|
-
function
|
|
3707
|
+
function It(e, t) {
|
|
3708
3708
|
return e === t ? void 0 : e.slice((t + ".").length);
|
|
3709
3709
|
}
|
|
3710
|
-
var
|
|
3711
|
-
7 *
|
|
3710
|
+
var Lt = 86400;
|
|
3711
|
+
7 * Lt, 365 * Lt;
|
|
3712
3712
|
//#endregion
|
|
3713
3713
|
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/core.js
|
|
3714
|
-
function
|
|
3714
|
+
function Rt({ _cache: e = ve(), _formatters: t = be(e), getMessageFallback: n = Mt, messages: r, namespace: i, onError: a = Nt, ...o }) {
|
|
3715
3715
|
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3716
|
-
return e = e[r], t =
|
|
3716
|
+
return e = e[r], t = It(t, r), Ft({
|
|
3717
3717
|
...n,
|
|
3718
3718
|
messages: e,
|
|
3719
3719
|
namespace: t
|
|
@@ -3730,48 +3730,48 @@ function Nt({ _cache: e = pe(), _formatters: t = he(e), getMessageFallback: n =
|
|
|
3730
3730
|
}
|
|
3731
3731
|
//#endregion
|
|
3732
3732
|
//#region src/i18n/index.ts
|
|
3733
|
-
var
|
|
3733
|
+
var zt = "en", Bt = (e) => Rt({
|
|
3734
3734
|
locale: e,
|
|
3735
|
-
messages:
|
|
3735
|
+
messages: R(e),
|
|
3736
3736
|
namespace: "folio"
|
|
3737
|
-
}),
|
|
3738
|
-
v(
|
|
3739
|
-
},
|
|
3740
|
-
let e = u(
|
|
3737
|
+
}), Vt = Symbol("folioTranslator"), Ht = n(() => Bt("en")), Ut = (e = "en") => {
|
|
3738
|
+
v(Vt, n(() => Bt(w(e))));
|
|
3739
|
+
}, Z = () => {
|
|
3740
|
+
let e = u(Vt, Ht);
|
|
3741
3741
|
return { t: (t, n) => e.value(t, n) };
|
|
3742
|
-
},
|
|
3743
|
-
e.provide(
|
|
3744
|
-
} },
|
|
3742
|
+
}, Wt = { install(e, t = "en") {
|
|
3743
|
+
e.provide(Vt, n(() => Bt(w(t))));
|
|
3744
|
+
} }, Gt = [
|
|
3745
3745
|
"disabled",
|
|
3746
3746
|
"title",
|
|
3747
3747
|
"aria-label"
|
|
3748
|
-
],
|
|
3748
|
+
], Kt = [
|
|
3749
3749
|
"disabled",
|
|
3750
3750
|
"title",
|
|
3751
3751
|
"aria-label",
|
|
3752
3752
|
"aria-expanded"
|
|
3753
|
-
],
|
|
3753
|
+
], qt = [
|
|
3754
3754
|
"disabled",
|
|
3755
3755
|
"title",
|
|
3756
3756
|
"aria-label",
|
|
3757
3757
|
"aria-expanded"
|
|
3758
|
-
],
|
|
3758
|
+
], Jt = { class: "docx-color-picker__button-stack" }, Yt = ["aria-label"], Xt = {
|
|
3759
3759
|
key: 0,
|
|
3760
3760
|
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--none"
|
|
3761
|
-
},
|
|
3761
|
+
}, Zt = {
|
|
3762
3762
|
key: 1,
|
|
3763
3763
|
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--auto"
|
|
3764
|
-
},
|
|
3764
|
+
}, Qt = { class: "docx-color-picker__section-label" }, $t = { class: "docx-color-picker__grid" }, en = [
|
|
3765
3765
|
"title",
|
|
3766
3766
|
"aria-label",
|
|
3767
3767
|
"aria-selected",
|
|
3768
3768
|
"onClick"
|
|
3769
|
-
],
|
|
3769
|
+
], tn = { class: "docx-color-picker__section-label" }, nn = { class: "docx-color-picker__grid" }, rn = [
|
|
3770
3770
|
"title",
|
|
3771
3771
|
"aria-label",
|
|
3772
3772
|
"aria-selected",
|
|
3773
3773
|
"onClick"
|
|
3774
|
-
],
|
|
3774
|
+
], an = { class: "docx-color-picker__section-label" }, on = { class: "docx-color-picker__custom" }, sn = ["onKeydown"], cn = ["disabled"], ln = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
3775
3775
|
__name: "ColorPicker",
|
|
3776
3776
|
props: {
|
|
3777
3777
|
mode: {},
|
|
@@ -3794,7 +3794,7 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
3794
3794
|
},
|
|
3795
3795
|
emits: ["change"],
|
|
3796
3796
|
setup(t, { emit: r }) {
|
|
3797
|
-
let l = t, u = r, { t: d } =
|
|
3797
|
+
let l = t, u = r, { t: d } = Z(), f = [
|
|
3798
3798
|
{
|
|
3799
3799
|
nameKey: "colorPicker.colors.darkRed",
|
|
3800
3800
|
hex: "C00000"
|
|
@@ -3837,92 +3837,92 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
3837
3837
|
}
|
|
3838
3838
|
];
|
|
3839
3839
|
function v(e) {
|
|
3840
|
-
return e ? typeof e == "string" ? l.mode === "highlight" ?
|
|
3840
|
+
return e ? typeof e == "string" ? l.mode === "highlight" ? ee(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : I(e, l.theme) : l.mode === "text" || l.mode === "border" ? "#000000" : "transparent";
|
|
3841
3841
|
}
|
|
3842
|
-
function
|
|
3842
|
+
function y(e) {
|
|
3843
3843
|
return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
|
|
3844
3844
|
}
|
|
3845
|
-
function
|
|
3845
|
+
function S(e) {
|
|
3846
3846
|
let t = e.replace(/^#/, "");
|
|
3847
3847
|
if (t.length !== 6) return !1;
|
|
3848
3848
|
let n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
3849
3849
|
return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
|
|
3850
3850
|
}
|
|
3851
|
-
function
|
|
3852
|
-
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() :
|
|
3851
|
+
function w(e, t) {
|
|
3852
|
+
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : L(e, l.theme)) === t.toUpperCase() : !1;
|
|
3853
3853
|
}
|
|
3854
3854
|
function E(e) {
|
|
3855
3855
|
return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3857
|
+
function D(e) {
|
|
3858
3858
|
return d(e === "text" ? "fontColor" : e === "highlight" ? "formattingBar.highlightColor" : "table.borderColor");
|
|
3859
3859
|
}
|
|
3860
|
-
function
|
|
3860
|
+
function O(e) {
|
|
3861
3861
|
return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
|
|
3862
3862
|
}
|
|
3863
|
-
let
|
|
3863
|
+
let j = b(!1), R = b(""), te = b(null), z = b(null), B = b(l.defaultColor ?? E(l.mode)), V = n(() => F(l.theme?.colorScheme ?? null)), ne = n(() => V.value.flatMap((e, t) => e.map((e, n) => ({
|
|
3864
3864
|
...e,
|
|
3865
3865
|
key: `${t}-${n}`
|
|
3866
|
-
})))),
|
|
3867
|
-
|
|
3866
|
+
})))), re = n(() => v(l.value)), H = n(() => v(B.value)), W = n(() => D(l.mode)), ie = n(() => l.icon ?? O(l.mode));
|
|
3867
|
+
A(() => [
|
|
3868
3868
|
l.value,
|
|
3869
3869
|
l.mode,
|
|
3870
3870
|
l.theme
|
|
3871
3871
|
], () => {
|
|
3872
3872
|
let e = v(l.value).replace(/^#/, "");
|
|
3873
|
-
/^[0-9A-Fa-f]{6}$/.test(e) && (
|
|
3873
|
+
/^[0-9A-Fa-f]{6}$/.test(e) && (R.value = e.toUpperCase());
|
|
3874
3874
|
}, { immediate: !0 });
|
|
3875
|
-
let
|
|
3876
|
-
function
|
|
3877
|
-
let e =
|
|
3875
|
+
let ae = b({});
|
|
3876
|
+
function oe() {
|
|
3877
|
+
let e = te.value;
|
|
3878
3878
|
if (!e) return;
|
|
3879
3879
|
let t = e.getBoundingClientRect();
|
|
3880
|
-
|
|
3880
|
+
ae.value = {
|
|
3881
3881
|
top: `${t.bottom + 4}px`,
|
|
3882
3882
|
left: `${t.left}px`
|
|
3883
3883
|
};
|
|
3884
3884
|
}
|
|
3885
|
-
function
|
|
3886
|
-
l.disabled || (
|
|
3885
|
+
function se() {
|
|
3886
|
+
l.disabled || (j.value || oe(), j.value = !j.value);
|
|
3887
3887
|
}
|
|
3888
|
-
function
|
|
3889
|
-
t && (
|
|
3888
|
+
function G(e, t = !0) {
|
|
3889
|
+
t && (B.value = e), u("change", e), j.value = !1;
|
|
3890
3890
|
}
|
|
3891
|
-
function
|
|
3892
|
-
l.disabled || u("change",
|
|
3891
|
+
function ce() {
|
|
3892
|
+
l.disabled || u("change", B.value);
|
|
3893
3893
|
}
|
|
3894
|
-
function
|
|
3894
|
+
function le(e) {
|
|
3895
3895
|
if (l.mode === "highlight") {
|
|
3896
|
-
|
|
3896
|
+
G(e.hex);
|
|
3897
3897
|
return;
|
|
3898
3898
|
}
|
|
3899
3899
|
let t = {
|
|
3900
3900
|
themeColor: e.themeSlot,
|
|
3901
3901
|
rgb: e.hex
|
|
3902
3902
|
};
|
|
3903
|
-
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade),
|
|
3903
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), G(t);
|
|
3904
3904
|
}
|
|
3905
|
-
function
|
|
3906
|
-
|
|
3905
|
+
function K(e) {
|
|
3906
|
+
G(l.mode === "highlight" ? e : { rgb: e });
|
|
3907
3907
|
}
|
|
3908
|
-
function
|
|
3909
|
-
|
|
3908
|
+
function ue() {
|
|
3909
|
+
G(l.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3912
|
-
let e =
|
|
3913
|
-
|
|
3911
|
+
function de() {
|
|
3912
|
+
let e = R.value.replace(/^#/, "").toUpperCase();
|
|
3913
|
+
y(e) && (G(l.mode === "highlight" ? e : { rgb: e }), R.value = "");
|
|
3914
3914
|
}
|
|
3915
|
-
function
|
|
3915
|
+
function fe(e) {
|
|
3916
3916
|
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
3917
3917
|
}
|
|
3918
|
-
function
|
|
3919
|
-
if (!
|
|
3918
|
+
function pe(e) {
|
|
3919
|
+
if (!j.value) return;
|
|
3920
3920
|
let t = e.target;
|
|
3921
|
-
t instanceof Node && (
|
|
3921
|
+
t instanceof Node && (te.value?.contains(t) || z.value?.contains(t) || (j.value = !1));
|
|
3922
3922
|
}
|
|
3923
|
-
return g(() => document.addEventListener("mousedown",
|
|
3923
|
+
return g(() => document.addEventListener("mousedown", pe)), h(() => document.removeEventListener("mousedown", pe)), (n, r) => (_(), a("div", {
|
|
3924
3924
|
ref_key: "containerRef",
|
|
3925
|
-
ref:
|
|
3925
|
+
ref: te,
|
|
3926
3926
|
class: p(["docx-color-picker", t.className]),
|
|
3927
3927
|
style: m(t.style)
|
|
3928
3928
|
}, [t.splitButton ? (_(), a("div", {
|
|
@@ -3932,117 +3932,117 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
3932
3932
|
type: "button",
|
|
3933
3933
|
class: "docx-color-picker__apply",
|
|
3934
3934
|
disabled: t.disabled,
|
|
3935
|
-
title: t.title ??
|
|
3936
|
-
"aria-label": t.title ??
|
|
3937
|
-
onMousedown: r[0] ||=
|
|
3938
|
-
onClick:
|
|
3935
|
+
title: t.title ?? W.value,
|
|
3936
|
+
"aria-label": t.title ?? W.value,
|
|
3937
|
+
onMousedown: r[0] ||= P(() => {}, ["prevent"]),
|
|
3938
|
+
onClick: ce
|
|
3939
3939
|
}, [c(U, {
|
|
3940
|
-
name:
|
|
3940
|
+
name: ie.value,
|
|
3941
3941
|
size: 18
|
|
3942
3942
|
}, null, 8, ["name"]), o("span", {
|
|
3943
|
-
class: p(["docx-color-picker__bar", { "is-light":
|
|
3944
|
-
style: m({ background:
|
|
3945
|
-
}, null, 6)], 40,
|
|
3943
|
+
class: p(["docx-color-picker__bar", { "is-light": H.value === "transparent" || S(H.value) }]),
|
|
3944
|
+
style: m({ background: H.value === "transparent" ? "#fff" : H.value })
|
|
3945
|
+
}, null, 6)], 40, Gt), o("button", {
|
|
3946
3946
|
type: "button",
|
|
3947
|
-
class: p(["docx-color-picker__arrow", { "is-open":
|
|
3947
|
+
class: p(["docx-color-picker__arrow", { "is-open": j.value }]),
|
|
3948
3948
|
disabled: t.disabled,
|
|
3949
|
-
title: t.title ??
|
|
3950
|
-
"aria-label": t.title ??
|
|
3949
|
+
title: t.title ?? W.value,
|
|
3950
|
+
"aria-label": t.title ?? W.value,
|
|
3951
3951
|
"aria-haspopup": "true",
|
|
3952
|
-
"aria-expanded":
|
|
3953
|
-
onMousedown: r[1] ||=
|
|
3954
|
-
onClick:
|
|
3952
|
+
"aria-expanded": j.value,
|
|
3953
|
+
onMousedown: r[1] ||= P(() => {}, ["prevent"]),
|
|
3954
|
+
onClick: se
|
|
3955
3955
|
}, [c(U, {
|
|
3956
3956
|
name: "arrow_drop_down",
|
|
3957
3957
|
size: 18
|
|
3958
|
-
})], 42,
|
|
3958
|
+
})], 42, Kt)], 2)) : (_(), a("button", {
|
|
3959
3959
|
key: 1,
|
|
3960
3960
|
type: "button",
|
|
3961
|
-
class: p(["docx-color-picker__button", { "is-open":
|
|
3961
|
+
class: p(["docx-color-picker__button", { "is-open": j.value }]),
|
|
3962
3962
|
disabled: t.disabled,
|
|
3963
|
-
title: t.title ??
|
|
3964
|
-
"aria-label": t.title ??
|
|
3963
|
+
title: t.title ?? W.value,
|
|
3964
|
+
"aria-label": t.title ?? W.value,
|
|
3965
3965
|
"aria-haspopup": "true",
|
|
3966
|
-
"aria-expanded":
|
|
3967
|
-
onMousedown: r[2] ||=
|
|
3968
|
-
onClick:
|
|
3969
|
-
}, [o("span",
|
|
3970
|
-
name:
|
|
3966
|
+
"aria-expanded": j.value,
|
|
3967
|
+
onMousedown: r[2] ||= P(() => {}, ["prevent"]),
|
|
3968
|
+
onClick: se
|
|
3969
|
+
}, [o("span", Jt, [c(U, {
|
|
3970
|
+
name: ie.value,
|
|
3971
3971
|
size: 18
|
|
3972
3972
|
}, null, 8, ["name"]), o("span", {
|
|
3973
|
-
class: p(["docx-color-picker__bar", { "is-light":
|
|
3974
|
-
style: m({ background:
|
|
3973
|
+
class: p(["docx-color-picker__bar", { "is-light": re.value === "transparent" || S(re.value) }]),
|
|
3974
|
+
style: m({ background: re.value === "transparent" ? "#fff" : re.value })
|
|
3975
3975
|
}, null, 6)]), c(U, {
|
|
3976
3976
|
name: "arrow_drop_down",
|
|
3977
3977
|
size: 14
|
|
3978
|
-
})], 42,
|
|
3978
|
+
})], 42, qt)), j.value && !t.disabled ? (_(), a("div", {
|
|
3979
3979
|
key: 2,
|
|
3980
3980
|
ref_key: "panelRef",
|
|
3981
|
-
ref:
|
|
3981
|
+
ref: z,
|
|
3982
3982
|
class: "docx-color-picker__panel",
|
|
3983
|
-
style: m(
|
|
3983
|
+
style: m(ae.value),
|
|
3984
3984
|
role: "dialog",
|
|
3985
|
-
"aria-label":
|
|
3986
|
-
onMousedown:
|
|
3985
|
+
"aria-label": T(d)("colorPicker.ariaLabel", { type: W.value }),
|
|
3986
|
+
onMousedown: fe
|
|
3987
3987
|
}, [
|
|
3988
3988
|
o("button", {
|
|
3989
3989
|
type: "button",
|
|
3990
3990
|
class: "docx-color-picker__auto",
|
|
3991
|
-
onMousedown: r[3] ||=
|
|
3992
|
-
onClick:
|
|
3993
|
-
}, [t.mode === "highlight" ? (_(), a("span",
|
|
3991
|
+
onMousedown: r[3] ||= P(() => {}, ["prevent"]),
|
|
3992
|
+
onClick: ue
|
|
3993
|
+
}, [t.mode === "highlight" ? (_(), a("span", Xt, [...r[10] ||= [o("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (_(), a("span", Zt)), s(" " + C(t.autoLabel ?? (t.mode === "highlight" ? T(d)("colorPicker.noColor") : T(d)("colorPicker.automatic"))), 1)], 32),
|
|
3994
3994
|
r[12] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
3995
|
-
o("div",
|
|
3996
|
-
o("div",
|
|
3995
|
+
o("div", Qt, C(T(d)("colorPicker.themeColors")), 1),
|
|
3996
|
+
o("div", $t, [(_(!0), a(e, null, x(ne.value, (e) => (_(), a("button", {
|
|
3997
3997
|
key: e.key,
|
|
3998
3998
|
type: "button",
|
|
3999
|
-
class: p(["docx-color-picker__cell", { "is-selected":
|
|
3999
|
+
class: p(["docx-color-picker__cell", { "is-selected": w(t.value, e.hex) }]),
|
|
4000
4000
|
style: m({ background: "#" + e.hex }),
|
|
4001
4001
|
title: e.label,
|
|
4002
4002
|
"aria-label": e.label,
|
|
4003
|
-
"aria-selected":
|
|
4004
|
-
onMousedown: r[4] ||=
|
|
4005
|
-
onClick: (t) =>
|
|
4006
|
-
}, null, 46,
|
|
4003
|
+
"aria-selected": w(t.value, e.hex),
|
|
4004
|
+
onMousedown: r[4] ||= P(() => {}, ["prevent"]),
|
|
4005
|
+
onClick: (t) => le(e)
|
|
4006
|
+
}, null, 46, en))), 128))]),
|
|
4007
4007
|
r[13] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4008
|
-
o("div",
|
|
4009
|
-
o("div",
|
|
4008
|
+
o("div", tn, C(T(d)("colorPicker.standardColors")), 1),
|
|
4009
|
+
o("div", nn, [(_(), a(e, null, x(f, (e) => o("button", {
|
|
4010
4010
|
key: e.hex,
|
|
4011
4011
|
type: "button",
|
|
4012
|
-
class: p(["docx-color-picker__cell", { "is-selected":
|
|
4012
|
+
class: p(["docx-color-picker__cell", { "is-selected": w(t.value, e.hex) }]),
|
|
4013
4013
|
style: m({ background: "#" + e.hex }),
|
|
4014
|
-
title:
|
|
4015
|
-
"aria-label":
|
|
4016
|
-
"aria-selected":
|
|
4017
|
-
onMousedown: r[5] ||=
|
|
4018
|
-
onClick: (t) =>
|
|
4019
|
-
}, null, 46,
|
|
4014
|
+
title: T(d)(e.nameKey),
|
|
4015
|
+
"aria-label": T(d)(e.nameKey),
|
|
4016
|
+
"aria-selected": w(t.value, e.hex),
|
|
4017
|
+
onMousedown: r[5] ||= P(() => {}, ["prevent"]),
|
|
4018
|
+
onClick: (t) => K(e.hex)
|
|
4019
|
+
}, null, 46, rn)), 64))]),
|
|
4020
4020
|
r[14] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4021
|
-
o("div",
|
|
4022
|
-
o("div",
|
|
4021
|
+
o("div", an, C(T(d)("colorPicker.customColor")), 1),
|
|
4022
|
+
o("div", on, [
|
|
4023
4023
|
r[11] ||= o("span", { class: "docx-color-picker__hash" }, "#", -1),
|
|
4024
|
-
|
|
4025
|
-
"onUpdate:modelValue": r[6] ||= (e) =>
|
|
4024
|
+
M(o("input", {
|
|
4025
|
+
"onUpdate:modelValue": r[6] ||= (e) => R.value = e,
|
|
4026
4026
|
type: "text",
|
|
4027
4027
|
class: "docx-color-picker__hex",
|
|
4028
4028
|
placeholder: "FF0000",
|
|
4029
4029
|
maxlength: "6",
|
|
4030
4030
|
"aria-label": "Custom hex color",
|
|
4031
|
-
onInput: r[7] ||= (e) =>
|
|
4032
|
-
onKeydown:
|
|
4033
|
-
onMousedown: r[8] ||=
|
|
4034
|
-
}, null, 40,
|
|
4031
|
+
onInput: r[7] ||= (e) => R.value = R.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
|
|
4032
|
+
onKeydown: N(P(de, ["prevent"]), ["enter"]),
|
|
4033
|
+
onMousedown: r[8] ||= P(() => {}, ["stop"])
|
|
4034
|
+
}, null, 40, sn), [[k, R.value]]),
|
|
4035
4035
|
o("button", {
|
|
4036
4036
|
type: "button",
|
|
4037
4037
|
class: "docx-color-picker__apply-btn",
|
|
4038
|
-
disabled: !
|
|
4039
|
-
onMousedown: r[9] ||=
|
|
4040
|
-
onClick:
|
|
4041
|
-
},
|
|
4038
|
+
disabled: !y(R.value),
|
|
4039
|
+
onMousedown: r[9] ||= P(() => {}, ["prevent"]),
|
|
4040
|
+
onClick: de
|
|
4041
|
+
}, C(T(d)("common.apply")), 41, cn)
|
|
4042
4042
|
])
|
|
4043
|
-
], 44,
|
|
4043
|
+
], 44, Yt)) : i("", !0)], 6));
|
|
4044
4044
|
}
|
|
4045
|
-
}), [["__scopeId", "data-v-ea5dcc9f"]]),
|
|
4045
|
+
}), [["__scopeId", "data-v-ea5dcc9f"]]), un = ["value", "autofocus"], dn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4046
4046
|
__name: "DatePickerPopover",
|
|
4047
4047
|
props: {
|
|
4048
4048
|
value: {},
|
|
@@ -4067,9 +4067,9 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4067
4067
|
value: s.value,
|
|
4068
4068
|
autofocus: e.defaultOpen,
|
|
4069
4069
|
onChange: c
|
|
4070
|
-
}, null, 40,
|
|
4070
|
+
}, null, 40, un));
|
|
4071
4071
|
}
|
|
4072
|
-
}), [["__scopeId", "data-v-9009c416"]]),
|
|
4072
|
+
}), [["__scopeId", "data-v-9009c416"]]), fn = ["aria-label"], pn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4073
4073
|
inheritAttrs: !1,
|
|
4074
4074
|
__name: "Dialog",
|
|
4075
4075
|
props: {
|
|
@@ -4094,17 +4094,17 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4094
4094
|
return (n, s) => (_(), r(t, { to: "body" }, [e.open ? (_(), a("div", {
|
|
4095
4095
|
key: 0,
|
|
4096
4096
|
class: p(["folio-default-dialog-backdrop", e.backdropClass]),
|
|
4097
|
-
onMousedown:
|
|
4097
|
+
onMousedown: P(u, ["self"])
|
|
4098
4098
|
}, [o("div", d({
|
|
4099
4099
|
class: ["folio-default-dialog-popup", e.className],
|
|
4100
4100
|
role: "dialog",
|
|
4101
4101
|
"aria-label": e.ariaLabel
|
|
4102
4102
|
}, n.$attrs, {
|
|
4103
|
-
onKeydown:
|
|
4104
|
-
onMousedown: s[0] ||=
|
|
4105
|
-
}), [
|
|
4103
|
+
onKeydown: N(l, ["escape"]),
|
|
4104
|
+
onMousedown: s[0] ||= P(() => {}, ["stop"])
|
|
4105
|
+
}), [S(n.$slots, "default", {}, void 0, !0)], 16, fn)], 34)) : i("", !0)]));
|
|
4106
4106
|
}
|
|
4107
|
-
}), [["__scopeId", "data-v-e043cdc9"]]),
|
|
4107
|
+
}), [["__scopeId", "data-v-e043cdc9"]]), mn = ["value"], hn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4108
4108
|
__name: "Input",
|
|
4109
4109
|
props: {
|
|
4110
4110
|
modelValue: {},
|
|
@@ -4117,7 +4117,7 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4117
4117
|
function i(e) {
|
|
4118
4118
|
e.target instanceof HTMLInputElement && r("update:modelValue", e.target.value);
|
|
4119
4119
|
}
|
|
4120
|
-
let o =
|
|
4120
|
+
let o = b(null);
|
|
4121
4121
|
return t({
|
|
4122
4122
|
focus: () => o.value?.focus(),
|
|
4123
4123
|
select: () => o.value?.select()
|
|
@@ -4127,9 +4127,9 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4127
4127
|
class: p(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
|
|
4128
4128
|
value: e.modelValue,
|
|
4129
4129
|
onInput: i
|
|
4130
|
-
}, null, 42,
|
|
4130
|
+
}, null, 42, mn));
|
|
4131
4131
|
}
|
|
4132
|
-
}), [["__scopeId", "data-v-bfe0d407"]]),
|
|
4132
|
+
}), [["__scopeId", "data-v-bfe0d407"]]), gn = 4, _n = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4133
4133
|
__name: "Popover",
|
|
4134
4134
|
props: {
|
|
4135
4135
|
open: { type: Boolean },
|
|
@@ -4143,12 +4143,12 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4143
4143
|
},
|
|
4144
4144
|
emits: ["close", "update:open"],
|
|
4145
4145
|
setup(e, { emit: t }) {
|
|
4146
|
-
let n = e, r = t, o =
|
|
4146
|
+
let n = e, r = t, o = b(null), s = b(null), c = b({ position: "fixed" });
|
|
4147
4147
|
function l() {
|
|
4148
4148
|
let e = o.value;
|
|
4149
4149
|
if (!e) return;
|
|
4150
4150
|
let t = e.getBoundingClientRect(), r = { position: "fixed" };
|
|
4151
|
-
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top +
|
|
4151
|
+
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + gn)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + gn)}px`, r.bottom = "auto"), n.placement.endsWith("right") ? (r.right = `${Math.round(window.innerWidth - t.right)}px`, r.left = "auto") : (r.left = `${Math.round(t.left)}px`, r.right = "auto"), c.value = r;
|
|
4152
4152
|
}
|
|
4153
4153
|
function u() {
|
|
4154
4154
|
r("update:open", !n.open), n.open && r("close");
|
|
@@ -4164,27 +4164,27 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4164
4164
|
function v(e) {
|
|
4165
4165
|
e.key === "Escape" && n.open && d();
|
|
4166
4166
|
}
|
|
4167
|
-
function
|
|
4167
|
+
function y(e) {
|
|
4168
4168
|
!n.closeOnScroll || !n.open || e.target instanceof Node && s.value?.contains(e.target) || d();
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4170
|
+
function x() {
|
|
4171
4171
|
n.open && l();
|
|
4172
4172
|
}
|
|
4173
4173
|
function C() {
|
|
4174
|
-
document.addEventListener("mousedown", f), document.addEventListener("keydown", v), window.addEventListener("scroll",
|
|
4174
|
+
document.addEventListener("mousedown", f), document.addEventListener("keydown", v), window.addEventListener("scroll", y, !0), window.addEventListener("resize", x);
|
|
4175
4175
|
}
|
|
4176
4176
|
function w() {
|
|
4177
|
-
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", v), window.removeEventListener("scroll",
|
|
4177
|
+
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", v), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", x);
|
|
4178
4178
|
}
|
|
4179
|
-
return
|
|
4179
|
+
return A(() => n.open, (e) => {
|
|
4180
4180
|
e ? (l(), C()) : w();
|
|
4181
|
-
}),
|
|
4181
|
+
}), A(() => n.placement, () => n.open && l()), g(() => {
|
|
4182
4182
|
n.open && (l(), C());
|
|
4183
4183
|
}), h(w), (t, n) => (_(), a("span", {
|
|
4184
4184
|
ref_key: "rootRef",
|
|
4185
4185
|
ref: o,
|
|
4186
4186
|
class: "docx-popover"
|
|
4187
|
-
}, [
|
|
4187
|
+
}, [S(t.$slots, "trigger", {
|
|
4188
4188
|
toggle: u,
|
|
4189
4189
|
open: e.open
|
|
4190
4190
|
}, void 0, !0), e.open ? (_(), a("div", {
|
|
@@ -4193,22 +4193,22 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4193
4193
|
ref: s,
|
|
4194
4194
|
class: p(["docx-popover__panel", e.panelClass]),
|
|
4195
4195
|
style: m([c.value, e.panelStyle ?? {}]),
|
|
4196
|
-
onMousedown: n[0] ||=
|
|
4197
|
-
}, [
|
|
4196
|
+
onMousedown: n[0] ||= P(() => {}, ["stop"])
|
|
4197
|
+
}, [S(t.$slots, "panel", {}, void 0, !0)], 38)) : i("", !0)], 512));
|
|
4198
4198
|
}
|
|
4199
|
-
}), [["__scopeId", "data-v-0f634953"]]),
|
|
4199
|
+
}), [["__scopeId", "data-v-0f634953"]]), vn = ["disabled", "onClick"], yn = {
|
|
4200
4200
|
key: 0,
|
|
4201
4201
|
class: "docx-menu-dropdown__separator"
|
|
4202
|
-
},
|
|
4202
|
+
}, bn = ["onMouseenter", "onMouseleave"], xn = ["disabled", "onClick"], Sn = { class: "docx-menu-dropdown__label" }, Cn = {
|
|
4203
4203
|
key: 1,
|
|
4204
4204
|
class: "docx-menu-dropdown__shortcut"
|
|
4205
|
-
},
|
|
4205
|
+
}, wn = {
|
|
4206
4206
|
key: 2,
|
|
4207
4207
|
class: "docx-menu-dropdown__chevron"
|
|
4208
|
-
},
|
|
4208
|
+
}, Tn = {
|
|
4209
4209
|
key: 0,
|
|
4210
4210
|
class: "docx-menu-dropdown__submenu"
|
|
4211
|
-
},
|
|
4211
|
+
}, En = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4212
4212
|
__name: "MenuDropdown",
|
|
4213
4213
|
props: {
|
|
4214
4214
|
label: {},
|
|
@@ -4223,33 +4223,33 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4223
4223
|
function n(e) {
|
|
4224
4224
|
return "type" in e && e.type === "separator";
|
|
4225
4225
|
}
|
|
4226
|
-
let l =
|
|
4226
|
+
let l = b(!1), u = b(null);
|
|
4227
4227
|
function d() {
|
|
4228
4228
|
l.value = !1, u.value = null;
|
|
4229
4229
|
}
|
|
4230
4230
|
function f(e) {
|
|
4231
4231
|
e.disabled || e.submenu || (e.onClick?.(), d());
|
|
4232
4232
|
}
|
|
4233
|
-
return (m, h) => (_(), r(
|
|
4233
|
+
return (m, h) => (_(), r(_n, {
|
|
4234
4234
|
open: l.value,
|
|
4235
4235
|
"onUpdate:open": h[2] ||= (e) => l.value = e,
|
|
4236
4236
|
onClose: d
|
|
4237
4237
|
}, {
|
|
4238
|
-
trigger:
|
|
4238
|
+
trigger: j(({ toggle: e }) => [o("button", {
|
|
4239
4239
|
type: "button",
|
|
4240
4240
|
class: p(["docx-menu-dropdown__trigger", { "docx-menu-dropdown__trigger--open": l.value }]),
|
|
4241
4241
|
disabled: t.disabled,
|
|
4242
|
-
onMousedown: h[0] ||=
|
|
4243
|
-
onClick:
|
|
4244
|
-
}, [s(
|
|
4242
|
+
onMousedown: h[0] ||= P(() => {}, ["prevent"]),
|
|
4243
|
+
onClick: P(e, ["prevent"])
|
|
4244
|
+
}, [s(C(t.label) + " ", 1), t.showChevron ? (_(), r(U, {
|
|
4245
4245
|
key: 0,
|
|
4246
4246
|
name: "arrow_drop_down",
|
|
4247
4247
|
size: 16
|
|
4248
|
-
})) : i("", !0)], 42,
|
|
4249
|
-
panel:
|
|
4248
|
+
})) : i("", !0)], 42, vn)]),
|
|
4249
|
+
panel: j(() => [o("div", {
|
|
4250
4250
|
class: "docx-menu-dropdown__menu",
|
|
4251
|
-
onMousedown: h[1] ||=
|
|
4252
|
-
}, [(_(!0), a(e, null,
|
|
4251
|
+
onMousedown: h[1] ||= P(() => {}, ["prevent"])
|
|
4252
|
+
}, [(_(!0), a(e, null, x(t.items, (t, s) => (_(), a(e, { key: s }, [n(t) ? (_(), a("div", yn)) : (_(), a("div", {
|
|
4253
4253
|
key: 1,
|
|
4254
4254
|
class: "docx-menu-dropdown__wrap",
|
|
4255
4255
|
onMouseenter: (e) => t.submenu ? u.value = s : void 0,
|
|
@@ -4258,31 +4258,31 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4258
4258
|
type: "button",
|
|
4259
4259
|
class: p(["docx-menu-dropdown__item", { "docx-menu-dropdown__item--disabled": t.disabled }]),
|
|
4260
4260
|
disabled: t.disabled,
|
|
4261
|
-
onClick:
|
|
4261
|
+
onClick: P((e) => f(t), ["prevent"])
|
|
4262
4262
|
}, [
|
|
4263
4263
|
t.icon ? (_(), r(U, {
|
|
4264
4264
|
key: 0,
|
|
4265
4265
|
name: t.icon,
|
|
4266
4266
|
size: 18
|
|
4267
4267
|
}, null, 8, ["name"])) : i("", !0),
|
|
4268
|
-
o("span",
|
|
4269
|
-
t.shortcut ? (_(), a("span",
|
|
4270
|
-
t.submenu ? (_(), a("span",
|
|
4268
|
+
o("span", Sn, C(t.label), 1),
|
|
4269
|
+
t.shortcut ? (_(), a("span", Cn, C(t.shortcut), 1)) : i("", !0),
|
|
4270
|
+
t.submenu ? (_(), a("span", wn, [c(U, {
|
|
4271
4271
|
name: "keyboard_arrow_right",
|
|
4272
4272
|
size: 16
|
|
4273
4273
|
})])) : i("", !0)
|
|
4274
|
-
], 10,
|
|
4274
|
+
], 10, xn), t.submenu && u.value === s ? (_(), a("div", Tn, [S(m.$slots, "submenu", {
|
|
4275
4275
|
item: t,
|
|
4276
4276
|
closeMenu: d
|
|
4277
|
-
}, void 0, !0)])) : i("", !0)], 40,
|
|
4277
|
+
}, void 0, !0)])) : i("", !0)], 40, bn))], 64))), 128))], 32)]),
|
|
4278
4278
|
_: 3
|
|
4279
4279
|
}, 8, ["open"]));
|
|
4280
4280
|
}
|
|
4281
|
-
}), [["__scopeId", "data-v-d89898cc"]]),
|
|
4281
|
+
}), [["__scopeId", "data-v-d89898cc"]]), Dn = ["aria-label"], On = [
|
|
4282
4282
|
"aria-current",
|
|
4283
4283
|
"title",
|
|
4284
4284
|
"onMousedown"
|
|
4285
|
-
],
|
|
4285
|
+
], kn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4286
4286
|
__name: "OutlineRail",
|
|
4287
4287
|
props: {
|
|
4288
4288
|
items: {},
|
|
@@ -4301,20 +4301,20 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4301
4301
|
key: 0,
|
|
4302
4302
|
class: "folio-default-outline-list",
|
|
4303
4303
|
"aria-label": t.ariaLabel
|
|
4304
|
-
}, [(_(!0), a(e, null,
|
|
4304
|
+
}, [(_(!0), a(e, null, x(t.items, (e) => (_(), a("li", { key: e.id }, [o("button", {
|
|
4305
4305
|
type: "button",
|
|
4306
4306
|
class: p(["folio-default-outline-item", { "folio-default-outline-item--active": e.id === t.activeId }]),
|
|
4307
4307
|
"aria-current": e.id === t.activeId ? "true" : void 0,
|
|
4308
4308
|
style: m({ paddingInlineStart: `${e.level * 16 + 8}px` }),
|
|
4309
4309
|
title: e.label,
|
|
4310
|
-
onMousedown:
|
|
4311
|
-
},
|
|
4310
|
+
onMousedown: P((t) => r(e.id), ["prevent"])
|
|
4311
|
+
}, C(e.label), 47, On)]))), 128))], 8, Dn)) : i("", !0);
|
|
4312
4312
|
}
|
|
4313
|
-
}), [["__scopeId", "data-v-3ae44c67"]]),
|
|
4313
|
+
}), [["__scopeId", "data-v-3ae44c67"]]), An = ["disabled", "value"], jn = {
|
|
4314
4314
|
key: 0,
|
|
4315
4315
|
disabled: "",
|
|
4316
4316
|
value: ""
|
|
4317
|
-
},
|
|
4317
|
+
}, Mn = ["disabled", "value"], Nn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4318
4318
|
__name: "Select",
|
|
4319
4319
|
props: {
|
|
4320
4320
|
value: {},
|
|
@@ -4334,49 +4334,49 @@ var Pt = "en", Ft = (e) => Nt({
|
|
|
4334
4334
|
disabled: t.disabled,
|
|
4335
4335
|
value: t.value,
|
|
4336
4336
|
onChange: o
|
|
4337
|
-
}, [t.placeholder && t.value === void 0 ? (_(), a("option",
|
|
4337
|
+
}, [t.placeholder && t.value === void 0 ? (_(), a("option", jn, C(t.placeholder), 1)) : i("", !0), (_(!0), a(e, null, x(t.items, (e) => (_(), a("option", {
|
|
4338
4338
|
key: e.value,
|
|
4339
4339
|
disabled: e.disabled,
|
|
4340
4340
|
value: e.value
|
|
4341
|
-
},
|
|
4341
|
+
}, C(e.label), 9, Mn))), 128))], 42, An));
|
|
4342
4342
|
}
|
|
4343
|
-
}), [["__scopeId", "data-v-ddb0c377"]]),
|
|
4344
|
-
Button:
|
|
4345
|
-
Dialog:
|
|
4346
|
-
Select:
|
|
4347
|
-
Menu:
|
|
4348
|
-
Popover:
|
|
4349
|
-
Input:
|
|
4350
|
-
Checkbox:
|
|
4351
|
-
ColorPicker:
|
|
4352
|
-
DatePickerPopover:
|
|
4353
|
-
OutlineRail:
|
|
4354
|
-
},
|
|
4355
|
-
function
|
|
4343
|
+
}), [["__scopeId", "data-v-ddb0c377"]]), Pn = {
|
|
4344
|
+
Button: ae,
|
|
4345
|
+
Dialog: pn,
|
|
4346
|
+
Select: Nn,
|
|
4347
|
+
Menu: En,
|
|
4348
|
+
Popover: _n,
|
|
4349
|
+
Input: hn,
|
|
4350
|
+
Checkbox: se,
|
|
4351
|
+
ColorPicker: ln,
|
|
4352
|
+
DatePickerPopover: dn,
|
|
4353
|
+
OutlineRail: kn
|
|
4354
|
+
}, Fn = Symbol("folio-ui-components");
|
|
4355
|
+
function In(e) {
|
|
4356
4356
|
return e ? {
|
|
4357
|
-
...
|
|
4357
|
+
...Pn,
|
|
4358
4358
|
...e
|
|
4359
|
-
} :
|
|
4359
|
+
} : Pn;
|
|
4360
4360
|
}
|
|
4361
|
-
function
|
|
4362
|
-
v(
|
|
4361
|
+
function Ln(e) {
|
|
4362
|
+
v(Fn, In(e));
|
|
4363
4363
|
}
|
|
4364
|
-
function
|
|
4365
|
-
return u(
|
|
4364
|
+
function Q() {
|
|
4365
|
+
return u(Fn, Pn);
|
|
4366
4366
|
}
|
|
4367
|
-
var
|
|
4367
|
+
var Rn = l({
|
|
4368
4368
|
name: "FolioUIProvider",
|
|
4369
4369
|
props: { components: {
|
|
4370
4370
|
type: Object,
|
|
4371
4371
|
default: void 0
|
|
4372
4372
|
} },
|
|
4373
4373
|
setup(e, { slots: t }) {
|
|
4374
|
-
return
|
|
4374
|
+
return Ln(e.components), () => t.default?.();
|
|
4375
4375
|
}
|
|
4376
|
-
}),
|
|
4376
|
+
}), zn = { class: "find-replace-dialog__header" }, Bn = { class: "find-replace-dialog__title" }, Vn = { class: "find-replace-dialog__body" }, Hn = { class: "find-replace-dialog__row" }, Un = { class: "find-replace-dialog__count" }, Wn = { class: "find-replace-dialog__options" }, Gn = {
|
|
4377
4377
|
key: 0,
|
|
4378
4378
|
class: "find-replace-dialog__row"
|
|
4379
|
-
},
|
|
4379
|
+
}, Kn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4380
4380
|
__name: "FindReplaceDialog",
|
|
4381
4381
|
props: {
|
|
4382
4382
|
isOpen: { type: Boolean },
|
|
@@ -4385,21 +4385,21 @@ var Fn = l({
|
|
|
4385
4385
|
},
|
|
4386
4386
|
emits: ["close"],
|
|
4387
4387
|
setup(e, { emit: t }) {
|
|
4388
|
-
let { t: r } =
|
|
4388
|
+
let { t: r } = Z(), { Button: l, Input: u, Checkbox: d } = Q(), m = e, h = t, g = b(null), v = b(""), y = b(""), x = b(!1), S = b(!1), w = b(!1), E = b([]), D = b(-1), O = n(() => v.value.trim() ? E.value.length === 0 ? r("findReplace.noResults") : D.value < 0 ? r("dialogs.findReplace.matchesFound", { total: E.value.length }) : r("findReplace.matchCounter", {
|
|
4389
4389
|
current: D.value + 1,
|
|
4390
4390
|
total: E.value.length
|
|
4391
4391
|
}) : "");
|
|
4392
|
-
|
|
4393
|
-
e ? (await f(), g.value?.focus(), g.value?.select(),
|
|
4392
|
+
A(() => m.isOpen, async (e) => {
|
|
4393
|
+
e ? (await f(), g.value?.focus(), g.value?.select(), M()) : z();
|
|
4394
4394
|
});
|
|
4395
|
-
function
|
|
4396
|
-
|
|
4395
|
+
function k() {
|
|
4396
|
+
z(), h("close");
|
|
4397
4397
|
}
|
|
4398
|
-
function
|
|
4398
|
+
function M() {
|
|
4399
4399
|
E.value = [], D.value = -1;
|
|
4400
4400
|
let e = m.view;
|
|
4401
4401
|
if (!e || !v.value.trim()) {
|
|
4402
|
-
|
|
4402
|
+
z();
|
|
4403
4403
|
return;
|
|
4404
4404
|
}
|
|
4405
4405
|
let t = e.state.doc, n = v.value, r = !x.value, i = [];
|
|
@@ -4410,7 +4410,7 @@ var Fn = l({
|
|
|
4410
4410
|
let s = r ? n.toLowerCase() : n, c = r ? o.toLowerCase() : o, l = 0;
|
|
4411
4411
|
for (; l < c.length;) {
|
|
4412
4412
|
let e;
|
|
4413
|
-
if (
|
|
4413
|
+
if (S.value) {
|
|
4414
4414
|
let t = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), n = r ? "gi" : "g", i = RegExp(`\\b${t}\\b`, n);
|
|
4415
4415
|
i.lastIndex = l;
|
|
4416
4416
|
let a = i.exec(c);
|
|
@@ -4434,13 +4434,13 @@ var Fn = l({
|
|
|
4434
4434
|
D.value = e;
|
|
4435
4435
|
let { from: r, to: i } = n;
|
|
4436
4436
|
try {
|
|
4437
|
-
let e = t.state.doc.resolve(r), n = t.state.doc.resolve(i), a =
|
|
4437
|
+
let e = t.state.doc.resolve(r), n = t.state.doc.resolve(i), a = te.between(e, n);
|
|
4438
4438
|
t.dispatch(t.state.tr.setSelection(a)), m.scrollVisiblePositionIntoView?.(r);
|
|
4439
4439
|
} catch {}
|
|
4440
4440
|
}
|
|
4441
4441
|
function I() {
|
|
4442
4442
|
if (E.value.length === 0) {
|
|
4443
|
-
|
|
4443
|
+
M();
|
|
4444
4444
|
return;
|
|
4445
4445
|
}
|
|
4446
4446
|
F((D.value + 1) % E.value.length);
|
|
@@ -4448,164 +4448,164 @@ var Fn = l({
|
|
|
4448
4448
|
function L() {
|
|
4449
4449
|
E.value.length !== 0 && F((D.value - 1 + E.value.length) % E.value.length);
|
|
4450
4450
|
}
|
|
4451
|
-
function
|
|
4451
|
+
function ee() {
|
|
4452
4452
|
let e = m.view;
|
|
4453
4453
|
if (!e || D.value < 0 || E.value.length === 0) return;
|
|
4454
4454
|
let t = E.value.at(D.value);
|
|
4455
4455
|
if (t) {
|
|
4456
4456
|
try {
|
|
4457
|
-
let n =
|
|
4457
|
+
let n = y.value ? e.state.tr.replaceWith(t.from, t.to, e.state.schema.text(y.value)) : e.state.tr.delete(t.from, t.to);
|
|
4458
4458
|
e.dispatch(n);
|
|
4459
4459
|
} catch {}
|
|
4460
|
-
|
|
4460
|
+
M();
|
|
4461
4461
|
}
|
|
4462
4462
|
}
|
|
4463
|
-
function
|
|
4463
|
+
function R() {
|
|
4464
4464
|
let e = m.view;
|
|
4465
4465
|
if (!e || E.value.length === 0) return;
|
|
4466
4466
|
let t = [...E.value].sort((e, t) => t.from - e.from), n = e.state.tr;
|
|
4467
4467
|
for (let r of t) try {
|
|
4468
|
-
n =
|
|
4468
|
+
n = y.value ? n.replaceWith(r.from, r.to, e.state.schema.text(y.value)) : n.delete(r.from, r.to);
|
|
4469
4469
|
} catch {}
|
|
4470
|
-
e.dispatch(n),
|
|
4470
|
+
e.dispatch(n), M();
|
|
4471
4471
|
}
|
|
4472
|
-
function
|
|
4472
|
+
function z() {
|
|
4473
4473
|
E.value = [], D.value = -1;
|
|
4474
4474
|
}
|
|
4475
|
-
function
|
|
4476
|
-
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? L() : I()) : e.key === "Escape" &&
|
|
4475
|
+
function B(e) {
|
|
4476
|
+
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? L() : I()) : e.key === "Escape" && k();
|
|
4477
4477
|
}
|
|
4478
4478
|
return (t, n) => e.isOpen ? (_(), a("div", {
|
|
4479
4479
|
key: 0,
|
|
4480
4480
|
class: "find-replace-dialog",
|
|
4481
|
-
onMousedown: n[5] ||=
|
|
4482
|
-
onKeydown: n[6] ||=
|
|
4483
|
-
}, [o("div",
|
|
4481
|
+
onMousedown: n[5] ||= P(() => {}, ["stop"]),
|
|
4482
|
+
onKeydown: n[6] ||= P(() => {}, ["stop"])
|
|
4483
|
+
}, [o("div", zn, [o("span", Bn, C(w.value ? T(r)("findReplace.findAndReplace") : T(r)("findReplace.find")), 1), c(T(l), {
|
|
4484
4484
|
class: "find-replace-dialog__close",
|
|
4485
4485
|
variant: "ghost",
|
|
4486
4486
|
size: "icon-xs",
|
|
4487
|
-
onClick:
|
|
4488
|
-
title:
|
|
4487
|
+
onClick: k,
|
|
4488
|
+
title: T(r)("findReplace.close")
|
|
4489
4489
|
}, {
|
|
4490
|
-
default:
|
|
4490
|
+
default: j(() => [...n[7] ||= [s(" ✕ ", -1)]]),
|
|
4491
4491
|
_: 1
|
|
4492
|
-
}, 8, ["title"])]), o("div",
|
|
4493
|
-
o("div",
|
|
4494
|
-
c(
|
|
4492
|
+
}, 8, ["title"])]), o("div", Vn, [
|
|
4493
|
+
o("div", Hn, [
|
|
4494
|
+
c(T(u), {
|
|
4495
4495
|
ref_key: "searchInputRef",
|
|
4496
4496
|
ref: g,
|
|
4497
4497
|
modelValue: v.value,
|
|
4498
4498
|
"onUpdate:modelValue": n[0] ||= (e) => v.value = e,
|
|
4499
4499
|
class: "find-replace-dialog__input",
|
|
4500
|
-
placeholder:
|
|
4501
|
-
"aria-label":
|
|
4502
|
-
onKeydown:
|
|
4503
|
-
onInput:
|
|
4500
|
+
placeholder: T(r)("findReplace.findPlaceholder"),
|
|
4501
|
+
"aria-label": T(r)("findReplace.findText"),
|
|
4502
|
+
onKeydown: B,
|
|
4503
|
+
onInput: M
|
|
4504
4504
|
}, null, 8, [
|
|
4505
4505
|
"modelValue",
|
|
4506
4506
|
"placeholder",
|
|
4507
4507
|
"aria-label"
|
|
4508
4508
|
]),
|
|
4509
|
-
o("span",
|
|
4510
|
-
c(
|
|
4509
|
+
o("span", Un, C(O.value), 1),
|
|
4510
|
+
c(T(l), {
|
|
4511
4511
|
variant: "ghost",
|
|
4512
4512
|
size: "icon-xs",
|
|
4513
|
-
title:
|
|
4514
|
-
onMousedown:
|
|
4513
|
+
title: T(r)("findReplace.previous"),
|
|
4514
|
+
onMousedown: P(L, ["prevent"])
|
|
4515
4515
|
}, {
|
|
4516
|
-
default:
|
|
4516
|
+
default: j(() => [...n[8] ||= [s("▲", -1)]]),
|
|
4517
4517
|
_: 1
|
|
4518
4518
|
}, 8, ["title"]),
|
|
4519
|
-
c(
|
|
4519
|
+
c(T(l), {
|
|
4520
4520
|
variant: "ghost",
|
|
4521
4521
|
size: "icon-xs",
|
|
4522
|
-
title:
|
|
4523
|
-
onMousedown:
|
|
4522
|
+
title: T(r)("findReplace.next"),
|
|
4523
|
+
onMousedown: P(I, ["prevent"])
|
|
4524
4524
|
}, {
|
|
4525
|
-
default:
|
|
4525
|
+
default: j(() => [...n[9] ||= [s("▼", -1)]]),
|
|
4526
4526
|
_: 1
|
|
4527
4527
|
}, 8, ["title"])
|
|
4528
4528
|
]),
|
|
4529
|
-
o("div",
|
|
4530
|
-
o("label", null, [c(
|
|
4529
|
+
o("div", Wn, [
|
|
4530
|
+
o("label", null, [c(T(d), {
|
|
4531
4531
|
checked: x.value,
|
|
4532
4532
|
"onUpdate:checked": n[1] ||= (e) => {
|
|
4533
|
-
x.value = e,
|
|
4533
|
+
x.value = e, M();
|
|
4534
4534
|
}
|
|
4535
|
-
}, null, 8, ["checked"]), s(" " +
|
|
4536
|
-
o("label", null, [c(
|
|
4537
|
-
checked:
|
|
4535
|
+
}, null, 8, ["checked"]), s(" " + C(T(r)("findReplace.matchCase")), 1)]),
|
|
4536
|
+
o("label", null, [c(T(d), {
|
|
4537
|
+
checked: S.value,
|
|
4538
4538
|
"onUpdate:checked": n[2] ||= (e) => {
|
|
4539
|
-
|
|
4539
|
+
S.value = e, M();
|
|
4540
4540
|
}
|
|
4541
|
-
}, null, 8, ["checked"]), s(" " +
|
|
4542
|
-
c(
|
|
4543
|
-
class: p(["find-replace-dialog__toggle", { active:
|
|
4541
|
+
}, null, 8, ["checked"]), s(" " + C(T(r)("findReplace.wholeWords")), 1)]),
|
|
4542
|
+
c(T(l), {
|
|
4543
|
+
class: p(["find-replace-dialog__toggle", { active: w.value }]),
|
|
4544
4544
|
variant: "ghost",
|
|
4545
4545
|
size: "xs",
|
|
4546
|
-
onMousedown: n[3] ||=
|
|
4547
|
-
title:
|
|
4546
|
+
onMousedown: n[3] ||= P((e) => w.value = !w.value, ["prevent"]),
|
|
4547
|
+
title: T(r)("dialogs.findReplace.toggleReplace")
|
|
4548
4548
|
}, {
|
|
4549
|
-
default:
|
|
4549
|
+
default: j(() => [s(" ↔ " + C(T(r)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4550
4550
|
_: 1
|
|
4551
4551
|
}, 8, ["class", "title"])
|
|
4552
4552
|
]),
|
|
4553
|
-
|
|
4554
|
-
c(
|
|
4555
|
-
modelValue:
|
|
4556
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
4553
|
+
w.value ? (_(), a("div", Gn, [
|
|
4554
|
+
c(T(u), {
|
|
4555
|
+
modelValue: y.value,
|
|
4556
|
+
"onUpdate:modelValue": n[4] ||= (e) => y.value = e,
|
|
4557
4557
|
class: "find-replace-dialog__input",
|
|
4558
|
-
placeholder:
|
|
4559
|
-
"aria-label":
|
|
4560
|
-
onKeydown:
|
|
4558
|
+
placeholder: T(r)("findReplace.replacePlaceholder"),
|
|
4559
|
+
"aria-label": T(r)("findReplace.replaceText"),
|
|
4560
|
+
onKeydown: N(P(ee, ["prevent"]), ["enter"])
|
|
4561
4561
|
}, null, 8, [
|
|
4562
4562
|
"modelValue",
|
|
4563
4563
|
"placeholder",
|
|
4564
4564
|
"aria-label",
|
|
4565
4565
|
"onKeydown"
|
|
4566
4566
|
]),
|
|
4567
|
-
c(
|
|
4567
|
+
c(T(l), {
|
|
4568
4568
|
variant: "ghost",
|
|
4569
4569
|
size: "xs",
|
|
4570
|
-
title:
|
|
4571
|
-
onMousedown:
|
|
4570
|
+
title: T(r)("findReplace.replaceCurrent"),
|
|
4571
|
+
onMousedown: P(ee, ["prevent"])
|
|
4572
4572
|
}, {
|
|
4573
|
-
default:
|
|
4573
|
+
default: j(() => [s(C(T(r)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4574
4574
|
_: 1
|
|
4575
4575
|
}, 8, ["title"]),
|
|
4576
|
-
c(
|
|
4576
|
+
c(T(l), {
|
|
4577
4577
|
variant: "ghost",
|
|
4578
4578
|
size: "xs",
|
|
4579
|
-
title:
|
|
4580
|
-
onMousedown:
|
|
4579
|
+
title: T(r)("findReplace.replaceAll"),
|
|
4580
|
+
onMousedown: P(R, ["prevent"])
|
|
4581
4581
|
}, {
|
|
4582
|
-
default:
|
|
4582
|
+
default: j(() => [s(C(T(r)("findReplace.replaceAll")), 1)]),
|
|
4583
4583
|
_: 1
|
|
4584
4584
|
}, 8, ["title"])
|
|
4585
4585
|
])) : i("", !0)
|
|
4586
4586
|
])], 32)) : i("", !0);
|
|
4587
4587
|
}
|
|
4588
|
-
}), [["__scopeId", "data-v-816520e0"]]),
|
|
4588
|
+
}), [["__scopeId", "data-v-816520e0"]]), qn = { class: "dialog__header" }, Jn = { class: "dialog__title" }, Yn = ["aria-label"], Xn = { class: "dialog__body" }, Zn = {
|
|
4589
4589
|
key: 0,
|
|
4590
4590
|
class: "link-tabs",
|
|
4591
4591
|
role: "tablist"
|
|
4592
|
-
},
|
|
4592
|
+
}, Qn = ["aria-selected"], $n = ["aria-selected"], er = {
|
|
4593
4593
|
key: 1,
|
|
4594
4594
|
class: "field"
|
|
4595
|
-
},
|
|
4595
|
+
}, tr = { class: "field__label" }, nr = [
|
|
4596
4596
|
"placeholder",
|
|
4597
4597
|
"aria-invalid",
|
|
4598
4598
|
"onKeydown"
|
|
4599
|
-
],
|
|
4599
|
+
], rr = {
|
|
4600
4600
|
key: 0,
|
|
4601
4601
|
class: "field__error"
|
|
4602
|
-
},
|
|
4602
|
+
}, ir = {
|
|
4603
4603
|
key: 1,
|
|
4604
4604
|
class: "field__hint"
|
|
4605
|
-
},
|
|
4605
|
+
}, ar = {
|
|
4606
4606
|
key: 2,
|
|
4607
4607
|
class: "field"
|
|
4608
|
-
},
|
|
4608
|
+
}, or = { class: "field__label" }, sr = ["onKeydown"], cr = { value: "" }, lr = ["value"], ur = { class: "field" }, dr = { class: "field__label" }, fr = ["placeholder"], pr = { class: "field__hint" }, mr = { class: "field" }, hr = { class: "field__label" }, gr = ["placeholder"], _r = { class: "dialog__actions" }, vr = ["disabled"], yr = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4609
4609
|
__name: "HyperlinkDialog",
|
|
4610
4610
|
props: {
|
|
4611
4611
|
isOpen: { type: Boolean },
|
|
@@ -4618,9 +4618,9 @@ var Fn = l({
|
|
|
4618
4618
|
"remove"
|
|
4619
4619
|
],
|
|
4620
4620
|
setup(t, { emit: r }) {
|
|
4621
|
-
let { t: s } =
|
|
4622
|
-
|
|
4623
|
-
|
|
4621
|
+
let { t: s } = Z(), c = t, l = r, u = b(null), d = b(null), m = b("url"), h = b(""), g = b(""), v = b(""), y = b(""), S = b(!1), w = b(""), E = b(!1), D = n(() => c.bookmarks ?? []), j = n(() => m.value === "bookmark" ? !!g.value : !!h.value.trim() && !w.value);
|
|
4622
|
+
A(h, () => {
|
|
4623
|
+
w.value &&= "";
|
|
4624
4624
|
});
|
|
4625
4625
|
function F(e) {
|
|
4626
4626
|
let t = e.trim();
|
|
@@ -4638,136 +4638,136 @@ var Fn = l({
|
|
|
4638
4638
|
let t = e.trim();
|
|
4639
4639
|
return /^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t) ? t : `https://${t}`;
|
|
4640
4640
|
}
|
|
4641
|
-
|
|
4641
|
+
A(() => c.isOpen, async (e) => {
|
|
4642
4642
|
if (e) {
|
|
4643
4643
|
let e = c.view;
|
|
4644
4644
|
if (e) {
|
|
4645
4645
|
let { $from: t, empty: n, from: r, to: i } = e.state.selection, a = (e.state.storedMarks || t.marks()).find((e) => e.type.name === "hyperlink");
|
|
4646
4646
|
if (a) {
|
|
4647
4647
|
let e = a.attrs.href || "";
|
|
4648
|
-
e.startsWith("#") ? (m.value = "bookmark", g.value = e.slice(1), h.value = "") : (m.value = "url", h.value = e, g.value = ""),
|
|
4649
|
-
} else m.value = "url", h.value = "", g.value = "",
|
|
4648
|
+
e.startsWith("#") ? (m.value = "bookmark", g.value = e.slice(1), h.value = "") : (m.value = "url", h.value = e, g.value = ""), y.value = a.attrs.tooltip || "", S.value = !0;
|
|
4649
|
+
} else m.value = "url", h.value = "", g.value = "", y.value = "", S.value = !1;
|
|
4650
4650
|
n ? v.value = "" : v.value = e.state.doc.textBetween(r, i);
|
|
4651
4651
|
}
|
|
4652
4652
|
await f(), m.value === "bookmark" ? d.value?.focus() : u.value?.focus();
|
|
4653
|
-
} else
|
|
4653
|
+
} else E.value = !1, w.value = "";
|
|
4654
4654
|
});
|
|
4655
4655
|
function L() {
|
|
4656
4656
|
l("close");
|
|
4657
4657
|
}
|
|
4658
|
-
function
|
|
4658
|
+
function ee() {
|
|
4659
4659
|
if (m.value === "bookmark") {
|
|
4660
4660
|
if (!g.value) return;
|
|
4661
4661
|
l("submit", {
|
|
4662
4662
|
bookmark: g.value,
|
|
4663
4663
|
displayText: v.value,
|
|
4664
|
-
tooltip:
|
|
4664
|
+
tooltip: y.value
|
|
4665
4665
|
}), L();
|
|
4666
4666
|
return;
|
|
4667
4667
|
}
|
|
4668
|
-
if (
|
|
4669
|
-
|
|
4668
|
+
if (E.value = !0, !F(h.value)) {
|
|
4669
|
+
w.value = h.value.trim() ? s("dialogs.hyperlink.invalidUrl") : s("dialogs.hyperlink.urlRequired");
|
|
4670
4670
|
return;
|
|
4671
4671
|
}
|
|
4672
4672
|
l("submit", {
|
|
4673
4673
|
url: I(h.value),
|
|
4674
4674
|
displayText: v.value,
|
|
4675
|
-
tooltip:
|
|
4675
|
+
tooltip: y.value
|
|
4676
4676
|
}), L();
|
|
4677
4677
|
}
|
|
4678
|
-
function
|
|
4678
|
+
function R() {
|
|
4679
4679
|
if (m.value === "url") {
|
|
4680
|
-
if (
|
|
4681
|
-
|
|
4680
|
+
if (E.value = !0, !h.value.trim()) {
|
|
4681
|
+
w.value = "";
|
|
4682
4682
|
return;
|
|
4683
4683
|
}
|
|
4684
|
-
|
|
4684
|
+
w.value = F(h.value) ? "" : s("dialogs.hyperlink.invalidUrl");
|
|
4685
4685
|
}
|
|
4686
4686
|
}
|
|
4687
|
-
function
|
|
4687
|
+
function te() {
|
|
4688
4688
|
l("remove"), L();
|
|
4689
4689
|
}
|
|
4690
4690
|
return (n, r) => t.isOpen ? (_(), a("div", {
|
|
4691
4691
|
key: 0,
|
|
4692
4692
|
class: "dialog-overlay",
|
|
4693
|
-
onMousedown:
|
|
4693
|
+
onMousedown: P(L, ["self"])
|
|
4694
4694
|
}, [o("div", {
|
|
4695
4695
|
class: "dialog",
|
|
4696
|
-
onMousedown: r[6] ||=
|
|
4697
|
-
onKeydown: r[7] ||=
|
|
4698
|
-
}, [o("div",
|
|
4696
|
+
onMousedown: r[6] ||= P(() => {}, ["stop"]),
|
|
4697
|
+
onKeydown: r[7] ||= P(() => {}, ["stop"])
|
|
4698
|
+
}, [o("div", qn, [o("span", Jn, C(S.value ? T(s)("dialogs.hyperlink.titleEdit") : T(s)("dialogs.hyperlink.titleInsert")), 1), o("button", {
|
|
4699
4699
|
class: "dialog__close",
|
|
4700
|
-
"aria-label":
|
|
4700
|
+
"aria-label": T(s)("common.closeDialog"),
|
|
4701
4701
|
onClick: L
|
|
4702
|
-
}, " ✕ ", 8,
|
|
4703
|
-
|
|
4702
|
+
}, " ✕ ", 8, Yn)]), o("div", Xn, [
|
|
4703
|
+
D.value.length > 0 ? (_(), a("div", Zn, [o("button", {
|
|
4704
4704
|
class: p(["link-tab", { active: m.value === "url" }]),
|
|
4705
4705
|
role: "tab",
|
|
4706
4706
|
"aria-selected": m.value === "url",
|
|
4707
|
-
onMousedown: r[0] ||=
|
|
4708
|
-
},
|
|
4707
|
+
onMousedown: r[0] ||= P((e) => m.value = "url", ["prevent"])
|
|
4708
|
+
}, C(T(s)("dialogs.hyperlink.tabWebAddress")), 43, Qn), o("button", {
|
|
4709
4709
|
class: p(["link-tab", { active: m.value === "bookmark" }]),
|
|
4710
4710
|
role: "tab",
|
|
4711
4711
|
"aria-selected": m.value === "bookmark",
|
|
4712
|
-
onMousedown: r[1] ||=
|
|
4713
|
-
},
|
|
4714
|
-
m.value === "url" ? (_(), a("div",
|
|
4715
|
-
o("label",
|
|
4716
|
-
|
|
4712
|
+
onMousedown: r[1] ||= P((e) => m.value = "bookmark", ["prevent"])
|
|
4713
|
+
}, C(T(s)("dialogs.hyperlink.tabBookmark")), 43, $n)])) : i("", !0),
|
|
4714
|
+
m.value === "url" ? (_(), a("div", er, [
|
|
4715
|
+
o("label", tr, C(T(s)("dialogs.hyperlink.urlLabel")), 1),
|
|
4716
|
+
M(o("input", {
|
|
4717
4717
|
ref_key: "urlInputRef",
|
|
4718
4718
|
ref: u,
|
|
4719
4719
|
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
4720
|
-
class: p(["field__input", { "field__input--error":
|
|
4721
|
-
placeholder:
|
|
4722
|
-
"aria-invalid":
|
|
4723
|
-
onKeydown:
|
|
4724
|
-
onBlur:
|
|
4725
|
-
}, null, 42,
|
|
4726
|
-
|
|
4727
|
-
])) : (_(), a("div",
|
|
4720
|
+
class: p(["field__input", { "field__input--error": E.value && !!w.value }]),
|
|
4721
|
+
placeholder: T(s)("dialogs.hyperlink.urlPlaceholder"),
|
|
4722
|
+
"aria-invalid": E.value && !!w.value,
|
|
4723
|
+
onKeydown: N(P(ee, ["prevent"]), ["enter"]),
|
|
4724
|
+
onBlur: R
|
|
4725
|
+
}, null, 42, nr), [[k, h.value]]),
|
|
4726
|
+
E.value && w.value ? (_(), a("div", rr, C(w.value), 1)) : (_(), a("div", ir, C(T(s)("dialogs.hyperlink.urlHint")), 1))
|
|
4727
|
+
])) : (_(), a("div", ar, [o("label", or, C(T(s)("dialogs.hyperlink.bookmarkLabel")), 1), M(o("select", {
|
|
4728
4728
|
ref_key: "bookmarkSelectRef",
|
|
4729
4729
|
ref: d,
|
|
4730
4730
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e,
|
|
4731
4731
|
class: "field__input",
|
|
4732
|
-
onKeydown:
|
|
4733
|
-
}, [o("option",
|
|
4732
|
+
onKeydown: N(P(ee, ["prevent"]), ["enter"])
|
|
4733
|
+
}, [o("option", cr, C(T(s)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (_(!0), a(e, null, x(D.value, (e) => (_(), a("option", {
|
|
4734
4734
|
key: e.name,
|
|
4735
4735
|
value: e.name
|
|
4736
|
-
},
|
|
4737
|
-
o("div",
|
|
4738
|
-
o("label",
|
|
4739
|
-
|
|
4736
|
+
}, C(e.label || e.name), 9, lr))), 128))], 40, sr), [[O, g.value]])])),
|
|
4737
|
+
o("div", ur, [
|
|
4738
|
+
o("label", dr, C(T(s)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
4739
|
+
M(o("input", {
|
|
4740
4740
|
"onUpdate:modelValue": r[4] ||= (e) => v.value = e,
|
|
4741
4741
|
class: "field__input",
|
|
4742
|
-
placeholder:
|
|
4743
|
-
}, null, 8,
|
|
4744
|
-
o("div",
|
|
4742
|
+
placeholder: T(s)("dialogs.hyperlink.displayTextPlaceholder")
|
|
4743
|
+
}, null, 8, fr), [[k, v.value]]),
|
|
4744
|
+
o("div", pr, C(T(s)("dialogs.hyperlink.displayTextHint")), 1)
|
|
4745
4745
|
]),
|
|
4746
|
-
o("div",
|
|
4747
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
4746
|
+
o("div", mr, [o("label", hr, C(T(s)("dialogs.hyperlink.tooltipLabel")), 1), M(o("input", {
|
|
4747
|
+
"onUpdate:modelValue": r[5] ||= (e) => y.value = e,
|
|
4748
4748
|
class: "field__input",
|
|
4749
|
-
placeholder:
|
|
4750
|
-
}, null, 8,
|
|
4751
|
-
o("div",
|
|
4752
|
-
|
|
4749
|
+
placeholder: T(s)("dialogs.hyperlink.tooltipPlaceholder")
|
|
4750
|
+
}, null, 8, gr), [[k, y.value]])]),
|
|
4751
|
+
o("div", _r, [
|
|
4752
|
+
S.value ? (_(), a("button", {
|
|
4753
4753
|
key: 0,
|
|
4754
4754
|
class: "dialog__btn dialog__btn--danger",
|
|
4755
|
-
onMousedown:
|
|
4756
|
-
},
|
|
4755
|
+
onMousedown: P(te, ["prevent"])
|
|
4756
|
+
}, C(T(s)("dialogs.hyperlink.removeLink")), 33)) : i("", !0),
|
|
4757
4757
|
r[8] ||= o("div", { style: { flex: "1" } }, null, -1),
|
|
4758
4758
|
o("button", {
|
|
4759
4759
|
class: "dialog__btn",
|
|
4760
4760
|
onClick: L
|
|
4761
|
-
},
|
|
4761
|
+
}, C(T(s)("common.cancel")), 1),
|
|
4762
4762
|
o("button", {
|
|
4763
4763
|
class: "dialog__btn dialog__btn--primary",
|
|
4764
|
-
onMousedown:
|
|
4765
|
-
disabled: !
|
|
4766
|
-
}, S
|
|
4764
|
+
onMousedown: P(ee, ["prevent"]),
|
|
4765
|
+
disabled: !j.value
|
|
4766
|
+
}, C(S.value ? T(s)("common.update") : T(s)("common.insert")), 41, vr)
|
|
4767
4767
|
])
|
|
4768
4768
|
])], 32)], 32)) : i("", !0);
|
|
4769
4769
|
}
|
|
4770
|
-
}), [["__scopeId", "data-v-e1cb1c4d"]]),
|
|
4770
|
+
}), [["__scopeId", "data-v-e1cb1c4d"]]), br = { class: "dialog__header" }, xr = { class: "dialog__title" }, Sr = ["aria-label"], Cr = { class: "dialog__body" }, wr = { class: "field" }, Tr = { class: "field__label" }, Er = ["placeholder"], Dr = { class: "field" }, Or = { class: "field__label" }, kr = { value: "inline" }, Ar = { value: "wrapRight" }, jr = { value: "wrapLeft" }, Mr = { value: "topAndBottom" }, Nr = { value: "behind" }, Pr = { value: "inFront" }, Fr = { class: "field" }, Ir = { class: "field__label" }, Lr = { class: "field-row" }, Rr = { value: "solid" }, zr = { value: "dashed" }, Br = { value: "dotted" }, Vr = { value: "double" }, Hr = { class: "field" }, Ur = { class: "field__label" }, Wr = { class: "field-row" }, Gr = ["value"], Kr = ["value"], qr = { class: "field__checkbox" }, Jr = { class: "dialog__actions" }, Yr = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4771
4771
|
__name: "ImagePropertiesDialog",
|
|
4772
4772
|
props: {
|
|
4773
4773
|
isOpen: { type: Boolean },
|
|
@@ -4776,8 +4776,8 @@ var Fn = l({
|
|
|
4776
4776
|
},
|
|
4777
4777
|
emits: ["close"],
|
|
4778
4778
|
setup(e, { emit: t }) {
|
|
4779
|
-
let { t: n } =
|
|
4780
|
-
|
|
4779
|
+
let { t: n } = Z(), { Dialog: i } = Q(), a = e, c = t, l = b(""), u = b("inline"), d = b(0), f = b("solid"), p = b("#000000"), m = b(200), h = b(150), g = b(!0), v = 1;
|
|
4780
|
+
A(() => a.isOpen, (e) => {
|
|
4781
4781
|
if (!(!e || !a.view || a.pmPos === null)) try {
|
|
4782
4782
|
let e = a.view.state.doc.nodeAt(a.pmPos);
|
|
4783
4783
|
if (e && e.type.name === "image") {
|
|
@@ -4788,7 +4788,7 @@ var Fn = l({
|
|
|
4788
4788
|
}
|
|
4789
4789
|
} catch {}
|
|
4790
4790
|
});
|
|
4791
|
-
function
|
|
4791
|
+
function y(e) {
|
|
4792
4792
|
if (!(e.target instanceof HTMLInputElement)) return;
|
|
4793
4793
|
let t = Number(e.target.value);
|
|
4794
4794
|
isNaN(t) || t < 1 || (m.value = t, g.value && v > 0 && (h.value = Math.round(t / v)));
|
|
@@ -4798,10 +4798,10 @@ var Fn = l({
|
|
|
4798
4798
|
let t = Number(e.target.value);
|
|
4799
4799
|
isNaN(t) || t < 1 || (h.value = t, g.value && v > 0 && (m.value = Math.round(t * v)));
|
|
4800
4800
|
}
|
|
4801
|
-
function
|
|
4801
|
+
function S() {
|
|
4802
4802
|
c("close");
|
|
4803
4803
|
}
|
|
4804
|
-
function
|
|
4804
|
+
function w() {
|
|
4805
4805
|
let e = a.view;
|
|
4806
4806
|
if (!(!e || a.pmPos === null)) {
|
|
4807
4807
|
try {
|
|
@@ -4842,44 +4842,44 @@ var Fn = l({
|
|
|
4842
4842
|
});
|
|
4843
4843
|
e.dispatch(o);
|
|
4844
4844
|
} catch {}
|
|
4845
|
-
|
|
4845
|
+
S();
|
|
4846
4846
|
}
|
|
4847
4847
|
}
|
|
4848
|
-
return (t, a) => (_(), r(
|
|
4848
|
+
return (t, a) => (_(), r(T(i), {
|
|
4849
4849
|
open: e.isOpen,
|
|
4850
|
-
"aria-label":
|
|
4850
|
+
"aria-label": T(n)("dialogs.imageProperties.title"),
|
|
4851
4851
|
style: {
|
|
4852
4852
|
minWidth: "400px",
|
|
4853
4853
|
maxWidth: "90vw"
|
|
4854
4854
|
},
|
|
4855
|
-
onClose:
|
|
4855
|
+
onClose: S
|
|
4856
4856
|
}, {
|
|
4857
|
-
default:
|
|
4857
|
+
default: j(() => [o("div", br, [o("span", xr, C(T(n)("dialogs.imageProperties.title")), 1), o("button", {
|
|
4858
4858
|
class: "dialog__close",
|
|
4859
|
-
"aria-label":
|
|
4860
|
-
onClick:
|
|
4861
|
-
}, " ✕ ", 8,
|
|
4862
|
-
o("div",
|
|
4859
|
+
"aria-label": T(n)("common.closeDialog"),
|
|
4860
|
+
onClick: S
|
|
4861
|
+
}, " ✕ ", 8, Sr)]), o("div", Cr, [
|
|
4862
|
+
o("div", wr, [o("label", Tr, C(T(n)("dialogs.imageProperties.altText")), 1), M(o("textarea", {
|
|
4863
4863
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
4864
4864
|
class: "field__textarea",
|
|
4865
|
-
placeholder:
|
|
4865
|
+
placeholder: T(n)("dialogs.imageProperties.altTextPlaceholder"),
|
|
4866
4866
|
rows: "2"
|
|
4867
|
-
}, null, 8,
|
|
4868
|
-
o("div",
|
|
4867
|
+
}, null, 8, Er), [[k, l.value]])]),
|
|
4868
|
+
o("div", Dr, [o("label", Or, C(T(n)("dialogs.imageProperties.textWrapping")), 1), M(o("select", {
|
|
4869
4869
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
4870
4870
|
class: "field__select"
|
|
4871
4871
|
}, [
|
|
4872
|
-
o("option",
|
|
4873
|
-
o("option",
|
|
4874
|
-
o("option",
|
|
4875
|
-
o("option",
|
|
4876
|
-
o("option",
|
|
4877
|
-
o("option",
|
|
4878
|
-
], 512), [[
|
|
4879
|
-
o("div",
|
|
4872
|
+
o("option", kr, C(T(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
4873
|
+
o("option", Ar, C(T(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
4874
|
+
o("option", jr, C(T(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
4875
|
+
o("option", Mr, C(T(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
4876
|
+
o("option", Nr, C(T(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
4877
|
+
o("option", Pr, C(T(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
4878
|
+
], 512), [[O, u.value]])]),
|
|
4879
|
+
o("div", Fr, [o("label", Ir, C(T(n)("dialogs.imageProperties.border")), 1), o("div", Lr, [
|
|
4880
4880
|
o("label", null, [
|
|
4881
|
-
s(
|
|
4882
|
-
|
|
4881
|
+
s(C(T(n)("dialogs.imageProperties.width")) + ": ", 1),
|
|
4882
|
+
M(o("input", {
|
|
4883
4883
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
4884
4884
|
type: "number",
|
|
4885
4885
|
min: "0",
|
|
@@ -4887,43 +4887,43 @@ var Fn = l({
|
|
|
4887
4887
|
step: "0.5",
|
|
4888
4888
|
class: "field__input--small"
|
|
4889
4889
|
}, null, 512), [[
|
|
4890
|
-
|
|
4890
|
+
k,
|
|
4891
4891
|
d.value,
|
|
4892
4892
|
void 0,
|
|
4893
4893
|
{ number: !0 }
|
|
4894
4894
|
]]),
|
|
4895
|
-
s(
|
|
4895
|
+
s(C(T(n)("common.px")), 1)
|
|
4896
4896
|
]),
|
|
4897
|
-
o("label", null, [s(
|
|
4897
|
+
o("label", null, [s(C(T(n)("dialogs.imageProperties.style")) + ": ", 1), M(o("select", {
|
|
4898
4898
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
4899
4899
|
class: "field__select--small"
|
|
4900
4900
|
}, [
|
|
4901
|
-
o("option",
|
|
4902
|
-
o("option",
|
|
4903
|
-
o("option",
|
|
4904
|
-
o("option",
|
|
4905
|
-
], 512), [[
|
|
4906
|
-
o("label", null, [s(
|
|
4901
|
+
o("option", Rr, C(T(n)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
4902
|
+
o("option", zr, C(T(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
4903
|
+
o("option", Br, C(T(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
4904
|
+
o("option", Vr, C(T(n)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
4905
|
+
], 512), [[O, f.value]])]),
|
|
4906
|
+
o("label", null, [s(C(T(n)("dialogs.imageProperties.color")) + ": ", 1), M(o("input", {
|
|
4907
4907
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
4908
4908
|
type: "color",
|
|
4909
4909
|
class: "field__color"
|
|
4910
|
-
}, null, 512), [[
|
|
4910
|
+
}, null, 512), [[k, p.value]])])
|
|
4911
4911
|
])]),
|
|
4912
|
-
o("div",
|
|
4913
|
-
o("label",
|
|
4914
|
-
o("div",
|
|
4915
|
-
s(
|
|
4912
|
+
o("div", Hr, [
|
|
4913
|
+
o("label", Ur, C(T(n)("dialogs.imageProperties.dimensions")), 1),
|
|
4914
|
+
o("div", Wr, [o("label", null, [
|
|
4915
|
+
s(C(T(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
4916
4916
|
o("input", {
|
|
4917
4917
|
value: m.value,
|
|
4918
4918
|
type: "number",
|
|
4919
4919
|
min: "1",
|
|
4920
4920
|
max: "2000",
|
|
4921
4921
|
class: "field__input--small",
|
|
4922
|
-
onInput:
|
|
4923
|
-
}, null, 40,
|
|
4924
|
-
s(
|
|
4922
|
+
onInput: y
|
|
4923
|
+
}, null, 40, Gr),
|
|
4924
|
+
s(C(T(n)("common.px")), 1)
|
|
4925
4925
|
]), o("label", null, [
|
|
4926
|
-
s(
|
|
4926
|
+
s(C(T(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
4927
4927
|
o("input", {
|
|
4928
4928
|
value: h.value,
|
|
4929
4929
|
type: "number",
|
|
@@ -4931,47 +4931,47 @@ var Fn = l({
|
|
|
4931
4931
|
max: "2000",
|
|
4932
4932
|
class: "field__input--small",
|
|
4933
4933
|
onInput: x
|
|
4934
|
-
}, null, 40,
|
|
4935
|
-
s(
|
|
4934
|
+
}, null, 40, Kr),
|
|
4935
|
+
s(C(T(n)("common.px")), 1)
|
|
4936
4936
|
])]),
|
|
4937
|
-
o("label",
|
|
4937
|
+
o("label", qr, [M(o("input", {
|
|
4938
4938
|
"onUpdate:modelValue": a[5] ||= (e) => g.value = e,
|
|
4939
4939
|
type: "checkbox"
|
|
4940
|
-
}, null, 512), [[
|
|
4940
|
+
}, null, 512), [[E, g.value]]), s(" " + C(T(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
4941
4941
|
]),
|
|
4942
|
-
o("div",
|
|
4942
|
+
o("div", Jr, [o("button", {
|
|
4943
4943
|
class: "dialog__btn",
|
|
4944
|
-
onClick:
|
|
4945
|
-
},
|
|
4944
|
+
onClick: S
|
|
4945
|
+
}, C(T(n)("common.cancel")), 1), o("button", {
|
|
4946
4946
|
class: "dialog__btn dialog__btn--primary",
|
|
4947
|
-
onMousedown:
|
|
4948
|
-
},
|
|
4947
|
+
onMousedown: P(w, ["prevent"])
|
|
4948
|
+
}, C(T(n)("common.apply")), 33)])
|
|
4949
4949
|
])]),
|
|
4950
4950
|
_: 1
|
|
4951
4951
|
}, 8, ["open", "aria-label"]));
|
|
4952
4952
|
}
|
|
4953
|
-
}), [["__scopeId", "data-v-1af2dcf5"]]),
|
|
4953
|
+
}), [["__scopeId", "data-v-1af2dcf5"]]), Xr = { class: "dialog__header" }, Zr = { class: "dialog__title" }, Qr = ["title"], $r = { class: "dialog__body" }, ei = ["placeholder"], ti = {
|
|
4954
4954
|
key: 0,
|
|
4955
4955
|
class: "symbol-tabs"
|
|
4956
|
-
},
|
|
4956
|
+
}, ni = ["onMousedown"], ri = { class: "symbol-grid" }, ii = [
|
|
4957
4957
|
"title",
|
|
4958
4958
|
"onClick",
|
|
4959
4959
|
"onDblclick"
|
|
4960
|
-
],
|
|
4960
|
+
], ai = {
|
|
4961
4961
|
key: 0,
|
|
4962
4962
|
class: "symbol-empty"
|
|
4963
|
-
},
|
|
4963
|
+
}, oi = {
|
|
4964
4964
|
key: 1,
|
|
4965
4965
|
class: "symbol-preview"
|
|
4966
|
-
},
|
|
4966
|
+
}, si = { class: "symbol-preview__char" }, ci = { class: "symbol-preview__info" }, li = {
|
|
4967
4967
|
key: 2,
|
|
4968
4968
|
class: "symbol-recent"
|
|
4969
|
-
},
|
|
4969
|
+
}, ui = { class: "symbol-recent__label" }, di = ["onDblclick", "onClick"], fi = { class: "dialog__actions" }, pi = ["disabled"], mi = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4970
4970
|
__name: "InsertSymbolDialog",
|
|
4971
4971
|
props: { isOpen: { type: Boolean } },
|
|
4972
4972
|
emits: ["close", "insert"],
|
|
4973
4973
|
setup(t, { emit: r }) {
|
|
4974
|
-
let { t: s } =
|
|
4974
|
+
let { t: s } = Z(), c = t, l = r, u = b(null), d = b(""), m = b("Common"), h = b(""), g = b([]), v = [
|
|
4975
4975
|
{
|
|
4976
4976
|
name: "Common",
|
|
4977
4977
|
nameKey: "dialogs.insertSymbol.categories.common",
|
|
@@ -5464,17 +5464,17 @@ var Fn = l({
|
|
|
5464
5464
|
}
|
|
5465
5465
|
]
|
|
5466
5466
|
}
|
|
5467
|
-
],
|
|
5467
|
+
], y = n(() => {
|
|
5468
5468
|
let e = [];
|
|
5469
5469
|
for (let t of v) for (let n of t.symbols) e.push({
|
|
5470
5470
|
...n,
|
|
5471
5471
|
category: t.name
|
|
5472
5472
|
});
|
|
5473
5473
|
return e;
|
|
5474
|
-
}),
|
|
5474
|
+
}), S = n(() => {
|
|
5475
5475
|
if (d.value) {
|
|
5476
5476
|
let e = d.value.toLowerCase();
|
|
5477
|
-
return
|
|
5477
|
+
return y.value.filter((t) => t.name.toLowerCase().includes(e) || t.char === e);
|
|
5478
5478
|
}
|
|
5479
5479
|
let e = v.find((e) => e.name === m.value);
|
|
5480
5480
|
return e ? e.symbols.map((t) => ({
|
|
@@ -5482,10 +5482,10 @@ var Fn = l({
|
|
|
5482
5482
|
category: e.name
|
|
5483
5483
|
})) : [];
|
|
5484
5484
|
});
|
|
5485
|
-
|
|
5485
|
+
A(() => c.isOpen, async (e) => {
|
|
5486
5486
|
e && (await f(), u.value?.focus());
|
|
5487
5487
|
});
|
|
5488
|
-
function
|
|
5488
|
+
function w() {
|
|
5489
5489
|
l("close");
|
|
5490
5490
|
}
|
|
5491
5491
|
function E(e) {
|
|
@@ -5494,57 +5494,57 @@ var Fn = l({
|
|
|
5494
5494
|
return (n, r) => t.isOpen ? (_(), a("div", {
|
|
5495
5495
|
key: 0,
|
|
5496
5496
|
class: "dialog-overlay",
|
|
5497
|
-
onMousedown:
|
|
5497
|
+
onMousedown: P(w, ["self"])
|
|
5498
5498
|
}, [o("div", {
|
|
5499
5499
|
class: "dialog symbol-dialog",
|
|
5500
|
-
onMousedown: r[2] ||=
|
|
5501
|
-
onKeydown: r[3] ||=
|
|
5502
|
-
}, [o("div",
|
|
5500
|
+
onMousedown: r[2] ||= P(() => {}, ["stop"]),
|
|
5501
|
+
onKeydown: r[3] ||= P(() => {}, ["stop"])
|
|
5502
|
+
}, [o("div", Xr, [o("span", Zr, C(T(s)("dialogs.insertSymbol.title")), 1), o("button", {
|
|
5503
5503
|
class: "dialog__close",
|
|
5504
|
-
title:
|
|
5505
|
-
onClick:
|
|
5506
|
-
}, "✕", 8,
|
|
5507
|
-
|
|
5504
|
+
title: T(s)("common.closeDialog"),
|
|
5505
|
+
onClick: w
|
|
5506
|
+
}, "✕", 8, Qr)]), o("div", $r, [
|
|
5507
|
+
M(o("input", {
|
|
5508
5508
|
ref_key: "searchRef",
|
|
5509
5509
|
ref: u,
|
|
5510
5510
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
5511
5511
|
class: "symbol-search",
|
|
5512
|
-
placeholder:
|
|
5513
|
-
onKeydown:
|
|
5514
|
-
}, null, 40,
|
|
5515
|
-
d.value ? i("", !0) : (_(), a("div",
|
|
5512
|
+
placeholder: T(s)("dialogs.insertSymbol.searchPlaceholder"),
|
|
5513
|
+
onKeydown: N(w, ["escape"])
|
|
5514
|
+
}, null, 40, ei), [[k, d.value]]),
|
|
5515
|
+
d.value ? i("", !0) : (_(), a("div", ti, [(_(), a(e, null, x(v, (e) => o("button", {
|
|
5516
5516
|
key: e.name,
|
|
5517
5517
|
class: p(["symbol-tab", { active: m.value === e.name }]),
|
|
5518
|
-
onMousedown:
|
|
5519
|
-
},
|
|
5520
|
-
o("div",
|
|
5518
|
+
onMousedown: P((t) => m.value = e.name, ["prevent"])
|
|
5519
|
+
}, C(T(s)(e.nameKey)), 43, ni)), 64))])),
|
|
5520
|
+
o("div", ri, [(_(!0), a(e, null, x(S.value, (e) => (_(), a("button", {
|
|
5521
5521
|
key: e.char,
|
|
5522
5522
|
class: p(["symbol-cell", { selected: h.value === e.char }]),
|
|
5523
5523
|
title: e.name,
|
|
5524
5524
|
onClick: (t) => h.value = e.char,
|
|
5525
5525
|
onDblclick: (t) => E(e.char)
|
|
5526
|
-
},
|
|
5527
|
-
h.value ? (_(), a("div",
|
|
5528
|
-
g.value.length > 0 && !d.value ? (_(), a("div",
|
|
5526
|
+
}, C(e.char), 43, ii))), 128)), S.value.length === 0 ? (_(), a("div", ai, C(d.value ? T(s)("dialogs.insertSymbol.noResults", { query: d.value }) : T(s)("dialogs.insertSymbol.noResultsEmpty")), 1)) : i("", !0)]),
|
|
5527
|
+
h.value ? (_(), a("div", oi, [o("span", si, C(h.value), 1), o("span", ci, "U+" + C(h.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : i("", !0),
|
|
5528
|
+
g.value.length > 0 && !d.value ? (_(), a("div", li, [o("div", ui, C(T(s)("dialogs.insertSymbol.recent")), 1), (_(!0), a(e, null, x(g.value, (e) => (_(), a("button", {
|
|
5529
5529
|
key: e,
|
|
5530
5530
|
class: "symbol-cell symbol-cell--small",
|
|
5531
5531
|
onDblclick: (t) => E(e),
|
|
5532
5532
|
onClick: (t) => h.value = e
|
|
5533
|
-
},
|
|
5534
|
-
o("div",
|
|
5533
|
+
}, C(e), 41, di))), 128))])) : i("", !0),
|
|
5534
|
+
o("div", fi, [o("button", {
|
|
5535
5535
|
class: "dialog__btn",
|
|
5536
|
-
onClick:
|
|
5537
|
-
},
|
|
5536
|
+
onClick: w
|
|
5537
|
+
}, C(T(s)("common.cancel")), 1), o("button", {
|
|
5538
5538
|
class: "dialog__btn dialog__btn--primary",
|
|
5539
|
-
onMousedown: r[1] ||=
|
|
5539
|
+
onMousedown: r[1] ||= P((e) => E(h.value), ["prevent"]),
|
|
5540
5540
|
disabled: !h.value
|
|
5541
|
-
},
|
|
5541
|
+
}, C(T(s)("common.insert")), 41, pi)])
|
|
5542
5542
|
])], 32)], 32)) : i("", !0);
|
|
5543
5543
|
}
|
|
5544
|
-
}), [["__scopeId", "data-v-b758388e"]]),
|
|
5544
|
+
}), [["__scopeId", "data-v-b758388e"]]), hi = { class: "ps-header" }, gi = { class: "ps-body" }, _i = { class: "ps-section-label" }, vi = { class: "ps-row" }, yi = { class: "ps-label" }, bi = ["value"], xi = ["value"], Si = {
|
|
5545
5545
|
key: 0,
|
|
5546
5546
|
value: -1
|
|
5547
|
-
},
|
|
5547
|
+
}, Ci = { class: "ps-row" }, wi = { class: "ps-label" }, Ti = ["value"], Ei = { value: "portrait" }, Di = { value: "landscape" }, Oi = { class: "ps-section-label ps-section-label--spaced" }, ki = { class: "ps-row" }, Ai = { class: "ps-label" }, ji = { class: "ps-row" }, Mi = { class: "ps-label" }, Ni = { class: "ps-row" }, Pi = { class: "ps-label" }, Fi = { class: "ps-row" }, Ii = { class: "ps-label" }, Li = { class: "ps-footer" }, Ri = 12240, zi = 15840, Bi = 1440, Vi = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
5548
5548
|
__name: "PageSetupDialog",
|
|
5549
5549
|
props: {
|
|
5550
5550
|
isOpen: { type: Boolean },
|
|
@@ -5552,7 +5552,7 @@ var Fn = l({
|
|
|
5552
5552
|
},
|
|
5553
5553
|
emits: ["close", "apply"],
|
|
5554
5554
|
setup(t, { emit: s }) {
|
|
5555
|
-
let { t: c } =
|
|
5555
|
+
let { t: c } = Z(), { Dialog: l } = Q(), u = [
|
|
5556
5556
|
{
|
|
5557
5557
|
labelKey: "dialogs.pageSetup.pageSizes.letter",
|
|
5558
5558
|
width: 12240,
|
|
@@ -5588,23 +5588,23 @@ var Fn = l({
|
|
|
5588
5588
|
width: 10440,
|
|
5589
5589
|
height: 15120
|
|
5590
5590
|
}
|
|
5591
|
-
], d = t, f = s, p =
|
|
5592
|
-
function
|
|
5591
|
+
], d = t, f = s, p = b(Ri), m = b(zi), h = b("portrait"), g = b(1), v = b(1), y = b(1), S = b(1);
|
|
5592
|
+
function w(e) {
|
|
5593
5593
|
return Math.round(e / z * 100) / 100;
|
|
5594
5594
|
}
|
|
5595
5595
|
function E(e) {
|
|
5596
5596
|
return Math.round((Number(e) || 0) * z);
|
|
5597
5597
|
}
|
|
5598
|
-
let
|
|
5598
|
+
let D = n(() => {
|
|
5599
5599
|
let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
|
|
5600
5600
|
return u.findIndex((n) => Math.abs(n.width - e) < 20 && Math.abs(n.height - t) < 20);
|
|
5601
5601
|
});
|
|
5602
|
-
|
|
5602
|
+
A(() => d.isOpen, (e) => {
|
|
5603
5603
|
if (!e) return;
|
|
5604
|
-
let t = d.sectionProperties, n = t?.pageWidth ||
|
|
5605
|
-
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value =
|
|
5604
|
+
let t = d.sectionProperties, n = t?.pageWidth || Ri, r = t?.pageHeight || zi;
|
|
5605
|
+
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = w(t?.marginTop ?? Bi), v.value = w(t?.marginBottom ?? Bi), y.value = w(t?.marginLeft ?? Bi), S.value = w(t?.marginRight ?? Bi);
|
|
5606
5606
|
}, { immediate: !0 });
|
|
5607
|
-
function
|
|
5607
|
+
function O(e) {
|
|
5608
5608
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
5609
5609
|
let t = Number(e.target.value), n = u.at(t);
|
|
5610
5610
|
t < 0 || !n || (h.value === "landscape" ? (p.value = n.height, m.value = n.width) : (p.value = n.width, m.value = n.height));
|
|
@@ -5627,13 +5627,13 @@ var Fn = l({
|
|
|
5627
5627
|
orientation: h.value,
|
|
5628
5628
|
marginTop: E(g.value),
|
|
5629
5629
|
marginBottom: E(v.value),
|
|
5630
|
-
marginLeft: E(
|
|
5631
|
-
marginRight: E(
|
|
5630
|
+
marginLeft: E(y.value),
|
|
5631
|
+
marginRight: E(S.value)
|
|
5632
5632
|
}), F();
|
|
5633
5633
|
}
|
|
5634
|
-
return (n, s) => (_(), r(
|
|
5634
|
+
return (n, s) => (_(), r(T(l), {
|
|
5635
5635
|
open: t.isOpen,
|
|
5636
|
-
"aria-label":
|
|
5636
|
+
"aria-label": T(c)("dialogs.pageSetup.title"),
|
|
5637
5637
|
style: {
|
|
5638
5638
|
minWidth: "400px",
|
|
5639
5639
|
maxWidth: "480px",
|
|
@@ -5641,29 +5641,29 @@ var Fn = l({
|
|
|
5641
5641
|
margin: "20px"
|
|
5642
5642
|
},
|
|
5643
5643
|
onClose: F,
|
|
5644
|
-
onKeydown:
|
|
5644
|
+
onKeydown: N(I, ["enter"])
|
|
5645
5645
|
}, {
|
|
5646
|
-
default:
|
|
5647
|
-
o("div",
|
|
5648
|
-
o("div",
|
|
5649
|
-
o("div",
|
|
5650
|
-
o("div",
|
|
5646
|
+
default: j(() => [
|
|
5647
|
+
o("div", hi, C(T(c)("dialogs.pageSetup.title")), 1),
|
|
5648
|
+
o("div", gi, [
|
|
5649
|
+
o("div", _i, C(T(c)("dialogs.pageSetup.pageSize")), 1),
|
|
5650
|
+
o("div", vi, [o("label", yi, C(T(c)("dialogs.pageSetup.sizeLabel")), 1), o("select", {
|
|
5651
5651
|
class: "ps-input",
|
|
5652
|
-
value:
|
|
5653
|
-
onChange:
|
|
5654
|
-
}, [(_(), a(e, null,
|
|
5652
|
+
value: D.value,
|
|
5653
|
+
onChange: O
|
|
5654
|
+
}, [(_(), a(e, null, x(u, (e, t) => o("option", {
|
|
5655
5655
|
key: e.labelKey,
|
|
5656
5656
|
value: t
|
|
5657
|
-
},
|
|
5658
|
-
o("div",
|
|
5657
|
+
}, C(T(c)(e.labelKey)), 9, xi)), 64)), D.value < 0 ? (_(), a("option", Si, C(T(c)("dialogs.pageSetup.custom")), 1)) : i("", !0)], 40, bi)]),
|
|
5658
|
+
o("div", Ci, [o("label", wi, C(T(c)("dialogs.pageSetup.orientation")), 1), o("select", {
|
|
5659
5659
|
class: "ps-input",
|
|
5660
5660
|
value: h.value,
|
|
5661
5661
|
onChange: P
|
|
5662
|
-
}, [o("option",
|
|
5663
|
-
o("div",
|
|
5664
|
-
o("div",
|
|
5665
|
-
o("label",
|
|
5666
|
-
|
|
5662
|
+
}, [o("option", Ei, C(T(c)("dialogs.pageSetup.portrait")), 1), o("option", Di, C(T(c)("dialogs.pageSetup.landscape")), 1)], 40, Ti)]),
|
|
5663
|
+
o("div", Oi, C(T(c)("dialogs.pageSetup.margins")), 1),
|
|
5664
|
+
o("div", ki, [
|
|
5665
|
+
o("label", Ai, C(T(c)("dialogs.pageSetup.top")), 1),
|
|
5666
|
+
M(o("input", {
|
|
5667
5667
|
class: "ps-input",
|
|
5668
5668
|
type: "number",
|
|
5669
5669
|
min: "0",
|
|
@@ -5671,16 +5671,16 @@ var Fn = l({
|
|
|
5671
5671
|
step: "0.1",
|
|
5672
5672
|
"onUpdate:modelValue": s[0] ||= (e) => g.value = e
|
|
5673
5673
|
}, null, 512), [[
|
|
5674
|
-
|
|
5674
|
+
k,
|
|
5675
5675
|
g.value,
|
|
5676
5676
|
void 0,
|
|
5677
5677
|
{ number: !0 }
|
|
5678
5678
|
]]),
|
|
5679
5679
|
s[4] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5680
5680
|
]),
|
|
5681
|
-
o("div",
|
|
5682
|
-
o("label",
|
|
5683
|
-
|
|
5681
|
+
o("div", ji, [
|
|
5682
|
+
o("label", Mi, C(T(c)("dialogs.pageSetup.bottom")), 1),
|
|
5683
|
+
M(o("input", {
|
|
5684
5684
|
class: "ps-input",
|
|
5685
5685
|
type: "number",
|
|
5686
5686
|
min: "0",
|
|
@@ -5688,61 +5688,1335 @@ var Fn = l({
|
|
|
5688
5688
|
step: "0.1",
|
|
5689
5689
|
"onUpdate:modelValue": s[1] ||= (e) => v.value = e
|
|
5690
5690
|
}, null, 512), [[
|
|
5691
|
-
|
|
5691
|
+
k,
|
|
5692
5692
|
v.value,
|
|
5693
5693
|
void 0,
|
|
5694
5694
|
{ number: !0 }
|
|
5695
5695
|
]]),
|
|
5696
5696
|
s[5] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5697
5697
|
]),
|
|
5698
|
-
o("div",
|
|
5699
|
-
o("label",
|
|
5700
|
-
|
|
5698
|
+
o("div", Ni, [
|
|
5699
|
+
o("label", Pi, C(T(c)("dialogs.pageSetup.left")), 1),
|
|
5700
|
+
M(o("input", {
|
|
5701
5701
|
class: "ps-input",
|
|
5702
5702
|
type: "number",
|
|
5703
5703
|
min: "0",
|
|
5704
5704
|
max: "10",
|
|
5705
5705
|
step: "0.1",
|
|
5706
|
-
"onUpdate:modelValue": s[2] ||= (e) =>
|
|
5706
|
+
"onUpdate:modelValue": s[2] ||= (e) => y.value = e
|
|
5707
5707
|
}, null, 512), [[
|
|
5708
|
-
|
|
5709
|
-
|
|
5708
|
+
k,
|
|
5709
|
+
y.value,
|
|
5710
5710
|
void 0,
|
|
5711
5711
|
{ number: !0 }
|
|
5712
5712
|
]]),
|
|
5713
5713
|
s[6] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5714
5714
|
]),
|
|
5715
|
-
o("div",
|
|
5716
|
-
o("label",
|
|
5717
|
-
|
|
5715
|
+
o("div", Fi, [
|
|
5716
|
+
o("label", Ii, C(T(c)("dialogs.pageSetup.right")), 1),
|
|
5717
|
+
M(o("input", {
|
|
5718
5718
|
class: "ps-input",
|
|
5719
5719
|
type: "number",
|
|
5720
5720
|
min: "0",
|
|
5721
5721
|
max: "10",
|
|
5722
5722
|
step: "0.1",
|
|
5723
|
-
"onUpdate:modelValue": s[3] ||= (e) =>
|
|
5723
|
+
"onUpdate:modelValue": s[3] ||= (e) => S.value = e
|
|
5724
5724
|
}, null, 512), [[
|
|
5725
|
-
|
|
5726
|
-
|
|
5725
|
+
k,
|
|
5726
|
+
S.value,
|
|
5727
5727
|
void 0,
|
|
5728
5728
|
{ number: !0 }
|
|
5729
5729
|
]]),
|
|
5730
5730
|
s[7] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5731
5731
|
])
|
|
5732
5732
|
]),
|
|
5733
|
-
o("div",
|
|
5733
|
+
o("div", Li, [o("button", {
|
|
5734
5734
|
type: "button",
|
|
5735
5735
|
class: "ps-btn",
|
|
5736
5736
|
onClick: F
|
|
5737
|
-
},
|
|
5737
|
+
}, C(T(c)("common.cancel")), 1), o("button", {
|
|
5738
5738
|
type: "button",
|
|
5739
5739
|
class: "ps-btn ps-btn--primary",
|
|
5740
5740
|
onClick: I
|
|
5741
|
-
},
|
|
5741
|
+
}, C(T(c)("common.apply")), 1)])
|
|
5742
5742
|
]),
|
|
5743
5743
|
_: 1
|
|
5744
5744
|
}, 8, ["open", "aria-label"]));
|
|
5745
5745
|
}
|
|
5746
|
-
}), [["__scopeId", "data-v-22e50d36"]])
|
|
5746
|
+
}), [["__scopeId", "data-v-22e50d36"]]), Hi = { class: "fnpd-dialog__header" }, Ui = { class: "fnpd-dialog__body" }, Wi = { class: "fnpd-fieldset" }, Gi = { class: "fnpd-legend" }, Ki = { class: "fnpd-row" }, qi = { class: "fnpd-label" }, Ji = { value: "pageBottom" }, Yi = { value: "beneathText" }, Xi = { class: "fnpd-row" }, Zi = { class: "fnpd-label" }, Qi = ["value"], $i = { class: "fnpd-row" }, ea = { class: "fnpd-label" }, ta = { class: "fnpd-row" }, na = { class: "fnpd-label" }, ra = { value: "continuous" }, ia = { value: "eachSect" }, aa = { value: "eachPage" }, oa = { class: "fnpd-fieldset" }, sa = { class: "fnpd-legend" }, ca = { class: "fnpd-row" }, la = { class: "fnpd-label" }, ua = { value: "docEnd" }, da = { value: "sectEnd" }, fa = { class: "fnpd-row" }, pa = { class: "fnpd-label" }, ma = ["value"], ha = { class: "fnpd-row" }, ga = { class: "fnpd-label" }, _a = { class: "fnpd-row" }, va = { class: "fnpd-label" }, ya = { value: "continuous" }, ba = { value: "eachSect" }, xa = { class: "fnpd-dialog__footer" }, Sa = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
5747
|
+
__name: "FootnotePropertiesDialog",
|
|
5748
|
+
props: {
|
|
5749
|
+
isOpen: { type: Boolean },
|
|
5750
|
+
footnotePr: {},
|
|
5751
|
+
endnotePr: {}
|
|
5752
|
+
},
|
|
5753
|
+
emits: ["close", "apply"],
|
|
5754
|
+
setup(t, { emit: i }) {
|
|
5755
|
+
let { t: s } = Z(), { Dialog: c } = Q(), l = t, u = i, d = n(() => [
|
|
5756
|
+
{
|
|
5757
|
+
value: "decimal",
|
|
5758
|
+
label: s("dialogs.footnoteProperties.formats.decimal")
|
|
5759
|
+
},
|
|
5760
|
+
{
|
|
5761
|
+
value: "lowerLetter",
|
|
5762
|
+
label: s("dialogs.footnoteProperties.formats.lowerAlpha")
|
|
5763
|
+
},
|
|
5764
|
+
{
|
|
5765
|
+
value: "upperLetter",
|
|
5766
|
+
label: s("dialogs.footnoteProperties.formats.upperAlpha")
|
|
5767
|
+
},
|
|
5768
|
+
{
|
|
5769
|
+
value: "lowerRoman",
|
|
5770
|
+
label: s("dialogs.footnoteProperties.formats.lowerRoman")
|
|
5771
|
+
},
|
|
5772
|
+
{
|
|
5773
|
+
value: "upperRoman",
|
|
5774
|
+
label: s("dialogs.footnoteProperties.formats.upperRoman")
|
|
5775
|
+
},
|
|
5776
|
+
{
|
|
5777
|
+
value: "chicago",
|
|
5778
|
+
label: s("dialogs.footnoteProperties.formats.symbols")
|
|
5779
|
+
}
|
|
5780
|
+
]), f = b("pageBottom"), p = b("decimal"), m = b(1), h = b("continuous"), g = b("docEnd"), v = b("lowerRoman"), y = b(1), S = b("continuous");
|
|
5781
|
+
A(() => l.isOpen, (e) => {
|
|
5782
|
+
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", v.value = l.endnotePr?.numFmt ?? "lowerRoman", y.value = l.endnotePr?.numStart ?? 1, S.value = l.endnotePr?.numRestart ?? "continuous");
|
|
5783
|
+
});
|
|
5784
|
+
function w() {
|
|
5785
|
+
u("apply", {
|
|
5786
|
+
position: f.value,
|
|
5787
|
+
numFmt: p.value,
|
|
5788
|
+
numStart: m.value,
|
|
5789
|
+
numRestart: h.value
|
|
5790
|
+
}, {
|
|
5791
|
+
position: g.value,
|
|
5792
|
+
numFmt: v.value,
|
|
5793
|
+
numStart: y.value,
|
|
5794
|
+
numRestart: S.value
|
|
5795
|
+
}), u("close");
|
|
5796
|
+
}
|
|
5797
|
+
return (n, i) => (_(), r(T(c), {
|
|
5798
|
+
open: t.isOpen,
|
|
5799
|
+
"aria-label": T(s)("dialogs.footnoteProperties.title"),
|
|
5800
|
+
style: {
|
|
5801
|
+
width: "440px",
|
|
5802
|
+
maxWidth: "90vw"
|
|
5803
|
+
},
|
|
5804
|
+
onClose: i[9] ||= (e) => n.$emit("close")
|
|
5805
|
+
}, {
|
|
5806
|
+
default: j(() => [
|
|
5807
|
+
o("div", Hi, C(T(s)("dialogs.footnoteProperties.title")), 1),
|
|
5808
|
+
o("div", Ui, [o("fieldset", Wi, [
|
|
5809
|
+
o("legend", Gi, C(T(s)("dialogs.footnoteProperties.footnotes")), 1),
|
|
5810
|
+
o("div", Ki, [o("label", qi, C(T(s)("dialogs.footnoteProperties.position")), 1), M(o("select", {
|
|
5811
|
+
"onUpdate:modelValue": i[0] ||= (e) => f.value = e,
|
|
5812
|
+
class: "fnpd-select"
|
|
5813
|
+
}, [o("option", Ji, C(T(s)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), o("option", Yi, C(T(s)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[O, f.value]])]),
|
|
5814
|
+
o("div", Xi, [o("label", Zi, C(T(s)("dialogs.footnoteProperties.numberFormat")), 1), M(o("select", {
|
|
5815
|
+
"onUpdate:modelValue": i[1] ||= (e) => p.value = e,
|
|
5816
|
+
class: "fnpd-select"
|
|
5817
|
+
}, [(_(!0), a(e, null, x(d.value, (e) => (_(), a("option", {
|
|
5818
|
+
key: e.value,
|
|
5819
|
+
value: e.value
|
|
5820
|
+
}, C(e.label), 9, Qi))), 128))], 512), [[O, p.value]])]),
|
|
5821
|
+
o("div", $i, [o("label", ea, C(T(s)("dialogs.footnoteProperties.startAt")), 1), M(o("input", {
|
|
5822
|
+
"onUpdate:modelValue": i[2] ||= (e) => m.value = e,
|
|
5823
|
+
type: "number",
|
|
5824
|
+
class: "fnpd-input",
|
|
5825
|
+
min: "1"
|
|
5826
|
+
}, null, 512), [[
|
|
5827
|
+
k,
|
|
5828
|
+
m.value,
|
|
5829
|
+
void 0,
|
|
5830
|
+
{ number: !0 }
|
|
5831
|
+
]])]),
|
|
5832
|
+
o("div", ta, [o("label", na, C(T(s)("dialogs.footnoteProperties.numbering")), 1), M(o("select", {
|
|
5833
|
+
"onUpdate:modelValue": i[3] ||= (e) => h.value = e,
|
|
5834
|
+
class: "fnpd-select"
|
|
5835
|
+
}, [
|
|
5836
|
+
o("option", ra, C(T(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
|
|
5837
|
+
o("option", ia, C(T(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
|
|
5838
|
+
o("option", aa, C(T(s)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
|
|
5839
|
+
], 512), [[O, h.value]])])
|
|
5840
|
+
]), o("fieldset", oa, [
|
|
5841
|
+
o("legend", sa, C(T(s)("dialogs.footnoteProperties.endnotes")), 1),
|
|
5842
|
+
o("div", ca, [o("label", la, C(T(s)("dialogs.footnoteProperties.position")), 1), M(o("select", {
|
|
5843
|
+
"onUpdate:modelValue": i[4] ||= (e) => g.value = e,
|
|
5844
|
+
class: "fnpd-select"
|
|
5845
|
+
}, [o("option", ua, C(T(s)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), o("option", da, C(T(s)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[O, g.value]])]),
|
|
5846
|
+
o("div", fa, [o("label", pa, C(T(s)("dialogs.footnoteProperties.numberFormat")), 1), M(o("select", {
|
|
5847
|
+
"onUpdate:modelValue": i[5] ||= (e) => v.value = e,
|
|
5848
|
+
class: "fnpd-select"
|
|
5849
|
+
}, [(_(!0), a(e, null, x(d.value, (e) => (_(), a("option", {
|
|
5850
|
+
key: e.value,
|
|
5851
|
+
value: e.value
|
|
5852
|
+
}, C(e.label), 9, ma))), 128))], 512), [[O, v.value]])]),
|
|
5853
|
+
o("div", ha, [o("label", ga, C(T(s)("dialogs.footnoteProperties.startAt")), 1), M(o("input", {
|
|
5854
|
+
"onUpdate:modelValue": i[6] ||= (e) => y.value = e,
|
|
5855
|
+
type: "number",
|
|
5856
|
+
class: "fnpd-input",
|
|
5857
|
+
min: "1"
|
|
5858
|
+
}, null, 512), [[
|
|
5859
|
+
k,
|
|
5860
|
+
y.value,
|
|
5861
|
+
void 0,
|
|
5862
|
+
{ number: !0 }
|
|
5863
|
+
]])]),
|
|
5864
|
+
o("div", _a, [o("label", va, C(T(s)("dialogs.footnoteProperties.numbering")), 1), M(o("select", {
|
|
5865
|
+
"onUpdate:modelValue": i[7] ||= (e) => S.value = e,
|
|
5866
|
+
class: "fnpd-select"
|
|
5867
|
+
}, [o("option", ya, C(T(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), o("option", ba, C(T(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[O, S.value]])])
|
|
5868
|
+
])]),
|
|
5869
|
+
o("div", xa, [o("button", {
|
|
5870
|
+
class: "fnpd-btn",
|
|
5871
|
+
onClick: i[8] ||= (e) => n.$emit("close")
|
|
5872
|
+
}, C(T(s)("common.cancel")), 1), o("button", {
|
|
5873
|
+
class: "fnpd-btn fnpd-btn--primary",
|
|
5874
|
+
onClick: w
|
|
5875
|
+
}, C(T(s)("common.apply")), 1)])
|
|
5876
|
+
]),
|
|
5877
|
+
_: 1
|
|
5878
|
+
}, 8, ["open", "aria-label"]));
|
|
5879
|
+
}
|
|
5880
|
+
}), [["__scopeId", "data-v-2d896d01"]]), Ca = { class: "ipd-dialog__header" }, wa = { class: "ipd-dialog__body" }, Ta = { class: "ipd-fieldset" }, Ea = { class: "ipd-legend" }, Da = { class: "ipd-row" }, Oa = { value: "align" }, ka = { value: "offset" }, Aa = {
|
|
5881
|
+
key: 0,
|
|
5882
|
+
class: "ipd-row"
|
|
5883
|
+
}, ja = { class: "ipd-label" }, Ma = { value: "left" }, Na = { value: "center" }, Pa = { value: "right" }, Fa = {
|
|
5884
|
+
key: 1,
|
|
5885
|
+
class: "ipd-row"
|
|
5886
|
+
}, Ia = { class: "ipd-label" }, La = { class: "ipd-row" }, Ra = { class: "ipd-label" }, za = { value: "page" }, Ba = { value: "column" }, Va = { value: "margin" }, Ha = { value: "character" }, Ua = { class: "ipd-fieldset" }, Wa = { class: "ipd-legend" }, Ga = { class: "ipd-row" }, Ka = { value: "align" }, qa = { value: "offset" }, Ja = {
|
|
5887
|
+
key: 0,
|
|
5888
|
+
class: "ipd-row"
|
|
5889
|
+
}, Ya = { class: "ipd-label" }, Xa = { value: "top" }, Za = { value: "center" }, Qa = { value: "bottom" }, $a = {
|
|
5890
|
+
key: 1,
|
|
5891
|
+
class: "ipd-row"
|
|
5892
|
+
}, eo = { class: "ipd-label" }, to = { class: "ipd-row" }, no = { class: "ipd-label" }, ro = { value: "page" }, io = { value: "margin" }, ao = { value: "paragraph" }, oo = { value: "line" }, so = { class: "ipd-fieldset" }, co = { class: "ipd-row" }, lo = { class: "ipd-label" }, uo = {
|
|
5893
|
+
class: "ipd-label",
|
|
5894
|
+
style: { width: "60px" }
|
|
5895
|
+
}, fo = { class: "ipd-row" }, po = { class: "ipd-label" }, mo = {
|
|
5896
|
+
class: "ipd-label",
|
|
5897
|
+
style: { width: "60px" }
|
|
5898
|
+
}, ho = { class: "ipd-dialog__footer" }, go = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
5899
|
+
__name: "ImagePositionDialog",
|
|
5900
|
+
props: {
|
|
5901
|
+
isOpen: { type: Boolean },
|
|
5902
|
+
currentData: {}
|
|
5903
|
+
},
|
|
5904
|
+
emits: ["close", "apply"],
|
|
5905
|
+
setup(e, { emit: t }) {
|
|
5906
|
+
let { t: n } = Z(), { Dialog: i } = Q(), s = e, c = t, l = b("align"), u = b("left"), d = b(0), f = b("column"), p = b("align"), m = b("top"), h = b(0), g = b("paragraph"), v = b(0), y = b(0), x = b(0), S = b(0);
|
|
5907
|
+
A(() => s.isOpen, (e) => {
|
|
5908
|
+
if (!e) return;
|
|
5909
|
+
let t = s.currentData;
|
|
5910
|
+
t?.horizontal?.align ? (l.value = "align", u.value = t.horizontal.align) : t?.horizontal?.posOffset != null && (l.value = "offset", d.value = t.horizontal.posOffset), f.value = t?.horizontal?.relativeTo ?? "column", t?.vertical?.align ? (p.value = "align", m.value = t.vertical.align) : t?.vertical?.posOffset != null && (p.value = "offset", h.value = t.vertical.posOffset), g.value = t?.vertical?.relativeTo ?? "paragraph", v.value = t?.distTop ?? 0, y.value = t?.distBottom ?? 0, x.value = t?.distLeft ?? 0, S.value = t?.distRight ?? 0;
|
|
5911
|
+
});
|
|
5912
|
+
function w() {
|
|
5913
|
+
c("apply", {
|
|
5914
|
+
horizontal: {
|
|
5915
|
+
relativeTo: f.value,
|
|
5916
|
+
...l.value === "align" ? { align: u.value } : { posOffset: d.value }
|
|
5917
|
+
},
|
|
5918
|
+
vertical: {
|
|
5919
|
+
relativeTo: g.value,
|
|
5920
|
+
...p.value === "align" ? { align: m.value } : { posOffset: h.value }
|
|
5921
|
+
},
|
|
5922
|
+
distTop: v.value,
|
|
5923
|
+
distBottom: y.value,
|
|
5924
|
+
distLeft: x.value,
|
|
5925
|
+
distRight: S.value
|
|
5926
|
+
}), c("close");
|
|
5927
|
+
}
|
|
5928
|
+
return (t, s) => (_(), r(T(i), {
|
|
5929
|
+
open: e.isOpen,
|
|
5930
|
+
"aria-label": T(n)("dialogs.imagePosition.title"),
|
|
5931
|
+
style: {
|
|
5932
|
+
width: "420px",
|
|
5933
|
+
maxWidth: "90vw"
|
|
5934
|
+
},
|
|
5935
|
+
onClose: s[13] ||= (e) => t.$emit("close")
|
|
5936
|
+
}, {
|
|
5937
|
+
default: j(() => [
|
|
5938
|
+
o("div", Ca, C(T(n)("dialogs.imagePosition.title")), 1),
|
|
5939
|
+
o("div", wa, [
|
|
5940
|
+
o("fieldset", Ta, [
|
|
5941
|
+
o("legend", Ea, C(T(n)("dialogs.imagePosition.horizontal")), 1),
|
|
5942
|
+
o("div", Da, [s[14] ||= o("label", { class: "ipd-label" }, "Mode", -1), M(o("select", {
|
|
5943
|
+
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
5944
|
+
class: "ipd-select"
|
|
5945
|
+
}, [o("option", Oa, C(T(n)("dialogs.imagePosition.alignment")), 1), o("option", ka, C(T(n)("dialogs.imagePosition.offset")), 1)], 512), [[O, l.value]])]),
|
|
5946
|
+
l.value === "align" ? (_(), a("div", Aa, [o("label", ja, C(T(n)("dialogs.imagePosition.align")), 1), M(o("select", {
|
|
5947
|
+
"onUpdate:modelValue": s[1] ||= (e) => u.value = e,
|
|
5948
|
+
class: "ipd-select"
|
|
5949
|
+
}, [
|
|
5950
|
+
o("option", Ma, C(T(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5951
|
+
o("option", Na, C(T(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5952
|
+
o("option", Pa, C(T(n)("dialogs.imagePosition.alignOptions.right")), 1)
|
|
5953
|
+
], 512), [[O, u.value]])])) : (_(), a("div", Fa, [o("label", Ia, C(T(n)("dialogs.imagePosition.offsetPx")), 1), M(o("input", {
|
|
5954
|
+
"onUpdate:modelValue": s[2] ||= (e) => d.value = e,
|
|
5955
|
+
type: "number",
|
|
5956
|
+
class: "ipd-input"
|
|
5957
|
+
}, null, 512), [[
|
|
5958
|
+
k,
|
|
5959
|
+
d.value,
|
|
5960
|
+
void 0,
|
|
5961
|
+
{ number: !0 }
|
|
5962
|
+
]])])),
|
|
5963
|
+
o("div", La, [o("label", Ra, C(T(n)("dialogs.imagePosition.relativeTo")), 1), M(o("select", {
|
|
5964
|
+
"onUpdate:modelValue": s[3] ||= (e) => f.value = e,
|
|
5965
|
+
class: "ipd-select"
|
|
5966
|
+
}, [
|
|
5967
|
+
o("option", za, C(T(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5968
|
+
o("option", Ba, C(T(n)("dialogs.imagePosition.relativeOptions.column")), 1),
|
|
5969
|
+
o("option", Va, C(T(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5970
|
+
o("option", Ha, C(T(n)("dialogs.imagePosition.relativeOptions.character")), 1)
|
|
5971
|
+
], 512), [[O, f.value]])])
|
|
5972
|
+
]),
|
|
5973
|
+
o("fieldset", Ua, [
|
|
5974
|
+
o("legend", Wa, C(T(n)("dialogs.imagePosition.vertical")), 1),
|
|
5975
|
+
o("div", Ga, [s[15] ||= o("label", { class: "ipd-label" }, "Mode", -1), M(o("select", {
|
|
5976
|
+
"onUpdate:modelValue": s[4] ||= (e) => p.value = e,
|
|
5977
|
+
class: "ipd-select"
|
|
5978
|
+
}, [o("option", Ka, C(T(n)("dialogs.imagePosition.alignment")), 1), o("option", qa, C(T(n)("dialogs.imagePosition.offset")), 1)], 512), [[O, p.value]])]),
|
|
5979
|
+
p.value === "align" ? (_(), a("div", Ja, [o("label", Ya, C(T(n)("dialogs.imagePosition.align")), 1), M(o("select", {
|
|
5980
|
+
"onUpdate:modelValue": s[5] ||= (e) => m.value = e,
|
|
5981
|
+
class: "ipd-select"
|
|
5982
|
+
}, [
|
|
5983
|
+
o("option", Xa, C(T(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5984
|
+
o("option", Za, C(T(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5985
|
+
o("option", Qa, C(T(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
|
|
5986
|
+
], 512), [[O, m.value]])])) : (_(), a("div", $a, [o("label", eo, C(T(n)("dialogs.imagePosition.offsetPx")), 1), M(o("input", {
|
|
5987
|
+
"onUpdate:modelValue": s[6] ||= (e) => h.value = e,
|
|
5988
|
+
type: "number",
|
|
5989
|
+
class: "ipd-input"
|
|
5990
|
+
}, null, 512), [[
|
|
5991
|
+
k,
|
|
5992
|
+
h.value,
|
|
5993
|
+
void 0,
|
|
5994
|
+
{ number: !0 }
|
|
5995
|
+
]])])),
|
|
5996
|
+
o("div", to, [o("label", no, C(T(n)("dialogs.imagePosition.relativeTo")), 1), M(o("select", {
|
|
5997
|
+
"onUpdate:modelValue": s[7] ||= (e) => g.value = e,
|
|
5998
|
+
class: "ipd-select"
|
|
5999
|
+
}, [
|
|
6000
|
+
o("option", ro, C(T(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
6001
|
+
o("option", io, C(T(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
6002
|
+
o("option", ao, C(T(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
|
|
6003
|
+
o("option", oo, C(T(n)("dialogs.imagePosition.relativeOptions.line")), 1)
|
|
6004
|
+
], 512), [[O, g.value]])])
|
|
6005
|
+
]),
|
|
6006
|
+
o("fieldset", so, [
|
|
6007
|
+
s[16] ||= o("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
|
|
6008
|
+
o("div", co, [
|
|
6009
|
+
o("label", lo, C(T(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
6010
|
+
M(o("input", {
|
|
6011
|
+
"onUpdate:modelValue": s[8] ||= (e) => v.value = e,
|
|
6012
|
+
type: "number",
|
|
6013
|
+
class: "ipd-input",
|
|
6014
|
+
min: "0"
|
|
6015
|
+
}, null, 512), [[
|
|
6016
|
+
k,
|
|
6017
|
+
v.value,
|
|
6018
|
+
void 0,
|
|
6019
|
+
{ number: !0 }
|
|
6020
|
+
]]),
|
|
6021
|
+
o("label", uo, C(T(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
|
|
6022
|
+
M(o("input", {
|
|
6023
|
+
"onUpdate:modelValue": s[9] ||= (e) => y.value = e,
|
|
6024
|
+
type: "number",
|
|
6025
|
+
class: "ipd-input",
|
|
6026
|
+
min: "0"
|
|
6027
|
+
}, null, 512), [[
|
|
6028
|
+
k,
|
|
6029
|
+
y.value,
|
|
6030
|
+
void 0,
|
|
6031
|
+
{ number: !0 }
|
|
6032
|
+
]])
|
|
6033
|
+
]),
|
|
6034
|
+
o("div", fo, [
|
|
6035
|
+
o("label", po, C(T(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
6036
|
+
M(o("input", {
|
|
6037
|
+
"onUpdate:modelValue": s[10] ||= (e) => x.value = e,
|
|
6038
|
+
type: "number",
|
|
6039
|
+
class: "ipd-input",
|
|
6040
|
+
min: "0"
|
|
6041
|
+
}, null, 512), [[
|
|
6042
|
+
k,
|
|
6043
|
+
x.value,
|
|
6044
|
+
void 0,
|
|
6045
|
+
{ number: !0 }
|
|
6046
|
+
]]),
|
|
6047
|
+
o("label", mo, C(T(n)("dialogs.imagePosition.alignOptions.right")), 1),
|
|
6048
|
+
M(o("input", {
|
|
6049
|
+
"onUpdate:modelValue": s[11] ||= (e) => S.value = e,
|
|
6050
|
+
type: "number",
|
|
6051
|
+
class: "ipd-input",
|
|
6052
|
+
min: "0"
|
|
6053
|
+
}, null, 512), [[
|
|
6054
|
+
k,
|
|
6055
|
+
S.value,
|
|
6056
|
+
void 0,
|
|
6057
|
+
{ number: !0 }
|
|
6058
|
+
]])
|
|
6059
|
+
])
|
|
6060
|
+
])
|
|
6061
|
+
]),
|
|
6062
|
+
o("div", ho, [o("button", {
|
|
6063
|
+
class: "ipd-btn",
|
|
6064
|
+
onClick: s[12] ||= (e) => t.$emit("close")
|
|
6065
|
+
}, C(T(n)("common.cancel")), 1), o("button", {
|
|
6066
|
+
class: "ipd-btn ipd-btn--primary",
|
|
6067
|
+
onClick: w
|
|
6068
|
+
}, C(T(n)("common.apply")), 1)])
|
|
6069
|
+
]),
|
|
6070
|
+
_: 1
|
|
6071
|
+
}, 8, ["open", "aria-label"]));
|
|
6072
|
+
}
|
|
6073
|
+
}), [["__scopeId", "data-v-82d9e45f"]]), _o = { class: "dialog__body" }, vo = { class: "field" }, yo = ["accept"], bo = { class: "field" }, xo = ["placeholder"], So = { class: "grid" }, Co = { class: "field" }, wo = { class: "field" }, To = { class: "dialog__footer" }, Eo = ["disabled"], Do = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
6074
|
+
__name: "InsertImageDialog",
|
|
6075
|
+
props: {
|
|
6076
|
+
isOpen: { type: Boolean },
|
|
6077
|
+
accept: { default: "image/png,image/jpeg,image/gif,image/webp" }
|
|
6078
|
+
},
|
|
6079
|
+
emits: ["close", "insert"],
|
|
6080
|
+
setup(e, { emit: t }) {
|
|
6081
|
+
let { Dialog: n } = Q(), i = e, a = t, s = b(null), c = b(""), l = b(""), u = b("");
|
|
6082
|
+
A(() => i.isOpen, (e) => {
|
|
6083
|
+
e && (s.value = null, c.value = "", l.value = "", u.value = "");
|
|
6084
|
+
});
|
|
6085
|
+
function d(e) {
|
|
6086
|
+
s.value = (e.target instanceof HTMLInputElement ? e.target : null)?.files?.[0] ?? null;
|
|
6087
|
+
}
|
|
6088
|
+
function f() {
|
|
6089
|
+
if (!s.value) return;
|
|
6090
|
+
let e = p(l.value), t = p(u.value);
|
|
6091
|
+
a("insert", {
|
|
6092
|
+
file: s.value,
|
|
6093
|
+
...c.value.trim() ? { alt: c.value.trim() } : {},
|
|
6094
|
+
...e ? { width: e } : {},
|
|
6095
|
+
...t ? { height: t } : {}
|
|
6096
|
+
}), a("close");
|
|
6097
|
+
}
|
|
6098
|
+
function p(e) {
|
|
6099
|
+
let t = Number(e);
|
|
6100
|
+
return Number.isFinite(t) && t > 0 ? t : void 0;
|
|
6101
|
+
}
|
|
6102
|
+
return (t, i) => (_(), r(T(n), {
|
|
6103
|
+
open: e.isOpen,
|
|
6104
|
+
"aria-label": "Insert Image",
|
|
6105
|
+
style: {
|
|
6106
|
+
minWidth: "360px",
|
|
6107
|
+
maxWidth: "520px",
|
|
6108
|
+
width: "100%"
|
|
6109
|
+
},
|
|
6110
|
+
onClose: i[4] ||= (e) => t.$emit("close")
|
|
6111
|
+
}, {
|
|
6112
|
+
default: j(() => [
|
|
6113
|
+
i[9] ||= o("div", { class: "dialog__header" }, "Insert Image", -1),
|
|
6114
|
+
o("div", _o, [
|
|
6115
|
+
o("label", vo, [i[5] ||= o("span", { class: "field__label" }, "Image file", -1), o("input", {
|
|
6116
|
+
class: "field__input",
|
|
6117
|
+
type: "file",
|
|
6118
|
+
accept: e.accept,
|
|
6119
|
+
onChange: d
|
|
6120
|
+
}, null, 40, yo)]),
|
|
6121
|
+
o("label", bo, [i[6] ||= o("span", { class: "field__label" }, "Alt text", -1), M(o("input", {
|
|
6122
|
+
"onUpdate:modelValue": i[0] ||= (e) => c.value = e,
|
|
6123
|
+
class: "field__input",
|
|
6124
|
+
placeholder: s.value?.name ?? ""
|
|
6125
|
+
}, null, 8, xo), [[k, c.value]])]),
|
|
6126
|
+
o("div", So, [o("label", Co, [i[7] ||= o("span", { class: "field__label" }, "Width", -1), M(o("input", {
|
|
6127
|
+
"onUpdate:modelValue": i[1] ||= (e) => l.value = e,
|
|
6128
|
+
class: "field__input",
|
|
6129
|
+
min: "1",
|
|
6130
|
+
placeholder: "Auto",
|
|
6131
|
+
type: "number"
|
|
6132
|
+
}, null, 512), [[k, l.value]])]), o("label", wo, [i[8] ||= o("span", { class: "field__label" }, "Height", -1), M(o("input", {
|
|
6133
|
+
"onUpdate:modelValue": i[2] ||= (e) => u.value = e,
|
|
6134
|
+
class: "field__input",
|
|
6135
|
+
min: "1",
|
|
6136
|
+
placeholder: "Auto",
|
|
6137
|
+
type: "number"
|
|
6138
|
+
}, null, 512), [[k, u.value]])])])
|
|
6139
|
+
]),
|
|
6140
|
+
o("div", To, [o("button", {
|
|
6141
|
+
class: "dialog__btn",
|
|
6142
|
+
onClick: i[3] ||= (e) => t.$emit("close")
|
|
6143
|
+
}, "Cancel"), o("button", {
|
|
6144
|
+
class: "dialog__btn dialog__btn--primary",
|
|
6145
|
+
disabled: !s.value,
|
|
6146
|
+
onClick: f
|
|
6147
|
+
}, " Insert ", 8, Eo)])
|
|
6148
|
+
]),
|
|
6149
|
+
_: 1
|
|
6150
|
+
}, 8, ["open"]));
|
|
6151
|
+
}
|
|
6152
|
+
}), [["__scopeId", "data-v-bf2725c6"]]), $ = (e) => ({
|
|
6153
|
+
style: "single",
|
|
6154
|
+
size: 4,
|
|
6155
|
+
color: { rgb: e }
|
|
6156
|
+
}), Oo = [
|
|
6157
|
+
{
|
|
6158
|
+
id: "TableNormal",
|
|
6159
|
+
name: "Normal Table",
|
|
6160
|
+
look: {
|
|
6161
|
+
firstRow: !1,
|
|
6162
|
+
lastRow: !1,
|
|
6163
|
+
noHBand: !0,
|
|
6164
|
+
noVBand: !0
|
|
6165
|
+
}
|
|
6166
|
+
},
|
|
6167
|
+
{
|
|
6168
|
+
id: "TableGrid",
|
|
6169
|
+
name: "Table Grid",
|
|
6170
|
+
tableBorders: {
|
|
6171
|
+
top: $("000000"),
|
|
6172
|
+
bottom: $("000000"),
|
|
6173
|
+
left: $("000000"),
|
|
6174
|
+
right: $("000000"),
|
|
6175
|
+
insideH: $("000000"),
|
|
6176
|
+
insideV: $("000000")
|
|
6177
|
+
},
|
|
6178
|
+
look: {
|
|
6179
|
+
firstRow: !1,
|
|
6180
|
+
lastRow: !1,
|
|
6181
|
+
noHBand: !0,
|
|
6182
|
+
noVBand: !0
|
|
6183
|
+
}
|
|
6184
|
+
},
|
|
6185
|
+
{
|
|
6186
|
+
id: "TableGridLight",
|
|
6187
|
+
name: "Grid Table Light",
|
|
6188
|
+
tableBorders: {
|
|
6189
|
+
top: $("BFBFBF"),
|
|
6190
|
+
bottom: $("BFBFBF"),
|
|
6191
|
+
left: $("BFBFBF"),
|
|
6192
|
+
right: $("BFBFBF"),
|
|
6193
|
+
insideH: $("BFBFBF"),
|
|
6194
|
+
insideV: $("BFBFBF")
|
|
6195
|
+
},
|
|
6196
|
+
look: {
|
|
6197
|
+
firstRow: !0,
|
|
6198
|
+
lastRow: !1,
|
|
6199
|
+
noHBand: !0,
|
|
6200
|
+
noVBand: !0
|
|
6201
|
+
},
|
|
6202
|
+
conditionals: { firstRow: {
|
|
6203
|
+
bold: !0,
|
|
6204
|
+
borders: { bottom: $("000000") }
|
|
6205
|
+
} }
|
|
6206
|
+
},
|
|
6207
|
+
{
|
|
6208
|
+
id: "PlainTable1",
|
|
6209
|
+
name: "Plain Table 1",
|
|
6210
|
+
tableBorders: {
|
|
6211
|
+
top: $("BFBFBF"),
|
|
6212
|
+
bottom: $("BFBFBF"),
|
|
6213
|
+
insideH: $("BFBFBF")
|
|
6214
|
+
},
|
|
6215
|
+
look: {
|
|
6216
|
+
firstRow: !0,
|
|
6217
|
+
lastRow: !1,
|
|
6218
|
+
noHBand: !0,
|
|
6219
|
+
noVBand: !0
|
|
6220
|
+
},
|
|
6221
|
+
conditionals: { firstRow: { bold: !0 } }
|
|
6222
|
+
},
|
|
6223
|
+
{
|
|
6224
|
+
id: "PlainTable2",
|
|
6225
|
+
name: "Plain Table 2",
|
|
6226
|
+
look: {
|
|
6227
|
+
firstRow: !0,
|
|
6228
|
+
lastRow: !1,
|
|
6229
|
+
noHBand: !1,
|
|
6230
|
+
noVBand: !0
|
|
6231
|
+
},
|
|
6232
|
+
conditionals: {
|
|
6233
|
+
firstRow: {
|
|
6234
|
+
bold: !0,
|
|
6235
|
+
borders: { bottom: $("7F7F7F") }
|
|
6236
|
+
},
|
|
6237
|
+
band1Horz: { backgroundColor: "#F2F2F2" }
|
|
6238
|
+
}
|
|
6239
|
+
},
|
|
6240
|
+
{
|
|
6241
|
+
id: "PlainTable3",
|
|
6242
|
+
name: "Plain Table 3",
|
|
6243
|
+
look: {
|
|
6244
|
+
firstRow: !0,
|
|
6245
|
+
lastRow: !1,
|
|
6246
|
+
noHBand: !1,
|
|
6247
|
+
noVBand: !0
|
|
6248
|
+
},
|
|
6249
|
+
conditionals: {
|
|
6250
|
+
firstRow: {
|
|
6251
|
+
bold: !0,
|
|
6252
|
+
color: "#FFFFFF",
|
|
6253
|
+
backgroundColor: "#A5A5A5"
|
|
6254
|
+
},
|
|
6255
|
+
band1Horz: { backgroundColor: "#E7E7E7" }
|
|
6256
|
+
}
|
|
6257
|
+
},
|
|
6258
|
+
{
|
|
6259
|
+
id: "PlainTable4",
|
|
6260
|
+
name: "Plain Table 4",
|
|
6261
|
+
look: {
|
|
6262
|
+
firstRow: !0,
|
|
6263
|
+
lastRow: !1,
|
|
6264
|
+
noHBand: !1,
|
|
6265
|
+
noVBand: !0
|
|
6266
|
+
},
|
|
6267
|
+
conditionals: {
|
|
6268
|
+
firstRow: {
|
|
6269
|
+
bold: !0,
|
|
6270
|
+
color: "#FFFFFF",
|
|
6271
|
+
backgroundColor: "#000000"
|
|
6272
|
+
},
|
|
6273
|
+
band1Horz: { backgroundColor: "#F2F2F2" }
|
|
6274
|
+
}
|
|
6275
|
+
},
|
|
6276
|
+
{
|
|
6277
|
+
id: "GridTable1Light-Accent1",
|
|
6278
|
+
name: "Grid Table 1 Light",
|
|
6279
|
+
tableBorders: {
|
|
6280
|
+
top: $("B4C6E7"),
|
|
6281
|
+
bottom: $("B4C6E7"),
|
|
6282
|
+
left: $("B4C6E7"),
|
|
6283
|
+
right: $("B4C6E7"),
|
|
6284
|
+
insideH: $("B4C6E7"),
|
|
6285
|
+
insideV: $("B4C6E7")
|
|
6286
|
+
},
|
|
6287
|
+
look: {
|
|
6288
|
+
firstRow: !0,
|
|
6289
|
+
lastRow: !1,
|
|
6290
|
+
noHBand: !0,
|
|
6291
|
+
noVBand: !0
|
|
6292
|
+
},
|
|
6293
|
+
conditionals: { firstRow: {
|
|
6294
|
+
bold: !0,
|
|
6295
|
+
borders: { bottom: $("4472C4") }
|
|
6296
|
+
} }
|
|
6297
|
+
},
|
|
6298
|
+
{
|
|
6299
|
+
id: "GridTable4-Accent1",
|
|
6300
|
+
name: "Grid Table 4 Accent 1",
|
|
6301
|
+
tableBorders: {
|
|
6302
|
+
top: $("4472C4"),
|
|
6303
|
+
bottom: $("4472C4"),
|
|
6304
|
+
left: $("4472C4"),
|
|
6305
|
+
right: $("4472C4"),
|
|
6306
|
+
insideH: $("4472C4"),
|
|
6307
|
+
insideV: $("4472C4")
|
|
6308
|
+
},
|
|
6309
|
+
look: {
|
|
6310
|
+
firstRow: !0,
|
|
6311
|
+
lastRow: !1,
|
|
6312
|
+
noHBand: !1,
|
|
6313
|
+
noVBand: !0
|
|
6314
|
+
},
|
|
6315
|
+
conditionals: {
|
|
6316
|
+
firstRow: {
|
|
6317
|
+
bold: !0,
|
|
6318
|
+
color: "#FFFFFF",
|
|
6319
|
+
backgroundColor: "#4472C4"
|
|
6320
|
+
},
|
|
6321
|
+
band1Horz: { backgroundColor: "#D6E4F0" }
|
|
6322
|
+
}
|
|
6323
|
+
},
|
|
6324
|
+
{
|
|
6325
|
+
id: "GridTable5Dark-Accent1",
|
|
6326
|
+
name: "Grid Table 5 Dark",
|
|
6327
|
+
tableBorders: {
|
|
6328
|
+
top: $("FFFFFF"),
|
|
6329
|
+
bottom: $("FFFFFF"),
|
|
6330
|
+
left: $("FFFFFF"),
|
|
6331
|
+
right: $("FFFFFF"),
|
|
6332
|
+
insideH: $("FFFFFF"),
|
|
6333
|
+
insideV: $("FFFFFF")
|
|
6334
|
+
},
|
|
6335
|
+
look: {
|
|
6336
|
+
firstRow: !0,
|
|
6337
|
+
lastRow: !1,
|
|
6338
|
+
noHBand: !1,
|
|
6339
|
+
noVBand: !0
|
|
6340
|
+
},
|
|
6341
|
+
conditionals: {
|
|
6342
|
+
firstRow: {
|
|
6343
|
+
bold: !0,
|
|
6344
|
+
color: "#FFFFFF",
|
|
6345
|
+
backgroundColor: "#4472C4"
|
|
6346
|
+
},
|
|
6347
|
+
band1Horz: { backgroundColor: "#D6E4F0" },
|
|
6348
|
+
band2Horz: { backgroundColor: "#B4C6E7" }
|
|
6349
|
+
}
|
|
6350
|
+
},
|
|
6351
|
+
{
|
|
6352
|
+
id: "ListTable3-Accent2",
|
|
6353
|
+
name: "List Table 3 Accent 2",
|
|
6354
|
+
tableBorders: {
|
|
6355
|
+
top: $("ED7D31"),
|
|
6356
|
+
bottom: $("ED7D31")
|
|
6357
|
+
},
|
|
6358
|
+
look: {
|
|
6359
|
+
firstRow: !0,
|
|
6360
|
+
lastRow: !1,
|
|
6361
|
+
noHBand: !1,
|
|
6362
|
+
noVBand: !0
|
|
6363
|
+
},
|
|
6364
|
+
conditionals: {
|
|
6365
|
+
firstRow: {
|
|
6366
|
+
bold: !0,
|
|
6367
|
+
color: "#FFFFFF",
|
|
6368
|
+
backgroundColor: "#ED7D31"
|
|
6369
|
+
},
|
|
6370
|
+
band1Horz: { backgroundColor: "#FBE4D5" }
|
|
6371
|
+
}
|
|
6372
|
+
},
|
|
6373
|
+
{
|
|
6374
|
+
id: "ListTable4-Accent3",
|
|
6375
|
+
name: "List Table 4 Accent 3",
|
|
6376
|
+
tableBorders: {
|
|
6377
|
+
top: $("A5A5A5"),
|
|
6378
|
+
bottom: $("A5A5A5"),
|
|
6379
|
+
insideH: $("A5A5A5")
|
|
6380
|
+
},
|
|
6381
|
+
look: {
|
|
6382
|
+
firstRow: !0,
|
|
6383
|
+
lastRow: !1,
|
|
6384
|
+
noHBand: !1,
|
|
6385
|
+
noVBand: !0
|
|
6386
|
+
},
|
|
6387
|
+
conditionals: {
|
|
6388
|
+
firstRow: {
|
|
6389
|
+
bold: !0,
|
|
6390
|
+
color: "#FFFFFF",
|
|
6391
|
+
backgroundColor: "#A5A5A5"
|
|
6392
|
+
},
|
|
6393
|
+
band1Horz: { backgroundColor: "#EDEDED" }
|
|
6394
|
+
}
|
|
6395
|
+
},
|
|
6396
|
+
{
|
|
6397
|
+
id: "GridTable4-Accent5",
|
|
6398
|
+
name: "Grid Table 4 Accent 5",
|
|
6399
|
+
tableBorders: {
|
|
6400
|
+
top: $("5B9BD5"),
|
|
6401
|
+
bottom: $("5B9BD5"),
|
|
6402
|
+
left: $("5B9BD5"),
|
|
6403
|
+
right: $("5B9BD5"),
|
|
6404
|
+
insideH: $("5B9BD5"),
|
|
6405
|
+
insideV: $("5B9BD5")
|
|
6406
|
+
},
|
|
6407
|
+
look: {
|
|
6408
|
+
firstRow: !0,
|
|
6409
|
+
lastRow: !1,
|
|
6410
|
+
noHBand: !1,
|
|
6411
|
+
noVBand: !0
|
|
6412
|
+
},
|
|
6413
|
+
conditionals: {
|
|
6414
|
+
firstRow: {
|
|
6415
|
+
bold: !0,
|
|
6416
|
+
color: "#FFFFFF",
|
|
6417
|
+
backgroundColor: "#5B9BD5"
|
|
6418
|
+
},
|
|
6419
|
+
band1Horz: { backgroundColor: "#DEEAF6" }
|
|
6420
|
+
}
|
|
6421
|
+
},
|
|
6422
|
+
{
|
|
6423
|
+
id: "GridTable4-Accent6",
|
|
6424
|
+
name: "Grid Table 4 Accent 6",
|
|
6425
|
+
tableBorders: {
|
|
6426
|
+
top: $("70AD47"),
|
|
6427
|
+
bottom: $("70AD47"),
|
|
6428
|
+
left: $("70AD47"),
|
|
6429
|
+
right: $("70AD47"),
|
|
6430
|
+
insideH: $("70AD47"),
|
|
6431
|
+
insideV: $("70AD47")
|
|
6432
|
+
},
|
|
6433
|
+
look: {
|
|
6434
|
+
firstRow: !0,
|
|
6435
|
+
lastRow: !1,
|
|
6436
|
+
noHBand: !1,
|
|
6437
|
+
noVBand: !0
|
|
6438
|
+
},
|
|
6439
|
+
conditionals: {
|
|
6440
|
+
firstRow: {
|
|
6441
|
+
bold: !0,
|
|
6442
|
+
color: "#FFFFFF",
|
|
6443
|
+
backgroundColor: "#70AD47"
|
|
6444
|
+
},
|
|
6445
|
+
band1Horz: { backgroundColor: "#E2EFDA" }
|
|
6446
|
+
}
|
|
6447
|
+
}
|
|
6448
|
+
], ko = {
|
|
6449
|
+
TableNormal: "table.styles.normalTable",
|
|
6450
|
+
TableGrid: "table.styles.tableGrid",
|
|
6451
|
+
TableGridLight: "table.styles.gridTableLight",
|
|
6452
|
+
PlainTable1: "table.styles.plainTable1",
|
|
6453
|
+
PlainTable2: "table.styles.plainTable2",
|
|
6454
|
+
PlainTable3: "table.styles.plainTable3",
|
|
6455
|
+
PlainTable4: "table.styles.plainTable4",
|
|
6456
|
+
"GridTable1Light-Accent1": "table.styles.gridTable1Light",
|
|
6457
|
+
"GridTable4-Accent1": "table.styles.gridTable4Accent1",
|
|
6458
|
+
"GridTable5Dark-Accent1": "table.styles.gridTable5Dark",
|
|
6459
|
+
"ListTable3-Accent2": "table.styles.listTable3Accent2",
|
|
6460
|
+
"ListTable4-Accent3": "table.styles.listTable4Accent3",
|
|
6461
|
+
"GridTable4-Accent5": "table.styles.gridTable4Accent5",
|
|
6462
|
+
"GridTable4-Accent6": "table.styles.gridTable4Accent6"
|
|
6463
|
+
}, Ao = 4, jo = 3;
|
|
6464
|
+
function Mo(e) {
|
|
6465
|
+
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"}`;
|
|
6466
|
+
}
|
|
6467
|
+
function No(e, t, n, r) {
|
|
6468
|
+
return Mo(e === void 0 ? t ? n ?? r : r : e);
|
|
6469
|
+
}
|
|
6470
|
+
function Po(e, t = Ao, n = jo) {
|
|
6471
|
+
let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
|
|
6472
|
+
for (let e = 0; e < t; e++) {
|
|
6473
|
+
let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
|
|
6474
|
+
c ? d = "firstRow" : l ? d = "lastRow" : (u && (d = s % 2 == 0 ? "band1Horz" : "band2Horz"), s++);
|
|
6475
|
+
for (let s = 0; s < n; s++) {
|
|
6476
|
+
let u = d, f = s === 0 && !!r.firstCol, p = s === n - 1 && !!r.lastCol;
|
|
6477
|
+
c && f && i.nwCell ? u = "nwCell" : c && p && i.neCell ? u = "neCell" : l && f && i.swCell ? u = "swCell" : l && p && i.seCell ? u = "seCell" : f ? u = "firstCol" : p && (u = "lastCol");
|
|
6478
|
+
let m = u ? i[u] : void 0, h = m?.borders, g = {
|
|
6479
|
+
width: "20px",
|
|
6480
|
+
height: "10px",
|
|
6481
|
+
boxSizing: "border-box",
|
|
6482
|
+
backgroundColor: m?.backgroundColor ?? "transparent",
|
|
6483
|
+
borderTop: No(h?.top, e > 0, a?.insideH, a?.top),
|
|
6484
|
+
borderBottom: No(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
|
|
6485
|
+
borderLeft: No(h?.left, s > 0, a?.insideV, a?.left),
|
|
6486
|
+
borderRight: No(h?.right, s < n - 1, a?.insideV, a?.right)
|
|
6487
|
+
};
|
|
6488
|
+
o.push(g);
|
|
6489
|
+
}
|
|
6490
|
+
}
|
|
6491
|
+
return o;
|
|
6492
|
+
}
|
|
6493
|
+
//#endregion
|
|
6494
|
+
//#region src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
|
|
6495
|
+
var Fo = { class: "tsg" }, Io = { class: "tsg__grid" }, Lo = ["title", "onMousedown"], Ro = { class: "tsg__preview" }, zo = { class: "tsg__name" }, Bo = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
6496
|
+
__name: "TableStyleGallery",
|
|
6497
|
+
props: { currentStyleId: {} },
|
|
6498
|
+
emits: ["apply"],
|
|
6499
|
+
setup(t) {
|
|
6500
|
+
let { t: n } = Z(), r = Oo;
|
|
6501
|
+
function i(e) {
|
|
6502
|
+
let t = ko[e.id];
|
|
6503
|
+
return t ? n(t) : e.name;
|
|
6504
|
+
}
|
|
6505
|
+
return (n, s) => (_(), a("div", Fo, [o("div", Io, [(_(!0), a(e, null, x(T(r), (r) => (_(), a("button", {
|
|
6506
|
+
key: r.id,
|
|
6507
|
+
class: p(["tsg__item", { "tsg__item--selected": t.currentStyleId === r.id }]),
|
|
6508
|
+
title: i(r),
|
|
6509
|
+
onMousedown: P((e) => n.$emit("apply", r.id), ["prevent"])
|
|
6510
|
+
}, [o("div", Ro, [(_(!0), a(e, null, x(T(Po)(r), (e, t) => (_(), a("div", {
|
|
6511
|
+
key: t,
|
|
6512
|
+
class: "tsg__cell",
|
|
6513
|
+
style: m(e)
|
|
6514
|
+
}, null, 4))), 128))]), o("span", zo, C(i(r)), 1)], 42, Lo))), 128))])]));
|
|
6515
|
+
}
|
|
6516
|
+
}), [["__scopeId", "data-v-a2d658b3"]]), Vo = y({
|
|
6517
|
+
rows: 3,
|
|
6518
|
+
cols: 3
|
|
6519
|
+
}), Ho = { class: "dialog__header" }, Uo = { class: "dialog__title" }, Wo = ["title"], Go = { class: "dialog__body" }, Ko = ["aria-label"], qo = ["onMouseenter", "onMousedown"], Jo = { class: "table-grid__label" }, Yo = { class: "dialog__separator" }, Xo = { class: "table-manual" }, Zo = { class: "table-manual__field" }, Qo = { class: "table-manual__field" }, $o = { class: "table-options" }, es = { class: "table-options__radio" }, ts = { class: "table-options__radio" }, ns = { class: "dialog__separator" }, rs = { class: "dialog__footer" }, is = ["disabled"], as = 8, os = 10, ss = 1, cs = 100, ls = 1, us = 20, ds = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
6520
|
+
__name: "InsertTableDialog",
|
|
6521
|
+
props: { isOpen: { type: Boolean } },
|
|
6522
|
+
emits: ["close", "insert"],
|
|
6523
|
+
setup(t, { emit: r }) {
|
|
6524
|
+
let { t: s } = Z(), l = t, u = r, d = b(0), f = b(0), m = b(Vo.rows), h = b(Vo.cols), g = b("fixed"), v = b(null);
|
|
6525
|
+
A(() => l.isOpen, (e) => {
|
|
6526
|
+
e && (m.value = Vo.rows, h.value = Vo.cols, d.value = 0, f.value = 0);
|
|
6527
|
+
});
|
|
6528
|
+
let y = n(() => Number.parseInt(String(m.value), 10)), S = n(() => Number.parseInt(String(h.value), 10)), w = n(() => Number.isFinite(y.value) && y.value >= ss && y.value <= cs), E = n(() => Number.isFinite(S.value) && S.value >= ls && S.value <= us), O = n(() => w.value && E.value);
|
|
6529
|
+
function j() {
|
|
6530
|
+
u("close");
|
|
6531
|
+
}
|
|
6532
|
+
function N(e, t) {
|
|
6533
|
+
d.value = e, f.value = t, m.value = e, h.value = t;
|
|
6534
|
+
}
|
|
6535
|
+
function F(e) {
|
|
6536
|
+
e.key === "Escape" ? j() : e.key === "Enter" && (e.preventDefault(), I());
|
|
6537
|
+
}
|
|
6538
|
+
function I() {
|
|
6539
|
+
if (!O.value) return;
|
|
6540
|
+
let e = Math.min(Math.max(ss, y.value), cs), t = Math.min(Math.max(ls, S.value), us);
|
|
6541
|
+
Vo.rows = e, Vo.cols = t, u("insert", {
|
|
6542
|
+
rows: e,
|
|
6543
|
+
cols: t,
|
|
6544
|
+
autofit: g.value === "autofit",
|
|
6545
|
+
styleId: v.value
|
|
6546
|
+
}), j();
|
|
6547
|
+
}
|
|
6548
|
+
return (n, r) => t.isOpen ? (_(), a("div", {
|
|
6549
|
+
key: 0,
|
|
6550
|
+
class: "dialog-overlay",
|
|
6551
|
+
onMousedown: P(j, ["self"])
|
|
6552
|
+
}, [o("div", {
|
|
6553
|
+
class: "dialog",
|
|
6554
|
+
onMousedown: r[7] ||= P(() => {}, ["stop"]),
|
|
6555
|
+
onKeydown: P(F, ["stop"])
|
|
6556
|
+
}, [
|
|
6557
|
+
o("div", Ho, [o("span", Uo, C(T(s)("dialogs.insertTable.title")), 1), o("button", {
|
|
6558
|
+
class: "dialog__close",
|
|
6559
|
+
title: T(s)("common.closeDialog"),
|
|
6560
|
+
onClick: j
|
|
6561
|
+
}, "✕", 8, Wo)]),
|
|
6562
|
+
o("div", Go, [
|
|
6563
|
+
o("div", {
|
|
6564
|
+
class: "table-grid",
|
|
6565
|
+
"aria-label": T(s)("dialogs.insertTable.sizeSelector"),
|
|
6566
|
+
onMouseleave: r[0] ||= (e) => {
|
|
6567
|
+
d.value = 0, f.value = 0;
|
|
6568
|
+
}
|
|
6569
|
+
}, [(_(), a(e, null, x(as, (t) => o("div", {
|
|
6570
|
+
key: t,
|
|
6571
|
+
class: "table-grid__row"
|
|
6572
|
+
}, [(_(), a(e, null, x(os, (e) => o("div", {
|
|
6573
|
+
key: e,
|
|
6574
|
+
class: p(["table-grid__cell", { highlight: t <= d.value && e <= f.value }]),
|
|
6575
|
+
onMouseenter: (n) => {
|
|
6576
|
+
d.value = t, f.value = e;
|
|
6577
|
+
},
|
|
6578
|
+
onMousedown: P((n) => N(t, e), ["prevent"])
|
|
6579
|
+
}, null, 42, qo)), 64))])), 64))], 40, Ko),
|
|
6580
|
+
o("div", Jo, C(d.value > 0 ? T(s)("dialogs.insertTable.tableSize", {
|
|
6581
|
+
cols: f.value,
|
|
6582
|
+
rows: d.value
|
|
6583
|
+
}) : T(s)("dialogs.insertTable.hoverToSelect")), 1),
|
|
6584
|
+
o("div", Yo, [o("span", null, C(T(s)("dialogs.insertTable.orSpecifySize")), 1)]),
|
|
6585
|
+
o("div", Xo, [o("label", Zo, [o("span", null, C(T(s)("dialogs.insertTable.rowsLabel")), 1), M(o("input", {
|
|
6586
|
+
"onUpdate:modelValue": r[1] ||= (e) => m.value = e,
|
|
6587
|
+
type: "number",
|
|
6588
|
+
min: ss,
|
|
6589
|
+
max: cs,
|
|
6590
|
+
class: p(["table-manual__input", { "table-manual__input--invalid": !w.value }])
|
|
6591
|
+
}, null, 2), [[k, m.value]])]), o("label", Qo, [o("span", null, C(T(s)("dialogs.insertTable.columnsLabel")), 1), M(o("input", {
|
|
6592
|
+
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
6593
|
+
type: "number",
|
|
6594
|
+
min: ls,
|
|
6595
|
+
max: us,
|
|
6596
|
+
class: p(["table-manual__input", { "table-manual__input--invalid": !E.value }])
|
|
6597
|
+
}, null, 2), [[k, h.value]])])]),
|
|
6598
|
+
o("div", { class: p(["table-manual__hint", { "table-manual__hint--error": !O.value }]) }, C(T(s)("dialogs.insertTable.validationHint", {
|
|
6599
|
+
minRows: ss,
|
|
6600
|
+
maxRows: cs,
|
|
6601
|
+
minCols: ls,
|
|
6602
|
+
maxCols: us
|
|
6603
|
+
})), 3),
|
|
6604
|
+
o("fieldset", $o, [
|
|
6605
|
+
o("legend", null, C(T(s)("dialogs.insertTable.columnWidthLabel")), 1),
|
|
6606
|
+
o("label", es, [M(o("input", {
|
|
6607
|
+
type: "radio",
|
|
6608
|
+
value: "fixed",
|
|
6609
|
+
"onUpdate:modelValue": r[3] ||= (e) => g.value = e
|
|
6610
|
+
}, null, 512), [[D, g.value]]), o("span", null, C(T(s)("dialogs.insertTable.fixedWidth")), 1)]),
|
|
6611
|
+
o("label", ts, [M(o("input", {
|
|
6612
|
+
type: "radio",
|
|
6613
|
+
value: "autofit",
|
|
6614
|
+
"onUpdate:modelValue": r[4] ||= (e) => g.value = e
|
|
6615
|
+
}, null, 512), [[D, g.value]]), o("span", null, C(T(s)("dialogs.insertTable.autofit")), 1)])
|
|
6616
|
+
]),
|
|
6617
|
+
o("div", ns, [o("span", null, C(T(s)("dialogs.insertTable.style")), 1)]),
|
|
6618
|
+
c(Bo, {
|
|
6619
|
+
"current-style-id": v.value,
|
|
6620
|
+
onApply: r[5] ||= (e) => v.value = e
|
|
6621
|
+
}, null, 8, ["current-style-id"])
|
|
6622
|
+
]),
|
|
6623
|
+
o("div", rs, [o("button", {
|
|
6624
|
+
class: "dialog__btn",
|
|
6625
|
+
onMousedown: P(j, ["prevent"])
|
|
6626
|
+
}, C(T(s)("common.cancel")), 33), o("button", {
|
|
6627
|
+
class: "dialog__btn dialog__btn--primary",
|
|
6628
|
+
disabled: !O.value,
|
|
6629
|
+
onMousedown: r[6] ||= P((e) => I(), ["prevent"])
|
|
6630
|
+
}, C(T(s)("dialogs.insertTable.insertButton")), 41, is)])
|
|
6631
|
+
], 32)], 32)) : i("", !0);
|
|
6632
|
+
}
|
|
6633
|
+
}), [["__scopeId", "data-v-a366a209"]]), fs = { class: "dialog__body" }, ps = { class: "options" }, ms = ["value"], hs = { class: "option__body" }, gs = { class: "option__label" }, _s = { class: "option__description" }, vs = { class: "dialog__footer" }, ys = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
6634
|
+
__name: "PasteSpecialDialog",
|
|
6635
|
+
props: {
|
|
6636
|
+
isOpen: { type: Boolean },
|
|
6637
|
+
defaultMode: { default: "plainText" }
|
|
6638
|
+
},
|
|
6639
|
+
emits: ["close", "paste"],
|
|
6640
|
+
setup(t, { emit: n }) {
|
|
6641
|
+
let { Dialog: i } = Q(), s = [
|
|
6642
|
+
{
|
|
6643
|
+
value: "keepFormatting",
|
|
6644
|
+
label: "Keep source formatting",
|
|
6645
|
+
description: "Preserve styles, links, and inline formatting from the clipboard."
|
|
6646
|
+
},
|
|
6647
|
+
{
|
|
6648
|
+
value: "mergeFormatting",
|
|
6649
|
+
label: "Merge formatting",
|
|
6650
|
+
description: "Keep useful inline formatting while matching the destination paragraph."
|
|
6651
|
+
},
|
|
6652
|
+
{
|
|
6653
|
+
value: "plainText",
|
|
6654
|
+
label: "Unformatted text",
|
|
6655
|
+
description: "Paste text only and use the destination formatting."
|
|
6656
|
+
}
|
|
6657
|
+
], c = t, l = n, u = b(c.defaultMode);
|
|
6658
|
+
A(() => c.isOpen, (e) => {
|
|
6659
|
+
e && (u.value = c.defaultMode);
|
|
6660
|
+
});
|
|
6661
|
+
function d() {
|
|
6662
|
+
l("paste", u.value), l("close");
|
|
6663
|
+
}
|
|
6664
|
+
return (n, c) => (_(), r(T(i), {
|
|
6665
|
+
open: t.isOpen,
|
|
6666
|
+
"aria-label": "Paste Special",
|
|
6667
|
+
style: {
|
|
6668
|
+
minWidth: "360px",
|
|
6669
|
+
maxWidth: "520px",
|
|
6670
|
+
width: "100%"
|
|
6671
|
+
},
|
|
6672
|
+
onClose: c[2] ||= (e) => n.$emit("close")
|
|
6673
|
+
}, {
|
|
6674
|
+
default: j(() => [
|
|
6675
|
+
c[4] ||= o("div", { class: "dialog__header" }, "Paste Special", -1),
|
|
6676
|
+
o("div", fs, [o("fieldset", ps, [c[3] ||= o("legend", { class: "options__legend" }, "Paste mode", -1), (_(), a(e, null, x(s, (e) => o("label", {
|
|
6677
|
+
key: e.value,
|
|
6678
|
+
class: "option"
|
|
6679
|
+
}, [M(o("input", {
|
|
6680
|
+
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
6681
|
+
type: "radio",
|
|
6682
|
+
value: e.value
|
|
6683
|
+
}, null, 8, ms), [[D, u.value]]), o("span", hs, [o("span", gs, C(e.label), 1), o("span", _s, C(e.description), 1)])])), 64))])]),
|
|
6684
|
+
o("div", vs, [o("button", {
|
|
6685
|
+
class: "dialog__btn",
|
|
6686
|
+
onClick: c[1] ||= (e) => n.$emit("close")
|
|
6687
|
+
}, "Cancel"), o("button", {
|
|
6688
|
+
class: "dialog__btn dialog__btn--primary",
|
|
6689
|
+
onClick: d
|
|
6690
|
+
}, "Paste")])
|
|
6691
|
+
]),
|
|
6692
|
+
_: 1
|
|
6693
|
+
}, 8, ["open"]));
|
|
6694
|
+
}
|
|
6695
|
+
}), [["__scopeId", "data-v-540e9db3"]]), bs = { class: "dialog__body" }, xs = { class: "grid" }, Ss = { class: "field" }, Cs = { class: "field" }, ws = { class: "check" }, Ts = { class: "dialog__footer" }, Es = ["disabled"], Ds = 1, Os = 63, ks = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
6696
|
+
__name: "SplitCellDialog",
|
|
6697
|
+
props: {
|
|
6698
|
+
isOpen: { type: Boolean },
|
|
6699
|
+
defaultRows: { default: 1 },
|
|
6700
|
+
defaultColumns: { default: 2 }
|
|
6701
|
+
},
|
|
6702
|
+
emits: ["close", "split"],
|
|
6703
|
+
setup(e, { emit: t }) {
|
|
6704
|
+
let { Dialog: i } = Q(), a = e, s = t, c = b(a.defaultRows), l = b(a.defaultColumns), u = b(!1), d = n(() => h(c.value)), f = n(() => h(l.value)), p = n(() => d.value > 1 || f.value > 1);
|
|
6705
|
+
A(() => a.isOpen, (e) => {
|
|
6706
|
+
e && (c.value = a.defaultRows, l.value = a.defaultColumns, u.value = !1);
|
|
6707
|
+
});
|
|
6708
|
+
function m() {
|
|
6709
|
+
p.value && (s("split", {
|
|
6710
|
+
rows: d.value,
|
|
6711
|
+
columns: f.value,
|
|
6712
|
+
mergeBeforeSplit: u.value
|
|
6713
|
+
}), s("close"));
|
|
6714
|
+
}
|
|
6715
|
+
function h(e) {
|
|
6716
|
+
return Math.min(Os, Math.max(Ds, Math.trunc(e)));
|
|
6717
|
+
}
|
|
6718
|
+
return (t, n) => (_(), r(T(i), {
|
|
6719
|
+
open: e.isOpen,
|
|
6720
|
+
"aria-label": "Split Cell",
|
|
6721
|
+
style: {
|
|
6722
|
+
minWidth: "360px",
|
|
6723
|
+
maxWidth: "520px",
|
|
6724
|
+
width: "100%"
|
|
6725
|
+
},
|
|
6726
|
+
onClose: n[4] ||= (e) => t.$emit("close"),
|
|
6727
|
+
onKeydown: N(m, ["enter"])
|
|
6728
|
+
}, {
|
|
6729
|
+
default: j(() => [
|
|
6730
|
+
n[8] ||= o("div", { class: "dialog__header" }, "Split Cell", -1),
|
|
6731
|
+
o("div", bs, [o("div", xs, [o("label", Ss, [n[5] ||= o("span", { class: "field__label" }, "Columns", -1), M(o("input", {
|
|
6732
|
+
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
6733
|
+
class: "field__input",
|
|
6734
|
+
max: Os,
|
|
6735
|
+
min: Ds,
|
|
6736
|
+
type: "number"
|
|
6737
|
+
}, null, 512), [[
|
|
6738
|
+
k,
|
|
6739
|
+
l.value,
|
|
6740
|
+
void 0,
|
|
6741
|
+
{ number: !0 }
|
|
6742
|
+
]])]), o("label", Cs, [n[6] ||= o("span", { class: "field__label" }, "Rows", -1), M(o("input", {
|
|
6743
|
+
"onUpdate:modelValue": n[1] ||= (e) => c.value = e,
|
|
6744
|
+
class: "field__input",
|
|
6745
|
+
max: Os,
|
|
6746
|
+
min: Ds,
|
|
6747
|
+
type: "number"
|
|
6748
|
+
}, null, 512), [[
|
|
6749
|
+
k,
|
|
6750
|
+
c.value,
|
|
6751
|
+
void 0,
|
|
6752
|
+
{ number: !0 }
|
|
6753
|
+
]])])]), o("label", ws, [M(o("input", {
|
|
6754
|
+
"onUpdate:modelValue": n[2] ||= (e) => u.value = e,
|
|
6755
|
+
type: "checkbox"
|
|
6756
|
+
}, null, 512), [[E, u.value]]), n[7] ||= o("span", null, "Merge selected cells before splitting", -1)])]),
|
|
6757
|
+
o("div", Ts, [o("button", {
|
|
6758
|
+
class: "dialog__btn",
|
|
6759
|
+
onClick: n[3] ||= (e) => t.$emit("close")
|
|
6760
|
+
}, "Cancel"), o("button", {
|
|
6761
|
+
class: "dialog__btn dialog__btn--primary",
|
|
6762
|
+
disabled: !p.value,
|
|
6763
|
+
onClick: m
|
|
6764
|
+
}, " Split ", 8, Es)])
|
|
6765
|
+
]),
|
|
6766
|
+
_: 1
|
|
6767
|
+
}, 8, ["open"]));
|
|
6768
|
+
}
|
|
6769
|
+
}), [["__scopeId", "data-v-c4c6621c"]]), As = { class: "tpd-dialog__header" }, js = { class: "tpd-dialog__body" }, Ms = { class: "tpd-row" }, Ns = { class: "tpd-label" }, Ps = { value: "auto" }, Fs = { value: "dxa" }, Is = { value: "pct" }, Ls = {
|
|
6770
|
+
key: 0,
|
|
6771
|
+
class: "tpd-row"
|
|
6772
|
+
}, Rs = { class: "tpd-label" }, zs = ["step"], Bs = { class: "tpd-unit" }, Vs = { class: "tpd-row" }, Hs = { class: "tpd-label" }, Us = { value: "left" }, Ws = { value: "center" }, Gs = { value: "right" }, Ks = { class: "tpd-dialog__footer" }, qs = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
6773
|
+
__name: "TablePropertiesDialog",
|
|
6774
|
+
props: {
|
|
6775
|
+
isOpen: { type: Boolean },
|
|
6776
|
+
currentProps: {}
|
|
6777
|
+
},
|
|
6778
|
+
emits: ["close", "apply"],
|
|
6779
|
+
setup(e, { emit: t }) {
|
|
6780
|
+
let { t: n } = Z(), { Dialog: s } = Q(), c = e, l = t, u = b(0), d = b("auto"), f = b("left");
|
|
6781
|
+
function p(e) {
|
|
6782
|
+
return e === "center" || e === "right" ? e : "left";
|
|
6783
|
+
}
|
|
6784
|
+
A(() => c.isOpen, (e) => {
|
|
6785
|
+
e && (u.value = c.currentProps?.width ?? 0, d.value = c.currentProps?.widthType ?? "auto", f.value = p(c.currentProps?.justification));
|
|
6786
|
+
});
|
|
6787
|
+
function m() {
|
|
6788
|
+
l("apply", d.value === "auto" ? {
|
|
6789
|
+
justification: f.value,
|
|
6790
|
+
width: null,
|
|
6791
|
+
widthType: "auto"
|
|
6792
|
+
} : {
|
|
6793
|
+
justification: f.value,
|
|
6794
|
+
width: u.value,
|
|
6795
|
+
widthType: d.value
|
|
6796
|
+
}), l("close");
|
|
6797
|
+
}
|
|
6798
|
+
return (t, c) => (_(), r(T(s), {
|
|
6799
|
+
open: e.isOpen,
|
|
6800
|
+
"aria-label": T(n)("dialogs.tableProperties.title"),
|
|
6801
|
+
style: {
|
|
6802
|
+
minWidth: "360px",
|
|
6803
|
+
maxWidth: "440px",
|
|
6804
|
+
width: "100%"
|
|
6805
|
+
},
|
|
6806
|
+
onClose: c[4] ||= (e) => t.$emit("close"),
|
|
6807
|
+
onKeydown: N(m, ["enter"])
|
|
6808
|
+
}, {
|
|
6809
|
+
default: j(() => [
|
|
6810
|
+
o("div", As, C(T(n)("dialogs.tableProperties.title")), 1),
|
|
6811
|
+
o("div", js, [
|
|
6812
|
+
o("div", Ms, [o("label", Ns, C(T(n)("dialogs.tableProperties.widthType")), 1), M(o("select", {
|
|
6813
|
+
"onUpdate:modelValue": c[0] ||= (e) => d.value = e,
|
|
6814
|
+
class: "tpd-select"
|
|
6815
|
+
}, [
|
|
6816
|
+
o("option", Ps, C(T(n)("dialogs.tableProperties.widthTypes.auto")), 1),
|
|
6817
|
+
o("option", Fs, C(T(n)("dialogs.tableProperties.widthTypes.fixed")), 1),
|
|
6818
|
+
o("option", Is, C(T(n)("dialogs.tableProperties.widthTypes.percentage")), 1)
|
|
6819
|
+
], 512), [[O, d.value]])]),
|
|
6820
|
+
d.value === "auto" ? i("", !0) : (_(), a("div", Ls, [
|
|
6821
|
+
o("label", Rs, C(T(n)("dialogs.tableProperties.widthLabel")), 1),
|
|
6822
|
+
M(o("input", {
|
|
6823
|
+
"onUpdate:modelValue": c[1] ||= (e) => u.value = e,
|
|
6824
|
+
type: "number",
|
|
6825
|
+
class: "tpd-input",
|
|
6826
|
+
min: 0,
|
|
6827
|
+
step: d.value === "pct" ? 5 : 100
|
|
6828
|
+
}, null, 8, zs), [[
|
|
6829
|
+
k,
|
|
6830
|
+
u.value,
|
|
6831
|
+
void 0,
|
|
6832
|
+
{ number: !0 }
|
|
6833
|
+
]]),
|
|
6834
|
+
o("span", Bs, C(d.value === "pct" ? T(n)("dialogs.tableProperties.units.fiftiethsPercent") : T(n)("dialogs.tableProperties.units.twips")), 1)
|
|
6835
|
+
])),
|
|
6836
|
+
o("div", Vs, [o("label", Hs, C(T(n)("dialogs.tableProperties.alignmentLabel")), 1), M(o("select", {
|
|
6837
|
+
"onUpdate:modelValue": c[2] ||= (e) => f.value = e,
|
|
6838
|
+
class: "tpd-select"
|
|
6839
|
+
}, [
|
|
6840
|
+
o("option", Us, C(T(n)("dialogs.tableProperties.alignOptions.left")), 1),
|
|
6841
|
+
o("option", Ws, C(T(n)("dialogs.tableProperties.alignOptions.center")), 1),
|
|
6842
|
+
o("option", Gs, C(T(n)("dialogs.tableProperties.alignOptions.right")), 1)
|
|
6843
|
+
], 512), [[O, f.value]])])
|
|
6844
|
+
]),
|
|
6845
|
+
o("div", Ks, [o("button", {
|
|
6846
|
+
class: "tpd-btn",
|
|
6847
|
+
onClick: c[3] ||= (e) => t.$emit("close")
|
|
6848
|
+
}, C(T(n)("common.cancel")), 1), o("button", {
|
|
6849
|
+
class: "tpd-btn tpd-btn--primary",
|
|
6850
|
+
onClick: m
|
|
6851
|
+
}, C(T(n)("common.apply")), 1)])
|
|
6852
|
+
]),
|
|
6853
|
+
_: 1
|
|
6854
|
+
}, 8, ["open", "aria-label"]));
|
|
6855
|
+
}
|
|
6856
|
+
}), [["__scopeId", "data-v-fb5280be"]]), Js = { class: "dialog__body" }, Ys = { class: "field" }, Xs = {
|
|
6857
|
+
key: 0,
|
|
6858
|
+
class: "grid"
|
|
6859
|
+
}, Zs = { class: "field field--wide" }, Qs = { class: "field" }, $s = { class: "field" }, ec = { class: "field" }, tc = { class: "check" }, nc = {
|
|
6860
|
+
key: 1,
|
|
6861
|
+
class: "grid"
|
|
6862
|
+
}, rc = { class: "field field--wide" }, ic = { class: "field field--wide" }, ac = { class: "field" }, oc = { class: "check" }, sc = { class: "check field--wide" }, cc = { class: "dialog__footer" }, lc = ["disabled"], uc = "#C0C0C0", dc = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
6863
|
+
__name: "WatermarkDialog",
|
|
6864
|
+
props: {
|
|
6865
|
+
isOpen: { type: Boolean },
|
|
6866
|
+
currentWatermark: {}
|
|
6867
|
+
},
|
|
6868
|
+
emits: ["close", "apply"],
|
|
6869
|
+
setup(e, { emit: t }) {
|
|
6870
|
+
let { Dialog: s } = Q(), c = e, l = t, u = b("text"), d = b("CONFIDENTIAL"), f = b("Calibri"), p = b(uc), m = b(!0), h = b(50), g = b(""), v = b(""), y = b(!1), x = b(100), S = b(!0), C = n(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0);
|
|
6871
|
+
A([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
|
|
6872
|
+
if (e) {
|
|
6873
|
+
if (!t) {
|
|
6874
|
+
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = uc, m.value = !0, h.value = 50, g.value = "", v.value = "", y.value = !1, x.value = 100, S.value = !0;
|
|
6875
|
+
return;
|
|
6876
|
+
}
|
|
6877
|
+
if (u.value = t.kind, t.kind === "text") {
|
|
6878
|
+
d.value = t.text, f.value = t.font ?? "Calibri", p.value = F(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100);
|
|
6879
|
+
return;
|
|
6880
|
+
}
|
|
6881
|
+
g.value = t.imageRId, v.value = t.imageTarget ?? "", y.value = t.imageTargetExternal ?? !1, x.value = Math.round((t.scale ?? 1) * 100), S.value = t.washout ?? !0;
|
|
6882
|
+
}
|
|
6883
|
+
}, { immediate: !0 });
|
|
6884
|
+
function w() {
|
|
6885
|
+
if (C.value) {
|
|
6886
|
+
if (u.value === "none") {
|
|
6887
|
+
l("apply", void 0), l("close");
|
|
6888
|
+
return;
|
|
6889
|
+
}
|
|
6890
|
+
if (u.value === "text") {
|
|
6891
|
+
l("apply", {
|
|
6892
|
+
kind: "text",
|
|
6893
|
+
text: d.value.trim(),
|
|
6894
|
+
...f.value.trim() ? { font: f.value.trim() } : {},
|
|
6895
|
+
color: P(p.value),
|
|
6896
|
+
diagonal: m.value,
|
|
6897
|
+
opacity: D(h.value) / 100
|
|
6898
|
+
}), l("close");
|
|
6899
|
+
return;
|
|
6900
|
+
}
|
|
6901
|
+
l("apply", {
|
|
6902
|
+
kind: "picture",
|
|
6903
|
+
imageRId: g.value.trim(),
|
|
6904
|
+
...v.value.trim() ? { imageTarget: v.value.trim() } : {},
|
|
6905
|
+
...v.value.trim() ? { imageTargetExternal: y.value } : {},
|
|
6906
|
+
scale: N(x.value) / 100,
|
|
6907
|
+
washout: S.value
|
|
6908
|
+
}), l("close");
|
|
6909
|
+
}
|
|
6910
|
+
}
|
|
6911
|
+
function D(e) {
|
|
6912
|
+
return Math.min(100, Math.max(0, e));
|
|
6913
|
+
}
|
|
6914
|
+
function N(e) {
|
|
6915
|
+
return Math.min(300, Math.max(1, e));
|
|
6916
|
+
}
|
|
6917
|
+
function P(e) {
|
|
6918
|
+
return e.startsWith("#") ? e.slice(1) : e;
|
|
6919
|
+
}
|
|
6920
|
+
function F(e) {
|
|
6921
|
+
return !e || e === "auto" ? uc : e.startsWith("#") ? e : `#${e}`;
|
|
6922
|
+
}
|
|
6923
|
+
return (t, n) => (_(), r(T(s), {
|
|
6924
|
+
open: e.isOpen,
|
|
6925
|
+
"aria-label": "Watermark",
|
|
6926
|
+
style: {
|
|
6927
|
+
minWidth: "360px",
|
|
6928
|
+
maxWidth: "520px",
|
|
6929
|
+
width: "100%"
|
|
6930
|
+
},
|
|
6931
|
+
onClose: n[12] ||= (e) => t.$emit("close")
|
|
6932
|
+
}, {
|
|
6933
|
+
default: j(() => [
|
|
6934
|
+
n[25] ||= o("div", { class: "dialog__header" }, "Watermark", -1),
|
|
6935
|
+
o("div", Js, [
|
|
6936
|
+
o("label", Ys, [n[14] ||= o("span", { class: "field__label" }, "Type", -1), M(o("select", {
|
|
6937
|
+
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
6938
|
+
class: "field__input"
|
|
6939
|
+
}, [...n[13] ||= [
|
|
6940
|
+
o("option", { value: "text" }, "Text watermark", -1),
|
|
6941
|
+
o("option", { value: "picture" }, "Picture watermark", -1),
|
|
6942
|
+
o("option", { value: "none" }, "No watermark", -1)
|
|
6943
|
+
]], 512), [[O, u.value]])]),
|
|
6944
|
+
u.value === "text" ? (_(), a("div", Xs, [
|
|
6945
|
+
o("label", Zs, [n[15] ||= o("span", { class: "field__label" }, "Text", -1), M(o("input", {
|
|
6946
|
+
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
6947
|
+
class: "field__input"
|
|
6948
|
+
}, null, 512), [[k, d.value]])]),
|
|
6949
|
+
o("label", Qs, [n[16] ||= o("span", { class: "field__label" }, "Font", -1), M(o("input", {
|
|
6950
|
+
"onUpdate:modelValue": n[2] ||= (e) => f.value = e,
|
|
6951
|
+
class: "field__input"
|
|
6952
|
+
}, null, 512), [[k, f.value]])]),
|
|
6953
|
+
o("label", $s, [n[17] ||= o("span", { class: "field__label" }, "Color", -1), M(o("input", {
|
|
6954
|
+
"onUpdate:modelValue": n[3] ||= (e) => p.value = e,
|
|
6955
|
+
class: "field__input field__input--color",
|
|
6956
|
+
type: "color"
|
|
6957
|
+
}, null, 512), [[k, p.value]])]),
|
|
6958
|
+
o("label", ec, [n[18] ||= o("span", { class: "field__label" }, "Opacity", -1), M(o("input", {
|
|
6959
|
+
"onUpdate:modelValue": n[4] ||= (e) => h.value = e,
|
|
6960
|
+
class: "field__input",
|
|
6961
|
+
max: "100",
|
|
6962
|
+
min: "0",
|
|
6963
|
+
type: "number"
|
|
6964
|
+
}, null, 512), [[
|
|
6965
|
+
k,
|
|
6966
|
+
h.value,
|
|
6967
|
+
void 0,
|
|
6968
|
+
{ number: !0 }
|
|
6969
|
+
]])]),
|
|
6970
|
+
o("label", tc, [M(o("input", {
|
|
6971
|
+
"onUpdate:modelValue": n[5] ||= (e) => m.value = e,
|
|
6972
|
+
type: "checkbox"
|
|
6973
|
+
}, null, 512), [[E, m.value]]), n[19] ||= o("span", null, "Diagonal", -1)])
|
|
6974
|
+
])) : i("", !0),
|
|
6975
|
+
u.value === "picture" ? (_(), a("div", nc, [
|
|
6976
|
+
o("label", rc, [n[20] ||= o("span", { class: "field__label" }, "Header image relationship id", -1), M(o("input", {
|
|
6977
|
+
"onUpdate:modelValue": n[6] ||= (e) => g.value = e,
|
|
6978
|
+
class: "field__input",
|
|
6979
|
+
placeholder: "rId12"
|
|
6980
|
+
}, null, 512), [[k, g.value]])]),
|
|
6981
|
+
o("label", ic, [n[21] ||= o("span", { class: "field__label" }, "Image target", -1), M(o("input", {
|
|
6982
|
+
"onUpdate:modelValue": n[7] ||= (e) => v.value = e,
|
|
6983
|
+
class: "field__input",
|
|
6984
|
+
placeholder: "word/media/image1.png"
|
|
6985
|
+
}, null, 512), [[k, v.value]])]),
|
|
6986
|
+
o("label", ac, [n[22] ||= o("span", { class: "field__label" }, "Scale", -1), M(o("input", {
|
|
6987
|
+
"onUpdate:modelValue": n[8] ||= (e) => x.value = e,
|
|
6988
|
+
class: "field__input",
|
|
6989
|
+
max: "300",
|
|
6990
|
+
min: "1",
|
|
6991
|
+
type: "number"
|
|
6992
|
+
}, null, 512), [[
|
|
6993
|
+
k,
|
|
6994
|
+
x.value,
|
|
6995
|
+
void 0,
|
|
6996
|
+
{ number: !0 }
|
|
6997
|
+
]])]),
|
|
6998
|
+
o("label", oc, [M(o("input", {
|
|
6999
|
+
"onUpdate:modelValue": n[9] ||= (e) => S.value = e,
|
|
7000
|
+
type: "checkbox"
|
|
7001
|
+
}, null, 512), [[E, S.value]]), n[23] ||= o("span", null, "Washout", -1)]),
|
|
7002
|
+
o("label", sc, [M(o("input", {
|
|
7003
|
+
"onUpdate:modelValue": n[10] ||= (e) => y.value = e,
|
|
7004
|
+
type: "checkbox"
|
|
7005
|
+
}, null, 512), [[E, y.value]]), n[24] ||= o("span", null, "Target is an external URL", -1)])
|
|
7006
|
+
])) : i("", !0)
|
|
7007
|
+
]),
|
|
7008
|
+
o("div", cc, [o("button", {
|
|
7009
|
+
class: "dialog__btn",
|
|
7010
|
+
onClick: n[11] ||= (e) => t.$emit("close")
|
|
7011
|
+
}, "Cancel"), o("button", {
|
|
7012
|
+
class: "dialog__btn dialog__btn--primary",
|
|
7013
|
+
disabled: !C.value,
|
|
7014
|
+
onClick: w
|
|
7015
|
+
}, " Apply ", 8, lc)])
|
|
7016
|
+
]),
|
|
7017
|
+
_: 1
|
|
7018
|
+
}, 8, ["open"]));
|
|
7019
|
+
}
|
|
7020
|
+
}), [["__scopeId", "data-v-5ce5fa13"]]);
|
|
5747
7021
|
//#endregion
|
|
5748
|
-
export {
|
|
7022
|
+
export { Ut as A, _n as C, ln as D, dn as E, V as F, se as M, ae as N, zt as O, U as P, En as S, pn as T, Ln as _, ds as a, Nn as b, go as c, mi as d, Yr as f, Rn as g, Pn as h, ys as i, Z as j, Wt as k, Sa as l, Kn as m, qs as n, Bo as o, yr as p, ks as r, Do as s, dc as t, Vi as u, In as v, hn as w, kn as x, Q as y };
|