@bagelink/vue 0.0.318 → 0.0.322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/components/Badge.vue.d.ts +2 -2
  2. package/dist/components/Badge.vue.d.ts.map +1 -1
  3. package/dist/components/Card.vue.d.ts +2 -2
  4. package/dist/components/ComboBox.vue.d.ts +13 -2
  5. package/dist/components/ComboBox.vue.d.ts.map +1 -1
  6. package/dist/components/ListView.vue.d.ts.map +1 -1
  7. package/dist/components/Modal.vue.d.ts.map +1 -1
  8. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  9. package/dist/components/form/BglForm.vue.d.ts +4 -0
  10. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  11. package/dist/components/form/inputs/TextInput.vue.d.ts +2 -0
  12. package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
  13. package/dist/components/index.d.ts +0 -1
  14. package/dist/components/index.d.ts.map +1 -1
  15. package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
  16. package/dist/components/whatsapp/index.d.ts +0 -2
  17. package/dist/components/whatsapp/index.d.ts.map +1 -1
  18. package/dist/index.cjs +415 -566
  19. package/dist/index.mjs +415 -566
  20. package/dist/style.css +179 -213
  21. package/dist/types/BagelForm.d.ts +1 -1
  22. package/dist/types/BagelForm.d.ts.map +1 -1
  23. package/dist/types/materialIcons.d.ts +1 -1
  24. package/dist/types/materialIcons.d.ts.map +1 -1
  25. package/dist/utils/BagelFormUtils.d.ts +23 -0
  26. package/dist/utils/BagelFormUtils.d.ts.map +1 -0
  27. package/dist/utils/index.d.ts +1 -0
  28. package/dist/utils/index.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/components/Badge.vue +2 -2
  31. package/src/components/Carousel.vue +137 -137
  32. package/src/components/ComboBox.vue +72 -49
  33. package/src/components/ListView.vue +28 -27
  34. package/src/components/Modal.vue +25 -23
  35. package/src/components/form/BglField.vue +33 -48
  36. package/src/components/form/BglForm.vue +34 -15
  37. package/src/components/form/inputs/TextInput.vue +121 -151
  38. package/src/components/index.ts +1 -1
  39. package/src/components/layout/SidebarMenu.vue +4 -5
  40. package/src/components/whatsapp/index.ts +2 -2
  41. package/src/styles/layout.css +24 -1
  42. package/src/styles/text.css +4 -0
  43. package/src/types/BagelForm.ts +7 -7
  44. package/src/types/materialIcons.ts +1183 -3006
  45. package/src/utils/BagelFormUtils.ts +58 -0
  46. package/src/utils/index.ts +3 -0
package/dist/index.cjs CHANGED
@@ -4880,7 +4880,7 @@ const ModalPlugin = {
4880
4880
  const props2 = { ...modal.modalOptions, visible: true, "onUpdate:visible": () => hideModal(index2) };
4881
4881
  if (modal.modalType === "modalForm")
4882
4882
  return vue.h(ModalForm, props2, modal.componentSlots);
4883
- return vue.h(_sfc_main$E, props2, modal.componentSlots);
4883
+ return vue.h(_sfc_main$C, props2, modal.componentSlots);
4884
4884
  });
4885
4885
  }
4886
4886
  });
@@ -4907,6 +4907,55 @@ function formatString(str, format2) {
4907
4907
  }
4908
4908
  return str;
4909
4909
  }
4910
+ function txtField(id, label, options) {
4911
+ return {
4912
+ $el: "text",
4913
+ class: options == null ? void 0 : options.class,
4914
+ required: options == null ? void 0 : options.required,
4915
+ id,
4916
+ label,
4917
+ placeholder: options == null ? void 0 : options.placeholder,
4918
+ attrs: { type: options == null ? void 0 : options.type }
4919
+ };
4920
+ }
4921
+ function slctField(id, label, options, config) {
4922
+ return {
4923
+ $el: "select",
4924
+ id,
4925
+ options,
4926
+ class: config == null ? void 0 : config.class,
4927
+ placeholder: config == null ? void 0 : config.placeholder,
4928
+ required: config == null ? void 0 : config.required,
4929
+ label,
4930
+ defaultValue: config == null ? void 0 : config.defaultValue,
4931
+ attrs: { disabled: config == null ? void 0 : config.disabled }
4932
+ };
4933
+ }
4934
+ function numField(id, label, options) {
4935
+ return {
4936
+ $el: "text",
4937
+ class: options == null ? void 0 : options.class,
4938
+ required: options == null ? void 0 : options.required,
4939
+ id,
4940
+ label,
4941
+ placeholder: options == null ? void 0 : options.placeholder,
4942
+ attrs: { type: "number" }
4943
+ };
4944
+ }
4945
+ function frmRow(...children2) {
4946
+ return {
4947
+ $el: "div",
4948
+ class: "flex gap-1",
4949
+ children: children2
4950
+ };
4951
+ }
4952
+ const BagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4953
+ __proto__: null,
4954
+ frmRow,
4955
+ numField,
4956
+ slctField,
4957
+ txtField
4958
+ }, Symbol.toStringTag, { value: "Module" }));
4910
4959
  let timeout;
4911
4960
  const debounce = (fn, delay = 500) => {
4912
4961
  clearTimeout(timeout);
@@ -4942,6 +4991,8 @@ function bindAttrs(attrs, fieldVal, row) {
4942
4991
  key,
4943
4992
  typeof value === "function" ? value(fieldVal, row) : value
4944
4993
  ]);
4994
+ if (attrs.options)
4995
+ console.log("arr", arr);
4945
4996
  const resolvedAttrs = Object.fromEntries(arr);
4946
4997
  return resolvedAttrs;
4947
4998
  }
@@ -17065,8 +17116,8 @@ const marks = {
17065
17116
  }
17066
17117
  };
17067
17118
  const schema = new Schema({ nodes, marks });
17068
- const _hoisted_1$J = ["id"];
17069
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17119
+ const _hoisted_1$I = ["id"];
17120
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17070
17121
  __name: "RTXEditor",
17071
17122
  props: {
17072
17123
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -17143,11 +17194,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17143
17194
  onClick: focusEditor,
17144
17195
  id: `canvas-${_ctx.elementId}`,
17145
17196
  onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
17146
- }, null, 40, _hoisted_1$J);
17197
+ }, null, 40, _hoisted_1$I);
17147
17198
  };
17148
17199
  }
17149
17200
  });
17150
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17201
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17151
17202
  __name: "MaterialIcon",
17152
17203
  props: {
17153
17204
  icon: {},
@@ -17163,13 +17214,13 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17163
17214
  };
17164
17215
  }
17165
17216
  });
17166
- const _hoisted_1$I = { class: "full-nav" };
17217
+ const _hoisted_1$H = { class: "full-nav" };
17167
17218
  const _hoisted_2$y = { class: "nav-scroll" };
17168
- const _hoisted_3$p = { class: "nav-links-wrapper" };
17169
- const _hoisted_4$h = { class: "tooltip" };
17170
- const _hoisted_5$e = { class: "bot-buttons-wrapper" };
17171
- const _hoisted_6$a = { class: "tooltip" };
17172
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17219
+ const _hoisted_3$o = { class: "nav-links-wrapper" };
17220
+ const _hoisted_4$g = { class: "tooltip" };
17221
+ const _hoisted_5$d = { class: "bot-buttons-wrapper" };
17222
+ const _hoisted_6$9 = { class: "tooltip" };
17223
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17173
17224
  __name: "NavBar",
