@bagelink/vue 0.0.724 → 0.0.728

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp2 = Object.defineProperty;
2
2
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, watch, unref, withModifiers, renderList, markRaw, reactive, computed, inject, resolveDynamicComponent, useCssVars, useSlots, createTextVNode, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, withDirectives, isRef, vModelCheckbox, provide, toRef, Teleport, render as render$f, onBeforeUpdate, vShow, TransitionGroup, vModelDynamic, vModelText, vModelRadio, onBeforeUnmount, watchEffect, customRef, resolveDirective } from "vue";
4
+ import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, watch, Transition, unref, withModifiers, renderList, markRaw, reactive, computed, inject, resolveDynamicComponent, useCssVars, useSlots, createTextVNode, onMounted, onUnmounted, mergeModels, useModel, createSlots, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, withDirectives, isRef, vModelCheckbox, provide, toRef, Teleport, render as render$f, onBeforeUpdate, vShow, TransitionGroup, vModelDynamic, vModelText, vModelRadio, resolveDirective, onBeforeUnmount, watchEffect, customRef } from "vue";
5
5
  const sides = ["top", "right", "bottom", "left"];
6
6
  const alignments = ["start", "end"];
7
7
  const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -5145,33 +5145,23 @@ class Bagel {
5145
5145
  return data2;
5146
5146
  }
5147
5147
  }
5148
- const _withScopeId$3 = (n2) => (pushScopeId("data-v-c003c59a"), n2 = n2(), popScopeId(), n2);
5149
- const _hoisted_1$N = { class: "lightbox-item" };
5148
+ const _hoisted_1$N = { class: "bgl-lightbox-item" };
5150
5149
  const _hoisted_2$C = ["src"];
