@bagelink/vue 0.0.726 → 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, resolveDirective, onBeforeUnmount, watchEffect, customRef } 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,46 +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
- const src = binding.value.src || binding.value || el.getAttribute("src") || "";
5330
- groups[binding.value.group].push({
5331
- src,
5332
- type: binding.value.type || determineFileType(src),
5333
- name: binding.value.name || ""
5334
- });
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);
5335
5329
  }
5336
5330
  el.addEventListener("click", (e) => {
5337
5331
  e.stopPropagation();
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;
5332
+ const lightboxInstance = createLightboxInstance();
5333
+ if (!lightboxInstance || !lightboxInstance.open) return;
5334
+ const open = lightboxInstance.open;
5352
5335
  open(item, groups[group]);
5353
5336
  });
5337
+ },
5338
+ unmounted(el, binding) {
5354
5339
  }
5355
5340
  };
5341
+ const youtubeRegex = /youtube\.com|youtu\.be/;
5342
+ const vimeoRegex = /vimeo\.com/;
5356
5343
  function determineFileType(url) {
5357
5344
  var _a2;
5358
5345
  const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
5359
5346
  if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
5360
- if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
5347
+ if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
5361
5348
  if (["pdf"].includes(extension)) return "pdf";
5362
5349
  return "unknown";
5363
5350
  }
@@ -5785,8 +5772,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5785
5772
  });
5786
5773
  const _hoisted_1$M = { class: "full-nav" };
5787
5774
  const _hoisted_2$B = { class: "nav-scroll" };
5788
- const _hoisted_3$o = { class: "nav-links-wrapper" };
5789
- const _hoisted_4$g = { class: "tooltip" };
5775
+ const _hoisted_3$p = { class: "nav-links-wrapper" };
5776
+ const _hoisted_4$h = { class: "tooltip" };
5790
5777
  const _hoisted_5$f = { class: "bot-buttons-wrapper" };
5791
5778
  const _hoisted_6$a = { class: "tooltip" };
5792
5779
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
@@ -5821,7 +5808,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5821
5808
  ], 32),
5822
5809
  createElementVNode("div", _hoisted_1$M, [
5823
5810
  createElementVNode("div", _hoisted_2$B, [
5824
- createElementVNode("div", _hoisted_3$o, [
5811
+ createElementVNode("div", _hoisted_3$p, [
5825
5812
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
5826
5813
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
5827
5814
  key: link.label,
@@ -5836,7 +5823,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5836
5823
  createVNode(unref(_sfc_main$Q), {
5837
5824
  icon: link.icon
5838
5825
  }, null, 8, ["icon"]),
5839
- createElementVNode("div", _hoisted_4$g, toDisplayString(link.label), 1)
5826
+ createElementVNode("div", _hoisted_4$h, toDisplayString(link.label), 1)
5840
5827
  ]),
5841
5828
  _: 2
5842
5829
  }, 1032, ["to", "onClick"]);
@@ -6002,7 +5989,7 @@ const _hoisted_2$z = {
6002
5989
  key: 1,
6003
5990
  class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
6004
5991
  };
6005
- const _hoisted_3$n = {
5992
+ const _hoisted_3$o = {
6006
5993
  key: 2,
6007
5994
  class: "modal-footer mt-1"
6008
5995
  };
@@ -6095,7 +6082,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6095
6082
  })
6096
6083
  ])),
6097
6084
  renderSlot(_ctx.$slots, "default"),
