@bagelink/vue 0.0.714 → 0.0.724

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.
Files changed (189) hide show
  1. package/dist/components/Btn.vue.d.ts +3 -3
  2. package/dist/components/Btn.vue.d.ts.map +1 -1
  3. package/dist/components/Carousel.vue.d.ts +1 -1
  4. package/dist/components/ComboBox.vue.d.ts +3 -3
  5. package/dist/components/Comments.vue.d.ts +2 -2
  6. package/dist/components/ContactSubmissions.vue.d.ts +2 -2
  7. package/dist/components/DropDown.vue.d.ts +3 -3
  8. package/dist/components/FormSchema.vue.d.ts +4 -5
  9. package/dist/components/LangText.vue.d.ts +2 -2
  10. package/dist/components/MaterialIcon.vue.d.ts +0 -1
  11. package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
  12. package/dist/components/ModalBglForm.vue.d.ts +20 -21
  13. package/dist/components/PersonPreview.vue.d.ts +4 -5
  14. package/dist/components/PersonPreviewFormkit.vue.d.ts +3 -4
  15. package/dist/components/Popover.vue.d.ts +10 -0
  16. package/dist/components/Popover.vue.d.ts.map +1 -0
  17. package/dist/components/RTXEditor.vue.d.ts +3 -3
  18. package/dist/components/TabbedLayout.vue.d.ts +4 -5
  19. package/dist/components/charts/BarChart.vue.d.ts +2 -2
  20. package/dist/components/form/BglForm.vue.d.ts +1 -1
  21. package/dist/components/form/BglMultiStepForm.vue.d.ts +11 -11
  22. package/dist/components/form/ItemRef.vue.d.ts +3 -5
  23. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  24. package/dist/components/form/MaterialIcon.vue.d.ts +3 -4
  25. package/dist/components/form/PlainInputField.vue.d.ts +3 -3
  26. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
  27. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
  28. package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
  29. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
  30. package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
  31. package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
  32. package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
  33. package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
  34. package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
  35. package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
  36. package/dist/components/form/inputs/Password.vue.d.ts +3 -3
  37. package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
  38. package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
  39. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +1 -1
  40. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
  41. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  42. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
  43. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  44. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
  45. package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
  46. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  47. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  48. package/dist/components/form/inputs/TelInput.vue.d.ts +5 -5
  49. package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
  50. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  51. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  52. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  53. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  54. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  55. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  56. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  57. package/dist/components/lightbox/Lightbox.vue.d.ts +10 -0
  58. package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -0
  59. package/dist/components/lightbox/index.d.ts +6 -0
  60. package/dist/components/lightbox/index.d.ts.map +1 -0
  61. package/dist/components/lightbox/lightbox.types.d.ts +7 -0
  62. package/dist/components/lightbox/lightbox.types.d.ts.map +1 -0
  63. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
  64. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  65. package/dist/index.cjs +334 -141
  66. package/dist/index.mjs +335 -142
  67. package/dist/plugins/bagel.d.ts.map +1 -1
  68. package/dist/style.css +157 -49
  69. package/dist/types/materialIcon.d.ts +2 -0
  70. package/dist/types/materialIcon.d.ts.map +1 -0
  71. package/dist/utils/BagelFormUtils.d.ts +48 -48
  72. package/dist/utils/objects.d.ts +0 -1
  73. package/package.json +1 -1
  74. package/src/components/form/inputs/RichText2/FontWithASyntaxHighlighter-Regular.woff2 +0 -0
  75. package/src/components/form/inputs/RichText2/Toolbar.vue +39 -62
  76. package/src/components/form/inputs/RichText2/index.vue +54 -16
  77. package/src/components/form/inputs/SelectInput.vue +20 -9
  78. package/src/components/lightbox/Lightbox.vue +228 -0
  79. package/src/components/lightbox/index.ts +61 -0
  80. package/src/components/lightbox/lightbox.types.ts +6 -0
  81. package/src/plugins/bagel.ts +2 -2
  82. package/dist/components/Accordion.d.ts +0 -12
  83. package/dist/components/Accordion.d.ts.map +0 -1
  84. package/dist/components/AccordionItem.d.ts +0 -34
  85. package/dist/components/AccordionItem.d.ts.map +0 -1
  86. package/dist/components/Alert.d.ts +0 -34
  87. package/dist/components/Alert.d.ts.map +0 -1
  88. package/dist/components/Avatar.d.ts +0 -36
  89. package/dist/components/Avatar.d.ts.map +0 -1
  90. package/dist/components/Badge.d.ts +0 -22
  91. package/dist/components/Badge.d.ts.map +0 -1
  92. package/dist/components/BglVideo.d.ts +0 -20
  93. package/dist/components/BglVideo.d.ts.map +0 -1
  94. package/dist/components/Btn.d.ts +0 -99
  95. package/dist/components/Btn.d.ts.map +0 -1
  96. package/dist/components/Card.d.ts +0 -39
  97. package/dist/components/Card.d.ts.map +0 -1
  98. package/dist/components/Carousel.d.ts +0 -74
  99. package/dist/components/Carousel.d.ts.map +0 -1
  100. package/dist/components/DataPreview.d.ts +0 -42
  101. package/dist/components/DataPreview.d.ts.map +0 -1
  102. package/dist/components/Drop.vue.d.ts +0 -34
  103. package/dist/components/Drop.vue.d.ts.map +0 -1
  104. package/dist/components/FileUploader.vue.d.ts +0 -60
  105. package/dist/components/FileUploader.vue.d.ts.map +0 -1
  106. package/dist/components/Flag.d.ts +0 -20
  107. package/dist/components/Flag.d.ts.map +0 -1
  108. package/dist/components/ListItem.d.ts +0 -34
  109. package/dist/components/ListItem.d.ts.map +0 -1
  110. package/dist/components/ListView.d.ts +0 -13
  111. package/dist/components/ListView.d.ts.map +0 -1
  112. package/dist/components/MapEmbed.d.ts +0 -3
  113. package/dist/components/MapEmbed.d.ts.map +0 -1
  114. package/dist/components/MaterialIcon.d.ts +0 -26
  115. package/dist/components/MaterialIcon.d.ts.map +0 -1
  116. package/dist/components/Modal.d.ts +0 -46
  117. package/dist/components/Modal.d.ts.map +0 -1
  118. package/dist/components/ModalConfirm.d.ts +0 -24
  119. package/dist/components/ModalConfirm.d.ts.map +0 -1
  120. package/dist/components/ModalForm.d.ts +0 -78
  121. package/dist/components/ModalForm.d.ts.map +0 -1
  122. package/dist/components/NavBar.d.ts +0 -64
  123. package/dist/components/NavBar.d.ts.map +0 -1
  124. package/dist/components/PageTitle.d.ts +0 -24
  125. package/dist/components/PageTitle.d.ts.map +0 -1
  126. package/dist/components/RouterWrapper.d.ts +0 -3
  127. package/dist/components/RouterWrapper.d.ts.map +0 -1
  128. package/dist/components/TableSchema.d.ts +0 -35
  129. package/dist/components/TableSchema.d.ts.map +0 -1
  130. package/dist/components/Title.d.ts +0 -42
  131. package/dist/components/Title.d.ts.map +0 -1
  132. package/dist/components/TopBar.d.ts +0 -12
  133. package/dist/components/TopBar.d.ts.map +0 -1
  134. package/dist/components/dashboard/Lineart.d.ts +0 -20
  135. package/dist/components/dashboard/Lineart.d.ts.map +0 -1
  136. package/dist/components/form/BglField.d.ts +0 -25
  137. package/dist/components/form/BglField.d.ts.map +0 -1
  138. package/dist/components/form/BglForm.d.ts +0 -75
  139. package/dist/components/form/BglForm.d.ts.map +0 -1
  140. package/dist/components/form/inputs/CheckInput.d.ts +0 -56
  141. package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
  142. package/dist/components/form/inputs/Checkbox.d.ts +0 -16
  143. package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
  144. package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
  145. package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
  146. package/dist/components/form/inputs/DateInput.d.ts +0 -64
  147. package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
  148. package/dist/components/form/inputs/DatePicker.d.ts +0 -33
  149. package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
  150. package/dist/components/form/inputs/FileUpload.d.ts +0 -108
  151. package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
  152. package/dist/components/form/inputs/JSONInput.d.ts +0 -53
  153. package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
  154. package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
  155. package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
  156. package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
  157. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
  158. package/dist/components/form/inputs/RichText.d.ts +0 -20
  159. package/dist/components/form/inputs/RichText.d.ts.map +0 -1
  160. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
  161. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
  162. package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
  163. package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
  164. package/dist/components/form/inputs/SelectInput.d.ts +0 -55
  165. package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
  166. package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
  167. package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
  168. package/dist/components/form/inputs/TableField.d.ts +0 -45
  169. package/dist/components/form/inputs/TableField.d.ts.map +0 -1
  170. package/dist/components/form/inputs/TelInput.d.ts +0 -241
  171. package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
  172. package/dist/components/form/inputs/TextInput.d.ts +0 -90
  173. package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
  174. package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
  175. package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
  176. package/dist/components/layout/BottomMenu.d.ts +0 -27
  177. package/dist/components/layout/BottomMenu.d.ts.map +0 -1
  178. package/dist/components/layout/Layout.d.ts +0 -58
  179. package/dist/components/layout/Layout.d.ts.map +0 -1
  180. package/dist/components/layout/SidebarMenu.d.ts +0 -38
  181. package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
  182. package/dist/components/layout/TabbedLayout.d.ts +0 -42
  183. package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
  184. package/dist/components/layout/Tabs.d.ts +0 -31
  185. package/dist/components/layout/Tabs.d.ts.map +0 -1
  186. package/dist/components/layout/TabsBody.d.ts +0 -23
  187. package/dist/components/layout/TabsBody.d.ts.map +0 -1
  188. package/dist/components/layout/TabsNav.d.ts +0 -35
  189. package/dist/components/layout/TabsNav.d.ts.map +0 -1
