@bagelink/vue 0.0.716 → 0.0.726

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 (187) 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/FileUpload.vue.d.ts.map +1 -1
  32. package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
  33. package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
  34. package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
  35. package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
  36. package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
  37. package/dist/components/form/inputs/Password.vue.d.ts +3 -3
  38. package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
  39. package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
  40. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +1 -1
  41. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
  42. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  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/TelInput.vue.d.ts +5 -5
  48. package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
  49. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  50. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  51. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  52. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  53. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  54. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  55. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  56. package/dist/components/lightbox/Lightbox.vue.d.ts +10 -0
  57. package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -0
  58. package/dist/components/lightbox/index.d.ts +6 -0
  59. package/dist/components/lightbox/index.d.ts.map +1 -0
  60. package/dist/components/lightbox/lightbox.types.d.ts +7 -0
  61. package/dist/components/lightbox/lightbox.types.d.ts.map +1 -0
  62. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
  63. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  64. package/dist/index.cjs +271 -53
  65. package/dist/index.mjs +272 -54
  66. package/dist/plugins/bagel.d.ts.map +1 -1
  67. package/dist/style.css +142 -44
  68. package/dist/types/materialIcon.d.ts +2 -0
  69. package/dist/types/materialIcon.d.ts.map +1 -0
  70. package/dist/utils/BagelFormUtils.d.ts +48 -48
  71. package/dist/utils/objects.d.ts +0 -1
  72. package/package.json +1 -1
  73. package/src/components/form/inputs/FileUpload.vue +2 -2
  74. package/src/components/form/inputs/RichText2/FontWithASyntaxHighlighter-Regular.woff2 +0 -0
  75. package/src/components/form/inputs/RichText2/index.vue +31 -11
  76. package/src/components/lightbox/Lightbox.vue +228 -0
  77. package/src/components/lightbox/index.ts +63 -0
  78. package/src/components/lightbox/lightbox.types.ts +6 -0
  79. package/src/plugins/bagel.ts +2 -2
  80. package/dist/components/Accordion.d.ts +0 -12
  81. package/dist/components/Accordion.d.ts.map +0 -1
  82. package/dist/components/AccordionItem.d.ts +0 -34
  83. package/dist/components/AccordionItem.d.ts.map +0 -1
  84. package/dist/components/Alert.d.ts +0 -34
  85. package/dist/components/Alert.d.ts.map +0 -1
  86. package/dist/components/Avatar.d.ts +0 -36
  87. package/dist/components/Avatar.d.ts.map +0 -1
  88. package/dist/components/Badge.d.ts +0 -22
  89. package/dist/components/Badge.d.ts.map +0 -1
  90. package/dist/components/BglVideo.d.ts +0 -20
  91. package/dist/components/BglVideo.d.ts.map +0 -1
  92. package/dist/components/Btn.d.ts +0 -99
  93. package/dist/components/Btn.d.ts.map +0 -1
  94. package/dist/components/Card.d.ts +0 -39
  95. package/dist/components/Card.d.ts.map +0 -1
  96. package/dist/components/Carousel.d.ts +0 -74
  97. package/dist/components/Carousel.d.ts.map +0 -1
  98. package/dist/components/DataPreview.d.ts +0 -42
  99. package/dist/components/DataPreview.d.ts.map +0 -1
  100. package/dist/components/Drop.vue.d.ts +0 -34
  101. package/dist/components/Drop.vue.d.ts.map +0 -1
  102. package/dist/components/FileUploader.vue.d.ts +0 -60
  103. package/dist/components/FileUploader.vue.d.ts.map +0 -1
  104. package/dist/components/Flag.d.ts +0 -20
  105. package/dist/components/Flag.d.ts.map +0 -1
  106. package/dist/components/ListItem.d.ts +0 -34
  107. package/dist/components/ListItem.d.ts.map +0 -1
  108. package/dist/components/ListView.d.ts +0 -13
  109. package/dist/components/ListView.d.ts.map +0 -1
  110. package/dist/components/MapEmbed.d.ts +0 -3
  111. package/dist/components/MapEmbed.d.ts.map +0 -1
  112. package/dist/components/MaterialIcon.d.ts +0 -26
  113. package/dist/components/MaterialIcon.d.ts.map +0 -1
  114. package/dist/components/Modal.d.ts +0 -46
  115. package/dist/components/Modal.d.ts.map +0 -1
  116. package/dist/components/ModalConfirm.d.ts +0 -24
  117. package/dist/components/ModalConfirm.d.ts.map +0 -1
  118. package/dist/components/ModalForm.d.ts +0 -78
  119. package/dist/components/ModalForm.d.ts.map +0 -1
  120. package/dist/components/NavBar.d.ts +0 -64
  121. package/dist/components/NavBar.d.ts.map +0 -1
  122. package/dist/components/PageTitle.d.ts +0 -24
  123. package/dist/components/PageTitle.d.ts.map +0 -1
  124. package/dist/components/RouterWrapper.d.ts +0 -3
  125. package/dist/components/RouterWrapper.d.ts.map +0 -1
  126. package/dist/components/TableSchema.d.ts +0 -35
  127. package/dist/components/TableSchema.d.ts.map +0 -1
  128. package/dist/components/Title.d.ts +0 -42
  129. package/dist/components/Title.d.ts.map +0 -1
  130. package/dist/components/TopBar.d.ts +0 -12
  131. package/dist/components/TopBar.d.ts.map +0 -1
  132. package/dist/components/dashboard/Lineart.d.ts +0 -20
  133. package/dist/components/dashboard/Lineart.d.ts.map +0 -1
  134. package/dist/components/form/BglField.d.ts +0 -25
  135. package/dist/components/form/BglField.d.ts.map +0 -1
  136. package/dist/components/form/BglForm.d.ts +0 -75
  137. package/dist/components/form/BglForm.d.ts.map +0 -1
  138. package/dist/components/form/inputs/CheckInput.d.ts +0 -56
  139. package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
  140. package/dist/components/form/inputs/Checkbox.d.ts +0 -16
  141. package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
  142. package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
  143. package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
  144. package/dist/components/form/inputs/DateInput.d.ts +0 -64
  145. package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
  146. package/dist/components/form/inputs/DatePicker.d.ts +0 -33
  147. package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
  148. package/dist/components/form/inputs/FileUpload.d.ts +0 -108
  149. package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
  150. package/dist/components/form/inputs/JSONInput.d.ts +0 -53
  151. package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
  152. package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
  153. package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
  154. package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
  155. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
  156. package/dist/components/form/inputs/RichText.d.ts +0 -20
  157. package/dist/components/form/inputs/RichText.d.ts.map +0 -1
  158. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
  159. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
  160. package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
  161. package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
  162. package/dist/components/form/inputs/SelectInput.d.ts +0 -55
  163. package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
  164. package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
  165. package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
  166. package/dist/components/form/inputs/TableField.d.ts +0 -45
  167. package/dist/components/form/inputs/TableField.d.ts.map +0 -1
  168. package/dist/components/form/inputs/TelInput.d.ts +0 -241
  169. package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
  170. package/dist/components/form/inputs/TextInput.d.ts +0 -90
  171. package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
  172. package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
  173. package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
  174. package/dist/components/layout/BottomMenu.d.ts +0 -27
  175. package/dist/components/layout/BottomMenu.d.ts.map +0 -1
  176. package/dist/components/layout/Layout.d.ts +0 -58
  177. package/dist/components/layout/Layout.d.ts.map +0 -1
  178. package/dist/components/layout/SidebarMenu.d.ts +0 -38
  179. package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
  180. package/dist/components/layout/TabbedLayout.d.ts +0 -42
  181. package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
  182. package/dist/components/layout/Tabs.d.ts +0 -31
  183. package/dist/components/layout/Tabs.d.ts.map +0 -1
  184. package/dist/components/layout/TabsBody.d.ts +0 -23
  185. package/dist/components/layout/TabsBody.d.ts.map +0 -1
  186. package/dist/components/layout/TabsNav.d.ts +0 -35
  187. 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,233 @@ 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