6098
- 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, [
6099
6086
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
6100
6087
  return openBlock(), createBlock(unref(Btn), mergeProps({
6101
6088
  key: i2,
@@ -6230,8 +6217,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
6230
6217
  const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
6231
6218
  const _hoisted_1$J = { class: "accordion-item" };
6232
6219
  const _hoisted_2$y = ["aria-expanded", "aria-controls"];
6233
- const _hoisted_3$m = { class: "accordion-label" };
6234
- const _hoisted_4$f = ["id", "aria-hidden"];
6220
+ const _hoisted_3$n = { class: "accordion-label" };
6221
+ const _hoisted_4$g = ["id", "aria-hidden"];
6235
6222
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
6236
6223
  __name: "AccordionItem",
6237
6224
  props: {
@@ -6277,7 +6264,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6277
6264
  onClick: _cache[0] || (_cache[0] = ($event) => toggle())
6278
6265
  }, [
6279
6266
  renderSlot(_ctx.$slots, "head", {}, () => [
6280
- createElementVNode("span", _hoisted_3$m, toDisplayString(_ctx.label), 1)
6267
+ createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.label), 1)
6281
6268
  ], true),
6282
6269
  createElementVNode("div", {
6283
6270
  class: normalizeClass(["accordion-icon", { open: unref(isOpen) }])
@@ -6294,7 +6281,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6294
6281
  "aria-hidden": unref(isOpen) ? "false" : "true"
6295
6282
  }, [
6296
6283
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
6297
- ], 8, _hoisted_4$f)) : createCommentVNode("", true)
6284
+ ], 8, _hoisted_4$g)) : createCommentVNode("", true)
6298
6285
  ]),
6299
6286
  _: 3
6300
6287
  })
@@ -6306,13 +6293,13 @@ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "d
6306
6293
  const _sfc_main$K = {};
6307
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" };
6308
6295
  const _hoisted_2$x = { class: "p-1" };