package/dist/index.cjs CHANGED
@@ -2939,10 +2939,7 @@ function AxiosError(message2, code2, config, request, response) {
2939
2939
  code2 && (this.code = code2);
2940
2940
  config && (this.config = config);
2941
2941
  request && (this.request = request);
2942
- if (response) {
2943
- this.response = response;
2944
- this.status = response.status ? response.status : null;
2945
- }
2942
+ response && (this.response = response);
2946
2943
  }
2947
2944
  utils$1.inherits(AxiosError, Error, {
2948
2945
  toJSON: function toJSON() {
@@ -2961,7 +2958,7 @@ utils$1.inherits(AxiosError, Error, {
2961
2958
  // Axios
2962
2959
  config: utils$1.toJSONObject(this.config),
2963
2960
  code: this.code,
2964
- status: this.status
2961
+ status: this.response && this.response.status ? this.response.status : null
2965
2962
  };
2966
2963
  }
2967
2964
  });
@@ -3242,8 +3239,9 @@ const platform$1 = {
3242
3239
  protocols: ["http", "https", "file", "blob", "url", "data"]
3243
3240
  };
3244
3241
  const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
3245
- const _navigator = typeof navigator === "object" && navigator || void 0;
3246
- const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
3242
+ const hasStandardBrowserEnv = ((product) => {
3243
+ return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
3244
+ })(typeof navigator !== "undefined" && navigator.product);
3247
3245
  const hasStandardBrowserWebWorkerEnv = (() => {
3248
3246
  return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
3249
3247
  self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
@@ -3254,7 +3252,6 @@ const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
3254
3252
  hasBrowserEnv,
3255
3253
  hasStandardBrowserEnv,
3256
3254
  hasStandardBrowserWebWorkerEnv,
3257
- navigator: _navigator,
3258
3255
  origin
3259
3256
  }, Symbol.toStringTag, { value: "Module" }));