17174
17225
  props: {
17175
17226
  footerLinks: { default: () => [] },
@@ -17193,14 +17244,14 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17193
17244
  "aria-label": "Toggle Navigation",
17194
17245
  tabindex: "0"
17195
17246
  }, [
17196
- vue.createVNode(vue.unref(_sfc_main$H), {
17247
+ vue.createVNode(vue.unref(_sfc_main$F), {
17197
17248
  icon: "chevron_right",
17198
17249
  class: "top-arrow"
17199
17250
  })
17200
17251
  ], 32),
17201
- vue.createElementVNode("div", _hoisted_1$I, [
17252
+ vue.createElementVNode("div", _hoisted_1$H, [
17202
17253
  vue.createElementVNode("div", _hoisted_2$y, [
17203
- vue.createElementVNode("div", _hoisted_3$p, [
17254
+ vue.createElementVNode("div", _hoisted_3$o, [
17204
17255
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
17205
17256
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
17206
17257
  class: "nav-button",
@@ -17212,17 +17263,17 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17212
17263
  }
17213
17264
  }, {
17214
17265
  default: vue.withCtx(() => [
17215
- vue.createVNode(vue.unref(_sfc_main$H), {
17266
+ vue.createVNode(vue.unref(_sfc_main$F), {
17216
17267
  icon: link.icon
17217
17268
  }, null, 8, ["icon"]),
17218
- vue.createElementVNode("div", _hoisted_4$h, vue.toDisplayString(link.label), 1)
17269
+ vue.createElementVNode("div", _hoisted_4$g, vue.toDisplayString(link.label), 1)
17219
17270
  ]),
17220
17271
  _: 2
17221
17272
  }, 1032, ["to", "onClick"]);
17222
17273
  }), 128))
17223
17274
  ])
17224
17275
  ]),
17225
- vue.createElementVNode("div", _hoisted_5$e, [
17276
+ vue.createElementVNode("div", _hoisted_5$d, [
17226
17277
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.footerLinks, (link) => {
17227
17278
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
17228
17279
  class: "nav-button",
@@ -17234,10 +17285,10 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17234
17285
  key: link.label
17235
17286
  }, {
17236
17287
  default: vue.withCtx(() => [
17237
- vue.createVNode(vue.unref(_sfc_main$H), {
17288
+ vue.createVNode(vue.unref(_sfc_main$F), {
17238
17289
  icon: link.icon
17239
17290
  }, null, 8, ["icon"]),
17240
- vue.createElementVNode("div", _hoisted_6$a, vue.toDisplayString(link.label), 1)
17291
+ vue.createElementVNode("div", _hoisted_6$9, vue.toDisplayString(link.label), 1)
17241
17292
  ]),
17242
17293
  _: 2
17243
17294
  }, 1032, ["to", "onClick"]);
@@ -17256,8 +17307,8 @@ const _export_sfc = (sfc, props2) => {
17256
17307
  }
17257
17308
  return target;
17258
17309
  };
17259
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-727b754a"]]);
17260
- const _hoisted_1$H = {
17310
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-727b754a"]]);
17311
+ const _hoisted_1$G = {
17261
17312
  key: 0,
17262
17313
  class: "loading"
17263
17314
  };
@@ -17265,7 +17316,7 @@ const _hoisted_2$x = {
17265
17316
  key: 1,
17266
17317
  class: "bgl_btn-flex"
17267
17318
  };
17268
- const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17319
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17269
17320
  __name: "Btn",
17270
17321
  props: {
17271
17322
  disabled: { type: Boolean, default: false },
@@ -17351,8 +17402,8 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17351
17402
  })
17352
17403
  }, {
17353
17404
  default: vue.withCtx(() => [
17354
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, [
17355
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
17405
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, [
17406
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$F), {
17356
17407
  key: 0,
17357
17408
  icon: _ctx.icon
17358
17409
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -17360,7 +17411,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17360
17411
  !vue.unref(slots)["default"] && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
17361
17412
  vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
17362
17413
  ], 64)) : vue.createCommentVNode("", true),
17363
- props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
17414
+ props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$F), {
17364
17415
  key: 2,
17365
17416
  icon: props2["icon.end"]
17366
17417
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
@@ -17371,10 +17422,10 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17371
17422
  };
17372
17423
  }
17373
17424
  });
17374
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-0c8d9a95"]]);
17375
- const _hoisted_1$G = { class: "tool-bar" };
17425
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-0c8d9a95"]]);
17426
+ const _hoisted_1$F = { class: "tool-bar" };
17376
17427
  const _hoisted_2$w = { class: "modal-footer mt-3" };
17377
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17428
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17378
17429
  __name: "Modal",
17379
17430
  props: {
17380
17431
  side: { type: Boolean },
@@ -17415,13 +17466,13 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17415
17466
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
17416
17467
  onKeydown: vue.withKeys(closeModal, ["esc"])
17417
17468
  }, [
17418
- vue.createVNode(vue.unref(_sfc_main$s), {
17469
+ vue.createVNode(vue.unref(_sfc_main$q), {
17419
17470
  class: "modal",
17420
17471
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
17421
17472
  }, ["stop"]))
17422
17473
  }, {
17423
17474
  default: vue.withCtx(() => [
17424
- vue.createElementVNode("header", _hoisted_1$G, [
17475
+ vue.createElementVNode("header", _hoisted_1$F, [
17425
17476
  vue.renderSlot(_ctx.$slots, "toolbar"),
17426
17477
  vue.createVNode(vue.unref(Btn), {
17427
17478
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -17429,7 +17480,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17429
17480
  icon: "close",
17430
17481
  onClick: closeModal
17431
17482
  }, null, 8, ["style"]),
17432
- _ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$q), {
17483
+ _ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$o), {
17433
17484
  key: 0,
17434
17485
  class: "modal-title",
17435
17486
  tag: "h3",
@@ -17454,7 +17505,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17454
17505
  };
17455
17506
  }
17456
17507
  });
17457
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17508
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17458
17509
  __name: "ModalForm",
17459
17510
  props: /* @__PURE__ */ vue.mergeModels({
17460
17511
  side: { type: Boolean },
@@ -17511,7 +17562,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17511
17562
  }
17512
17563
  __expose({ setFormValues });
17513
17564
  return (_ctx, _cache) => {
17514
- return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$E), {
17565
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$C), {
17515
17566
  "onOnUpdate:isModalVisible": props2["onUpdate:isModalVisible"],
17516
17567
  side: _ctx.side,
17517
17568
  ref_key: "modal",
@@ -17520,7 +17571,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17520
17571
  title: _ctx.title
17521
17572
  }, vue.createSlots({
17522
17573
  default: vue.withCtx(() => [
17523
- vue.createVNode(vue.unref(_sfc_main$j), {
17574
+ vue.createVNode(vue.unref(_sfc_main$h), {
17524
17575
  onSubmit: runSubmit,
17525
17576
  ref_key: "form",
17526
17577
  ref: form,
@@ -17562,12 +17613,12 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17562
17613
  };
17563
17614
  }
17564
17615
  });
17565
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7e6899c7"]]);
17566
- const _hoisted_1$F = { class: "accordion-item" };
17616
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7e6899c7"]]);
17617
+ const _hoisted_1$E = { class: "accordion-item" };
17567
17618
  const _hoisted_2$v = ["aria-expanded", "aria-controls"];
17568
- const _hoisted_3$o = { class: "accordion-label" };
17569
- const _hoisted_4$g = ["id", "aria-hidden"];
17570
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17619
+ const _hoisted_3$n = { class: "accordion-label" };
17620
+ const _hoisted_4$f = ["id", "aria-hidden"];
17621
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17571
17622
  __name: "AccordionItem",
17572
17623
  props: {
17573
17624
  label: {},
@@ -17591,18 +17642,18 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17591
17642
  accordionState.openItem = null;
17592
17643
  }
17593
17644
  return (_ctx, _cache) => {
17594
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
17645
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
17595
17646
  vue.createElementVNode("button", {
17596
17647
  onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
17597
17648
  "aria-expanded": vue.unref(open) ? "true" : "false",
17598
17649
  class: "accordion-head",
17599
17650
  "aria-controls": `accordion-body-${vue.unref(id)}`
17600
17651
  }, [
17601
- vue.createElementVNode("span", _hoisted_3$o, vue.toDisplayString(_ctx.label), 1),
17652
+ vue.createElementVNode("span", _hoisted_3$n, vue.toDisplayString(_ctx.label), 1),
17602
17653
  vue.createElementVNode("div", {
17603
17654
  class: vue.normalizeClass(["accordion-icon", { open: vue.unref(open) }])
17604
17655
  }, [
17605
- vue.createVNode(vue.unref(_sfc_main$H), { icon: "expand_more" })
17656
+ vue.createVNode(vue.unref(_sfc_main$F), { icon: "expand_more" })
17606
17657
  ], 2)
17607
17658
  ], 8, _hoisted_2$v),
17608
17659
  vue.createVNode(vue.Transition, { name: "expand" }, {
@@ -17614,7 +17665,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17614
17665
  "aria-hidden": vue.unref(open) ? "false" : "true"
17615
17666
  }, [
17616
17667
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
17617
- ], 8, _hoisted_4$g)) : vue.createCommentVNode("", true)
17668
+ ], 8, _hoisted_4$f)) : vue.createCommentVNode("", true)
17618
17669
  ]),
17619
17670
  _: 3
17620
17671
  })
@@ -17622,29 +17673,28 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17622
17673
  };
17623
17674
  }
17624
17675
  });
17625
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-bf74738b"]]);
17626
- const _hoisted_1$E = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
17676
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-bf74738b"]]);
17677
+ const _hoisted_1$D = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
17627
17678
  const _hoisted_2$u = { class: "p-1" };
17628
- const _hoisted_3$n = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
17629
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17679
+ const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
17680
+ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17630
17681
  __name: "ListView",
17631
17682
  setup(__props) {
17632
17683
  return (_ctx, _cache) => {
17633
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
17684
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
17634
17685
  vue.createElementVNode("div", _hoisted_2$u, [
17635
17686
  vue.renderSlot(_ctx.$slots, "header")
17636
17687
  ]),
17637
- vue.createTextVNode(),
17638
- vue.createElementVNode("div", _hoisted_3$n, [
17688
+ vue.createElementVNode("div", _hoisted_3$m, [
17639
17689
  vue.renderSlot(_ctx.$slots, "default")
17640
17690
  ])
17641
17691
  ]);
17642
17692
  };
17643
17693
  }
17644
17694
  });
17645
- const _hoisted_1$D = { class: "txt16 no-margin ellipsis" };
17695
+ const _hoisted_1$C = { class: "txt16 no-margin ellipsis" };
17646
17696
  const _hoisted_2$t = { class: "txt14 no-margin txt-gray ellipsis" };
17647
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17697
+ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17648
17698
  __name: "ListItem",
17649
17699
  props: {
17650
17700
  src: {},
@@ -17668,7 +17718,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17668
17718
  size: 40
17669
17719
  }, null, 8, ["name", "src"])) : vue.createCommentVNode("", true),
17670
17720
  vue.createElementVNode("div", null, [
17671
- vue.createElementVNode("p", _hoisted_1$D, [
17721
+ vue.createElementVNode("p", _hoisted_1$C, [
17672
17722
  vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
17673
17723
  vue.renderSlot(_ctx.$slots, "default")
17674
17724
  ]),
@@ -17683,10 +17733,10 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17683
17733
  };
17684
17734
  }
17685
17735
  });
17686
- const _hoisted_1$C = { class: "bgl_card tabs-top" };
17736
+ const _hoisted_1$B = { class: "bgl_card tabs-top" };
17687
17737
  const _hoisted_2$s = { class: "tabs grid auto-flow-columns fit-content" };
17688
- const _hoisted_3$m = ["onClick"];
17689
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17738
+ const _hoisted_3$l = ["onClick"];
17739
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17690
17740
  __name: "TabbedLayout",
17691
17741
  props: {
17692
17742
  title: {},
@@ -17721,7 +17771,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17721
17771
  return vue.openBlock(), vue.createElementBlock("div", {
17722
17772
  class: vue.normalizeClass(["h-100 grid list-view gap-1", { "side-tabs": _ctx.sideTabs }])
17723
17773
  }, [
17724
- vue.createElementVNode("div", _hoisted_1$C, [
17774
+ vue.createElementVNode("div", _hoisted_1$B, [
17725
17775
  vue.renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
17726
17776
  vue.createElementVNode("div", _hoisted_2$s, [
17727
17777
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (tab) => {
@@ -17732,7 +17782,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17732
17782
  }, "tab"]),
17733
17783
  key: tab,
17734
17784
  onClick: ($event) => changeTab(tab)
17735
- }, vue.toDisplayString(tab), 11, _hoisted_3$m);
17785
+ }, vue.toDisplayString(tab), 11, _hoisted_3$l);
17736
17786
  }), 128))
17737
17787
  ])
17738
17788
  ]),
@@ -17748,16 +17798,16 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17748
17798
  };
17749
17799
  }
17750
17800
  });
17751
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-37337215"]]);
17752
- const _hoisted_1$B = { class: "comments-wrap" };
17801
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-37337215"]]);
17802
+ const _hoisted_1$A = { class: "comments-wrap" };
17753
17803
  const _hoisted_2$r = { class: "comment-list" };
17754
- const _hoisted_3$l = { class: "comment-top" };
17755
- const _hoisted_4$f = { class: "comment-owner" };
17756
- const _hoisted_5$d = { class: "comment-time" };
17757
- const _hoisted_6$9 = { class: "comment-actions" };
17758
- const _hoisted_7$5 = ["innerHTML"];
17804
+ const _hoisted_3$k = { class: "comment-top" };
17805
+ const _hoisted_4$e = { class: "comment-owner" };
17806
+ const _hoisted_5$c = { class: "comment-time" };
17807
+ const _hoisted_6$8 = { class: "comment-actions" };
17808
+ const _hoisted_7$4 = ["innerHTML"];
17759
17809
  const _hoisted_8$2 = { class: "new-comment" };
17760
- const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17810
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17761
17811
  __name: "Comments",
17762
17812
  props: {
17763
17813
  ref_table: {},
@@ -17800,7 +17850,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17800
17850
  void fetchData();
17801
17851
  };
17802
17852
  return (_ctx, _cache) => {
17803
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
17853
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
17804
17854
  vue.createElementVNode("div", _hoisted_2$r, [
17805
17855
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(comments), (comment) => {
17806
17856
  var _a2, _b, _c;
@@ -17811,23 +17861,23 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17811
17861
  }, "comment"]),
17812
17862
  key: comment.id
17813
17863
  }, [
17814
- vue.createElementVNode("div", _hoisted_3$l, [
17815
- vue.createElementVNode("div", _hoisted_4$f, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
17816
- vue.createElementVNode("div", _hoisted_5$d, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
17817
- vue.createElementVNode("div", _hoisted_6$9, [
17818
- vue.createVNode(vue.unref(_sfc_main$H), {
17864
+ vue.createElementVNode("div", _hoisted_3$k, [
17865
+ vue.createElementVNode("div", _hoisted_4$e, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
17866
+ vue.createElementVNode("div", _hoisted_5$c, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
17867
+ vue.createElementVNode("div", _hoisted_6$8, [
17868
+ vue.createVNode(vue.unref(_sfc_main$F), {
17819
17869
  size: 1,
17820
17870
  class: "edit",
17821
17871
  icon: "edit",
17822
17872
  onClick: ($event) => vue.isRef(editComment) ? editComment.value = comment : editComment = comment
17823
17873
  }, null, 8, ["onClick"]),
17824
- vue.createVNode(vue.unref(_sfc_main$H), {
17874
+ vue.createVNode(vue.unref(_sfc_main$F), {
17825
17875
  size: 1.2,
17826
17876
  class: "delete",
17827
17877
  icon: "delete",
17828
17878
  onClick: ($event) => deleteComment(comment.id)
17829
17879
  }, null, 8, ["onClick"]),
17830
- vue.createVNode(vue.unref(_sfc_main$H), {
17880
+ vue.createVNode(vue.unref(_sfc_main$F), {
17831
17881
  size: 1.2,
17832
17882
  class: "save",
17833
17883
  icon: "save",
@@ -17835,7 +17885,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17835
17885
  })
17836
17886
  ])
17837
17887
  ]),
17838
- vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$I), {
17888
+ vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$G), {
17839
17889
  key: 0,
17840
17890
  modelValue: vue.unref(editComment).body_html,
17841
17891
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(editComment).body_html = $event),
@@ -17844,12 +17894,12 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17844
17894
  key: 1,
17845
17895
  class: "editor-wrapper",
17846
17896
  innerHTML: comment.body_html
17847
- }, null, 8, _hoisted_7$5))
17897
+ }, null, 8, _hoisted_7$4))
17848
17898
  ], 2);
17849
17899
  }), 128))
17850
17900
  ]),
