@bagelink/vue 0.0.716 → 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 (185) 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/index.vue.d.ts.map +1 -1
  43. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
  44. package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
  45. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  46. package/dist/components/form/inputs/TelInput.vue.d.ts +5 -5
  47. package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
  48. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  49. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  50. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  51. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  52. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  53. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  54. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  55. package/dist/components/lightbox/Lightbox.vue.d.ts +10 -0
  56. package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -0
  57. package/dist/components/lightbox/index.d.ts +6 -0
  58. package/dist/components/lightbox/index.d.ts.map +1 -0
  59. package/dist/components/lightbox/lightbox.types.d.ts +7 -0
  60. package/dist/components/lightbox/lightbox.types.d.ts.map +1 -0
  61. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
  62. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  63. package/dist/index.cjs +259 -48
  64. package/dist/index.mjs +260 -49
  65. package/dist/plugins/bagel.d.ts.map +1 -1
  66. package/dist/style.css +110 -12
  67. package/dist/types/materialIcon.d.ts +2 -0
  68. package/dist/types/materialIcon.d.ts.map +1 -0
  69. package/dist/utils/BagelFormUtils.d.ts +48 -48
  70. package/dist/utils/objects.d.ts +0 -1
  71. package/package.json +1 -1
  72. package/src/components/form/inputs/RichText2/FontWithASyntaxHighlighter-Regular.woff2 +0 -0
  73. package/src/components/form/inputs/RichText2/index.vue +31 -11
  74. package/src/components/lightbox/Lightbox.vue +228 -0
  75. package/src/components/lightbox/index.ts +61 -0
  76. package/src/components/lightbox/lightbox.types.ts +6 -0
  77. package/src/plugins/bagel.ts +2 -2
  78. package/dist/components/Accordion.d.ts +0 -12
  79. package/dist/components/Accordion.d.ts.map +0 -1
  80. package/dist/components/AccordionItem.d.ts +0 -34
  81. package/dist/components/AccordionItem.d.ts.map +0 -1
  82. package/dist/components/Alert.d.ts +0 -34
  83. package/dist/components/Alert.d.ts.map +0 -1
  84. package/dist/components/Avatar.d.ts +0 -36
  85. package/dist/components/Avatar.d.ts.map +0 -1
  86. package/dist/components/Badge.d.ts +0 -22
  87. package/dist/components/Badge.d.ts.map +0 -1
  88. package/dist/components/BglVideo.d.ts +0 -20
  89. package/dist/components/BglVideo.d.ts.map +0 -1
  90. package/dist/components/Btn.d.ts +0 -99
  91. package/dist/components/Btn.d.ts.map +0 -1
  92. package/dist/components/Card.d.ts +0 -39
  93. package/dist/components/Card.d.ts.map +0 -1
  94. package/dist/components/Carousel.d.ts +0 -74
  95. package/dist/components/Carousel.d.ts.map +0 -1
  96. package/dist/components/DataPreview.d.ts +0 -42
  97. package/dist/components/DataPreview.d.ts.map +0 -1
  98. package/dist/components/Drop.vue.d.ts +0 -34
  99. package/dist/components/Drop.vue.d.ts.map +0 -1
  100. package/dist/components/FileUploader.vue.d.ts +0 -60
  101. package/dist/components/FileUploader.vue.d.ts.map +0 -1
  102. package/dist/components/Flag.d.ts +0 -20
  103. package/dist/components/Flag.d.ts.map +0 -1
  104. package/dist/components/ListItem.d.ts +0 -34
  105. package/dist/components/ListItem.d.ts.map +0 -1
  106. package/dist/components/ListView.d.ts +0 -13
  107. package/dist/components/ListView.d.ts.map +0 -1
  108. package/dist/components/MapEmbed.d.ts +0 -3
  109. package/dist/components/MapEmbed.d.ts.map +0 -1
  110. package/dist/components/MaterialIcon.d.ts +0 -26
  111. package/dist/components/MaterialIcon.d.ts.map +0 -1
  112. package/dist/components/Modal.d.ts +0 -46
  113. package/dist/components/Modal.d.ts.map +0 -1
  114. package/dist/components/ModalConfirm.d.ts +0 -24
  115. package/dist/components/ModalConfirm.d.ts.map +0 -1
  116. package/dist/components/ModalForm.d.ts +0 -78
  117. package/dist/components/ModalForm.d.ts.map +0 -1
  118. package/dist/components/NavBar.d.ts +0 -64
  119. package/dist/components/NavBar.d.ts.map +0 -1
  120. package/dist/components/PageTitle.d.ts +0 -24
  121. package/dist/components/PageTitle.d.ts.map +0 -1
  122. package/dist/components/RouterWrapper.d.ts +0 -3
  123. package/dist/components/RouterWrapper.d.ts.map +0 -1
  124. package/dist/components/TableSchema.d.ts +0 -35
  125. package/dist/components/TableSchema.d.ts.map +0 -1
  126. package/dist/components/Title.d.ts +0 -42
  127. package/dist/components/Title.d.ts.map +0 -1
  128. package/dist/components/TopBar.d.ts +0 -12
  129. package/dist/components/TopBar.d.ts.map +0 -1
  130. package/dist/components/dashboard/Lineart.d.ts +0 -20
  131. package/dist/components/dashboard/Lineart.d.ts.map +0 -1
  132. package/dist/components/form/BglField.d.ts +0 -25
  133. package/dist/components/form/BglField.d.ts.map +0 -1
  134. package/dist/components/form/BglForm.d.ts +0 -75
  135. package/dist/components/form/BglForm.d.ts.map +0 -1
  136. package/dist/components/form/inputs/CheckInput.d.ts +0 -56
  137. package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
  138. package/dist/components/form/inputs/Checkbox.d.ts +0 -16
  139. package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
  140. package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
  141. package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
  142. package/dist/components/form/inputs/DateInput.d.ts +0 -64
  143. package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
  144. package/dist/components/form/inputs/DatePicker.d.ts +0 -33
  145. package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
  146. package/dist/components/form/inputs/FileUpload.d.ts +0 -108
  147. package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
  148. package/dist/components/form/inputs/JSONInput.d.ts +0 -53
  149. package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
  150. package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
  151. package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
  152. package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
  153. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
  154. package/dist/components/form/inputs/RichText.d.ts +0 -20
  155. package/dist/components/form/inputs/RichText.d.ts.map +0 -1
  156. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
  157. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
  158. package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
  159. package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
  160. package/dist/components/form/inputs/SelectInput.d.ts +0 -55
  161. package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
  162. package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
  163. package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
  164. package/dist/components/form/inputs/TableField.d.ts +0 -45
  165. package/dist/components/form/inputs/TableField.d.ts.map +0 -1
  166. package/dist/components/form/inputs/TelInput.d.ts +0 -241
  167. package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
  168. package/dist/components/form/inputs/TextInput.d.ts +0 -90
  169. package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
  170. package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
  171. package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
  172. package/dist/components/layout/BottomMenu.d.ts +0 -27
  173. package/dist/components/layout/BottomMenu.d.ts.map +0 -1
  174. package/dist/components/layout/Layout.d.ts +0 -58
  175. package/dist/components/layout/Layout.d.ts.map +0 -1
  176. package/dist/components/layout/SidebarMenu.d.ts +0 -38
  177. package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
  178. package/dist/components/layout/TabbedLayout.d.ts +0 -42
  179. package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
  180. package/dist/components/layout/Tabs.d.ts +0 -31
  181. package/dist/components/layout/Tabs.d.ts.map +0 -1
  182. package/dist/components/layout/TabsBody.d.ts +0 -23
  183. package/dist/components/layout/TabsBody.d.ts.map +0 -1
  184. package/dist/components/layout/TabsNav.d.ts +0 -35
  185. 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,