6309
- 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" };
6310
6297
  function _sfc_render$2(_ctx, _cache) {
6311
6298
  return openBlock(), createElementBlock("div", _hoisted_1$I, [
6312
6299
  createElementVNode("div", _hoisted_2$x, [
6313
6300
  renderSlot(_ctx.$slots, "header")
6314
6301
  ]),
6315
- createElementVNode("div", _hoisted_3$l, [
6302
+ createElementVNode("div", _hoisted_3$m, [
6316
6303
  renderSlot(_ctx.$slots, "default")
6317
6304
  ])
6318
6305
  ]);
@@ -6709,10 +6696,10 @@ const _hoisted_1$F = {
6709
6696
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
6710
6697
  };
6711
6698
  const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6712
- const _hoisted_3$k = [
6699
+ const _hoisted_3$l = [
6713
6700
  _hoisted_2$u
6714
6701
  ];
6715
- const _hoisted_4$e = { class: "infinite-wrapper" };
6702
+ const _hoisted_4$f = { class: "infinite-wrapper" };
6716
6703
  const _hoisted_5$e = { class: "row first-row" };
6717
6704
  const _hoisted_6$9 = { key: 0 };
6718
6705
  const _hoisted_7$4 = ["onClick"];
@@ -6858,8 +6845,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6858
6845
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
6859
6846
  class: { "loading-table": loading.value }
6860
6847
  }), [
6861
- loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, _hoisted_3$k)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
6862
- 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, [
6863
6850
  createElementVNode("thead", _hoisted_5$e, [
6864
6851
  unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_6$9, [
6865
6852
  createElementVNode("input", {
@@ -6980,8 +6967,8 @@ const _hoisted_2$t = {
6980
6967
  key: 0,
6981
6968
  class: "data-row m_py-05"
6982
6969
  };
6983
- const _hoisted_3$j = { class: "key" };
6984
- const _hoisted_4$d = { class: "m-0" };
6970
+ const _hoisted_3$k = { class: "key" };
6971
+ const _hoisted_4$e = { class: "m-0" };
6985
6972
  const _hoisted_5$d = { key: 1 };
6986
6973
  const _hoisted_6$8 = {
6987
6974
  key: 0,
@@ -7039,8 +7026,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7039
7026
  key: field.id
7040
7027
  }, [
7041
7028
  unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
7042
- createElementVNode("div", _hoisted_3$j, [
7043
- 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)
7044
7031
  ]),
7045
7032
  createVNode(unref(_sfc_main$r), {
7046
7033
  modelValue: itemData.value,
@@ -7278,10 +7265,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7278
7265
  }
7279
7266
  );
7280
7267
  const embedType = computed(() => {
7281
- const youtubeRegex = /youtube\.com|youtu\.be/;
7282
- if (youtubeRegex.test(props2.src || "")) return "YouTube";
7283
- const vimeoRegex = /vimeo\.com/;
7284
- 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";
7285
7272
  return null;
7286
7273
  });
7287
7274
  const videoUrl = computed(() => {
@@ -7289,17 +7276,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7289
7276
  if (embedType.value) {
7290
7277
  if (embedType.value === "YouTube") {
7291
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];
7292
- 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}`;
7293
7283
  }
7294
7284
  if (embedType.value === "Vimeo") {
7295
- const vimeoRegex = /vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/;
7296
- 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];
7297
7287
  return `https://player.vimeo.com/video/${videoId}`;
7298
7288
  }
7299
7289
  }
7300
7290
  return props2.src;
7301
7291
  });
7302
- console.log("Video URL:", videoUrl.value);
7303
7292
  return (_ctx, _cache) => {
7304
7293
  return openBlock(), createElementBlock("div", {
7305
7294
  class: normalizeClass(["bgl_vid", { vid_empty: !_ctx.src }])
@@ -7310,7 +7299,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7310
7299
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
7311
7300
  frameborder: "0",
7312
7301
  allowfullscreen: "",
7313
- title: "Video"
7302
+ title: "Video",
7303
+ allow: "autoplay"
7314
7304
  }, null, 12, _hoisted_1$z)) : _ctx.src ? (openBlock(), createElementBlock("video", {
7315
7305
  key: 1,
7316
7306
  src: _ctx.src,
@@ -7325,7 +7315,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7325
7315
  };
7326
7316
  }
7327
7317
  });
7328
- 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"]]);
7329
7319
  const _hoisted_1$y = {
7330
7320
  key: 0,
7331
7321
  class: "blocker"
@@ -7937,7 +7927,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
7937
7927
  });
7938
7928
  const _hoisted_1$u = ["title"];
7939
7929
  const _hoisted_2$o = ["id", "required"];
7940
- const _hoisted_3$i = ["for"];
7930
+ const _hoisted_3$j = ["for"];
7941
7931
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
7942
7932
  __name: "CheckInput",
7943
7933
  props: /* @__PURE__ */ mergeModels({
@@ -7977,7 +7967,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
7977
7967
  renderSlot(_ctx.$slots, "label", {}, () => [
7978
7968
  createTextVNode(toDisplayString(_ctx.label), 1)
7979
7969
  ], true)
7980
- ], 8, _hoisted_3$i)
7970
+ ], 8, _hoisted_3$j)
7981
7971
  ], 10, _hoisted_1$u);
7982
7972
  };
7983
7973
  }
@@ -16488,7 +16478,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16488
16478
  });
16489
16479
  const _hoisted_1$s = ["title"];
16490
16480
  const _hoisted_2$m = { key: 0 };
16491
- const _hoisted_3$h = ["value", "placeholder"];
16481
+ const _hoisted_3$i = ["value", "placeholder"];
16492
16482
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
16493
16483
  __name: "JSONInput",
16494
16484
  props: {
@@ -16520,7 +16510,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16520
16510
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
16521
16511
  placeholder: _ctx.placeholder,
16522
16512
  onInput: handleInput
16523
- }, null, 42, _hoisted_3$h)
16513
+ }, null, 42, _hoisted_3$i)
16524
16514
  ], 10, _hoisted_1$s);
16525
16515
  };
16526
16516
  }
@@ -16528,8 +16518,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16528
16518
  const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1cbaeab2"]]);
16529
16519
  const _hoisted_1$r = { class: "flex gap-05" };
16530
16520
  const _hoisted_2$l = ["disabled"];