3260
3257
  const platform = {
@@ -3830,7 +3827,7 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
3830
3827
  // Standard browser envs have full support of the APIs needed to test
3831
3828
  // whether the request URL is of the same origin as current location.
3832
3829
  function standardBrowserEnv() {
3833
- const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
3830
+ const msie = /(msie|trident)/i.test(navigator.userAgent);
3834
3831
  const urlParsingNode = document.createElement("a");
3835
3832
  let originURL;
3836
3833
  function resolveURL(url) {
@@ -4336,7 +4333,6 @@ const fetchAdapter = isFetchSupported && (async (config) => {
4336
4333
  if (!utils$1.isString(withCredentials)) {
4337
4334
  withCredentials = withCredentials ? "include" : "omit";
4338
4335
  }
4339
- const isCredentialsSupported = "credentials" in Request.prototype;
4340
4336
  request = new Request(url, {
4341
4337
  ...fetchOptions,
4342
4338
  signal: composedSignal,
@@ -4344,7 +4340,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
4344
4340
  headers: headers.normalize().toJSON(),
4345
4341
  body: data2,
4346
4342
  duplex: "half",
4347
- credentials: isCredentialsSupported ? withCredentials : void 0
4343
+ credentials: withCredentials
4348
4344
  });
4349
4345
  let response = await fetch(request);
4350
4346
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
@@ -4488,7 +4484,7 @@ function dispatchRequest(config) {
4488
4484
  return Promise.reject(reason);
4489
4485
  });
4490
4486
  }
4491
- const VERSION = "1.7.5";
4487
+ const VERSION = "1.7.4";
4492
4488
  const validators$1 = {};
4493
4489
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
4494
4490
  validators$1[type3] = function validator2(thing) {
@@ -5151,6 +5147,231 @@ class Bagel {
5151
5147
  return data2;
5152
5148
  }
5153
5149
  }
5150
+ const _withScopeId$3 = (n2) => (vue.pushScopeId("data-v-c003c59a"), n2 = n2(), vue.popScopeId(), n2);
5151
+ const _hoisted_1$N = { class: "lightbox-item" };
5152
+ const _hoisted_2$C = ["src"];
5153
+ const _hoisted_3$p = {
5154
+ key: 1,
5155
+ controls: "",
5156
+ autoplay: ""
5157
+ };
5158
+ const _hoisted_4$h = ["src"];
5159
+ const _hoisted_5$g = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("track", {
5160
+ kind: "captions",
5161
+ src: "#",
5162
+ srclang: "en",
5163
+ label: "English"
5164
+ }, null, -1));
5165
+ const _hoisted_6$b = ["src", "title"];
5166
+ const _hoisted_7$5 = {
5167
+ key: 3,
5168
+ class: "file-info txt-white"
5169
+ };
5170
+ const _hoisted_8$3 = ["href"];
5171
+ const _hoisted_9$3 = { class: "navigation" };
5172
+ const _hoisted_10$2 = {
5173
+ key: 0,
5174
+ class: "thumbnails"
5175
+ };
5176
+ const _hoisted_11$2 = ["src", "onClick"];
5177
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
5178
+ __name: "Lightbox",
5179
+ setup(__props, { expose: __expose }) {
5180
+ let isOpen = vue.ref(false);
5181
+ let currentItem = vue.ref();
5182
+ let group = vue.ref([]);
5183
+ let currentIndex = vue.ref(0);
5184
+ function open(item, groupItems = []) {
5185
+ isOpen.value = true;
5186
+ currentItem.value = item;
5187
+ if (!groupItems.length) return;
5188
+ group.value = groupItems;
5189
+ currentIndex.value = groupItems.indexOf(item);
5190
+ document.addEventListener("keydown", handleKeydown);
5191
+ }
5192
+ function close2() {
5193
+ isOpen.value = false;
5194
+ document.removeEventListener("keydown", handleKeydown);
5195
+ }
5196
+ function next() {
5197
+ if (group.value.length > 1) {
5198
+ currentIndex.value = (currentIndex.value + 1) % group.value.length;
5199
+ currentItem.value = group.value[currentIndex.value];
5200
+ }
5201
+ }
5202
+ function prev() {
5203
+ if (group.value.length > 1) {
5204
+ currentIndex.value = (currentIndex.value - 1 + group.value.length) % group.value.length;
5205
+ currentItem.value = group.value[currentIndex.value];
5206
+ }
5207
+ }
5208
+ function selectItem(index2) {
5209
+ currentIndex.value = index2;
5210
+ currentItem.value = group.value[index2];
5211
+ }
5212
+ vue.watch(() => isOpen.value, (val) => {
5213
+ if (val) document.body.style.overflow = "hidden";
5214
+ else document.body.style.overflow = "";
5215
+ });
5216
+ function normalizeURL(url) {
5217
+ if (url.startsWith("https://")) return url;
5218
+ url = url.replace(/http:\/\//, "");
5219
+ return `//${url}`;
5220
+ }
5221
+ function handleKeydown(event) {
5222
+ if (event.key === "Escape") {
5223
+ close2();
5224
+ } else if (event.key === "ArrowLeft") {
5225
+ prev();
5226
+ } else if (event.key === "ArrowRight") {
5227
+ next();
5228
+ }
5229
+ }
5230
+ __expose({ open, close: close2 });
5231
+ return (_ctx, _cache) => {
5232
+ var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
5233
+ return vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
5234
+ key: 0,
5235
+ class: "lightbox-overlay",
5236
+ onKeydown: [
5237
+ vue.withKeys(close2, ["esc"]),
5238
+ vue.withKeys(prev, ["left"]),
5239
+ vue.withKeys(next, ["right"])
5240
+ ],
5241
+ onClick: close2
5242
+ }, [
5243
+ vue.createElementVNode("div", {
5244
+ class: "lightbox",
5245
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
5246
+ }, ["stop"]))
5247
+ }, [
5248
+ vue.createVNode(vue.unref(Btn), {
5249
+ flat: "",
5250
+ class: "close-button color-white",
5251
+ icon: "close",
5252
+ onClick: close2
5253
+ }),
5254
+ vue.createElementVNode("div", _hoisted_1$N, [
5255
+ ((_a2 = vue.unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (vue.openBlock(), vue.createElementBlock("img", {
5256
+ key: 0,
5257
+ src: (_b = vue.unref(currentItem)) == null ? void 0 : _b.src,
5258
+ alt: "Preview"
5259
+ }, null, 8, _hoisted_2$C)) : ((_c = vue.unref(currentItem)) == null ? void 0 : _c.type) === "video" ? (vue.openBlock(), vue.createElementBlock("video", _hoisted_3$p, [
5260
+ vue.createElementVNode("source", {
5261
+ src: (_d = vue.unref(currentItem)) == null ? void 0 : _d.src,
5262
+ type: "video/mp4"
5263
+ }, null, 8, _hoisted_4$h),
5264
+ _hoisted_5$g
5265
+ ])) : ((_e2 = vue.unref(currentItem)) == null ? void 0 : _e2.type) === "pdf" ? (vue.openBlock(), vue.createElementBlock("embed", {
5266
+ key: 2,
5267
+ src: normalizeURL((_f = vue.unref(currentItem)) == null ? void 0 : _f.src),
5268
+ type: "application/pdf",
5269
+ width: "100%",
5270
+ height: "1080",
5271
+ title: (_g = vue.unref(currentItem)) == null ? void 0 : _g.name
5272
+ }, null, 8, _hoisted_6$b)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$5, [
5273
+ vue.createElementVNode("p", null, "File: " + vue.toDisplayString((_h = vue.unref(currentItem)) == null ? void 0 : _h.name), 1),
5274
+ vue.createElementVNode("p", null, "Type: " + vue.toDisplayString((_i = vue.unref(currentItem)) == null ? void 0 : _i.type), 1),
5275
+ vue.createElementVNode("a", {
5276
+ href: (_j = vue.unref(currentItem)) == null ? void 0 : _j.src,
5277
+ target: "_blank"
5278
+ }, "Open file", 8, _hoisted_8$3)
5279
+ ]))
5280
+ ]),
5281
+ vue.createElementVNode("div", _hoisted_9$3, [
5282
+ vue.createVNode(vue.unref(Btn), {
5283
+ class: "navigation-btn",
5284
+ icon: "arrow_back",
5285
+ onClick: prev
5286
+ }),
5287
+ vue.createVNode(vue.unref(Btn), {
5288
+ class: "navigation-btn",
5289
+ icon: "arrow_forward",
5290
+ onClick: next
5291
+ })
5292
+ ]),
5293
+ vue.unref(group) && vue.unref(group).length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$2, [
5294
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(group), (item, index2) => {
5295
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
5296
+ item.type === "image" ? (vue.openBlock(), vue.createElementBlock("img", {
5297
+ key: 0,
5298
+ class: "thumbnail",
5299
+ src: item.src,
5300
+ alt: "",
5301
+ onClick: ($event) => selectItem(index2)
5302
+ }, null, 8, _hoisted_11$2)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
5303
+ key: 1,
5304
+ class: "thumbnail",
5305
+ icon: "description",
5306
+ onClick: ($event) => selectItem(index2)
5307
+ }, null, 8, ["onClick"]))
5308
+ ], 64);
5309
+ }), 128))
5310
+ ])) : vue.createCommentVNode("", true)
5311
+ ])
5312
+ ], 32)) : vue.createCommentVNode("", true);
5313
+ };
5314
+ }
5315
+ });
5316
+ const _export_sfc = (sfc, props2) => {
5317
+ const target = sfc.__vccOpts || sfc;
5318
+ for (const [key, val] of props2) {
5319
+ target[key] = val;
5320
+ }
5321
+ return target;
5322
+ };
5323
+ const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-c003c59a"]]);
5324
+ const groups = {};
5325
+ const lightboxDirective = {
5326
+ mounted(el, binding) {
5327
+ const lightboxInstance = createLightboxInstance();
5328
+ if (!lightboxInstance || !lightboxInstance.open) return;
5329
+ if (binding.value.group) {
5330
+ if (!groups[binding.value.group]) groups[binding.value.group] = [];
5331
+ groups[binding.value.group].push({
5332
+ src: binding.value.src || binding.value,
5333
+ type: binding.value.type || determineFileType(binding.value.src || binding.value),
5334
+ name: binding.value.name || ""
5335
+ });
5336
+ }
5337
+ el.addEventListener("click", () => {
5338
+ const group = binding.value.group || null;
5339
+ const item = {
5340
+ src: binding.value.src || binding.value,
5341
+ type: binding.value.type || determineFileType(binding.value.src || binding.value),
5342
+ name: binding.value.name || "",
5343
+ thumbnail: binding.value.thumbnail || ""
5344
+ };
5345
+ const lightboxInstance2 = createLightboxInstance();
5346
+ if (!lightboxInstance2 || !lightboxInstance2.open) return;
5347
+ if (binding.value.group) {
5348
+ if (!groups[binding.value.group]) groups[binding.value.group] = [];
5349
+ groups[binding.value.group].push(item);
5350
+ }
5351
+ const open = lightboxInstance2.open;
5352
+ open(item, groups[group]);
5353
+ });
5354
+ }
5355
+ };
5356
+ function determineFileType(url) {
5357
+ var _a2;
5358
+ const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
5359
+ if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
5360
+ if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
5361
+ if (["pdf"].includes(extension)) return "pdf";
5362
+ return "unknown";
5363
+ }
5364
+ function createLightboxInstance() {
5365
+ const lightboxEl = document.createElement("div");
5366
+ document.body.prepend(lightboxEl);
5367
+ const app = vue.createApp(Lightbox$1);
5368
+ return app.mount(lightboxEl);
5369
+ }
5370
+ const Lightbox = {
5371
+ install(app) {
5372
+ app.directive("lightbox", lightboxDirective);
5373
+ }
5374
+ };
5154
5375
  const clickOutside = {
5155
5376
  beforeMount(el, binding) {
5156
5377
  el.clickOutsideEvent = (event) => {
@@ -5442,6 +5663,7 @@ const BagelVue = {
5442
5663
  install: (app, options) => {
5443
5664
  const bagel = new Bagel({ host: options.host, onError: options.onError });
5444
5665
  app.directive("click-outside", clickOutside);
5666
+ app.use(Lightbox);
5445
5667
  app.use(Gt$1, {
5446
5668
  themes: {
5447
5669
  "bgl-theme": {
@@ -5648,13 +5870,6 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
5648
5870
  };
5649
5871
  }
5650
5872
  });
5651
- const _export_sfc = (sfc, props2) => {
5652
- const target = sfc.__vccOpts || sfc;
5653
- for (const [key, val] of props2) {
5654
- target[key] = val;
5655
- }
5656
- return target;
5657
- };
5658
5873
  const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-776cab4a"]]);
5659
5874
  const _hoisted_1$L = {
5660
5875
  key: 0,
@@ -6500,7 +6715,7 @@ const _hoisted_3$k = [
6500
6715
  const _hoisted_4$e = { class: "infinite-wrapper" };
6501
6716
  const _hoisted_5$e = { class: "row first-row" };
6502
6717
  const _hoisted_6$9 = { key: 0 };
6503
- const _hoisted_7$5 = ["onClick"];
6718
+ const _hoisted_7$4 = ["onClick"];
6504
6719
  const _hoisted_8$2 = { class: "flex" };
6505
6720
  const _hoisted_9$2 = ["onClick"];
6506
6721
  const _hoisted_10$1 = { key: 0 };
@@ -6673,7 +6888,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
6673
6888
  }, null, 8, ["class"])
6674
6889
  ], 2)
6675
6890
  ])
6676
- ], 8, _hoisted_7$5);
6891
+ ], 8, _hoisted_7$4);
6677
6892
  }), 128))