+ const src = binding.value.src || binding.value || el.getAttribute("src") || "";
5332
+ groups[binding.value.group].push({
5333
+ src,
5334
+ type: binding.value.type || determineFileType(src),
5335
+ name: binding.value.name || ""
5336
+ });
5337
+ }
5338
+ el.addEventListener("click", (e) => {
5339
+ e.stopPropagation();
5340
+ const group = binding.value.group || null;
5341
+ const item = {
5342
+ src: binding.value.src || binding.value,
5343
+ type: binding.value.type || determineFileType(binding.value.src || binding.value),
5344
+ name: binding.value.name || "",
5345
+ thumbnail: binding.value.thumbnail || ""
5346
+ };
5347
+ const lightboxInstance2 = createLightboxInstance();
5348
+ if (!lightboxInstance2 || !lightboxInstance2.open) return;
5349
+ if (binding.value.group) {
5350
+ if (!groups[binding.value.group]) groups[binding.value.group] = [];
5351
+ groups[binding.value.group].push(item);
5352
+ }
5353
+ const open = lightboxInstance2.open;
5354
+ open(item, groups[group]);
5355
+ });
5356
+ }
5357
+ };
5358
+ function determineFileType(url) {
5359
+ var _a2;
5360
+ const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
5361
+ if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
5362
+ if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
5363
+ if (["pdf"].includes(extension)) return "pdf";
5364
+ return "unknown";
5365
+ }
5366
+ function createLightboxInstance() {
5367
+ const lightboxEl = document.createElement("div");
5368
+ document.body.prepend(lightboxEl);
5369
+ const app = vue.createApp(Lightbox$1);
5370
+ return app.mount(lightboxEl);
5371
+ }
5372
+ const Lightbox = {
5373
+ install(app) {
5374
+ app.directive("lightbox", lightboxDirective);
5375
+ }
5376
+ };
5154
5377
  const clickOutside = {
5155
5378
  beforeMount(el, binding) {
5156
5379
  el.clickOutsideEvent = (event) => {
@@ -5442,6 +5665,7 @@ const BagelVue = {
5442
5665
  install: (app, options) => {
5443
5666
  const bagel = new Bagel({ host: options.host, onError: options.onError });
5444
5667
  app.directive("click-outside", clickOutside);
5668
+ app.use(Lightbox);
5445
5669
  app.use(Gt$1, {
5446
5670
  themes: {
5447
5671
  "bgl-theme": {
@@ -5648,13 +5872,6 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
5648
5872
  };
5649
5873
  }
5650
5874
  });
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
5875
  const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-776cab4a"]]);
5659
5876
  const _hoisted_1$L = {
5660
5877
  key: 0,
@@ -19719,6 +19936,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19719
19936
  flushQueue();
19720
19937
  }
19721
19938
  return (_ctx, _cache) => {
19939
+ const _directive_lightbox = vue.resolveDirective("lightbox");
19722
19940
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
19723
19941
  vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
19724
19942
  vue.createElementVNode("div", {
@@ -19743,12 +19961,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19743
19961
  key: file.id,
19744
19962
  class: "multi-image-item-preview"
19745
19963
  }, [
19746
- isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("img", {
19964
+ isImage(file.extension || file.url) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("img", {
19747
19965
  key: 0,
19748
19966
  class: "multi-preview",
19749
19967
  src: file.url,
19750
19968
  alt: ""
19751
- }, null, 8, _hoisted_3$b)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
19969
+ }, null, 8, _hoisted_3$b)), [
19970
+ [_directive_lightbox]
19971
+ ]) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
19752
19972
  key: 1,
19753
19973
  icon: "draft",
19754
19974
  class: "multi-preview"
@@ -19801,12 +20021,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19801
20021
  key: file.id,
19802
20022
  class: vue.normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
19803
20023
  }, [
19804
- isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("img", {
20024
+ isImage(file.extension || file.url) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("img", {
19805
20025
  key: 0,
19806
20026
  class: "single-preview",
19807
20027
  src: file.url,
19808
20028
  alt: ""
19809
- }, null, 8, _hoisted_9)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
20029
+ }, null, 8, _hoisted_9)), [
20030
+ [_directive_lightbox]
20031
+ ]) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
19810
20032
  key: 1,
19811
20033
  size: 4,
19812
20034
  weight: "2",
@@ -19856,7 +20078,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19856
20078
  };
19857
20079
  }
19858
20080
  });