5151
- const _hoisted_3$p = {
5152
- key: 1,
5153
- controls: "",
5154
- autoplay: ""
5155
- };
5156
- const _hoisted_4$h = ["src"];
5157
- const _hoisted_5$g = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("track", {
5158
- kind: "captions",
5159
- src: "#",
5160
- srclang: "en",
5161
- label: "English"
5162
- }, null, -1));
5163
- const _hoisted_6$b = ["src", "title"];
5164
- const _hoisted_7$5 = {
5150
+ const _hoisted_3$q = ["src", "title"];
5151
+ const _hoisted_4$i = {
5165
5152
  key: 3,
5166
5153
  class: "file-info txt-white"
5167
5154
  };
5168
- const _hoisted_8$3 = ["href"];
5169
- const _hoisted_9$3 = { class: "navigation" };
5170
- const _hoisted_10$2 = {
5155
+ const _hoisted_5$g = ["href"];
5156
+ const _hoisted_6$b = {
5171
5157
  key: 0,
5172
- class: "thumbnails"
5158
+ class: "navigation flex space-between w-100 absolute"
5159
+ };
5160
+ const _hoisted_7$5 = {
5161
+ key: 1,
5162
+ class: "flex justify-content-center mt-2 overflow p-1 fixed bottom start end gap-1 m_justify-content-start"
5173
5163
  };
5174
- const _hoisted_11$2 = ["src", "onClick"];
5164
+ const _hoisted_8$3 = ["src", "onClick"];
5175
5165
  const _sfc_main$R = /* @__PURE__ */ defineComponent({
5176
5166
  __name: "Lightbox",
5177
5167
  setup(__props, { expose: __expose }) {
@@ -5227,87 +5217,93 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
5227
5217
  }
5228
5218
  __expose({ open, close: close2 });
5229
5219
  return (_ctx, _cache) => {
5230
- var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
5231
- return unref(isOpen) ? (openBlock(), createElementBlock("div", {
5232
- key: 0,
5233
- class: "lightbox-overlay",
5234
- onKeydown: [
5235
- withKeys(close2, ["esc"]),
5236
- withKeys(prev, ["left"]),
5237
- withKeys(next, ["right"])
5238
- ],
5239
- onClick: close2
5240
- }, [
5241
- createElementVNode("div", {
5242
- class: "lightbox",
5243
- onClick: _cache[0] || (_cache[0] = withModifiers(() => {
5244
- }, ["stop"]))
5245
- }, [
5246
- createVNode(unref(Btn), {
5247
- flat: "",
5248
- class: "close-button color-white",
5249
- icon: "close",
5250
- onClick: close2
5251
- }),
5252
- createElementVNode("div", _hoisted_1$N, [
5253
- ((_a2 = unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (openBlock(), createElementBlock("img", {
5220
+ return openBlock(), createBlock(Transition, { name: "fade" }, {
5221
+ default: withCtx(() => {
5222
+ var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
5223
+ return [
5224
+ unref(isOpen) ? (openBlock(), createElementBlock("div", {
5254
5225
  key: 0,
5255
- src: (_b = unref(currentItem)) == null ? void 0 : _b.src,
5256
- alt: "Preview"
5257
- }, null, 8, _hoisted_2$C)) : ((_c = unref(currentItem)) == null ? void 0 : _c.type) === "video" ? (openBlock(), createElementBlock("video", _hoisted_3$p, [
5258
- createElementVNode("source", {
5259
- src: (_d = unref(currentItem)) == null ? void 0 : _d.src,
5260
- type: "video/mp4"
5261
- }, null, 8, _hoisted_4$h),
5262
- _hoisted_5$g
5263
- ])) : ((_e2 = unref(currentItem)) == null ? void 0 : _e2.type) === "pdf" ? (openBlock(), createElementBlock("embed", {
5264
- key: 2,
5265
- src: normalizeURL((_f = unref(currentItem)) == null ? void 0 : _f.src),
5266
- type: "application/pdf",
5267
- width: "100%",
5268
- height: "1080",
5269
- title: (_g = unref(currentItem)) == null ? void 0 : _g.name
5270
- }, null, 8, _hoisted_6$b)) : (openBlock(), createElementBlock("div", _hoisted_7$5, [
5271
- createElementVNode("p", null, "File: " + toDisplayString((_h = unref(currentItem)) == null ? void 0 : _h.name), 1),
5272
- createElementVNode("p", null, "Type: " + toDisplayString((_i = unref(currentItem)) == null ? void 0 : _i.type), 1),
5273
- createElementVNode("a", {
5274
- href: (_j = unref(currentItem)) == null ? void 0 : _j.src,
5275
- target: "_blank"
5276
- }, "Open file", 8, _hoisted_8$3)
5277
- ]))
5278
- ]),
5279
- createElementVNode("div", _hoisted_9$3, [
5280
- createVNode(unref(Btn), {
5281
- class: "navigation-btn",
5282
- icon: "arrow_back",
5283
- onClick: prev
5284
- }),
5285
- createVNode(unref(Btn), {
5286
- class: "navigation-btn",
5287
- icon: "arrow_forward",
5288
- onClick: next
5289
- })
5290
- ]),
5291
- unref(group) && unref(group).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
5292
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(group), (item, index2) => {
5293
- return openBlock(), createElementBlock(Fragment$1, { key: index2 }, [
5294
- item.type === "image" ? (openBlock(), createElementBlock("img", {
5295
- key: 0,
5296
- class: "thumbnail",
5297
- src: item.src,
5298
- alt: "",
5299
- onClick: ($event) => selectItem(index2)
5300
- }, null, 8, _hoisted_11$2)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
5301
- key: 1,
5302
- class: "thumbnail",
5303
- icon: "description",
5304
- onClick: ($event) => selectItem(index2)
5305
- }, null, 8, ["onClick"]))
5306
- ], 64);
5307
- }), 128))
5308
- ])) : createCommentVNode("", true)
5309
- ])
5310
- ], 32)) : createCommentVNode("", true);
5226
+ class: "bgl-lightbox-overlay fixed w-100 h-100 flex justify-content-center z-999 inset mx-auto",
5227
+ onKeydown: [
5228
+ withKeys(close2, ["esc"]),
5229
+ withKeys(prev, ["left"]),
5230
+ withKeys(next, ["right"])
5231
+ ],
5232
+ onClick: close2
5233
+ }, [
5234
+ createElementVNode("div", {
5235
+ class: "bgl-lightbox relative vw90 txt-center",
5236
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
5237
+ }, ["stop"]))
5238
+ }, [
5239
+ createVNode(unref(Btn), {
5240
+ flat: "",
5241
+ class: "fixed top-1 end-1 color-white",
5242
+ icon: "close",
5243
+ onClick: close2
5244
+ }),
5245
+ createElementVNode("div", _hoisted_1$N, [
5246
+ ((_a2 = unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (openBlock(), createElementBlock("img", {
5247
+ key: 0,
5248
+ src: (_b = unref(currentItem)) == null ? void 0 : _b.src,
5249
+ alt: "Preview"
5250
+ }, null, 8, _hoisted_2$C)) : ((_c = unref(currentItem)) == null ? void 0 : _c.type) === "video" ? (openBlock(), createBlock(unref(BglVideo), {
5251
+ key: 1,
5252
+ src: (_d = unref(currentItem)) == null ? void 0 : _d.src,
5253
+ autoplay: "",
5254
+ controls: ""
5255
+ }, null, 8, ["src"])) : ((_e2 = unref(currentItem)) == null ? void 0 : _e2.type) === "pdf" ? (openBlock(), createElementBlock("embed", {
5256
+ key: 2,
5257
+ src: normalizeURL((_f = unref(currentItem)) == null ? void 0 : _f.src),
5258
+ type: "application/pdf",
5259
+ width: "100%",
5260
+ height: "1080",
5261
+ title: (_g = unref(currentItem)) == null ? void 0 : _g.name
5262
+ }, null, 8, _hoisted_3$q)) : (openBlock(), createElementBlock("div", _hoisted_4$i, [
5263
+ createElementVNode("p", null, "File: " + toDisplayString((_h = unref(currentItem)) == null ? void 0 : _h.name), 1),
5264
+ createElementVNode("p", null, "Type: " + toDisplayString((_i = unref(currentItem)) == null ? void 0 : _i.type), 1),
5265
+ createElementVNode("a", {
5266
+ href: (_j = unref(currentItem)) == null ? void 0 : _j.src,
5267
+ target: "_blank"
5268
+ }, "Open file", 8, _hoisted_5$g)
5269
+ ]))
5270
+ ]),
5271
+ unref(group).length ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
5272
+ createVNode(unref(Btn), {
5273
+ class: "navigation-btn oval user-select-none",
5274
+ icon: "arrow_back",
5275
+ onClick: prev
5276
+ }),
5277
+ createVNode(unref(Btn), {
5278
+ class: "navigation-btn oval user-select-none",
5279
+ icon: "arrow_forward",
5280
+ onClick: next
5281
+ })
5282
+ ])) : createCommentVNode("", true),
5283
+ unref(group) && unref(group).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
5284
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(group), (item, index2) => {
5285
+ return openBlock(), createElementBlock(Fragment$1, { key: index2 }, [
5286
+ item.type === "image" ? (openBlock(), createElementBlock("img", {
5287
+ key: 0,
5288
+ class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 round flex bg-white justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
5289
+ src: item.src,
5290
+ alt: "",
5291
+ onClick: ($event) => selectItem(index2)
5292
+ }, null, 10, _hoisted_8$3)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
5293
+ key: 1,
5294
+ class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 round flex bg-white justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
5295
+ icon: "description",
5296
+ onClick: ($event) => selectItem(index2)
5297
+ }, null, 8, ["class", "onClick"]))
5298
+ ], 64);
5299
+ }), 128))
5300
+ ])) : createCommentVNode("", true)
5301
+ ])
5302
+ ], 32)) : createCommentVNode("", true)
5303
+ ];
5304
+ }),
5305
+ _: 1
5306
+ });
5311
5307
  };