6678
6893
  ]),
6679
6894
  vue.createElementVNode("tbody", null, [
@@ -6772,7 +6987,7 @@ const _hoisted_6$8 = {
6772
6987
  key: 0,
6773
6988
  class: "data-row"
6774
6989
  };
6775
- const _hoisted_7$4 = { class: "key" };
6990
+ const _hoisted_7$3 = { class: "key" };
6776
6991
  const _hoisted_8$1 = { class: "m-0" };
6777
6992
  const _hoisted_9$1 = {
6778
6993
  key: 0,
@@ -6841,7 +7056,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6841
7056
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, ({ id, label }) => {
6842
7057
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: id }, [
6843
7058
  !isUnset(itemData.value[id]) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$8, [
6844
- vue.createElementVNode("div", _hoisted_7$4, [
7059
+ vue.createElementVNode("div", _hoisted_7$3, [
6845
7060
  vue.createElementVNode("p", _hoisted_8$1, vue.toDisplayString(label), 1)
6846
7061
  ]),
6847
7062
  vue.createElementVNode("div", null, [
@@ -16319,8 +16534,7 @@ const _hoisted_4$c = {
16319
16534
  class: "ms-auto ps-05 me-05"
16320
16535
  };
16321
16536
  const _hoisted_5$c = ["value"];
16322
- const _hoisted_6$7 = { class: "selectinput-options" };
16323
- const _hoisted_7$3 = ["aria-selected", "onClick", "onKeydown"];
16537
+ const _hoisted_6$7 = ["aria-selected", "onClick", "onKeydown"];
16324
16538
  const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
16325
16539
  __name: "SelectInput",
16326
16540
  props: {
@@ -16485,7 +16699,9 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
16485
16699
  placeholder: "Search",
16486
16700
  icon: "search"
16487
16701
  }, null, 8, ["modelValue"])) : vue.createCommentVNode("", true),
16488
- vue.createElementVNode("div", _hoisted_6$7, [
16702
+ vue.createElementVNode("div", {
16703
+ class: vue.normalizeClass(["selectinput-options", { multiselect: _ctx.multiselect }])
16704
+ }, [
16489
16705
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filteredOptions.value, (option2, i2) => {
16490
16706
  return vue.openBlock(), vue.createElementBlock("div", {
16491
16707
  key: `${option2}${i2}`,
@@ -16496,19 +16712,21 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
16496
16712
  onClick: ($event) => select2(option2),
16497
16713
  onKeydown: vue.withKeys(($event) => select2(option2), ["enter"])
16498
16714
  }, [
16499
- isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
16500
- key: 0,
16501
- icon: "check"
16502
- })) : vue.createCommentVNode("", true),
16503
- !isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
16504
- key: 1,
16505
- class: "opacity-3",
16506
- icon: "fiber_manual_record"
16507
- })) : vue.createCommentVNode("", true),
16715
+ _ctx.multiselect ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
16716
+ isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
16717
+ key: 0,
16718
+ icon: "select_check_box"
16719
+ })) : vue.createCommentVNode("", true),
16720
+ !isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
16721
+ key: 1,
16722
+ class: "opacity-3",
16723
+ icon: "check_box_outline_blank"
16724
+ })) : vue.createCommentVNode("", true)
16725
+ ], 64)) : vue.createCommentVNode("", true),
16508
16726
  vue.createElementVNode("span", null, vue.toDisplayString(getLabel(option2)), 1)