17851
17901
  vue.createElementVNode("div", _hoisted_8$2, [
17852
- vue.createVNode(vue.unref(_sfc_main$I), {
17902
+ vue.createVNode(vue.unref(_sfc_main$G), {
17853
17903
  class: "comment-input",
17854
17904
  modelValue: vue.unref(bodyHtml),
17855
17905
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
@@ -17869,10 +17919,10 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17869
17919
  };
17870
17920
  }
17871
17921
  });
17872
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-c4b41dc0"]]);
17873
- const _hoisted_1$A = { class: "page-top" };
17922
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-c4b41dc0"]]);
17923
+ const _hoisted_1$z = { class: "page-top" };
17874
17924
  const _hoisted_2$q = { class: "top-title" };
17875
- const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17925
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
17876
17926
  __name: "PageTitle",
17877
17927
  props: {
17878
17928
  value: {
@@ -17882,7 +17932,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17882
17932
  },
17883
17933
  setup(__props) {
17884
17934
  return (_ctx, _cache) => {
17885
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
17935
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
17886
17936
  vue.createElementVNode("h1", _hoisted_2$q, [
17887
17937
  vue.renderSlot(_ctx.$slots, "default"),
17888
17938
  vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
@@ -17891,14 +17941,14 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17891
17941
  };
17892
17942
  }
17893
17943
  });
17894
- const _hoisted_1$z = { class: "table-list-wrap h-100" };
17944
+ const _hoisted_1$y = { class: "table-list-wrap h-100" };
17895
17945
  const _hoisted_2$p = { class: "infinite-wrapper" };
17896
- const _hoisted_3$k = { class: "row first-row" };
17897
- const _hoisted_4$e = ["onClick"];
17898
- const _hoisted_5$c = { class: "flex" };
17899
- const _hoisted_6$8 = ["onClick"];
17900
- const _hoisted_7$4 = { key: 1 };
17901
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17946
+ const _hoisted_3$j = { class: "row first-row" };
17947
+ const _hoisted_4$d = ["onClick"];
17948
+ const _hoisted_5$b = { class: "flex" };
17949
+ const _hoisted_6$7 = ["onClick"];
17950
+ const _hoisted_7$3 = { key: 1 };
17951
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
17902
17952
  __name: "TableSchema",
17903
17953
  props: {
17904
17954
  data: {},
@@ -17932,27 +17982,27 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17932
17982
  emit2("orderBy", `${fieldname} ${sortDirection.value}`.trim());
17933
17983
  };
17934
17984
  return (_ctx, _cache) => {
17935
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
17985
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
17936
17986
  vue.createElementVNode("table", _hoisted_2$p, [
17937
- vue.createElementVNode("thead", _hoisted_3$k, [
17987
+ vue.createElementVNode("thead", _hoisted_3$j, [
17938
17988
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field) => {
17939
17989
  return vue.openBlock(), vue.createElementBlock("th", {
17940
17990
  class: "col",
17941
17991
  key: field.id,
17942
17992
  onClick: ($event) => sort2((field == null ? void 0 : field.id) || "")
17943
17993
  }, [
17944
- vue.createElementVNode("div", _hoisted_5$c, [
17994
+ vue.createElementVNode("div", _hoisted_5$b, [
17945
17995
  vue.createTextVNode(vue.toDisplayString(field.label || vue.unref(keyToLabel)(field.id)) + " ", 1),
17946
17996
  vue.createElementVNode("div", {
17947
17997
  class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
17948
17998
  }, [
17949
- vue.createVNode(vue.unref(_sfc_main$H), {
17999
+ vue.createVNode(vue.unref(_sfc_main$F), {
17950
18000
  class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
17951
18001
  icon: "keyboard_arrow_up"
17952
18002
  }, null, 8, ["class"])
17953
18003
  ], 2)
17954
18004
  ])
17955
- ], 8, _hoisted_4$e);
18005
+ ], 8, _hoisted_4$d);
17956
18006
  }), 128))
17957
18007
  ]),
17958
18008
  vue.createElementVNode("tbody", {
@@ -17974,15 +18024,15 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17974
18024
  key: 0,
17975
18025
  row,
17976
18026
  field
17977
- }, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$4, [
17978
- vue.createVNode(vue.unref(_sfc_main$i), {
18027
+ }, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
18028
+ vue.createVNode(vue.unref(_sfc_main$g), {
17979
18029
  field,
17980
18030
  modelValue: row
17981
18031
  }, null, 8, ["field", "modelValue"])
17982
18032
  ]))
17983
18033
  ]);
17984
18034
  }), 128))
17985
- ], 8, _hoisted_6$8);
18035
+ ], 8, _hoisted_6$7);
17986
18036
  }), 128))
17987
18037
  ], 2)
17988
18038
  ])
@@ -17990,16 +18040,16 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17990
18040
  };
17991
18041
  }
17992
18042
  });
17993
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-f3641508"]]);
17994
- const _sfc_main$v = {};
17995
- const _hoisted_1$y = { class: "flex space-between" };
18043
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-f3641508"]]);
18044
+ const _sfc_main$t = {};
18045
+ const _hoisted_1$x = { class: "flex space-between" };
17996
18046
  function _sfc_render$1(_ctx, _cache) {
17997
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
18047
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
17998
18048
  vue.renderSlot(_ctx.$slots, "default")
17999
18049
  ]);
18000
18050
  }
18001
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$1]]);
18002
- const _sfc_main$u = {};
18051
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$1]]);
18052
+ const _sfc_main$s = {};
18003
18053
  function _sfc_render(_ctx, _cache) {
18004
18054
  const _component_router_view = vue.resolveComponent("router-view");
18005
18055
  return vue.openBlock(), vue.createBlock(_component_router_view, null, {
@@ -18021,8 +18071,8 @@ function _sfc_render(_ctx, _cache) {
18021
18071
  _: 1
18022
18072
  });
18023
18073
  }
18024
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render]]);
18025
- const _hoisted_1$x = {
18074
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
18075
+ const _hoisted_1$w = {
18026
18076
  key: 0,
18027
18077
  class: "data"
18028
18078
  };
@@ -18030,11 +18080,11 @@ const _hoisted_2$o = {
18030
18080
  key: 0,
18031
18081
  class: "data-row"
18032
18082
  };
18033
- const _hoisted_3$j = { class: "key" };
18034
- const _hoisted_4$d = { key: 1 };
18035
- const _hoisted_5$b = { class: "key" };
18036
- const _hoisted_6$7 = { class: "vlue" };
18037
- const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18083
+ const _hoisted_3$i = { class: "key" };
18084
+ const _hoisted_4$c = { key: 1 };
18085
+ const _hoisted_5$a = { class: "key" };
18086
+ const _hoisted_6$6 = { class: "vlue" };
18087
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18038
18088
  __name: "DataPreview",
18039
18089
  props: /* @__PURE__ */ vue.mergeModels({
18040
18090
  schema: {},
@@ -18048,8 +18098,8 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18048
18098
  const itemData = vue.useModel(__props, "data");
18049
18099
  return (_ctx, _cache) => {
18050
18100
  var _a2;
18051
- return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
18052
- _ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$q), {
18101
+ return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
18102
+ _ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$o), {
18053
18103
  key: 0,
18054
18104
  label: _ctx.title
18055
18105
  }, null, 8, ["label"])) : vue.createCommentVNode("", true),
@@ -18058,8 +18108,8 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18058
18108
  key: field.id
18059
18109
  }, [
18060
18110
  vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$o, [
18061
- vue.createElementVNode("div", _hoisted_3$j, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
18062
- vue.createVNode(vue.unref(_sfc_main$i), {
18111
+ vue.createElementVNode("div", _hoisted_3$i, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
18112
+ vue.createVNode(vue.unref(_sfc_main$g), {
18063
18113
  field,
18064
18114
  modelValue: itemData.value,
18065
18115
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event)
@@ -18067,14 +18117,14 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18067
18117
  ])) : vue.createCommentVNode("", true)
18068
18118
  ], 64);
18069
18119
  }), 128)),
18070
- !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d, [
18120
+ !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c, [
18071
18121
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.entries(itemData.value), ([key, value]) => {
18072
18122
  return vue.openBlock(), vue.createElementBlock("div", {
18073
18123
  class: "data-row",
18074
18124
  key
18075
18125
  }, [
18076
- vue.createElementVNode("div", _hoisted_5$b, vue.toDisplayString(vue.unref(keyToLabel)(key)), 1),
18077
- vue.createElementVNode("div", _hoisted_6$7, vue.toDisplayString(value), 1)
18126
+ vue.createElementVNode("div", _hoisted_5$a, vue.toDisplayString(vue.unref(keyToLabel)(key)), 1),
18127
+ vue.createElementVNode("div", _hoisted_6$6, vue.toDisplayString(value), 1)
18078
18128
  ]);
18079
18129
  }), 128))
18080
18130
  ])) : vue.createCommentVNode("", true),
@@ -18083,8 +18133,8 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18083
18133
  };
18084
18134
  }
18085
18135
  });
18086
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-bb2526f9"]]);
18087
- const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18136
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-bb2526f9"]]);
18137
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18088
18138
  __name: "Card",
18089
18139
  props: {
18090
18140
  thin: { type: Boolean },
@@ -18111,8 +18161,8 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18111
18161
  };
18112
18162
  }
18113
18163
  });
18114
- const _hoisted_1$w = ["src", "alt"];
18115
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18164
+ const _hoisted_1$v = ["src", "alt"];
18165
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18116
18166
  __name: "Avatar",
18117
18167
  props: {
18118
18168
  fallback: {},
@@ -18130,7 +18180,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18130
18180
  key: 0,
18131
18181
  src: _ctx.src,
18132
18182
  alt: _ctx.name
18133
- }, null, 8, _hoisted_1$w)) : (vue.openBlock(), vue.createElementBlock("p", {
18183
+ }, null, 8, _hoisted_1$v)) : (vue.openBlock(), vue.createElementBlock("p", {
18134
18184
  key: 1,
18135
18185
  style: vue.normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
18136
18186
  }, vue.toDisplayString(_ctx.fallback || vue.unref(initials)(_ctx.name || "")), 5))
@@ -18138,8 +18188,8 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18138
18188
  };
18139
18189
  }
18140
18190
  });
18141
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-c38bc02a"]]);
18142
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18191
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-c38bc02a"]]);
18192
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18143
18193
  __name: "Title",
18144
18194
  props: {
18145
18195
  value: {
@@ -18167,7 +18217,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18167
18217
  };
18168
18218
  }
18169
18219
  });
18170
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18220
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18171
18221
  __name: "Accordion",
18172
18222
  setup(__props) {
18173
18223
  const state = vue.reactive({
@@ -18181,8 +18231,8 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18181
18231
  };
18182
18232
  }
18183
18233
  });
18184
- const _hoisted_1$v = ["onClick"];
18185
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18234
+ const _hoisted_1$u = ["onClick"];
18235
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18186
18236
  __name: "ComboBox",
18187
18237
  props: {
18188
18238
  options: {},
@@ -18190,7 +18240,9 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18190
18240
  disabled: { type: Boolean },
18191
18241
  modelValue: {},
18192
18242
  searchable: { type: Boolean },
18193
- required: { type: Boolean }
18243
+ required: { type: Boolean },
18244
+ label: {},
18245
+ fullWidth: { type: Boolean }
18194
18246
  },
18195
18247
  emits: ["update:modelValue"],
18196
18248
  setup(__props, { emit: __emit }) {
@@ -18219,10 +18271,10 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18219
18271
  });
18220
18272
  if (!option2)
18221
18273
  return value;
18222
- return label(option2);
18274
+ return getLabel(option2);
18223
18275
  };
18224
18276
  const emit2 = __emit;
18225
- const label = (option2) => {
18277
+ const getLabel = (option2) => {
18226
18278
  if (typeof option2 === "string")
18227
18279
  return option2;
18228
18280
  if (typeof option2 === "number")
@@ -18258,13 +18310,14 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18258
18310
  }, { immediate: true });
18259
18311
  return (_ctx, _cache) => {
18260
18312
  return vue.openBlock(), vue.createBlock(vue.unref(kt$1), {
18261
- placement: "auto-start",
18313
+ placement: "bottom-start",
18262
18314
  class: "bagel-input combobox"
18263
18315
  }, {
18264
18316
  popper: vue.withCtx(({ hide }) => [
18265
- vue.createVNode(vue.unref(_sfc_main$s), {
18317
+ vue.createVNode(vue.unref(_sfc_main$q), {
18266
18318
  thin: "",
18267
- class: "combobox-options"
18319
+ class: "combobox-options",
18320
+ style: vue.normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
18268
18321
  }, {
18269
18322
  default: vue.withCtx(() => [
18270
18323
  _ctx.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
@@ -18286,43 +18339,47 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18286
18339
  hide();
18287
18340
  }
18288
18341
  }, [
18289
- vue.createElementVNode("span", null, vue.toDisplayString(label(option2)), 1),
18290
- isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
18342
+ vue.createElementVNode("span", null, vue.toDisplayString(getLabel(option2)), 1),
18343
+ isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$F), {
18291
18344
  key: 0,
18292
18345
  icon: "check"
18293
18346
  })) : vue.createCommentVNode("", true)
18294
- ], 10, _hoisted_1$v);
18295
- }), 128))
18347
+ ], 10, _hoisted_1$u);
18348
+ }), 128)),
18349
+ vue.renderSlot(_ctx.$slots, "last", {}, void 0, true)
18296
18350
  ]),
18297
18351
  _: 2
18298
- }, 1024)
18352
+ }, 1032, ["style"])
18299
18353
  ]),
18300
18354
  default: vue.withCtx(() => [
18301
- vue.createElementVNode("button", {
18302
- type: "button",
18303
- class: "combobox-btn",
18304
- onClick: toggle
18305
- }, [
18306
- vue.createTextVNode(vue.toDisplayString(valueToLabel(vue.unref(selectedItem)) || _ctx.placeholder || "Select") + " ", 1),
18307
- vue.createVNode(vue.unref(_sfc_main$H), vue.normalizeProps(vue.guardReactiveProps({ "icon": vue.unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
18308
- ]),
18309
- _ctx.required ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
18310
- key: 0,
18311
- style: { "width": "0", "height": "0", "position": "absolute", "opacity": "0", "z-index": "-1" },
18312
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(selectedItem) ? selectedItem.value = $event : selectedItem = $event),
18313
- required: ""
18314
- }, null, 512)), [
18315
- [vue.vModelText, vue.unref(selectedItem)]
18316
- ]) : vue.createCommentVNode("", true)
18355
+ vue.createElementVNode("label", null, [
18356
+ vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
18357
+ vue.createElementVNode("button", {
18358
+ type: "button",
18359
+ class: "combobox-btn",
18360
+ onClick: toggle
18361
+ }, [
18362
+ vue.createTextVNode(vue.toDisplayString(valueToLabel(vue.unref(selectedItem)) || _ctx.placeholder || "Select") + " ", 1),
18363
+ vue.createVNode(vue.unref(_sfc_main$F), vue.normalizeProps(vue.guardReactiveProps({ "icon": vue.unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
18364
+ ]),
18365
+ _ctx.required ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
18366
+ key: 0,
18367
+ style: { "width": "0", "height": "0", "position": "absolute", "opacity": "0", "z-index": "-1" },
18368
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(selectedItem) ? selectedItem.value = $event : selectedItem = $event),
18369
+ required: ""
18370
+ }, null, 512)), [
18371
+ [vue.vModelText, vue.unref(selectedItem)]
18372
+ ]) : vue.createCommentVNode("", true)
18373
+ ])
18317
18374
  ]),
18318
- _: 1
18375
+ _: 3
18319
18376
  });
18320
18377
  };
18321
18378
  }
18322
18379
  });
18323
- const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-ceeb5855"]]);
18324
- const _hoisted_1$u = ["dismissable"];
18325
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18380
+ const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-220e98d7"]]);
18381
+ const _hoisted_1$t = ["dismissable"];
18382
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18326
18383
  __name: "Alert",
18327
18384
  props: {
18328
18385
  message: {},
@@ -18342,7 +18399,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18342
18399
  class: vue.normalizeClass(["alert", [_ctx.type]]),
18343
18400
  dismissable: _ctx.dismissable
18344
18401
  }, [
18345
- vue.createVNode(vue.unref(_sfc_main$H), {
18402
+ vue.createVNode(vue.unref(_sfc_main$F), {
18346
18403
  class: "alert_icon",
18347
18404
  icon: _ctx.type,
18348
18405
  size: 2,
@@ -18356,12 +18413,12 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18356
18413
  class: "alert_close",
18357
18414
  icon: "close"
18358
18415
  })
18359
- ], 10, _hoisted_1$u)) : vue.createCommentVNode("", true);
18416
+ ], 10, _hoisted_1$t)) : vue.createCommentVNode("", true);
18360
18417
  };
18361
18418
  }
18362
18419
  });
18363
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-94bfcb05"]]);
18364
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18420
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-94bfcb05"]]);
18421
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18365
18422
  __name: "Badge",
18366
18423
  props: {
18367
18424
  color: {},
@@ -18376,13 +18433,13 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18376
18433
  return vue.openBlock(), vue.createElementBlock("div", {
18377
18434
  class: vue.normalizeClass(["pill", [_ctx.color]])
18378
18435
  }, [
18379
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
18436
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$F), {
18380
18437
  key: 0,
18381
18438
  class: "inline",
18382
18439
  icon: _ctx.icon
18383
18440
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
18384
18441
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.text) + " ", 1),
18385
- props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
18442
+ props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$F), {
18386
18443
  key: 1,
18387
18444
  class: "inline",
18388
18445
  icon: props2["icon.end"]
@@ -18391,11 +18448,11 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18391
18448
  };
18392
18449
  }
18393
18450
  });
18394
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ad24530a"]]);
18395
- const _hoisted_1$t = { class: "bgl_vid" };
18451
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-10743b06"]]);
18452
+ const _hoisted_1$s = { class: "bgl_vid" };
18396
18453
  const _hoisted_2$n = ["src"];
18397
- const _hoisted_3$i = ["src", "autoplay", "muted", "loop", "controls"];
18398
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18454
+ const _hoisted_3$h = ["src", "autoplay", "muted", "loop", "controls"];
18455
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18399
18456
  __name: "BglVideo",
18400
18457
  props: {
18401
18458
  src: {},
@@ -18434,7 +18491,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18434
18491
  });
18435
18492
  console.log("Video URL:", videoUrl.value);
18436
18493
  return (_ctx, _cache) => {
18437
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
18494
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
18438
18495
  embedType.value ? (vue.openBlock(), vue.createElementBlock("iframe", {
18439
18496
  key: 0,
18440
18497
  src: videoUrl.value,
@@ -18451,18 +18508,18 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18451
18508
  style: vue.normalizeStyle({ aspectRatio: aspectRatio.value }),
18452
18509
  controls: _ctx.controls,
18453
18510
  playsinline: ""
18454
- }, null, 12, _hoisted_3$i))
18511
+ }, null, 12, _hoisted_3$h))
18455
18512
  ]);
18456
18513
  };
18457
18514
  }
18458
18515
  });
18459
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-23835d69"]]);
18460
- const _hoisted_1$s = {
18516
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-23835d69"]]);
18517
+ const _hoisted_1$r = {
18461
18518
  key: 0,
18462
18519
  class: "blocker"
18463
18520
  };
18464
18521
  const _hoisted_2$m = { class: "Handlers" };
18465
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18522
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18466
18523
  __name: "Carousel",
18467
18524
  props: {
18468
18525
  autoHeight: {
@@ -18612,7 +18669,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18612
18669
  ref_key: "bglSlider",
18613
18670
  ref: bglSlider
18614
18671
  }, [
18615
- vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s)) : vue.createCommentVNode("", true),
18672
+ vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r)) : vue.createCommentVNode("", true),
18616
18673
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
18617
18674
  ], 34),
18618
18675
  vue.createElementVNode("div", _hoisted_2$m, [
@@ -18627,13 +18684,8 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18627
18684
  };
18628
18685
  }
18629
18686
  });
18630
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-dc11f21a"]]);
18631
- const _hoisted_1$r = {
18632
- key: 1,
18633
- type: "submit",
18634
- hidden: ""
18635
- };
18636
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18687
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7e8d16cb"]]);
18688
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18637
18689
  __name: "BglForm",
18638
18690
  props: {
18639
18691
  label: {},
@@ -18645,10 +18697,12 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18645
18697
  },
18646
18698
  emits: ["update:modelValue", "submit", "dirty"],
18647
18699
  setup(__props, { expose: __expose, emit: __emit }) {
18700
+ const slots = vue.useSlots();
18648
18701
  const { showModal } = useModal();
18649
18702
  const props2 = __props;
18650
18703
  const instAt = /* @__PURE__ */ new Date();
18651
18704
  const timeSinceInst = () => (/* @__PURE__ */ new Date()).getTime() - instAt.getTime();
18705
+ let formData = vue.ref(props2.modelValue);
18652
18706
  const emit2 = __emit;
18653
18707
  let isDirty = vue.ref(false);
18654
18708
  const data2 = vue.computed({
@@ -18657,9 +18711,10 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18657
18711
  emit2("dirty");
18658
18712
  isDirty.value = true;
18659
18713
  }
18714
+ formData.value = val;
18660
18715
  emit2("update:modelValue", val);
18661
18716
  },
18662
- get: () => props2.modelValue || {}
18717
+ get: () => props2.modelValue || formData.value
18663
18718
  });
18664
18719
  const form = vue.ref();
18665
18720
  const validateForm = () => {
@@ -18667,10 +18722,17 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18667
18722
  return (_b = (_a2 = form.value) == null ? void 0 : _a2.reportValidity) == null ? void 0 : _b.call(_a2);
18668
18723
  };
18669
18724
  const clearForm = () => Object.assign(data2.value, {});
18725
+ let formStatus = vue.ref("idle");
18670
18726
  const runSubmit = () => {
18671
- validateForm();
18672
- emit2("submit", data2.value);
18673
- clearForm();
18727
+ console.log("runSubmit");
18728
+ try {
18729
+ validateForm();
18730
+ props2.onSubmit(data2.value);
18731
+ clearForm();
18732
+ formStatus.value = "success";
18733
+ } catch (e) {
18734
+ formStatus.value = "error";
18735
+ }
18674
18736
  };
18675
18737
  const i18nT = (val) => val;
18676
18738
  const deleteItem = () => {
@@ -18695,39 +18757,46 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18695
18757
  };
18696
18758
  __expose({ validateForm, deleteItem, isDirty: isDirty.value });
18697
18759
  return (_ctx, _cache) => {
18698
- return _ctx.id ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.schema, (field, i2) => {
18699
- return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$i), {
18700
- key: field.id || `${i2}p`,
18701
- field,
18702
- modelValue: data2.value,
18703
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.value = $event)
18704
- }, null, 8, ["field", "modelValue"]);
18705
- }), 128)) : (vue.openBlock(), vue.createElementBlock("form", {
18706
- key: 1,
18707
- ref_key: "form",
18708
- ref: form,
18709
- onSubmit: vue.withModifiers(runSubmit, ["prevent"])
18710
- }, [
18711
- _ctx.label ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$q), {
18712
- key: 0,
18713
- tag: "h4",
18714
- label: _ctx.label
18715
- }, null, 8, ["label"])) : vue.createCommentVNode("", true),
18716
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema, (field, i2) => {
18717
- return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$i), {
18760
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
18761
+ _ctx.id ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.schema, (field, i2) => {
18762
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$g), {
18718
18763
  key: field.id || `${i2}p`,
18719
18764
  field,
18720
18765
  modelValue: data2.value,
18721
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data2.value = $event)
18766
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.value = $event)
18722
18767
  }, null, 8, ["field", "modelValue"]);