5312
5308
  }
5313
5309
  });
@@ -5318,44 +5314,37 @@ const _export_sfc = (sfc, props2) => {
5318
5314
  }
5319
5315
  return target;
5320
5316
  };
5321
- const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-c003c59a"]]);
5317
+ const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-b3a3d091"]]);
5322
5318
  const groups = {};
5323
5319
  const lightboxDirective = {
5324
5320
  mounted(el, binding) {
5325
- const lightboxInstance = createLightboxInstance();
5326
- if (!lightboxInstance || !lightboxInstance.open) return;
5327
- if (binding.value.group) {
5328
- if (!groups[binding.value.group]) groups[binding.value.group] = [];
5329
- groups[binding.value.group].push({
5330
- src: binding.value.src || binding.value,
5331
- type: binding.value.type || determineFileType(binding.value.src || binding.value),
5332
- name: binding.value.name || ""
5333
- });
5334
- }
5335
- el.addEventListener("click", () => {
5336
- const group = binding.value.group || null;
5337
- const item = {
5338
- src: binding.value.src || binding.value,
5339
- type: binding.value.type || determineFileType(binding.value.src || binding.value),
5340
- name: binding.value.name || "",
5341
- thumbnail: binding.value.thumbnail || ""
5342
- };
5343
- const lightboxInstance2 = createLightboxInstance();
5344
- if (!lightboxInstance2 || !lightboxInstance2.open) return;
5345
- if (binding.value.group) {
5346
- if (!groups[binding.value.group]) groups[binding.value.group] = [];
5347
- groups[binding.value.group].push(item);
5348
- }
5349
- const open = lightboxInstance2.open;
5321
+ el.classList.add("hover");
5322
+ let { group, src, type: type3, name, thumbnail } = binding.value || {};
5323
+ src = src || binding.value || el.getAttribute("src") || "";
5324
+ type3 = type3 || determineFileType(src);
5325
+ const item = { src, type: type3, name, thumbnail };
5326
+ if (group) {
5327
+ if (!groups[group]) groups[group] = [];
5328
+ groups[group].push(item);
5329
+ }
5330
+ el.addEventListener("click", (e) => {
5331
+ e.stopPropagation();
5332
+ const lightboxInstance = createLightboxInstance();
5333
+ if (!lightboxInstance || !lightboxInstance.open) return;
5334
+ const open = lightboxInstance.open;
5350
5335
  open(item, groups[group]);
5351
5336
  });
5337
+ },
5338
+ unmounted(el, binding) {
5352
5339
  }
5353
5340
  };
5341
+ const youtubeRegex = /youtube\.com|youtu\.be/;
5342
+ const vimeoRegex = /vimeo\.com/;
5354
5343
  function determineFileType(url) {
5355
5344
  var _a2;
5356
5345
  const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
5357
5346
  if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
5358
- if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
5347
+ if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
5359
5348
  if (["pdf"].includes(extension)) return "pdf";
5360
5349
  return "unknown";
5361
5350
  }
@@ -5783,8 +5772,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5783
5772
  });
5784
5773
  const _hoisted_1$M = { class: "full-nav" };
5785
5774
  const _hoisted_2$B = { class: "nav-scroll" };
5786
- const _hoisted_3$o = { class: "nav-links-wrapper" };
5787
- const _hoisted_4$g = { class: "tooltip" };
5775
+ const _hoisted_3$p = { class: "nav-links-wrapper" };
5776
+ const _hoisted_4$h = { class: "tooltip" };
5788
5777
  const _hoisted_5$f = { class: "bot-buttons-wrapper" };
5789
5778
  const _hoisted_6$a = { class: "tooltip" };
5790
5779
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
@@ -5819,7 +5808,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5819
5808
  ], 32),
5820
5809
  createElementVNode("div", _hoisted_1$M, [
5821
5810
  createElementVNode("div", _hoisted_2$B, [
5822
- createElementVNode("div", _hoisted_3$o, [
5811
+ createElementVNode("div", _hoisted_3$p, [
5823
5812
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
5824
5813
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
5825
5814
  key: link.label,
@@ -5834,7 +5823,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5834
5823
  createVNode(unref(_sfc_main$Q), {
5835
5824
  icon: link.icon
5836
5825
  }, null, 8, ["icon"]),
5837
- createElementVNode("div", _hoisted_4$g, toDisplayString(link.label), 1)
5826
+ createElementVNode("div", _hoisted_4$h, toDisplayString(link.label), 1)
5838
5827
  ]),
5839
5828
  _: 2
5840
5829
  }, 1032, ["to", "onClick"]);
@@ -6000,7 +5989,7 @@ const _hoisted_2$z = {
6000
5989
  key: 1,
6001
5990
  class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
6002
5991
  };
6003
- const _hoisted_3$n = {
5992
+ const _hoisted_3$o = {
6004
5993
  key: 2,
6005
5994
  class: "modal-footer mt-1"
6006
5995
  };
@@ -6093,7 +6082,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6093
6082
  })
6094
6083
  ])),
6095
6084
  renderSlot(_ctx.$slots, "default"),