19859
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5911e10d"]]);
20081
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d4a17ec6"]]);
19860
20082
  const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
19861
20083
  const _hoisted_1$j = ["title"];
19862
20084
  const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
@@ -33246,11 +33468,7 @@ function createNodeFromContent(content, schema, options) {
33246
33468
  if (isArrayContent) {
33247
33469
  return Fragment.fromArray(content.map((item) => schema.nodeFromJSON(item)));
33248
33470
  }
33249
- const node = schema.nodeFromJSON(content);
33250
- if (options.errorOnInvalidContent) {
33251
- node.check();
33252
- }
33253
- return node;
33471
+ return schema.nodeFromJSON(content);
33254
33472
  } catch (error) {
33255
33473
  if (options.errorOnInvalidContent) {
33256
33474
  throw new Error("[tiptap error]: Invalid JSON content", { cause: error });
@@ -46429,7 +46647,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
46429
46647
  });
46430
46648
  const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9d176183"]]);
46431
46649
  /*!
46432
- * Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
46650
+ * Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
46433
46651
  * (c) 2024 Szymon Nowak | Released under the MIT license
46434
46652
  */
46435
46653
  class Point {
@@ -46469,7 +46687,7 @@ class Bezier {
46469
46687
  const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
46470
46688
  const dxm = m1.x - m2.x;
46471
46689
  const dym = m1.y - m2.y;
46472
- const k2 = l1 + l2 == 0 ? 0 : l2 / (l1 + l2);
46690
+ const k2 = l2 / (l1 + l2);
46473
46691
  const cm = { x: m2.x + dxm * k2, y: m2.y + dym * k2 };
46474
46692
  const tx = s2.x - cm.x;
46475
46693
  const ty = s2.y - cm.y;
@@ -47553,7 +47771,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
47553
47771
  };
47554
47772
  }