16509
- ], 42, _hoisted_7$3);
16727
+ ], 42, _hoisted_6$7);
16510
16728
  }), 128))
16511
- ]),
16729
+ ], 2),
16512
16730
  vue.renderSlot(_ctx.$slots, "last", {}, void 0, true)
16513
16731
  ]),
16514
16732
  _: 3
@@ -16532,9 +16750,10 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
16532
16750
  !_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$g, vue.toDisplayString(selectedLabel.value), 1)) : vue.createCommentVNode("", true),
16533
16751
  _ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c, [
16534
16752
  vue.createVNode(vue.unref(Btn), {
16753
+ flat: "",
16535
16754
  thin: "",
16536
16755
  icon: "clear",
16537
- class: "color-primary bg-gray-20",
16756
+ class: "color-gray",
16538
16757
  onClick: _cache[0] || (_cache[0] = ($event) => {
16539
16758
  vue.isRef(selectedItems) ? selectedItems.value = [] : selectedItems = [];
16540
16759
  emitUpdate();
@@ -16562,7 +16781,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
16562
16781
  };
16563
16782
  }
16564
16783
  });
16565
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-a26862a2"]]);
16784
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-25fde24f"]]);
16566
16785
  /*!
16567
16786
  * vue-draggable-next v2.2.0
16568
16787
  * (c) 2023 Anish George
@@ -33242,11 +33461,7 @@ function createNodeFromContent(content, schema, options) {
33242
33461
  if (isArrayContent) {
33243
33462
  return Fragment.fromArray(content.map((item) => schema.nodeFromJSON(item)));
33244
33463
  }
33245
- const node = schema.nodeFromJSON(content);
33246
- if (options.errorOnInvalidContent) {
33247
- node.check();
33248
- }
33249
- return node;
33464
+ return schema.nodeFromJSON(content);
33250
33465
  } catch (error) {
33251
33466
  if (options.errorOnInvalidContent) {
33252
33467
  throw new Error("[tiptap error]: Invalid JSON content", { cause: error });
@@ -46425,7 +46640,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
46425
46640
  });
46426
46641
  const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9d176183"]]);
46427
46642
  /*!
46428
- * Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
46643
+ * Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
46429
46644
  * (c) 2024 Szymon Nowak | Released under the MIT license
46430
46645
  */
46431
46646
  class Point {
@@ -46465,7 +46680,7 @@ class Bezier {
46465
46680
  const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
46466
46681
  const dxm = m1.x - m2.x;
46467
46682
  const dym = m1.y - m2.y;
46468
- const k2 = l1 + l2 == 0 ? 0 : l2 / (l1 + l2);
46683
+ const k2 = l2 / (l1 + l2);
46469
46684
  const cm = { x: m2.x + dxm * k2, y: m2.y + dym * k2 };
46470
46685
  const tx = s2.x - cm.x;
46471
46686
  const ty = s2.y - cm.y;
@@ -47156,7 +47371,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
47156
47371
  }
47157
47372
  });