6096
- unref(slots).footer || ((_a2 = _ctx.actions) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("footer", _hoisted_3$n, [
6085
+ unref(slots).footer || ((_a2 = _ctx.actions) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("footer", _hoisted_3$o, [
6097
6086
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
6098
6087
  return openBlock(), createBlock(unref(Btn), mergeProps({
6099
6088
  key: i2,
@@ -6228,8 +6217,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
6228
6217
  const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
6229
6218
  const _hoisted_1$J = { class: "accordion-item" };
6230
6219
  const _hoisted_2$y = ["aria-expanded", "aria-controls"];
6231
- const _hoisted_3$m = { class: "accordion-label" };
6232
- const _hoisted_4$f = ["id", "aria-hidden"];
6220
+ const _hoisted_3$n = { class: "accordion-label" };
6221
+ const _hoisted_4$g = ["id", "aria-hidden"];
6233
6222
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
6234
6223
  __name: "AccordionItem",
6235
6224
  props: {
@@ -6275,7 +6264,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6275
6264
  onClick: _cache[0] || (_cache[0] = ($event) => toggle())
6276
6265
  }, [
6277
6266
  renderSlot(_ctx.$slots, "head", {}, () => [
6278
- createElementVNode("span", _hoisted_3$m, toDisplayString(_ctx.label), 1)
6267
+ createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.label), 1)
6279
6268
  ], true),
6280
6269
  createElementVNode("div", {
6281
6270
  class: normalizeClass(["accordion-icon", { open: unref(isOpen) }])
@@ -6292,7 +6281,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6292
6281
  "aria-hidden": unref(isOpen) ? "false" : "true"
6293
6282
  }, [
6294
6283
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
6295
- ], 8, _hoisted_4$f)) : createCommentVNode("", true)
6284
+ ], 8, _hoisted_4$g)) : createCommentVNode("", true)
6296
6285
  ]),
6297
6286
  _: 3
6298
6287
  })
@@ -6304,13 +6293,13 @@ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "d
6304
6293
  const _sfc_main$K = {};
6305
6294
  const _hoisted_1$I = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6306
6295
  const _hoisted_2$x = { class: "p-1" };