16531
- const _hoisted_3$g = { key: 1 };
16532
- const _hoisted_4$c = {
16521
+ const _hoisted_3$h = { key: 1 };
16522
+ const _hoisted_4$d = {
16533
16523
  key: 2,
16534
16524
  class: "ms-auto ps-05 me-05"
16535
16525
  };
@@ -16747,8 +16737,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16747
16737
  key: 0,
16748
16738
  icon: _ctx.icon
16749
16739
  }, null, 8, ["icon"])) : createCommentVNode("", true),
16750
- !_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$g, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
16751
- _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, [
16752
16742
  createVNode(unref(Btn), {
16753
16743
  flat: "",
16754
16744
  thin: "",
@@ -19263,8 +19253,8 @@ const VueDraggableNext = defineComponent({
19263
19253
  });
19264
19254
  const _hoisted_1$q = ["title"];
19265
19255
  const _hoisted_2$k = { class: "bagel-input" };
19266
- const _hoisted_3$f = { class: "table-side-scroll" };
19267
- const _hoisted_4$b = { class: "table-header" };
19256
+ const _hoisted_3$g = { class: "table-side-scroll" };
19257
+ const _hoisted_4$c = { class: "table-header" };
19268
19258
  const _hoisted_5$b = { class: "table-reorder" };
19269
19259
  const _hoisted_6$6 = { class: "table-action" };
19270
19260
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
@@ -19335,8 +19325,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19335
19325
  createElementVNode("div", _hoisted_2$k, [
19336
19326
  createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
19337
19327
  ]),
19338
- createElementVNode("div", _hoisted_3$f, [
19339
- createElementVNode("div", _hoisted_4$b, [
19328
+ createElementVNode("div", _hoisted_3$g, [
19329
+ createElementVNode("div", _hoisted_4$c, [
19340
19330
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
19341
19331
  return openBlock(), createElementBlock("div", {
19342
19332
  key: `${field.fieldname}header`,
@@ -19414,8 +19404,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19414
19404
  const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-515f5dc9"]]);
19415
19405
  const _hoisted_1$p = ["title"];
19416
19406
  const _hoisted_2$j = ["for"];
19417
- const _hoisted_3$e = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
19418
- 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"];
19419
19409
  const _hoisted_5$a = { key: 2 };
19420
19410
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19421
19411
  __name: "TextInput",
@@ -19509,7 +19499,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19509
19499
  onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
19510
19500
  (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
19511
19501
  onInput: updateInputVal
19512
- }), null, 16, _hoisted_3$e)), [
19502
+ }), null, 16, _hoisted_3$f)), [
19513
19503
  [
19514
19504
  vModelDynamic,
19515
19505
  unref(inputVal),
@@ -19533,7 +19523,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19533
19523
  onInput: updateInputVal,
19534
19524
  onFocusout: _cache[3] || (_cache[3] = //@ts-ignore
19535
19525
  (...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
19536
- }), null, 16, _hoisted_4$a)), [
19526
+ }), null, 16, _hoisted_4$b)), [
19537
19527
  [vModelText, unref(inputVal)]
19538
19528
  ]),
19539
19529
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$a, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
@@ -19626,11 +19616,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19626
19616
  });
19627
19617
  const _hoisted_1$m = { class: "datetime-wrap" };
19628
19618
  const _hoisted_2$h = { class: "date-wrap" };
19629
- const _hoisted_3$d = {
19619
+ const _hoisted_3$e = {
19630
19620
  key: 0,
19631
19621
  class: "time-wrap"
19632
19622
  };
19633
- const _hoisted_4$9 = ["id", "name", "value"];
19623
+ const _hoisted_4$a = ["id", "name", "value"];
19634
19624
  const _hoisted_5$9 = ["for"];
19635
19625
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
19636
19626
  __name: "DatePicker",
@@ -19680,7 +19670,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19680
19670
  _: 1
19681
19671
  }, 16, ["modelValue", "allowed-dates", "disabled-dates"])