47158
47373
  const _hoisted_1$f = {
47159
- class: "toolbar",
47374
+ class: "toolbar flex gap-025 pb-05 flex-wrap",
47160
47375
  role: "toolbar"
47161
47376
  };
47162
47377
  const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
@@ -47167,82 +47382,58 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
47167
47382
  emits: ["action"],
47168
47383
  setup(__props, { emit: __emit }) {
47169
47384
  const emit2 = __emit;
47170
- const colorPicker = vue.ref(null);
47171
- const fontSizeInput = vue.ref(null);
47385
+ vue.ref(null);
47386
+ vue.ref(null);
47172
47387
  const toolbarOptions = [
47388
+ { name: "separator" },
47173
47389
  { name: "bold", icon: "format_bold" },
47174
47390
  { name: "italic", icon: "format_italic" },
47175
47391
  { name: "underline", icon: "format_underlined" },
47176
- { name: "fontSize", icon: "format_size" },
47177
- { name: "fontFamily", icon: "font_download" },
47178
- { name: "textColor", icon: "text_format" },
47179
- { name: "backgroundColor", icon: "format_color_fill" },
47180
- { name: "alignLeft", icon: "format_align_left" },
47181
- { name: "alignCenter", icon: "format_align_center" },
47182
- { name: "alignRight", icon: "format_align_right" },
47183
- { name: "alignJustify", icon: "format_align_justify" },
47392
+ { name: "separator" },
47184
47393
  { name: "orderedList", icon: "format_list_numbered" },
47185
47394
  { name: "unorderedList", icon: "format_list_bulleted" },
47186
- { name: "indent", icon: "format_indent_increase" },
47187
- { name: "outdent", icon: "format_indent_decrease" },
47188
- { name: "link", icon: "link" },
47189
- { name: "image", icon: "image" },
47190
- { name: "table", icon: "table_chart" },
47191
- { name: "blockquote", icon: "format_quote" },
47192
- { name: "codeBlock", icon: "code" },
47193
- { name: "splitView", icon: "splitscreen_right" },
47194
- { name: "codeView", icon: "code" }
47395
+ { name: "separator" },
47396
+ { name: "link", icon: "add_link" },
47397
+ { name: "image", icon: "add_photo_alternate" },
47398
+ { name: "youtube", icon: "youtube_activity" },
47399
+ { name: "separator" },
47400
+ { name: "splitView", icon: "code" },
47401
+ { name: "clear", icon: "format_clear" }
47195
47402
  ];
47196
- function handleColorPick(type3) {
47197
- var _a2;
47198
- const color2 = (_a2 = colorPicker.value) == null ? void 0 : _a2.value;
47199
- if (color2) {
47200
- emit2("action", type3, color2);
47201
- }
47202
- }
47203
- function handleFontSizeChange() {
47204
- var _a2;
47205
- const size2 = (_a2 = fontSizeInput.value) == null ? void 0 : _a2.value;
47206
- if (size2) {
47207
- emit2("action", "fontSize", size2);
47208
- }
47403
+ function handleSelectChange(selectedOption) {
47404
+ emit2("action", "formatBlock", selectedOption);
47209
47405
  }
47210
47406
  return (_ctx, _cache) => {
47211
47407
  const _directive_tooltip = vue.resolveDirective("tooltip");
47212
47408
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
47213
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(toolbarOptions.filter((t) => _ctx.config.includes(t.name)), (action) => {
47214
- return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(Btn), {
47215
- key: action.name,
47216
- thin: "",
47217
- color: "light",
47218
- "aria-label": action.name,
47219
- icon: action.icon,
47220
- onClick: ($event) => emit2("action", action.name)
47221
- }, null, 8, ["aria-label", "icon", "onClick"])), [
47222
- [_directive_tooltip, action.name]
47223
- ]);
47224
- }), 128)),
47225
- _ctx.config.includes("textColor") || _ctx.config.includes("backgroundColor") ? (vue.openBlock(), vue.createElementBlock("input", {
47226
- key: 0,
47227
- ref_key: "colorPicker",
47228
- ref: colorPicker,
47229
- type: "color",
47230
- onChange: _cache[0] || (_cache[0] = ($event) => handleColorPick(_ctx.config.includes("textColor") ? "textColor" : "backgroundColor"))
47231
- }, null, 544)) : vue.createCommentVNode("", true),
47232
- _ctx.config.includes("fontSize") ? (vue.openBlock(), vue.createElementBlock("input", {
47233
- key: 1,
47234
- ref_key: "fontSizeInput",
47235
- ref: fontSizeInput,
47236
- type: "number",
47237
- min: "1",
47238
- max: "7",
47239
- onChange: handleFontSizeChange
47240
- }, null, 544)) : vue.createCommentVNode("", true)
47409
+ vue.createVNode(SelectInput, {
47410
+ class: "m-0 w150",
47411
+ options: ["Text", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Heading 5", "Heading 6", "Blockquote", "Code"],
47412
+ onChange: handleSelectChange
47413
+ }),
47414
+ (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(toolbarOptions, (action, index2) => {
47415
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
47416
+ action.name !== "separator" && _ctx.config.includes(action.name) ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(Btn), {
47417
+ key: action.name,
47418
+ thin: "",
47419
+ flat: "",
47420
+ class: "rounded",
47421
+ "aria-label": action.name,
47422
+ icon: action.icon,
47423
+ onClick: ($event) => emit2("action", action.name)
47424
+ }, null, 8, ["aria-label", "icon", "onClick"])), [
47425
+ [_directive_tooltip, action.name]
47426
+ ]) : vue.createCommentVNode("", true),
47427
+ action.name === "separator" ? (vue.openBlock(), vue.createElementBlock("span", {
47428
+ key: `separator-${index2}`,
47429
+ class: "opacity-2 mb-025"
47430
+ }, "|")) : vue.createCommentVNode("", true)
47431
+ ], 64);
47432
+ }), 64))
47241
47433
  ]);