6307
- const _hoisted_3$l = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
6296
+ const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
6308
6297
  function _sfc_render$2(_ctx, _cache) {
6309
6298
  return openBlock(), createElementBlock("div", _hoisted_1$I, [
6310
6299
  createElementVNode("div", _hoisted_2$x, [
6311
6300
  renderSlot(_ctx.$slots, "header")
6312
6301
  ]),
6313
- createElementVNode("div", _hoisted_3$l, [
6302
+ createElementVNode("div", _hoisted_3$m, [
6314
6303
  renderSlot(_ctx.$slots, "default")
6315
6304
  ])
6316
6305
  ]);
@@ -6707,10 +6696,10 @@ const _hoisted_1$F = {
6707
6696
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
6708
6697
  };
6709
6698
  const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6710
- const _hoisted_3$k = [
6699
+ const _hoisted_3$l = [
6711
6700
  _hoisted_2$u
6712
6701
  ];
6713
- const _hoisted_4$e = { class: "infinite-wrapper" };
6702
+ const _hoisted_4$f = { class: "infinite-wrapper" };
6714
6703
  const _hoisted_5$e = { class: "row first-row" };
6715
6704
  const _hoisted_6$9 = { key: 0 };
6716
6705
  const _hoisted_7$4 = ["onClick"];
@@ -6856,8 +6845,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6856
6845
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
6857
6846
  class: { "loading-table": loading.value }
6858
6847
  }), [
6859
- loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, _hoisted_3$k)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
6860
- createElementVNode("table", _hoisted_4$e, [
6848
+ loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, _hoisted_3$l)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
6849
+ createElementVNode("table", _hoisted_4$f, [
6861
6850
  createElementVNode("thead", _hoisted_5$e, [
6862
6851
  unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_6$9, [
6863
6852
  createElementVNode("input", {
@@ -6978,8 +6967,8 @@ const _hoisted_2$t = {
6978
6967
  key: 0,
6979
6968
  class: "data-row m_py-05"
6980
6969
  };
6981
- const _hoisted_3$j = { class: "key" };
6982
- const _hoisted_4$d = { class: "m-0" };
6970
+ const _hoisted_3$k = { class: "key" };
6971
+ const _hoisted_4$e = { class: "m-0" };
6983
6972
  const _hoisted_5$d = { key: 1 };
6984
6973
  const _hoisted_6$8 = {
6985
6974
  key: 0,
@@ -7037,8 +7026,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7037
7026
  key: field.id
7038
7027
  }, [
7039
7028
  unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
7040
- createElementVNode("div", _hoisted_3$j, [
7041
- createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
7029
+ createElementVNode("div", _hoisted_3$k, [
7030
+ createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
7042
7031
  ]),
7043
7032
  createVNode(unref(_sfc_main$r), {
7044
7033
  modelValue: itemData.value,
@@ -7276,10 +7265,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7276
7265
  }
7277
7266
  );
7278
7267
  const embedType = computed(() => {
7279
- const youtubeRegex = /youtube\.com|youtu\.be/;
7280
- if (youtubeRegex.test(props2.src || "")) return "YouTube";
7281
- const vimeoRegex = /vimeo\.com/;
7282
- if (vimeoRegex.test(props2.src || "")) return "Vimeo";
7268
+ const youtubeRegex2 = /youtube\.com|youtu\.be/;
7269
+ if (youtubeRegex2.test(props2.src || "")) return "YouTube";
7270
+ const vimeoRegex2 = /vimeo\.com/;
7271
+ if (vimeoRegex2.test(props2.src || "")) return "Vimeo";
7283
7272
  return null;
7284
7273
  });
7285
7274
  const videoUrl = computed(() => {
@@ -7287,17 +7276,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7287
7276
  if (embedType.value) {
7288
7277
  if (embedType.value === "YouTube") {
7289
7278
  const videoId = (_c = (_b = (_a2 = props2.src) == null ? void 0 : _a2.split(/v=|youtu\.be\//)[1]) == null ? void 0 : _b.split("&")) == null ? void 0 : _c[0];
7290
- return `https://www.youtube.com/embed/${videoId}`;
7279
+ const queryParams = new URLSearchParams({
7280
+ autoplay: props2.autoplay ? "1" : "0"
7281
+ });
7282
+ return `https://www.youtube.com/embed/${videoId}?${queryParams}`;
7291
7283
  }
7292
7284
  if (embedType.value === "Vimeo") {
7293
- const vimeoRegex = /vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/;
7294
- const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(vimeoRegex)) == null ? void 0 : _e2[3];
7285
+ const vimeoRegex2 = /vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/;
7286
+ const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(vimeoRegex2)) == null ? void 0 : _e2[3];
7295
7287
  return `https://player.vimeo.com/video/${videoId}`;
7296
7288
  }
7297
7289
  }
7298
7290
  return props2.src;
7299
7291
  });
7300
- console.log("Video URL:", videoUrl.value);
7301
7292
  return (_ctx, _cache) => {
7302
7293
  return openBlock(), createElementBlock("div", {
7303
7294
  class: normalizeClass(["bgl_vid", { vid_empty: !_ctx.src }])
@@ -7308,7 +7299,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7308
7299
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
7309
7300
  frameborder: "0",
7310
7301
  allowfullscreen: "",
7311
- title: "Video"
7302
+ title: "Video",
7303
+ allow: "autoplay"
7312
7304
  }, null, 12, _hoisted_1$z)) : _ctx.src ? (openBlock(), createElementBlock("video", {
7313
7305
  key: 1,
7314
7306
  src: _ctx.src,
@@ -7323,7 +7315,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7323
7315
  };
7324
7316
  }
7325
7317
  });
7326
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-862e1f20"]]);
7318
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-8495afe2"]]);
7327
7319
  const _hoisted_1$y = {
7328
7320
  key: 0,
7329
7321
  class: "blocker"
@@ -7935,7 +7927,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
7935
7927
  });
7936
7928
  const _hoisted_1$u = ["title"];
7937
7929
  const _hoisted_2$o = ["id", "required"];
7938
- const _hoisted_3$i = ["for"];
7930
+ const _hoisted_3$j = ["for"];
7939
7931
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
7940
7932
  __name: "CheckInput",
7941
7933
  props: /* @__PURE__ */ mergeModels({
@@ -7975,7 +7967,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
7975
7967
  renderSlot(_ctx.$slots, "label", {}, () => [
7976
7968
  createTextVNode(toDisplayString(_ctx.label), 1)
7977
7969
  ], true)
7978
- ], 8, _hoisted_3$i)
7970
+ ], 8, _hoisted_3$j)
7979
7971
  ], 10, _hoisted_1$u);
7980
7972
  };
7981
7973
  }
@@ -16486,7 +16478,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16486
16478
  });
16487
16479
  const _hoisted_1$s = ["title"];
16488
16480
  const _hoisted_2$m = { key: 0 };
16489
- const _hoisted_3$h = ["value", "placeholder"];
16481
+ const _hoisted_3$i = ["value", "placeholder"];
16490
16482
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
16491
16483
  __name: "JSONInput",
16492
16484
  props: {
@@ -16518,7 +16510,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16518
16510
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
16519
16511
  placeholder: _ctx.placeholder,
16520
16512
  onInput: handleInput
16521
- }, null, 42, _hoisted_3$h)
16513
+ }, null, 42, _hoisted_3$i)
16522
16514
  ], 10, _hoisted_1$s);
16523
16515
  };
16524
16516
  }
@@ -16526,8 +16518,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16526
16518
  const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1cbaeab2"]]);
16527
16519
  const _hoisted_1$r = { class: "flex gap-05" };
16528
16520
  const _hoisted_2$l = ["disabled"];
16529
- const _hoisted_3$g = { key: 1 };
16530
- const _hoisted_4$c = {
16521
+ const _hoisted_3$h = { key: 1 };
16522
+ const _hoisted_4$d = {
16531
16523
  key: 2,
16532
16524
  class: "ms-auto ps-05 me-05"
16533
16525
  };
@@ -16745,8 +16737,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16745
16737
  key: 0,
16746
16738
  icon: _ctx.icon
16747
16739
  }, null, 8, ["icon"])) : createCommentVNode("", true),