18723
- }), 128)),
18724
- vue.renderSlot(_ctx.$slots, "submit"),
18725
- _ctx.onSubmit ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_1$r)) : vue.createCommentVNode("", true)
18726
- ], 544));
18768
+ }), 128)) : !vue.unref(slots).success || vue.unref(formStatus) !== "success" ? (vue.openBlock(), vue.createElementBlock("form", {
18769
+ key: 1,
18770
+ ref_key: "form",
18771
+ ref: form,
18772
+ onSubmit: vue.withModifiers(runSubmit, ["prevent"])
18773
+ }, [
18774
+ _ctx.label ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$o), {
18775
+ key: 0,
18776
+ tag: "h4",
18777
+ label: _ctx.label
18778
+ }, null, 8, ["label"])) : vue.createCommentVNode("", true),
18779
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema, (field, i2) => {
18780
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$g), {
18781
+ key: field.id || `${i2}p`,
18782
+ field,
18783
+ modelValue: data2.value,
18784
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data2.value = $event)
18785
+ }, null, 8, ["field", "modelValue"]);
18786
+ }), 128)),
18787
+ vue.renderSlot(_ctx.$slots, "submit"),
18788
+ vue.createElementVNode("button", { onClick: runSubmit }, " Click ")
18789
+ ], 544)) : vue.createCommentVNode("", true),
18790
+ vue.unref(formStatus) === "success" ? vue.renderSlot(_ctx.$slots, "success", { key: 2 }) : vue.createCommentVNode("", true),
18791
+ vue.unref(formStatus) === "error" ? vue.renderSlot(_ctx.$slots, "error", {
18792
+ key: 3,
18793
+ message: _ctx.error
18794
+ }) : vue.createCommentVNode("", true)
18795
+ ], 64);
18727
18796
  };
18728
18797
  }
18729
18798
  });
18730
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18799
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18731
18800
  __name: "BglField",
18732
18801
  props: {
18733
18802
  field: {},
@@ -18740,7 +18809,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18740
18809
  if (props2.field.$el === "text")
18741
18810
  return TextInput;
18742
18811
  if (props2.field.$el === "select")
18743
- return _sfc_main$e;
18812
+ return ComboBox;
18744
18813
  if (props2.field.$el === "toggle")
18745
18814
  return ToggleInput;
18746
18815
  if (props2.field.$el === "check")
@@ -18795,7 +18864,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18795
18864
  })
18796
18865
  ],
18797
18866
  defaultValue: _ctx.field.defaultValue,
18798
- options: _ctx.field.options,
18867
+ options: vue.unref(bindAttrs)({ options: _ctx.field.options }, fieldData.value, _ctx.modelValue).options,
18799
18868
  helptext: _ctx.field.helptext
18800
18869
  }), {
18801
18870
  default: vue.withCtx(() => {
@@ -18827,11 +18896,11 @@ const _hoisted_2$l = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.cr
18827
18896
  }, [
18828
18897
  /* @__PURE__ */ vue.createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
18829
18898
  ], -1));
18830
- const _hoisted_3$h = [
18899
+ const _hoisted_3$g = [
18831
18900
  _hoisted_2$l
18832
18901
  ];
18833
- const _hoisted_4$c = ["required", "id"];
18834
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18902
+ const _hoisted_4$b = ["required", "id"];
18903
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
18835
18904
  __name: "CheckInput",
18836
18905
  props: /* @__PURE__ */ vue.mergeModels({
18837
18906
  label: {},
@@ -18854,14 +18923,14 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18854
18923
  vue.createElementVNode("div", {
18855
18924
  class: vue.normalizeClass(["check-square", { checked: checked.value }]),
18856
18925
  onClick: _cache[0] || (_cache[0] = ($event) => checked.value = !checked.value)
18857
- }, _hoisted_3$h, 2),
18926
+ }, _hoisted_3$g, 2),
18858
18927
  vue.createElementVNode("label", null, [
18859
18928
  vue.withDirectives(vue.createElementVNode("input", {
18860
18929
  required: _ctx.required,
18861
18930
  id: _ctx.id,
18862
18931
  type: "checkbox",
18863
18932
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => checked.value = $event)
18864
- }, null, 8, _hoisted_4$c), [
18933
+ }, null, 8, _hoisted_4$b), [
18865
18934
  [vue.vModelCheckbox, checked.value]
18866
18935
  ]),
18867
18936
  vue.renderSlot(_ctx.$slots, "label", {}, () => [
@@ -18872,7 +18941,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18872
18941
  };
18873
18942
  }
18874
18943
  });
18875
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-e8219826"]]);
18944
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e8219826"]]);
18876
18945
  function toDate(argument) {
18877
18946
  const argStr = Object.prototype.toString.call(argument);
18878
18947
  if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
@@ -27483,7 +27552,7 @@ Object.entries(Mo).forEach(([e, t]) => {
27483
27552
  });
27484
27553
  const _hoisted_1$p = ["title"];
27485
27554
  const _hoisted_2$k = { key: 0 };
27486
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
27555
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
27487
27556
  __name: "DateInput",
27488
27557
  props: {
27489
27558
  label: {},
@@ -27535,8 +27604,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
27535
27604
  });
27536
27605
  const _hoisted_1$o = ["title"];
27537
27606
  const _hoisted_2$j = { key: 0 };
27538
- const _hoisted_3$g = ["value", "placeholder"];
27539
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
27607
+ const _hoisted_3$f = ["value", "placeholder"];
27608
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
27540
27609
  __name: "JSONInput",
27541
27610
  props: {
27542
27611
  description: { default: "" },
@@ -27567,12 +27636,12 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
27567
27636
  onInput: handleInput,
27568
27637
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
27569
27638
  placeholder: _ctx.placeholder
27570
- }, null, 42, _hoisted_3$g)
27639
+ }, null, 42, _hoisted_3$f)
27571
27640
  ], 10, _hoisted_1$o);
27572
27641
  };
27573
27642
  }
27574
27643
  });
27575
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-1fc4f739"]]);
27644
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1fc4f739"]]);
27576
27645
  function isEmpty(opt) {
27577
27646
  if (opt === 0)
27578
27647
  return false;
@@ -28565,11 +28634,11 @@ const _hoisted_1$n = {
28565
28634
  class: "multiselect__tags"
28566
28635
  };
28567
28636
  const _hoisted_2$i = { class: "multiselect__tags-wrap" };
28568
- const _hoisted_3$f = { class: "multiselect__spinner" };
28569
- const _hoisted_4$b = { key: 0 };
28570
- const _hoisted_5$a = { class: "multiselect__option" };
28571
- const _hoisted_6$6 = { class: "multiselect__option" };
28572
- const _hoisted_7$3 = /* @__PURE__ */ vue.createTextVNode("No elements found. Consider changing the search query.");
28637
+ const _hoisted_3$e = { class: "multiselect__spinner" };
28638
+ const _hoisted_4$a = { key: 0 };
28639
+ const _hoisted_5$9 = { class: "multiselect__option" };
28640
+ const _hoisted_6$5 = { class: "multiselect__option" };
28641
+ const _hoisted_7$2 = /* @__PURE__ */ vue.createTextVNode("No elements found. Consider changing the search query.");
28573
28642
  const _hoisted_8$1 = { class: "multiselect__option" };
28574
28643
  const _hoisted_9$1 = /* @__PURE__ */ vue.createTextVNode("List is empty.");
28575
28644
  function render$e(_ctx, _cache, $props, $setup, $data, $options) {
@@ -28660,7 +28729,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
28660
28729
  vue.renderSlot(_ctx.$slots, "loading", {}, () => [
28661
28730
  vue.withDirectives(vue.createVNode(
28662
28731
  "div",
28663
- _hoisted_3$f,
28732
+ _hoisted_3$e,
28664
28733
  null,
28665
28734
  512
28666
28735
  /* NEED_PATCH */
@@ -28761,8 +28830,8 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
28761
28830
  id: "listbox-" + _ctx.id
28762
28831
  }, [
28763
28832
  vue.renderSlot(_ctx.$slots, "beforeList"),
28764
- _ctx.multiple && _ctx.max === _ctx.internalValue.length ? (vue.openBlock(), vue.createBlock("li", _hoisted_4$b, [
28765
- vue.createVNode("span", _hoisted_5$a, [
28833
+ _ctx.multiple && _ctx.max === _ctx.internalValue.length ? (vue.openBlock(), vue.createBlock("li", _hoisted_4$a, [
28834
+ vue.createVNode("span", _hoisted_5$9, [
28766
28835
  vue.renderSlot(_ctx.$slots, "maxElements", {}, () => [
28767
28836
  vue.createTextVNode(
28768
28837
  "Maximum of " + vue.toDisplayString(_ctx.max) + " options selected. First remove a selected option to select another.",
@@ -28836,9 +28905,9 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
28836
28905
  "li",
28837
28906
  null,
28838
28907
  [
28839
- vue.createVNode("span", _hoisted_6$6, [
28908
+ vue.createVNode("span", _hoisted_6$5, [
28840
28909
  vue.renderSlot(_ctx.$slots, "noResult", { search: _ctx.search }, () => [
28841
- _hoisted_7$3
28910
+ _hoisted_7$2
28842
28911
  ])
28843
28912
  ])
28844
28913
  ],
@@ -28879,7 +28948,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
28879
28948
  script$e.render = render$e;
28880
28949
  const Multiselect = script$e;
28881
28950
  const _hoisted_1$m = ["for"];
28882
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
28951
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
28883
28952
  __name: "SelectInput",
28884
28953
  props: {
28885
28954
  required: { type: Boolean },
@@ -28944,8 +29013,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
28944
29013
  });
28945
29014
  const _hoisted_1$l = ["title"];
28946
29015
  const _hoisted_2$h = { key: 0 };
28947
- const _hoisted_3$e = ["value", "placeholder"];
28948
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
29016
+ const _hoisted_3$d = ["value", "placeholder"];
29017
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
28949
29018
  __name: "RichTextEditor",
28950
29019
  props: {
28951
29020
  description: { default: "" },
@@ -28976,12 +29045,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
28976
29045
  onInput: handleInput,
28977
29046
  placeholder: _ctx.placeholder,
28978
29047
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
28979
- }, null, 42, _hoisted_3$e)
29048
+ }, null, 42, _hoisted_3$d)
28980
29049
  ], 10, _hoisted_1$l);
28981
29050
  };
28982
29051
  }
28983
29052
  });
28984
- const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-69a60381"]]);
29053
+ const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-69a60381"]]);
28985
29054
  /*!
28986
29055
  * vue-draggable-next v2.2.0
28987
29056
  * (c) 2023 Anish George
@@ -31506,11 +31575,11 @@ const VueDraggableNext = vue.defineComponent({
31506
31575
  });
31507
31576
  const _hoisted_1$k = ["title"];
31508
31577
  const _hoisted_2$g = { class: "bagel-input" };
31509
- const _hoisted_3$d = { class: "table-side-scroll" };
31510
- const _hoisted_4$a = { class: "table-header" };
31511
- const _hoisted_5$9 = { class: "table-reorder" };
31512
- const _hoisted_6$5 = { class: "table-action" };
31513
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
31578
+ const _hoisted_3$c = { class: "table-side-scroll" };
31579
+ const _hoisted_4$9 = { class: "table-header" };
31580
+ const _hoisted_5$8 = { class: "table-reorder" };
31581
+ const _hoisted_6$4 = { class: "table-action" };
31582
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
31514
31583
  __name: "TableField",
31515
31584
  props: {
31516
31585
  description: { default: "" },
@@ -31578,8 +31647,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
31578
31647
  vue.createElementVNode("div", _hoisted_2$g, [
31579
31648
  vue.createElementVNode("label", null, vue.toDisplayString((_a2 = vue.unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
31580
31649
  ]),
31581
- vue.createElementVNode("div", _hoisted_3$d, [
31582
- vue.createElementVNode("div", _hoisted_4$a, [
31650
+ vue.createElementVNode("div", _hoisted_3$c, [
31651
+ vue.createElementVNode("div", _hoisted_4$9, [
31583
31652
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
31584
31653
  return vue.openBlock(), vue.createElementBlock("div", {
31585
31654
  class: vue.normalizeClass(["header-col", vue.unref(formatString)(field.fieldtype, "pascal")]),
@@ -31606,8 +31675,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
31606
31675
  class: "flex table-row",
31607
31676
  key: row.id
31608
31677
  }, [
31609
- vue.createElementVNode("div", _hoisted_5$9, [
31610
- vue.createVNode(vue.unref(_sfc_main$H), { icon: "more_vert" })
31678
+ vue.createElementVNode("div", _hoisted_5$8, [
31679
+ vue.createVNode(vue.unref(_sfc_main$F), { icon: "more_vert" })
31611
31680
  ]),
31612
31681
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a3 = vue.unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
31613
31682
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -31623,8 +31692,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
31623
31692
  }, null, 8, ["field-meta", "bagel-app", "onUpdate:modelValue", "model-value"])
31624
31693
  ], 2);
31625
31694
  }), 128)),
31626
- vue.createElementVNode("div", _hoisted_6$5, [
31627
- vue.createVNode(vue.unref(_sfc_main$H), {
31695
+ vue.createElementVNode("div", _hoisted_6$4, [
31696
+ vue.createVNode(vue.unref(_sfc_main$F), {
31628
31697
  icon: "delete",
31629
31698
  onClick: ($event) => removeRow(index2)
31630
31699
  }, null, 8, ["onClick"])
@@ -31654,13 +31723,13 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
31654
31723
  };
31655
31724
  }
31656
31725
  });
31657
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-cdacf10e"]]);
31726
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-cdacf10e"]]);
31658
31727
  const _hoisted_1$j = ["title"];
31659
31728
  const _hoisted_2$f = ["for"];
31660
- const _hoisted_3$c = ["title", "autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
31661
- const _hoisted_4$9 = ["title", "id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
31662
- const _hoisted_5$8 = { key: 2 };
31663
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
31729
+ const _hoisted_3$b = ["title", "autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
31730
+ const _hoisted_4$8 = ["title", "id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
31731
+ const _hoisted_5$7 = { key: 2 };
31732
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
31664
31733
  __name: "TextInput",
31665
31734
  props: {
31666
31735
  id: {},
@@ -31683,7 +31752,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
31683
31752
  autoheight: { type: Boolean },
31684
31753
  code: { type: Boolean },
31685
31754
  lines: {},
31686
- autocomplete: { default: "off" }
31755
+ autocomplete: { default: "off" },
31756
+ autofocus: { type: Boolean }
31687
31757
  },
31688
31758
  emits: ["update:modelValue", "debounce"],
31689
31759
  setup(__props, { emit: __emit }) {
@@ -31736,6 +31806,13 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
31736
31806
  },
31737
31807
  { immediate: true }
31738
31808
  );
31809
+ vue.onMounted(() => {
31810
+ if (props2.autofocus)
31811
+ setTimeout(() => {
31812
+ var _a2;
31813
+ return (_a2 = input.value) == null ? void 0 : _a2.focus();
31814
+ }, 10);
31815
+ });
31739
31816
  return (_ctx, _cache) => {
31740
31817
  return vue.openBlock(), vue.createElementBlock("div", {
31741
31818
  class: vue.normalizeClass(["bagel-input text-input", {
@@ -31766,7 +31843,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
31766
31843
  disabled: !vue.unref(editMode),
31767
31844
  required: _ctx.required,
31768
31845
  pattern: _ctx.pattern
31769
- }, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$c)), [
31846
+ }, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$b)), [
31770
31847
  [vue.vModelDynamic, vue.unref(inputVal)]
31771
31848
  ]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", vue.mergeProps({
31772
31849
  key: 1,
@@ -31781,17 +31858,17 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
31781
31858
  disabled: !vue.unref(editMode),
31782
31859
  required: _ctx.required,
31783
31860
  pattern: _ctx.pattern
31784
- }, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$9)), [
31861
+ }, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$8)), [
31785
31862
  [vue.vModelText, vue.unref(inputVal)]
31786
31863
  ]),
31787
- _ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$8, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true)
31864
+ _ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$7, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true)
31788
31865
  ], 8, _hoisted_2$f),
31789
- _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
31866
+ _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$F), {
31790
31867
  key: 0,
31791
31868
  class: "iconStart",
31792
31869
  icon: _ctx.iconStart
31793
31870
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
31794
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$H), {
31871
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$F), {
31795
31872
  key: 1,
31796
31873
  icon: _ctx.icon
31797
31874
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -31807,9 +31884,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
31807
31884
  };
31808
31885
  }
31809
31886
  });
31810
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-bdd555bb"]]);
31887
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-25f868b2"]]);
31811
31888
  const _hoisted_1$i = { class: "primary-checkbox" };
31812
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
31889
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
31813
31890
  __name: "Checkbox",
31814
31891
  props: {
31815
31892
  "modelValue": {
@@ -31830,16 +31907,16 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
31830
31907
  [vue.vModelCheckbox, val.value]
31831
31908
  ]),
31832
31909
  vue.createElementVNode("span", null, [
31833
- vue.createVNode(vue.unref(_sfc_main$H), { icon: "check" })
31910
+ vue.createVNode(vue.unref(_sfc_main$F), { icon: "check" })
31834
31911
  ])
31835
31912
  ]);
31836
31913
  };
31837
31914
  }
31838
31915
  });
31839
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e4cbb088"]]);
31916
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e4cbb088"]]);
31840
31917
  const _hoisted_1$h = ["title"];
31841
31918
  const _hoisted_2$e = ["id", "placeholder", "required"];
31842
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
31919
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
31843
31920
  __name: "ColorPicker",
31844
31921
  props: {
31845
31922
  label: {},
@@ -31885,13 +31962,13 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
31885
31962
  });
31886
31963
  const _hoisted_1$g = { class: "datetime-wrap" };
31887
31964
  const _hoisted_2$d = { class: "date-wrap" };
31888
- const _hoisted_3$b = {
31965
+ const _hoisted_3$a = {
31889
31966
  key: 0,
31890
31967
  class: "time-wrap"
31891
31968
  };
31892
- const _hoisted_4$8 = ["id", "name", "value"];
31893
- const _hoisted_5$7 = ["for"];
31894
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
31969
+ const _hoisted_4$7 = ["id", "name", "value"];
31970
+ const _hoisted_5$6 = ["for"];
31971
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
31895
31972
  __name: "DatePicker",
31896
31973
  props: {
31897
31974
  name: {},
@@ -31923,7 +32000,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
31923
32000
  _: 1
31924
32001
  }, 16, ["modelValue"])
31925
32002
  ]),
31926
- _ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
32003
+ _ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$a, [
31927
32004
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hours), (hr2) => {
31928
32005
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: hr2 }, [
31929
32006
  vue.withDirectives(vue.createElementVNode("input", {
@@ -31932,12 +32009,12 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
31932
32009
  name: _ctx.name,
31933
32010
  value: hr2,
31934
32011
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
31935
- }, null, 8, _hoisted_4$8), [
32012
+ }, null, 8, _hoisted_4$7), [
31936
32013
  [vue.vModelRadio, selectedHour.value]
31937
32014
  ]),
31938
32015
  vue.createElementVNode("label", {
31939
32016
  for: `${hr2}_${_ctx.name}`
31940
- }, vue.toDisplayString(hr2), 9, _hoisted_5$7)
32017
+ }, vue.toDisplayString(hr2), 9, _hoisted_5$6)
31941
32018
  ], 64);
31942
32019
  }), 128))
31943
32020
  ])) : vue.createCommentVNode("", true)
@@ -31947,10 +32024,10 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
31947
32024
  });
31948
32025
  const _hoisted_1$f = { class: "bagel-input" };
31949
32026
  const _hoisted_2$c = { class: "pb-025" };
31950
- const _hoisted_3$a = { class: "flex gap-05 flex-wrap" };
31951
- const _hoisted_4$7 = ["id", "name", "value", "checked"];
31952
- const _hoisted_5$6 = ["for"];
31953
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
32027
+ const _hoisted_3$9 = { class: "flex gap-05 flex-wrap" };
32028
+ const _hoisted_4$6 = ["id", "name", "value", "checked"];
32029
+ const _hoisted_5$5 = ["for"];
32030
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
31954
32031
  __name: "RadioPillsInput",
31955
32032
  props: {
31956
32033
  options: {},
@@ -31991,7 +32068,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
31991
32068
  return (_ctx, _cache) => {
31992
32069
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
31993
32070
  vue.createElementVNode("label", _hoisted_2$c, vue.toDisplayString(_ctx.label), 1),
31994
- vue.createElementVNode("div", _hoisted_3$a, [
32071
+ vue.createElementVNode("div", _hoisted_3$9, [
31995
32072
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(cumputedOptions.value, ({ optioId, label, value }, index2) => {
31996
32073
  return vue.openBlock(), vue.createElementBlock("div", {
31997
32074
  class: "radio-pill",
@@ -32004,8 +32081,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
32004
32081
  value,
32005
32082
  checked: vue.unref(selectedValue) === value,
32006
32083
  onChange: handleSelect
32007
- }, null, 40, _hoisted_4$7),
32008
- vue.createElementVNode("label", { for: optioId }, vue.toDisplayString(label), 9, _hoisted_5$6)
32084
+ }, null, 40, _hoisted_4$6),
32085
+ vue.createElementVNode("label", { for: optioId }, vue.toDisplayString(label), 9, _hoisted_5$5)
32009
32086
  ]);
32010
32087
  }), 128))
32011
32088
  ])
@@ -32013,17 +32090,17 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
32013
32090
  };
32014
32091
  }
32015
32092
  });
32016
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-e47ae8b5"]]);
32093
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e47ae8b5"]]);
32017
32094
  const _hoisted_1$e = { class: "bagel-input" };
32018
32095
  const _hoisted_2$b = {
32019
32096
  key: 0,
32020
32097
  class: "imagePreviewWrap"
32021
32098
  };
32022
- const _hoisted_3$9 = ["src"];
32023
- const _hoisted_4$6 = { class: "previewName" };
32024
- const _hoisted_5$5 = ["src"];
32025
- const _hoisted_6$4 = { class: "no-margin" };
32026
- const _hoisted_7$2 = {
32099
+ const _hoisted_3$8 = ["src"];
32100
+ const _hoisted_4$5 = { class: "previewName" };
32101
+ const _hoisted_5$4 = ["src"];
32102
+ const _hoisted_6$3 = { class: "no-margin" };
32103
+ const _hoisted_7$1 = {
32027
32104
  key: 0,
32028
32105
  class: "imagePreviewWrap"
32029
32106
  };
@@ -32035,7 +32112,7 @@ const _hoisted_12 = {
32035
32112
  key: 0,
32036
32113
  class: "progress"
32037
32114
  };
32038
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
32115
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
32039
32116
  __name: "FileUpload",
32040
32117
  props: /* @__PURE__ */ vue.mergeModels({
32041
32118
  label: {},
@@ -32149,17 +32226,17 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
32149
32226
  class: "preview",
32150
32227
  src: file.url,
32151
32228
  alt: ""
32152
- }, null, 8, _hoisted_3$9)
32229
+ }, null, 8, _hoisted_3$8)
32153
32230
  ])) : vue.createCommentVNode("", true),
32154
- vue.createElementVNode("div", _hoisted_4$6, [
32231
+ vue.createElementVNode("div", _hoisted_4$5, [
32155
32232
  _ctx.multiple ? (vue.openBlock(), vue.createElementBlock("img", {
32156
32233
  key: 0,
32157
32234
  height: "60",
32158
32235
  class: "preview",
32159
32236
  src: file.url,
32160
32237
  alt: ""
32161
- }, null, 8, _hoisted_5$5)) : vue.createCommentVNode("", true),
32162
- vue.createElementVNode("p", _hoisted_6$4, vue.toDisplayString(file.name), 1),
32238
+ }, null, 8, _hoisted_5$4)) : vue.createCommentVNode("", true),
32239
+ vue.createElementVNode("p", _hoisted_6$3, vue.toDisplayString(file.name), 1),
32163
32240
  vue.createVNode(vue.unref(Btn), {
32164
32241
  thin: "",
32165
32242
  onClick: vue.withModifiers(($event) => removeFile(file), ["stop"]),
@@ -32174,7 +32251,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
32174
32251
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
32175
32252
  key: fileQ.file
32176
32253
  }, [
32177
- !_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, [
32254
+ !_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$1, [
32178
32255
  vue.createElementVNode("img", {
32179
32256
  class: "preview",
32180
32257
  src: fileToUrl(fileQ.file),
@@ -32195,7 +32272,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
32195
32272
  style: vue.normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
32196
32273
  }, [
32197
32274
  fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
32198
- vue.createVNode(vue.unref(_sfc_main$H), {
32275
+ vue.createVNode(vue.unref(_sfc_main$F), {
32199
32276
  class: "success",
32200
32277
  icon: "check"
32201
32278
  })
@@ -32208,15 +32285,15 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
32208
32285
  };
32209
32286
  }
32210
32287
  });
32211
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-1be8d7b1"]]);
32288
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1be8d7b1"]]);
32212
32289
  const _withScopeId = (n2) => (vue.pushScopeId("data-v-b87221d6"), n2 = n2(), vue.popScopeId(), n2);
32213
32290
  const _hoisted_1$d = ["title"];
32214
32291
  const _hoisted_2$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
32215
- const _hoisted_3$8 = [
32292
+ const _hoisted_3$7 = [
32216
32293
  _hoisted_2$a
32217
32294
  ];
32218
- const _hoisted_4$5 = ["id"];
32219
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
32295
+ const _hoisted_4$4 = ["id"];
32296
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
32220
32297
  __name: "ToggleInput",
32221
32298
  props: /* @__PURE__ */ vue.mergeModels({
32222
32299
  label: {},
@@ -32237,14 +32314,14 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
32237
32314
  }, [
32238
32315
  vue.createElementVNode("div", {
32239
32316
  class: vue.normalizeClass(["switch", { checked: checked.value }])
32240
- }, _hoisted_3$8, 2),
32317
+ }, _hoisted_3$7, 2),
32241
32318
  vue.createElementVNode("label", null, [
32242
32319
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
32243
32320
  vue.withDirectives(vue.createElementVNode("input", {
32244
32321
  id: _ctx.id,
32245
32322
  type: "checkbox",
32246
32323
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event)
32247
- }, null, 8, _hoisted_4$5), [
32324
+ }, null, 8, _hoisted_4$4), [
32248
32325
  [vue.vModelCheckbox, checked.value]
32249
32326
  ])
32250
32327
  ])
@@ -32252,7 +32329,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
32252
32329
  };
32253
32330
  }
32254
32331
  });
32255
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b87221d6"]]);
32332
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b87221d6"]]);
32256
32333
  function _isPlaceholder(a2) {
32257
32334
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
32258
32335
  }
@@ -37371,7 +37448,7 @@ const _hoisted_4$2 = {
37371
37448
  };
37372
37449
  const _hoisted_5$2 = ["x1", "y1", "x2", "y2"];
37373
37450
  const _hoisted_6$2 = ["x1", "y1", "x2", "y2"];
37374
- const _hoisted_7$1 = ["x1", "y1", "x2", "y2"];
37451
+ const _hoisted_7 = ["x1", "y1", "x2", "y2"];
37375
37452
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {
37376
37453
  return _ctx.data.length ? (vue.openBlock(), vue.createElementBlock("g", {
37377
37454
  key: 0,
@@ -37427,7 +37504,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
37427
37504
  y1: _ctx.canvas.y,
37428
37505
  x2: _ctx.canvas.width - 1,
37429
37506
  y2: _ctx.canvas.height
37430
- }, null, 8, _hoisted_7$1)
37507
+ }, null, 8, _hoisted_7)
37431
37508
  ])
37432
37509
  ], 8, _hoisted_1$4)) : vue.createCommentVNode("v-if", true);
37433
37510
  }
@@ -37691,7 +37768,7 @@ var script$2 = vue.defineComponent({
37691
37768
  return { y: y2, canvas, direction };
37692
37769
  }
37693
37770
  });
37694
- const _hoisted_1$2$1 = {
37771
+ const _hoisted_1$2 = {
37695
37772
  key: 0,
37696
37773
  class: "layer-marker"
37697
37774
  };
@@ -37704,7 +37781,7 @@ const _hoisted_4$1 = {
37704
37781
  const _hoisted_5$1 = ["x", "y", "fill"];
37705
37782
  const _hoisted_6$1 = ["x1", "y1", "x2", "y2", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray"];
37706
37783
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
37707
- return _ctx.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$2$1, [
37784
+ return _ctx.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$2, [
37708
37785
  vue.createElementVNode("text", {
37709
37786
  x: _ctx.canvas.x + 5,
37710
37787
  y: _ctx.y - 5,
@@ -38324,11 +38401,11 @@ const _hoisted_1$1$1 = {
38324
38401
  class: "treemap",
38325
38402
  style: { display: "flex", position: "relative" }
38326
38403
  };
38327
- const _hoisted_2$1$1 = ["width", "height", "viewBox"];
38328
- const _hoisted_3$7 = { class: "layer-rectangles" };
38329
- const _hoisted_4$4 = ["transform", "onMouseover"];
38330
- const _hoisted_5$4 = ["width", "height"];
38331
- const _hoisted_6$3 = {
38404
+ const _hoisted_2$1 = ["width", "height", "viewBox"];
38405
+ const _hoisted_3 = { class: "layer-rectangles" };
38406
+ const _hoisted_4 = ["transform", "onMouseover"];
38407
+ const _hoisted_5 = ["width", "height"];
38408
+ const _hoisted_6 = {
38332
38409
  x: 0 + 10,
38333
38410
  y: 0 + 20,
38334
38411
  "font-size": `15px`,
@@ -38343,7 +38420,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
38343
38420
  viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
38344
38421
  ref: "el"
38345
38422
  }, [
38346
- vue.createElementVNode("g", _hoisted_3$7, [
38423
+ vue.createElementVNode("g", _hoisted_3, [
38347
38424
  (vue.openBlock(true), vue.createElementBlock(
38348
38425
  vue.Fragment,
38349
38426
  null,
@@ -38364,27 +38441,27 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
38364
38441
  y: 0,
38365
38442
  width: r2.width,
38366
38443
  height: r2.height
38367
- }), null, 16, _hoisted_5$4),
38444
+ }), null, 16, _hoisted_5),
38368
38445
  vue.renderSlot(_ctx.$slots, "text", {
38369
38446
  r: r2,
38370
38447
  selected: _ctx.selected === i2
38371
38448
  }, () => [
38372
38449
  vue.createElementVNode(
38373
38450
  "text",
38374
- _hoisted_6$3,
38451
+ _hoisted_6,
38375
38452
  vue.toDisplayString(r2.data.name),
38376
38453
  1
38377
38454
  /* TEXT */
38378
38455
  )
38379
38456
  ])
38380
38457
  ])
38381
- ], 42, _hoisted_4$4);
38458
+ ], 42, _hoisted_4);
38382
38459
  }),
38383
38460
  128
38384
38461
  /* KEYED_FRAGMENT */
38385
38462
  ))
38386
38463
  ])
38387
- ], 8, _hoisted_2$1$1)),
38464
+ ], 8, _hoisted_2$1)),
38388
38465
  vue.renderSlot(_ctx.$slots, "widgets")
38389
38466
  ]);
38390
38467
  }
@@ -38452,13 +38529,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
38452
38529
  }
38453
38530
  script.render = render;
38454
38531
  script.__file = "src/components/HoverBar/index.vue";
38455
- const _hoisted_1$2 = /* @__PURE__ */ vue.createElementVNode("stop", {
38532
+ const _hoisted_1$1 = /* @__PURE__ */ vue.createElementVNode("stop", {
38456
38533
  offset: "100%",
38457
38534
  "stop-color": "white",
38458
38535
  "stop-opacity": "0.4"
38459
38536
  }, null, -1);
38460
38537
  const BRAND_COLOR = "var(--bgl-primary)";
38461
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
38538
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
38462
38539
  __name: "Lineart",
38463
38540
  props: {
38464
38541
  data: {},
@@ -38587,7 +38664,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
38587
38664
  "stop-color": BRAND_COLOR,
38588
38665
  "stop-opacity": "1"
38589
38666
  }),
38590
- _hoisted_1$2
38667
+ _hoisted_1$1
38591
38668
  ])
38592
38669
  ])
38593
38670
  ]),
@@ -38603,233 +38680,6 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
38603
38680
  };
38604
38681
  }
38605
38682
  });
38606
- const _hoisted_1$1 = { class: "main-content" };
38607
- const _hoisted_2$1 = { class: "view-wrapper bgl_card thin" };
38608
- const _hoisted_3 = { class: "whatsapp-wrap" };
38609
- const _hoisted_4 = { class: "create-template-form" };
38610
- const _hoisted_5 = { class: "whatsapp-msg" };
38611
- const _hoisted_6 = { class: "whatsapp-body" };
38612
- const _hoisted_7 = { class: "whatsapp-footer" };
38613
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
38614
- __name: "MsgTemplate",
38615
- props: {
38616
- whatsappTemplateSchema: {},
38617
- router: {},
38618
- route: {},
38619
- previewLabel: { default: "Preview" }
38620
- },
38621
- setup(__props) {
38622
- const props2 = __props;
38623
- const bagel = useBagel();
38624
- const regex2 = /\{\{(\d+)}}/g;
38625
- let localWhatsappData = vue.ref();
38626
- const serverToLocal = (data2) => {
38627
- var _a2, _b, _c, _d, _e2;
38628
- return {
38629
- id: data2.id,
38630
- status: data2.status,
38631
- name: data2.name,
38632
- language: data2.language,
38633
- headerText: (_a2 = data2.components.find(
38634
- (c2) => c2.type === "HEADER"
38635
- )) == null ? void 0 : _a2.text,
38636
- bodyText: (_b = data2.components.find((c2) => c2.type === "BODY")) == null ? void 0 : _b.text,
38637
- bodyExamples: (_d = (_c = data2.components.find(
38638
- (c2) => c2.type === "BODY"
38639
- )) == null ? void 0 : _c.example) == null ? void 0 : _d.body_text[0],
38640
- footerText: (_e2 = data2.components.find(
38641
- (c2) => c2.type === "FOOTER"
38642
- )) == null ? void 0 : _e2.text,
38643
- category: data2.category
38644
- };
38645
- };
38646
- const localToServer = (data2) => {
38647
- const obj = {};
38648
- obj.language = data2.language;
38649
- if (data2.id)
38650
- obj.id = data2.id;
38651
- obj.name = data2.name;
38652
- obj.components = [];
38653
- obj.category = data2.category;
38654
- if (data2.headerText) {
38655
- obj.components.push({
38656
- type: "HEADER",
38657
- format: "TEXT",
38658
- text: data2.headerText
38659
- });
38660
- }
38661
- if (data2.bodyText) {
38662
- const bodyComponent = { type: "BODY", text: data2.bodyText };
38663
- if (data2.bodyExamples) {
38664
- bodyComponent.example = { body_text: [data2.bodyExamples] };
38665
- }
38666
- obj.components.push(bodyComponent);
38667
- }
38668
- if (data2.footerText) {
38669
- obj.components.push({ type: "FOOTER", text: data2.footerText });
38670
- }
38671
- return obj;
38672
- };
38673
- const loadTemplateData = async () => {
38674
- const template_name = props2.route.params.id;
38675
- if (template_name) {
38676
- const res = await bagel.get(
38677
- `communication/whatsapp/get_template_by_name/${template_name}`
38678
- );
38679
- localWhatsappData.value = serverToLocal(res.data[0]);
38680
- }
38681
- };
38682
- const replaceHeader = (match2) => {
38683
- var _a2, _b;
38684
- const index2 = +match2[2];
38685
- const example = (_b = (_a2 = localWhatsappData.value) == null ? void 0 : _a2.headerExamples) == null ? void 0 : _b[index2 - 1];
38686
- return example || match2;
38687
- };
38688
- const replaceBody = (match2) => {
38689
- var _a2, _b;
38690
- const index2 = +match2[2];
38691
- const example = (_b = (_a2 = localWhatsappData.value) == null ? void 0 : _a2.bodyExamples) == null ? void 0 : _b[index2 - 1];
38692
- return example || match2;
38693
- };
38694
- const upsertTemplate = async () => {
38695
- if (!localWhatsappData.value)
38696
- return;
38697
- const payload = localToServer(localWhatsappData.value);
38698
- console.log(payload);
38699
- if (payload.id) {
38700
- await bagel.put(
38701
- `communication/whatsapp/update_template/${payload.id}`,
38702
- payload
38703
- );
38704
- } else {
38705
- await bagel.post("communication/whatsapp/create_template", payload);
38706
- void props2.router.push(`/whatsapp/template/${payload.name}`);
38707
- }
38708
- };
38709
- vue.onMounted(loadTemplateData);
38710
- return (_ctx, _cache) => {
38711
- var _a2, _b, _c, _d, _e2, _f;
38712
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
38713
- vue.createVNode(vue.unref(_sfc_main$x), null, {
38714
- default: vue.withCtx(() => [
38715
- vue.createTextVNode("Whatsapp Template")
38716
- ]),
38717
- _: 1
38718
- }),
38719
- vue.createElementVNode("div", _hoisted_2$1, [
38720
- vue.createElementVNode("div", _hoisted_3, [
38721
- vue.createElementVNode("div", _hoisted_4, [
38722
- vue.createVNode(vue.unref(_sfc_main$j), {
38723
- schema: _ctx.whatsappTemplateSchema,
38724
- modelValue: vue.unref(localWhatsappData),
38725
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
38726
- onSubmit: upsertTemplate
38727
- }, null, 8, ["schema", "modelValue"])
38728
- ]),
38729
- vue.createElementVNode("div", {
38730
- class: vue.normalizeClass(["whatsapp-preview", { whatsappHebrew: ((_a2 = vue.unref(localWhatsappData)) == null ? void 0 : _a2.language) === "he" }])
38731
- }, [
38732
- vue.createTextVNode(vue.toDisplayString(_ctx.previewLabel) + " ", 1),
38733
- vue.createElementVNode("div", _hoisted_5, [
38734
- vue.createElementVNode("b", null, vue.toDisplayString((_c = (_b = vue.unref(localWhatsappData)) == null ? void 0 : _b.headerText) == null ? void 0 : _c.replace(regex2, replaceHeader)), 1),
38735
- vue.createElementVNode("p", _hoisted_6, vue.toDisplayString((_e2 = (_d = vue.unref(localWhatsappData)) == null ? void 0 : _d.bodyText) == null ? void 0 : _e2.replace(regex2, replaceBody)), 1),
38736
- vue.createElementVNode("p", _hoisted_7, vue.toDisplayString((_f = vue.unref(localWhatsappData)) == null ? void 0 : _f.footerText), 1)
38737
- ])
38738
- ], 2)
38739
- ])
38740
- ])
38741
- ]);
38742
- };
38743
- }
38744
- });
38745
- const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-208db149"]]);
38746
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
38747
- __name: "TextVariableExamples",
38748
- props: {
38749
- context: Object
38750
- },
38751
- setup(__props) {
38752
- const props2 = __props;
38753
- const exampleEl = vue.ref();
38754
- let boundValue = vue.ref();
38755
- let boundNode = vue.ref();
38756
- let val = vue.ref([]);
38757
- const handleUpdate = (value, index2) => {
38758
- var _a2, _b, _c;
38759
- if (!boundValue.value)
38760
- return;
38761
- if (index2 > ((_a2 = val.value) == null ? void 0 : _a2.length))
38762
- val.value = [...val.value, ...Array(index2 - val.value.length).fill(""), value];
38763
- else
38764
- (_b = val.value) == null ? void 0 : _b.splice(index2 - 1, 1, value);
38765
- (_c = props2.context) == null ? void 0 : _c.node.input(val.value);
38766
- };
38767
- const extractVariables = (text) => {
38768
- const matches2 = (text == null ? void 0 : text.match(/{{(\d+)}}/g)) || [];
38769
- return matches2.map((match2) => +match2.match(/\d+/)[0]);
38770
- };
38771
- const txtType = vue.computed(() => {
38772
- var _a2;
38773
- return ((_a2 = props2.context) == null ? void 0 : _a2.id) === "bodyExamples" ? "bodyText" : "headerText";
38774
- });
38775
- const variables = vue.computed(() => {
38776
- var _a2, _b;
38777
- let vars = extractVariables(boundValue.value);
38778
- if (txtType.value === "headerText")
38779
- vars.slice(0, 1);
38780
- const nonSequentialDigits = vars == null ? void 0 : vars.reduce((acc, currDigit, i2) => {
38781
- const prevDigit = i2 > 0 ? vars[i2 - 1] : 0;
38782
- if (currDigit - prevDigit !== 1) {
38783
- acc.push(currDigit);
38784
- }
38785
- return acc;
38786
- }, []);
38787
- if (nonSequentialDigits == null ? void 0 : nonSequentialDigits.length) {
38788
- const regex2 = new RegExp(nonSequentialDigits.map((d2) => `\\{\\{${d2}\\}\\}`).join("|"), "g");
38789
- const newVal = `${boundValue.value}`.replace(regex2, "");
38790
- void ((_a2 = boundNode.value) == null ? void 0 : _a2.input(newVal));
38791
- vars = extractVariables(boundValue.value);
38792
- }
38793
- const parentEl2 = (_b = exampleEl.value) == null ? void 0 : _b.closest(".formkit-outer");
38794
- if (!vars.length && parentEl2) {
38795
- parentEl2.classList.add("hide");
38796
- } else if (parentEl2) {
38797
- parentEl2.classList.remove("hide");
38798
- }
38799
- return vars;
38800
- });
38801
- const setupListners = (node) => {
38802
- node == null ? void 0 : node.on("input", (v2) => {
38803
- boundValue.value = v2.payload;
38804
- });
38805
- };
38806
- vue.onMounted(() => {
38807
- var _a2;
38808
- boundNode.value = (_a2 = props2.context) == null ? void 0 : _a2.node.parent.children.find((c2) => c2.name === txtType.value);
38809
- setupListners(boundNode.value);
38810
- });
38811
- vue.watch(() => {
38812
- var _a2;
38813
- return (_a2 = props2.context) == null ? void 0 : _a2.value;
38814
- }, (v2) => val.value = v2, { immediate: true });
38815
- return (_ctx, _cache) => {
38816
- return vue.openBlock(), vue.createElementBlock("div", {
38817
- ref_key: "exampleEl",
38818
- ref: exampleEl
38819
- }, [
38820
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(variables.value, (v2) => {
38821
- var _a2;
38822
- return vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
38823
- key: v2,
38824
- placeholder: `Variable ${v2}`,
38825
- modelValue: (_a2 = vue.unref(val)) == null ? void 0 : _a2[v2 - 1],
38826
- "onUpdate:modelValue": ($event) => handleUpdate($event, v2)
38827
- }, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"]);
38828
- }), 128))
38829
- ], 512);
38830
- };
38831
- }
38832
- });
38833
38683
  const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
38834
38684
  __name: "Layout",
38835
38685
  props: {
@@ -38901,10 +38751,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38901
38751
  return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(Btn), {
38902
38752
  key: i2,
38903
38753
  to: nav2.to,
38904
- class: "nav-button"
38754
+ class: "nav-button px-075"
38905
38755
  }, {
38906
38756
  default: vue.withCtx(() => [
38907
- vue.createVNode(vue.unref(_sfc_main$H), {
38757
+ vue.createVNode(vue.unref(_sfc_main$F), {
38908
38758
  icon: nav2.icon,
38909
38759
  size: 1.4
38910
38760
  }, null, 8, ["icon"]),
@@ -38927,56 +38777,55 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38927
38777
  };
38928
38778
  }
38929
38779
  });
38930
- const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67b81581"]]);
38931
- exports.Accordion = _sfc_main$p;
38780
+ const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8d6bd3d8"]]);
38781
+ exports.Accordion = _sfc_main$n;
38932
38782
  exports.AccordionItem = AccordionItem;
38933
38783
  exports.Alert = Alert;
38934
38784
  exports.Avatar = Avatar;
38935
38785
  exports.Badge = Badge;
38936
- exports.BagelForm = _sfc_main$j;
38786
+ exports.BagelForm = _sfc_main$h;
38937
38787
  exports.BagelVue = BagelVue;
38938
- exports.BglField = _sfc_main$i;
38939
- exports.BglForm = _sfc_main$j;
38788
+ exports.BglField = _sfc_main$g;
38789
+ exports.BglForm = _sfc_main$h;
38940
38790
  exports.BglVideo = BglVideo;
38941
38791
  exports.Btn = Btn;
38942
- exports.Card = _sfc_main$s;
38792
+ exports.Card = _sfc_main$q;
38943
38793
  exports.Carousel = Carousel;
38944
38794
  exports.CheckInput = CheckInput;
38945
38795
  exports.Checkbox = Checkbox;
38946
- exports.ColorPicker = _sfc_main$9;
38796
+ exports.ColorPicker = _sfc_main$7;
38947
38797
  exports.ComboBox = ComboBox;
38948
38798
  exports.Comments = Comments;
38949
38799
  exports.DataPreview = DataPreview;
38950
- exports.DateInput = _sfc_main$g;
38951
- exports.DatePicker = _sfc_main$8;
38800
+ exports.DateInput = _sfc_main$e;
38801
+ exports.DatePicker = _sfc_main$6;
38952
38802
  exports.FileUpload = FileUpload;
38953
- exports.Icon = _sfc_main$H;
38803
+ exports.Icon = _sfc_main$F;
38954
38804
  exports.JSONInput = JSONInput;
38955
38805
  exports.Layout = _sfc_main$1;
38956
- exports.Lineart = _sfc_main$4;
38957
- exports.ListItem = _sfc_main$A;
38958
- exports.ListView = _sfc_main$B;
38959
- exports.MaterialIcon = _sfc_main$H;
38960
- exports.Modal = _sfc_main$E;
38806
+ exports.Lineart = _sfc_main$2;
38807
+ exports.ListItem = _sfc_main$y;
38808
+ exports.ListView = _sfc_main$z;
38809
+ exports.MaterialIcon = _sfc_main$F;
38810
+ exports.Modal = _sfc_main$C;
38961
38811
  exports.ModalForm = ModalForm;
38962
38812
  exports.ModalPlugin = ModalPlugin;
38963
- exports.MsgTemplate = MsgTemplate;
38964
38813
  exports.NavBar = NavBar;
38965
- exports.PageTitle = _sfc_main$x;
38966
- exports.RTXEditor = _sfc_main$I;
38814
+ exports.PageTitle = _sfc_main$v;
38815
+ exports.RTXEditor = _sfc_main$G;
38967
38816
  exports.RadioPillsInput = RadioPillsInput;
38968
38817
  exports.RichTextEditor = RichTextEditor;
38969
38818
  exports.RouterWrapper = RouterWrapper;
38970
- exports.SelectInput = _sfc_main$e;
38819
+ exports.SelectInput = _sfc_main$c;
38971
38820
  exports.SidebarMenu = SidebarMenu;
38972
38821
  exports.TabbedLayout = TabbedLayout;
38973
38822
  exports.TableField = TableField;
38974
38823
  exports.TableSchema = TableSchema;
38975
38824
  exports.TextInput = TextInput;
38976
- exports.TextVariableExamples = _sfc_main$2;
38977
- exports.Title = _sfc_main$q;
38825
+ exports.Title = _sfc_main$o;
38978
38826
  exports.ToggleInput = ToggleInput;
38979
38827
  exports.TopBar = TopBar;
38828
+ exports.bagelFormUtils = BagelFormUtils;
38980
38829
  exports.bagelInjectionKey = bagelInjectionKey;
38981
38830
  exports.bindAttrs = bindAttrs;
38982
38831
  exports.classify = classify;