47555
47773
  });
47556
- const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-d3f64de7"]]);
47774
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ee96aa53"]]);
47557
47775
  const _hoisted_1$d = ["for"];
47558
47776
  const _hoisted_2$a = ["id", "name", "value"];
47559
47777
  const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
@@ -50722,8 +50940,8 @@ function selector(selector2) {
50722
50940
  }
50723
50941
  function selection_select(select2) {
50724
50942
  if (typeof select2 !== "function") select2 = selector(select2);
50725
- for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50726
- for (var group = groups[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node, subnode, i2 = 0; i2 < n2; ++i2) {
50943
+ for (var groups2 = this._groups, m2 = groups2.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50944
+ for (var group = groups2[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node, subnode, i2 = 0; i2 < n2; ++i2) {
50727
50945
  if ((node = group[i2]) && (subnode = select2.call(node, node.__data__, i2, group))) {
50728
50946
  if ("__data__" in node) subnode.__data__ = node.__data__;
50729
50947
  subgroup[i2] = subnode;
@@ -50751,8 +50969,8 @@ function arrayAll(select2) {
50751
50969
  function selection_selectAll(select2) {
50752
50970
  if (typeof select2 === "function") select2 = arrayAll(select2);
50753
50971
  else select2 = selectorAll(select2);
50754
- for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
50755
- for (var group = groups[j2], n2 = group.length, node, i2 = 0; i2 < n2; ++i2) {
50972
+ for (var groups2 = this._groups, m2 = groups2.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
50973
+ for (var group = groups2[j2], n2 = group.length, node, i2 = 0; i2 < n2; ++i2) {
50756
50974
  if (node = group[i2]) {
50757
50975
  subgroups.push(select2.call(node, node.__data__, i2, group));
50758
50976
  parents.push(node);
@@ -50797,8 +51015,8 @@ function selection_selectChildren(match2) {
50797
51015
  }
50798
51016
  function selection_filter(match2) {
50799
51017
  if (typeof match2 !== "function") match2 = matcher(match2);
50800
- for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50801
- for (var group = groups[j2], n2 = group.length, subgroup = subgroups[j2] = [], node, i2 = 0; i2 < n2; ++i2) {
51018
+ for (var groups2 = this._groups, m2 = groups2.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
51019
+ for (var group = groups2[j2], n2 = group.length, subgroup = subgroups[j2] = [], node, i2 = 0; i2 < n2; ++i2) {
50802
51020
  if ((node = group[i2]) && match2.call(node, node.__data__, i2, group)) {
50803
51021
  subgroup.push(node);
50804
51022
  }
@@ -50888,10 +51106,10 @@ function datum(node) {
50888
51106
  }
50889
51107
  function selection_data(value, key) {
50890
51108
  if (!arguments.length) return Array.from(this, datum);
50891
- var bind3 = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
51109
+ var bind3 = key ? bindKey : bindIndex, parents = this._parents, groups2 = this._groups;
50892
51110
  if (typeof value !== "function") value = constant$1(value);
50893
- for (var m2 = groups.length, update = new Array(m2), enter2 = new Array(m2), exit = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50894
- 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);
51111
+ for (var m2 = groups2.length, update = new Array(m2), enter2 = new Array(m2), exit = new Array(m2), j2 = 0; j2 < m2; ++j2) {
51112
+ 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);
50895
51113
  bind3(parent, group, enterGroup, updateGroup, exitGroup, data2, key);
50896
51114
  for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
50897
51115
  if (previous = enterGroup[i0]) {
@@ -50943,8 +51161,8 @@ function selection_merge(context) {
50943
51161
  return new Selection(merges, this._parents);
50944
51162
  }
50945
51163
  function selection_order() {
50946
- for (var groups = this._groups, j2 = -1, m2 = groups.length; ++j2 < m2; ) {
50947
- for (var group = groups[j2], i2 = group.length - 1, next = group[i2], node; --i2 >= 0; ) {
51164
+ for (var groups2 = this._groups, j2 = -1, m2 = groups2.length; ++j2 < m2; ) {
51165
+ for (var group = groups2[j2], i2 = group.length - 1, next = group[i2], node; --i2 >= 0; ) {
50948
51166
  if (node = group[i2]) {
50949
51167
  if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
50950
51168
  next = node;
@@ -50958,8 +51176,8 @@ function selection_sort(compare2) {
50958
51176
  function compareNode(a2, b2) {
50959
51177
  return a2 && b2 ? compare2(a2.__data__, b2.__data__) : !a2 - !b2;
50960
51178
  }
50961
- for (var groups = this._groups, m2 = groups.length, sortgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
50962
- for (var group = groups[j2], n2 = group.length, sortgroup = sortgroups[j2] = new Array(n2), node, i2 = 0; i2 < n2; ++i2) {
51179
+ for (var groups2 = this._groups, m2 = groups2.length, sortgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
51180
+ for (var group = groups2[j2], n2 = group.length, sortgroup = sortgroups[j2] = new Array(n2), node, i2 = 0; i2 < n2; ++i2) {
50963
51181
  if (node = group[i2]) {
50964
51182
  sortgroup[i2] = node;
50965
51183
  }
@@ -50981,8 +51199,8 @@ function selection_nodes() {
50981
51199
  return Array.from(this);
50982
51200
  }
50983
51201
  function selection_node() {
50984
- for (var groups = this._groups, j2 = 0, m2 = groups.length; j2 < m2; ++j2) {
50985
- for (var group = groups[j2], i2 = 0, n2 = group.length; i2 < n2; ++i2) {
51202
+ for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
51203
+ for (var group = groups2[j2], i2 = 0, n2 = group.length; i2 < n2; ++i2) {
50986
51204
  var node = group[i2];
50987
51205
  if (node) return node;
50988
51206
  }
@@ -50998,8 +51216,8 @@ function selection_empty() {
50998
51216
  return !this.node();
50999
51217
  }
51000
51218
  function selection_each(callback) {
51001
- for (var groups = this._groups, j2 = 0, m2 = groups.length; j2 < m2; ++j2) {
51002
- for (var group = groups[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51219
+ for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
51220
+ for (var group = groups2[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51003
51221
  if (node = group[i2]) callback.call(node, node.__data__, i2, group);
51004
51222
  }
51005
51223
  }
@@ -51322,15 +51540,15 @@ function selection_dispatch(type3, params) {
51322
51540
  return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type3, params));
51323
51541
  }
51324
51542
  function* selection_iterator() {
51325
- for (var groups = this._groups, j2 = 0, m2 = groups.length; j2 < m2; ++j2) {
51326
- for (var group = groups[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51543
+ for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
51544
+ for (var group = groups2[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
51327
51545
  if (node = group[i2]) yield node;
51328
51546
  }
51329
51547
  }
51330
51548
  }
51331
51549
  var root = [null];
51332
- function Selection(groups, parents) {
51333
- this._groups = groups;
51550
+ function Selection(groups2, parents) {
51551
+ this._groups = groups2;
51334
51552
  this._parents = parents;
51335
51553
  }
51336
51554
  function selection_selection() {