@@ -33246,11 +33461,7 @@ function createNodeFromContent(content, schema, options) {
33246
33461
  if (isArrayContent) {
33247
33462
  return Fragment.fromArray(content.map((item) => schema.nodeFromJSON(item)));
33248
33463
  }
33249
- const node = schema.nodeFromJSON(content);
33250
- if (options.errorOnInvalidContent) {
33251
- node.check();
33252
- }
33253
- return node;
33464
+ return schema.nodeFromJSON(content);
33254
33465
  } catch (error) {
33255
33466
  if (options.errorOnInvalidContent) {
33256
33467
  throw new Error("[tiptap error]: Invalid JSON content", { cause: error });
@@ -46429,7 +46640,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
46429
46640
  });
46430
46641
  const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9d176183"]]);
46431
46642
  /*!
46432
- * Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
46643
+ * Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
46433
46644
  * (c) 2024 Szymon Nowak | Released under the MIT license
46434
46645
  */
46435
46646
  class Point {
@@ -46469,7 +46680,7 @@ class Bezier {
46469
46680
  const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
46470
46681
  const dxm = m1.x - m2.x;
46471
46682
  const dym = m1.y - m2.y;
46472
- const k2 = l1 + l2 == 0 ? 0 : l2 / (l1 + l2);
46683
+ const k2 = l2 / (l1 + l2);
46473
46684
  const cm = { x: m2.x + dxm * k2, y: m2.y + dym * k2 };
46474
46685
  const tx = s2.x - cm.x;
46475
46686
  const ty = s2.y - cm.y;
@@ -47553,7 +47764,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
47553
47764
  };
47554
47765
  }
47555
47766
  });
47556
- const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-d3f64de7"]]);
47767
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ee96aa53"]]);
47557
47768
  const _hoisted_1$d = ["for"];
47558
47769
  const _hoisted_2$a = ["id", "name", "value"];
47559
47770
  const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
@@ -50722,8 +50933,8 @@ function selector(selector2) {
50722
50933
  }
50723
50934
  function selection_select(select2) {
50724
50935
  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) {
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) {
50727
50938
  if ((node = group[i2]) && (subnode = select2.call(node, node.__data__, i2, group))) {
50728
50939
  if ("__data__" in node) subnode.__data__ = node.__data__;
50729
50940
  subgroup[i2] = subnode;
@@ -50751,8 +50962,8 @@ function arrayAll(select2) {
50751
50962
  function selection_selectAll(select2) {
50752
50963
  if (typeof select2 === "function") select2 = arrayAll(select2);
50753
50964
  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) {
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) {
50756
50967
  if (node = group[i2]) {
50757
50968
  subgroups.push(select2.call(node, node.__data__, i2, group));
50758
50969
  parents.push(node);
@@ -50797,8 +51008,8 @@ function selection_selectChildren(match2) {
50797
51008
  }
50798
51009
  function selection_filter(match2) {
50799
51010
  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) {
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) {
50802
51013
  if ((node = group[i2]) && match2.call(node, node.__data__, i2, group)) {
50803
51014
  subgroup.push(node);
50804
51015
  }
@@ -50888,10 +51099,10 @@ function datum(node) {
50888
51099
  }
50889
51100
  function selection_data(value, key) {
50890
51101
  if (!arguments.length) return Array.from(this, datum);
50891
- var bind3 = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
51102
+ var bind3 = key ? bindKey : bindIndex, parents = this._parents, groups2 = this._groups;
50892
51103
  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);
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);
50895
51106
  bind3(parent, group, enterGroup, updateGroup, exitGroup, data2, key);
50896
51107
  for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
50897
51108
  if (previous = enterGroup[i0]) {
@@ -50943,8 +51154,8 @@ function selection_merge(context) {
50943
51154
  return new Selection(merges, this._parents);
50944
51155
  }
50945
51156
  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; ) {
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; ) {
50948
51159
  if (node = group[i2]) {
50949
51160
  if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
50950
51161
  next = node;
@@ -50958,8 +51169,8 @@ function selection_sort(compare2) {
50958
51169
  function compareNode(a2, b2) {
50959
51170
  return a2 && b2 ? compare2(a2.__data__, b2.__data__) : !a2 - !b2;
50960
51171
  }
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) {
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) {
50963
51174
  if (node = group[i2]) {
50964
51175
  sortgroup[i2] = node;
50965
51176
  }
@@ -50981,8 +51192,8 @@ function selection_nodes() {
50981
51192
  return Array.from(this);
50982
51193
  }
50983
51194
  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) {
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) {
50986
51197
  var node = group[i2];
50987
51198
  if (node) return node;
50988
51199
  }
@@ -50998,8 +51209,8 @@ function selection_empty() {
50998
51209
  return !this.node();
50999
51210
  }
51000
51211
  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) {
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) {
51003
51214
  if (node = group[i2]) callback.call(node, node.__data__, i2, group);
51004
51215
  }
51005
51216
  }
@@ -51322,15 +51533,15 @@ function selection_dispatch(type3, params) {
51322
51533
  return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type3, params));
51323
51534
  }
51324
51535
  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) {
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) {
51327
51538
  if (node = group[i2]) yield node;
51328
51539
  }
51329
51540
  }
51330
51541
  }
51331
51542
  var root = [null];
51332
- function Selection(groups, parents) {
51333
- this._groups = groups;
51543
+ function Selection(groups2, parents) {
51544
+ this._groups = groups2;
51334
51545
  this._parents = parents;
51335
51546
  }
51336
51547
  function selection_selection() {