19682
19672
  ]),
19683
- _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
19673
+ _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
19684
19674
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
19685
19675
  return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
19686
19676
  withDirectives(createElementVNode("input", {
@@ -19689,7 +19679,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19689
19679
  type: "radio",
19690
19680
  name: _ctx.label,
19691
19681
  value: hr2
19692
- }, null, 8, _hoisted_4$9), [
19682
+ }, null, 8, _hoisted_4$a), [
19693
19683
  [vModelRadio, selectedHour.value]
19694
19684
  ]),
19695
19685
  createElementVNode("label", {
@@ -19704,8 +19694,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19704
19694
  });
19705
19695
  const _hoisted_1$l = { class: "bagel-input" };
19706
19696
  const _hoisted_2$g = { class: "pb-025" };
19707
- const _hoisted_3$c = { class: "flex gap-05 flex-wrap" };
19708
- 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"];
19709
19699
  const _hoisted_5$8 = ["for"];
19710
19700
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
19711
19701
  __name: "RadioPillsInput",
@@ -19750,7 +19740,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19750
19740
  return (_ctx, _cache) => {
19751
19741
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
19752
19742
  createElementVNode("label", _hoisted_2$g, toDisplayString(_ctx.label), 1),
19753
- createElementVNode("div", _hoisted_3$c, [
19743
+ createElementVNode("div", _hoisted_3$d, [
19754
19744
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (option2, index2) => {
19755
19745
  return openBlock(), createElementBlock("div", {
19756
19746
  key: index2,
@@ -19763,7 +19753,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19763
19753
  value: getValue(option2),
19764
19754
  checked: unref(selectedValue) === getValue(option2),
19765
19755
  onChange: handleSelect
19766
- }, null, 40, _hoisted_4$8),
19756
+ }, null, 40, _hoisted_4$9),
19767
19757
  createElementVNode("label", {
19768
19758
  for: `${_ctx.id}-${getValue(option2)}`
19769
19759
  }, toDisplayString(getLabel(option2)), 9, _hoisted_5$8)
@@ -19780,8 +19770,8 @@ const _hoisted_2$f = {
19780
19770
  key: 0,
19781
19771
  class: "bgl-multi-preview"
19782
19772
  };
19783
- const _hoisted_3$b = ["src"];
19784
- const _hoisted_4$7 = { class: "m-0" };
19773
+ const _hoisted_3$c = ["src"];
19774
+ const _hoisted_4$8 = { class: "m-0" };
19785
19775
  const _hoisted_5$7 = ["width", "src"];
19786
19776
  const _hoisted_6$5 = { class: "no-margin multi-preview-txt" };
19787
19777
  const _hoisted_7$2 = {
@@ -19964,14 +19954,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19964
19954
  class: "multi-preview",
19965
19955
  src: file.url,
19966
19956
  alt: ""
19967
- }, null, 8, _hoisted_3$b)), [
19957
+ }, null, 8, _hoisted_3$c)), [
19968
19958
  [_directive_lightbox]
19969
19959
  ]) : (openBlock(), createBlock(unref(_sfc_main$Q), {
19970
19960
  key: 1,
19971
19961
  icon: "draft",
19972
19962
  class: "multi-preview"
19973
19963
  })),