16748
- !_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$g, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
16749
- _ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
16740
+ !_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$h, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
16741
+ _ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
16750
16742
  createVNode(unref(Btn), {
16751
16743
  flat: "",
16752
16744
  thin: "",
@@ -19261,8 +19253,8 @@ const VueDraggableNext = defineComponent({
19261
19253
  });
19262
19254
  const _hoisted_1$q = ["title"];
19263
19255
  const _hoisted_2$k = { class: "bagel-input" };
19264
- const _hoisted_3$f = { class: "table-side-scroll" };
19265
- const _hoisted_4$b = { class: "table-header" };
19256
+ const _hoisted_3$g = { class: "table-side-scroll" };
19257
+ const _hoisted_4$c = { class: "table-header" };
19266
19258
  const _hoisted_5$b = { class: "table-reorder" };
19267
19259
  const _hoisted_6$6 = { class: "table-action" };
19268
19260
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
@@ -19333,8 +19325,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19333
19325
  createElementVNode("div", _hoisted_2$k, [
19334
19326
  createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
19335
19327
  ]),
19336
- createElementVNode("div", _hoisted_3$f, [
19337
- createElementVNode("div", _hoisted_4$b, [
19328
+ createElementVNode("div", _hoisted_3$g, [
19329
+ createElementVNode("div", _hoisted_4$c, [
19338
19330
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
19339
19331
  return openBlock(), createElementBlock("div", {
19340
19332
  key: `${field.fieldname}header`,
@@ -19412,8 +19404,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19412
19404
  const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-515f5dc9"]]);
19413
19405
  const _hoisted_1$p = ["title"];
19414
19406
  const _hoisted_2$j = ["for"];
19415
- const _hoisted_3$e = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
19416
- const _hoisted_4$a = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
19407
+ const _hoisted_3$f = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
19408
+ const _hoisted_4$b = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
19417
19409
  const _hoisted_5$a = { key: 2 };
19418
19410
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19419
19411
  __name: "TextInput",
@@ -19507,7 +19499,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19507
19499
  onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
19508
19500
  (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
19509
19501
  onInput: updateInputVal
19510
- }), null, 16, _hoisted_3$e)), [
19502
+ }), null, 16, _hoisted_3$f)), [
19511
19503
  [
19512
19504
  vModelDynamic,
19513
19505
  unref(inputVal),
@@ -19531,7 +19523,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19531
19523
  onInput: updateInputVal,
19532
19524
  onFocusout: _cache[3] || (_cache[3] = //@ts-ignore
19533
19525
  (...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
19534
- }), null, 16, _hoisted_4$a)), [
19526
+ }), null, 16, _hoisted_4$b)), [
19535
19527
  [vModelText, unref(inputVal)]
19536
19528
  ]),
19537
19529
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$a, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
@@ -19624,11 +19616,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19624
19616
  });
19625
19617
  const _hoisted_1$m = { class: "datetime-wrap" };
19626
19618
  const _hoisted_2$h = { class: "date-wrap" };
19627
- const _hoisted_3$d = {
19619
+ const _hoisted_3$e = {
19628
19620
  key: 0,
19629
19621
  class: "time-wrap"
19630
19622
  };
19631
- const _hoisted_4$9 = ["id", "name", "value"];
19623
+ const _hoisted_4$a = ["id", "name", "value"];
19632
19624
  const _hoisted_5$9 = ["for"];
19633
19625
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
19634
19626
  __name: "DatePicker",
@@ -19678,7 +19670,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19678
19670
  _: 1
19679
19671
  }, 16, ["modelValue", "allowed-dates", "disabled-dates"])
19680
19672
  ]),
19681
- _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
19673
+ _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
19682
19674
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
19683
19675
  return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
19684
19676
  withDirectives(createElementVNode("input", {
@@ -19687,7 +19679,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19687
19679
  type: "radio",
19688
19680
  name: _ctx.label,
19689
19681
  value: hr2
19690
- }, null, 8, _hoisted_4$9), [
19682
+ }, null, 8, _hoisted_4$a), [
19691
19683
  [vModelRadio, selectedHour.value]
19692
19684
  ]),
19693
19685
  createElementVNode("label", {
@@ -19702,8 +19694,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19702
19694
  });
19703
19695
  const _hoisted_1$l = { class: "bagel-input" };
19704
19696
  const _hoisted_2$g = { class: "pb-025" };
19705
- const _hoisted_3$c = { class: "flex gap-05 flex-wrap" };
19706
- const _hoisted_4$8 = ["id", "name", "value", "checked"];
19697
+ const _hoisted_3$d = { class: "flex gap-05 flex-wrap" };
19698
+ const _hoisted_4$9 = ["id", "name", "value", "checked"];
19707
19699
  const _hoisted_5$8 = ["for"];
19708
19700
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
19709
19701
  __name: "RadioPillsInput",
@@ -19748,7 +19740,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19748
19740
  return (_ctx, _cache) => {
19749
19741
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
19750
19742
  createElementVNode("label", _hoisted_2$g, toDisplayString(_ctx.label), 1),
19751
- createElementVNode("div", _hoisted_3$c, [
19743
+ createElementVNode("div", _hoisted_3$d, [
19752
19744
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (option2, index2) => {
19753
19745
  return openBlock(), createElementBlock("div", {
19754
19746
  key: index2,
@@ -19761,7 +19753,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19761
19753
  value: getValue(option2),
19762
19754
  checked: unref(selectedValue) === getValue(option2),
19763
19755
  onChange: handleSelect
19764
- }, null, 40, _hoisted_4$8),
19756
+ }, null, 40, _hoisted_4$9),
19765
19757
  createElementVNode("label", {
19766
19758
  for: `${_ctx.id}-${getValue(option2)}`
19767
19759
  }, toDisplayString(getLabel(option2)), 9, _hoisted_5$8)
@@ -19778,8 +19770,8 @@ const _hoisted_2$f = {
19778
19770
  key: 0,
19779
19771
  class: "bgl-multi-preview"
19780
19772
  };
19781
- const _hoisted_3$b = ["src"];
19782
- const _hoisted_4$7 = { class: "m-0" };
19773
+ const _hoisted_3$c = ["src"];
19774
+ const _hoisted_4$8 = { class: "m-0" };
19783
19775
  const _hoisted_5$7 = ["width", "src"];
19784
19776
  const _hoisted_6$5 = { class: "no-margin multi-preview-txt" };
19785
19777
  const _hoisted_7$2 = {
@@ -19932,6 +19924,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19932
19924
  flushQueue();
19933
19925
  }
19934
19926
  return (_ctx, _cache) => {
19927
+ const _directive_lightbox = resolveDirective("lightbox");
19935
19928
  return openBlock(), createElementBlock("div", _hoisted_1$k, [
19936
19929
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
19937
19930
  createElementVNode("div", {
@@ -19956,17 +19949,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19956
19949
  key: file.id,
19957
19950
  class: "multi-image-item-preview"
19958
19951
  }, [
19959
- isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
19952
+ isImage(file.extension || file.url) ? withDirectives((openBlock(), createElementBlock("img", {
19960
19953
  key: 0,
19961
19954
  class: "multi-preview",
19962
19955
  src: file.url,
19963
19956
  alt: ""
19964
- }, null, 8, _hoisted_3$b)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
19957
+ }, null, 8, _hoisted_3$c)), [
19958
+ [_directive_lightbox]
19959
+ ]) : (openBlock(), createBlock(unref(_sfc_main$Q), {
19965
19960
  key: 1,
19966
19961
  icon: "draft",
19967
19962
  class: "multi-preview"
19968
19963
  })),
19969
- createElementVNode("p", _hoisted_4$7, toDisplayString(file.name), 1),
19964
+ createElementVNode("p", _hoisted_4$8, toDisplayString(file.name), 1),
19970
19965
  createVNode(unref(Btn), {
19971
19966
  thin: "",
19972
19967
  flat: "",
@@ -20014,12 +20009,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20014
20009
  key: file.id,
20015
20010
  class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
20016
20011
  }, [
20017
- isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
20012
+ isImage(file.extension || file.url) ? withDirectives((openBlock(), createElementBlock("img", {
20018
20013
  key: 0,
20019
20014
  class: "single-preview",
20020
20015
  src: file.url,
20021
20016
  alt: ""
20022
- }, null, 8, _hoisted_9)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
20017
+ }, null, 8, _hoisted_9)), [
20018
+ [_directive_lightbox]
20019
+ ]) : (openBlock(), createBlock(unref(_sfc_main$Q), {
20023
20020
  key: 1,
20024
20021
  size: 4,
20025
20022
  weight: "2",
@@ -20069,14 +20066,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20069
20066
  };
20070
20067
  }
20071
20068
  });
20072
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5911e10d"]]);
20069
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d4a17ec6"]]);
20073
20070
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
20074
20071
  const _hoisted_1$j = ["title"];
20075
20072
  const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
20076
- const _hoisted_3$a = [
20073
+ const _hoisted_3$b = [
20077
20074
  _hoisted_2$e
20078
20075
  ];
20079
- const _hoisted_4$6 = ["id", "required"];
20076
+ const _hoisted_4$7 = ["id", "required"];
20080
20077
  const _hoisted_5$6 = ["for"];
20081
20078
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
20082
20079
  __name: "ToggleInput",
@@ -20106,13 +20103,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20106
20103
  }, [
20107
20104
  createElementVNode("div", {
20108
20105
  class: normalizeClass(["switch", { checked: checked.value }])
20109
- }, _hoisted_3$a, 2),
20106
+ }, _hoisted_3$b, 2),
20110
20107
  withDirectives(createElementVNode("input", {
20111
20108
  id: inputId.value,
20112
20109
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
20113
20110
  type: "checkbox",
20114
20111
  required: _ctx.required
20115
- }, null, 8, _hoisted_4$6), [
20112
+ }, null, 8, _hoisted_4$7), [
20116
20113
  [vModelCheckbox, checked.value]
20117
20114
  ]),
20118
20115
  createElementVNode("label", { for: inputId.value }, [
@@ -46279,8 +46276,8 @@ function parsePhoneNumber() {
46279
46276
  }
46280
46277
  const _hoisted_1$h = ["aria-expanded"];
46281
46278
  const _hoisted_2$c = { class: "p-075 tel-countryp-dropdown" };
46282
- const _hoisted_3$9 = ["aria-selected", "onClick", "onMousemove"];
46283
- const _hoisted_4$5 = { class: "tel-country" };
46279
+ const _hoisted_3$a = ["aria-selected", "onClick", "onMousemove"];
46280
+ const _hoisted_4$6 = { class: "tel-country" };
46284
46281
  const _hoisted_5$5 = { key: 1 };
46285
46282
  const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
46286
46283
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
@@ -46580,9 +46577,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46580
46577
  key: 0,
46581
46578
  country: pb.iso2
46582
46579
  }, null, 8, ["country"])) : createCommentVNode("", true),
46583
- createElementVNode("p", _hoisted_4$5, toDisplayString(pb.name), 1),
46580
+ createElementVNode("p", _hoisted_4$6, toDisplayString(pb.name), 1),
46584
46581
  computedDropDownOptions.value.showDialCodeInList ? (openBlock(), createElementBlock("span", _hoisted_5$5, " +" + toDisplayString(pb.dialCode), 1)) : createCommentVNode("", true)
46585
- ], 40, _hoisted_3$9);
46582
+ ], 40, _hoisted_3$a);
46586
46583
  }), 128))
46587
46584
  ], 2)
46588
46585
  ])
@@ -47380,23 +47377,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
47380
47377
  emits: ["action"],