47242
47434
  };
47243
47435
  }
47244
47436
  });
47245
- const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-4c741194"]]);
47246
47437
  function applyFormatting(command2, value = "") {
47247
47438
  const selection = window.getSelection();
47248
47439
  if (selection && selection.rangeCount > 0) {
@@ -47415,8 +47606,11 @@ function createTable() {
47415
47606
  }
47416
47607
  }
47417
47608
  }
47418
- const _hoisted_1$e = { class: "rich-text-editor" };
47419
- const _hoisted_2$b = ["innerHTML"];
47609
+ const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
47610
+ const _hoisted_2$b = {
47611
+ key: 0,
47612
+ class: "preview-area bg-black color-white w-100 rounded p-1"
47613
+ };
47420
47614
  const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
47421
47615
  __name: "index",
47422
47616
  props: {
@@ -47450,7 +47644,9 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
47450
47644
  "blockquote",
47451
47645
  "codeBlock",
47452
47646
  "splitView",
47453
- "codeView"
47647
+ "youtube",
47648
+ "codeView",
47649
+ "clear"
47454
47650
  ];
47455
47651
  const config = vue.ref(props2.toolbarConfig || defaultConfig2);
47456
47652
  let contentHtml = vue.ref(props2.modelValue);
@@ -47533,15 +47729,15 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
47533
47729
  }
47534
47730
  return (_ctx, _cache) => {
47535
47731
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
47536
- vue.createVNode(Toolbar, {
47732
+ vue.createVNode(_sfc_main$a, {
47537
47733
  config: config.value,
47538
47734
  onAction: handleToolbarAction
47539
47735
  }, null, 8, ["config"]),
47540
47736
  vue.createElementVNode("div", {
47541
- class: vue.normalizeClass(["editor-container", { "split-view": vue.unref(isSplitView) }])
47737
+ class: vue.normalizeClass(["editor-container flex flex-stretch", { "split-view": vue.unref(isSplitView) }])
47542
47738
  }, [
47543
47739
  vue.createElementVNode("div", {
47544
- class: vue.normalizeClass(["content-area", { "code-view": vue.unref(isCodeView) }])
47740
+ class: vue.normalizeClass(["content-area rounded p-1 bg-white shadow-light w-100 grid", { "code-view": vue.unref(isCodeView) }])
47545
47741
  }, [
47546
47742
  vue.unref(isCodeView) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
47547
47743
  key: 0,
@@ -47554,6 +47750,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
47554
47750
  ref_key: "editableContent",
47555
47751
  ref: editableContent,
47556
47752
  contenteditable: "true",
47753
+ class: "editableContent",
47557
47754
  role: "textbox",
47558
47755
  "aria-multiline": "true",
47559
47756
  tabindex: "0",
@@ -47561,17 +47758,13 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
47561
47758
  onKeydown: handleKeyDown2
47562
47759
  }, null, 544))
47563
47760
  ], 2),
47564
- vue.unref(isSplitView) ? (vue.openBlock(), vue.createElementBlock("div", {
47565
- key: 0,
47566
- class: "preview-area",
47567
- innerHTML: vue.unref(contentHtml)
47568
- }, null, 8, _hoisted_2$b)) : vue.createCommentVNode("", true)
47761
+ vue.unref(isSplitView) ? (vue.openBlock(), vue.createElementBlock("code", _hoisted_2$b, vue.toDisplayString(vue.unref(contentHtml)), 1)) : vue.createCommentVNode("", true)
47569
47762
  ], 2)
47570
47763
  ]);
47571
47764
  };
47572
47765
  }
47573
47766
  });
47574
- const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-e3cd444d"]]);
47767
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ee96aa53"]]);
47575
47768
  const _hoisted_1$d = ["for"];
47576
47769
  const _hoisted_2$a = ["id", "name", "value"];
47577
47770
  const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
@@ -50740,8 +50933,8 @@ function selector(selector2) {
50740
50933
  }