19974
- createElementVNode("p", _hoisted_4$7, toDisplayString(file.name), 1),
19964
+ createElementVNode("p", _hoisted_4$8, toDisplayString(file.name), 1),
19975
19965
  createVNode(unref(Btn), {
19976
19966
  thin: "",
19977
19967
  flat: "",
@@ -20080,10 +20070,10 @@ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d4a1
20080
20070
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
20081
20071
  const _hoisted_1$j = ["title"];
20082
20072
  const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
20083
- const _hoisted_3$a = [
20073
+ const _hoisted_3$b = [
20084
20074
  _hoisted_2$e
20085
20075
  ];
20086
- const _hoisted_4$6 = ["id", "required"];
20076
+ const _hoisted_4$7 = ["id", "required"];
20087
20077
  const _hoisted_5$6 = ["for"];
20088
20078
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
20089
20079
  __name: "ToggleInput",
@@ -20113,13 +20103,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20113
20103
  }, [
20114
20104
  createElementVNode("div", {
20115
20105
  class: normalizeClass(["switch", { checked: checked.value }])
20116
- }, _hoisted_3$a, 2),
20106
+ }, _hoisted_3$b, 2),
20117
20107
  withDirectives(createElementVNode("input", {
20118
20108
  id: inputId.value,
20119
20109
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
20120
20110
  type: "checkbox",
20121
20111
  required: _ctx.required
20122
- }, null, 8, _hoisted_4$6), [
20112
+ }, null, 8, _hoisted_4$7), [
20123
20113
  [vModelCheckbox, checked.value]
20124
20114
  ]),
20125
20115
  createElementVNode("label", { for: inputId.value }, [
@@ -46286,8 +46276,8 @@ function parsePhoneNumber() {
46286
46276
  }
46287
46277
  const _hoisted_1$h = ["aria-expanded"];
46288
46278
  const _hoisted_2$c = { class: "p-075 tel-countryp-dropdown" };
46289
- const _hoisted_3$9 = ["aria-selected", "onClick", "onMousemove"];
46290
- const _hoisted_4$5 = { class: "tel-country" };
46279
+ const _hoisted_3$a = ["aria-selected", "onClick", "onMousemove"];
46280
+ const _hoisted_4$6 = { class: "tel-country" };
46291
46281
  const _hoisted_5$5 = { key: 1 };
46292
46282
  const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
46293
46283
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
@@ -46587,9 +46577,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46587
46577
  key: 0,
46588
46578
  country: pb.iso2
46589
46579
  }, null, 8, ["country"])) : createCommentVNode("", true),
46590
- createElementVNode("p", _hoisted_4$5, toDisplayString(pb.name), 1),
46580
+ createElementVNode("p", _hoisted_4$6, toDisplayString(pb.name), 1),
46591
46581
  computedDropDownOptions.value.showDialCodeInList ? (openBlock(), createElementBlock("span", _hoisted_5$5, " +" + toDisplayString(pb.dialCode), 1)) : createCommentVNode("", true)
46592
- ], 40, _hoisted_3$9);
46582
+ ], 40, _hoisted_3$a);
46593
46583
  }), 128))
46594
46584
  ], 2)
46595
46585
  ])
@@ -47387,23 +47377,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
47387
47377
  emits: ["action"],
47388
47378
  setup(__props, { emit: __emit }) {
47389
47379
  const emit2 = __emit;
47390
- ref(null);
47391
- ref(null);
47392
47380
  const toolbarOptions = [
47393
47381
  { name: "separator" },
47394
- { name: "bold", icon: "format_bold" },
47395
- { name: "italic", icon: "format_italic" },
47396
- { 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" },
47397
47385
  { name: "separator" },
47398
- { name: "orderedList", icon: "format_list_numbered" },
47399
- { 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" },
47400
47388
  { name: "separator" },
47401
- { name: "link", icon: "add_link" },
47402
- { name: "image", icon: "add_photo_alternate" },
47403
- { 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" },
47404
47392
  { name: "separator" },
47405
- { name: "splitView", icon: "code" },
47406
- { 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" }
47407
47396
  ];
47408
47397
  function handleSelectChange(selectedOption) {
47409
47398
  emit2("action", "formatBlock", selectedOption);
@@ -47422,12 +47411,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
47422
47411
  key: action.name,
47423
47412
  thin: "",
47424
47413
  flat: "",
47425
- class: "rounded",
47414
+ class: normalizeClass([action.class, "rounded"]),
47426
47415
  "aria-label": action.name,
47427
47416
  icon: action.icon,
47428
47417
  onClick: ($event) => emit2("action", action.name)
47429
- }, null, 8, ["aria-label", "icon", "onClick"])), [
47430
- [_directive_tooltip, action.name]
47418
+ }, null, 8, ["class", "aria-label", "icon", "onClick"])), [
47419
+ [_directive_tooltip, action.label]
47431
47420
  ]) : createCommentVNode("", true),
