@stll/folio-vue 0.23.0 → 0.25.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/README.md +24 -0
- package/dist/ListButtons-B8HxA64I.cjs +4 -0
- package/dist/{ListButtons-DjLPhg8p.js → ListButtons-BeELtp_-.js} +201 -188
- package/dist/{SplitCellDialog-Id6nLwrR.js → SplitCellDialog-CSqbtDum.js} +748 -732
- package/dist/SplitCellDialog-DzKBu09z.cjs +15 -0
- package/dist/components/AnonymizationRectsOverlay.vue.d.ts +20 -0
- package/dist/components/AutocompleteCaretOverlay.vue.d.ts +4 -0
- package/dist/components/AutocompleteSuggestionOverlay.vue.d.ts +11 -0
- package/dist/components/CommentMarginMarkers.vue.d.ts +16 -0
- package/dist/components/ContentControlWidgetsOverlay.vue.d.ts +8 -0
- package/dist/components/DecorationLayer.vue.d.ts +12 -0
- package/dist/components/DocumentName.vue.d.ts +13 -0
- package/dist/components/DocumentOutline.vue.d.ts +28 -0
- package/dist/components/DocxEditor/DocxEditorDialogs.vue.d.ts +73 -0
- package/dist/components/DocxEditor/DocxEditorMenuBar.vue.d.ts +39 -0
- package/dist/components/DocxEditor/DocxEditorOverlays.vue.d.ts +42 -0
- package/dist/components/DocxEditor/types.d.ts +11 -4
- package/dist/components/DocxEditor.vue.d.ts +58 -0
- package/dist/components/EditingModeDropdown.vue.d.ts +11 -0
- package/dist/components/EditorToolbar.vue.d.ts +30 -0
- package/dist/components/FormattingBar.vue.d.ts +20 -0
- package/dist/components/HeaderFooterSelectionOverlay.vue.d.ts +12 -0
- package/dist/components/ImageContextMenu.vue.d.ts +24 -0
- package/dist/components/ImageSelectionOverlay.vue.d.ts +21 -0
- package/dist/components/InlineHeaderFooterEditor.vue.d.ts +15 -0
- package/dist/components/MenuBar.vue.d.ts +18 -0
- package/dist/components/PageIndicator.vue.d.ts +8 -0
- package/dist/components/PassageHighlightOverlay.vue.d.ts +16 -0
- package/dist/components/PrintButton.vue.d.ts +16 -0
- package/dist/components/ReviewControls.vue.d.ts +17 -0
- package/dist/components/TemplateDirectivesOverlay.vue.d.ts +15 -0
- package/dist/components/TextContextMenu.vue.d.ts +46 -0
- package/dist/components/TitleBar.vue.d.ts +17 -0
- package/dist/components/Toolbar.vue.d.ts +139 -0
- package/dist/components/UnifiedSidebar.vue.d.ts +55 -0
- package/dist/components/dialogs/FindReplaceDialog.vue.d.ts +20 -0
- package/dist/components/dialogs/FootnotePropertiesDialog.vue.d.ts +15 -0
- package/dist/components/dialogs/HyperlinkDialog.vue.d.ts +30 -0
- package/dist/components/dialogs/ImagePositionDialog.vue.d.ts +29 -0
- package/dist/components/dialogs/ImagePropertiesDialog.vue.d.ts +13 -0
- package/dist/components/dialogs/InsertImageDialog.vue.d.ts +21 -0
- package/dist/components/dialogs/InsertSymbolDialog.vue.d.ts +12 -0
- package/dist/components/dialogs/InsertTableDialog.vue.d.ts +22 -0
- package/dist/components/dialogs/PageSetupDialog.vue.d.ts +14 -0
- package/dist/components/dialogs/PasteSpecialDialog.vue.d.ts +16 -0
- package/dist/components/dialogs/SetNumberingValueDialog.vue.d.ts +12 -0
- package/dist/components/dialogs/SplitCellDialog.vue.d.ts +22 -0
- package/dist/components/dialogs/TablePropertiesDialog.vue.d.ts +15 -0
- package/dist/components/dialogs/WatermarkDialog.vue.d.ts +14 -0
- package/dist/components/dialogs/index.d.ts +13 -13
- package/dist/components/sidebar/AddCommentCard.vue.d.ts +9 -0
- package/dist/components/sidebar/Avatar.vue.d.ts +10 -0
- package/dist/components/sidebar/CommentCard.vue.d.ts +21 -0
- package/dist/components/sidebar/ReplyInput.vue.d.ts +7 -0
- package/dist/components/sidebar/ReplyThread.vue.d.ts +8 -0
- package/dist/components/sidebar/ResolvedCommentMarker.vue.d.ts +11 -0
- package/dist/components/sidebar/TrackedChangeCard.vue.d.ts +20 -0
- package/dist/components/ui/AlignmentButtons.vue.d.ts +15 -0
- package/dist/components/ui/Button.vue.d.ts +30 -0
- package/dist/components/ui/Checkbox.vue.d.ts +11 -0
- package/dist/components/ui/ColorPicker.vue.d.ts +30 -0
- package/dist/components/ui/DatePickerPopover.vue.d.ts +13 -0
- package/dist/components/ui/Dialog.vue.d.ts +28 -0
- package/dist/components/ui/FontPicker.vue.d.ts +21 -0
- package/dist/components/ui/FontSizePicker.vue.d.ts +27 -0
- package/dist/components/ui/HorizontalRuler.vue.d.ts +39 -0
- package/dist/components/ui/HyperlinkPopup.vue.d.ts +21 -0
- package/dist/components/ui/IconGridDropdown.vue.d.ts +32 -0
- package/dist/components/ui/ImageTransformDropdown.vue.d.ts +11 -0
- package/dist/components/ui/ImageWrapDropdown.vue.d.ts +15 -0
- package/dist/components/ui/Input.vue.d.ts +17 -0
- package/dist/components/ui/LineSpacingPicker.vue.d.ts +20 -0
- package/dist/components/ui/ListButtons.vue.d.ts +30 -0
- package/dist/components/ui/MaterialSymbol.vue.d.ts +13 -0
- package/dist/components/ui/MenuDropdown.vue.d.ts +42 -0
- package/dist/components/ui/OutlineRail.vue.d.ts +19 -0
- package/dist/components/ui/Popover.vue.d.ts +40 -0
- package/dist/components/ui/Select.vue.d.ts +15 -0
- package/dist/components/ui/StylePicker.vue.d.ts +16 -0
- package/dist/components/ui/TableBorderColorPicker.vue.d.ts +14 -0
- package/dist/components/ui/TableBorderPicker.vue.d.ts +11 -0
- package/dist/components/ui/TableBorderWidthPicker.vue.d.ts +10 -0
- package/dist/components/ui/TableCellFillPicker.vue.d.ts +14 -0
- package/dist/components/ui/TableGridInline.vue.d.ts +14 -0
- package/dist/components/ui/TableGridPicker.vue.d.ts +18 -0
- package/dist/components/ui/TableMoreDropdown.vue.d.ts +51 -0
- package/dist/components/ui/TableStyleGallery.vue.d.ts +10 -0
- package/dist/components/ui/TableToolbar.vue.d.ts +61 -0
- package/dist/components/ui/VerticalRuler.vue.d.ts +20 -0
- package/dist/components/ui/ZoomControl.vue.d.ts +12 -0
- package/dist/components/ui/icon-paths.json.d.ts +276 -0
- package/dist/composables/useDocxEditor.d.ts +3 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +3 -0
- package/dist/composables/useFindReplace.d.ts +5 -1
- package/dist/composables/useFontLifecycle.d.ts +1 -0
- package/dist/composables.cjs +2 -2
- package/dist/composables.js +45 -44
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +2 -5
- package/dist/folio-vue.css +1 -156
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1456 -1409
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/dist/useFindReplace-BbW0xWo7.js +74 -0
- package/dist/useFindReplace-neQmDh2i.cjs +1 -0
- package/dist/useZoom-B1miNAf_.cjs +1 -0
- package/dist/{useZoom-D8Wi1XkB.js → useZoom-Bw5gp69V.js} +262 -252
- package/dist/utils/embeddedFonts.d.ts +1 -1
- package/package.json +22 -10
- package/dist/ListButtons-DIWR-Q8d.cjs +0 -4
- package/dist/SplitCellDialog-B_z6ynxm.cjs +0 -15
- package/dist/useFindReplace-CL8Rbc3y.js +0 -59
- package/dist/useFindReplace-ZCrdvwEk.cjs +0 -1
- package/dist/useZoom-CkbPWZ64.cjs +0 -1
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { t as e } from "./useFindReplace-
|
|
1
|
+
import { t as e } from "./useFindReplace-BbW0xWo7.js";
|
|
2
2
|
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, inject as d, isRef as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _, onMounted as v, openBlock as y, provide as b, reactive as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRef as E, toValue as D, unref as O, vModelCheckbox as k, vModelRadio as A, vModelSelect as j, vModelText as M, watch as N, withCtx as P, withDirectives as F, withKeys as I, withModifiers as L } from "vue";
|
|
3
3
|
import { isAllowedExternalWatermarkImageUrl as R } from "@stll/folio-core/watermark";
|
|
4
4
|
import { getFolioMessages as z } from "@stll/folio-core/i18n/messages";
|
|
5
5
|
import { generateThemeTintShadeMatrix as ee, resolveColor as te, resolveColorToHex as ne, resolveHighlightColor as re } from "@stll/folio-core/utils/colorResolver";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { sliceText as ie } from "@stll/folio-core/utils/sliceText";
|
|
7
|
+
import { getReviewViewReadOnlyReason as ae } from "@stll/folio-core/managers/EditorModeManager";
|
|
8
|
+
import { SYMBOL_CATEGORIES as B, filterSymbols as V } from "@stll/folio-core/symbols";
|
|
9
|
+
import { TWIPS_PER_INCH as oe } from "@stll/folio-core/utils/units";
|
|
10
|
+
import { TABLE_PROPERTY_JUSTIFICATIONS as se, toTablePropertyJustification as ce } from "@stll/folio-core/utils/tableOperations";
|
|
11
|
+
import { cssBorderStyle as le } from "@stll/folio-core/utils/borderCss";
|
|
10
12
|
//#region \0rolldown/runtime.js
|
|
11
|
-
var
|
|
13
|
+
var H = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), U = (e, t) => {
|
|
12
14
|
let n = e.__vccOpts || e;
|
|
13
15
|
for (let [e, r] of t) n[e] = r;
|
|
14
16
|
return n;
|
|
15
|
-
},
|
|
17
|
+
}, ue = {
|
|
16
18
|
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"],
|
|
17
19
|
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"],
|
|
18
20
|
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"],
|
|
@@ -112,7 +114,7 @@ var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
112
114
|
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"],
|
|
113
115
|
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"],
|
|
114
116
|
"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"]
|
|
115
|
-
},
|
|
117
|
+
}, de = ["width", "height"], W = ["d"], G = /* @__PURE__ */ u({
|
|
116
118
|
__name: "MaterialSymbol",
|
|
117
119
|
props: {
|
|
118
120
|
name: {},
|
|
@@ -121,7 +123,7 @@ var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
121
123
|
style: {}
|
|
122
124
|
},
|
|
123
125
|
setup(e) {
|
|
124
|
-
let n = e, i =
|
|
126
|
+
let n = e, i = ue, a = r(() => i[n.name] || (typeof console < "u" && console.warn(`Icon not found: ${n.name}`), null));
|
|
125
127
|
return (n, r) => a.value ? (y(), o("svg", {
|
|
126
128
|
key: 0,
|
|
127
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -139,7 +141,7 @@ var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
139
141
|
}, [(y(!0), o(t, null, C(a.value, (e, t) => (y(), o("path", {
|
|
140
142
|
key: t,
|
|
141
143
|
d: e
|
|
142
|
-
}, null, 8,
|
|
144
|
+
}, null, 8, W))), 128))], 14, de)) : (y(), o("span", {
|
|
143
145
|
key: 1,
|
|
144
146
|
class: h(e.className),
|
|
145
147
|
style: g({
|
|
@@ -155,39 +157,39 @@ var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
155
157
|
//#endregion
|
|
156
158
|
//#region ../../../../../.bun/install/cache/links/@formatjs+fast-memoize@3.1.7-094408a2425cf0c9/node_modules/@formatjs/fast-memoize/index.js
|
|
157
159
|
function K(e, t) {
|
|
158
|
-
let n = t && t.cache ? t.cache :
|
|
159
|
-
return (t && t.strategy ? t.strategy :
|
|
160
|
+
let n = t && t.cache ? t.cache : xe, r = t && t.serializer ? t.serializer : ye;
|
|
161
|
+
return (t && t.strategy ? t.strategy : ge)(e, {
|
|
160
162
|
cache: n,
|
|
161
163
|
serializer: r
|
|
162
164
|
});
|
|
163
165
|
}
|
|
164
|
-
function
|
|
166
|
+
function fe(e) {
|
|
165
167
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
166
168
|
}
|
|
167
|
-
function
|
|
168
|
-
let i =
|
|
169
|
+
function pe(e, t, n, r) {
|
|
170
|
+
let i = fe(r) ? r : n(r), a = t.get(i);
|
|
169
171
|
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
170
172
|
}
|
|
171
|
-
function
|
|
173
|
+
function me(e, t, n) {
|
|
172
174
|
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
173
175
|
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
174
176
|
}
|
|
175
|
-
function
|
|
177
|
+
function he(e, t, n, r, i) {
|
|
176
178
|
return n.bind(t, e, r, i);
|
|
177
179
|
}
|
|
178
|
-
function
|
|
179
|
-
let n = e.length === 1 ?
|
|
180
|
-
return
|
|
180
|
+
function ge(e, t) {
|
|
181
|
+
let n = e.length === 1 ? pe : me;
|
|
182
|
+
return he(e, this, n, t.cache.create(), t.serializer);
|
|
181
183
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
184
|
+
function _e(e, t) {
|
|
185
|
+
return he(e, this, me, t.cache.create(), t.serializer);
|
|
184
186
|
}
|
|
185
|
-
function
|
|
186
|
-
return
|
|
187
|
+
function ve(e, t) {
|
|
188
|
+
return he(e, this, pe, t.cache.create(), t.serializer);
|
|
187
189
|
}
|
|
188
|
-
var
|
|
190
|
+
var ye = function() {
|
|
189
191
|
return JSON.stringify(arguments);
|
|
190
|
-
},
|
|
192
|
+
}, be = class {
|
|
191
193
|
constructor() {
|
|
192
194
|
this.cache = Object.create(null);
|
|
193
195
|
}
|
|
@@ -197,20 +199,20 @@ var _e = function() {
|
|
|
197
199
|
set(e, t) {
|
|
198
200
|
this.cache[e] = t;
|
|
199
201
|
}
|
|
200
|
-
},
|
|
201
|
-
return new
|
|
202
|
-
} },
|
|
203
|
-
variadic:
|
|
204
|
-
monadic:
|
|
205
|
-
},
|
|
202
|
+
}, xe = { create: function() {
|
|
203
|
+
return new be();
|
|
204
|
+
} }, q = {
|
|
205
|
+
variadic: _e,
|
|
206
|
+
monadic: ve
|
|
207
|
+
}, J = class extends Error {
|
|
206
208
|
constructor(e, t) {
|
|
207
209
|
let n = e;
|
|
208
210
|
t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
|
|
209
211
|
}
|
|
210
|
-
},
|
|
212
|
+
}, Y = function(e) {
|
|
211
213
|
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;
|
|
212
|
-
}(
|
|
213
|
-
function
|
|
214
|
+
}(Y || {});
|
|
215
|
+
function Se() {
|
|
214
216
|
return {
|
|
215
217
|
dateTime: {},
|
|
216
218
|
number: {},
|
|
@@ -221,7 +223,7 @@ function xe() {
|
|
|
221
223
|
displayNames: {}
|
|
222
224
|
};
|
|
223
225
|
}
|
|
224
|
-
function
|
|
226
|
+
function Ce(e, t) {
|
|
225
227
|
return K(e, {
|
|
226
228
|
cache: (n = t, { create: () => ({
|
|
227
229
|
get: (e) => n[e],
|
|
@@ -229,26 +231,26 @@ function Se(e, t) {
|
|
|
229
231
|
n[e] = t;
|
|
230
232
|
}
|
|
231
233
|
}) }),
|
|
232
|
-
strategy:
|
|
234
|
+
strategy: q.variadic
|
|
233
235
|
});
|
|
234
236
|
var n;
|
|
235
237
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
238
|
+
function we(e, t) {
|
|
239
|
+
return Ce(((...t) => new e(...t)), t);
|
|
238
240
|
}
|
|
239
|
-
function
|
|
241
|
+
function Te(e) {
|
|
240
242
|
return {
|
|
241
|
-
getDateTimeFormat:
|
|
242
|
-
getNumberFormat:
|
|
243
|
-
getPluralRules:
|
|
244
|
-
getRelativeTimeFormat:
|
|
245
|
-
getListFormat:
|
|
246
|
-
getDisplayNames:
|
|
243
|
+
getDateTimeFormat: we(Intl.DateTimeFormat, e.dateTime),
|
|
244
|
+
getNumberFormat: we(Intl.NumberFormat, e.number),
|
|
245
|
+
getPluralRules: we(Intl.PluralRules, e.pluralRules),
|
|
246
|
+
getRelativeTimeFormat: we(Intl.RelativeTimeFormat, e.relativeTime),
|
|
247
|
+
getListFormat: we(Intl.ListFormat, e.list),
|
|
248
|
+
getDisplayNames: we(Intl.DisplayNames, e.displayNames)
|
|
247
249
|
};
|
|
248
250
|
}
|
|
249
251
|
//#endregion
|
|
250
252
|
//#region ../../../../../.bun/install/cache/links/react@19.2.8-cd643cd10e1e2a1c/node_modules/react/cjs/react.production.js
|
|
251
|
-
var
|
|
253
|
+
var Ee = /* @__PURE__ */ H(((e) => {
|
|
252
254
|
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;
|
|
253
255
|
function m(e) {
|
|
254
256
|
return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -534,7 +536,7 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
534
536
|
}, e.useTransition = function() {
|
|
535
537
|
return w.H.useTransition();
|
|
536
538
|
}, e.version = "19.2.8";
|
|
537
|
-
})),
|
|
539
|
+
})), De = /* @__PURE__ */ H(((e, t) => {
|
|
538
540
|
process.env.NODE_ENV !== "production" && (function() {
|
|
539
541
|
function n(e, t) {
|
|
540
542
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -550,11 +552,11 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
550
552
|
se[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), se[n] = !0);
|
|
551
553
|
}
|
|
552
554
|
function a(e, t, n) {
|
|
553
|
-
this.props = e, this.context = t, this.refs =
|
|
555
|
+
this.props = e, this.context = t, this.refs = H, this.updater = n || ce;
|
|
554
556
|
}
|
|
555
557
|
function o() {}
|
|
556
558
|
function s(e, t, n) {
|
|
557
|
-
this.props = e, this.context = t, this.refs =
|
|
559
|
+
this.props = e, this.context = t, this.refs = H, this.updater = n || ce;
|
|
558
560
|
}
|
|
559
561
|
function c() {}
|
|
560
562
|
function l(e) {
|
|
@@ -575,7 +577,7 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
575
577
|
}
|
|
576
578
|
function d(e) {
|
|
577
579
|
if (e == null) return null;
|
|
578
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
580
|
+
if (typeof e == "function") return e.$$typeof === de ? null : e.displayName || e.name || null;
|
|
579
581
|
if (typeof e == "string") return e;
|
|
580
582
|
switch (e) {
|
|
581
583
|
case L: return "Fragment";
|
|
@@ -612,14 +614,14 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
612
614
|
}
|
|
613
615
|
}
|
|
614
616
|
function p() {
|
|
615
|
-
var e =
|
|
617
|
+
var e = W.A;
|
|
616
618
|
return e === null ? null : e.getOwner();
|
|
617
619
|
}
|
|
618
620
|
function m() {
|
|
619
621
|
return Error("react-stack-top-frame");
|
|
620
622
|
}
|
|
621
623
|
function h(e) {
|
|
622
|
-
if (
|
|
624
|
+
if (G.call(e, "key")) {
|
|
623
625
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
624
626
|
if (t && t.isReactWarning) return !1;
|
|
625
627
|
}
|
|
@@ -732,11 +734,11 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
732
734
|
if (s) {
|
|
733
735
|
s = e, a = a(s);
|
|
734
736
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
735
|
-
return
|
|
737
|
+
return ue(a) ? (n = "", c != null && (n = c.replace(ve, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
736
738
|
return e;
|
|
737
739
|
})) : 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(ve, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
738
740
|
}
|
|
739
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
741
|
+
if (s = 0, c = i === "" ? "." : i + ":", ue(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
|
|
740
742
|
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);
|
|
741
743
|
else if (o === "object") {
|
|
742
744
|
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
@@ -779,56 +781,56 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
779
781
|
throw e._result;
|
|
780
782
|
}
|
|
781
783
|
function O() {
|
|
782
|
-
var e =
|
|
784
|
+
var e = W.H;
|
|
783
785
|
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;
|
|
784
786
|
}
|
|
785
787
|
function k() {
|
|
786
|
-
|
|
788
|
+
W.asyncTransitions--;
|
|
787
789
|
}
|
|
788
790
|
function A(e) {
|
|
789
|
-
if (
|
|
791
|
+
if (xe === null) try {
|
|
790
792
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
791
|
-
|
|
793
|
+
xe = (t && t[n]).call(t, "timers").setImmediate;
|
|
792
794
|
} catch {
|
|
793
|
-
|
|
795
|
+
xe = function(e) {
|
|
794
796
|
!1 === be && (be = !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."));
|
|
795
797
|
var t = new MessageChannel();
|
|
796
798
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
797
799
|
};
|
|
798
800
|
}
|
|
799
|
-
return
|
|
801
|
+
return xe(e);
|
|
800
802
|
}
|
|
801
803
|
function j(e) {
|
|
802
804
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
803
805
|
}
|
|
804
806
|
function M(e, t) {
|
|
805
|
-
t !==
|
|
807
|
+
t !== q - 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. "), q = t;
|
|
806
808
|
}
|
|
807
809
|
function N(e, t, n) {
|
|
808
|
-
var r =
|
|
810
|
+
var r = W.actQueue;
|
|
809
811
|
if (r !== null) if (r.length !== 0) try {
|
|
810
812
|
P(r), A(function() {
|
|
811
813
|
return N(e, t, n);
|
|
812
814
|
});
|
|
813
815
|
return;
|
|
814
816
|
} catch (e) {
|
|
815
|
-
|
|
817
|
+
W.thrownErrors.push(e);
|
|
816
818
|
}
|
|
817
|
-
else
|
|
818
|
-
0 <
|
|
819
|
+
else W.actQueue = null;
|
|
820
|
+
0 < W.thrownErrors.length ? (r = j(W.thrownErrors), W.thrownErrors.length = 0, n(r)) : t(e);
|
|
819
821
|
}
|
|
820
822
|
function P(e) {
|
|
821
|
-
if (!
|
|
822
|
-
|
|
823
|
+
if (!Y) {
|
|
824
|
+
Y = !0;
|
|
823
825
|
var t = 0;
|
|
824
826
|
try {
|
|
825
827
|
for (; t < e.length; t++) {
|
|
826
828
|
var n = e[t];
|
|
827
829
|
do {
|
|
828
|
-
|
|
830
|
+
W.didUsePromise = !1;
|
|
829
831
|
var r = n(!1);
|
|
830
832
|
if (r !== null) {
|
|
831
|
-
if (
|
|
833
|
+
if (W.didUsePromise) {
|
|
832
834
|
e[t] = n, e.splice(0, t);
|
|
833
835
|
return;
|
|
834
836
|
}
|
|
@@ -838,9 +840,9 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
838
840
|
}
|
|
839
841
|
e.length = 0;
|
|
840
842
|
} catch (n) {
|
|
841
|
-
e.splice(0, t + 1),
|
|
843
|
+
e.splice(0, t + 1), W.thrownErrors.push(n);
|
|
842
844
|
} finally {
|
|
843
|
-
|
|
845
|
+
Y = !1;
|
|
844
846
|
}
|
|
845
847
|
}
|
|
846
848
|
}
|
|
@@ -858,20 +860,20 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
858
860
|
enqueueSetState: function(e) {
|
|
859
861
|
i(e, "setState");
|
|
860
862
|
}
|
|
861
|
-
},
|
|
862
|
-
Object.freeze(
|
|
863
|
+
}, le = Object.assign, H = {};
|
|
864
|
+
Object.freeze(H), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
863
865
|
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.");
|
|
864
866
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
865
867
|
}, a.prototype.forceUpdate = function(e) {
|
|
866
868
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
867
869
|
};
|
|
868
|
-
var
|
|
870
|
+
var U = {
|
|
869
871
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
870
872
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
871
873
|
};
|
|
872
|
-
for (Ce in
|
|
873
|
-
o.prototype = a.prototype,
|
|
874
|
-
var
|
|
874
|
+
for (Ce in U) U.hasOwnProperty(Ce) && n(Ce, U[Ce]);
|
|
875
|
+
o.prototype = a.prototype, U = s.prototype = new o(), U.constructor = s, le(U, a.prototype), U.isPureReactComponent = !0;
|
|
876
|
+
var ue = Array.isArray, de = Symbol.for("react.client.reference"), W = {
|
|
875
877
|
H: null,
|
|
876
878
|
A: null,
|
|
877
879
|
T: null,
|
|
@@ -884,13 +886,13 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
884
886
|
thrownErrors: [],
|
|
885
887
|
getCurrentStack: null,
|
|
886
888
|
recentlyCreatedOwnerStacks: 0
|
|
887
|
-
},
|
|
889
|
+
}, G = Object.prototype.hasOwnProperty, K = console.createTask ? console.createTask : function() {
|
|
888
890
|
return null;
|
|
889
891
|
};
|
|
890
|
-
|
|
892
|
+
U = { react_stack_bottom_frame: function(e) {
|
|
891
893
|
return e();
|
|
892
894
|
} };
|
|
893
|
-
var fe, pe, me = {}, he =
|
|
895
|
+
var fe, pe, me = {}, he = U.react_stack_bottom_frame.bind(U, m)(), ge = K(f(m)), _e = !1, ve = /\/+/g, ye = typeof reportError == "function" ? reportError : function(e) {
|
|
894
896
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
895
897
|
var t = new window.ErrorEvent("error", {
|
|
896
898
|
bubbles: !0,
|
|
@@ -904,12 +906,12 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
904
906
|
return;
|
|
905
907
|
}
|
|
906
908
|
console.error(e);
|
|
907
|
-
}, be = !1,
|
|
909
|
+
}, be = !1, xe = null, q = 0, J = !1, Y = !1, Se = typeof queueMicrotask == "function" ? function(e) {
|
|
908
910
|
queueMicrotask(function() {
|
|
909
911
|
return queueMicrotask(e);
|
|
910
912
|
});
|
|
911
913
|
} : A;
|
|
912
|
-
|
|
914
|
+
U = Object.freeze({
|
|
913
915
|
__proto__: null,
|
|
914
916
|
c: function(e) {
|
|
915
917
|
return O().useMemoCache(e);
|
|
@@ -938,20 +940,20 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
938
940
|
return e;
|
|
939
941
|
}
|
|
940
942
|
};
|
|
941
|
-
e.Activity = V, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = z, e.PureComponent = s, e.StrictMode = R, e.Suspense = re, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
942
|
-
var t =
|
|
943
|
-
|
|
944
|
-
var r =
|
|
943
|
+
e.Activity = V, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = z, e.PureComponent = s, e.StrictMode = R, e.Suspense = re, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = W, e.__COMPILER_RUNTIME = U, e.act = function(e) {
|
|
944
|
+
var t = W.actQueue, n = q;
|
|
945
|
+
q++;
|
|
946
|
+
var r = W.actQueue = t === null ? [] : t, i = !1;
|
|
945
947
|
try {
|
|
946
948
|
var a = e();
|
|
947
949
|
} catch (e) {
|
|
948
|
-
|
|
950
|
+
W.thrownErrors.push(e);
|
|
949
951
|
}
|
|
950
|
-
if (0 <
|
|
952
|
+
if (0 < W.thrownErrors.length) throw M(t, n), e = j(W.thrownErrors), W.thrownErrors.length = 0, e;
|
|
951
953
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
952
954
|
var o = a;
|
|
953
|
-
return
|
|
954
|
-
i ||
|
|
955
|
+
return Se(function() {
|
|
956
|
+
i || J || (J = !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 () => ...);"));
|
|
955
957
|
}), { then: function(e, a) {
|
|
956
958
|
i = !0, o.then(function(i) {
|
|
957
959
|
if (M(t, n), n === 0) {
|
|
@@ -960,24 +962,24 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
960
962
|
return N(i, e, a);
|
|
961
963
|
});
|
|
962
964
|
} catch (e) {
|
|
963
|
-
|
|
965
|
+
W.thrownErrors.push(e);
|
|
964
966
|
}
|
|
965
|
-
if (0 <
|
|
966
|
-
var o = j(
|
|
967
|
-
|
|
967
|
+
if (0 < W.thrownErrors.length) {
|
|
968
|
+
var o = j(W.thrownErrors);
|
|
969
|
+
W.thrownErrors.length = 0, a(o);
|
|
968
970
|
}
|
|
969
971
|
} else e(i);
|
|
970
972
|
}, function(e) {
|
|
971
|
-
M(t, n), 0 <
|
|
973
|
+
M(t, n), 0 < W.thrownErrors.length ? (e = j(W.thrownErrors), W.thrownErrors.length = 0, a(e)) : a(e);
|
|
972
974
|
});
|
|
973
975
|
} };
|
|
974
976
|
}
|
|
975
977
|
var s = a;
|
|
976
|
-
if (M(t, n), n === 0 && (P(r), r.length !== 0 &&
|
|
977
|
-
i ||
|
|
978
|
-
}),
|
|
978
|
+
if (M(t, n), n === 0 && (P(r), r.length !== 0 && Se(function() {
|
|
979
|
+
i || J || (J = !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(() => ...)"));
|
|
980
|
+
}), W.actQueue = null), 0 < W.thrownErrors.length) throw e = j(W.thrownErrors), W.thrownErrors.length = 0, e;
|
|
979
981
|
return { then: function(e, t) {
|
|
980
|
-
i = !0, n === 0 ? (
|
|
982
|
+
i = !0, n === 0 ? (W.actQueue = r, A(function() {
|
|
981
983
|
return N(s, e, t);
|
|
982
984
|
})) : e(s);
|
|
983
985
|
} };
|
|
@@ -988,21 +990,21 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
988
990
|
}, e.cacheSignal = function() {
|
|
989
991
|
return null;
|
|
990
992
|
}, e.captureOwnerStack = function() {
|
|
991
|
-
var e =
|
|
993
|
+
var e = W.getCurrentStack;
|
|
992
994
|
return e === null ? null : e();
|
|
993
995
|
}, e.cloneElement = function(e, t, n) {
|
|
994
996
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
995
|
-
var r =
|
|
997
|
+
var r = le({}, e.props), i = e.key, a = e._owner;
|
|
996
998
|
if (t != null) {
|
|
997
999
|
var o;
|
|
998
1000
|
a: {
|
|
999
|
-
if (
|
|
1001
|
+
if (G.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
1000
1002
|
o = !1;
|
|
1001
1003
|
break a;
|
|
1002
1004
|
}
|
|
1003
1005
|
o = t.ref !== void 0;
|
|
1004
1006
|
}
|
|
1005
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
1007
|
+
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !G.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
1006
1008
|
}
|
|
1007
1009
|
var s = arguments.length - 2;
|
|
1008
1010
|
if (s === 1) r.children = n;
|
|
@@ -1029,7 +1031,7 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
1029
1031
|
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
1030
1032
|
r = {};
|
|
1031
1033
|
var i = null;
|
|
1032
|
-
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)
|
|
1034
|
+
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) G.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
|
|
1033
1035
|
var a = arguments.length - 2;
|
|
1034
1036
|
if (a === 1) r.children = n;
|
|
1035
1037
|
else if (1 < a) {
|
|
@@ -1038,8 +1040,8 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
1038
1040
|
}
|
|
1039
1041
|
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
1040
1042
|
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
1041
|
-
var c = 1e4 >
|
|
1042
|
-
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : he, c ?
|
|
1043
|
+
var c = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
1044
|
+
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : he, c ? K(f(e)) : ge);
|
|
1043
1045
|
}, e.createRef = function() {
|
|
1044
1046
|
var e = { current: null };
|
|
1045
1047
|
return Object.seal(e), e;
|
|
@@ -1096,15 +1098,15 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
1096
1098
|
}
|
|
1097
1099
|
}), t;
|
|
1098
1100
|
}, e.startTransition = function(e) {
|
|
1099
|
-
var t =
|
|
1100
|
-
n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
1101
|
+
var t = W.T, n = {};
|
|
1102
|
+
n._updatedFibers = /* @__PURE__ */ new Set(), W.T = n;
|
|
1101
1103
|
try {
|
|
1102
|
-
var r = e(), i =
|
|
1103
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
1104
|
+
var r = e(), i = W.S;
|
|
1105
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (W.asyncTransitions++, r.then(k, k), r.then(c, ye));
|
|
1104
1106
|
} catch (e) {
|
|
1105
1107
|
ye(e);
|
|
1106
1108
|
} finally {
|
|
1107
|
-
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),
|
|
1109
|
+
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), W.T = t;
|
|
1108
1110
|
}
|
|
1109
1111
|
}, e.unstable_useCacheRefresh = function() {
|
|
1110
1112
|
return O().useCacheRefresh();
|
|
@@ -1149,12 +1151,12 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
1149
1151
|
return O().useTransition();
|
|
1150
1152
|
}, e.version = "19.2.8", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1151
1153
|
})();
|
|
1152
|
-
})),
|
|
1153
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
1154
|
-
})))(),
|
|
1155
|
-
function
|
|
1154
|
+
})), Oe = (/* @__PURE__ */ H(((e, t) => {
|
|
1155
|
+
process.env.NODE_ENV === "production" ? t.exports = Ee() : t.exports = De();
|
|
1156
|
+
})))(), ke = /(?:[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;
|
|
1157
|
+
function Ae(e) {
|
|
1156
1158
|
let t = {};
|
|
1157
|
-
return e.replace(
|
|
1159
|
+
return e.replace(ke, (e) => {
|
|
1158
1160
|
let n = e.length;
|
|
1159
1161
|
switch (e[0]) {
|
|
1160
1162
|
case "G":
|
|
@@ -1249,10 +1251,10 @@ function Oe(e) {
|
|
|
1249
1251
|
return "";
|
|
1250
1252
|
}), t;
|
|
1251
1253
|
}
|
|
1252
|
-
var
|
|
1253
|
-
function
|
|
1254
|
+
var je = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1255
|
+
function Me(e) {
|
|
1254
1256
|
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
1255
|
-
let t = e.split(
|
|
1257
|
+
let t = e.split(je).filter((e) => e.length > 0), n = [];
|
|
1256
1258
|
for (let e of t) {
|
|
1257
1259
|
let t = e.split("/");
|
|
1258
1260
|
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
@@ -1265,17 +1267,17 @@ function Ae(e) {
|
|
|
1265
1267
|
}
|
|
1266
1268
|
return n;
|
|
1267
1269
|
}
|
|
1268
|
-
function
|
|
1270
|
+
function Ne(e) {
|
|
1269
1271
|
return e.replace(/^(.*?)-/, "");
|
|
1270
1272
|
}
|
|
1271
|
-
var
|
|
1272
|
-
function
|
|
1273
|
+
var Pe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Fe = /^(@+)?(\+|#+)?[rs]?$/g, Ie = /(\*)(0+)|(#+)(0+)|(0+)/g, Le = /^(0+)$/;
|
|
1274
|
+
function Re(e) {
|
|
1273
1275
|
let t = {};
|
|
1274
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1276
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Fe, function(e, n, r) {
|
|
1275
1277
|
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), "";
|
|
1276
1278
|
}), t;
|
|
1277
1279
|
}
|
|
1278
|
-
function
|
|
1280
|
+
function ze(e) {
|
|
1279
1281
|
switch (e) {
|
|
1280
1282
|
case "sign-auto": return { signDisplay: "auto" };
|
|
1281
1283
|
case "sign-accounting":
|
|
@@ -1298,19 +1300,19 @@ function Le(e) {
|
|
|
1298
1300
|
case "+_": return { signDisplay: "never" };
|
|
1299
1301
|
}
|
|
1300
1302
|
}
|
|
1301
|
-
function
|
|
1303
|
+
function Be(e) {
|
|
1302
1304
|
let t;
|
|
1303
1305
|
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) {
|
|
1304
1306
|
let n = e.slice(0, 2);
|
|
1305
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1307
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Le.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
1306
1308
|
t.minimumIntegerDigits = e.length;
|
|
1307
1309
|
}
|
|
1308
1310
|
return t;
|
|
1309
1311
|
}
|
|
1310
|
-
function
|
|
1311
|
-
return
|
|
1312
|
+
function Ve(e) {
|
|
1313
|
+
return ze(e) || {};
|
|
1312
1314
|
}
|
|
1313
|
-
function
|
|
1315
|
+
function He(e) {
|
|
1314
1316
|
let t = {};
|
|
1315
1317
|
for (let n of e) {
|
|
1316
1318
|
switch (n.stem) {
|
|
@@ -1334,7 +1336,7 @@ function Be(e) {
|
|
|
1334
1336
|
continue;
|
|
1335
1337
|
case "measure-unit":
|
|
1336
1338
|
case "unit":
|
|
1337
|
-
t.style = "unit", t.unit =
|
|
1339
|
+
t.style = "unit", t.unit = Ne(n.options[0]);
|
|
1338
1340
|
continue;
|
|
1339
1341
|
case "compact-short":
|
|
1340
1342
|
case "K":
|
|
@@ -1350,7 +1352,7 @@ function Be(e) {
|
|
|
1350
1352
|
notation: "scientific",
|
|
1351
1353
|
...n.options.reduce((e, t) => ({
|
|
1352
1354
|
...e,
|
|
1353
|
-
...
|
|
1355
|
+
...Ve(t)
|
|
1354
1356
|
}), {})
|
|
1355
1357
|
};
|
|
1356
1358
|
continue;
|
|
@@ -1360,7 +1362,7 @@ function Be(e) {
|
|
|
1360
1362
|
notation: "engineering",
|
|
1361
1363
|
...n.options.reduce((e, t) => ({
|
|
1362
1364
|
...e,
|
|
1363
|
-
...
|
|
1365
|
+
...Ve(t)
|
|
1364
1366
|
}), {})
|
|
1365
1367
|
};
|
|
1366
1368
|
continue;
|
|
@@ -1405,7 +1407,7 @@ function Be(e) {
|
|
|
1405
1407
|
continue;
|
|
1406
1408
|
case "integer-width":
|
|
1407
1409
|
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
1408
|
-
n.options[0].replace(
|
|
1410
|
+
n.options[0].replace(Ie, function(e, n, r, i, a, o) {
|
|
1409
1411
|
if (n) t.minimumIntegerDigits = r.length;
|
|
1410
1412
|
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
1411
1413
|
else if (o) throw Error("We currently do not support exact integer digits");
|
|
@@ -1413,13 +1415,13 @@ function Be(e) {
|
|
|
1413
1415
|
});
|
|
1414
1416
|
continue;
|
|
1415
1417
|
}
|
|
1416
|
-
if (
|
|
1418
|
+
if (Le.test(n.stem)) {
|
|
1417
1419
|
t.minimumIntegerDigits = n.stem.length;
|
|
1418
1420
|
continue;
|
|
1419
1421
|
}
|
|
1420
|
-
if (
|
|
1422
|
+
if (Pe.test(n.stem)) {
|
|
1421
1423
|
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
1422
|
-
n.stem.replace(
|
|
1424
|
+
n.stem.replace(Pe, function(e, n, r, i, a, o) {
|
|
1423
1425
|
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), "";
|
|
1424
1426
|
});
|
|
1425
1427
|
let e = n.options[0];
|
|
@@ -1428,23 +1430,23 @@ function Be(e) {
|
|
|
1428
1430
|
trailingZeroDisplay: "stripIfInteger"
|
|
1429
1431
|
} : e && (t = {
|
|
1430
1432
|
...t,
|
|
1431
|
-
...
|
|
1433
|
+
...Re(e)
|
|
1432
1434
|
});
|
|
1433
1435
|
continue;
|
|
1434
1436
|
}
|
|
1435
|
-
if (
|
|
1437
|
+
if (Fe.test(n.stem)) {
|
|
1436
1438
|
t = {
|
|
1437
1439
|
...t,
|
|
1438
|
-
...
|
|
1440
|
+
...Re(n.stem)
|
|
1439
1441
|
};
|
|
1440
1442
|
continue;
|
|
1441
1443
|
}
|
|
1442
|
-
let e =
|
|
1444
|
+
let e = ze(n.stem);
|
|
1443
1445
|
e && (t = {
|
|
1444
1446
|
...t,
|
|
1445
1447
|
...e
|
|
1446
1448
|
});
|
|
1447
|
-
let r =
|
|
1449
|
+
let r = Be(n.stem);
|
|
1448
1450
|
r && (t = {
|
|
1449
1451
|
...t,
|
|
1450
1452
|
...r
|
|
@@ -1454,43 +1456,43 @@ function Be(e) {
|
|
|
1454
1456
|
}
|
|
1455
1457
|
//#endregion
|
|
1456
1458
|
//#region ../../../../../.bun/install/cache/links/@formatjs+icu-messageformat-parser@3.5.15-11d7d13f7556f305/node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
1457
|
-
var
|
|
1459
|
+
var Ue = /* @__PURE__ */ function(e) {
|
|
1458
1460
|
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;
|
|
1459
1461
|
}({});
|
|
1460
|
-
function
|
|
1462
|
+
function We(e) {
|
|
1461
1463
|
return e.type === 0;
|
|
1462
1464
|
}
|
|
1463
|
-
function
|
|
1465
|
+
function Ge(e) {
|
|
1464
1466
|
return e.type === 1;
|
|
1465
1467
|
}
|
|
1466
|
-
function
|
|
1468
|
+
function Ke(e) {
|
|
1467
1469
|
return e.type === 2;
|
|
1468
1470
|
}
|
|
1469
|
-
function
|
|
1471
|
+
function qe(e) {
|
|
1470
1472
|
return e.type === 3;
|
|
1471
1473
|
}
|
|
1472
|
-
function
|
|
1474
|
+
function Je(e) {
|
|
1473
1475
|
return e.type === 4;
|
|
1474
1476
|
}
|
|
1475
|
-
function
|
|
1477
|
+
function Ye(e) {
|
|
1476
1478
|
return e.type === 5;
|
|
1477
1479
|
}
|
|
1478
|
-
function
|
|
1480
|
+
function Xe(e) {
|
|
1479
1481
|
return e.type === 6;
|
|
1480
1482
|
}
|
|
1481
|
-
function
|
|
1483
|
+
function Ze(e) {
|
|
1482
1484
|
return e.type === 7;
|
|
1483
1485
|
}
|
|
1484
|
-
function
|
|
1486
|
+
function Qe(e) {
|
|
1485
1487
|
return e.type === 8;
|
|
1486
1488
|
}
|
|
1487
|
-
function
|
|
1489
|
+
function $e(e) {
|
|
1488
1490
|
return !!(e && typeof e == "object" && e.type === 0);
|
|
1489
1491
|
}
|
|
1490
|
-
function
|
|
1492
|
+
function et(e) {
|
|
1491
1493
|
return !!(e && typeof e == "object" && e.type === 1);
|
|
1492
1494
|
}
|
|
1493
|
-
var
|
|
1495
|
+
var tt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, nt = {
|
|
1494
1496
|
"001": ["H", "h"],
|
|
1495
1497
|
419: [
|
|
1496
1498
|
"h",
|
|
@@ -2653,21 +2655,21 @@ var $e = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, et = {
|
|
|
2653
2655
|
"h"
|
|
2654
2656
|
]
|
|
2655
2657
|
};
|
|
2656
|
-
function
|
|
2658
|
+
function rt(e, t) {
|
|
2657
2659
|
let n = "";
|
|
2658
2660
|
for (let r = 0; r < e.length; r++) {
|
|
2659
2661
|
let i = e.charAt(r);
|
|
2660
2662
|
if (i === "j") {
|
|
2661
2663
|
let a = 0;
|
|
2662
2664
|
for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
|
|
2663
|
-
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c =
|
|
2665
|
+
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = it(t);
|
|
2664
2666
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
2665
2667
|
for (; o-- > 0;) n = c + n;
|
|
2666
2668
|
} else i === "J" ? n += "H" : n += i;
|
|
2667
2669
|
}
|
|
2668
2670
|
return n;
|
|
2669
2671
|
}
|
|
2670
|
-
function
|
|
2672
|
+
function it(e) {
|
|
2671
2673
|
let t = e.hourCycle;
|
|
2672
2674
|
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
2673
2675
|
case "h24": return "k";
|
|
@@ -2677,32 +2679,32 @@ function nt(e) {
|
|
|
2677
2679
|
default: throw Error("Invalid hourCycle");
|
|
2678
2680
|
}
|
|
2679
2681
|
let n = e.language, r;
|
|
2680
|
-
return n !== "root" && (r = e.maximize().region), (
|
|
2682
|
+
return n !== "root" && (r = e.maximize().region), (nt[r || ""] || nt[n || ""] || nt[`${n}-001`] || nt["001"])[0];
|
|
2681
2683
|
}
|
|
2682
|
-
var
|
|
2684
|
+
var at = RegExp(`^${tt.source}*`), ot = RegExp(`${tt.source}*$`);
|
|
2683
2685
|
function X(e, t) {
|
|
2684
2686
|
return {
|
|
2685
2687
|
start: e,
|
|
2686
2688
|
end: t
|
|
2687
2689
|
};
|
|
2688
2690
|
}
|
|
2689
|
-
var
|
|
2691
|
+
var st = !!Object.fromEntries, ct = !!String.prototype.trimStart, lt = !!String.prototype.trimEnd, ut = st ? Object.fromEntries : function(e) {
|
|
2690
2692
|
let t = {};
|
|
2691
2693
|
for (let [n, r] of e) t[n] = r;
|
|
2692
2694
|
return t;
|
|
2693
|
-
},
|
|
2695
|
+
}, dt = ct ? function(e) {
|
|
2694
2696
|
return e.trimStart();
|
|
2695
2697
|
} : function(e) {
|
|
2696
|
-
return e.replace(
|
|
2697
|
-
},
|
|
2698
|
+
return e.replace(at, "");
|
|
2699
|
+
}, ft = lt ? function(e) {
|
|
2698
2700
|
return e.trimEnd();
|
|
2699
2701
|
} : function(e) {
|
|
2700
|
-
return e.replace(
|
|
2701
|
-
},
|
|
2702
|
-
function
|
|
2703
|
-
return
|
|
2702
|
+
return e.replace(ot, "");
|
|
2703
|
+
}, pt = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2704
|
+
function mt(e, t) {
|
|
2705
|
+
return pt.lastIndex = t, pt.exec(e)[1] ?? "";
|
|
2704
2706
|
}
|
|
2705
|
-
function
|
|
2707
|
+
function ht(e) {
|
|
2706
2708
|
if (e.length === 0) return null;
|
|
2707
2709
|
let t = 1, n = 1;
|
|
2708
2710
|
for (let r = 0; r < e.length;) {
|
|
@@ -2726,7 +2728,7 @@ function pt(e) {
|
|
|
2726
2728
|
column: n
|
|
2727
2729
|
};
|
|
2728
2730
|
}
|
|
2729
|
-
var
|
|
2731
|
+
var gt = class {
|
|
2730
2732
|
constructor(e, t = {}) {
|
|
2731
2733
|
this.message = e, this.position = {
|
|
2732
2734
|
offset: 0,
|
|
@@ -2739,7 +2741,7 @@ var mt = class {
|
|
|
2739
2741
|
if (this.message.length > 0) {
|
|
2740
2742
|
let e = this.message.charCodeAt(0);
|
|
2741
2743
|
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
2742
|
-
let e =
|
|
2744
|
+
let e = ht(this.message);
|
|
2743
2745
|
if (e) {
|
|
2744
2746
|
let t = this.clonePosition();
|
|
2745
2747
|
return this.position = e, {
|
|
@@ -2773,7 +2775,7 @@ var mt = class {
|
|
|
2773
2775
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2774
2776
|
if (n) break;
|
|
2775
2777
|
return this.error(26, X(this.clonePosition(), this.clonePosition()));
|
|
2776
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
2778
|
+
} else if (i === 60 && !this.ignoreTag && _t(this.peek() || 0)) {
|
|
2777
2779
|
let n = this.parseTag(e, t);
|
|
2778
2780
|
if (n.err) return n;
|
|
2779
2781
|
r.push(n.val);
|
|
@@ -2805,7 +2807,7 @@ var mt = class {
|
|
|
2805
2807
|
if (i.err) return i;
|
|
2806
2808
|
let a = i.val, o = this.clonePosition();
|
|
2807
2809
|
if (this.bumpIf("</")) {
|
|
2808
|
-
if (this.isEOF() || !
|
|
2810
|
+
if (this.isEOF() || !_t(this.char())) return this.error(23, X(o, this.clonePosition()));
|
|
2809
2811
|
let e = this.clonePosition();
|
|
2810
2812
|
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2811
2813
|
val: {
|
|
@@ -2821,7 +2823,7 @@ var mt = class {
|
|
|
2821
2823
|
}
|
|
2822
2824
|
parseTagName() {
|
|
2823
2825
|
let e = this.offset();
|
|
2824
|
-
for (this.bump(); !this.isEOF() &&
|
|
2826
|
+
for (this.bump(); !this.isEOF() && yt(this.char());) this.bump();
|
|
2825
2827
|
return this.message.slice(e, this.offset());
|
|
2826
2828
|
}
|
|
2827
2829
|
parseLiteral(e, t) {
|
|
@@ -2855,7 +2857,7 @@ var mt = class {
|
|
|
2855
2857
|
};
|
|
2856
2858
|
}
|
|
2857
2859
|
tryParseLeftAngleBracket() {
|
|
2858
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
2860
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !vt(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2859
2861
|
}
|
|
2860
2862
|
tryParseQuote(e) {
|
|
2861
2863
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -2910,7 +2912,7 @@ var mt = class {
|
|
|
2910
2912
|
}
|
|
2911
2913
|
}
|
|
2912
2914
|
parseIdentifierIfPossible() {
|
|
2913
|
-
let e = this.clonePosition(), t = this.offset(), n =
|
|
2915
|
+
let e = this.clonePosition(), t = this.offset(), n = mt(this.message, t), r = t + n.length;
|
|
2914
2916
|
return this.bumpTo(r), {
|
|
2915
2917
|
value: n,
|
|
2916
2918
|
location: X(e, this.clonePosition())
|
|
@@ -2929,7 +2931,7 @@ var mt = class {
|
|
|
2929
2931
|
this.bumpSpace();
|
|
2930
2932
|
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
2931
2933
|
if (n.err) return n;
|
|
2932
|
-
let r =
|
|
2934
|
+
let r = ft(n.val);
|
|
2933
2935
|
if (r.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
|
|
2934
2936
|
e = {
|
|
2935
2937
|
style: r,
|
|
@@ -2940,7 +2942,7 @@ var mt = class {
|
|
|
2940
2942
|
if (t.err) return t;
|
|
2941
2943
|
let i = X(r, this.clonePosition());
|
|
2942
2944
|
if (e && e.style.startsWith("::")) {
|
|
2943
|
-
let t =
|
|
2945
|
+
let t = dt(e.style.slice(2));
|
|
2944
2946
|
if (a === "number") {
|
|
2945
2947
|
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
2946
2948
|
return r.err ? r : {
|
|
@@ -2955,12 +2957,12 @@ var mt = class {
|
|
|
2955
2957
|
} else {
|
|
2956
2958
|
if (t.length === 0) return this.error(10, i);
|
|
2957
2959
|
let r = t;
|
|
2958
|
-
this.locale && (r =
|
|
2960
|
+
this.locale && (r = rt(t, this.locale));
|
|
2959
2961
|
let o = {
|
|
2960
2962
|
type: 1,
|
|
2961
2963
|
pattern: r,
|
|
2962
2964
|
location: e.styleLocation,
|
|
2963
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2965
|
+
parsedOptions: this.shouldParseSkeletons ? Ae(r) : {}
|
|
2964
2966
|
};
|
|
2965
2967
|
return {
|
|
2966
2968
|
val: {
|
|
@@ -3006,7 +3008,7 @@ var mt = class {
|
|
|
3006
3008
|
val: {
|
|
3007
3009
|
type: 5,
|
|
3008
3010
|
value: n,
|
|
3009
|
-
options:
|
|
3011
|
+
options: ut(c.val),
|
|
3010
3012
|
location: u
|
|
3011
3013
|
},
|
|
3012
3014
|
err: null
|
|
@@ -3014,7 +3016,7 @@ var mt = class {
|
|
|
3014
3016
|
val: {
|
|
3015
3017
|
type: 6,
|
|
3016
3018
|
value: n,
|
|
3017
|
-
options:
|
|
3019
|
+
options: ut(c.val),
|
|
3018
3020
|
offset: s,
|
|
3019
3021
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3020
3022
|
location: u
|
|
@@ -3063,7 +3065,7 @@ var mt = class {
|
|
|
3063
3065
|
parseNumberSkeletonFromString(e, t) {
|
|
3064
3066
|
let n = [];
|
|
3065
3067
|
try {
|
|
3066
|
-
n =
|
|
3068
|
+
n = Me(e);
|
|
3067
3069
|
} catch {
|
|
3068
3070
|
return this.error(7, t);
|
|
3069
3071
|
}
|
|
@@ -3072,7 +3074,7 @@ var mt = class {
|
|
|
3072
3074
|
type: 0,
|
|
3073
3075
|
tokens: n,
|
|
3074
3076
|
location: t,
|
|
3075
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3077
|
+
parsedOptions: this.shouldParseSkeletons ? He(n) : {}
|
|
3076
3078
|
},
|
|
3077
3079
|
err: null
|
|
3078
3080
|
};
|
|
@@ -3177,7 +3179,7 @@ var mt = class {
|
|
|
3177
3179
|
}
|
|
3178
3180
|
}
|
|
3179
3181
|
bumpSpace() {
|
|
3180
|
-
for (; !this.isEOF() &&
|
|
3182
|
+
for (; !this.isEOF() && bt(this.char());) this.bump();
|
|
3181
3183
|
}
|
|
3182
3184
|
peek() {
|
|
3183
3185
|
if (this.isEOF()) return null;
|
|
@@ -3185,83 +3187,83 @@ var mt = class {
|
|
|
3185
3187
|
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
3186
3188
|
}
|
|
3187
3189
|
};
|
|
3188
|
-
function
|
|
3190
|
+
function _t(e) {
|
|
3189
3191
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3190
3192
|
}
|
|
3191
|
-
function
|
|
3192
|
-
return
|
|
3193
|
+
function vt(e) {
|
|
3194
|
+
return _t(e) || e === 47;
|
|
3193
3195
|
}
|
|
3194
|
-
function
|
|
3196
|
+
function yt(e) {
|
|
3195
3197
|
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;
|
|
3196
3198
|
}
|
|
3197
|
-
function
|
|
3199
|
+
function bt(e) {
|
|
3198
3200
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3199
3201
|
}
|
|
3200
|
-
function
|
|
3202
|
+
function xt(e) {
|
|
3201
3203
|
e.forEach((e) => {
|
|
3202
|
-
if (delete e.location,
|
|
3203
|
-
else
|
|
3204
|
+
if (delete e.location, Ye(e) || Xe(e)) for (let t in e.options) delete e.options[t].location, xt(e.options[t].value);
|
|
3205
|
+
else Ke(e) && $e(e.style) || (qe(e) || Je(e)) && et(e.style) ? delete e.style.location : Qe(e) && xt(e.children);
|
|
3204
3206
|
});
|
|
3205
3207
|
}
|
|
3206
|
-
function
|
|
3208
|
+
function St(e, t = {}) {
|
|
3207
3209
|
t = {
|
|
3208
3210
|
shouldParseSkeletons: !0,
|
|
3209
3211
|
requiresOtherClause: !0,
|
|
3210
3212
|
...t
|
|
3211
3213
|
};
|
|
3212
|
-
let n = new
|
|
3214
|
+
let n = new gt(e, t).parse();
|
|
3213
3215
|
if (n.err) {
|
|
3214
|
-
let e = SyntaxError(
|
|
3216
|
+
let e = SyntaxError(Ue[n.err.kind]);
|
|
3215
3217
|
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
3216
3218
|
}
|
|
3217
|
-
return t?.captureLocation ||
|
|
3219
|
+
return t?.captureLocation || xt(n.val), n.val;
|
|
3218
3220
|
}
|
|
3219
3221
|
//#endregion
|
|
3220
3222
|
//#region ../../../../../.bun/install/cache/links/intl-messageformat@11.2.12-fe43dd8b7d113ac5/node_modules/intl-messageformat/index.js
|
|
3221
|
-
var
|
|
3223
|
+
var Ct = class extends Error {
|
|
3222
3224
|
constructor(e, t, n) {
|
|
3223
3225
|
super(e), this.code = t, this.originalMessage = n;
|
|
3224
3226
|
}
|
|
3225
3227
|
toString() {
|
|
3226
3228
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3227
3229
|
}
|
|
3228
|
-
},
|
|
3230
|
+
}, wt = class extends Ct {
|
|
3229
3231
|
constructor(e, t, n, r) {
|
|
3230
3232
|
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
3231
3233
|
}
|
|
3232
|
-
},
|
|
3234
|
+
}, Tt = class extends Ct {
|
|
3233
3235
|
constructor(e, t, n) {
|
|
3234
3236
|
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
3235
3237
|
}
|
|
3236
|
-
},
|
|
3238
|
+
}, Et = class extends Ct {
|
|
3237
3239
|
constructor(e, t) {
|
|
3238
3240
|
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
3239
3241
|
}
|
|
3240
3242
|
};
|
|
3241
|
-
function
|
|
3243
|
+
function Dt(e) {
|
|
3242
3244
|
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
3243
3245
|
let n = e[e.length - 1];
|
|
3244
3246
|
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
3245
3247
|
}, []);
|
|
3246
3248
|
}
|
|
3247
|
-
function
|
|
3249
|
+
function Ot(e) {
|
|
3248
3250
|
return typeof e == "function";
|
|
3249
3251
|
}
|
|
3250
|
-
function
|
|
3251
|
-
if (e.length === 1 &&
|
|
3252
|
+
function kt(e, t, n, r, i, a, o) {
|
|
3253
|
+
if (e.length === 1 && We(e[0])) return [{
|
|
3252
3254
|
type: 0,
|
|
3253
3255
|
value: e[0].value
|
|
3254
3256
|
}];
|
|
3255
3257
|
let s = [];
|
|
3256
3258
|
for (let c of e) {
|
|
3257
|
-
if (
|
|
3259
|
+
if (We(c)) {
|
|
3258
3260
|
s.push({
|
|
3259
3261
|
type: 0,
|
|
3260
3262
|
value: c.value
|
|
3261
3263
|
});
|
|
3262
3264
|
continue;
|
|
3263
3265
|
}
|
|
3264
|
-
if (
|
|
3266
|
+
if (Ze(c)) {
|
|
3265
3267
|
typeof a == "number" && s.push({
|
|
3266
3268
|
type: 0,
|
|
3267
3269
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3269,33 +3271,33 @@ function Dt(e, t, n, r, i, a, o) {
|
|
|
3269
3271
|
continue;
|
|
3270
3272
|
}
|
|
3271
3273
|
let { value: e } = c;
|
|
3272
|
-
if (!(i && e in i)) throw new
|
|
3274
|
+
if (!(i && e in i)) throw new Et(e, o);
|
|
3273
3275
|
let l = i[e];
|
|
3274
|
-
if (
|
|
3276
|
+
if (Ge(c)) {
|
|
3275
3277
|
(!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
|
|
3276
3278
|
type: typeof l == "string" ? 0 : 1,
|
|
3277
3279
|
value: l
|
|
3278
3280
|
});
|
|
3279
3281
|
continue;
|
|
3280
3282
|
}
|
|
3281
|
-
if (
|
|
3282
|
-
let e = typeof c.style == "string" ? r.date[c.style] :
|
|
3283
|
+
if (qe(c)) {
|
|
3284
|
+
let e = typeof c.style == "string" ? r.date[c.style] : et(c.style) ? c.style.parsedOptions : void 0;
|
|
3283
3285
|
s.push({
|
|
3284
3286
|
type: 0,
|
|
3285
3287
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3286
3288
|
});
|
|
3287
3289
|
continue;
|
|
3288
3290
|
}
|
|
3289
|
-
if (
|
|
3290
|
-
let e = typeof c.style == "string" ? r.time[c.style] :
|
|
3291
|
+
if (Je(c)) {
|
|
3292
|
+
let e = typeof c.style == "string" ? r.time[c.style] : et(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3291
3293
|
s.push({
|
|
3292
3294
|
type: 0,
|
|
3293
3295
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3294
3296
|
});
|
|
3295
3297
|
continue;
|
|
3296
3298
|
}
|
|
3297
|
-
if (
|
|
3298
|
-
let e = typeof c.style == "string" ? r.number[c.style] :
|
|
3299
|
+
if (Ke(c)) {
|
|
3300
|
+
let e = typeof c.style == "string" ? r.number[c.style] : $e(c.style) ? c.style.parsedOptions : void 0;
|
|
3299
3301
|
if (e && e.scale) {
|
|
3300
3302
|
let t = e.scale || 1;
|
|
3301
3303
|
if (typeof l == "bigint") {
|
|
@@ -3309,37 +3311,37 @@ function Dt(e, t, n, r, i, a, o) {
|
|
|
3309
3311
|
});
|
|
3310
3312
|
continue;
|
|
3311
3313
|
}
|
|
3312
|
-
if (
|
|
3314
|
+
if (Qe(c)) {
|
|
3313
3315
|
let { children: e, value: l } = c, u = i[l];
|
|
3314
|
-
if (!
|
|
3315
|
-
let d = u(
|
|
3316
|
+
if (!Ot(u)) throw new Tt(l, "function", o);
|
|
3317
|
+
let d = u(kt(e, t, n, r, i, a).map((e) => e.value));
|
|
3316
3318
|
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
3317
3319
|
type: typeof e == "string" ? 0 : 1,
|
|
3318
3320
|
value: e
|
|
3319
3321
|
})));
|
|
3320
3322
|
}
|
|
3321
|
-
if (
|
|
3323
|
+
if (Ye(c)) {
|
|
3322
3324
|
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
3323
|
-
if (!a) throw new
|
|
3324
|
-
s.push(...
|
|
3325
|
+
if (!a) throw new wt(c.value, l, Object.keys(c.options), o);
|
|
3326
|
+
s.push(...kt(a.value, t, n, r, i));
|
|
3325
3327
|
continue;
|
|
3326
3328
|
}
|
|
3327
|
-
if (
|
|
3329
|
+
if (Xe(c)) {
|
|
3328
3330
|
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
3329
3331
|
if (!a) {
|
|
3330
|
-
if (!Intl.PluralRules) throw new
|
|
3332
|
+
if (!Intl.PluralRules) throw new Ct("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
3331
3333
|
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
3332
3334
|
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
3333
3335
|
}
|
|
3334
|
-
if (!a) throw new
|
|
3336
|
+
if (!a) throw new wt(c.value, l, Object.keys(c.options), o);
|
|
3335
3337
|
let u = typeof l == "bigint" ? Number(l) : l;
|
|
3336
|
-
s.push(...
|
|
3338
|
+
s.push(...kt(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
3337
3339
|
continue;
|
|
3338
3340
|
}
|
|
3339
3341
|
}
|
|
3340
|
-
return
|
|
3342
|
+
return Dt(s);
|
|
3341
3343
|
}
|
|
3342
|
-
function
|
|
3344
|
+
function At(e, t) {
|
|
3343
3345
|
return t ? {
|
|
3344
3346
|
...e,
|
|
3345
3347
|
...t,
|
|
@@ -3349,10 +3351,10 @@ function Ot(e, t) {
|
|
|
3349
3351
|
}, n), {})
|
|
3350
3352
|
} : e;
|
|
3351
3353
|
}
|
|
3352
|
-
function
|
|
3353
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] =
|
|
3354
|
+
function jt(e, t) {
|
|
3355
|
+
return t ? Object.keys(e).reduce((n, r) => (n[r] = At(e[r], t[r]), n), { ...e }) : e;
|
|
3354
3356
|
}
|
|
3355
|
-
function
|
|
3357
|
+
function Mt(e) {
|
|
3356
3358
|
return { create() {
|
|
3357
3359
|
return {
|
|
3358
3360
|
get(t) {
|
|
@@ -3364,27 +3366,27 @@ function At(e) {
|
|
|
3364
3366
|
};
|
|
3365
3367
|
} };
|
|
3366
3368
|
}
|
|
3367
|
-
function
|
|
3369
|
+
function Nt(e = {
|
|
3368
3370
|
number: {},
|
|
3369
3371
|
dateTime: {},
|
|
3370
3372
|
pluralRules: {}
|
|
3371
3373
|
}) {
|
|
3372
3374
|
return {
|
|
3373
3375
|
getNumberFormat: K((...e) => new Intl.NumberFormat(...e), {
|
|
3374
|
-
cache:
|
|
3375
|
-
strategy:
|
|
3376
|
+
cache: Mt(e.number),
|
|
3377
|
+
strategy: q.variadic
|
|
3376
3378
|
}),
|
|
3377
3379
|
getDateTimeFormat: K((...e) => new Intl.DateTimeFormat(...e), {
|
|
3378
|
-
cache:
|
|
3379
|
-
strategy:
|
|
3380
|
+
cache: Mt(e.dateTime),
|
|
3381
|
+
strategy: q.variadic
|
|
3380
3382
|
}),
|
|
3381
3383
|
getPluralRules: K((...e) => new Intl.PluralRules(...e), {
|
|
3382
|
-
cache:
|
|
3383
|
-
strategy:
|
|
3384
|
+
cache: Mt(e.pluralRules),
|
|
3385
|
+
strategy: q.variadic
|
|
3384
3386
|
})
|
|
3385
3387
|
};
|
|
3386
3388
|
}
|
|
3387
|
-
var
|
|
3389
|
+
var Pt = class e {
|
|
3388
3390
|
constructor(t, n = e.defaultLocale, r, i) {
|
|
3389
3391
|
if (this.formatterCache = {
|
|
3390
3392
|
number: {},
|
|
@@ -3395,7 +3397,7 @@ var Mt = class e {
|
|
|
3395
3397
|
if (t.length === 1) return t[0].value;
|
|
3396
3398
|
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), []);
|
|
3397
3399
|
return n.length <= 1 ? n[0] || "" : n;
|
|
3398
|
-
}, this.formatToParts = (e) =>
|
|
3400
|
+
}, this.formatToParts = (e) => kt(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") {
|
|
3399
3401
|
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3400
3402
|
let { ...n } = i || {};
|
|
3401
3403
|
this.ast = e.__parse(t, {
|
|
@@ -3404,7 +3406,7 @@ var Mt = class e {
|
|
|
3404
3406
|
});
|
|
3405
3407
|
} else this.ast = t;
|
|
3406
3408
|
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
3407
|
-
this.formats =
|
|
3409
|
+
this.formats = jt(e.formats, r), this.formatters = i && i.formatters || Nt(this.formatterCache);
|
|
3408
3410
|
}
|
|
3409
3411
|
static {
|
|
3410
3412
|
this.memoizedDefaultLocale = null;
|
|
@@ -3420,7 +3422,7 @@ var Mt = class e {
|
|
|
3420
3422
|
};
|
|
3421
3423
|
}
|
|
3422
3424
|
static {
|
|
3423
|
-
this.__parse =
|
|
3425
|
+
this.__parse = St;
|
|
3424
3426
|
}
|
|
3425
3427
|
static {
|
|
3426
3428
|
this.formats = {
|
|
@@ -3480,9 +3482,9 @@ var Mt = class e {
|
|
|
3480
3482
|
};
|
|
3481
3483
|
//#endregion
|
|
3482
3484
|
//#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3483
|
-
function
|
|
3484
|
-
if (Array.isArray(t)) throw new
|
|
3485
|
-
if (typeof t == "object") throw new
|
|
3485
|
+
function Ft(...[e, t, n, r]) {
|
|
3486
|
+
if (Array.isArray(t)) throw new J(Y.INVALID_MESSAGE, void 0);
|
|
3487
|
+
if (typeof t == "object") throw new J(Y.INSUFFICIENT_PATH, void 0);
|
|
3486
3488
|
if (typeof t == "string") {
|
|
3487
3489
|
let e = function(e, t) {
|
|
3488
3490
|
return t || /'[{}<#|']/.test(e) ? void 0 : e;
|
|
@@ -3491,14 +3493,14 @@ function Nt(...[e, t, n, r]) {
|
|
|
3491
3493
|
}
|
|
3492
3494
|
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3493
3495
|
o.getMessageFormat ||= function(e, t) {
|
|
3494
|
-
return
|
|
3496
|
+
return Ce(((...e) => new Pt(e[0], e[1], e[2], {
|
|
3495
3497
|
formatters: t,
|
|
3496
3498
|
...e[3]
|
|
3497
3499
|
})), e.message);
|
|
3498
3500
|
}(i, o);
|
|
3499
3501
|
try {
|
|
3500
3502
|
u = o.getMessageFormat(t, c, function(e, t, n) {
|
|
3501
|
-
let r =
|
|
3503
|
+
let r = Pt.formats.date, i = Pt.formats.time, a = {
|
|
3502
3504
|
...e?.dateTime,
|
|
3503
3505
|
...t?.dateTime
|
|
3504
3506
|
}, o = {
|
|
@@ -3530,25 +3532,25 @@ function Nt(...[e, t, n, r]) {
|
|
|
3530
3532
|
})
|
|
3531
3533
|
} });
|
|
3532
3534
|
} catch {
|
|
3533
|
-
throw new
|
|
3535
|
+
throw new J(Y.INVALID_MESSAGE, void 0);
|
|
3534
3536
|
}
|
|
3535
3537
|
let d = u.format(n);
|
|
3536
|
-
return (0,
|
|
3538
|
+
return (0, Oe.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
3537
3539
|
}
|
|
3538
|
-
|
|
3540
|
+
Ft.raw = !0;
|
|
3539
3541
|
//#endregion
|
|
3540
3542
|
//#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
|
|
3541
|
-
function
|
|
3543
|
+
function It(...e) {
|
|
3542
3544
|
return e.filter(Boolean).join(".");
|
|
3543
3545
|
}
|
|
3544
|
-
function
|
|
3545
|
-
return
|
|
3546
|
+
function Lt(e) {
|
|
3547
|
+
return It(e.namespace, e.key);
|
|
3546
3548
|
}
|
|
3547
|
-
function
|
|
3549
|
+
function Rt(e) {
|
|
3548
3550
|
console.error(e);
|
|
3549
3551
|
}
|
|
3550
|
-
function
|
|
3551
|
-
let i =
|
|
3552
|
+
function zt(e, t, n, r) {
|
|
3553
|
+
let i = It(r, n);
|
|
3552
3554
|
if (!t) throw Error(i);
|
|
3553
3555
|
let a = t;
|
|
3554
3556
|
return n.split(".").forEach(((t) => {
|
|
@@ -3557,21 +3559,21 @@ function Lt(e, t, n, r) {
|
|
|
3557
3559
|
a = n;
|
|
3558
3560
|
})), a;
|
|
3559
3561
|
}
|
|
3560
|
-
function
|
|
3562
|
+
function Bt(e) {
|
|
3561
3563
|
let t = function(e, t, n) {
|
|
3562
3564
|
try {
|
|
3563
3565
|
if (!t) throw Error(void 0);
|
|
3564
|
-
let r = n ?
|
|
3566
|
+
let r = n ? zt(e, t, n) : t;
|
|
3565
3567
|
if (!r) throw Error(n);
|
|
3566
3568
|
return r;
|
|
3567
3569
|
} catch (e) {
|
|
3568
|
-
return new
|
|
3570
|
+
return new J(Y.MISSING_MESSAGE, e.message);
|
|
3569
3571
|
}
|
|
3570
3572
|
}(e.locale, e.messages, e.namespace);
|
|
3571
|
-
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r =
|
|
3572
|
-
let l = a instanceof
|
|
3573
|
+
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = Lt, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3574
|
+
let l = a instanceof J;
|
|
3573
3575
|
function u(e, t, n, i) {
|
|
3574
|
-
let a = new
|
|
3576
|
+
let a = new J(t, n);
|
|
3575
3577
|
return s(a), i ?? r({
|
|
3576
3578
|
error: a,
|
|
3577
3579
|
key: e,
|
|
@@ -3590,20 +3592,20 @@ function Rt(e) {
|
|
|
3590
3592
|
} else {
|
|
3591
3593
|
let e = a;
|
|
3592
3594
|
try {
|
|
3593
|
-
g =
|
|
3595
|
+
g = zt(i, e, d, o);
|
|
3594
3596
|
} catch (e) {
|
|
3595
|
-
if (!h) return u(d,
|
|
3597
|
+
if (!h) return u(d, Y.MISSING_MESSAGE, e.message, h);
|
|
3596
3598
|
g = h;
|
|
3597
3599
|
}
|
|
3598
3600
|
}
|
|
3599
3601
|
try {
|
|
3600
|
-
return
|
|
3602
|
+
return Ft(It(o, d), g, f && function(e) {
|
|
3601
3603
|
let t = {};
|
|
3602
3604
|
return Object.keys(e).forEach(((n) => {
|
|
3603
3605
|
let r = 0, i = e[n], a;
|
|
3604
3606
|
a = typeof i == "function" ? (e) => {
|
|
3605
3607
|
let t = i(e);
|
|
3606
|
-
return (0,
|
|
3608
|
+
return (0, Oe.isValidElement)(t) ? (0, Oe.cloneElement)(t, { key: n + r++ }) : t;
|
|
3607
3609
|
} : i, t[n] = a;
|
|
3608
3610
|
})), t;
|
|
3609
3611
|
}(f), {
|
|
@@ -3616,12 +3618,12 @@ function Rt(e) {
|
|
|
3616
3618
|
});
|
|
3617
3619
|
} catch (e) {
|
|
3618
3620
|
let t, n;
|
|
3619
|
-
return e instanceof
|
|
3621
|
+
return e instanceof J ? (t = e.code, n = e.originalMessage) : (t = Y.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
|
|
3620
3622
|
}
|
|
3621
3623
|
}
|
|
3622
3624
|
function f(e, t, n, r) {
|
|
3623
3625
|
let i = d(e, t, n, r);
|
|
3624
|
-
return typeof i == "string" ? i : u(e,
|
|
3626
|
+
return typeof i == "string" ? i : u(e, Y.INVALID_MESSAGE, void 0);
|
|
3625
3627
|
}
|
|
3626
3628
|
return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
|
|
3627
3629
|
if (l) return s(a), r({
|
|
@@ -3631,14 +3633,14 @@ function Rt(e) {
|
|
|
3631
3633
|
});
|
|
3632
3634
|
let t = a;
|
|
3633
3635
|
try {
|
|
3634
|
-
return
|
|
3636
|
+
return zt(i, t, e, o);
|
|
3635
3637
|
} catch (t) {
|
|
3636
|
-
return u(e,
|
|
3638
|
+
return u(e, Y.MISSING_MESSAGE, t.message);
|
|
3637
3639
|
}
|
|
3638
3640
|
}, f.has = (e) => {
|
|
3639
3641
|
if (l) return !1;
|
|
3640
3642
|
try {
|
|
3641
|
-
return
|
|
3643
|
+
return zt(i, a, e, o), !0;
|
|
3642
3644
|
} catch {
|
|
3643
3645
|
return !1;
|
|
3644
3646
|
}
|
|
@@ -3648,16 +3650,16 @@ function Rt(e) {
|
|
|
3648
3650
|
messagesOrError: t
|
|
3649
3651
|
});
|
|
3650
3652
|
}
|
|
3651
|
-
function
|
|
3653
|
+
function Vt(e, t) {
|
|
3652
3654
|
return e === t ? void 0 : e.slice((t + ".").length);
|
|
3653
3655
|
}
|
|
3654
|
-
var
|
|
3655
|
-
7 *
|
|
3656
|
+
var Ht = 86400;
|
|
3657
|
+
7 * Ht, 365 * Ht;
|
|
3656
3658
|
//#endregion
|
|
3657
3659
|
//#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/core.js
|
|
3658
|
-
function
|
|
3660
|
+
function Ut({ _cache: e = Se(), _formatters: t = Te(e), getMessageFallback: n = Lt, messages: r, namespace: i, onError: a = Rt, ...o }) {
|
|
3659
3661
|
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3660
|
-
return e = e[r], t =
|
|
3662
|
+
return e = e[r], t = Vt(t, r), Bt({
|
|
3661
3663
|
...n,
|
|
3662
3664
|
messages: e,
|
|
3663
3665
|
namespace: t
|
|
@@ -3674,18 +3676,18 @@ function Vt({ _cache: e = xe(), _formatters: t = Ce(e), getMessageFallback: n =
|
|
|
3674
3676
|
}
|
|
3675
3677
|
//#endregion
|
|
3676
3678
|
//#region src/i18n/index.ts
|
|
3677
|
-
var
|
|
3679
|
+
var Wt = "en", Gt = (e) => Ut({
|
|
3678
3680
|
locale: e,
|
|
3679
3681
|
messages: z(e),
|
|
3680
3682
|
namespace: "folio"
|
|
3681
|
-
}),
|
|
3682
|
-
b(
|
|
3683
|
+
}), Kt = Symbol("folioTranslator"), qt = r(() => Gt("en")), Jt = (e = "en") => {
|
|
3684
|
+
b(Kt, r(() => Gt(D(e))));
|
|
3683
3685
|
}, Z = () => {
|
|
3684
|
-
let e = d(
|
|
3686
|
+
let e = d(Kt, qt);
|
|
3685
3687
|
return { t: (t, n) => e.value(t, n) };
|
|
3686
|
-
},
|
|
3687
|
-
e.provide(
|
|
3688
|
-
} },
|
|
3688
|
+
}, Yt = { install(e, t = "en") {
|
|
3689
|
+
e.provide(Kt, r(() => Gt(D(t))));
|
|
3690
|
+
} }, Xt = ["disabled"], Zt = "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", Qt = /* @__PURE__ */ u({
|
|
3689
3691
|
__name: "Button",
|
|
3690
3692
|
props: {
|
|
3691
3693
|
variant: { default: "default" },
|
|
@@ -3714,7 +3716,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3714
3716
|
xs: "h-7 rounded-md px-2 text-xs",
|
|
3715
3717
|
"icon-xs": "h-7 w-7"
|
|
3716
3718
|
}, a = r(() => [
|
|
3717
|
-
|
|
3719
|
+
Zt,
|
|
3718
3720
|
n[t.variant],
|
|
3719
3721
|
i[t.size],
|
|
3720
3722
|
t.className
|
|
@@ -3724,9 +3726,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3724
3726
|
class: h(a.value),
|
|
3725
3727
|
disabled: e.disabled,
|
|
3726
3728
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
3727
|
-
}, [w(t.$slots, "default")], 10,
|
|
3729
|
+
}, [w(t.$slots, "default")], 10, Xt));
|
|
3728
3730
|
}
|
|
3729
|
-
}),
|
|
3731
|
+
}), $t = ["checked"], en = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
3730
3732
|
__name: "Checkbox",
|
|
3731
3733
|
props: {
|
|
3732
3734
|
checked: { type: Boolean },
|
|
@@ -3743,39 +3745,39 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3743
3745
|
class: h(["folio-default-checkbox", e.className]),
|
|
3744
3746
|
checked: e.checked,
|
|
3745
3747
|
onChange: r
|
|
3746
|
-
}, null, 42,
|
|
3748
|
+
}, null, 42, $t));
|
|
3747
3749
|
}
|
|
3748
|
-
}), [["__scopeId", "data-v-2e4f5470"]]),
|
|
3750
|
+
}), [["__scopeId", "data-v-2e4f5470"]]), tn = [
|
|
3749
3751
|
"disabled",
|
|
3750
3752
|
"title",
|
|
3751
3753
|
"aria-label"
|
|
3752
|
-
],
|
|
3754
|
+
], nn = [
|
|
3753
3755
|
"disabled",
|
|
3754
3756
|
"title",
|
|
3755
3757
|
"aria-label",
|
|
3756
3758
|
"aria-expanded"
|
|
3757
|
-
],
|
|
3759
|
+
], rn = [
|
|
3758
3760
|
"disabled",
|
|
3759
3761
|
"title",
|
|
3760
3762
|
"aria-label",
|
|
3761
3763
|
"aria-expanded"
|
|
3762
|
-
],
|
|
3764
|
+
], an = { class: "docx-color-picker__button-stack" }, on = ["aria-label"], sn = {
|
|
3763
3765
|
key: 0,
|
|
3764
3766
|
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--none"
|
|
3765
|
-
},
|
|
3767
|
+
}, cn = {
|
|
3766
3768
|
key: 1,
|
|
3767
3769
|
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--auto"
|
|
3768
|
-
},
|
|
3770
|
+
}, ln = { class: "docx-color-picker__section-label" }, un = { class: "docx-color-picker__grid" }, dn = [
|
|
3769
3771
|
"title",
|
|
3770
3772
|
"aria-label",
|
|
3771
3773
|
"aria-selected",
|
|
3772
3774
|
"onClick"
|
|
3773
|
-
],
|
|
3775
|
+
], fn = { class: "docx-color-picker__section-label" }, pn = { class: "docx-color-picker__grid" }, mn = [
|
|
3774
3776
|
"title",
|
|
3775
3777
|
"aria-label",
|
|
3776
3778
|
"aria-selected",
|
|
3777
3779
|
"onClick"
|
|
3778
|
-
],
|
|
3780
|
+
], hn = { class: "docx-color-picker__section-label" }, gn = { class: "docx-color-picker__custom" }, _n = ["onKeydown"], vn = ["disabled"], yn = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
3779
3781
|
__name: "ColorPicker",
|
|
3780
3782
|
props: {
|
|
3781
3783
|
mode: {},
|
|
@@ -3886,35 +3888,35 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3886
3888
|
left: `${t.left}px`
|
|
3887
3889
|
};
|
|
3888
3890
|
}
|
|
3889
|
-
function
|
|
3891
|
+
function le() {
|
|
3890
3892
|
i.disabled || (k.value || ce(), k.value = !k.value);
|
|
3891
3893
|
}
|
|
3892
|
-
function
|
|
3894
|
+
function H(e, t = !0) {
|
|
3893
3895
|
t && (R.value = e), u("change", e), k.value = !1;
|
|
3894
3896
|
}
|
|
3895
|
-
function
|
|
3897
|
+
function U() {
|
|
3896
3898
|
i.disabled || u("change", R.value);
|
|
3897
3899
|
}
|
|
3898
|
-
function
|
|
3900
|
+
function ue(e) {
|
|
3899
3901
|
if (i.mode === "highlight") {
|
|
3900
|
-
|
|
3902
|
+
H(e.hex);
|
|
3901
3903
|
return;
|
|
3902
3904
|
}
|
|
3903
3905
|
let t = {
|
|
3904
3906
|
themeColor: e.themeSlot,
|
|
3905
3907
|
rgb: e.hex
|
|
3906
3908
|
};
|
|
3907
|
-
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade),
|
|
3909
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), H(t);
|
|
3908
3910
|
}
|
|
3909
|
-
function
|
|
3910
|
-
|
|
3911
|
+
function de(e) {
|
|
3912
|
+
H(i.mode === "highlight" ? e : { rgb: e });
|
|
3911
3913
|
}
|
|
3912
|
-
function
|
|
3913
|
-
|
|
3914
|
+
function W() {
|
|
3915
|
+
H(i.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3914
3916
|
}
|
|
3915
|
-
function
|
|
3917
|
+
function K() {
|
|
3916
3918
|
let e = A.value.replace(/^#/, "").toUpperCase();
|
|
3917
|
-
m(e) && (
|
|
3919
|
+
m(e) && (H(i.mode === "highlight" ? e : { rgb: e }), A.value = "");
|
|
3918
3920
|
}
|
|
3919
3921
|
function fe(e) {
|
|
3920
3922
|
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
@@ -3939,14 +3941,14 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3939
3941
|
title: e.title ?? V.value,
|
|
3940
3942
|
"aria-label": e.title ?? V.value,
|
|
3941
3943
|
onMousedown: r[0] ||= L(() => {}, ["prevent"]),
|
|
3942
|
-
onClick:
|
|
3944
|
+
onClick: U
|
|
3943
3945
|
}, [l(G, {
|
|
3944
3946
|
name: oe.value,
|
|
3945
3947
|
size: 18
|
|
3946
3948
|
}, null, 8, ["name"]), s("span", {
|
|
3947
3949
|
class: h(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
|
|
3948
3950
|
style: g({ background: B.value === "transparent" ? "#fff" : B.value })
|
|
3949
|
-
}, null, 6)], 40,
|
|
3951
|
+
}, null, 6)], 40, tn), s("button", {
|
|
3950
3952
|
type: "button",
|
|
3951
3953
|
class: h(["docx-color-picker__arrow", { "is-open": k.value }]),
|
|
3952
3954
|
disabled: e.disabled,
|
|
@@ -3955,11 +3957,11 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3955
3957
|
"aria-haspopup": "true",
|
|
3956
3958
|
"aria-expanded": k.value,
|
|
3957
3959
|
onMousedown: r[1] ||= L(() => {}, ["prevent"]),
|
|
3958
|
-
onClick:
|
|
3960
|
+
onClick: le
|
|
3959
3961
|
}, [l(G, {
|
|
3960
3962
|
name: "arrow_drop_down",
|
|
3961
3963
|
size: 18
|
|
3962
|
-
})], 42,
|
|
3964
|
+
})], 42, nn)], 2)) : (y(), o("button", {
|
|
3963
3965
|
key: 1,
|
|
3964
3966
|
type: "button",
|
|
3965
3967
|
class: h(["docx-color-picker__button", { "is-open": k.value }]),
|
|
@@ -3969,8 +3971,8 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3969
3971
|
"aria-haspopup": "true",
|
|
3970
3972
|
"aria-expanded": k.value,
|
|
3971
3973
|
onMousedown: r[2] ||= L(() => {}, ["prevent"]),
|
|
3972
|
-
onClick:
|
|
3973
|
-
}, [s("span",
|
|
3974
|
+
onClick: le
|
|
3975
|
+
}, [s("span", an, [l(G, {
|
|
3974
3976
|
name: oe.value,
|
|
3975
3977
|
size: 18
|
|
3976
3978
|
}, null, 8, ["name"]), s("span", {
|
|
@@ -3979,7 +3981,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3979
3981
|
}, null, 6)]), l(G, {
|
|
3980
3982
|
name: "arrow_drop_down",
|
|
3981
3983
|
size: 14
|
|
3982
|
-
})], 42,
|
|
3984
|
+
})], 42, rn)), k.value && !e.disabled ? (y(), o("div", {
|
|
3983
3985
|
key: 2,
|
|
3984
3986
|
ref_key: "panelRef",
|
|
3985
3987
|
ref: P,
|
|
@@ -3993,11 +3995,11 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3993
3995
|
type: "button",
|
|
3994
3996
|
class: "docx-color-picker__auto",
|
|
3995
3997
|
onMousedown: r[3] ||= L(() => {}, ["prevent"]),
|
|
3996
|
-
onClick:
|
|
3997
|
-
}, [e.mode === "highlight" ? (y(), o("span",
|
|
3998
|
+
onClick: W
|
|
3999
|
+
}, [e.mode === "highlight" ? (y(), o("span", sn, [...r[10] ||= [s("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (y(), o("span", cn)), c(" " + T(e.autoLabel ?? (e.mode === "highlight" ? O(d)("colorPicker.noColor") : O(d)("colorPicker.automatic"))), 1)], 32),
|
|
3998
4000
|
r[12] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
3999
|
-
s("div",
|
|
4000
|
-
s("div",
|
|
4001
|
+
s("div", ln, T(O(d)("colorPicker.themeColors")), 1),
|
|
4002
|
+
s("div", un, [(y(!0), o(t, null, C(ie.value, (t) => (y(), o("button", {
|
|
4001
4003
|
key: t.key,
|
|
4002
4004
|
type: "button",
|
|
4003
4005
|
class: h(["docx-color-picker__cell", { "is-selected": x(e.value, t.hex) }]),
|
|
@@ -4006,11 +4008,11 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4006
4008
|
"aria-label": t.label,
|
|
4007
4009
|
"aria-selected": x(e.value, t.hex),
|
|
4008
4010
|
onMousedown: r[4] ||= L(() => {}, ["prevent"]),
|
|
4009
|
-
onClick: (e) =>
|
|
4010
|
-
}, null, 46,
|
|
4011
|
+
onClick: (e) => ue(t)
|
|
4012
|
+
}, null, 46, dn))), 128))]),
|
|
4011
4013
|
r[13] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4012
|
-
s("div",
|
|
4013
|
-
s("div",
|
|
4014
|
+
s("div", fn, T(O(d)("colorPicker.standardColors")), 1),
|
|
4015
|
+
s("div", pn, [(y(), o(t, null, C(f, (t) => s("button", {
|
|
4014
4016
|
key: t.hex,
|
|
4015
4017
|
type: "button",
|
|
4016
4018
|
class: h(["docx-color-picker__cell", { "is-selected": x(e.value, t.hex) }]),
|
|
@@ -4019,11 +4021,11 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4019
4021
|
"aria-label": O(d)(t.nameKey),
|
|
4020
4022
|
"aria-selected": x(e.value, t.hex),
|
|
4021
4023
|
onMousedown: r[5] ||= L(() => {}, ["prevent"]),
|
|
4022
|
-
onClick: (e) =>
|
|
4023
|
-
}, null, 46,
|
|
4024
|
+
onClick: (e) => de(t.hex)
|
|
4025
|
+
}, null, 46, mn)), 64))]),
|
|
4024
4026
|
r[14] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4025
|
-
s("div",
|
|
4026
|
-
s("div",
|
|
4027
|
+
s("div", hn, T(O(d)("colorPicker.customColor")), 1),
|
|
4028
|
+
s("div", gn, [
|
|
4027
4029
|
r[11] ||= s("span", { class: "docx-color-picker__hash" }, "#", -1),
|
|
4028
4030
|
F(s("input", {
|
|
4029
4031
|
"onUpdate:modelValue": r[6] ||= (e) => A.value = e,
|
|
@@ -4033,20 +4035,20 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4033
4035
|
maxlength: "6",
|
|
4034
4036
|
"aria-label": "Custom hex color",
|
|
4035
4037
|
onInput: r[7] ||= (e) => A.value = A.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
|
|
4036
|
-
onKeydown: I(L(
|
|
4038
|
+
onKeydown: I(L(K, ["prevent"]), ["enter"]),
|
|
4037
4039
|
onMousedown: r[8] ||= L(() => {}, ["stop"])
|
|
4038
|
-
}, null, 40,
|
|
4040
|
+
}, null, 40, _n), [[M, A.value]]),
|
|
4039
4041
|
s("button", {
|
|
4040
4042
|
type: "button",
|
|
4041
4043
|
class: "docx-color-picker__apply-btn",
|
|
4042
4044
|
disabled: !m(A.value),
|
|
4043
4045
|
onMousedown: r[9] ||= L(() => {}, ["prevent"]),
|
|
4044
|
-
onClick:
|
|
4045
|
-
}, T(O(d)("common.apply")), 41,
|
|
4046
|
+
onClick: K
|
|
4047
|
+
}, T(O(d)("common.apply")), 41, vn)
|
|
4046
4048
|
])
|
|
4047
|
-
], 44,
|
|
4049
|
+
], 44, on)) : a("", !0)], 6));
|
|
4048
4050
|
}
|
|
4049
|
-
}), [["__scopeId", "data-v-ea554ffa"]]),
|
|
4051
|
+
}), [["__scopeId", "data-v-ea554ffa"]]), bn = ["value", "autofocus"], xn = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4050
4052
|
__name: "DatePickerPopover",
|
|
4051
4053
|
props: {
|
|
4052
4054
|
value: {},
|
|
@@ -4059,7 +4061,11 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4059
4061
|
setup(e, { emit: t }) {
|
|
4060
4062
|
let n = e, i = t;
|
|
4061
4063
|
function a(e) {
|
|
4062
|
-
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ?
|
|
4064
|
+
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ? ie({
|
|
4065
|
+
text: e,
|
|
4066
|
+
units: "codeUnits",
|
|
4067
|
+
end: 10
|
|
4068
|
+
}) : e;
|
|
4063
4069
|
}
|
|
4064
4070
|
let s = r(() => a(n.value));
|
|
4065
4071
|
function c(e) {
|
|
@@ -4071,9 +4077,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4071
4077
|
value: s.value,
|
|
4072
4078
|
autofocus: e.defaultOpen,
|
|
4073
4079
|
onChange: c
|
|
4074
|
-
}, null, 40,
|
|
4080
|
+
}, null, 40, bn));
|
|
4075
4081
|
}
|
|
4076
|
-
}), [["__scopeId", "data-v-
|
|
4082
|
+
}), [["__scopeId", "data-v-61260968"]]), Sn = ["aria-label"], Cn = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4077
4083
|
inheritAttrs: !1,
|
|
4078
4084
|
__name: "Dialog",
|
|
4079
4085
|
props: {
|
|
@@ -4106,9 +4112,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4106
4112
|
}, t.$attrs, {
|
|
4107
4113
|
onKeydown: I(l, ["escape"]),
|
|
4108
4114
|
onMousedown: r[0] ||= L(() => {}, ["stop"])
|
|
4109
|
-
}), [w(t.$slots, "default", {}, void 0, !0)], 16,
|
|
4115
|
+
}), [w(t.$slots, "default", {}, void 0, !0)], 16, Sn)], 34)) : a("", !0)]));
|
|
4110
4116
|
}
|
|
4111
|
-
}), [["__scopeId", "data-v-76309dbc"]]),
|
|
4117
|
+
}), [["__scopeId", "data-v-76309dbc"]]), wn = ["value"], Tn = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4112
4118
|
__name: "Input",
|
|
4113
4119
|
props: {
|
|
4114
4120
|
modelValue: {},
|
|
@@ -4131,9 +4137,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4131
4137
|
class: h(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
|
|
4132
4138
|
value: e.modelValue,
|
|
4133
4139
|
onInput: i
|
|
4134
|
-
}, null, 42,
|
|
4140
|
+
}, null, 42, wn));
|
|
4135
4141
|
}
|
|
4136
|
-
}), [["__scopeId", "data-v-a34b139d"]]),
|
|
4142
|
+
}), [["__scopeId", "data-v-a34b139d"]]), En = 4, Dn = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4137
4143
|
__name: "Popover",
|
|
4138
4144
|
props: {
|
|
4139
4145
|
open: { type: Boolean },
|
|
@@ -4152,7 +4158,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4152
4158
|
let e = i.value;
|
|
4153
4159
|
if (!e) return;
|
|
4154
4160
|
let t = e.getBoundingClientRect(), r = { position: "fixed" };
|
|
4155
|
-
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top +
|
|
4161
|
+
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + En)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + En)}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;
|
|
4156
4162
|
}
|
|
4157
4163
|
function u() {
|
|
4158
4164
|
r("update:open", !n.open), n.open && r("close");
|
|
@@ -4206,19 +4212,19 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4206
4212
|
onMousedown: n[0] ||= L(() => {}, ["stop"])
|
|
4207
4213
|
}, [w(t.$slots, "panel", {}, void 0, !0)], 38)) : a("", !0)], 512));
|
|
4208
4214
|
}
|
|
4209
|
-
}), [["__scopeId", "data-v-f138860e"]]),
|
|
4215
|
+
}), [["__scopeId", "data-v-f138860e"]]), On = ["disabled", "onClick"], kn = {
|
|
4210
4216
|
key: 0,
|
|
4211
4217
|
class: "docx-menu-dropdown__separator"
|
|
4212
|
-
},
|
|
4218
|
+
}, An = ["onMouseenter", "onMouseleave"], jn = ["disabled", "onClick"], Mn = { class: "docx-menu-dropdown__label" }, Nn = {
|
|
4213
4219
|
key: 1,
|
|
4214
4220
|
class: "docx-menu-dropdown__shortcut"
|
|
4215
|
-
},
|
|
4221
|
+
}, Pn = {
|
|
4216
4222
|
key: 2,
|
|
4217
4223
|
class: "docx-menu-dropdown__chevron"
|
|
4218
|
-
},
|
|
4224
|
+
}, Fn = {
|
|
4219
4225
|
key: 0,
|
|
4220
4226
|
class: "docx-menu-dropdown__submenu"
|
|
4221
|
-
},
|
|
4227
|
+
}, In = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4222
4228
|
__name: "MenuDropdown",
|
|
4223
4229
|
props: {
|
|
4224
4230
|
label: {},
|
|
@@ -4240,7 +4246,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4240
4246
|
function f(e) {
|
|
4241
4247
|
e.disabled || e.submenu || (e.onClick?.(), d());
|
|
4242
4248
|
}
|
|
4243
|
-
return (p, m) => (y(), i(
|
|
4249
|
+
return (p, m) => (y(), i(Dn, {
|
|
4244
4250
|
open: r.value,
|
|
4245
4251
|
"onUpdate:open": m[2] ||= (e) => r.value = e,
|
|
4246
4252
|
onClose: d
|
|
@@ -4255,11 +4261,11 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4255
4261
|
key: 0,
|
|
4256
4262
|
name: "arrow_drop_down",
|
|
4257
4263
|
size: 16
|
|
4258
|
-
})) : a("", !0)], 42,
|
|
4264
|
+
})) : a("", !0)], 42, On)]),
|
|
4259
4265
|
panel: P(() => [s("div", {
|
|
4260
4266
|
class: "docx-menu-dropdown__menu",
|
|
4261
4267
|
onMousedown: m[1] ||= L(() => {}, ["prevent"])
|
|
4262
|
-
}, [(y(!0), o(t, null, C(e.items, (e, r) => (y(), o(t, { key: r }, [n(e) ? (y(), o("div",
|
|
4268
|
+
}, [(y(!0), o(t, null, C(e.items, (e, r) => (y(), o(t, { key: r }, [n(e) ? (y(), o("div", kn)) : (y(), o("div", {
|
|
4263
4269
|
key: 1,
|
|
4264
4270
|
class: "docx-menu-dropdown__wrap",
|
|
4265
4271
|
onMouseenter: (t) => e.submenu ? u.value = r : void 0,
|
|
@@ -4275,20 +4281,20 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4275
4281
|
name: e.icon,
|
|
4276
4282
|
size: 18
|
|
4277
4283
|
}, null, 8, ["name"])) : a("", !0),
|
|
4278
|
-
s("span",
|
|
4279
|
-
e.shortcut ? (y(), o("span",
|
|
4280
|
-
e.submenu ? (y(), o("span",
|
|
4284
|
+
s("span", Mn, T(e.label), 1),
|
|
4285
|
+
e.shortcut ? (y(), o("span", Nn, T(e.shortcut), 1)) : a("", !0),
|
|
4286
|
+
e.submenu ? (y(), o("span", Pn, [l(G, {
|
|
4281
4287
|
name: "keyboard_arrow_right",
|
|
4282
4288
|
size: 16
|
|
4283
4289
|
})])) : a("", !0)
|
|
4284
|
-
], 10,
|
|
4290
|
+
], 10, jn), e.submenu && u.value === r ? (y(), o("div", Fn, [w(p.$slots, "submenu", {
|
|
4285
4291
|
item: e,
|
|
4286
4292
|
closeMenu: d
|
|
4287
|
-
}, void 0, !0)])) : a("", !0)], 40,
|
|
4293
|
+
}, void 0, !0)])) : a("", !0)], 40, An))], 64))), 128))], 32)]),
|
|
4288
4294
|
_: 3
|
|
4289
4295
|
}, 8, ["open"]));
|
|
4290
4296
|
}
|
|
4291
|
-
}), [["__scopeId", "data-v-3a0c2cb3"]]),
|
|
4297
|
+
}), [["__scopeId", "data-v-3a0c2cb3"]]), Ln = ["aria-label"], Rn = [
|
|
4292
4298
|
"data-depth",
|
|
4293
4299
|
"aria-current",
|
|
4294
4300
|
"aria-label",
|
|
@@ -4296,13 +4302,13 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4296
4302
|
"tabindex",
|
|
4297
4303
|
"onClick",
|
|
4298
4304
|
"onFocus"
|
|
4299
|
-
],
|
|
4305
|
+
], zn = {
|
|
4300
4306
|
"aria-hidden": "true",
|
|
4301
4307
|
class: "folio-outline-tick-label"
|
|
4302
|
-
},
|
|
4308
|
+
}, Bn = {
|
|
4303
4309
|
key: 1,
|
|
4304
4310
|
class: "folio-outline-item-label"
|
|
4305
|
-
},
|
|
4311
|
+
}, Vn = 12, Hn = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4306
4312
|
__name: "OutlineRail",
|
|
4307
4313
|
props: {
|
|
4308
4314
|
items: {},
|
|
@@ -4342,8 +4348,8 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4342
4348
|
}, { flush: "post" }), _(() => v?.disconnect());
|
|
4343
4349
|
let b = r(() => {
|
|
4344
4350
|
if (n.presentation !== "rail" || c.value === 0) return [];
|
|
4345
|
-
let e = Math.max(0, c.value -
|
|
4346
|
-
if (t *
|
|
4351
|
+
let e = Math.max(0, c.value - Vn), t = n.items.length;
|
|
4352
|
+
if (t * Vn > c.value) {
|
|
4347
4353
|
let r = t > 1 ? e / (t - 1) : 0;
|
|
4348
4354
|
return n.items.map((e, t) => t * r);
|
|
4349
4355
|
}
|
|
@@ -4351,9 +4357,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4351
4357
|
let o = r ? n.resolvePct?.(i.id, r) ?? null : null;
|
|
4352
4358
|
return (o === null ? a / Math.max(1, t - 1) : o / 100) * e;
|
|
4353
4359
|
});
|
|
4354
|
-
for (let e = 1; e < i.length; e++) i[e] = Math.max(i[e] ?? 0, (i[e - 1] ?? 0) +
|
|
4360
|
+
for (let e = 1; e < i.length; e++) i[e] = Math.max(i[e] ?? 0, (i[e - 1] ?? 0) + Vn);
|
|
4355
4361
|
for (let t = i.length - 1; t >= 0; t--) {
|
|
4356
|
-
let n = t === i.length - 1 ? e : (i[t + 1] ?? e) -
|
|
4362
|
+
let n = t === i.length - 1 ? e : (i[t + 1] ?? e) - Vn;
|
|
4357
4363
|
i[t] = Math.min(i[t] ?? 0, n);
|
|
4358
4364
|
}
|
|
4359
4365
|
return i;
|
|
@@ -4407,13 +4413,13 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4407
4413
|
}, [e.presentation === "rail" ? (y(), o(t, { key: 0 }, [r[1] ||= s("span", {
|
|
4408
4414
|
"aria-hidden": "true",
|
|
4409
4415
|
class: "folio-outline-tick-mark"
|
|
4410
|
-
}, null, -1), s("span",
|
|
4416
|
+
}, null, -1), s("span", zn, T(n.label), 1)], 64)) : (y(), o("span", Bn, T(n.label), 1))], 42, Rn)], 6))), 128))], 42, Ln)) : a("", !0);
|
|
4411
4417
|
}
|
|
4412
|
-
}), [["__scopeId", "data-v-962a19e0"]]),
|
|
4418
|
+
}), [["__scopeId", "data-v-962a19e0"]]), Un = ["disabled", "value"], Wn = {
|
|
4413
4419
|
key: 0,
|
|
4414
4420
|
disabled: "",
|
|
4415
4421
|
value: ""
|
|
4416
|
-
},
|
|
4422
|
+
}, Gn = ["disabled", "value"], Kn = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4417
4423
|
__name: "Select",
|
|
4418
4424
|
props: {
|
|
4419
4425
|
value: {},
|
|
@@ -4433,72 +4439,81 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4433
4439
|
disabled: e.disabled,
|
|
4434
4440
|
value: e.value,
|
|
4435
4441
|
onChange: i
|
|
4436
|
-
}, [e.placeholder && e.value === void 0 ? (y(), o("option",
|
|
4442
|
+
}, [e.placeholder && e.value === void 0 ? (y(), o("option", Wn, T(e.placeholder), 1)) : a("", !0), (y(!0), o(t, null, C(e.items, (e) => (y(), o("option", {
|
|
4437
4443
|
key: e.value,
|
|
4438
4444
|
disabled: e.disabled,
|
|
4439
4445
|
value: e.value
|
|
4440
|
-
}, T(e.label), 9,
|
|
4446
|
+
}, T(e.label), 9, Gn))), 128))], 42, Un));
|
|
4441
4447
|
}
|
|
4442
|
-
}), [["__scopeId", "data-v-ce79245b"]]),
|
|
4443
|
-
Button:
|
|
4444
|
-
Dialog:
|
|
4445
|
-
Select:
|
|
4446
|
-
Menu:
|
|
4447
|
-
Popover:
|
|
4448
|
-
Input:
|
|
4449
|
-
Checkbox:
|
|
4450
|
-
ColorPicker:
|
|
4451
|
-
DatePickerPopover:
|
|
4452
|
-
OutlineRail:
|
|
4453
|
-
},
|
|
4454
|
-
function
|
|
4448
|
+
}), [["__scopeId", "data-v-ce79245b"]]), qn = {
|
|
4449
|
+
Button: Qt,
|
|
4450
|
+
Dialog: Cn,
|
|
4451
|
+
Select: Kn,
|
|
4452
|
+
Menu: In,
|
|
4453
|
+
Popover: Dn,
|
|
4454
|
+
Input: Tn,
|
|
4455
|
+
Checkbox: en,
|
|
4456
|
+
ColorPicker: yn,
|
|
4457
|
+
DatePickerPopover: xn,
|
|
4458
|
+
OutlineRail: Hn
|
|
4459
|
+
}, Jn = Symbol("folio-ui-components");
|
|
4460
|
+
function Yn(e) {
|
|
4455
4461
|
return e ? {
|
|
4456
|
-
...
|
|
4462
|
+
...qn,
|
|
4457
4463
|
...e
|
|
4458
|
-
} :
|
|
4464
|
+
} : qn;
|
|
4459
4465
|
}
|
|
4460
|
-
function
|
|
4461
|
-
b(
|
|
4466
|
+
function Xn(e) {
|
|
4467
|
+
b(Jn, Yn(e));
|
|
4462
4468
|
}
|
|
4463
4469
|
function Q() {
|
|
4464
|
-
return d(
|
|
4470
|
+
return d(Jn, qn);
|
|
4465
4471
|
}
|
|
4466
|
-
var
|
|
4472
|
+
var Zn = u({
|
|
4467
4473
|
name: "FolioUIProvider",
|
|
4468
4474
|
props: { components: {
|
|
4469
4475
|
type: Object,
|
|
4470
4476
|
default: void 0
|
|
4471
4477
|
} },
|
|
4472
4478
|
setup(e, { slots: t }) {
|
|
4473
|
-
return
|
|
4479
|
+
return Xn(e.components), () => t.default?.();
|
|
4474
4480
|
}
|
|
4475
|
-
}),
|
|
4481
|
+
}), Qn = { class: "find-replace-dialog__header" }, $n = { class: "find-replace-dialog__title" }, er = { class: "find-replace-dialog__body" }, tr = { class: "find-replace-dialog__row" }, nr = { class: "find-replace-dialog__count" }, rr = { class: "find-replace-dialog__options" }, ir = {
|
|
4476
4482
|
key: 0,
|
|
4477
4483
|
class: "find-replace-dialog__row"
|
|
4478
|
-
},
|
|
4484
|
+
}, ar = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4479
4485
|
__name: "FindReplaceDialog",
|
|
4480
4486
|
props: {
|
|
4481
4487
|
isOpen: { type: Boolean },
|
|
4482
4488
|
view: {},
|
|
4483
|
-
|
|
4489
|
+
markupView: { default: "all-markup" },
|
|
4490
|
+
readOnly: {
|
|
4491
|
+
type: Boolean,
|
|
4492
|
+
default: !1
|
|
4493
|
+
},
|
|
4494
|
+
onReadonlyEditAttempt: {},
|
|
4495
|
+
scrollVisiblePositionIntoView: {}
|
|
4484
4496
|
},
|
|
4485
4497
|
emits: ["close"],
|
|
4486
4498
|
setup(t, { emit: n }) {
|
|
4487
|
-
let { t:
|
|
4488
|
-
editorView: E(
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4499
|
+
let { t: u } = Z(), { Button: d, Input: p, Checkbox: g } = Q(), _ = t, v = n, b = S(null), x = S(!1), C = r(() => _.readOnly || ae(_.markupView) !== null || _.view?.editable === !1), { searchText: w, replaceText: D, options: k, matches: A, currentIndex: j, performSearch: M, findNext: F, findPrevious: R, replaceCurrent: z, replaceAll: ee, clear: te } = e({
|
|
4500
|
+
editorView: E(_, "view"),
|
|
4501
|
+
markupView: E(_, "markupView"),
|
|
4502
|
+
readOnly: E(_, "readOnly"),
|
|
4503
|
+
onReadonlyEditAttempt: (e) => _.onReadonlyEditAttempt?.(e),
|
|
4504
|
+
scrollVisiblePositionIntoView: (e) => _.scrollVisiblePositionIntoView?.(e)
|
|
4505
|
+
}), ne = E(k, "matchCase"), re = E(k, "matchWholeWord"), ie = r(() => w.value.trim() ? A.value.length === 0 ? u("findReplace.noResults") : j.value < 0 ? u("dialogs.findReplace.matchesFound", { total: A.value.length }) : u("findReplace.matchCounter", {
|
|
4506
|
+
current: j.value + 1,
|
|
4507
|
+
total: A.value.length
|
|
4493
4508
|
}) : "");
|
|
4494
|
-
N(() =>
|
|
4495
|
-
e ? (await m(),
|
|
4509
|
+
N(() => _.isOpen, async (e) => {
|
|
4510
|
+
e ? (await m(), b.value?.focus(), b.value?.select(), M()) : te();
|
|
4496
4511
|
});
|
|
4497
|
-
function
|
|
4498
|
-
|
|
4512
|
+
function B() {
|
|
4513
|
+
te(), v("close");
|
|
4499
4514
|
}
|
|
4500
|
-
function
|
|
4501
|
-
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ?
|
|
4515
|
+
function V(e) {
|
|
4516
|
+
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? R() : F()) : e.key === "Escape" && B();
|
|
4502
4517
|
}
|
|
4503
4518
|
return (e, n) => t.isOpen ? (y(), o("div", {
|
|
4504
4519
|
key: 0,
|
|
@@ -4506,138 +4521,139 @@ var Yn = u({
|
|
|
4506
4521
|
"data-testid": "find-replace-dialog",
|
|
4507
4522
|
onMousedown: n[5] ||= L(() => {}, ["stop"]),
|
|
4508
4523
|
onKeydown: n[6] ||= L(() => {}, ["stop"])
|
|
4509
|
-
}, [s("div",
|
|
4524
|
+
}, [s("div", Qn, [s("span", $n, T(x.value ? O(u)("findReplace.findAndReplace") : O(u)("findReplace.find")), 1), l(O(d), {
|
|
4510
4525
|
class: "find-replace-dialog__close",
|
|
4511
4526
|
variant: "ghost",
|
|
4512
4527
|
size: "icon-xs",
|
|
4513
|
-
onClick:
|
|
4514
|
-
title: O(
|
|
4528
|
+
onClick: B,
|
|
4529
|
+
title: O(u)("findReplace.close")
|
|
4515
4530
|
}, {
|
|
4516
4531
|
default: P(() => [...n[7] ||= [c(" ✕ ", -1)]]),
|
|
4517
4532
|
_: 1
|
|
4518
|
-
}, 8, ["title"])]), s("div",
|
|
4519
|
-
s("div",
|
|
4520
|
-
l(O(
|
|
4533
|
+
}, 8, ["title"])]), s("div", er, [
|
|
4534
|
+
s("div", tr, [
|
|
4535
|
+
l(O(p), {
|
|
4521
4536
|
ref_key: "searchInputRef",
|
|
4522
|
-
ref:
|
|
4523
|
-
modelValue: O(
|
|
4524
|
-
"onUpdate:modelValue": n[0] ||= (e) => f(
|
|
4537
|
+
ref: b,
|
|
4538
|
+
modelValue: O(w),
|
|
4539
|
+
"onUpdate:modelValue": n[0] ||= (e) => f(w) ? w.value = e : null,
|
|
4525
4540
|
class: "find-replace-dialog__input",
|
|
4526
4541
|
"data-testid": "find-input",
|
|
4527
|
-
placeholder: O(
|
|
4528
|
-
"aria-label": O(
|
|
4529
|
-
onKeydown:
|
|
4530
|
-
onInput: O(
|
|
4542
|
+
placeholder: O(u)("findReplace.findPlaceholder"),
|
|
4543
|
+
"aria-label": O(u)("findReplace.findText"),
|
|
4544
|
+
onKeydown: V,
|
|
4545
|
+
onInput: O(M)
|
|
4531
4546
|
}, null, 8, [
|
|
4532
4547
|
"modelValue",
|
|
4533
4548
|
"placeholder",
|
|
4534
4549
|
"aria-label",
|
|
4535
4550
|
"onInput"
|
|
4536
4551
|
]),
|
|
4537
|
-
s("span",
|
|
4538
|
-
l(O(
|
|
4552
|
+
s("span", nr, T(ie.value), 1),
|
|
4553
|
+
l(O(d), {
|
|
4539
4554
|
variant: "ghost",
|
|
4540
4555
|
size: "icon-xs",
|
|
4541
|
-
title: O(
|
|
4542
|
-
onMousedown: L(O(
|
|
4556
|
+
title: O(u)("findReplace.previous"),
|
|
4557
|
+
onMousedown: L(O(R), ["prevent"])
|
|
4543
4558
|
}, {
|
|
4544
4559
|
default: P(() => [...n[8] ||= [c("▲", -1)]]),
|
|
4545
4560
|
_: 1
|
|
4546
4561
|
}, 8, ["title", "onMousedown"]),
|
|
4547
|
-
l(O(
|
|
4562
|
+
l(O(d), {
|
|
4548
4563
|
variant: "ghost",
|
|
4549
4564
|
size: "icon-xs",
|
|
4550
|
-
title: O(
|
|
4551
|
-
onMousedown: L(O(
|
|
4565
|
+
title: O(u)("findReplace.next"),
|
|
4566
|
+
onMousedown: L(O(F), ["prevent"])
|
|
4552
4567
|
}, {
|
|
4553
4568
|
default: P(() => [...n[9] ||= [c("▼", -1)]]),
|
|
4554
4569
|
_: 1
|
|
4555
4570
|
}, 8, ["title", "onMousedown"])
|
|
4556
4571
|
]),
|
|
4557
|
-
s("div",
|
|
4558
|
-
s("label", null, [l(O(
|
|
4559
|
-
checked:
|
|
4572
|
+
s("div", rr, [
|
|
4573
|
+
s("label", null, [l(O(g), {
|
|
4574
|
+
checked: ne.value,
|
|
4560
4575
|
"onUpdate:checked": n[1] ||= (e) => {
|
|
4561
|
-
|
|
4576
|
+
ne.value = e, O(M)();
|
|
4562
4577
|
}
|
|
4563
|
-
}, null, 8, ["checked"]), c(" " + T(O(
|
|
4564
|
-
s("label", null, [l(O(
|
|
4565
|
-
checked:
|
|
4578
|
+
}, null, 8, ["checked"]), c(" " + T(O(u)("findReplace.matchCase")), 1)]),
|
|
4579
|
+
s("label", null, [l(O(g), {
|
|
4580
|
+
checked: re.value,
|
|
4566
4581
|
"onUpdate:checked": n[2] ||= (e) => {
|
|
4567
|
-
|
|
4582
|
+
re.value = e, O(M)();
|
|
4568
4583
|
}
|
|
4569
|
-
}, null, 8, ["checked"]), c(" " + T(O(
|
|
4570
|
-
|
|
4571
|
-
|
|
4584
|
+
}, null, 8, ["checked"]), c(" " + T(O(u)("findReplace.wholeWords")), 1)]),
|
|
4585
|
+
C.value ? a("", !0) : (y(), i(O(d), {
|
|
4586
|
+
key: 0,
|
|
4587
|
+
class: h(["find-replace-dialog__toggle", { active: x.value }]),
|
|
4572
4588
|
"data-testid": "find-replace-toggle",
|
|
4573
4589
|
variant: "ghost",
|
|
4574
4590
|
size: "xs",
|
|
4575
|
-
onMousedown: n[3] ||= L((e) =>
|
|
4576
|
-
title: O(
|
|
4591
|
+
onMousedown: n[3] ||= L((e) => x.value = !x.value, ["prevent"]),
|
|
4592
|
+
title: O(u)("dialogs.findReplace.toggleReplace")
|
|
4577
4593
|
}, {
|
|
4578
|
-
default: P(() => [c(" ↔ " + T(O(
|
|
4594
|
+
default: P(() => [c(" ↔ " + T(O(u)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4579
4595
|
_: 1
|
|
4580
|
-
}, 8, ["class", "title"])
|
|
4596
|
+
}, 8, ["class", "title"]))
|
|
4581
4597
|
]),
|
|
4582
|
-
|
|
4583
|
-
l(O(
|
|
4584
|
-
modelValue: O(
|
|
4585
|
-
"onUpdate:modelValue": n[4] ||= (e) => f(
|
|
4598
|
+
x.value && !C.value ? (y(), o("div", ir, [
|
|
4599
|
+
l(O(p), {
|
|
4600
|
+
modelValue: O(D),
|
|
4601
|
+
"onUpdate:modelValue": n[4] ||= (e) => f(D) ? D.value = e : null,
|
|
4586
4602
|
class: "find-replace-dialog__input",
|
|
4587
4603
|
"data-testid": "replace-input",
|
|
4588
|
-
placeholder: O(
|
|
4589
|
-
"aria-label": O(
|
|
4590
|
-
onKeydown: I(L(O(
|
|
4604
|
+
placeholder: O(u)("findReplace.replacePlaceholder"),
|
|
4605
|
+
"aria-label": O(u)("findReplace.replaceText"),
|
|
4606
|
+
onKeydown: I(L(O(z), ["prevent"]), ["enter"])
|
|
4591
4607
|
}, null, 8, [
|
|
4592
4608
|
"modelValue",
|
|
4593
4609
|
"placeholder",
|
|
4594
4610
|
"aria-label",
|
|
4595
4611
|
"onKeydown"
|
|
4596
4612
|
]),
|
|
4597
|
-
l(O(
|
|
4613
|
+
l(O(d), {
|
|
4598
4614
|
variant: "ghost",
|
|
4599
4615
|
size: "xs",
|
|
4600
4616
|
"data-testid": "replace-current",
|
|
4601
|
-
title: O(
|
|
4602
|
-
onMousedown: L(O(
|
|
4617
|
+
title: O(u)("findReplace.replaceCurrent"),
|
|
4618
|
+
onMousedown: L(O(z), ["prevent"])
|
|
4603
4619
|
}, {
|
|
4604
|
-
default: P(() => [c(T(O(
|
|
4620
|
+
default: P(() => [c(T(O(u)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4605
4621
|
_: 1
|
|
4606
4622
|
}, 8, ["title", "onMousedown"]),
|
|
4607
|
-
l(O(
|
|
4623
|
+
l(O(d), {
|
|
4608
4624
|
variant: "ghost",
|
|
4609
4625
|
size: "xs",
|
|
4610
4626
|
"data-testid": "replace-all",
|
|
4611
|
-
title: O(
|
|
4612
|
-
onMousedown: L(O(
|
|
4627
|
+
title: O(u)("findReplace.replaceAll"),
|
|
4628
|
+
onMousedown: L(O(ee), ["prevent"])
|
|
4613
4629
|
}, {
|
|
4614
|
-
default: P(() => [c(T(O(
|
|
4630
|
+
default: P(() => [c(T(O(u)("findReplace.replaceAll")), 1)]),
|
|
4615
4631
|
_: 1
|
|
4616
4632
|
}, 8, ["title", "onMousedown"])
|
|
4617
4633
|
])) : a("", !0)
|
|
4618
4634
|
])], 32)) : a("", !0);
|
|
4619
4635
|
}
|
|
4620
|
-
}), [["__scopeId", "data-v-
|
|
4636
|
+
}), [["__scopeId", "data-v-4224d6f2"]]), or = { class: "dialog__header" }, sr = { class: "dialog__title" }, cr = ["aria-label"], lr = { class: "dialog__body" }, ur = {
|
|
4621
4637
|
key: 0,
|
|
4622
4638
|
class: "link-tabs",
|
|
4623
4639
|
role: "tablist"
|
|
4624
|
-
},
|
|
4640
|
+
}, dr = ["aria-selected"], fr = ["aria-selected"], pr = {
|
|
4625
4641
|
key: 1,
|
|
4626
4642
|
class: "field"
|
|
4627
|
-
},
|
|
4643
|
+
}, mr = { class: "field__label" }, hr = [
|
|
4628
4644
|
"placeholder",
|
|
4629
4645
|
"aria-invalid",
|
|
4630
4646
|
"onKeydown"
|
|
4631
|
-
],
|
|
4647
|
+
], gr = {
|
|
4632
4648
|
key: 0,
|
|
4633
4649
|
class: "field__error"
|
|
4634
|
-
},
|
|
4650
|
+
}, _r = {
|
|
4635
4651
|
key: 1,
|
|
4636
4652
|
class: "field__hint"
|
|
4637
|
-
},
|
|
4653
|
+
}, vr = {
|
|
4638
4654
|
key: 2,
|
|
4639
4655
|
class: "field"
|
|
4640
|
-
},
|
|
4656
|
+
}, yr = { class: "field__label" }, br = ["onKeydown"], xr = { value: "" }, Sr = ["value"], Cr = { class: "field" }, wr = { class: "field__label" }, Tr = ["placeholder"], Er = { class: "field__hint" }, Dr = { class: "field" }, Or = { class: "field__label" }, kr = ["placeholder"], Ar = { class: "dialog__actions" }, jr = ["disabled"], Mr = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4641
4657
|
__name: "HyperlinkDialog",
|
|
4642
4658
|
props: {
|
|
4643
4659
|
isOpen: { type: Boolean },
|
|
@@ -4727,24 +4743,24 @@ var Yn = u({
|
|
|
4727
4743
|
class: "dialog",
|
|
4728
4744
|
onMousedown: r[6] ||= L(() => {}, ["stop"]),
|
|
4729
4745
|
onKeydown: r[7] ||= L(() => {}, ["stop"])
|
|
4730
|
-
}, [s("div",
|
|
4746
|
+
}, [s("div", or, [s("span", sr, T(b.value ? O(i)("dialogs.hyperlink.titleEdit") : O(i)("dialogs.hyperlink.titleInsert")), 1), s("button", {
|
|
4731
4747
|
class: "dialog__close",
|
|
4732
4748
|
"aria-label": O(i)("common.closeDialog"),
|
|
4733
4749
|
onClick: P
|
|
4734
|
-
}, " ✕ ", 8,
|
|
4735
|
-
E.value.length > 0 ? (y(), o("div",
|
|
4750
|
+
}, " ✕ ", 8, cr)]), s("div", lr, [
|
|
4751
|
+
E.value.length > 0 ? (y(), o("div", ur, [s("button", {
|
|
4736
4752
|
class: h(["link-tab", { active: f.value === "url" }]),
|
|
4737
4753
|
role: "tab",
|
|
4738
4754
|
"aria-selected": f.value === "url",
|
|
4739
4755
|
onMousedown: r[0] ||= L((e) => f.value = "url", ["prevent"])
|
|
4740
|
-
}, T(O(i)("dialogs.hyperlink.tabWebAddress")), 43,
|
|
4756
|
+
}, T(O(i)("dialogs.hyperlink.tabWebAddress")), 43, dr), s("button", {
|
|
4741
4757
|
class: h(["link-tab", { active: f.value === "bookmark" }]),
|
|
4742
4758
|
role: "tab",
|
|
4743
4759
|
"aria-selected": f.value === "bookmark",
|
|
4744
4760
|
onMousedown: r[1] ||= L((e) => f.value = "bookmark", ["prevent"])
|
|
4745
|
-
}, T(O(i)("dialogs.hyperlink.tabBookmark")), 43,
|
|
4746
|
-
f.value === "url" ? (y(), o("div",
|
|
4747
|
-
s("label",
|
|
4761
|
+
}, T(O(i)("dialogs.hyperlink.tabBookmark")), 43, fr)])) : a("", !0),
|
|
4762
|
+
f.value === "url" ? (y(), o("div", pr, [
|
|
4763
|
+
s("label", mr, T(O(i)("dialogs.hyperlink.urlLabel")), 1),
|
|
4748
4764
|
F(s("input", {
|
|
4749
4765
|
ref_key: "urlInputRef",
|
|
4750
4766
|
ref: u,
|
|
@@ -4754,33 +4770,33 @@ var Yn = u({
|
|
|
4754
4770
|
"aria-invalid": w.value && !!x.value,
|
|
4755
4771
|
onKeydown: I(L(R, ["prevent"]), ["enter"]),
|
|
4756
4772
|
onBlur: z
|
|
4757
|
-
}, null, 42,
|
|
4758
|
-
w.value && x.value ? (y(), o("div",
|
|
4759
|
-
])) : (y(), o("div",
|
|
4773
|
+
}, null, 42, hr), [[M, p.value]]),
|
|
4774
|
+
w.value && x.value ? (y(), o("div", gr, T(x.value), 1)) : (y(), o("div", _r, T(O(i)("dialogs.hyperlink.urlHint")), 1))
|
|
4775
|
+
])) : (y(), o("div", vr, [s("label", yr, T(O(i)("dialogs.hyperlink.bookmarkLabel")), 1), F(s("select", {
|
|
4760
4776
|
ref_key: "bookmarkSelectRef",
|
|
4761
4777
|
ref: d,
|
|
4762
4778
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e,
|
|
4763
4779
|
class: "field__input",
|
|
4764
4780
|
onKeydown: I(L(R, ["prevent"]), ["enter"])
|
|
4765
|
-
}, [s("option",
|
|
4781
|
+
}, [s("option", xr, T(O(i)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (y(!0), o(t, null, C(E.value, (e) => (y(), o("option", {
|
|
4766
4782
|
key: e.name,
|
|
4767
4783
|
value: e.name
|
|
4768
|
-
}, T(e.label || e.name), 9,
|
|
4769
|
-
s("div",
|
|
4770
|
-
s("label",
|
|
4784
|
+
}, T(e.label || e.name), 9, Sr))), 128))], 40, br), [[j, g.value]])])),
|
|
4785
|
+
s("div", Cr, [
|
|
4786
|
+
s("label", wr, T(O(i)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
4771
4787
|
F(s("input", {
|
|
4772
4788
|
"onUpdate:modelValue": r[4] ||= (e) => _.value = e,
|
|
4773
4789
|
class: "field__input",
|
|
4774
4790
|
placeholder: O(i)("dialogs.hyperlink.displayTextPlaceholder")
|
|
4775
|
-
}, null, 8,
|
|
4776
|
-
s("div",
|
|
4791
|
+
}, null, 8, Tr), [[M, _.value]]),
|
|
4792
|
+
s("div", Er, T(O(i)("dialogs.hyperlink.displayTextHint")), 1)
|
|
4777
4793
|
]),
|
|
4778
|
-
s("div",
|
|
4794
|
+
s("div", Dr, [s("label", Or, T(O(i)("dialogs.hyperlink.tooltipLabel")), 1), F(s("input", {
|
|
4779
4795
|
"onUpdate:modelValue": r[5] ||= (e) => v.value = e,
|
|
4780
4796
|
class: "field__input",
|
|
4781
4797
|
placeholder: O(i)("dialogs.hyperlink.tooltipPlaceholder")
|
|
4782
|
-
}, null, 8,
|
|
4783
|
-
s("div",
|
|
4798
|
+
}, null, 8, kr), [[M, v.value]])]),
|
|
4799
|
+
s("div", Ar, [
|
|
4784
4800
|
b.value ? (y(), o("button", {
|
|
4785
4801
|
key: 0,
|
|
4786
4802
|
class: "dialog__btn dialog__btn--danger",
|
|
@@ -4795,11 +4811,11 @@ var Yn = u({
|
|
|
4795
4811
|
class: "dialog__btn dialog__btn--primary",
|
|
4796
4812
|
onMousedown: L(R, ["prevent"]),
|
|
4797
4813
|
disabled: !D.value
|
|
4798
|
-
}, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41,
|
|
4814
|
+
}, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41, jr)
|
|
4799
4815
|
])
|
|
4800
4816
|
])], 32)], 32)) : a("", !0);
|
|
4801
4817
|
}
|
|
4802
|
-
}), [["__scopeId", "data-v-3078565e"]]),
|
|
4818
|
+
}), [["__scopeId", "data-v-3078565e"]]), Nr = { class: "dialog__header" }, Pr = { class: "dialog__title" }, Fr = ["aria-label"], Ir = { class: "dialog__body" }, Lr = { class: "field" }, Rr = { class: "field__label" }, zr = ["placeholder"], Br = { class: "field" }, Vr = { class: "field__label" }, Hr = { value: "inline" }, Ur = { value: "wrapRight" }, Wr = { value: "wrapLeft" }, Gr = { value: "topAndBottom" }, Kr = { value: "behind" }, qr = { value: "inFront" }, Jr = { class: "field" }, Yr = { class: "field__label" }, Xr = { class: "field-row" }, Zr = { value: "solid" }, Qr = { value: "dashed" }, $r = { value: "dotted" }, ei = { value: "double" }, ti = { class: "field" }, ni = { class: "field__label" }, ri = { class: "field-row" }, ii = ["value"], ai = ["value"], oi = { class: "field__checkbox" }, si = { class: "dialog__actions" }, ci = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
4803
4819
|
__name: "ImagePropertiesDialog",
|
|
4804
4820
|
props: {
|
|
4805
4821
|
isOpen: { type: Boolean },
|
|
@@ -4886,29 +4902,29 @@ var Yn = u({
|
|
|
4886
4902
|
},
|
|
4887
4903
|
onClose: x
|
|
4888
4904
|
}, {
|
|
4889
|
-
default: P(() => [s("div",
|
|
4905
|
+
default: P(() => [s("div", Nr, [s("span", Pr, T(O(n)("dialogs.imageProperties.title")), 1), s("button", {
|
|
4890
4906
|
class: "dialog__close",
|
|
4891
4907
|
"aria-label": O(n)("common.closeDialog"),
|
|
4892
4908
|
onClick: x
|
|
4893
|
-
}, "✕", 8,
|
|
4894
|
-
s("div",
|
|
4909
|
+
}, "✕", 8, Fr)]), s("div", Ir, [
|
|
4910
|
+
s("div", Lr, [s("label", Rr, T(O(n)("dialogs.imageProperties.altText")), 1), F(s("textarea", {
|
|
4895
4911
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
4896
4912
|
class: "field__textarea",
|
|
4897
4913
|
placeholder: O(n)("dialogs.imageProperties.altTextPlaceholder"),
|
|
4898
4914
|
rows: "2"
|
|
4899
|
-
}, null, 8,
|
|
4900
|
-
s("div",
|
|
4915
|
+
}, null, 8, zr), [[M, l.value]])]),
|
|
4916
|
+
s("div", Br, [s("label", Vr, T(O(n)("dialogs.imageProperties.textWrapping")), 1), F(s("select", {
|
|
4901
4917
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
4902
4918
|
class: "field__select"
|
|
4903
4919
|
}, [
|
|
4904
|
-
s("option",
|
|
4905
|
-
s("option",
|
|
4906
|
-
s("option",
|
|
4907
|
-
s("option",
|
|
4908
|
-
s("option",
|
|
4909
|
-
s("option",
|
|
4920
|
+
s("option", Hr, T(O(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
4921
|
+
s("option", Ur, T(O(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
4922
|
+
s("option", Wr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
4923
|
+
s("option", Gr, T(O(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
4924
|
+
s("option", Kr, T(O(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
4925
|
+
s("option", qr, T(O(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
4910
4926
|
], 512), [[j, u.value]])]),
|
|
4911
|
-
s("div",
|
|
4927
|
+
s("div", Jr, [s("label", Yr, T(O(n)("dialogs.imageProperties.border")), 1), s("div", Xr, [
|
|
4912
4928
|
s("label", null, [
|
|
4913
4929
|
c(T(O(n)("dialogs.imageProperties.width")) + ": ", 1),
|
|
4914
4930
|
F(s("input", {
|
|
@@ -4930,10 +4946,10 @@ var Yn = u({
|
|
|
4930
4946
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
4931
4947
|
class: "field__select--small"
|
|
4932
4948
|
}, [
|
|
4933
|
-
s("option",
|
|
4934
|
-
s("option",
|
|
4935
|
-
s("option",
|
|
4936
|
-
s("option",
|
|
4949
|
+
s("option", Zr, T(O(n)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
4950
|
+
s("option", Qr, T(O(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
4951
|
+
s("option", $r, T(O(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
4952
|
+
s("option", ei, T(O(n)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
4937
4953
|
], 512), [[j, f.value]])]),
|
|
4938
4954
|
s("label", null, [c(T(O(n)("dialogs.imageProperties.color")) + ": ", 1), F(s("input", {
|
|
4939
4955
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
@@ -4941,9 +4957,9 @@ var Yn = u({
|
|
|
4941
4957
|
class: "field__color"
|
|
4942
4958
|
}, null, 512), [[M, p.value]])])
|
|
4943
4959
|
])]),
|
|
4944
|
-
s("div",
|
|
4945
|
-
s("label",
|
|
4946
|
-
s("div",
|
|
4960
|
+
s("div", ti, [
|
|
4961
|
+
s("label", ni, T(O(n)("dialogs.imageProperties.dimensions")), 1),
|
|
4962
|
+
s("div", ri, [s("label", null, [
|
|
4947
4963
|
c(T(O(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
4948
4964
|
s("input", {
|
|
4949
4965
|
value: m.value,
|
|
@@ -4952,7 +4968,7 @@ var Yn = u({
|
|
|
4952
4968
|
max: "2000",
|
|
4953
4969
|
class: "field__input--small",
|
|
4954
4970
|
onInput: v
|
|
4955
|
-
}, null, 40,
|
|
4971
|
+
}, null, 40, ii),
|
|
4956
4972
|
c(T(O(n)("common.px")), 1)
|
|
4957
4973
|
]), s("label", null, [
|
|
4958
4974
|
c(T(O(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
@@ -4963,15 +4979,15 @@ var Yn = u({
|
|
|
4963
4979
|
max: "2000",
|
|
4964
4980
|
class: "field__input--small",
|
|
4965
4981
|
onInput: b
|
|
4966
|
-
}, null, 40,
|
|
4982
|
+
}, null, 40, ai),
|
|
4967
4983
|
c(T(O(n)("common.px")), 1)
|
|
4968
4984
|
])]),
|
|
4969
|
-
s("label",
|
|
4985
|
+
s("label", oi, [F(s("input", {
|
|
4970
4986
|
"onUpdate:modelValue": a[5] ||= (e) => g.value = e,
|
|
4971
4987
|
type: "checkbox"
|
|
4972
4988
|
}, null, 512), [[k, g.value]]), c(" " + T(O(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
4973
4989
|
]),
|
|
4974
|
-
s("div",
|
|
4990
|
+
s("div", si, [s("button", {
|
|
4975
4991
|
class: "dialog__btn",
|
|
4976
4992
|
onClick: x
|
|
4977
4993
|
}, T(O(n)("common.cancel")), 1), s("button", {
|
|
@@ -4982,29 +4998,29 @@ var Yn = u({
|
|
|
4982
4998
|
_: 1
|
|
4983
4999
|
}, 8, ["open", "aria-label"]));
|
|
4984
5000
|
}
|
|
4985
|
-
}), [["__scopeId", "data-v-4879cd1c"]]),
|
|
5001
|
+
}), [["__scopeId", "data-v-4879cd1c"]]), li = { class: "dialog__header" }, ui = { class: "dialog__title" }, di = ["title"], fi = { class: "dialog__body" }, pi = ["placeholder"], mi = {
|
|
4986
5002
|
key: 0,
|
|
4987
5003
|
class: "symbol-tabs"
|
|
4988
|
-
},
|
|
5004
|
+
}, hi = ["onMousedown"], gi = { class: "symbol-grid" }, _i = [
|
|
4989
5005
|
"title",
|
|
4990
5006
|
"onClick",
|
|
4991
5007
|
"onDblclick"
|
|
4992
|
-
],
|
|
5008
|
+
], vi = {
|
|
4993
5009
|
key: 0,
|
|
4994
5010
|
class: "symbol-empty"
|
|
4995
|
-
},
|
|
5011
|
+
}, yi = {
|
|
4996
5012
|
key: 1,
|
|
4997
5013
|
class: "symbol-preview"
|
|
4998
|
-
},
|
|
5014
|
+
}, bi = { class: "symbol-preview__char" }, xi = { class: "symbol-preview__info" }, Si = {
|
|
4999
5015
|
key: 2,
|
|
5000
5016
|
class: "symbol-recent"
|
|
5001
|
-
},
|
|
5017
|
+
}, Ci = { class: "symbol-recent__label" }, wi = ["onDblclick", "onClick"], Ti = { class: "dialog__actions" }, Ei = ["disabled"], Di = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
5002
5018
|
__name: "InsertSymbolDialog",
|
|
5003
5019
|
props: { isOpen: { type: Boolean } },
|
|
5004
5020
|
emits: ["close", "insert"],
|
|
5005
5021
|
setup(e, { emit: n }) {
|
|
5006
|
-
let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ =
|
|
5007
|
-
if (d.value) return
|
|
5022
|
+
let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ = B, v = r(() => {
|
|
5023
|
+
if (d.value) return V(d.value);
|
|
5008
5024
|
let e = _.find((e) => e.name === f.value);
|
|
5009
5025
|
return e ? e.symbols.map((t) => Object.assign({}, t, { category: e.name })) : [];
|
|
5010
5026
|
});
|
|
@@ -5025,11 +5041,11 @@ var Yn = u({
|
|
|
5025
5041
|
class: "dialog symbol-dialog",
|
|
5026
5042
|
onMousedown: r[2] ||= L(() => {}, ["stop"]),
|
|
5027
5043
|
onKeydown: r[3] ||= L(() => {}, ["stop"])
|
|
5028
|
-
}, [s("div",
|
|
5044
|
+
}, [s("div", li, [s("span", ui, T(O(i)("dialogs.insertSymbol.title")), 1), s("button", {
|
|
5029
5045
|
class: "dialog__close",
|
|
5030
5046
|
title: O(i)("common.closeDialog"),
|
|
5031
5047
|
onClick: b
|
|
5032
|
-
}, "✕", 8,
|
|
5048
|
+
}, "✕", 8, di)]), s("div", fi, [
|
|
5033
5049
|
F(s("input", {
|
|
5034
5050
|
ref_key: "searchRef",
|
|
5035
5051
|
ref: u,
|
|
@@ -5037,40 +5053,40 @@ var Yn = u({
|
|
|
5037
5053
|
class: "symbol-search",
|
|
5038
5054
|
placeholder: O(i)("dialogs.insertSymbol.searchPlaceholder"),
|
|
5039
5055
|
onKeydown: I(b, ["escape"])
|
|
5040
|
-
}, null, 40,
|
|
5041
|
-
d.value ? a("", !0) : (y(), o("div",
|
|
5056
|
+
}, null, 40, pi), [[M, d.value]]),
|
|
5057
|
+
d.value ? a("", !0) : (y(), o("div", mi, [(y(!0), o(t, null, C(O(_), (e) => (y(), o("button", {
|
|
5042
5058
|
key: e.name,
|
|
5043
5059
|
class: h(["symbol-tab", { active: f.value === e.name }]),
|
|
5044
5060
|
onMousedown: L((t) => f.value = e.name, ["prevent"])
|
|
5045
|
-
}, T(O(i)(e.nameKey)), 43,
|
|
5046
|
-
s("div",
|
|
5061
|
+
}, T(O(i)(e.nameKey)), 43, hi))), 128))])),
|
|
5062
|
+
s("div", gi, [(y(!0), o(t, null, C(v.value, (e) => (y(), o("button", {
|
|
5047
5063
|
key: e.char,
|
|
5048
5064
|
class: h(["symbol-cell", { selected: p.value === e.char }]),
|
|
5049
5065
|
title: e.name,
|
|
5050
5066
|
onClick: (t) => p.value = e.char,
|
|
5051
5067
|
onDblclick: (t) => x(e.char)
|
|
5052
|
-
}, T(e.char), 43,
|
|
5053
|
-
p.value ? (y(), o("div",
|
|
5054
|
-
g.value.length > 0 && !d.value ? (y(), o("div",
|
|
5068
|
+
}, T(e.char), 43, _i))), 128)), v.value.length === 0 ? (y(), o("div", vi, T(d.value ? O(i)("dialogs.insertSymbol.noResults", { query: d.value }) : O(i)("dialogs.insertSymbol.noResultsEmpty")), 1)) : a("", !0)]),
|
|
5069
|
+
p.value ? (y(), o("div", yi, [s("span", bi, T(p.value), 1), s("span", xi, "U+" + T(p.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : a("", !0),
|
|
5070
|
+
g.value.length > 0 && !d.value ? (y(), o("div", Si, [s("div", Ci, T(O(i)("dialogs.insertSymbol.recent")), 1), (y(!0), o(t, null, C(g.value, (e) => (y(), o("button", {
|
|
5055
5071
|
key: e,
|
|
5056
5072
|
class: "symbol-cell symbol-cell--small",
|
|
5057
5073
|
onDblclick: (t) => x(e),
|
|
5058
5074
|
onClick: (t) => p.value = e
|
|
5059
|
-
}, T(e), 41,
|
|
5060
|
-
s("div",
|
|
5075
|
+
}, T(e), 41, wi))), 128))])) : a("", !0),
|
|
5076
|
+
s("div", Ti, [s("button", {
|
|
5061
5077
|
class: "dialog__btn",
|
|
5062
5078
|
onClick: b
|
|
5063
5079
|
}, T(O(i)("common.cancel")), 1), s("button", {
|
|
5064
5080
|
class: "dialog__btn dialog__btn--primary",
|
|
5065
5081
|
onMousedown: r[1] ||= L((e) => x(p.value), ["prevent"]),
|
|
5066
5082
|
disabled: !p.value
|
|
5067
|
-
}, T(O(i)("common.insert")), 41,
|
|
5083
|
+
}, T(O(i)("common.insert")), 41, Ei)])
|
|
5068
5084
|
])], 32)], 32)) : a("", !0);
|
|
5069
5085
|
}
|
|
5070
|
-
}), [["__scopeId", "data-v-dc4046d2"]]),
|
|
5086
|
+
}), [["__scopeId", "data-v-dc4046d2"]]), Oi = { class: "ps-header" }, ki = { class: "ps-body" }, Ai = { class: "ps-section-label" }, ji = { class: "ps-row" }, Mi = { class: "ps-label" }, Ni = ["value"], Pi = ["value"], Fi = {
|
|
5071
5087
|
key: 0,
|
|
5072
5088
|
value: -1
|
|
5073
|
-
},
|
|
5089
|
+
}, Ii = { class: "ps-row" }, Li = { class: "ps-label" }, Ri = ["value"], zi = { value: "portrait" }, Bi = { value: "landscape" }, Vi = { class: "ps-section-label ps-section-label--spaced" }, Hi = { class: "ps-row" }, Ui = { class: "ps-label" }, Wi = { class: "ps-row" }, Gi = { class: "ps-label" }, Ki = { class: "ps-row" }, qi = { class: "ps-label" }, Ji = { class: "ps-row" }, Yi = { class: "ps-label" }, Xi = { class: "ps-footer" }, Zi = 12240, Qi = 15840, $i = 1440, ea = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
5074
5090
|
__name: "PageSetupDialog",
|
|
5075
5091
|
props: {
|
|
5076
5092
|
isOpen: { type: Boolean },
|
|
@@ -5114,12 +5130,12 @@ var Yn = u({
|
|
|
5114
5130
|
width: 10440,
|
|
5115
5131
|
height: 15120
|
|
5116
5132
|
}
|
|
5117
|
-
], d = e, f = n, p = S(
|
|
5133
|
+
], d = e, f = n, p = S(Zi), m = S(Qi), h = S("portrait"), g = S(1), _ = S(1), v = S(1), b = S(1);
|
|
5118
5134
|
function x(e) {
|
|
5119
|
-
return Math.round(e /
|
|
5135
|
+
return Math.round(e / oe * 100) / 100;
|
|
5120
5136
|
}
|
|
5121
5137
|
function w(e) {
|
|
5122
|
-
return Math.round((Number(e) || 0) *
|
|
5138
|
+
return Math.round((Number(e) || 0) * oe);
|
|
5123
5139
|
}
|
|
5124
5140
|
let E = r(() => {
|
|
5125
5141
|
let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
|
|
@@ -5127,8 +5143,8 @@ var Yn = u({
|
|
|
5127
5143
|
});
|
|
5128
5144
|
N(() => d.isOpen, (e) => {
|
|
5129
5145
|
if (!e) return;
|
|
5130
|
-
let t = d.sectionProperties, n = t?.pageWidth ||
|
|
5131
|
-
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ??
|
|
5146
|
+
let t = d.sectionProperties, n = t?.pageWidth || Zi, r = t?.pageHeight || Qi;
|
|
5147
|
+
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ?? $i), _.value = x(t?.marginBottom ?? $i), v.value = x(t?.marginLeft ?? $i), b.value = x(t?.marginRight ?? $i);
|
|
5132
5148
|
}, { immediate: !0 });
|
|
5133
5149
|
function D(e) {
|
|
5134
5150
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
@@ -5170,25 +5186,25 @@ var Yn = u({
|
|
|
5170
5186
|
onKeydown: I(j, ["enter"])
|
|
5171
5187
|
}, {
|
|
5172
5188
|
default: P(() => [
|
|
5173
|
-
s("div",
|
|
5174
|
-
s("div",
|
|
5175
|
-
s("div",
|
|
5176
|
-
s("div",
|
|
5189
|
+
s("div", Oi, T(O(c)("dialogs.pageSetup.title")), 1),
|
|
5190
|
+
s("div", ki, [
|
|
5191
|
+
s("div", Ai, T(O(c)("dialogs.pageSetup.pageSize")), 1),
|
|
5192
|
+
s("div", ji, [s("label", Mi, T(O(c)("dialogs.pageSetup.sizeLabel")), 1), s("select", {
|
|
5177
5193
|
class: "ps-input",
|
|
5178
5194
|
value: E.value,
|
|
5179
5195
|
onChange: D
|
|
5180
5196
|
}, [(y(), o(t, null, C(u, (e, t) => s("option", {
|
|
5181
5197
|
key: e.labelKey,
|
|
5182
5198
|
value: t
|
|
5183
|
-
}, T(O(c)(e.labelKey)), 9,
|
|
5184
|
-
s("div",
|
|
5199
|
+
}, T(O(c)(e.labelKey)), 9, Pi)), 64)), E.value < 0 ? (y(), o("option", Fi, T(O(c)("dialogs.pageSetup.custom")), 1)) : a("", !0)], 40, Ni)]),
|
|
5200
|
+
s("div", Ii, [s("label", Li, T(O(c)("dialogs.pageSetup.orientation")), 1), s("select", {
|
|
5185
5201
|
class: "ps-input",
|
|
5186
5202
|
value: h.value,
|
|
5187
5203
|
onChange: k
|
|
5188
|
-
}, [s("option",
|
|
5189
|
-
s("div",
|
|
5190
|
-
s("div",
|
|
5191
|
-
s("label",
|
|
5204
|
+
}, [s("option", zi, T(O(c)("dialogs.pageSetup.portrait")), 1), s("option", Bi, T(O(c)("dialogs.pageSetup.landscape")), 1)], 40, Ri)]),
|
|
5205
|
+
s("div", Vi, T(O(c)("dialogs.pageSetup.margins")), 1),
|
|
5206
|
+
s("div", Hi, [
|
|
5207
|
+
s("label", Ui, T(O(c)("dialogs.pageSetup.top")), 1),
|
|
5192
5208
|
F(s("input", {
|
|
5193
5209
|
class: "ps-input",
|
|
5194
5210
|
type: "number",
|
|
@@ -5204,8 +5220,8 @@ var Yn = u({
|
|
|
5204
5220
|
]]),
|
|
5205
5221
|
r[4] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5206
5222
|
]),
|
|
5207
|
-
s("div",
|
|
5208
|
-
s("label",
|
|
5223
|
+
s("div", Wi, [
|
|
5224
|
+
s("label", Gi, T(O(c)("dialogs.pageSetup.bottom")), 1),
|
|
5209
5225
|
F(s("input", {
|
|
5210
5226
|
class: "ps-input",
|
|
5211
5227
|
type: "number",
|
|
@@ -5221,8 +5237,8 @@ var Yn = u({
|
|
|
5221
5237
|
]]),
|
|
5222
5238
|
r[5] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5223
5239
|
]),
|
|
5224
|
-
s("div",
|
|
5225
|
-
s("label",
|
|
5240
|
+
s("div", Ki, [
|
|
5241
|
+
s("label", qi, T(O(c)("dialogs.pageSetup.left")), 1),
|
|
5226
5242
|
F(s("input", {
|
|
5227
5243
|
class: "ps-input",
|
|
5228
5244
|
type: "number",
|
|
@@ -5238,8 +5254,8 @@ var Yn = u({
|
|
|
5238
5254
|
]]),
|
|
5239
5255
|
r[6] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5240
5256
|
]),
|
|
5241
|
-
s("div",
|
|
5242
|
-
s("label",
|
|
5257
|
+
s("div", Ji, [
|
|
5258
|
+
s("label", Yi, T(O(c)("dialogs.pageSetup.right")), 1),
|
|
5243
5259
|
F(s("input", {
|
|
5244
5260
|
class: "ps-input",
|
|
5245
5261
|
type: "number",
|
|
@@ -5256,7 +5272,7 @@ var Yn = u({
|
|
|
5256
5272
|
r[7] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5257
5273
|
])
|
|
5258
5274
|
]),
|
|
5259
|
-
s("div",
|
|
5275
|
+
s("div", Xi, [s("button", {
|
|
5260
5276
|
type: "button",
|
|
5261
5277
|
class: "ps-btn",
|
|
5262
5278
|
onClick: A
|
|
@@ -5269,10 +5285,10 @@ var Yn = u({
|
|
|
5269
5285
|
_: 1
|
|
5270
5286
|
}, 8, ["open", "aria-label"]));
|
|
5271
5287
|
}
|
|
5272
|
-
}), [["__scopeId", "data-v-1e078cda"]]),
|
|
5288
|
+
}), [["__scopeId", "data-v-1e078cda"]]), ta = { class: "tpd-dialog__header" }, na = { class: "tpd-dialog__body" }, ra = { class: "tpd-row" }, ia = { class: "tpd-label" }, aa = { value: "auto" }, oa = { value: "dxa" }, sa = { value: "pct" }, ca = {
|
|
5273
5289
|
key: 0,
|
|
5274
5290
|
class: "tpd-row"
|
|
5275
|
-
},
|
|
5291
|
+
}, la = { class: "tpd-label" }, ua = ["step"], da = { class: "tpd-unit" }, fa = { class: "tpd-row" }, pa = { class: "tpd-label" }, ma = ["value"], ha = { class: "tpd-dialog__footer" }, ga = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
5276
5292
|
__name: "TablePropertiesDialog",
|
|
5277
5293
|
props: {
|
|
5278
5294
|
isOpen: { type: Boolean },
|
|
@@ -5292,9 +5308,9 @@ var Yn = u({
|
|
|
5292
5308
|
case "pct": return e;
|
|
5293
5309
|
default: return "auto";
|
|
5294
5310
|
}
|
|
5295
|
-
}, m = S(p(u.currentProps?.widthType ?? "auto")), h = S(
|
|
5311
|
+
}, m = S(p(u.currentProps?.widthType ?? "auto")), h = S(ce(u.currentProps?.justification));
|
|
5296
5312
|
N(() => u.isOpen, (e) => {
|
|
5297
|
-
e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value =
|
|
5313
|
+
e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value = ce(u.currentProps?.justification));
|
|
5298
5314
|
});
|
|
5299
5315
|
function g() {
|
|
5300
5316
|
let e = m.value === "auto" ? {
|
|
@@ -5320,41 +5336,41 @@ var Yn = u({
|
|
|
5320
5336
|
onKeydown: I(g, ["enter"])
|
|
5321
5337
|
}, {
|
|
5322
5338
|
default: P(() => [
|
|
5323
|
-
s("div",
|
|
5324
|
-
s("div",
|
|
5325
|
-
s("div",
|
|
5339
|
+
s("div", ta, T(O(r)("dialogs.tableProperties.title")), 1),
|
|
5340
|
+
s("div", na, [
|
|
5341
|
+
s("div", ra, [s("label", ia, T(O(r)("dialogs.tableProperties.widthType")), 1), F(s("select", {
|
|
5326
5342
|
"onUpdate:modelValue": u[0] ||= (e) => m.value = e,
|
|
5327
5343
|
class: "tpd-select"
|
|
5328
5344
|
}, [
|
|
5329
|
-
s("option",
|
|
5330
|
-
s("option",
|
|
5331
|
-
s("option",
|
|
5345
|
+
s("option", aa, T(O(r)("dialogs.tableProperties.widthTypes.auto")), 1),
|
|
5346
|
+
s("option", oa, T(O(r)("dialogs.tableProperties.widthTypes.fixed")), 1),
|
|
5347
|
+
s("option", sa, T(O(r)("dialogs.tableProperties.widthTypes.percentage")), 1)
|
|
5332
5348
|
], 512), [[j, m.value]])]),
|
|
5333
|
-
m.value === "auto" ? a("", !0) : (y(), o("div",
|
|
5334
|
-
s("label",
|
|
5349
|
+
m.value === "auto" ? a("", !0) : (y(), o("div", ca, [
|
|
5350
|
+
s("label", la, T(O(r)("dialogs.tableProperties.widthLabel")), 1),
|
|
5335
5351
|
F(s("input", {
|
|
5336
5352
|
"onUpdate:modelValue": u[1] ||= (e) => f.value = e,
|
|
5337
5353
|
type: "number",
|
|
5338
5354
|
class: "tpd-input",
|
|
5339
5355
|
min: 0,
|
|
5340
5356
|
step: m.value === "pct" ? 5 : 100
|
|
5341
|
-
}, null, 8,
|
|
5357
|
+
}, null, 8, ua), [[
|
|
5342
5358
|
M,
|
|
5343
5359
|
f.value,
|
|
5344
5360
|
void 0,
|
|
5345
5361
|
{ number: !0 }
|
|
5346
5362
|
]]),
|
|
5347
|
-
s("span",
|
|
5363
|
+
s("span", da, T(m.value === "pct" ? O(r)("dialogs.tableProperties.units.fiftiethsPercent") : O(r)("dialogs.tableProperties.units.twips")), 1)
|
|
5348
5364
|
])),
|
|
5349
|
-
s("div",
|
|
5365
|
+
s("div", fa, [s("label", pa, T(O(r)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
|
|
5350
5366
|
"onUpdate:modelValue": u[2] ||= (e) => h.value = e,
|
|
5351
5367
|
class: "tpd-select"
|
|
5352
|
-
}, [(y(!0), o(t, null, C(O(
|
|
5368
|
+
}, [(y(!0), o(t, null, C(O(se), (e) => (y(), o("option", {
|
|
5353
5369
|
key: e,
|
|
5354
5370
|
value: e
|
|
5355
|
-
}, T(O(r)(l[e])), 9,
|
|
5371
|
+
}, T(O(r)(l[e])), 9, ma))), 128))], 512), [[j, h.value]])])
|
|
5356
5372
|
]),
|
|
5357
|
-
s("div",
|
|
5373
|
+
s("div", ha, [s("button", {
|
|
5358
5374
|
class: "tpd-btn",
|
|
5359
5375
|
onClick: u[3] ||= (e) => n.$emit("close")
|
|
5360
5376
|
}, T(O(r)("common.cancel")), 1), s("button", {
|
|
@@ -5365,16 +5381,16 @@ var Yn = u({
|
|
|
5365
5381
|
_: 1
|
|
5366
5382
|
}, 8, ["open", "aria-label"]));
|
|
5367
5383
|
}
|
|
5368
|
-
}), [["__scopeId", "data-v-dace7dcf"]]),
|
|
5384
|
+
}), [["__scopeId", "data-v-dace7dcf"]]), _a = { class: "dialog__body" }, va = { class: "field" }, ya = {
|
|
5369
5385
|
key: 0,
|
|
5370
5386
|
class: "grid"
|
|
5371
|
-
},
|
|
5387
|
+
}, ba = { class: "field field--wide" }, xa = { class: "field" }, Sa = { class: "field" }, Ca = { class: "field" }, wa = { class: "check" }, Ta = {
|
|
5372
5388
|
key: 1,
|
|
5373
5389
|
class: "grid"
|
|
5374
|
-
},
|
|
5390
|
+
}, Ea = { class: "field field--wide" }, Da = { class: "field field--wide" }, Oa = ["aria-invalid"], ka = {
|
|
5375
5391
|
key: 0,
|
|
5376
5392
|
class: "field__error"
|
|
5377
|
-
},
|
|
5393
|
+
}, Aa = { class: "field" }, ja = { class: "check" }, Ma = { class: "check field--wide" }, Na = { class: "dialog__footer" }, Pa = ["disabled"], Fa = "#C0C0C0", Ia = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
5378
5394
|
__name: "WatermarkDialog",
|
|
5379
5395
|
props: {
|
|
5380
5396
|
isOpen: { type: Boolean },
|
|
@@ -5382,11 +5398,11 @@ var Yn = u({
|
|
|
5382
5398
|
},
|
|
5383
5399
|
emits: ["close", "apply"],
|
|
5384
5400
|
setup(e, { emit: t }) {
|
|
5385
|
-
let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(
|
|
5401
|
+
let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(Fa), m = S(!0), h = S(50), g = S(""), _ = S(""), v = S(!1), b = S(100), x = S(!0), C = r(() => u.value === "picture" && v.value && _.value.trim().length > 0 ? L(_.value.trim()) : ""), w = r(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0 && C.value.length === 0);
|
|
5386
5402
|
N([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
|
|
5387
5403
|
if (e) {
|
|
5388
5404
|
if (!t) {
|
|
5389
|
-
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value =
|
|
5405
|
+
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = Fa, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0;
|
|
5390
5406
|
return;
|
|
5391
5407
|
}
|
|
5392
5408
|
if (u.value = t.kind, t.kind === "text") {
|
|
@@ -5436,7 +5452,7 @@ var Yn = u({
|
|
|
5436
5452
|
return R(e) ? "" : "Use a web address (http/https).";
|
|
5437
5453
|
}
|
|
5438
5454
|
function z(e) {
|
|
5439
|
-
return !e || e === "auto" ?
|
|
5455
|
+
return !e || e === "auto" ? Fa : e.startsWith("#") ? e : `#${e}`;
|
|
5440
5456
|
}
|
|
5441
5457
|
return (t, r) => (y(), i(O(n), {
|
|
5442
5458
|
open: e.isOpen,
|
|
@@ -5450,8 +5466,8 @@ var Yn = u({
|
|
|
5450
5466
|
}, {
|
|
5451
5467
|
default: P(() => [
|
|
5452
5468
|
r[25] ||= s("div", { class: "dialog__header" }, "Watermark", -1),
|
|
5453
|
-
s("div",
|
|
5454
|
-
s("label",
|
|
5469
|
+
s("div", _a, [
|
|
5470
|
+
s("label", va, [r[14] ||= s("span", { class: "field__label" }, "Type", -1), F(s("select", {
|
|
5455
5471
|
"onUpdate:modelValue": r[0] ||= (e) => u.value = e,
|
|
5456
5472
|
class: "field__input"
|
|
5457
5473
|
}, [...r[13] ||= [
|
|
@@ -5459,21 +5475,21 @@ var Yn = u({
|
|
|
5459
5475
|
s("option", { value: "picture" }, "Picture watermark", -1),
|
|
5460
5476
|
s("option", { value: "none" }, "No watermark", -1)
|
|
5461
5477
|
]], 512), [[j, u.value]])]),
|
|
5462
|
-
u.value === "text" ? (y(), o("div",
|
|
5463
|
-
s("label",
|
|
5478
|
+
u.value === "text" ? (y(), o("div", ya, [
|
|
5479
|
+
s("label", ba, [r[15] ||= s("span", { class: "field__label" }, "Text", -1), F(s("input", {
|
|
5464
5480
|
"onUpdate:modelValue": r[1] ||= (e) => d.value = e,
|
|
5465
5481
|
class: "field__input"
|
|
5466
5482
|
}, null, 512), [[M, d.value]])]),
|
|
5467
|
-
s("label",
|
|
5483
|
+
s("label", xa, [r[16] ||= s("span", { class: "field__label" }, "Font", -1), F(s("input", {
|
|
5468
5484
|
"onUpdate:modelValue": r[2] ||= (e) => f.value = e,
|
|
5469
5485
|
class: "field__input"
|
|
5470
5486
|
}, null, 512), [[M, f.value]])]),
|
|
5471
|
-
s("label",
|
|
5487
|
+
s("label", Sa, [r[17] ||= s("span", { class: "field__label" }, "Color", -1), F(s("input", {
|
|
5472
5488
|
"onUpdate:modelValue": r[3] ||= (e) => p.value = e,
|
|
5473
5489
|
class: "field__input field__input--color",
|
|
5474
5490
|
type: "color"
|
|
5475
5491
|
}, null, 512), [[M, p.value]])]),
|
|
5476
|
-
s("label",
|
|
5492
|
+
s("label", Ca, [r[18] ||= s("span", { class: "field__label" }, "Opacity", -1), F(s("input", {
|
|
5477
5493
|
"onUpdate:modelValue": r[4] ||= (e) => h.value = e,
|
|
5478
5494
|
class: "field__input",
|
|
5479
5495
|
max: "100",
|
|
@@ -5485,28 +5501,28 @@ var Yn = u({
|
|
|
5485
5501
|
void 0,
|
|
5486
5502
|
{ number: !0 }
|
|
5487
5503
|
]])]),
|
|
5488
|
-
s("label",
|
|
5504
|
+
s("label", wa, [F(s("input", {
|
|
5489
5505
|
"onUpdate:modelValue": r[5] ||= (e) => m.value = e,
|
|
5490
5506
|
type: "checkbox"
|
|
5491
5507
|
}, null, 512), [[k, m.value]]), r[19] ||= s("span", null, "Diagonal", -1)])
|
|
5492
5508
|
])) : a("", !0),
|
|
5493
|
-
u.value === "picture" ? (y(), o("div",
|
|
5494
|
-
s("label",
|
|
5509
|
+
u.value === "picture" ? (y(), o("div", Ta, [
|
|
5510
|
+
s("label", Ea, [r[20] ||= s("span", { class: "field__label" }, "Header image relationship id", -1), F(s("input", {
|
|
5495
5511
|
"onUpdate:modelValue": r[6] ||= (e) => g.value = e,
|
|
5496
5512
|
class: "field__input",
|
|
5497
5513
|
placeholder: "rId12"
|
|
5498
5514
|
}, null, 512), [[M, g.value]])]),
|
|
5499
|
-
s("label",
|
|
5515
|
+
s("label", Da, [
|
|
5500
5516
|
r[21] ||= s("span", { class: "field__label" }, "Image target", -1),
|
|
5501
5517
|
F(s("input", {
|
|
5502
5518
|
"onUpdate:modelValue": r[7] ||= (e) => _.value = e,
|
|
5503
5519
|
"aria-invalid": C.value.length > 0,
|
|
5504
5520
|
class: "field__input",
|
|
5505
5521
|
placeholder: "word/media/image1.png"
|
|
5506
|
-
}, null, 8,
|
|
5507
|
-
C.value.length > 0 ? (y(), o("span",
|
|
5522
|
+
}, null, 8, Oa), [[M, _.value]]),
|
|
5523
|
+
C.value.length > 0 ? (y(), o("span", ka, T(C.value), 1)) : a("", !0)
|
|
5508
5524
|
]),
|
|
5509
|
-
s("label",
|
|
5525
|
+
s("label", Aa, [r[22] ||= s("span", { class: "field__label" }, "Scale", -1), F(s("input", {
|
|
5510
5526
|
"onUpdate:modelValue": r[8] ||= (e) => b.value = e,
|
|
5511
5527
|
class: "field__input",
|
|
5512
5528
|
max: "300",
|
|
@@ -5518,29 +5534,29 @@ var Yn = u({
|
|
|
5518
5534
|
void 0,
|
|
5519
5535
|
{ number: !0 }
|
|
5520
5536
|
]])]),
|
|
5521
|
-
s("label",
|
|
5537
|
+
s("label", ja, [F(s("input", {
|
|
5522
5538
|
"onUpdate:modelValue": r[9] ||= (e) => x.value = e,
|
|
5523
5539
|
type: "checkbox"
|
|
5524
5540
|
}, null, 512), [[k, x.value]]), r[23] ||= s("span", null, "Washout", -1)]),
|
|
5525
|
-
s("label",
|
|
5541
|
+
s("label", Ma, [F(s("input", {
|
|
5526
5542
|
"onUpdate:modelValue": r[10] ||= (e) => v.value = e,
|
|
5527
5543
|
type: "checkbox"
|
|
5528
5544
|
}, null, 512), [[k, v.value]]), r[24] ||= s("span", null, "Target is an external URL", -1)])
|
|
5529
5545
|
])) : a("", !0)
|
|
5530
5546
|
]),
|
|
5531
|
-
s("div",
|
|
5547
|
+
s("div", Na, [s("button", {
|
|
5532
5548
|
class: "dialog__btn",
|
|
5533
5549
|
onClick: r[11] ||= (e) => t.$emit("close")
|
|
5534
5550
|
}, "Cancel"), s("button", {
|
|
5535
5551
|
class: "dialog__btn dialog__btn--primary",
|
|
5536
5552
|
disabled: !w.value,
|
|
5537
5553
|
onClick: E
|
|
5538
|
-
}, " Apply ", 8,
|
|
5554
|
+
}, " Apply ", 8, Pa)])
|
|
5539
5555
|
]),
|
|
5540
5556
|
_: 1
|
|
5541
5557
|
}, 8, ["open"]));
|
|
5542
5558
|
}
|
|
5543
|
-
}), [["__scopeId", "data-v-fbc23c7d"]]),
|
|
5559
|
+
}), [["__scopeId", "data-v-fbc23c7d"]]), La = { class: "fnpd-dialog__header" }, Ra = { class: "fnpd-dialog__body" }, za = { class: "fnpd-fieldset" }, Ba = { class: "fnpd-legend" }, Va = { class: "fnpd-row" }, Ha = { class: "fnpd-label" }, Ua = { value: "pageBottom" }, Wa = { value: "beneathText" }, Ga = { class: "fnpd-row" }, Ka = { class: "fnpd-label" }, qa = ["value"], Ja = { class: "fnpd-row" }, Ya = { class: "fnpd-label" }, Xa = { class: "fnpd-row" }, Za = { class: "fnpd-label" }, Qa = { value: "continuous" }, $a = { value: "eachSect" }, eo = { value: "eachPage" }, to = { class: "fnpd-fieldset" }, no = { class: "fnpd-legend" }, ro = { class: "fnpd-row" }, io = { class: "fnpd-label" }, ao = { value: "docEnd" }, oo = { value: "sectEnd" }, so = { class: "fnpd-row" }, co = { class: "fnpd-label" }, lo = ["value"], uo = { class: "fnpd-row" }, fo = { class: "fnpd-label" }, po = { class: "fnpd-row" }, mo = { class: "fnpd-label" }, ho = { value: "continuous" }, go = { value: "eachSect" }, _o = { class: "fnpd-dialog__footer" }, vo = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
5544
5560
|
__name: "FootnotePropertiesDialog",
|
|
5545
5561
|
props: {
|
|
5546
5562
|
isOpen: { type: Boolean },
|
|
@@ -5601,21 +5617,21 @@ var Yn = u({
|
|
|
5601
5617
|
onClose: r[9] ||= (e) => n.$emit("close")
|
|
5602
5618
|
}, {
|
|
5603
5619
|
default: P(() => [
|
|
5604
|
-
s("div",
|
|
5605
|
-
s("div",
|
|
5606
|
-
s("legend",
|
|
5607
|
-
s("div",
|
|
5620
|
+
s("div", La, T(O(a)("dialogs.footnoteProperties.title")), 1),
|
|
5621
|
+
s("div", Ra, [s("fieldset", za, [
|
|
5622
|
+
s("legend", Ba, T(O(a)("dialogs.footnoteProperties.footnotes")), 1),
|
|
5623
|
+
s("div", Va, [s("label", Ha, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
|
|
5608
5624
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
5609
5625
|
class: "fnpd-select"
|
|
5610
|
-
}, [s("option",
|
|
5611
|
-
s("div",
|
|
5626
|
+
}, [s("option", Ua, T(O(a)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), s("option", Wa, T(O(a)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[j, f.value]])]),
|
|
5627
|
+
s("div", Ga, [s("label", Ka, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
|
|
5612
5628
|
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
5613
5629
|
class: "fnpd-select"
|
|
5614
5630
|
}, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
|
|
5615
5631
|
key: e.value,
|
|
5616
5632
|
value: e.value
|
|
5617
|
-
}, T(e.label), 9,
|
|
5618
|
-
s("div",
|
|
5633
|
+
}, T(e.label), 9, qa))), 128))], 512), [[j, p.value]])]),
|
|
5634
|
+
s("div", Ja, [s("label", Ya, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
|
|
5619
5635
|
"onUpdate:modelValue": r[2] ||= (e) => m.value = e,
|
|
5620
5636
|
type: "number",
|
|
5621
5637
|
class: "fnpd-input",
|
|
@@ -5626,28 +5642,28 @@ var Yn = u({
|
|
|
5626
5642
|
void 0,
|
|
5627
5643
|
{ number: !0 }
|
|
5628
5644
|
]])]),
|
|
5629
|
-
s("div",
|
|
5645
|
+
s("div", Xa, [s("label", Za, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
|
|
5630
5646
|
"onUpdate:modelValue": r[3] ||= (e) => h.value = e,
|
|
5631
5647
|
class: "fnpd-select"
|
|
5632
5648
|
}, [
|
|
5633
|
-
s("option",
|
|
5634
|
-
s("option",
|
|
5635
|
-
s("option",
|
|
5649
|
+
s("option", Qa, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
|
|
5650
|
+
s("option", $a, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
|
|
5651
|
+
s("option", eo, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
|
|
5636
5652
|
], 512), [[j, h.value]])])
|
|
5637
|
-
]), s("fieldset",
|
|
5638
|
-
s("legend",
|
|
5639
|
-
s("div",
|
|
5653
|
+
]), s("fieldset", to, [
|
|
5654
|
+
s("legend", no, T(O(a)("dialogs.footnoteProperties.endnotes")), 1),
|
|
5655
|
+
s("div", ro, [s("label", io, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
|
|
5640
5656
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e,
|
|
5641
5657
|
class: "fnpd-select"
|
|
5642
|
-
}, [s("option",
|
|
5643
|
-
s("div",
|
|
5658
|
+
}, [s("option", ao, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), s("option", oo, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[j, g.value]])]),
|
|
5659
|
+
s("div", so, [s("label", co, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
|
|
5644
5660
|
"onUpdate:modelValue": r[5] ||= (e) => _.value = e,
|
|
5645
5661
|
class: "fnpd-select"
|
|
5646
5662
|
}, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
|
|
5647
5663
|
key: e.value,
|
|
5648
5664
|
value: e.value
|
|
5649
|
-
}, T(e.label), 9,
|
|
5650
|
-
s("div",
|
|
5665
|
+
}, T(e.label), 9, lo))), 128))], 512), [[j, _.value]])]),
|
|
5666
|
+
s("div", uo, [s("label", fo, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
|
|
5651
5667
|
"onUpdate:modelValue": r[6] ||= (e) => v.value = e,
|
|
5652
5668
|
type: "number",
|
|
5653
5669
|
class: "fnpd-input",
|
|
@@ -5658,12 +5674,12 @@ var Yn = u({
|
|
|
5658
5674
|
void 0,
|
|
5659
5675
|
{ number: !0 }
|
|
5660
5676
|
]])]),
|
|
5661
|
-
s("div",
|
|
5677
|
+
s("div", po, [s("label", mo, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
|
|
5662
5678
|
"onUpdate:modelValue": r[7] ||= (e) => b.value = e,
|
|
5663
5679
|
class: "fnpd-select"
|
|
5664
|
-
}, [s("option",
|
|
5680
|
+
}, [s("option", ho, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), s("option", go, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[j, b.value]])])
|
|
5665
5681
|
])]),
|
|
5666
|
-
s("div",
|
|
5682
|
+
s("div", _o, [s("button", {
|
|
5667
5683
|
class: "fnpd-btn",
|
|
5668
5684
|
onClick: r[8] ||= (e) => n.$emit("close")
|
|
5669
5685
|
}, T(O(a)("common.cancel")), 1), s("button", {
|
|
@@ -5674,25 +5690,25 @@ var Yn = u({
|
|
|
5674
5690
|
_: 1
|
|
5675
5691
|
}, 8, ["open", "aria-label"]));
|
|
5676
5692
|
}
|
|
5677
|
-
}), [["__scopeId", "data-v-86718c10"]]),
|
|
5693
|
+
}), [["__scopeId", "data-v-86718c10"]]), yo = { class: "ipd-dialog__header" }, bo = { class: "ipd-dialog__body" }, xo = { class: "ipd-fieldset" }, So = { class: "ipd-legend" }, Co = { class: "ipd-row" }, wo = { value: "align" }, To = { value: "offset" }, Eo = {
|
|
5678
5694
|
key: 0,
|
|
5679
5695
|
class: "ipd-row"
|
|
5680
|
-
},
|
|
5696
|
+
}, Do = { class: "ipd-label" }, Oo = { value: "left" }, ko = { value: "center" }, Ao = { value: "right" }, jo = {
|
|
5681
5697
|
key: 1,
|
|
5682
5698
|
class: "ipd-row"
|
|
5683
|
-
},
|
|
5699
|
+
}, Mo = { class: "ipd-label" }, No = { class: "ipd-row" }, Po = { class: "ipd-label" }, Fo = { value: "page" }, Io = { value: "column" }, Lo = { value: "margin" }, Ro = { value: "character" }, zo = { class: "ipd-fieldset" }, Bo = { class: "ipd-legend" }, Vo = { class: "ipd-row" }, Ho = { value: "align" }, Uo = { value: "offset" }, Wo = {
|
|
5684
5700
|
key: 0,
|
|
5685
5701
|
class: "ipd-row"
|
|
5686
|
-
},
|
|
5702
|
+
}, Go = { class: "ipd-label" }, Ko = { value: "top" }, qo = { value: "center" }, Jo = { value: "bottom" }, Yo = {
|
|
5687
5703
|
key: 1,
|
|
5688
5704
|
class: "ipd-row"
|
|
5689
|
-
},
|
|
5705
|
+
}, Xo = { class: "ipd-label" }, Zo = { class: "ipd-row" }, Qo = { class: "ipd-label" }, $o = { value: "page" }, es = { value: "margin" }, ts = { value: "paragraph" }, ns = { value: "line" }, rs = { class: "ipd-fieldset" }, is = { class: "ipd-row" }, as = { class: "ipd-label" }, os = {
|
|
5690
5706
|
class: "ipd-label",
|
|
5691
5707
|
style: { width: "60px" }
|
|
5692
|
-
},
|
|
5708
|
+
}, ss = { class: "ipd-row" }, cs = { class: "ipd-label" }, ls = {
|
|
5693
5709
|
class: "ipd-label",
|
|
5694
5710
|
style: { width: "60px" }
|
|
5695
|
-
},
|
|
5711
|
+
}, us = { class: "ipd-dialog__footer" }, ds = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
5696
5712
|
__name: "ImagePositionDialog",
|
|
5697
5713
|
props: {
|
|
5698
5714
|
isOpen: { type: Boolean },
|
|
@@ -5733,22 +5749,22 @@ var Yn = u({
|
|
|
5733
5749
|
onClose: a[13] ||= (e) => t.$emit("close")
|
|
5734
5750
|
}, {
|
|
5735
5751
|
default: P(() => [
|
|
5736
|
-
s("div",
|
|
5737
|
-
s("div",
|
|
5738
|
-
s("fieldset",
|
|
5739
|
-
s("legend",
|
|
5740
|
-
s("div",
|
|
5752
|
+
s("div", yo, T(O(n)("dialogs.imagePosition.title")), 1),
|
|
5753
|
+
s("div", bo, [
|
|
5754
|
+
s("fieldset", xo, [
|
|
5755
|
+
s("legend", So, T(O(n)("dialogs.imagePosition.horizontal")), 1),
|
|
5756
|
+
s("div", Co, [a[14] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
|
|
5741
5757
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
5742
5758
|
class: "ipd-select"
|
|
5743
|
-
}, [s("option",
|
|
5744
|
-
l.value === "align" ? (y(), o("div",
|
|
5759
|
+
}, [s("option", wo, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", To, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, l.value]])]),
|
|
5760
|
+
l.value === "align" ? (y(), o("div", Eo, [s("label", Do, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
|
|
5745
5761
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
5746
5762
|
class: "ipd-select"
|
|
5747
5763
|
}, [
|
|
5748
|
-
s("option",
|
|
5749
|
-
s("option",
|
|
5750
|
-
s("option",
|
|
5751
|
-
], 512), [[j, u.value]])])) : (y(), o("div",
|
|
5764
|
+
s("option", Oo, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5765
|
+
s("option", ko, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5766
|
+
s("option", Ao, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1)
|
|
5767
|
+
], 512), [[j, u.value]])])) : (y(), o("div", jo, [s("label", Mo, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
|
|
5752
5768
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
5753
5769
|
type: "number",
|
|
5754
5770
|
class: "ipd-input"
|
|
@@ -5758,30 +5774,30 @@ var Yn = u({
|
|
|
5758
5774
|
void 0,
|
|
5759
5775
|
{ number: !0 }
|
|
5760
5776
|
]])])),
|
|
5761
|
-
s("div",
|
|
5777
|
+
s("div", No, [s("label", Po, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
|
|
5762
5778
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
5763
5779
|
class: "ipd-select"
|
|
5764
5780
|
}, [
|
|
5765
|
-
s("option",
|
|
5766
|
-
s("option",
|
|
5767
|
-
s("option",
|
|
5768
|
-
s("option",
|
|
5781
|
+
s("option", Fo, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5782
|
+
s("option", Io, T(O(n)("dialogs.imagePosition.relativeOptions.column")), 1),
|
|
5783
|
+
s("option", Lo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5784
|
+
s("option", Ro, T(O(n)("dialogs.imagePosition.relativeOptions.character")), 1)
|
|
5769
5785
|
], 512), [[j, f.value]])])
|
|
5770
5786
|
]),
|
|
5771
|
-
s("fieldset",
|
|
5772
|
-
s("legend",
|
|
5773
|
-
s("div",
|
|
5787
|
+
s("fieldset", zo, [
|
|
5788
|
+
s("legend", Bo, T(O(n)("dialogs.imagePosition.vertical")), 1),
|
|
5789
|
+
s("div", Vo, [a[15] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
|
|
5774
5790
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
5775
5791
|
class: "ipd-select"
|
|
5776
|
-
}, [s("option",
|
|
5777
|
-
p.value === "align" ? (y(), o("div",
|
|
5792
|
+
}, [s("option", Ho, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Uo, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, p.value]])]),
|
|
5793
|
+
p.value === "align" ? (y(), o("div", Wo, [s("label", Go, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
|
|
5778
5794
|
"onUpdate:modelValue": a[5] ||= (e) => m.value = e,
|
|
5779
5795
|
class: "ipd-select"
|
|
5780
5796
|
}, [
|
|
5781
|
-
s("option",
|
|
5782
|
-
s("option",
|
|
5783
|
-
s("option",
|
|
5784
|
-
], 512), [[j, m.value]])])) : (y(), o("div",
|
|
5797
|
+
s("option", Ko, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5798
|
+
s("option", qo, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5799
|
+
s("option", Jo, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
|
|
5800
|
+
], 512), [[j, m.value]])])) : (y(), o("div", Yo, [s("label", Xo, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
|
|
5785
5801
|
"onUpdate:modelValue": a[6] ||= (e) => h.value = e,
|
|
5786
5802
|
type: "number",
|
|
5787
5803
|
class: "ipd-input"
|
|
@@ -5791,20 +5807,20 @@ var Yn = u({
|
|
|
5791
5807
|
void 0,
|
|
5792
5808
|
{ number: !0 }
|
|
5793
5809
|
]])])),
|
|
5794
|
-
s("div",
|
|
5810
|
+
s("div", Zo, [s("label", Qo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
|
|
5795
5811
|
"onUpdate:modelValue": a[7] ||= (e) => g.value = e,
|
|
5796
5812
|
class: "ipd-select"
|
|
5797
5813
|
}, [
|
|
5798
|
-
s("option",
|
|
5799
|
-
s("option",
|
|
5800
|
-
s("option",
|
|
5801
|
-
s("option",
|
|
5814
|
+
s("option", $o, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5815
|
+
s("option", es, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5816
|
+
s("option", ts, T(O(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
|
|
5817
|
+
s("option", ns, T(O(n)("dialogs.imagePosition.relativeOptions.line")), 1)
|
|
5802
5818
|
], 512), [[j, g.value]])])
|
|
5803
5819
|
]),
|
|
5804
|
-
s("fieldset",
|
|
5820
|
+
s("fieldset", rs, [
|
|
5805
5821
|
a[16] ||= s("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
|
|
5806
|
-
s("div",
|
|
5807
|
-
s("label",
|
|
5822
|
+
s("div", is, [
|
|
5823
|
+
s("label", as, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5808
5824
|
F(s("input", {
|
|
5809
5825
|
"onUpdate:modelValue": a[8] ||= (e) => _.value = e,
|
|
5810
5826
|
type: "number",
|
|
@@ -5816,7 +5832,7 @@ var Yn = u({
|
|
|
5816
5832
|
void 0,
|
|
5817
5833
|
{ number: !0 }
|
|
5818
5834
|
]]),
|
|
5819
|
-
s("label",
|
|
5835
|
+
s("label", os, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
|
|
5820
5836
|
F(s("input", {
|
|
5821
5837
|
"onUpdate:modelValue": a[9] ||= (e) => v.value = e,
|
|
5822
5838
|
type: "number",
|
|
@@ -5829,8 +5845,8 @@ var Yn = u({
|
|
|
5829
5845
|
{ number: !0 }
|
|
5830
5846
|
]])
|
|
5831
5847
|
]),
|
|
5832
|
-
s("div",
|
|
5833
|
-
s("label",
|
|
5848
|
+
s("div", ss, [
|
|
5849
|
+
s("label", cs, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5834
5850
|
F(s("input", {
|
|
5835
5851
|
"onUpdate:modelValue": a[10] ||= (e) => b.value = e,
|
|
5836
5852
|
type: "number",
|
|
@@ -5842,7 +5858,7 @@ var Yn = u({
|
|
|
5842
5858
|
void 0,
|
|
5843
5859
|
{ number: !0 }
|
|
5844
5860
|
]]),
|
|
5845
|
-
s("label",
|
|
5861
|
+
s("label", ls, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1),
|
|
5846
5862
|
F(s("input", {
|
|
5847
5863
|
"onUpdate:modelValue": a[11] ||= (e) => x.value = e,
|
|
5848
5864
|
type: "number",
|
|
@@ -5857,7 +5873,7 @@ var Yn = u({
|
|
|
5857
5873
|
])
|
|
5858
5874
|
])
|
|
5859
5875
|
]),
|
|
5860
|
-
s("div",
|
|
5876
|
+
s("div", us, [s("button", {
|
|
5861
5877
|
class: "ipd-btn",
|
|
5862
5878
|
onClick: a[12] ||= (e) => t.$emit("close")
|
|
5863
5879
|
}, T(O(n)("common.cancel")), 1), s("button", {
|
|
@@ -5868,7 +5884,7 @@ var Yn = u({
|
|
|
5868
5884
|
_: 1
|
|
5869
5885
|
}, 8, ["open", "aria-label"]));
|
|
5870
5886
|
}
|
|
5871
|
-
}), [["__scopeId", "data-v-64d4c153"]]),
|
|
5887
|
+
}), [["__scopeId", "data-v-64d4c153"]]), fs = { class: "dialog__body" }, ps = { class: "field" }, ms = ["accept"], hs = { class: "field" }, gs = ["placeholder"], _s = { class: "grid" }, vs = { class: "field" }, ys = { class: "field" }, bs = { class: "dialog__footer" }, xs = ["disabled"], Ss = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
5872
5888
|
__name: "InsertImageDialog",
|
|
5873
5889
|
props: {
|
|
5874
5890
|
isOpen: { type: Boolean },
|
|
@@ -5910,25 +5926,25 @@ var Yn = u({
|
|
|
5910
5926
|
}, {
|
|
5911
5927
|
default: P(() => [
|
|
5912
5928
|
r[9] ||= s("div", { class: "dialog__header" }, "Insert Image", -1),
|
|
5913
|
-
s("div",
|
|
5914
|
-
s("label",
|
|
5929
|
+
s("div", fs, [
|
|
5930
|
+
s("label", ps, [r[5] ||= s("span", { class: "field__label" }, "Image file", -1), s("input", {
|
|
5915
5931
|
class: "field__input",
|
|
5916
5932
|
type: "file",
|
|
5917
5933
|
accept: e.accept,
|
|
5918
5934
|
onChange: d
|
|
5919
|
-
}, null, 40,
|
|
5920
|
-
s("label",
|
|
5935
|
+
}, null, 40, ms)]),
|
|
5936
|
+
s("label", hs, [r[6] ||= s("span", { class: "field__label" }, "Alt text", -1), F(s("input", {
|
|
5921
5937
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
5922
5938
|
class: "field__input",
|
|
5923
5939
|
placeholder: o.value?.name ?? ""
|
|
5924
|
-
}, null, 8,
|
|
5925
|
-
s("div",
|
|
5940
|
+
}, null, 8, gs), [[M, c.value]])]),
|
|
5941
|
+
s("div", _s, [s("label", vs, [r[7] ||= s("span", { class: "field__label" }, "Width", -1), F(s("input", {
|
|
5926
5942
|
"onUpdate:modelValue": r[1] ||= (e) => l.value = e,
|
|
5927
5943
|
class: "field__input",
|
|
5928
5944
|
min: "1",
|
|
5929
5945
|
placeholder: "Auto",
|
|
5930
5946
|
type: "number"
|
|
5931
|
-
}, null, 512), [[M, l.value]])]), s("label",
|
|
5947
|
+
}, null, 512), [[M, l.value]])]), s("label", ys, [r[8] ||= s("span", { class: "field__label" }, "Height", -1), F(s("input", {
|
|
5932
5948
|
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
5933
5949
|
class: "field__input",
|
|
5934
5950
|
min: "1",
|
|
@@ -5936,14 +5952,14 @@ var Yn = u({
|
|
|
5936
5952
|
type: "number"
|
|
5937
5953
|
}, null, 512), [[M, u.value]])])])
|
|
5938
5954
|
]),
|
|
5939
|
-
s("div",
|
|
5955
|
+
s("div", bs, [s("button", {
|
|
5940
5956
|
class: "dialog__btn",
|
|
5941
5957
|
onClick: r[3] ||= (e) => t.$emit("close")
|
|
5942
5958
|
}, "Cancel"), s("button", {
|
|
5943
5959
|
class: "dialog__btn dialog__btn--primary",
|
|
5944
5960
|
disabled: !o.value,
|
|
5945
5961
|
onClick: f
|
|
5946
|
-
}, " Insert ", 8,
|
|
5962
|
+
}, " Insert ", 8, xs)])
|
|
5947
5963
|
]),
|
|
5948
5964
|
_: 1
|
|
5949
5965
|
}, 8, ["open"]));
|
|
@@ -5952,7 +5968,7 @@ var Yn = u({
|
|
|
5952
5968
|
style: "single",
|
|
5953
5969
|
size: 4,
|
|
5954
5970
|
color: { rgb: e }
|
|
5955
|
-
}),
|
|
5971
|
+
}), Cs = [
|
|
5956
5972
|
{
|
|
5957
5973
|
id: "TableNormal",
|
|
5958
5974
|
name: "Normal Table",
|
|
@@ -6244,7 +6260,7 @@ var Yn = u({
|
|
|
6244
6260
|
band1Horz: { backgroundColor: "#E2EFDA" }
|
|
6245
6261
|
}
|
|
6246
6262
|
}
|
|
6247
|
-
],
|
|
6263
|
+
], ws = {
|
|
6248
6264
|
TableNormal: "table.styles.normalTable",
|
|
6249
6265
|
TableGrid: "table.styles.tableGrid",
|
|
6250
6266
|
TableGridLight: "table.styles.gridTableLight",
|
|
@@ -6259,15 +6275,15 @@ var Yn = u({
|
|
|
6259
6275
|
"ListTable4-Accent3": "table.styles.listTable4Accent3",
|
|
6260
6276
|
"GridTable4-Accent5": "table.styles.gridTable4Accent5",
|
|
6261
6277
|
"GridTable4-Accent6": "table.styles.gridTable4Accent6"
|
|
6262
|
-
},
|
|
6263
|
-
function
|
|
6264
|
-
let t = e ?
|
|
6278
|
+
}, Ts = 4, Es = 3;
|
|
6279
|
+
function Ds(e) {
|
|
6280
|
+
let t = e ? le(e.style) : "none";
|
|
6265
6281
|
return !e || t === "none" ? "none" : `${e.size ? Math.max(1, Math.round(e.size / 8)) : 1}px ${t} ${e.color?.rgb ? `#${e.color.rgb}` : "#000"}`;
|
|
6266
6282
|
}
|
|
6267
|
-
function
|
|
6268
|
-
return
|
|
6283
|
+
function Os(e, t, n, r) {
|
|
6284
|
+
return Ds(e === void 0 ? t ? n ?? r : r : e);
|
|
6269
6285
|
}
|
|
6270
|
-
function
|
|
6286
|
+
function ks(e, t = Ts, n = Es) {
|
|
6271
6287
|
let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
|
|
6272
6288
|
for (let e = 0; e < t; e++) {
|
|
6273
6289
|
let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
|
|
@@ -6280,10 +6296,10 @@ function Ds(e, t = Cs, n = ws) {
|
|
|
6280
6296
|
height: "10px",
|
|
6281
6297
|
boxSizing: "border-box",
|
|
6282
6298
|
backgroundColor: m?.backgroundColor ?? "transparent",
|
|
6283
|
-
borderTop:
|
|
6284
|
-
borderBottom:
|
|
6285
|
-
borderLeft:
|
|
6286
|
-
borderRight:
|
|
6299
|
+
borderTop: Os(h?.top, e > 0, a?.insideH, a?.top),
|
|
6300
|
+
borderBottom: Os(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
|
|
6301
|
+
borderLeft: Os(h?.left, s > 0, a?.insideV, a?.left),
|
|
6302
|
+
borderRight: Os(h?.right, s < n - 1, a?.insideV, a?.right)
|
|
6287
6303
|
};
|
|
6288
6304
|
o.push(g);
|
|
6289
6305
|
}
|
|
@@ -6292,40 +6308,40 @@ function Ds(e, t = Cs, n = ws) {
|
|
|
6292
6308
|
}
|
|
6293
6309
|
//#endregion
|
|
6294
6310
|
//#region src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
|
|
6295
|
-
var
|
|
6311
|
+
var As = { class: "tsg" }, js = { class: "tsg__grid" }, Ms = ["title", "onMousedown"], Ns = { class: "tsg__preview" }, Ps = { class: "tsg__name" }, Fs = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
6296
6312
|
__name: "TableStyleGallery",
|
|
6297
6313
|
props: { currentStyleId: {} },
|
|
6298
6314
|
emits: ["apply"],
|
|
6299
6315
|
setup(e) {
|
|
6300
|
-
let { t: n } = Z(), r =
|
|
6316
|
+
let { t: n } = Z(), r = Cs;
|
|
6301
6317
|
function i(e) {
|
|
6302
|
-
let t =
|
|
6318
|
+
let t = ws[e.id];
|
|
6303
6319
|
return t ? n(t) : e.name;
|
|
6304
6320
|
}
|
|
6305
|
-
return (n, a) => (y(), o("div",
|
|
6321
|
+
return (n, a) => (y(), o("div", As, [s("div", js, [(y(!0), o(t, null, C(O(r), (r) => (y(), o("button", {
|
|
6306
6322
|
key: r.id,
|
|
6307
6323
|
class: h(["tsg__item", { "tsg__item--selected": e.currentStyleId === r.id }]),
|
|
6308
6324
|
title: i(r),
|
|
6309
6325
|
onMousedown: L((e) => n.$emit("apply", r.id), ["prevent"])
|
|
6310
|
-
}, [s("div",
|
|
6326
|
+
}, [s("div", Ns, [(y(!0), o(t, null, C(O(ks)(r), (e, t) => (y(), o("div", {
|
|
6311
6327
|
key: t,
|
|
6312
6328
|
class: "tsg__cell",
|
|
6313
6329
|
style: g(e)
|
|
6314
|
-
}, null, 4))), 128))]), s("span",
|
|
6330
|
+
}, null, 4))), 128))]), s("span", Ps, T(i(r)), 1)], 42, Ms))), 128))])]));
|
|
6315
6331
|
}
|
|
6316
|
-
}), [["__scopeId", "data-v-c155c39f"]]),
|
|
6332
|
+
}), [["__scopeId", "data-v-c155c39f"]]), Is = x({
|
|
6317
6333
|
rows: 3,
|
|
6318
6334
|
cols: 3
|
|
6319
|
-
}),
|
|
6335
|
+
}), Ls = { class: "dialog__header" }, Rs = { class: "dialog__title" }, zs = ["title"], Bs = { class: "dialog__body" }, Vs = ["aria-label"], Hs = ["onMouseenter", "onMousedown"], Us = { class: "table-grid__label" }, Ws = { class: "dialog__separator" }, Gs = { class: "table-manual" }, Ks = { class: "table-manual__field" }, qs = { class: "table-manual__field" }, Js = { class: "table-options" }, Ys = { class: "table-options__radio" }, Xs = { class: "table-options__radio" }, Zs = { class: "dialog__separator" }, Qs = { class: "dialog__footer" }, $s = ["disabled"], ec = 8, tc = 10, nc = 1, rc = 100, ic = 1, ac = 20, oc = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
6320
6336
|
__name: "InsertTableDialog",
|
|
6321
6337
|
props: { isOpen: { type: Boolean } },
|
|
6322
6338
|
emits: ["close", "insert"],
|
|
6323
6339
|
setup(e, { emit: n }) {
|
|
6324
|
-
let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(
|
|
6340
|
+
let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(Is.rows), m = S(Is.cols), g = S("fixed"), _ = S(null);
|
|
6325
6341
|
N(() => c.isOpen, (e) => {
|
|
6326
|
-
e && (p.value =
|
|
6342
|
+
e && (p.value = Is.rows, m.value = Is.cols, d.value = 0, f.value = 0);
|
|
6327
6343
|
});
|
|
6328
|
-
let v = r(() => Number.parseInt(String(p.value), 10)), b = r(() => Number.parseInt(String(m.value), 10)), x = r(() => Number.isFinite(v.value) && v.value >=
|
|
6344
|
+
let v = r(() => Number.parseInt(String(p.value), 10)), b = r(() => Number.parseInt(String(m.value), 10)), x = r(() => Number.isFinite(v.value) && v.value >= nc && v.value <= rc), w = r(() => Number.isFinite(b.value) && b.value >= ic && b.value <= ac), E = r(() => x.value && w.value);
|
|
6329
6345
|
function D() {
|
|
6330
6346
|
u("close");
|
|
6331
6347
|
}
|
|
@@ -6337,8 +6353,8 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6337
6353
|
}
|
|
6338
6354
|
function P() {
|
|
6339
6355
|
if (!E.value) return;
|
|
6340
|
-
let e = Math.min(Math.max(
|
|
6341
|
-
|
|
6356
|
+
let e = Math.min(Math.max(nc, v.value), rc), t = Math.min(Math.max(ic, b.value), ac);
|
|
6357
|
+
Is.rows = e, Is.cols = t, u("insert", {
|
|
6342
6358
|
rows: e,
|
|
6343
6359
|
cols: t,
|
|
6344
6360
|
autofit: g.value === "autofit",
|
|
@@ -6354,83 +6370,83 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6354
6370
|
onMousedown: r[7] ||= L(() => {}, ["stop"]),
|
|
6355
6371
|
onKeydown: L(j, ["stop"])
|
|
6356
6372
|
}, [
|
|
6357
|
-
s("div",
|
|
6373
|
+
s("div", Ls, [s("span", Rs, T(O(i)("dialogs.insertTable.title")), 1), s("button", {
|
|
6358
6374
|
class: "dialog__close",
|
|
6359
6375
|
title: O(i)("common.closeDialog"),
|
|
6360
6376
|
onClick: D
|
|
6361
|
-
}, "✕", 8,
|
|
6362
|
-
s("div",
|
|
6377
|
+
}, "✕", 8, zs)]),
|
|
6378
|
+
s("div", Bs, [
|
|
6363
6379
|
s("div", {
|
|
6364
6380
|
class: "table-grid",
|
|
6365
6381
|
"aria-label": O(i)("dialogs.insertTable.sizeSelector"),
|
|
6366
6382
|
onMouseleave: r[0] ||= (e) => {
|
|
6367
6383
|
d.value = 0, f.value = 0;
|
|
6368
6384
|
}
|
|
6369
|
-
}, [(y(), o(t, null, C(
|
|
6385
|
+
}, [(y(), o(t, null, C(ec, (e) => s("div", {
|
|
6370
6386
|
key: e,
|
|
6371
6387
|
class: "table-grid__row"
|
|
6372
|
-
}, [(y(), o(t, null, C(
|
|
6388
|
+
}, [(y(), o(t, null, C(tc, (t) => s("div", {
|
|
6373
6389
|
key: t,
|
|
6374
6390
|
class: h(["table-grid__cell", { highlight: e <= d.value && t <= f.value }]),
|
|
6375
6391
|
onMouseenter: (n) => {
|
|
6376
6392
|
d.value = e, f.value = t;
|
|
6377
6393
|
},
|
|
6378
6394
|
onMousedown: L((n) => k(e, t), ["prevent"])
|
|
6379
|
-
}, null, 42,
|
|
6380
|
-
s("div",
|
|
6395
|
+
}, null, 42, Hs)), 64))])), 64))], 40, Vs),
|
|
6396
|
+
s("div", Us, T(d.value > 0 ? O(i)("dialogs.insertTable.tableSize", {
|
|
6381
6397
|
cols: f.value,
|
|
6382
6398
|
rows: d.value
|
|
6383
6399
|
}) : O(i)("dialogs.insertTable.hoverToSelect")), 1),
|
|
6384
|
-
s("div",
|
|
6385
|
-
s("div",
|
|
6400
|
+
s("div", Ws, [s("span", null, T(O(i)("dialogs.insertTable.orSpecifySize")), 1)]),
|
|
6401
|
+
s("div", Gs, [s("label", Ks, [s("span", null, T(O(i)("dialogs.insertTable.rowsLabel")), 1), F(s("input", {
|
|
6386
6402
|
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
6387
6403
|
type: "number",
|
|
6388
|
-
min:
|
|
6389
|
-
max:
|
|
6404
|
+
min: nc,
|
|
6405
|
+
max: rc,
|
|
6390
6406
|
class: h(["table-manual__input", { "table-manual__input--invalid": !x.value }])
|
|
6391
|
-
}, null, 2), [[M, p.value]])]), s("label",
|
|
6407
|
+
}, null, 2), [[M, p.value]])]), s("label", qs, [s("span", null, T(O(i)("dialogs.insertTable.columnsLabel")), 1), F(s("input", {
|
|
6392
6408
|
"onUpdate:modelValue": r[2] ||= (e) => m.value = e,
|
|
6393
6409
|
type: "number",
|
|
6394
|
-
min:
|
|
6395
|
-
max:
|
|
6410
|
+
min: ic,
|
|
6411
|
+
max: ac,
|
|
6396
6412
|
class: h(["table-manual__input", { "table-manual__input--invalid": !w.value }])
|
|
6397
6413
|
}, null, 2), [[M, m.value]])])]),
|
|
6398
6414
|
s("div", { class: h(["table-manual__hint", { "table-manual__hint--error": !E.value }]) }, T(O(i)("dialogs.insertTable.validationHint", {
|
|
6399
|
-
minRows:
|
|
6400
|
-
maxRows:
|
|
6401
|
-
minCols:
|
|
6402
|
-
maxCols:
|
|
6415
|
+
minRows: nc,
|
|
6416
|
+
maxRows: rc,
|
|
6417
|
+
minCols: ic,
|
|
6418
|
+
maxCols: ac
|
|
6403
6419
|
})), 3),
|
|
6404
|
-
s("fieldset",
|
|
6420
|
+
s("fieldset", Js, [
|
|
6405
6421
|
s("legend", null, T(O(i)("dialogs.insertTable.columnWidthLabel")), 1),
|
|
6406
|
-
s("label",
|
|
6422
|
+
s("label", Ys, [F(s("input", {
|
|
6407
6423
|
type: "radio",
|
|
6408
6424
|
value: "fixed",
|
|
6409
6425
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e
|
|
6410
6426
|
}, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.fixedWidth")), 1)]),
|
|
6411
|
-
s("label",
|
|
6427
|
+
s("label", Xs, [F(s("input", {
|
|
6412
6428
|
type: "radio",
|
|
6413
6429
|
value: "autofit",
|
|
6414
6430
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e
|
|
6415
6431
|
}, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.autofit")), 1)])
|
|
6416
6432
|
]),
|
|
6417
|
-
s("div",
|
|
6418
|
-
l(
|
|
6433
|
+
s("div", Zs, [s("span", null, T(O(i)("dialogs.insertTable.style")), 1)]),
|
|
6434
|
+
l(Fs, {
|
|
6419
6435
|
"current-style-id": _.value,
|
|
6420
6436
|
onApply: r[5] ||= (e) => _.value = e
|
|
6421
6437
|
}, null, 8, ["current-style-id"])
|
|
6422
6438
|
]),
|
|
6423
|
-
s("div",
|
|
6439
|
+
s("div", Qs, [s("button", {
|
|
6424
6440
|
class: "dialog__btn",
|
|
6425
6441
|
onMousedown: L(D, ["prevent"])
|
|
6426
6442
|
}, T(O(i)("common.cancel")), 33), s("button", {
|
|
6427
6443
|
class: "dialog__btn dialog__btn--primary",
|
|
6428
6444
|
disabled: !E.value,
|
|
6429
6445
|
onMousedown: r[6] ||= L((e) => P(), ["prevent"])
|
|
6430
|
-
}, T(O(i)("dialogs.insertTable.insertButton")), 41,
|
|
6446
|
+
}, T(O(i)("dialogs.insertTable.insertButton")), 41, $s)])
|
|
6431
6447
|
], 32)], 32)) : a("", !0);
|
|
6432
6448
|
}
|
|
6433
|
-
}), [["__scopeId", "data-v-cc53b9fa"]]),
|
|
6449
|
+
}), [["__scopeId", "data-v-cc53b9fa"]]), sc = { class: "dialog__body" }, cc = { class: "options" }, lc = ["value"], uc = { class: "option__body" }, dc = { class: "option__label" }, fc = { class: "option__description" }, pc = { class: "dialog__footer" }, mc = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
6434
6450
|
__name: "PasteSpecialDialog",
|
|
6435
6451
|
props: {
|
|
6436
6452
|
isOpen: { type: Boolean },
|
|
@@ -6473,15 +6489,15 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6473
6489
|
}, {
|
|
6474
6490
|
default: P(() => [
|
|
6475
6491
|
c[4] ||= s("div", { class: "dialog__header" }, "Paste Special", -1),
|
|
6476
|
-
s("div",
|
|
6492
|
+
s("div", sc, [s("fieldset", cc, [c[3] ||= s("legend", { class: "options__legend" }, "Paste mode", -1), (y(), o(t, null, C(a, (e) => s("label", {
|
|
6477
6493
|
key: e.value,
|
|
6478
6494
|
class: "option"
|
|
6479
6495
|
}, [F(s("input", {
|
|
6480
6496
|
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
6481
6497
|
type: "radio",
|
|
6482
6498
|
value: e.value
|
|
6483
|
-
}, null, 8,
|
|
6484
|
-
s("div",
|
|
6499
|
+
}, null, 8, lc), [[A, u.value]]), s("span", uc, [s("span", dc, T(e.label), 1), s("span", fc, T(e.description), 1)])])), 64))])]),
|
|
6500
|
+
s("div", pc, [s("button", {
|
|
6485
6501
|
class: "dialog__btn",
|
|
6486
6502
|
onClick: c[1] ||= (e) => n.$emit("close")
|
|
6487
6503
|
}, "Cancel"), s("button", {
|
|
@@ -6492,7 +6508,7 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6492
6508
|
_: 1
|
|
6493
6509
|
}, 8, ["open"]));
|
|
6494
6510
|
}
|
|
6495
|
-
}), [["__scopeId", "data-v-540e9db3"]]),
|
|
6511
|
+
}), [["__scopeId", "data-v-540e9db3"]]), hc = { class: "dialog__body" }, gc = { class: "grid" }, _c = { class: "field" }, vc = { class: "field" }, yc = { class: "check" }, bc = { class: "dialog__footer" }, xc = ["disabled"], Sc = 1, Cc = 63, wc = /*#__PURE__*/ U(/* @__PURE__ */ u({
|
|
6496
6512
|
__name: "SplitCellDialog",
|
|
6497
6513
|
props: {
|
|
6498
6514
|
isOpen: { type: Boolean },
|
|
@@ -6513,7 +6529,7 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6513
6529
|
}), o("close"));
|
|
6514
6530
|
}
|
|
6515
6531
|
function h(e) {
|
|
6516
|
-
return Math.min(
|
|
6532
|
+
return Math.min(Cc, Math.max(Sc, Math.trunc(e)));
|
|
6517
6533
|
}
|
|
6518
6534
|
return (t, r) => (y(), i(O(n), {
|
|
6519
6535
|
open: e.isOpen,
|
|
@@ -6528,44 +6544,44 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6528
6544
|
}, {
|
|
6529
6545
|
default: P(() => [
|
|
6530
6546
|
r[8] ||= s("div", { class: "dialog__header" }, "Split Cell", -1),
|
|
6531
|
-
s("div",
|
|
6547
|
+
s("div", hc, [s("div", gc, [s("label", _c, [r[5] ||= s("span", { class: "field__label" }, "Columns", -1), F(s("input", {
|
|
6532
6548
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
6533
6549
|
class: "field__input",
|
|
6534
|
-
max:
|
|
6535
|
-
min:
|
|
6550
|
+
max: Cc,
|
|
6551
|
+
min: Sc,
|
|
6536
6552
|
type: "number"
|
|
6537
6553
|
}, null, 512), [[
|
|
6538
6554
|
M,
|
|
6539
6555
|
l.value,
|
|
6540
6556
|
void 0,
|
|
6541
6557
|
{ number: !0 }
|
|
6542
|
-
]])]), s("label",
|
|
6558
|
+
]])]), s("label", vc, [r[6] ||= s("span", { class: "field__label" }, "Rows", -1), F(s("input", {
|
|
6543
6559
|
"onUpdate:modelValue": r[1] ||= (e) => c.value = e,
|
|
6544
6560
|
class: "field__input",
|
|
6545
|
-
max:
|
|
6546
|
-
min:
|
|
6561
|
+
max: Cc,
|
|
6562
|
+
min: Sc,
|
|
6547
6563
|
type: "number"
|
|
6548
6564
|
}, null, 512), [[
|
|
6549
6565
|
M,
|
|
6550
6566
|
c.value,
|
|
6551
6567
|
void 0,
|
|
6552
6568
|
{ number: !0 }
|
|
6553
|
-
]])])]), s("label",
|
|
6569
|
+
]])])]), s("label", yc, [F(s("input", {
|
|
6554
6570
|
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
6555
6571
|
type: "checkbox"
|
|
6556
6572
|
}, null, 512), [[k, u.value]]), r[7] ||= s("span", null, "Merge selected cells before splitting", -1)])]),
|
|
6557
|
-
s("div",
|
|
6573
|
+
s("div", bc, [s("button", {
|
|
6558
6574
|
class: "dialog__btn",
|
|
6559
6575
|
onClick: r[3] ||= (e) => t.$emit("close")
|
|
6560
6576
|
}, "Cancel"), s("button", {
|
|
6561
6577
|
class: "dialog__btn dialog__btn--primary",
|
|
6562
6578
|
disabled: !p.value,
|
|
6563
6579
|
onClick: m
|
|
6564
|
-
}, " Split ", 8,
|
|
6580
|
+
}, " Split ", 8, xc)])
|
|
6565
6581
|
]),
|
|
6566
6582
|
_: 1
|
|
6567
6583
|
}, 8, ["open"]));
|
|
6568
6584
|
}
|
|
6569
6585
|
}), [["__scopeId", "data-v-c4c6621c"]]);
|
|
6570
6586
|
//#endregion
|
|
6571
|
-
export {
|
|
6587
|
+
export { Wt as A, Dn as C, yn as D, xn as E, U as F, Jt as M, Z as N, en as O, G as P, In as S, Cn as T, Xn as _, Ss as a, Kn as b, Ia as c, Di as d, ci as f, Zn as g, qn as h, Fs as i, Yt as j, Qt as k, ga as l, ar as m, mc as n, ds as o, Mr as p, oc as r, vo as s, wc as t, ea as u, Yn as v, Tn as w, Hn as x, Q as y };
|