50741
50934
  function selection_select(select2) {
50742
50935
  if (typeof select2 !== "function") select2 = selector(select2);
50743
- for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50744
- for (var group = groups[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node, subnode, i2 = 0; i2 < n2; ++i2) {
50936
+ for (var groups2 = this._groups, m2 = groups2.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50937
+ for (var group = groups2[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node, subnode, i2 = 0; i2 < n2; ++i2) {
50745
50938
  if ((node = group[i2]) && (subnode = select2.call(node, node.__data__, i2, group))) {
50746
50939
  if ("__data__" in node) subnode.__data__ = node.__data__;
50747
50940
  subgroup[i2] = subnode;
@@ -50769,8 +50962,8 @@ function arrayAll(select2) {
50769
50962
  function selection_selectAll(select2) {
50770
50963
  if (typeof select2 === "function") select2 = arrayAll(select2);
50771
50964
  else select2 = selectorAll(select2);
50772
- for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
50773
- for (var group = groups[j2], n2 = group.length, node, i2 = 0; i2 < n2; ++i2) {
50965
+ for (var groups2 = this._groups, m2 = groups2.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
50966
+ for (var group = groups2[j2], n2 = group.length, node, i2 = 0; i2 < n2; ++i2) {
50774
50967
  if (node = group[i2]) {
50775
50968
  subgroups.push(select2.call(node, node.__data__, i2, group));
50776
50969
  parents.push(node);
@@ -50815,8 +51008,8 @@ function selection_selectChildren(match2) {
50815
51008
  }
50816
51009
  function selection_filter(match2) {
50817
51010
  if (typeof match2 !== "function") match2 = matcher(match2);
50818
- for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50819
- for (var group = groups[j2], n2 = group.length, subgroup = subgroups[j2] = [], node, i2 = 0; i2 < n2; ++i2) {
51011
+ for (var groups2 = this._groups, m2 = groups2.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
51012
+ for (var group = groups2[j2], n2 = group.length, subgroup = subgroups[j2] = [], node, i2 = 0; i2 < n2; ++i2) {
50820
51013
  if ((node = group[i2]) && match2.call(node, node.__data__, i2, group)) {
50821
51014
  subgroup.push(node);
50822
51015
  }
@@ -50906,10 +51099,10 @@ function datum(node) {
50906
51099
  }
50907
51100
  function selection_data(value, key) {
50908
51101
  if (!arguments.length) return Array.from(this, datum);
50909
- var bind3 = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
51102
+ var bind3 = key ? bindKey : bindIndex, parents = this._parents, groups2 = this._groups;
50910
51103
  if (typeof value !== "function") value = constant$1(value);
50911
- for (var m2 = groups.length, update = new Array(m2), enter2 = new Array(m2), exit = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50912
- var parent = parents[j2], group = groups[j2], groupLength = group.length, data2 = arraylike(value.call(parent, parent && parent.__data__, j2, parents)), dataLength = data2.length, enterGroup = enter2[j2] = new Array(dataLength), updateGroup = update[j2] = new Array(dataLength), exitGroup = exit[j2] = new Array(groupLength);
51104
+ for (var m2 = groups2.length, update = new Array(m2), enter2 = new Array(m2), exit = new Array(m2), j2 = 0; j2 < m2; ++j2) {
51105
+ var parent = parents[j2], group = groups2[j2], groupLength = group.length, data2 = arraylike(value.call(parent, parent && parent.__data__, j2, parents)), dataLength = data2.length, enterGroup = enter2[j2] = new Array(dataLength), updateGroup = update[j2] = new Array(dataLength), exitGroup = exit[j2] = new Array(groupLength);
50913
51106
  bind3(parent, group, enterGroup, updateGroup, exitGroup, data2, key);
50914
51107
  for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
50915
51108
  if (previous = enterGroup[i0]) {
@@ -50961,8 +51154,8 @@ function selection_merge(context) {
50961
51154
  return new Selection(merges, this._parents);
50962
51155
  }
50963
51156
  function selection_order() {
50964
- for (var groups = this._groups, j2 = -1, m2 = groups.length; ++j2 < m2; ) {
50965
- for (var group = groups[j2], i2 = group.length - 1, next = group[i2], node; --i2 >= 0; ) {
51157
+ for (var groups2 = this._groups, j2 = -1, m2 = groups2.length; ++j2 < m2; ) {
51158
+ for (var group = groups2[j2], i2 = group.length - 1, next = group[i2], node; --i2 >= 0; ) {
50966
51159
  if (node = group[i2]) {
50967
51160
  if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
50968
51161
  next = node;
@@ -50976,8 +51169,8 @@ function selection_sort(compare2) {
50976
51169
  function compareNode(a2, b2) {
50977
51170
  return a2 && b2 ? compare2(a2.__data__, b2.__data__) : !a2 - !b2;
50978
51171
  }
50979
- for (var groups = this._groups, m2 = groups.length, sortgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50980
- for (var group = groups[j2], n2 = group.length, sortgroup = sortgroups[j2] = new Array(n2), node, i2 = 0; i2 < n2; ++i2) {
51172
+ for (var groups2 = this._groups, m2 = groups2.length, sortgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
51173
+ for (var group = groups2[j2], n2 = group.length, sortgroup = sortgroups[j2] = new Array(n2), node, i2 = 0; i2 < n2; ++i2) {
50981
51174
  if (node = group[i2]) {
50982
51175
  sortgroup[i2] = node;
50983
51176
  }
@@ -50999,8 +51192,8 @@ function selection_nodes() {
50999
51192
  return Array.from(this);
51000
51193
  }
51001
51194
  function selection_node() {
51002
- for (var groups = this._groups, j2 = 0, m2 = groups.length; j2 < m2; ++j2) {
51003
- for (var group = groups[j2], i2 = 0, n2 = group.length; i2 < n2; ++i2) {
51195
+ for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
51196
+ for (var group = groups2[j2], i2 = 0, n2 = group.length; i2 < n2; ++i2) {
51004
51197
  var node = group[i2];
51005
51198
  if (node) return node;
51006
51199
  }
@@ -51016,8 +51209,8 @@ function selection_empty() {
51016
51209
  return !this.node();
51017
51210
  }
51018
51211
  function selection_each(callback) {
51019
- for (var groups = this._groups, j2 = 0, m2 = groups.length; j2 < m2; ++j2) {
51020
- for (var group = groups[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51212
+ for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
51213
+ for (var group = groups2[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51021
51214
  if (node = group[i2]) callback.call(node, node.__data__, i2, group);
51022
51215
  }
51023
51216
  }
@@ -51340,15 +51533,15 @@ function selection_dispatch(type3, params) {
51340
51533
  return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type3, params));
51341
51534
  }
51342
51535
  function* selection_iterator() {
51343
- for (var groups = this._groups, j2 = 0, m2 = groups.length; j2 < m2; ++j2) {
51344
- for (var group = groups[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51536
+ for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
51537
+ for (var group = groups2[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51345
51538
  if (node = group[i2]) yield node;
51346
51539
  }
51347
51540
  }
51348
51541
  }
51349
51542
  var root = [null];
51350
- function Selection(groups, parents) {
51351
- this._groups = groups;
51543
+ function Selection(groups2, parents) {
51544
+ this._groups = groups2;
51352
51545
  this._parents = parents;
51353
51546
  }
51354
51547
  function selection_selection() {