47432
47421
  action.name === "separator" ? (openBlock(), createElementBlock("span", {
47433
47422
  key: `separator-${index2}`,
@@ -47612,7 +47601,9 @@ function createTable() {
47612
47601
  }
47613
47602
  }
47614
47603
  const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
47615
- 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 = {
47616
47607
  key: 0,
47617
47608
  class: "preview-area bg-black color-white w-100 rounded p-1"
47618
47609
  };
@@ -47651,7 +47642,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47651
47642
  "splitView",
47652
47643
  "youtube",
47653
47644
  "codeView",
47654
- "clear"
47645
+ "clear",
47646
+ "fullScreen"
47655
47647
  ];
47656
47648
  const config = ref(props2.toolbarConfig || defaultConfig2);
47657
47649
  let contentHtml = ref(props2.modelValue);
@@ -47687,12 +47679,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47687
47679
  case "codeView":
47688
47680
  isCodeView.value = !isCodeView.value;
47689
47681
  break;
47682
+ case "fullScreen":
47683
+ toggleFullScreen();
47684
+ break;
47690
47685
  default:
47691
47686
  applyFormatting(action, value);
47692
47687
  break;
47693
47688
  }
47694
47689
  updateContent();
47695
47690
  }
47691
+ function toggleFullScreen() {
47692
+ const editor = document.querySelector(".rich-text-editor");
47693
+ if (editor) {
47694
+ editor.classList.toggle("fullscreen-mode");
47695
+ }
47696
+ }
47696
47697
  watch(() => props2.modelValue, (newValue) => {
47697
47698
  if (newValue !== contentHtml.value) {
47698
47699
  contentHtml.value = newValue;
@@ -47738,12 +47739,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47738
47739
  config: config.value,
47739
47740
  onAction: handleToolbarAction
47740
47741
  }, null, 8, ["config"]),
47741
- createElementVNode("div", {
47742
- class: normalizeClass(["editor-container flex flex-stretch", { "split-view": unref(isSplitView) }])
47743
- }, [
47744
- createElementVNode("div", {
47745
- class: normalizeClass(["content-area rounded p-1 bg-white shadow-light w-100 grid", { "code-view": unref(isCodeView) }])
47746
- }, [
47742
+ createElementVNode("div", _hoisted_2$b, [
47743
+ createElementVNode("div", _hoisted_3$9, [
47747
47744
  unref(isCodeView) ? withDirectives((openBlock(), createElementBlock("textarea", {
47748
47745
  key: 0,
47749
47746
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(contentHtml) ? contentHtml.value = $event : contentHtml = $event),
@@ -47762,14 +47759,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47762
47759
  onInput: updateContent,
47763
47760
  onKeydown: handleKeyDown2
47764
47761
  }, null, 544))
47765
- ], 2),
47766
- unref(isSplitView) ? (openBlock(), createElementBlock("code", _hoisted_2$b, toDisplayString(unref(contentHtml)), 1)) : createCommentVNode("", true)
47767
- ], 2)
47762
+ ]),
47763
+ unref(isSplitView) ? (openBlock(), createElementBlock("code", _hoisted_4$5, toDisplayString(unref(contentHtml)), 1)) : createCommentVNode("", true)
47764
+ ])
47768
47765
  ]);
47769
47766
  };
47770
47767
  }
47771
47768
  });
47772
- 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"]]);
47773
47770
  const _hoisted_1$d = ["for"];
47774
47771
  const _hoisted_2$a = ["id", "name", "value"];
47775
47772
  const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };