@prolibu-suite/cobalt-form-builder 1.0.0 → 3.0.0

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.
@@ -447,7 +447,7 @@ const X = [
447
447
  for (const [l, o] of n)
448
448
  t[l] = o;
449
449
  return t;
450
- }, wo = /* @__PURE__ */ $e(Co, [["__scopeId", "data-v-59f79808"]]), ko = ["data-placeholder"], So = /* @__PURE__ */ Ee({
450
+ }, wo = /* @__PURE__ */ $e(Co, [["__scopeId", "data-v-59f79808"]]), ko = ["data-placeholder"], So = "plaintext-only", xo = /* @__PURE__ */ Ee({
451
451
  __name: "EditableText",
452
452
  props: {
453
453
  modelValue: {},
@@ -487,7 +487,7 @@ const X = [
487
487
  ref: o,
488
488
  class: we(["editable", { "is-empty": !u.value, "is-error": e.error }]),
489
489
  "data-placeholder": e.placeholder,
490
- contenteditable: "plaintext-only",
490
+ contenteditable: So,
491
491
  spellcheck: "false",
492
492
  onInput: d,
493
493
  onBlur: k,
@@ -495,8 +495,8 @@ const X = [
495
495
  onKeydown: p
496
496
  }, te(e.modelValue), 43, ko));
497
497
  }
498
- }), gt = /* @__PURE__ */ $e(So, [["__scopeId", "data-v-a14cc582"]]);
499
- var xo = Object.defineProperty, Ut = Object.getOwnPropertySymbols, pl = Object.prototype.hasOwnProperty, fl = Object.prototype.propertyIsEnumerable, qn = (e, n, t) => n in e ? xo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, pt = (e, n) => {
498
+ }), gt = /* @__PURE__ */ $e(xo, [["__scopeId", "data-v-ef52b596"]]);
499
+ var To = Object.defineProperty, Ut = Object.getOwnPropertySymbols, pl = Object.prototype.hasOwnProperty, fl = Object.prototype.propertyIsEnumerable, qn = (e, n, t) => n in e ? To(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, pt = (e, n) => {
500
500
  for (var t in n || (n = {}))
501
501
  pl.call(n, t) && qn(e, t, n[t]);
502
502
  if (Ut)
@@ -513,20 +513,20 @@ var xo = Object.defineProperty, Ut = Object.getOwnPropertySymbols, pl = Object.p
513
513
  return t;
514
514
  };
515
515
  const ml = "[vue-draggable-plus]: ";
516
- function To(e) {
516
+ function Do(e) {
517
517
  console.warn(ml + e);
518
518
  }
519
- function Do(e) {
519
+ function Io(e) {
520
520
  console.error(ml + e);
521
521
  }
522
522
  function jn(e, n, t) {
523
523
  return t >= 0 && t < e.length && e.splice(t, 0, e.splice(n, 1)[0]), e;
524
524
  }
525
- function Io(e) {
525
+ function Oo(e) {
526
526
  return e.replace(/-(\w)/g, (n, t) => t ? t.toUpperCase() : "");
527
527
  }
528
- function Oo(e) {
529
- return Object.keys(e).reduce((n, t) => (typeof e[t] < "u" && (n[Io(t)] = e[t]), n), {});
528
+ function Eo(e) {
529
+ return Object.keys(e).reduce((n, t) => (typeof e[t] < "u" && (n[Oo(t)] = e[t]), n), {});
530
530
  }
531
531
  function Bn(e, n) {
532
532
  return Array.isArray(e) && e.splice(n, 1), e;
@@ -534,10 +534,10 @@ function Bn(e, n) {
534
534
  function Vn(e, n, t) {
535
535
  return Array.isArray(e) && e.splice(n, 0, t), e;
536
536
  }
537
- function Eo(e) {
537
+ function Ao(e) {
538
538
  return typeof e > "u";
539
539
  }
540
- function Ao(e) {
540
+ function No(e) {
541
541
  return typeof e == "string";
542
542
  }
543
543
  function Un(e, n, t) {
@@ -547,23 +547,23 @@ function Un(e, n, t) {
547
547
  function un(e) {
548
548
  e.parentNode && e.parentNode.removeChild(e);
549
549
  }
550
- function No(e, n = document) {
550
+ function Po(e, n = document) {
551
551
  var t;
552
552
  let l = null;
553
- return typeof n?.querySelector == "function" ? l = (t = n?.querySelector) == null ? void 0 : t.call(n, e) : l = document.querySelector(e), l || To(`Element not found: ${e}`), l;
553
+ return typeof n?.querySelector == "function" ? l = (t = n?.querySelector) == null ? void 0 : t.call(n, e) : l = document.querySelector(e), l || Do(`Element not found: ${e}`), l;
554
554
  }
555
- function Po(e, n, t = null) {
555
+ function $o(e, n, t = null) {
556
556
  return function(...l) {
557
557
  return e.apply(t, l), n.apply(t, l);
558
558
  };
559
559
  }
560
- function $o(e, n) {
560
+ function zo(e, n) {
561
561
  const t = pt({}, e);
562
562
  return Object.keys(n).forEach((l) => {
563
- t[l] ? t[l] = Po(e[l], n[l]) : t[l] = n[l];
563
+ t[l] ? t[l] = $o(e[l], n[l]) : t[l] = n[l];
564
564
  }), t;
565
565
  }
566
- function zo(e) {
566
+ function Mo(e) {
567
567
  return e instanceof HTMLElement;
568
568
  }
569
569
  function Yn(e, n) {
@@ -571,10 +571,10 @@ function Yn(e, n) {
571
571
  n(t, e[t]);
572
572
  });
573
573
  }
574
- function Mo(e) {
574
+ function Fo(e) {
575
575
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
576
576
  }
577
- const Fo = Object.assign;
577
+ const Ro = Object.assign;
578
578
  function Xn(e, n) {
579
579
  var t = Object.keys(e);
580
580
  if (Object.getOwnPropertySymbols) {
@@ -589,7 +589,7 @@ function Fe(e) {
589
589
  for (var n = 1; n < arguments.length; n++) {
590
590
  var t = arguments[n] != null ? arguments[n] : {};
591
591
  n % 2 ? Xn(Object(t), !0).forEach(function(l) {
592
- Ro(e, l, t[l]);
592
+ Lo(e, l, t[l]);
593
593
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Xn(Object(t)).forEach(function(l) {
594
594
  Object.defineProperty(e, l, Object.getOwnPropertyDescriptor(t, l));
595
595
  });
@@ -604,7 +604,7 @@ function Lt(e) {
604
604
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
605
605
  }, Lt(e);
606
606
  }
607
- function Ro(e, n, t) {
607
+ function Lo(e, n, t) {
608
608
  return n in e ? Object.defineProperty(e, n, {
609
609
  value: t,
610
610
  enumerable: !0,
@@ -622,7 +622,7 @@ function je() {
622
622
  return e;
623
623
  }, je.apply(this, arguments);
624
624
  }
625
- function Lo(e, n) {
625
+ function qo(e, n) {
626
626
  if (e == null)
627
627
  return {};
628
628
  var t = {}, l = Object.keys(e), o, r;
@@ -630,10 +630,10 @@ function Lo(e, n) {
630
630
  o = l[r], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
631
631
  return t;
632
632
  }
633
- function qo(e, n) {
633
+ function jo(e, n) {
634
634
  if (e == null)
635
635
  return {};
636
- var t = Lo(e, n), l, o;
636
+ var t = qo(e, n), l, o;
637
637
  if (Object.getOwnPropertySymbols) {
638
638
  var r = Object.getOwnPropertySymbols(e);
639
639
  for (o = 0; o < r.length; o++)
@@ -641,7 +641,7 @@ function qo(e, n) {
641
641
  }
642
642
  return t;
643
643
  }
644
- var jo = "1.15.2";
644
+ var Bo = "1.15.2";
645
645
  function qe(e) {
646
646
  if (typeof window < "u" && window.navigator)
647
647
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
@@ -672,7 +672,7 @@ function Yt(e, n) {
672
672
  return !1;
673
673
  }
674
674
  }
675
- function Bo(e) {
675
+ function Vo(e) {
676
676
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
677
677
  }
678
678
  function Pe(e, n, t, l) {
@@ -683,7 +683,7 @@ function Pe(e, n, t, l) {
683
683
  return e;
684
684
  if (e === t)
685
685
  break;
686
- } while (e = Bo(e));
686
+ } while (e = Vo(e));
687
687
  }
688
688
  return null;
689
689
  }
@@ -800,7 +800,7 @@ function Gn(e) {
800
800
  } while (e !== l && (e = e.parentNode));
801
801
  return [n, t];
802
802
  }
803
- function Vo(e, n) {
803
+ function Uo(e, n) {
804
804
  for (var t in e)
805
805
  if (e.hasOwnProperty(t)) {
806
806
  for (var l in n)
@@ -827,7 +827,7 @@ function Qe(e, n) {
827
827
  while (t = t.parentNode);
828
828
  return Me();
829
829
  }
830
- function Uo(e, n) {
830
+ function Yo(e, n) {
831
831
  if (e && n)
832
832
  for (var t in n)
833
833
  n.hasOwnProperty(t) && (e[t] = n[t]);
@@ -847,7 +847,7 @@ function yl(e, n) {
847
847
  }
848
848
  };
849
849
  }
850
- function Yo() {
850
+ function Xo() {
851
851
  clearTimeout(xt), xt = void 0;
852
852
  }
853
853
  function Cl(e, n, t) {
@@ -868,7 +868,7 @@ function kl(e, n, t) {
868
868
  }), l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
869
869
  }
870
870
  var Te = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
871
- function Xo() {
871
+ function Ho() {
872
872
  var e = [], n;
873
873
  return {
874
874
  captureAnimationState: function() {
@@ -894,7 +894,7 @@ function Xo() {
894
894
  e.push(t);
895
895
  },
896
896
  removeAnimationState: function(t) {
897
- e.splice(Vo(e, {
897
+ e.splice(Uo(e, {
898
898
  target: t
899
899
  }), 1);
900
900
  },
@@ -908,7 +908,7 @@ function Xo() {
908
908
  e.forEach(function(u) {
909
909
  var d = 0, i = u.target, k = i.fromRect, g = ge(i), p = i.prevFromRect, C = i.prevToRect, O = u.rect, D = mt(i, !0);
910
910
  D && (g.top -= D.f, g.left -= D.e), i.toRect = g, i.thisAnimationDuration && dn(p, g) && !dn(k, g) && // Make sure animatingRect is on line between toRect & fromRect
911
- (O.top - g.top) / (O.left - g.left) === (k.top - g.top) / (k.left - g.left) && (d = Jo(O, p, C, l.options)), dn(g, k) || (i.prevFromRect = k, i.prevToRect = g, d || (d = l.options.animation), l.animate(i, O, g, d)), d && (o = !0, r = Math.max(r, d), clearTimeout(i.animationResetTimer), i.animationResetTimer = setTimeout(function() {
911
+ (O.top - g.top) / (O.left - g.left) === (k.top - g.top) / (k.left - g.left) && (d = Wo(O, p, C, l.options)), dn(g, k) || (i.prevFromRect = k, i.prevToRect = g, d || (d = l.options.animation), l.animate(i, O, g, d)), d && (o = !0, r = Math.max(r, d), clearTimeout(i.animationResetTimer), i.animationResetTimer = setTimeout(function() {
912
912
  i.animationTime = 0, i.prevFromRect = null, i.fromRect = null, i.prevToRect = null, i.thisAnimationDuration = null;
913
913
  }, d), i.thisAnimationDuration = d);
914
914
  }), clearTimeout(n), o ? n = setTimeout(function() {
@@ -919,17 +919,17 @@ function Xo() {
919
919
  if (r) {
920
920
  F(t, "transition", ""), F(t, "transform", "");
921
921
  var u = mt(this.el), d = u && u.a, i = u && u.d, k = (l.left - o.left) / (d || 1), g = (l.top - o.top) / (i || 1);
922
- t.animatingX = !!k, t.animatingY = !!g, F(t, "transform", "translate3d(" + k + "px," + g + "px,0)"), this.forRepaintDummy = Ho(t), F(t, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), F(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
922
+ t.animatingX = !!k, t.animatingY = !!g, F(t, "transform", "translate3d(" + k + "px," + g + "px,0)"), this.forRepaintDummy = Jo(t), F(t, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), F(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
923
923
  F(t, "transition", ""), F(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
924
924
  }, r);
925
925
  }
926
926
  }
927
927
  };
928
928
  }
929
- function Ho(e) {
929
+ function Jo(e) {
930
930
  return e.offsetWidth;
931
931
  }
932
- function Jo(e, n, t, l) {
932
+ function Wo(e, n, t, l) {
933
933
  return Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) * l.animation;
934
934
  }
935
935
  var ut = [], cn = {
@@ -984,7 +984,7 @@ var ut = [], cn = {
984
984
  }), l;
985
985
  }
986
986
  };
987
- function Wo(e) {
987
+ function Go(e) {
988
988
  var n = e.sortable, t = e.rootEl, l = e.name, o = e.targetEl, r = e.cloneEl, u = e.toEl, d = e.fromEl, i = e.oldIndex, k = e.newIndex, g = e.oldDraggableIndex, p = e.newDraggableIndex, C = e.originalEvent, O = e.putSortable, D = e.extraEventProperties;
989
989
  if (n = n || t && t[Te], !!n) {
990
990
  var f, U = n.options, P = "on" + l.charAt(0).toUpperCase() + l.substr(1);
@@ -998,8 +998,8 @@ function Wo(e) {
998
998
  t && t.dispatchEvent(f), U[P] && U[P].call(n, f);
999
999
  }
1000
1000
  }
1001
- var Go = ["evt"], ke = function(e, n) {
1002
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = t.evt, o = qo(t, Go);
1001
+ var Qo = ["evt"], ke = function(e, n) {
1002
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = t.evt, o = jo(t, Qo);
1003
1003
  Et.pluginEvent.bind(R)(e, n, Fe({
1004
1004
  dragEl: I,
1005
1005
  parentEl: pe,
@@ -1035,7 +1035,7 @@ var Go = ["evt"], ke = function(e, n) {
1035
1035
  }, o));
1036
1036
  };
1037
1037
  function Ce(e) {
1038
- Wo(Fe({
1038
+ Go(Fe({
1039
1039
  putSortable: be,
1040
1040
  cloneEl: ue,
1041
1041
  targetEl: I,
@@ -1046,7 +1046,7 @@ function Ce(e) {
1046
1046
  newDraggableIndex: We
1047
1047
  }, e));
1048
1048
  }
1049
- var I, pe, j, re, at, qt, ue, Ge, ft, xe, Tt, We, zt, be, ct = !1, Xt = !1, Ht = [], tt, Ae, pn, fn, Qn, Zn, yt, dt, Dt, It = !1, Mt = !1, jt, ye, vn = [], wn = !1, Jt = [], Gt = typeof document < "u", Ft = gl, Kn = Ot || Ve ? "cssFloat" : "float", Qo = Gt && !hl && !gl && "draggable" in document.createElement("div"), Sl = (function() {
1049
+ var I, pe, j, re, at, qt, ue, Ge, ft, xe, Tt, We, zt, be, ct = !1, Xt = !1, Ht = [], tt, Ae, pn, fn, Qn, Zn, yt, dt, Dt, It = !1, Mt = !1, jt, ye, vn = [], wn = !1, Jt = [], Gt = typeof document < "u", Ft = gl, Kn = Ot || Ve ? "cssFloat" : "float", Zo = Gt && !hl && !gl && "draggable" in document.createElement("div"), Sl = (function() {
1050
1050
  if (Gt) {
1051
1051
  if (Ve)
1052
1052
  return !1;
@@ -1064,10 +1064,10 @@ var I, pe, j, re, at, qt, ue, Ge, ft, xe, Tt, We, zt, be, ct = !1, Xt = !1, Ht =
1064
1064
  return r && (d.clear === "both" || d.clear === g) ? "vertical" : "horizontal";
1065
1065
  }
1066
1066
  return o && (u.display === "block" || u.display === "flex" || u.display === "table" || u.display === "grid" || i >= l && t[Kn] === "none" || r && t[Kn] === "none" && i + k > l) ? "vertical" : "horizontal";
1067
- }, Zo = function(e, n, t) {
1067
+ }, Ko = function(e, n, t) {
1068
1068
  var l = t ? e.left : e.top, o = t ? e.right : e.bottom, r = t ? e.width : e.height, u = t ? n.left : n.top, d = t ? n.right : n.bottom, i = t ? n.width : n.height;
1069
1069
  return l === u || o === d || l + r / 2 === u + i / 2;
1070
- }, Ko = function(e, n) {
1070
+ }, ea = function(e, n) {
1071
1071
  var t;
1072
1072
  return Ht.some(function(l) {
1073
1073
  var o = l[Te].options.emptyInsertThreshold;
@@ -1109,7 +1109,7 @@ Gt && !hl && document.addEventListener("click", function(e) {
1109
1109
  var nt = function(e) {
1110
1110
  if (I) {
1111
1111
  e = e.touches ? e.touches[0] : e;
1112
- var n = Ko(e.clientX, e.clientY);
1112
+ var n = ea(e.clientX, e.clientY);
1113
1113
  if (n) {
1114
1114
  var t = {};
1115
1115
  for (var l in e)
@@ -1117,7 +1117,7 @@ var nt = function(e) {
1117
1117
  t.target = t.rootEl = n, t.preventDefault = void 0, t.stopPropagation = void 0, n[Te]._onDragOver(t);
1118
1118
  }
1119
1119
  }
1120
- }, ea = function(e) {
1120
+ }, ta = function(e) {
1121
1121
  I && I.parentNode[Te]._isOutsideThisEl(e.target);
1122
1122
  };
1123
1123
  function R(e, n) {
@@ -1175,7 +1175,7 @@ function R(e, n) {
1175
1175
  Tl(n);
1176
1176
  for (var o in this)
1177
1177
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1178
- this.nativeDraggable = n.forceFallback ? !1 : Qo, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? Z(e, "pointerdown", this._onTapStart) : (Z(e, "mousedown", this._onTapStart), Z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Z(e, "dragover", this), Z(e, "dragenter", this)), Ht.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), je(this, Xo());
1178
+ this.nativeDraggable = n.forceFallback ? !1 : Zo, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? Z(e, "pointerdown", this._onTapStart) : (Z(e, "mousedown", this._onTapStart), Z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Z(e, "dragover", this), Z(e, "dragenter", this)), Ht.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), je(this, Ho());
1179
1179
  }
1180
1180
  R.prototype = /** @lends Sortable.prototype */
1181
1181
  {
@@ -1189,7 +1189,7 @@ R.prototype = /** @lends Sortable.prototype */
1189
1189
  _onTapStart: function(e) {
1190
1190
  if (e.cancelable) {
1191
1191
  var n = this, t = this.el, l = this.options, o = l.preventOnFilter, r = e.type, u = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, d = (u || e).target, i = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || d, k = l.filter;
1192
- if (sa(t), !I && !(/mousedown|pointerdown/.test(r) && e.button !== 0 || l.disabled) && !i.isContentEditable && !(!this.nativeDraggable && St && d && d.tagName.toUpperCase() === "SELECT") && (d = Pe(d, l.draggable, t, !1), !(d && d.animated) && qt !== d)) {
1192
+ if (ua(t), !I && !(/mousedown|pointerdown/.test(r) && e.button !== 0 || l.disabled) && !i.isContentEditable && !(!this.nativeDraggable && St && d && d.tagName.toUpperCase() === "SELECT") && (d = Pe(d, l.draggable, t, !1), !(d && d.animated) && qt !== d)) {
1193
1193
  if (ft = Oe(d), Tt = Oe(d, l.draggable), typeof k == "function") {
1194
1194
  if (k.call(this, e, d, this)) {
1195
1195
  Ce({
@@ -1282,7 +1282,7 @@ R.prototype = /** @lends Sortable.prototype */
1282
1282
  if (ct = !1, re && I) {
1283
1283
  ke("dragStarted", this, {
1284
1284
  evt: n
1285
- }), this.nativeDraggable && Z(document, "dragover", ea);
1285
+ }), this.nativeDraggable && Z(document, "dragover", ta);
1286
1286
  var t = this.options;
1287
1287
  !e && Se(I, t.dragClass, !1), Se(I, t.ghostClass, !0), R.active = this, e && this._appendGhost(), Ce({
1288
1288
  sortable: this,
@@ -1416,12 +1416,12 @@ R.prototype = /** @lends Sortable.prototype */
1416
1416
  if (r)
1417
1417
  return pe = re, U(), this._hideClone(), f("revert"), R.eventCanceled || (at ? re.insertBefore(I, at) : re.appendChild(I)), P(!0);
1418
1418
  var G = In(n, u.draggable);
1419
- if (!G || oa(e, C, this) && !G.animated) {
1419
+ if (!G || aa(e, C, this) && !G.animated) {
1420
1420
  if (G === I)
1421
1421
  return P(!1);
1422
1422
  if (G && n === e.target && (t = G), t && (o = ge(t)), Rt(re, n, I, l, t, o, e, !!t) !== !1)
1423
1423
  return U(), G && G.nextSibling ? n.insertBefore(I, G.nextSibling) : n.appendChild(I), pe = n, ie(), P(!0);
1424
- } else if (G && la(e, C, this)) {
1424
+ } else if (G && oa(e, C, this)) {
1425
1425
  var ve = ht(n, 0, u, !0);
1426
1426
  if (ve === I)
1427
1427
  return P(!1);
@@ -1429,8 +1429,8 @@ R.prototype = /** @lends Sortable.prototype */
1429
1429
  return U(), n.insertBefore(I, ve), pe = n, ie(), P(!0);
1430
1430
  } else if (t.parentNode === n) {
1431
1431
  o = ge(t);
1432
- var W = 0, z, de = I.parentNode !== n, ne = !Zo(I.animated && I.toRect || l, t.animated && t.toRect || o, C), le = C ? "top" : "left", $ = Wn(t, "top", "top") || Wn(I, "top", "top"), B = $ ? $.scrollTop : void 0;
1433
- dt !== t && (z = o[le], It = !1, Mt = !ne && u.invertSwap || de), W = aa(e, t, o, C, ne ? 1 : u.swapThreshold, u.invertedSwapThreshold == null ? u.swapThreshold : u.invertedSwapThreshold, Mt, dt === t);
1432
+ var W = 0, z, de = I.parentNode !== n, ne = !Ko(I.animated && I.toRect || l, t.animated && t.toRect || o, C), le = C ? "top" : "left", $ = Wn(t, "top", "top") || Wn(I, "top", "top"), B = $ ? $.scrollTop : void 0;
1433
+ dt !== t && (z = o[le], It = !1, Mt = !ne && u.invertSwap || de), W = ia(e, t, o, C, ne ? 1 : u.swapThreshold, u.invertedSwapThreshold == null ? u.swapThreshold : u.invertedSwapThreshold, Mt, dt === t);
1434
1434
  var H;
1435
1435
  if (W !== 0) {
1436
1436
  var oe = Oe(I);
@@ -1445,7 +1445,7 @@ R.prototype = /** @lends Sortable.prototype */
1445
1445
  K = W === 1;
1446
1446
  var L = Rt(re, n, I, l, t, o, e, K);
1447
1447
  if (L !== !1)
1448
- return (L === 1 || L === -1) && (K = L === 1), wn = !0, setTimeout(na, 30), U(), K && !Q ? n.appendChild(I) : t.parentNode.insertBefore(I, K ? Q : t), $ && Cl($, 0, B - $.scrollTop), pe = I.parentNode, z !== void 0 && !Mt && (jt = Math.abs(z - ge(t)[le])), ie(), P(!0);
1448
+ return (L === 1 || L === -1) && (K = L === 1), wn = !0, setTimeout(la, 30), U(), K && !Q ? n.appendChild(I) : t.parentNode.insertBefore(I, K ? Q : t), $ && Cl($, 0, B - $.scrollTop), pe = I.parentNode, z !== void 0 && !Mt && (jt = Math.abs(z - ge(t)[le])), ie(), P(!0);
1449
1449
  }
1450
1450
  if (n.contains(I))
1451
1451
  return P(!1);
@@ -1527,7 +1527,7 @@ R.prototype = /** @lends Sortable.prototype */
1527
1527
  break;
1528
1528
  case "dragenter":
1529
1529
  case "dragover":
1530
- I && (this._onDragOver(e), ta(e));
1530
+ I && (this._onDragOver(e), na(e));
1531
1531
  break;
1532
1532
  case "selectstart":
1533
1533
  e.preventDefault();
@@ -1540,7 +1540,7 @@ R.prototype = /** @lends Sortable.prototype */
1540
1540
  */
1541
1541
  toArray: function() {
1542
1542
  for (var e = [], n, t = this.el.children, l = 0, o = t.length, r = this.options; l < o; l++)
1543
- n = t[l], Pe(n, r.draggable, this.el, !1) && e.push(n.getAttribute(r.dataIdAttr) || ra(n));
1543
+ n = t[l], Pe(n, r.draggable, this.el, !1) && e.push(n.getAttribute(r.dataIdAttr) || sa(n));
1544
1544
  return e;
1545
1545
  },
1546
1546
  /**
@@ -1614,7 +1614,7 @@ R.prototype = /** @lends Sortable.prototype */
1614
1614
  }
1615
1615
  }
1616
1616
  };
1617
- function ta(e) {
1617
+ function na(e) {
1618
1618
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
1619
1619
  }
1620
1620
  function Rt(e, n, t, l, o, r, u, d) {
@@ -1627,18 +1627,18 @@ function Rt(e, n, t, l, o, r, u, d) {
1627
1627
  function mn(e) {
1628
1628
  e.draggable = !1;
1629
1629
  }
1630
- function na() {
1630
+ function la() {
1631
1631
  wn = !1;
1632
1632
  }
1633
- function la(e, n, t) {
1633
+ function oa(e, n, t) {
1634
1634
  var l = ge(ht(t.el, 0, t.options, !0)), o = kl(t.el, t.options, j), r = 10;
1635
1635
  return n ? e.clientX < o.left - r || e.clientY < l.top && e.clientX < l.right : e.clientY < o.top - r || e.clientY < l.bottom && e.clientX < l.left;
1636
1636
  }
1637
- function oa(e, n, t) {
1637
+ function aa(e, n, t) {
1638
1638
  var l = ge(In(t.el, t.options.draggable)), o = kl(t.el, t.options, j), r = 10;
1639
1639
  return n ? e.clientX > o.right + r || e.clientY > l.bottom && e.clientX > l.left : e.clientY > o.bottom + r || e.clientX > l.right && e.clientY > l.top;
1640
1640
  }
1641
- function aa(e, n, t, l, o, r, u, d) {
1641
+ function ia(e, n, t, l, o, r, u, d) {
1642
1642
  var i = l ? e.clientY : e.clientX, k = l ? t.height : t.width, g = l ? t.top : t.left, p = l ? t.bottom : t.right, C = !1;
1643
1643
  if (!u) {
1644
1644
  if (d && jt < k * o) {
@@ -1647,19 +1647,19 @@ function aa(e, n, t, l, o, r, u, d) {
1647
1647
  else if (Dt === 1 ? i < g + jt : i > p - jt)
1648
1648
  return -Dt;
1649
1649
  } else if (i > g + k * (1 - o) / 2 && i < p - k * (1 - o) / 2)
1650
- return ia(n);
1650
+ return ra(n);
1651
1651
  }
1652
1652
  return C = C || u, C && (i < g + k * r / 2 || i > p - k * r / 2) ? i > g + k / 2 ? 1 : -1 : 0;
1653
1653
  }
1654
- function ia(e) {
1654
+ function ra(e) {
1655
1655
  return Oe(I) < Oe(e) ? 1 : -1;
1656
1656
  }
1657
- function ra(e) {
1657
+ function sa(e) {
1658
1658
  for (var n = e.tagName + e.className + e.src + e.href + e.textContent, t = n.length, l = 0; t--; )
1659
1659
  l += n.charCodeAt(t);
1660
1660
  return l.toString(36);
1661
1661
  }
1662
- function sa(e) {
1662
+ function ua(e) {
1663
1663
  Jt.length = 0;
1664
1664
  for (var n = e.getElementsByTagName("input"), t = n.length; t--; ) {
1665
1665
  var l = n[t];
@@ -1683,7 +1683,7 @@ R.utils = {
1683
1683
  is: function(e, n) {
1684
1684
  return !!Pe(e, n, e, !1);
1685
1685
  },
1686
- extend: Uo,
1686
+ extend: Yo,
1687
1687
  throttle: yl,
1688
1688
  closest: Pe,
1689
1689
  toggleClass: Se,
@@ -1709,9 +1709,9 @@ R.mount = function() {
1709
1709
  R.create = function(e, n) {
1710
1710
  return new R(e, n);
1711
1711
  };
1712
- R.version = jo;
1712
+ R.version = Bo;
1713
1713
  var me = [], Ct, Sn, xn = !1, gn, hn, Wt, wt;
1714
- function ua() {
1714
+ function da() {
1715
1715
  function e() {
1716
1716
  this.defaults = {
1717
1717
  scroll: !0,
@@ -1733,7 +1733,7 @@ function ua() {
1733
1733
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
1734
1734
  },
1735
1735
  drop: function() {
1736
- this.sortable.nativeDraggable ? J(document, "dragover", this._handleAutoScroll) : (J(document, "pointermove", this._handleFallbackAutoScroll), J(document, "touchmove", this._handleFallbackAutoScroll), J(document, "mousemove", this._handleFallbackAutoScroll)), el(), Vt(), Yo();
1736
+ this.sortable.nativeDraggable ? J(document, "dragover", this._handleAutoScroll) : (J(document, "pointermove", this._handleFallbackAutoScroll), J(document, "touchmove", this._handleFallbackAutoScroll), J(document, "mousemove", this._handleFallbackAutoScroll)), el(), Vt(), Xo();
1737
1737
  },
1738
1738
  nulling: function() {
1739
1739
  Wt = Sn = Ct = xn = wt = gn = hn = null, me.length = 0;
@@ -1836,29 +1836,29 @@ En.prototype = {
1836
1836
  je(En, {
1837
1837
  pluginName: "removeOnSpill"
1838
1838
  });
1839
- R.mount(new ua());
1839
+ R.mount(new da());
1840
1840
  R.mount(En, On);
1841
- function da(e) {
1841
+ function ca(e) {
1842
1842
  return e == null ? e : JSON.parse(JSON.stringify(e));
1843
1843
  }
1844
- function ca(e) {
1844
+ function pa(e) {
1845
1845
  Dn() && eo(e);
1846
1846
  }
1847
- function pa(e) {
1847
+ function fa(e) {
1848
1848
  Dn() ? al(e) : il(e);
1849
1849
  }
1850
1850
  let El = null, Al = null;
1851
1851
  function tl(e = null, n = null) {
1852
1852
  El = e, Al = n;
1853
1853
  }
1854
- function fa() {
1854
+ function va() {
1855
1855
  return {
1856
1856
  data: El,
1857
1857
  clonedData: Al
1858
1858
  };
1859
1859
  }
1860
1860
  const nl = /* @__PURE__ */ Symbol("cloneElement");
1861
- function va(...e) {
1861
+ function ma(...e) {
1862
1862
  var n, t;
1863
1863
  const l = (n = Dn()) == null ? void 0 : n.proxy;
1864
1864
  let o = null;
@@ -1868,7 +1868,7 @@ function va(...e) {
1868
1868
  let i = null;
1869
1869
  const {
1870
1870
  immediate: k = !0,
1871
- clone: g = da,
1871
+ clone: g = ca,
1872
1872
  forceFallback: p,
1873
1873
  fallbackOnBody: C,
1874
1874
  customUpdate: O
@@ -1882,7 +1882,7 @@ function va(...e) {
1882
1882
  }
1883
1883
  function f($) {
1884
1884
  const B = $.item[nl];
1885
- if (!Eo(B)) {
1885
+ if (!Ao(B)) {
1886
1886
  if (un($.item), on(u)) {
1887
1887
  const H = [...v(u)];
1888
1888
  u.value = Vn(H, $.newDraggableIndex, B);
@@ -1954,17 +1954,17 @@ function va(...e) {
1954
1954
  };
1955
1955
  function ve($) {
1956
1956
  const B = v(r);
1957
- return $ || ($ = Ao(B) ? No(B, l?.$el) : B), $ && !zo($) && ($ = $.$el), $ || Do("Root element not found"), $;
1957
+ return $ || ($ = No(B) ? Po(B, l?.$el) : B), $ && !Mo($) && ($ = $.$el), $ || Io("Root element not found"), $;
1958
1958
  }
1959
1959
  function W() {
1960
1960
  var $;
1961
1961
  const B = ($ = v(d)) != null ? $ : {}, { immediate: H, clone: oe } = B, Q = vl(B, ["immediate", "clone"]);
1962
1962
  return Yn(Q, (K, L) => {
1963
- Mo(K) && (Q[K] = (c, ...y) => {
1964
- const De = fa();
1965
- return Fo(c, De), L(c, ...y);
1963
+ Fo(K) && (Q[K] = (c, ...y) => {
1964
+ const De = va();
1965
+ return Ro(c, De), L(c, ...y);
1966
1966
  });
1967
- }), $o(
1967
+ }), zo(
1968
1968
  u === null ? {} : G,
1969
1969
  Q
1970
1970
  );
@@ -1990,9 +1990,9 @@ function va(...e) {
1990
1990
  toArray: () => i?.toArray(),
1991
1991
  closest: (...$) => i?.closest(...$)
1992
1992
  }, ne = () => de?.option("disabled", !0), le = () => de?.option("disabled", !1);
1993
- return pa(() => {
1993
+ return fa(() => {
1994
1994
  k && z();
1995
- }), ca(de.destroy), pt({ start: z, pause: ne, resume: le }, de);
1995
+ }), pa(de.destroy), pt({ start: z, pause: ne, resume: le }, de);
1996
1996
  }
1997
1997
  const Tn = [
1998
1998
  "update",
@@ -2007,7 +2007,7 @@ const Tn = [
2007
2007
  "clone",
2008
2008
  "move",
2009
2009
  "change"
2010
- ], ma = [
2010
+ ], ga = [
2011
2011
  "clone",
2012
2012
  "animation",
2013
2013
  "ghostClass",
@@ -2052,13 +2052,13 @@ const Tn = [
2052
2052
  "target",
2053
2053
  "customUpdate",
2054
2054
  ...Tn.map((e) => `on${e.replace(/^\S/, (n) => n.toUpperCase())}`)
2055
- ], ga = Ee({
2055
+ ], ha = Ee({
2056
2056
  name: "VueDraggable",
2057
2057
  model: {
2058
2058
  prop: "modelValue",
2059
2059
  event: "update:modelValue"
2060
2060
  },
2061
- props: ma,
2061
+ props: ga,
2062
2062
  emits: ["update:modelValue", ...Tn],
2063
2063
  setup(e, { slots: n, emit: t, expose: l, attrs: o }) {
2064
2064
  const r = Tn.reduce((g, p) => {
@@ -2069,37 +2069,37 @@ const Tn = [
2069
2069
  const P = v(U);
2070
2070
  return P !== void 0 && (D[f] = P), D;
2071
2071
  }, {});
2072
- return pt(pt({}, r), Oo(pt(pt({}, o), O)));
2072
+ return pt(pt({}, r), Eo(pt(pt({}, o), O)));
2073
2073
  }), d = A({
2074
2074
  get: () => e.modelValue,
2075
2075
  set: (g) => t("update:modelValue", g)
2076
2076
  }), i = se(), k = ll(
2077
- va(e.target || i, d, u)
2077
+ ma(e.target || i, d, u)
2078
2078
  );
2079
2079
  return l(k), () => {
2080
2080
  var g;
2081
2081
  return Kl(e.tag || "div", { ref: i }, (g = n?.default) == null ? void 0 : g.call(n, k));
2082
2082
  };
2083
2083
  }
2084
- }), ha = { class: "expanded" }, ba = { class: "expanded__head" }, _a = { class: "expanded__icon" }, ya = ["name"], Ca = { class: "expanded__title" }, wa = { class: "expanded__meta" }, ka = { class: "expanded__head-actions" }, Sa = { class: "expanded__body" }, xa = { class: "expanded__preview" }, Ta = {
2084
+ }), ba = { class: "expanded" }, _a = { class: "expanded__head" }, ya = { class: "expanded__icon" }, Ca = ["name"], wa = { class: "expanded__title" }, ka = { class: "expanded__meta" }, Sa = { class: "expanded__head-actions" }, xa = { class: "expanded__body" }, Ta = { class: "expanded__preview" }, Da = {
2085
2085
  key: 1,
2086
2086
  class: "expanded__options"
2087
- }, Da = ["onDragstart", "onDragover", "onDrop"], Ia = { class: "expanded__options-foot" }, Oa = {
2087
+ }, Ia = ["onDragstart", "onDragover", "onDrop"], Oa = { class: "expanded__options-foot" }, Ea = {
2088
2088
  key: 2,
2089
2089
  class: "expanded__preview"
2090
- }, Ea = { class: "expanded__row" }, Aa = { class: "expanded__preview" }, Na = { class: "expanded__row expanded__row--3" }, Pa = { class: "expanded__preview" }, $a = { class: "expanded__row expanded__row--2" }, za = { class: "expanded__preview" }, Ma = {
2090
+ }, Aa = { class: "expanded__row" }, Na = { class: "expanded__preview" }, Pa = { class: "expanded__row expanded__row--3" }, $a = { class: "expanded__preview" }, za = { class: "expanded__row expanded__row--2" }, Ma = { class: "expanded__preview" }, Fa = {
2091
2091
  key: 6,
2092
2092
  class: "expanded__options"
2093
- }, Fa = { class: "expanded__image-thumb-wrap" }, Ra = ["src"], La = ["onClick"], qa = {
2093
+ }, Ra = { class: "expanded__image-thumb-wrap" }, La = ["src"], qa = ["onClick"], ja = {
2094
2094
  key: 2,
2095
2095
  class: "expanded__image-actions"
2096
- }, ja = ["onChange"], Ba = { class: "expanded__image-label-row" }, Va = { class: "expanded__options-foot" }, Ua = { class: "expanded__options" }, Ya = { class: "expanded__option-number" }, Xa = { class: "expanded__options-foot" }, Ha = { class: "expanded__options" }, Ja = { class: "expanded__options-foot" }, Wa = { class: "expanded__preview" }, Ga = { class: "expanded__section-preview" }, Qa = { key: 0 }, Za = { class: "expanded__foot" }, Ka = {
2096
+ }, Ba = ["onChange"], Va = { class: "expanded__image-label-row" }, Ua = { class: "expanded__options-foot" }, Ya = { class: "expanded__options" }, Xa = { class: "expanded__option-number" }, Ha = { class: "expanded__options-foot" }, Ja = { class: "expanded__options" }, Wa = { class: "expanded__options-foot" }, Ga = { class: "expanded__preview" }, Qa = { class: "expanded__section-preview" }, Za = { key: 0 }, Ka = { class: "expanded__foot" }, ei = {
2097
2097
  key: 0,
2098
2098
  class: "answer-key"
2099
- }, ei = { class: "answer-key__head" }, ti = { class: "answer-key__head-right" }, ni = { class: "answer-key__body" }, li = { class: "answer-key__question-label" }, oi = { class: "answer-key__question-label" }, ai = { class: "answer-key__question-label" }, ii = { class: "answer-key__question-label" }, ri = ["onDragstart", "onDragover", "onDrop"], si = { class: "answer-key__order-num" }, ui = { style: { flex: "1" } }, di = { class: "answer-key__matching-term" }, ci = ["value", "onChange"], pi = ["value"], fi = {
2099
+ }, ti = { class: "answer-key__head" }, ni = { class: "answer-key__head-right" }, li = { class: "answer-key__body" }, oi = { class: "answer-key__question-label" }, ai = { class: "answer-key__question-label" }, ii = { class: "answer-key__question-label" }, ri = { class: "answer-key__question-label" }, si = ["onDragstart", "onDragover", "onDrop"], ui = { class: "answer-key__order-num" }, di = { style: { flex: "1" } }, ci = { class: "answer-key__matching-term" }, pi = ["value", "onChange"], fi = ["value"], vi = {
2100
2100
  key: 7,
2101
2101
  class: "answer-key__manual"
2102
- }, vi = { class: "answer-key__feedback" }, mi = { class: "answer-key__foot" }, gi = ["onClick"], hi = ["name"], bi = /* @__PURE__ */ Ee({
2102
+ }, mi = { class: "answer-key__feedback" }, gi = { class: "answer-key__foot" }, hi = ["onClick"], bi = ["name"], _i = /* @__PURE__ */ Ee({
2103
2103
  __name: "FieldCardExpanded",
2104
2104
  props: {
2105
2105
  pageIdx: {},
@@ -2399,23 +2399,23 @@ const Tn = [
2399
2399
  onClick: a[22] || (a[22] = Le(() => {
2400
2400
  }, ["stop"]))
2401
2401
  }, [
2402
- s("div", ha, [
2403
- s("header", ba, [
2404
- s("span", _a, [
2402
+ s("div", ba, [
2403
+ s("header", _a, [
2404
+ s("span", ya, [
2405
2405
  o.value ? (b(), w("co-icon", {
2406
2406
  key: 0,
2407
2407
  name: o.value.icon,
2408
2408
  size: "20"
2409
- }, null, 8, ya)) : V("", !0)
2409
+ }, null, 8, Ca)) : V("", !0)
2410
2410
  ]),
2411
- s("div", Ca, [
2411
+ s("div", wa, [
2412
2412
  T(gt, {
2413
2413
  class: "expanded__label",
2414
2414
  "model-value": l.value.label || "",
2415
2415
  placeholder: "Untitled field",
2416
2416
  "onUpdate:modelValue": a[0] || (a[0] = (h) => i("label", h))
2417
2417
  }, null, 8, ["model-value"]),
2418
- s("div", wa, [
2418
+ s("div", ka, [
2419
2419
  T(gt, {
2420
2420
  class: "expanded__id",
2421
2421
  "model-value": e.fieldName,
@@ -2426,7 +2426,7 @@ const Tn = [
2426
2426
  s("span", null, te(Ll.value), 1)
2427
2427
  ])
2428
2428
  ]),
2429
- s("div", ka, [
2429
+ s("div", Sa, [
2430
2430
  T(v(ot), {
2431
2431
  class: "expanded__type",
2432
2432
  options: JSON.stringify(u.value),
@@ -2442,14 +2442,14 @@ const Tn = [
2442
2442
  })
2443
2443
  ])
2444
2444
  ]),
2445
- s("div", Sa, [
2445
+ s("div", xa, [
2446
2446
  ["text", "textarea", "number", "date", "color", "file"].includes(r.value) ? (b(), w(q, { key: 0 }, [
2447
2447
  T(v(Y), {
2448
2448
  label: "Placeholder",
2449
2449
  value: l.value.placeholder || "",
2450
2450
  onCoInput: a[2] || (a[2] = (h) => i("placeholder", d(h)))
2451
2451
  }, null, 8, ["value"]),
2452
- s("div", xa, [
2452
+ s("div", Ta, [
2453
2453
  a[24] || (a[24] = s("div", { class: "expanded__preview-label" }, "Preview", -1)),
2454
2454
  T(v(Y), {
2455
2455
  label: l.value.label,
@@ -2461,7 +2461,7 @@ const Tn = [
2461
2461
  disabled: ""
2462
2462
  }, null, 8, ["label", "placeholder", "helper-text", "type", "multiline", "required"])
2463
2463
  ])
2464
- ], 64)) : r.value === "select" ? (b(), w("div", Ta, [
2464
+ ], 64)) : r.value === "select" ? (b(), w("div", Da, [
2465
2465
  a[27] || (a[27] = s("div", { class: "expanded__options-label" }, "Options", -1)),
2466
2466
  (b(!0), w(q, null, fe(f.value, (h, x) => (b(), w("div", {
2467
2467
  key: x,
@@ -2497,8 +2497,8 @@ const Tn = [
2497
2497
  label: "Remove option",
2498
2498
  onClick: (N) => P(x)
2499
2499
  }, null, 8, ["onClick"])
2500
- ], 42, Da))), 128)),
2501
- s("div", Ia, [
2500
+ ], 42, Ia))), 128)),
2501
+ s("div", Oa, [
2502
2502
  T(v(Ne), {
2503
2503
  label: "Add option",
2504
2504
  variant: "stroke",
@@ -2512,7 +2512,7 @@ const Tn = [
2512
2512
  onCoChange: Ze
2513
2513
  }, null, 8, ["checked"])
2514
2514
  ])
2515
- ])) : r.value === "boolean" ? (b(), w("div", Oa, [
2515
+ ])) : r.value === "boolean" ? (b(), w("div", Ea, [
2516
2516
  a[28] || (a[28] = s("div", { class: "expanded__preview-label" }, "Preview", -1)),
2517
2517
  T(v(kt), {
2518
2518
  label: l.value.label || e.fieldName,
@@ -2520,7 +2520,7 @@ const Tn = [
2520
2520
  disabled: ""
2521
2521
  }, null, 8, ["label", "helper-text"])
2522
2522
  ])) : r.value === "rating" ? (b(), w(q, { key: 3 }, [
2523
- s("div", Ea, [
2523
+ s("div", Aa, [
2524
2524
  T(v(Y), {
2525
2525
  label: "Max stars",
2526
2526
  type: "number",
@@ -2528,7 +2528,7 @@ const Tn = [
2528
2528
  onCoInput: a[3] || (a[3] = (h) => i("max", rt(d(h)) ?? 5))
2529
2529
  }, null, 8, ["value"])
2530
2530
  ]),
2531
- s("div", Aa, [
2531
+ s("div", Na, [
2532
2532
  a[29] || (a[29] = s("div", { class: "expanded__preview-label" }, "Preview", -1)),
2533
2533
  T(v(ao), {
2534
2534
  label: l.value.label || e.fieldName,
@@ -2538,7 +2538,7 @@ const Tn = [
2538
2538
  }, null, 8, ["label", "max"])
2539
2539
  ])
2540
2540
  ], 64)) : r.value === "slider" ? (b(), w(q, { key: 4 }, [
2541
- s("div", Na, [
2541
+ s("div", Pa, [
2542
2542
  T(v(Y), {
2543
2543
  label: "Min",
2544
2544
  type: "number",
@@ -2558,7 +2558,7 @@ const Tn = [
2558
2558
  onCoInput: a[6] || (a[6] = (h) => i("step", rt(d(h)) ?? 1))
2559
2559
  }, null, 8, ["value"])
2560
2560
  ]),
2561
- s("div", Pa, [
2561
+ s("div", $a, [
2562
2562
  a[30] || (a[30] = s("div", { class: "expanded__preview-label" }, "Preview", -1)),
2563
2563
  T(v(dl), {
2564
2564
  label: l.value.label || e.fieldName,
@@ -2571,7 +2571,7 @@ const Tn = [
2571
2571
  }, null, 8, ["label", "min", "max", "step", "value"])
2572
2572
  ])
2573
2573
  ], 64)) : r.value === "ref" ? (b(), w(q, { key: 5 }, [
2574
- s("div", $a, [
2574
+ s("div", za, [
2575
2575
  T(v(Y), {
2576
2576
  label: "Model",
2577
2577
  placeholder: "Company, User, Deal…",
@@ -2585,7 +2585,7 @@ const Tn = [
2585
2585
  onCoInput: a[8] || (a[8] = (h) => i("displayName", d(h)))
2586
2586
  }, null, 8, ["value"])
2587
2587
  ]),
2588
- s("div", za, [
2588
+ s("div", Ma, [
2589
2589
  a[31] || (a[31] = s("div", { class: "expanded__preview-label" }, "Preview", -1)),
2590
2590
  T(v(Y), {
2591
2591
  label: l.value.label || e.fieldName,
@@ -2594,19 +2594,19 @@ const Tn = [
2594
2594
  disabled: ""
2595
2595
  }, null, 8, ["label", "placeholder"])
2596
2596
  ])
2597
- ], 64)) : r.value === "image-choice" ? (b(), w("div", Ma, [
2597
+ ], 64)) : r.value === "image-choice" ? (b(), w("div", Fa, [
2598
2598
  a[33] || (a[33] = s("div", { class: "expanded__options-label" }, "Image options", -1)),
2599
2599
  (b(!0), w(q, null, fe(f.value, (h, x) => (b(), w("div", {
2600
2600
  key: x,
2601
2601
  class: "expanded__image-option"
2602
2602
  }, [
2603
- s("div", Fa, [
2603
+ s("div", Ra, [
2604
2604
  z.value[x] ? (b(), w("img", {
2605
2605
  key: 0,
2606
2606
  src: z.value[x],
2607
2607
  class: "expanded__image-thumb",
2608
2608
  alt: ""
2609
- }, null, 8, Ra)) : (b(), w("div", {
2609
+ }, null, 8, La)) : (b(), w("div", {
2610
2610
  key: 1,
2611
2611
  class: "expanded__image-placeholder",
2612
2612
  onClick: (N) => W(x)
@@ -2616,8 +2616,8 @@ const Tn = [
2616
2616
  size: "24"
2617
2617
  }, null, -1),
2618
2618
  s("span", null, "Add image", -1)
2619
- ])], 8, La)),
2620
- z.value[x] ? (b(), w("div", qa, [
2619
+ ])], 8, qa)),
2620
+ z.value[x] ? (b(), w("div", ja, [
2621
2621
  T(v(Re), {
2622
2622
  icon: "pencil-simple",
2623
2623
  variant: "outlined",
@@ -2640,9 +2640,9 @@ const Tn = [
2640
2640
  accept: "image/*",
2641
2641
  style: { display: "none" },
2642
2642
  onChange: (N) => le(N, x)
2643
- }, null, 40, ja)
2643
+ }, null, 40, Ba)
2644
2644
  ]),
2645
- s("div", Ba, [
2645
+ s("div", Va, [
2646
2646
  T(v(Y), {
2647
2647
  class: "expanded__option-input",
2648
2648
  value: h,
@@ -2658,7 +2658,7 @@ const Tn = [
2658
2658
  }, null, 8, ["onClick"])
2659
2659
  ])
2660
2660
  ]))), 128)),
2661
- s("div", Va, [
2661
+ s("div", Ua, [
2662
2662
  T(v(Ne), {
2663
2663
  label: "Add option",
2664
2664
  variant: "stroke",
@@ -2668,13 +2668,13 @@ const Tn = [
2668
2668
  })
2669
2669
  ])
2670
2670
  ])) : r.value === "ordering" ? (b(), w(q, { key: 7 }, [
2671
- s("div", Ua, [
2671
+ s("div", Ya, [
2672
2672
  a[34] || (a[34] = s("div", { class: "expanded__options-label" }, "Items (shown in correct order)", -1)),
2673
2673
  (b(!0), w(q, null, fe(Xe.value, (h, x) => (b(), w("div", {
2674
2674
  key: x,
2675
2675
  class: "expanded__option"
2676
2676
  }, [
2677
- s("span", Ya, te(x + 1), 1),
2677
+ s("span", Xa, te(x + 1), 1),
2678
2678
  T(v(Y), {
2679
2679
  class: "expanded__option-input",
2680
2680
  value: h,
@@ -2689,7 +2689,7 @@ const Tn = [
2689
2689
  onClick: (N) => Bl(x)
2690
2690
  }, null, 8, ["onClick"])
2691
2691
  ]))), 128)),
2692
- s("div", Xa, [
2692
+ s("div", Ha, [
2693
2693
  T(v(Ne), {
2694
2694
  label: "Add item",
2695
2695
  variant: "stroke",
@@ -2703,7 +2703,7 @@ const Tn = [
2703
2703
  s("div", { class: "expanded__preview-label" }, "Preview — students will see items in shuffled order")
2704
2704
  ], -1))
2705
2705
  ], 64)) : r.value === "matching" ? (b(), w(q, { key: 8 }, [
2706
- s("div", Ha, [
2706
+ s("div", Ja, [
2707
2707
  a[37] || (a[37] = s("div", { class: "expanded__options-label" }, "Pairs", -1)),
2708
2708
  a[38] || (a[38] = s("div", { class: "expanded__matching-head" }, [
2709
2709
  s("span", { class: "expanded__matching-col-label" }, "Term"),
@@ -2738,7 +2738,7 @@ const Tn = [
2738
2738
  onClick: (N) => Gl(x)
2739
2739
  }, null, 8, ["onClick"])
2740
2740
  ]))), 128)),
2741
- s("div", Ja, [
2741
+ s("div", Wa, [
2742
2742
  T(v(Ne), {
2743
2743
  label: "Add pair",
2744
2744
  variant: "stroke",
@@ -2759,11 +2759,11 @@ const Tn = [
2759
2759
  value: l.value.helperText || "",
2760
2760
  onCoInput: a[9] || (a[9] = (h) => i("helperText", d(h)))
2761
2761
  }, null, 8, ["value"]),
2762
- s("div", Wa, [
2762
+ s("div", Ga, [
2763
2763
  a[40] || (a[40] = s("div", { class: "expanded__preview-label" }, "Preview", -1)),
2764
- s("div", Ga, [
2764
+ s("div", Qa, [
2765
2765
  s("h4", null, te(l.value.label || "Section title"), 1),
2766
- l.value.helperText ? (b(), w("p", Qa, te(l.value.helperText), 1)) : V("", !0)
2766
+ l.value.helperText ? (b(), w("p", Za, te(l.value.helperText), 1)) : V("", !0)
2767
2767
  ])
2768
2768
  ])
2769
2769
  ], 64)) : V("", !0),
@@ -2775,7 +2775,7 @@ const Tn = [
2775
2775
  onCoInput: a[10] || (a[10] = (h) => i("helperText", d(h)))
2776
2776
  }, null, 8, ["value"])) : V("", !0)
2777
2777
  ]),
2778
- s("footer", Za, [
2778
+ s("footer", Ka, [
2779
2779
  ee.value && r.value !== "section" ? (b(), _e(v(Ne), {
2780
2780
  key: 0,
2781
2781
  "icon-left": Nl.value ? "check-square" : "key",
@@ -2805,8 +2805,8 @@ const Tn = [
2805
2805
  onClick: C
2806
2806
  })
2807
2807
  ]),
2808
- ee.value && ce.value && r.value !== "section" ? (b(), w("div", Ka, [
2809
- s("div", ei, [
2808
+ ee.value && ce.value && r.value !== "section" ? (b(), w("div", ei, [
2809
+ s("div", ti, [
2810
2810
  a[43] || (a[43] = s("div", { class: "answer-key__head-left" }, [
2811
2811
  s("co-icon", {
2812
2812
  name: "check-square",
@@ -2814,7 +2814,7 @@ const Tn = [
2814
2814
  }),
2815
2815
  s("span", { class: "answer-key__head-label" }, "Choose correct answer(s):")
2816
2816
  ], -1)),
2817
- s("div", ti, [
2817
+ s("div", ni, [
2818
2818
  T(v(Y), {
2819
2819
  class: "answer-key__points-input",
2820
2820
  type: "number",
@@ -2824,14 +2824,14 @@ const Tn = [
2824
2824
  a[42] || (a[42] = s("span", { class: "answer-key__points-label" }, "points", -1))
2825
2825
  ])
2826
2826
  ]),
2827
- s("div", ni, [
2827
+ s("div", li, [
2828
2828
  r.value === "select" ? (b(), w(q, { key: 0 }, [
2829
2829
  T(v(ze), {
2830
2830
  label: "Allow multiple selections",
2831
2831
  checked: !!l.value.multiSelect,
2832
2832
  onCoChange: a[14] || (a[14] = (h) => i("multiSelect", d(h) || void 0))
2833
2833
  }, null, 8, ["checked"]),
2834
- s("div", li, te(l.value.label || "Question"), 1),
2834
+ s("div", oi, te(l.value.label || "Question"), 1),
2835
2835
  (b(!0), w(q, null, fe(f.value, (h, x) => (b(), w("div", {
2836
2836
  key: x,
2837
2837
  class: we(["answer-key__option", { "is-correct": he.value.includes(x) }])
@@ -2848,7 +2848,7 @@ const Tn = [
2848
2848
  checked: !!l.value.multiSelect,
2849
2849
  onCoChange: a[15] || (a[15] = (h) => i("multiSelect", d(h) || void 0))
2850
2850
  }, null, 8, ["checked"]),
2851
- s("div", oi, te(l.value.label || "Question"), 1),
2851
+ s("div", ai, te(l.value.label || "Question"), 1),
2852
2852
  (b(!0), w(q, null, fe(f.value, (h, x) => (b(), w("div", {
2853
2853
  key: x,
2854
2854
  class: we(["answer-key__option", { "is-correct": he.value.includes(x) }])
@@ -2865,7 +2865,7 @@ const Tn = [
2865
2865
  }, null, 8, ["label", "checked", "onCoChange"])
2866
2866
  ], 2))), 128))
2867
2867
  ], 64)) : r.value === "boolean" ? (b(), w(q, { key: 2 }, [
2868
- s("div", ai, te(l.value.label || "Question"), 1),
2868
+ s("div", ii, te(l.value.label || "Question"), 1),
2869
2869
  (b(), w(q, null, fe(ql, (h, x) => s("div", {
2870
2870
  key: x,
2871
2871
  class: we(["answer-key__option", { "is-correct": he.value.includes(x) }])
@@ -2892,7 +2892,7 @@ const Tn = [
2892
2892
  onCoInput: a[16] || (a[16] = (h) => Ml(d(h)))
2893
2893
  }, null, 8, ["value"])
2894
2894
  ], 64)) : r.value === "number" ? (b(), w(q, { key: 4 }, [
2895
- s("div", ii, te(l.value.label || "Question"), 1),
2895
+ s("div", ri, te(l.value.label || "Question"), 1),
2896
2896
  T(v(Y), {
2897
2897
  label: "Correct answer",
2898
2898
  type: "number",
@@ -2931,9 +2931,9 @@ const Tn = [
2931
2931
  size: "16"
2932
2932
  })
2933
2933
  ], -1)),
2934
- s("span", si, te(x + 1), 1),
2935
- s("span", ui, te(h), 1)
2936
- ], 42, ri))), 128)),
2934
+ s("span", ui, te(x + 1), 1),
2935
+ s("span", di, te(h), 1)
2936
+ ], 42, si))), 128)),
2937
2937
  a[48] || (a[48] = s("div", { class: "answer-key__hint" }, [
2938
2938
  s("co-icon", {
2939
2939
  name: "info",
@@ -2947,7 +2947,7 @@ const Tn = [
2947
2947
  key: x,
2948
2948
  class: "answer-key__matching-pair"
2949
2949
  }, [
2950
- s("span", di, te(h), 1),
2950
+ s("span", ci, te(h), 1),
2951
2951
  a[50] || (a[50] = s("co-icon", {
2952
2952
  name: "arrow-right",
2953
2953
  size: "16"
@@ -2961,8 +2961,8 @@ const Tn = [
2961
2961
  (b(!0), w(q, null, fe(bt.value, (N, Ie) => (b(), w("option", {
2962
2962
  key: Ie,
2963
2963
  value: String(Ie)
2964
- }, te(N), 9, pi))), 128))
2965
- ], 40, ci)
2964
+ }, te(N), 9, fi))), 128))
2965
+ ], 40, pi)
2966
2966
  ]))), 128)),
2967
2967
  a[52] || (a[52] = s("div", { class: "answer-key__hint" }, [
2968
2968
  s("co-icon", {
@@ -2971,7 +2971,7 @@ const Tn = [
2971
2971
  }),
2972
2972
  s("span", null, "Select the correct definition for each term. Definitions will be shuffled for students.")
2973
2973
  ], -1))
2974
- ], 64)) : (b(), w("div", fi, [...a[53] || (a[53] = [
2974
+ ], 64)) : (b(), w("div", vi, [...a[53] || (a[53] = [
2975
2975
  s("co-icon", {
2976
2976
  name: "note-pencil",
2977
2977
  size: "20"
@@ -2979,7 +2979,7 @@ const Tn = [
2979
2979
  s("span", null, "This question requires manual grading.", -1)
2980
2980
  ])]))
2981
2981
  ]),
2982
- s("div", vi, [
2982
+ s("div", mi, [
2983
2983
  T(v(Y), {
2984
2984
  label: "Add answer feedback",
2985
2985
  "icon-left": "chat-dots",
@@ -2988,7 +2988,7 @@ const Tn = [
2988
2988
  onCoInput: a[19] || (a[19] = (h) => zl(d(h)))
2989
2989
  }, null, 8, ["value"])
2990
2990
  ]),
2991
- s("div", mi, [
2991
+ s("div", gi, [
2992
2992
  T(v(Ne), {
2993
2993
  label: "Done",
2994
2994
  variant: "stroke",
@@ -3045,23 +3045,23 @@ const Tn = [
3045
3045
  s("co-icon", {
3046
3046
  name: h.icon,
3047
3047
  size: "16"
3048
- }, null, 8, hi),
3048
+ }, null, 8, bi),
3049
3049
  s("span", null, te(h.label), 1)
3050
- ], 8, gi))), 128))
3050
+ ], 8, hi))), 128))
3051
3051
  ])) : V("", !0)
3052
3052
  ], 2)
3053
3053
  ]));
3054
3054
  }
3055
- }), _i = /* @__PURE__ */ $e(bi, [["__scopeId", "data-v-3a563a1f"]]), yi = { class: "field__icon" }, Ci = ["name"], wi = { class: "field__body" }, ki = { class: "field__name" }, Si = {
3055
+ }), yi = /* @__PURE__ */ $e(_i, [["__scopeId", "data-v-3a563a1f"]]), Ci = { class: "field__icon" }, wi = ["name"], ki = { class: "field__body" }, Si = { class: "field__name" }, xi = {
3056
3056
  key: 0,
3057
3057
  class: "field__chip field__chip--warn"
3058
- }, xi = {
3058
+ }, Ti = {
3059
3059
  key: 1,
3060
3060
  class: "field__chip"
3061
- }, Ti = {
3061
+ }, Di = {
3062
3062
  key: 2,
3063
3063
  class: "field__chip"
3064
- }, Di = { class: "field__meta" }, Ii = { class: "field__meta-id" }, Oi = /* @__PURE__ */ Ee({
3064
+ }, Ii = { class: "field__meta" }, Oi = { class: "field__meta-id" }, Ei = /* @__PURE__ */ Ee({
3065
3065
  __name: "FieldCard",
3066
3066
  props: {
3067
3067
  pageIdx: {},
@@ -3086,7 +3086,7 @@ const Tn = [
3086
3086
  function k(g) {
3087
3087
  g.stopPropagation(), t.removeField(n.pageIdx, n.fieldName);
3088
3088
  }
3089
- return (g, p) => r.value ? (b(), _e(_i, {
3089
+ return (g, p) => r.value ? (b(), _e(yi, {
3090
3090
  key: 0,
3091
3091
  "page-idx": e.pageIdx,
3092
3092
  "field-name": e.fieldName
@@ -3099,22 +3099,22 @@ const Tn = [
3099
3099
  class: "field__grip",
3100
3100
  "aria-hidden": "true"
3101
3101
  }, "⋮⋮", -1)),
3102
- s("span", yi, [
3102
+ s("span", Ci, [
3103
3103
  u.value ? (b(), w("co-icon", {
3104
3104
  key: 0,
3105
3105
  name: u.value.icon,
3106
3106
  size: "18"
3107
- }, null, 8, Ci)) : V("", !0)
3107
+ }, null, 8, wi)) : V("", !0)
3108
3108
  ]),
3109
- s("div", wi, [
3110
- s("div", ki, [
3109
+ s("div", ki, [
3110
+ s("div", Si, [
3111
3111
  lt(te(o.value.label || e.fieldName) + " ", 1),
3112
- o.value.required ? (b(), w("span", Si, "required")) : V("", !0),
3113
- o.value.visibleIf ? (b(), w("span", xi, "visibleIf")) : V("", !0),
3114
- o.value.full ? (b(), w("span", Ti, "full")) : V("", !0)
3112
+ o.value.required ? (b(), w("span", xi, "required")) : V("", !0),
3113
+ o.value.visibleIf ? (b(), w("span", Ti, "visibleIf")) : V("", !0),
3114
+ o.value.full ? (b(), w("span", Di, "full")) : V("", !0)
3115
3115
  ]),
3116
- s("div", Di, [
3117
- s("span", Ii, te(e.fieldName), 1),
3116
+ s("div", Ii, [
3117
+ s("span", Oi, te(e.fieldName), 1),
3118
3118
  p[1] || (p[1] = s("span", { class: "field__meta-sep" }, "·", -1)),
3119
3119
  s("span", null, te(v(t).data.mode === "quiz" && u.value?.quizLabel ? u.value.quizLabel : u.value?.label || o.value.type || "String"), 1)
3120
3120
  ])
@@ -3147,13 +3147,13 @@ const Tn = [
3147
3147
  ])
3148
3148
  ]));
3149
3149
  }
3150
- }), Ei = /* @__PURE__ */ $e(Oi, [["__scopeId", "data-v-7e5600b4"]]), Ai = {
3150
+ }), Ai = /* @__PURE__ */ $e(Ei, [["__scopeId", "data-v-7e5600b4"]]), Ni = {
3151
3151
  key: 0,
3152
3152
  class: "page__head"
3153
- }, Ni = { class: "page__head-text" }, Pi = { class: "page__head-pill" }, $i = ["disabled"], zi = {
3153
+ }, Pi = { class: "page__head-text" }, $i = { class: "page__head-pill" }, zi = ["disabled"], Mi = {
3154
3154
  key: 0,
3155
3155
  class: "page__empty"
3156
- }, Mi = /* @__PURE__ */ Ee({
3156
+ }, Fi = /* @__PURE__ */ Ee({
3157
3157
  __name: "PageCard",
3158
3158
  props: {
3159
3159
  pageIdx: {}
@@ -3197,9 +3197,9 @@ const Tn = [
3197
3197
  }]),
3198
3198
  onClick: d
3199
3199
  }, [
3200
- v(t).data.mode !== "quiz" ? (b(), w("header", Ai, [
3201
- s("div", Ni, [
3202
- s("div", Pi, "PAGE " + te(e.pageIdx + 1), 1),
3200
+ v(t).data.mode !== "quiz" ? (b(), w("header", Ni, [
3201
+ s("div", Pi, [
3202
+ s("div", $i, "PAGE " + te(e.pageIdx + 1), 1),
3203
3203
  T(gt, {
3204
3204
  class: "page__title",
3205
3205
  "model-value": l.value.title || "",
@@ -3240,7 +3240,7 @@ const Tn = [
3240
3240
  size: "14"
3241
3241
  }, null, -1),
3242
3242
  s("span", null, "Delete", -1)
3243
- ])], 8, $i)
3243
+ ])], 8, zi)
3244
3244
  ])
3245
3245
  ])) : V("", !0),
3246
3246
  s("div", {
@@ -3249,7 +3249,7 @@ const Tn = [
3249
3249
  onDragleave: C,
3250
3250
  onDrop: O
3251
3251
  }, [
3252
- T(v(ga), {
3252
+ T(v(ha), {
3253
3253
  modelValue: r.value,
3254
3254
  "onUpdate:modelValue": f[3] || (f[3] = (U) => r.value = U),
3255
3255
  class: "page__sortable",
@@ -3260,7 +3260,7 @@ const Tn = [
3260
3260
  handle: ".field__grip"
3261
3261
  }, {
3262
3262
  default: vt(() => [
3263
- (b(!0), w(q, null, fe(r.value, (U, P) => (b(), _e(Ei, {
3263
+ (b(!0), w(q, null, fe(r.value, (U, P) => (b(), _e(Ai, {
3264
3264
  key: U,
3265
3265
  "page-idx": e.pageIdx,
3266
3266
  "field-idx": P,
@@ -3269,7 +3269,7 @@ const Tn = [
3269
3269
  ]),
3270
3270
  _: 1
3271
3271
  }, 8, ["modelValue"]),
3272
- r.value.length === 0 ? (b(), w("div", zi, [...f[6] || (f[6] = [
3272
+ r.value.length === 0 ? (b(), w("div", Mi, [...f[6] || (f[6] = [
3273
3273
  s("co-icon", {
3274
3274
  name: "plus",
3275
3275
  size: "20"
@@ -3279,7 +3279,7 @@ const Tn = [
3279
3279
  ], 32)
3280
3280
  ], 2)) : V("", !0);
3281
3281
  }
3282
- }), Fi = /* @__PURE__ */ $e(Mi, [["__scopeId", "data-v-f062f2e6"]]), Ri = { class: "canvas__pages" }, Li = /* @__PURE__ */ Ee({
3282
+ }), Ri = /* @__PURE__ */ $e(Fi, [["__scopeId", "data-v-f062f2e6"]]), Li = { class: "canvas__pages" }, qi = /* @__PURE__ */ Ee({
3283
3283
  __name: "FieldCanvas",
3284
3284
  setup(e) {
3285
3285
  const n = Be(), t = A(() => uo(n.resolvedTheme)), l = A(() => n.data.mode === "quiz"), o = A(() => l.value ? "Quiz title…" : "Untitled form"), r = A(() => l.value ? "Quiz description (optional)" : "Add a description (optional)"), u = ol("titleError", A(() => !1)), d = A(() => u.value && !n.data.title?.trim()), i = A(() => ({
@@ -3320,8 +3320,8 @@ const Tn = [
3320
3320
  "onUpdate:modelValue": C[1] || (C[1] = (O) => v(n).setDescription(O))
3321
3321
  }, null, 8, ["model-value", "placeholder"])
3322
3322
  ], 2)),
3323
- s("div", Ri, [
3324
- (b(!0), w(q, null, fe(v(n).data.pages, (O, D) => (b(), _e(Fi, {
3323
+ s("div", Li, [
3324
+ (b(!0), w(q, null, fe(v(n).data.pages, (O, D) => (b(), _e(Ri, {
3325
3325
  key: v(n).data.pages[D].name + "-" + D,
3326
3326
  "page-idx": D
3327
3327
  }, null, 8, ["page-idx"]))), 128))
@@ -3340,10 +3340,10 @@ const Tn = [
3340
3340
  ], 16)
3341
3341
  ], 4));
3342
3342
  }
3343
- }), qi = /* @__PURE__ */ $e(Li, [["__scopeId", "data-v-25814103"]]), ji = { class: "props" }, Bi = { class: "props__head" }, Vi = { class: "props__title" }, Ui = { class: "props__subtitle" }, Yi = { class: "props__body" }, Xi = { class: "row" }, Hi = { class: "seg" }, Ji = { class: "row" }, Wi = { class: "row__label" }, Gi = { class: "row" }, Qi = { class: "accent" }, Zi = ["title", "onClick"], Ki = {
3343
+ }), ji = /* @__PURE__ */ $e(qi, [["__scopeId", "data-v-25814103"]]), Bi = { class: "props" }, Vi = { class: "props__head" }, Ui = { class: "props__title" }, Yi = { class: "props__subtitle" }, Xi = { class: "props__body" }, Hi = { class: "row" }, Ji = { class: "seg" }, Wi = { class: "row" }, Gi = { class: "row__label" }, Qi = { class: "row" }, Zi = { class: "accent" }, Ki = ["title", "onClick"], er = {
3344
3344
  key: 4,
3345
3345
  class: "row"
3346
- }, er = ["value"], tr = { class: "props__foot" }, nr = { class: "props__body" }, lr = { class: "props__body" }, or = /* @__PURE__ */ Ee({
3346
+ }, tr = ["value"], nr = { class: "props__foot" }, lr = { class: "props__body" }, or = { class: "props__body" }, ar = /* @__PURE__ */ Ee({
3347
3347
  __name: "PropertiesPanel",
3348
3348
  setup(e) {
3349
3349
  const n = [
@@ -3419,10 +3419,10 @@ const Tn = [
3419
3419
  /^#[0-9a-fA-F]{3,8}$/.test(c) && p.setTheme({ accent: "custom", accentHex: c });
3420
3420
  }
3421
3421
  const Q = A(() => O.value === "form" ? "Form" : O.value === "page" ? "Page" : "Field"), K = A(() => O.value === "form" ? p.data.title || "Untitled form" : O.value === "page" ? D.value?.name ?? "" : U.value);
3422
- return (L, c) => (b(), w("div", ji, [
3423
- s("header", Bi, [
3424
- s("div", Vi, te(Q.value), 1),
3425
- s("div", Ui, te(K.value), 1)
3422
+ return (L, c) => (b(), w("div", Bi, [
3423
+ s("header", Vi, [
3424
+ s("div", Ui, te(Q.value), 1),
3425
+ s("div", Yi, te(K.value), 1)
3426
3426
  ]),
3427
3427
  O.value === "form" ? (b(), w(q, { key: 0 }, [
3428
3428
  T(v(an), {
@@ -3441,11 +3441,11 @@ const Tn = [
3441
3441
  ]),
3442
3442
  _: 1
3443
3443
  }, 8, ["value"]),
3444
- s("div", Yi, [
3444
+ s("div", Xi, [
3445
3445
  P.value === "general" ? (b(), w(q, { key: 0 }, [
3446
- s("div", Xi, [
3446
+ s("div", Hi, [
3447
3447
  c[39] || (c[39] = s("div", { class: "row__label" }, "Color scheme", -1)),
3448
- s("div", Hi, [
3448
+ s("div", Ji, [
3449
3449
  s("button", {
3450
3450
  class: we(["seg__btn", { "is-active": W.value.colorScheme === "light" }]),
3451
3451
  onClick: c[1] || (c[1] = (y) => $("colorScheme", "light"))
@@ -3532,8 +3532,8 @@ const Tn = [
3532
3532
  value: W.value.background.imageAttachment,
3533
3533
  onCoChange: c[12] || (c[12] = (y) => B("background", "imageAttachment", z(y)))
3534
3534
  }, null, 8, ["options", "value"]),
3535
- s("div", Ji, [
3536
- s("div", Wi, "Opacity (" + te(W.value.background.opacity) + "%)", 1),
3535
+ s("div", Wi, [
3536
+ s("div", Gi, "Opacity (" + te(W.value.background.opacity) + "%)", 1),
3537
3537
  T(v(dl), {
3538
3538
  min: 0,
3539
3539
  max: 100,
@@ -3545,9 +3545,9 @@ const Tn = [
3545
3545
  ])
3546
3546
  ], 64)) : V("", !0),
3547
3547
  P.value === "appearance" ? (b(), w(q, { key: 3 }, [
3548
- s("div", Gi, [
3548
+ s("div", Qi, [
3549
3549
  c[41] || (c[41] = s("div", { class: "row__label" }, "Accent", -1)),
3550
- s("div", Qi, [
3550
+ s("div", Zi, [
3551
3551
  (b(), w(q, null, fe(g, (y) => s("button", {
3552
3552
  key: y.id,
3553
3553
  class: we(["accent__chip", { "is-active": W.value.accent === y.id }]),
@@ -3557,7 +3557,7 @@ const Tn = [
3557
3557
  }, [
3558
3558
  c[40] || (c[40] = s("span", { class: "accent__chip-dot" }, null, -1)),
3559
3559
  s("span", null, te(y.label), 1)
3560
- ], 14, Zi)), 64))
3560
+ ], 14, Ki)), 64))
3561
3561
  ])
3562
3562
  ]),
3563
3563
  T(v(Y), {
@@ -3575,7 +3575,7 @@ const Tn = [
3575
3575
  onCoInput: c[15] || (c[15] = (y) => $("fontFamily", z(y) || void 0))
3576
3576
  }, null, 8, ["value"])
3577
3577
  ], 64)) : V("", !0),
3578
- P.value === "advanced" ? (b(), w("div", Ki, [
3578
+ P.value === "advanced" ? (b(), w("div", er, [
3579
3579
  c[42] || (c[42] = s("div", { class: "row__label" }, "Custom CSS", -1)),
3580
3580
  s("textarea", {
3581
3581
  class: "codebox",
@@ -3584,7 +3584,7 @@ const Tn = [
3584
3584
  placeholder: '.co-form-wizard [data-co-field="email"] co-input { ... }',
3585
3585
  value: ve.value.customCss || "",
3586
3586
  onInput: c[16] || (c[16] = (y) => $("customCss", y.target.value || void 0))
3587
- }, null, 40, er),
3587
+ }, null, 40, tr),
3588
3588
  c[43] || (c[43] = s("p", { class: "props__hint" }, [
3589
3589
  lt(" Injected scoped to the form. Target fields via "),
3590
3590
  s("code", null, '[data-co-field="name"]'),
@@ -3598,7 +3598,7 @@ const Tn = [
3598
3598
  ], -1))
3599
3599
  ])) : V("", !0)
3600
3600
  ]),
3601
- s("footer", tr, [
3601
+ s("footer", nr, [
3602
3602
  T(v(Ne), {
3603
3603
  label: "Reset theme",
3604
3604
  variant: "stroke",
@@ -3624,7 +3624,7 @@ const Tn = [
3624
3624
  ]),
3625
3625
  _: 1
3626
3626
  }, 8, ["value"]),
3627
- s("div", nr, [
3627
+ s("div", lr, [
3628
3628
  ie.value === "general" ? (b(), w(q, { key: 0 }, [
3629
3629
  T(v(Y), {
3630
3630
  label: "Name (id)",
@@ -3681,7 +3681,7 @@ const Tn = [
3681
3681
  ]),
3682
3682
  _: 1
3683
3683
  }, 8, ["value"]),
3684
- s("div", lr, [
3684
+ s("div", or, [
3685
3685
  G.value === "layout" ? (b(), w(q, { key: 0 }, [
3686
3686
  C.value ? V("", !0) : (b(), _e(v(ze), {
3687
3687
  key: 0,
@@ -3777,20 +3777,20 @@ const Tn = [
3777
3777
  ], 64))
3778
3778
  ]));
3779
3779
  }
3780
- }), ar = /* @__PURE__ */ $e(or, [["__scopeId", "data-v-6436c294"]]), ir = { class: "designer__panel designer__panel--left" }, rr = { class: "designer__canvas" }, sr = ["title"], ur = ["name"], dr = { class: "designer__canvas-scroll" }, cr = {
3780
+ }), ir = /* @__PURE__ */ $e(ar, [["__scopeId", "data-v-6436c294"]]), rr = { class: "designer__panel designer__panel--left" }, sr = { class: "designer__canvas" }, ur = ["title"], dr = ["name"], cr = { class: "designer__canvas-scroll" }, pr = {
3781
3781
  key: 0,
3782
3782
  class: "designer__panel designer__panel--right"
3783
- }, pr = /* @__PURE__ */ Ee({
3783
+ }, fr = /* @__PURE__ */ Ee({
3784
3784
  __name: "DesignerTab",
3785
3785
  setup(e) {
3786
3786
  const n = Be(), t = se(!0), l = A(() => n.data.mode === "quiz");
3787
3787
  return (o, r) => (b(), w("div", {
3788
3788
  class: we(["designer", { "designer--left-collapsed": !t.value, "designer--no-right": l.value }])
3789
3789
  }, [
3790
- s("aside", ir, [
3790
+ s("aside", rr, [
3791
3791
  T(wo)
3792
3792
  ]),
3793
- s("section", rr, [
3793
+ s("section", sr, [
3794
3794
  s("button", {
3795
3795
  class: "designer__toggle-left",
3796
3796
  title: t.value ? "Hide toolbox" : "Show toolbox",
@@ -3799,14 +3799,14 @@ const Tn = [
3799
3799
  s("co-icon", {
3800
3800
  name: t.value ? "caret-left" : "list",
3801
3801
  size: 16
3802
- }, null, 8, ur)
3803
- ], 8, sr),
3804
- s("div", dr, [
3805
- T(qi)
3802
+ }, null, 8, dr)
3803
+ ], 8, ur),
3804
+ s("div", cr, [
3805
+ T(ji)
3806
3806
  ])
3807
3807
  ]),
3808
- l.value ? V("", !0) : (b(), w("aside", cr, [
3809
- T(ar, null, {
3808
+ l.value ? V("", !0) : (b(), w("aside", pr, [
3809
+ T(ir, null, {
3810
3810
  "field-layout-extra": vt((u) => [
3811
3811
  Je(o.$slots, "field-layout-extra", sl(ul(u)), void 0, !0)
3812
3812
  ]),
@@ -3815,10 +3815,10 @@ const Tn = [
3815
3815
  ]))
3816
3816
  ], 2));
3817
3817
  }
3818
- }), fr = /* @__PURE__ */ $e(pr, [["__scopeId", "data-v-9b79fb47"]]), vr = { class: "json-tab" }, mr = { class: "json-tab__bar" }, gr = {
3818
+ }), vr = /* @__PURE__ */ $e(fr, [["__scopeId", "data-v-9b79fb47"]]), mr = { class: "json-tab" }, gr = { class: "json-tab__bar" }, hr = {
3819
3819
  key: 0,
3820
3820
  class: "json-tab__err"
3821
- }, hr = /* @__PURE__ */ Ee({
3821
+ }, br = /* @__PURE__ */ Ee({
3822
3822
  __name: "JsonTab",
3823
3823
  setup(e) {
3824
3824
  const n = Be(), t = se(""), l = se(null), o = A(() => JSON.stringify(n.exported, null, 2));
@@ -3836,8 +3836,8 @@ const Tn = [
3836
3836
  function u() {
3837
3837
  t.value = o.value, l.value = null;
3838
3838
  }
3839
- return (d, i) => (b(), w("div", vr, [
3840
- s("div", mr, [
3839
+ return (d, i) => (b(), w("div", mr, [
3840
+ s("div", gr, [
3841
3841
  T(v(Ne), {
3842
3842
  label: "Apply",
3843
3843
  variant: "primary",
@@ -3850,7 +3850,7 @@ const Tn = [
3850
3850
  size: "s",
3851
3851
  onClick: u
3852
3852
  }),
3853
- l.value ? (b(), w("span", gr, te(l.value), 1)) : V("", !0),
3853
+ l.value ? (b(), w("span", hr, te(l.value), 1)) : V("", !0),
3854
3854
  i[1] || (i[1] = s("span", { class: "json-tab__hint" }, " Plain editor — Monaco integration is a follow-up. ", -1))
3855
3855
  ]),
3856
3856
  _n(s("textarea", {
@@ -3862,13 +3862,13 @@ const Tn = [
3862
3862
  ])
3863
3863
  ]));
3864
3864
  }
3865
- }), br = /* @__PURE__ */ $e(hr, [["__scopeId", "data-v-6f8a102d"]]), _r = { class: "preview" }, yr = { class: "preview__pane preview__pane--form" }, Cr = ["schema", "theme", "validate-on"], wr = ["schema", "theme", "validate-on"], kr = { class: "preview__pane preview__pane--side" }, Sr = {
3865
+ }), _r = /* @__PURE__ */ $e(br, [["__scopeId", "data-v-6f8a102d"]]), yr = { class: "preview" }, Cr = { class: "preview__pane preview__pane--form" }, wr = ["schema", "theme", "validate-on"], kr = ["schema", "theme", "validate-on"], Sr = { class: "preview__pane preview__pane--side" }, xr = {
3866
3866
  key: 0,
3867
3867
  class: "preview__json"
3868
- }, xr = {
3868
+ }, Tr = {
3869
3869
  key: 1,
3870
3870
  class: "preview__empty"
3871
- }, Tr = /* @__PURE__ */ Ee({
3871
+ }, Dr = /* @__PURE__ */ Ee({
3872
3872
  __name: "PreviewTab",
3873
3873
  setup(e) {
3874
3874
  const n = Be(), t = A(() => n.exported), l = A(() => yn(t.value)), o = A(() => JSON.stringify(t.value)), r = A(() => {
@@ -3879,8 +3879,8 @@ const Tn = [
3879
3879
  const k = i.detail;
3880
3880
  u.value = k?.values ?? null;
3881
3881
  }
3882
- return (i, k) => (b(), w("div", _r, [
3883
- s("div", yr, [
3882
+ return (i, k) => (b(), w("div", yr, [
3883
+ s("div", Cr, [
3884
3884
  l.value ? (b(), w("co-form-wizard", {
3885
3885
  key: o.value + (r.value ?? ""),
3886
3886
  schema: o.value,
@@ -3889,7 +3889,7 @@ const Tn = [
3889
3889
  columns: "1",
3890
3890
  "validate-on": v(n).data.mode === "quiz" ? "submit" : "change",
3891
3891
  "on:coSubmit": d
3892
- }, null, 40, Cr)) : (b(), w("co-form", {
3892
+ }, null, 40, wr)) : (b(), w("co-form", {
3893
3893
  key: o.value + (r.value ?? ""),
3894
3894
  schema: o.value,
3895
3895
  theme: r.value,
@@ -3897,21 +3897,21 @@ const Tn = [
3897
3897
  columns: "2",
3898
3898
  "validate-on": v(n).data.mode === "quiz" ? "submit" : "change",
3899
3899
  "on:coSubmit": d
3900
- }, null, 40, wr))
3900
+ }, null, 40, kr))
3901
3901
  ]),
3902
- s("aside", kr, [
3902
+ s("aside", Sr, [
3903
3903
  k[0] || (k[0] = s("div", { class: "preview__pane-head" }, [
3904
3904
  s("h3", { class: "preview__title" }, "Last submit"),
3905
3905
  s("p", { class: "preview__desc" }, "Fill the form and press Submit to see the payload.")
3906
3906
  ], -1)),
3907
- u.value ? (b(), w("pre", Sr, te(JSON.stringify(u.value, null, 2)), 1)) : (b(), w("div", xr, "No submissions yet."))
3907
+ u.value ? (b(), w("pre", xr, te(JSON.stringify(u.value, null, 2)), 1)) : (b(), w("div", Tr, "No submissions yet."))
3908
3908
  ])
3909
3909
  ]));
3910
3910
  }
3911
- }), Dr = /* @__PURE__ */ $e(Tr, [["__scopeId", "data-v-20f01c06"]]), Ir = { class: "shell" }, Or = { class: "shell__topbar" }, Er = {
3911
+ }), Ir = /* @__PURE__ */ $e(Dr, [["__scopeId", "data-v-20f01c06"]]), Or = { class: "shell" }, Er = { class: "shell__topbar" }, Ar = {
3912
3912
  key: 0,
3913
3913
  class: "shell__brand"
3914
- }, Ar = { class: "shell__brand-title" }, Nr = { class: "shell__tabs" }, Pr = ["onClick"], $r = { class: "shell__actions" }, zr = { class: "shell__content" }, Mr = /* @__PURE__ */ Ee({
3914
+ }, Nr = { class: "shell__brand-title" }, Pr = { class: "shell__tabs" }, $r = ["onClick"], zr = { class: "shell__actions" }, Mr = { class: "shell__content" }, Fr = /* @__PURE__ */ Ee({
3915
3915
  __name: "CobaltFormBuilder",
3916
3916
  props: {
3917
3917
  modelValue: { default: () => ({}) },
@@ -3983,23 +3983,23 @@ const Tn = [
3983
3983
  }
3984
3984
  (f.metaKey || f.ctrlKey) && (f.key === "z" && !f.shiftKey ? (f.preventDefault(), C.undo()) : (f.key === "z" && f.shiftKey || f.key === "y") && (f.preventDefault(), C.redo()));
3985
3985
  }
3986
- return (f, U) => (b(), w("div", Ir, [
3986
+ return (f, U) => (b(), w("div", Or, [
3987
3987
  Je(f.$slots, "before", {}, void 0, !0),
3988
- s("header", Or, [
3988
+ s("header", Er, [
3989
3989
  Je(f.$slots, "brand", {}, () => [
3990
- e.hideBrand ? V("", !0) : (b(), w("div", Er, [
3990
+ e.hideBrand ? V("", !0) : (b(), w("div", Ar, [
3991
3991
  U[2] || (U[2] = s("div", { class: "shell__brand-mark" }, "CF", -1)),
3992
- s("h1", Ar, te(e.brandLabel), 1)
3992
+ s("h1", Nr, te(e.brandLabel), 1)
3993
3993
  ]))
3994
3994
  ], !0),
3995
- s("nav", Nr, [
3995
+ s("nav", Pr, [
3996
3996
  (b(!0), w(q, null, fe(d.value, (P) => (b(), w("button", {
3997
3997
  key: P.id,
3998
3998
  class: we(["shell__tab", { "is-active": g.value === P.id }]),
3999
3999
  onClick: (ie) => g.value = P.id
4000
- }, te(P.label), 11, Pr))), 128))
4000
+ }, te(P.label), 11, $r))), 128))
4001
4001
  ]),
4002
- s("div", $r, [
4002
+ s("div", zr, [
4003
4003
  Je(f.$slots, "actions", { store: v(C) }, () => [
4004
4004
  T(v(Re), {
4005
4005
  icon: "arrow-counter-clockwise",
@@ -4020,8 +4020,8 @@ const Tn = [
4020
4020
  ], !0)
4021
4021
  ])
4022
4022
  ]),
4023
- s("main", zr, [
4024
- _n(T(fr, null, {
4023
+ s("main", Mr, [
4024
+ _n(T(vr, null, {
4025
4025
  "field-layout-extra": vt((P) => [
4026
4026
  Je(f.$slots, "field-layout-extra", sl(ul(P)), void 0, !0)
4027
4027
  ]),
@@ -4029,8 +4029,8 @@ const Tn = [
4029
4029
  }, 512), [
4030
4030
  [Fn, g.value === "designer"]
4031
4031
  ]),
4032
- g.value === "preview" ? (b(), _e(Dr, { key: 0 })) : V("", !0),
4033
- g.value === "json" ? (b(), _e(br, { key: 1 })) : V("", !0),
4032
+ g.value === "preview" ? (b(), _e(Ir, { key: 0 })) : V("", !0),
4033
+ g.value === "json" ? (b(), _e(_r, { key: 1 })) : V("", !0),
4034
4034
  (b(!0), w(q, null, fe(i.value, (P) => _n((b(), w("div", {
4035
4035
  key: P,
4036
4036
  class: "shell__custom-tab"
@@ -4043,8 +4043,8 @@ const Tn = [
4043
4043
  Je(f.$slots, "after", { store: v(C) }, void 0, !0)
4044
4044
  ]));
4045
4045
  }
4046
- }), Br = /* @__PURE__ */ $e(Mr, [["__scopeId", "data-v-fc0d7691"]]);
4046
+ }), Vr = /* @__PURE__ */ $e(Fr, [["__scopeId", "data-v-fc0d7691"]]);
4047
4047
  export {
4048
- Br as CobaltFormBuilder
4048
+ Vr as CobaltFormBuilder
4049
4049
  };
4050
4050
  //# sourceMappingURL=cobalt-form-builder.js.map