47381
47378
  setup(__props, { emit: __emit }) {
47382
47379
  const emit2 = __emit;
47383
- ref(null);
47384
- ref(null);
47385
47380
  const toolbarOptions = [
47386
47381
  { name: "separator" },
47387
- { name: "bold", icon: "format_bold" },
47388
- { name: "italic", icon: "format_italic" },
47389
- { name: "underline", icon: "format_underlined" },
47382
+ { name: "bold", label: "Bold", icon: "format_bold" },
47383
+ { name: "italic", label: "Italic", icon: "format_italic" },
47384
+ { name: "underline", label: "Underline", icon: "format_underlined" },
47390
47385
  { name: "separator" },
47391
- { name: "orderedList", icon: "format_list_numbered" },
47392
- { name: "unorderedList", icon: "format_list_bulleted" },
47386
+ { name: "orderedList", label: "Ordered List", icon: "format_list_numbered" },
47387
+ { name: "unorderedList", label: "Unordered List", icon: "format_list_bulleted" },
47393
47388
  { name: "separator" },
47394
- { name: "link", icon: "add_link" },
47395
- { name: "image", icon: "add_photo_alternate" },
47396
- { name: "youtube", icon: "youtube_activity" },
47389
+ { name: "link", label: "Link", icon: "add_link" },
47390
+ { name: "image", label: "Image", icon: "add_photo_alternate" },
47391
+ { name: "youtube", label: "YouTube", icon: "youtube_activity" },
47397
47392
  { name: "separator" },
47398
- { name: "splitView", icon: "code" },
47399
- { name: "clear", icon: "format_clear" }
47393
+ { name: "splitView", label: "Split View", icon: "code" },
47394
+ { name: "clear", label: "Clear Formatting", icon: "format_clear" },
47395
+ { name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
47400
47396
  ];
47401
47397
  function handleSelectChange(selectedOption) {
47402
47398
  emit2("action", "formatBlock", selectedOption);
@@ -47415,12 +47411,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
47415
47411
  key: action.name,
47416
47412
  thin: "",
47417
47413
  flat: "",
47418
- class: "rounded",
47414
+ class: normalizeClass([action.class, "rounded"]),
47419
47415
  "aria-label": action.name,
47420
47416
  icon: action.icon,
47421
47417
  onClick: ($event) => emit2("action", action.name)
47422
- }, null, 8, ["aria-label", "icon", "onClick"])), [
47423
- [_directive_tooltip, action.name]
47418
+ }, null, 8, ["class", "aria-label", "icon", "onClick"])), [
47419
+ [_directive_tooltip, action.label]
47424
47420
  ]) : createCommentVNode("", true),
47425
47421
  action.name === "separator" ? (openBlock(), createElementBlock("span", {
47426
47422
  key: `separator-${index2}`,
@@ -47605,7 +47601,9 @@ function createTable() {
47605
47601
  }
47606
47602
  }
47607
47603
  const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
47608
- const _hoisted_2$b = {
47604
+ const _hoisted_2$b = { class: "editor-container flex flex-stretch gap-1 m_column" };
47605
+ const _hoisted_3$9 = { class: "content-area rounded p-1 bg-white shadow-light w-100 grid" };
47606
+ const _hoisted_4$5 = {
47609
47607
  key: 0,
47610
47608
  class: "preview-area bg-black color-white w-100 rounded p-1"
47611
47609
  };
@@ -47644,7 +47642,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47644
47642
  "splitView",
47645
47643
  "youtube",
47646
47644
  "codeView",
47647
- "clear"
47645
+ "clear",
47646
+ "fullScreen"
47648
47647
  ];
47649
47648
  const config = ref(props2.toolbarConfig || defaultConfig2);
47650
47649
  let contentHtml = ref(props2.modelValue);
@@ -47680,12 +47679,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47680
47679
  case "codeView":
47681
47680
  isCodeView.value = !isCodeView.value;
47682
47681
  break;
47682
+ case "fullScreen":
47683
+ toggleFullScreen();
47684
+ break;
47683
47685
  default:
47684
47686
  applyFormatting(action, value);
47685
47687
  break;
47686
47688
  }
47687
47689
  updateContent();
47688
47690
  }
47691
+ function toggleFullScreen() {
47692
+ const editor = document.querySelector(".rich-text-editor");
47693
+ if (editor) {
47694
+ editor.classList.toggle("fullscreen-mode");
47695
+ }
47696
+ }
47689
47697
  watch(() => props2.modelValue, (newValue) => {
47690
47698
  if (newValue !== contentHtml.value) {
47691
47699
  contentHtml.value = newValue;
@@ -47731,12 +47739,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47731
47739
  config: config.value,
47732
47740
  onAction: handleToolbarAction
47733
47741
  }, null, 8, ["config"]),
47734
- createElementVNode("div", {
47735
- class: normalizeClass(["editor-container flex flex-stretch", { "split-view": unref(isSplitView) }])
47736
- }, [
47737
- createElementVNode("div", {
47738
- class: normalizeClass(["content-area rounded p-1 bg-white shadow-light w-100 grid", { "code-view": unref(isCodeView) }])
47739
- }, [
47742
+ createElementVNode("div", _hoisted_2$b, [
47743
+ createElementVNode("div", _hoisted_3$9, [
47740
47744
  unref(isCodeView) ? withDirectives((openBlock(), createElementBlock("textarea", {
47741
47745
  key: 0,
47742
47746
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(contentHtml) ? contentHtml.value = $event : contentHtml = $event),
@@ -47755,14 +47759,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47755
47759
  onInput: updateContent,
47756
47760
  onKeydown: handleKeyDown2
47757
47761
  }, null, 544))
47758
- ], 2),
47759
- unref(isSplitView) ? (openBlock(), createElementBlock("code", _hoisted_2$b, toDisplayString(unref(contentHtml)), 1)) : createCommentVNode("", true)
47760
- ], 2)
47762
+ ]),
47763
+ unref(isSplitView) ? (openBlock(), createElementBlock("code", _hoisted_4$5, toDisplayString(unref(contentHtml)), 1)) : createCommentVNode("", true)
47764
+ ])
47761
47765
  ]);
47762
47766
  };
47763
47767
  }
47764
47768
  });
47765
- const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ee96aa53"]]);
47769
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-c9729efd"]]);
47766
47770
  const _hoisted_1$d = ["for"];
47767
47771
  const _hoisted_2$a = ["id", "name", "value"];
47768
47772
  const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };