@bagelink/vue 1.4.5 → 1.4.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"AddressSearch.vue.d.ts","sourceRoot":"","sources":["../../src/components/AddressSearch.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsJoB,GAAG;yBACL,GAAG;4BACnB,GAAG;6BAAoC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAkD66kB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAV/klB,wBAQG"}
1
+ {"version":3,"file":"AddressSearch.vue.d.ts","sourceRoot":"","sources":["../../src/components/AddressSearch.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;wCAqDsmjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;EArChwjB;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuBsnjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;OAf/vjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -9,6 +9,7 @@ declare const _default: <T extends boolean | undefined | any[]>(__VLS_props: Non
9
9
  title?: string;
10
10
  small?: boolean;
11
11
  required?: boolean;
12
+ disabled?: boolean;
12
13
  defaultValue?: T;
13
14
  value?: any;
14
15
  }) & Partial<{}>> & import('vue').PublicProps;
@@ -1 +1 @@
1
- {"version":3,"file":"CheckInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/CheckInput.vue"],"names":[],"mappings":"yBA8FiB,CAAC,SAAS,OAAO,GAAG,SAAS,GAAG,GAAG,EAAE,EACrD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyFN,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -26,6 +26,7 @@ type __VLS_Props = {
26
26
  };
27
27
  declare function clear(): void;
28
28
  declare function save(format?: FormatType): string | undefined;
29
+ declare function fromDataURL(url: string): Promise<void> | undefined;
29
30
  declare function undo(): void;
30
31
  declare function addWaterMark(data: WaterMark): void;
31
32
  type __VLS_PublicProps = {
@@ -38,7 +39,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
38
39
  isEmpty: () => boolean | undefined;
39
40
  undo: typeof undo;
40
41
  addWaterMark: typeof addWaterMark;
41
- fromDataURL: (url: string) => Promise<void> | undefined;
42
+ fromDataURL: typeof fromDataURL;
42
43
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
44
  "update:modelValue": (value: any) => any;
44
45
  "update:file": (value: File) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"SignaturePad.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SignaturePad.vue"],"names":[],"mappings":"AAuOA,OAAO,KAAK,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAKnE,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EA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EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAA;AAEnF,KAAK,WAAW,GAAG;IAClB,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAcF,iBAAS,KAAK,SAIb;AAED,iBAAS,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,sBAGhC;AAgCD,iBAAS,WAAW,CAAC,GAAG,EAAE,MAAM,6BAQ/B;AAGD,iBAAS,IAAI,SAMZ;AAiBD,iBAAS,YAAY,CAAC,IAAI,EAAE,SAAS,QA0BpC;AAoFD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,IAAI,CAAC;CACb,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;eA5MH,OAAO;;;;AAwSpB,wBAWG"}
package/dist/index.cjs CHANGED
@@ -764,8 +764,8 @@ function onClickOutside(target, handler, options = {}) {
764
764
  if (isIOS && !_iOSWorkaround) {
765
765
  _iOSWorkaround = true;
766
766
  const listenerOptions = { passive: true };
767
- Array.from(window2.document.body.children).forEach((el) => useEventListener(el, "click", noop$1, listenerOptions));
768
- useEventListener(window2.document.documentElement, "click", noop$1, listenerOptions);
767
+ Array.from(window2.document.body.children).forEach((el) => el.addEventListener("click", noop$1, listenerOptions));
768
+ window2.document.documentElement.addEventListener("click", noop$1, listenerOptions);
769
769
  }
770
770
  let shouldListen = true;
771
771
  const shouldIgnore = (event) => {
@@ -10922,15 +10922,20 @@ const flip = function(options) {
10922
10922
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
10923
10923
  const nextPlacement = placements2[nextIndex];
10924
10924
  if (nextPlacement) {
10925
- return {
10926
- data: {
10927
- index: nextIndex,
10928
- overflows: overflowsData
10929
- },
10930
- reset: {
10931
- placement: nextPlacement
10932
- }
10933
- };
10925
+ var _overflowsData$;
10926
+ const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
10927
+ const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
10928
+ if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
10929
+ return {
10930
+ data: {
10931
+ index: nextIndex,
10932
+ overflows: overflowsData
10933
+ },
10934
+ reset: {
10935
+ placement: nextPlacement
10936
+ }
10937
+ };
10938
+ }
10934
10939
  }
10935
10940
  let resetPlacement = (_overflowsData$filter = overflowsData.filter((d2) => d2.overflows[0] <= 0).sort((a2, b2) => a2.overflows[1] - b2.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
10936
10941
  if (!resetPlacement) {
@@ -14186,7 +14191,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14186
14191
  });
14187
14192
  const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-73f1d9ad"]]);
14188
14193
  const _hoisted_1$L = ["title"];
14189
- const _hoisted_2$A = ["id", "value", "required"];
14194
+ const _hoisted_2$A = ["id", "disabled", "value", "required"];
14190
14195
  const _hoisted_3$v = ["for"];
14191
14196
  const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14192
14197
  __name: "CheckInput",
@@ -14196,6 +14201,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14196
14201
  title: {},
14197
14202
  small: { type: Boolean },
14198
14203
  required: { type: Boolean },
14204
+ disabled: { type: Boolean },
14199
14205
  defaultValue: { default: false },
14200
14206
  value: {}
14201
14207
  }, {
@@ -14217,6 +14223,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14217
14223
  vue.withDirectives(vue.createElementVNode("input", {
14218
14224
  id: inputId.value + _ctx.value,
14219
14225
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
14226
+ disabled: _ctx.disabled,
14220
14227
  value: _ctx.value,
14221
14228
  required: _ctx.required,
14222
14229
  type: "checkbox",
@@ -14235,7 +14242,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14235
14242
  };
14236
14243
  }
14237
14244
  });
14238
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-722373de"]]);
14245
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-1c41dd4f"]]);
14239
14246
  function useHighlight() {
14240
14247
  const hljs = vue.ref(null);
14241
14248
  const loaded = vue.ref(false);
@@ -17697,9 +17704,13 @@ function createCommandRegistry(state2) {
17697
17704
  }, (state22) => state22.isCodeView)
17698
17705
  };
17699
17706
  const mediaCommands = {
17700
- image: createCommand("Insert Image", (state22) => state22.modal && insertImage(state22.modal, state22)),
17707
+ image: createCommand("Insert Image", (state22) => {
17708
+ state22.modal && insertImage(state22.modal, state22);
17709
+ }),
17701
17710
  link: createCommand("Insert Link", (state22) => state22.modal && state22.range && insertLink(state22.modal, state22)),
17702
- embed: createCommand("Insert Embed", (state22) => state22.modal && insertEmbed(state22.modal, state22))
17711
+ embed: createCommand("Insert Embed", (state22) => {
17712
+ state22.modal && insertEmbed(state22.modal, state22);
17713
+ })
17703
17714
  };
17704
17715
  const otherCommands = {
17705
17716
  clear: createCommand("Clear Formatting", (state22) => {
@@ -18586,7 +18597,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18586
18597
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
18587
18598
  vue.createTextVNode(" Clear Session ")
18588
18599
  ])),
18589
- _: 1
18600
+ _: 1,
18601
+ __: [3]
18590
18602
  }, 8, ["onClick"]),
18591
18603
  vue.createVNode(vue.unref(Btn), {
18592
18604
  thin: "",
@@ -18597,7 +18609,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18597
18609
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
18598
18610
  vue.createTextVNode(" Download Log ")
18599
18611
  ])),
18600
- _: 1
18612
+ _: 1,
18613
+ __: [4]
18601
18614
  }, 8, ["onClick"]),
18602
18615
  vue.createVNode(vue.unref(Btn), {
18603
18616
  thin: "",
@@ -18611,7 +18624,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
18611
18624
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
18612
18625
  vue.createTextVNode(" Copy Log ")
18613
18626
  ])),
18614
- _: 1
18627
+ _: 1,
18628
+ __: [5]
18615
18629
  })
18616
18630
  ])) : vue.createCommentVNode("", true)
18617
18631
  ], 2)
@@ -19575,22 +19589,32 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
19575
19589
  if (props2.format === "image/svg+xml") {
19576
19590
  fileData.value = new File([data2], "signature.svg", { type: "image/svg+xml" });
19577
19591
  } else {
19578
- const base64Data = data2.split(",")[1];
19579
- const byteCharacters = atob(base64Data);
19580
- const byteNumbers = Array.from({ length: byteCharacters.length });
19581
- for (let i2 = 0; i2 < byteCharacters.length; i2++) {
19582
- byteNumbers[i2] = byteCharacters.charCodeAt(i2);
19592
+ try {
19593
+ const base64Data = data2.split(",")[1];
19594
+ if (!base64Data) throw new Error("Invalid data URL format");
19595
+ const byteCharacters = atob(base64Data);
19596
+ const byteArray = new Uint8Array(
19597
+ Array.from(byteCharacters, (char) => char.charCodeAt(0))
19598
+ );
19599
+ const mimeType = props2.format || "image/png";
19600
+ const blob = new Blob([byteArray], { type: mimeType });
19601
+ const extension = mimeType.split("/")[1];
19602
+ fileData.value = new File([blob], `signature.${extension}`, { type: mimeType });
19603
+ } catch (error) {
19604
+ console.error("Error saving signature file:", error);
19583
19605
  }
19584
- const byteArray = new Uint8Array(byteNumbers);
19585
- const blob = new Blob([byteArray], { type: props2.format || "image/png" });
19586
- const extension = (props2.format || "image/png").split("/")[1];
19587
- fileData.value = new File([blob], `signature.${extension}`, { type: props2.format || "image/png" });
19588
19606
  }
19589
19607
  }
19590
- const fromDataURL = (url) => {
19591
- var _a;
19592
- return (_a = sig.value) == null ? void 0 : _a.fromDataURL(url);
19593
- };
19608
+ function fromDataURL(url) {
19609
+ var _a, _b, _c;
19610
+ return (_c = sig.value) == null ? void 0 : _c.fromDataURL(url, {
19611
+ height: (_a = vCanvas.value) == null ? void 0 : _a.height,
19612
+ width: (_b = vCanvas.value) == null ? void 0 : _b.width,
19613
+ ratio: props2.ratio,
19614
+ xOffset: 0,
19615
+ yOffset: 0
19616
+ });
19617
+ }
19594
19618
  const isEmpty = () => {
19595
19619
  var _a;
19596
19620
  return (_a = sig.value) == null ? void 0 : _a.isEmpty();
@@ -19656,8 +19680,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
19656
19680
  return new Promise((resolve) => {
19657
19681
  reader.onload = (e) => {
19658
19682
  var _a;
19659
- const dataUrl = (_a = e.target) == null ? void 0 : _a.result;
19660
- fromDataURL(dataUrl);
19683
+ const dataUrl = String((_a = e.target) == null ? void 0 : _a.result);
19684
+ void fromDataURL(dataUrl);
19661
19685
  _isEmpty.value = false;
19662
19686
  sigData.value = dataUrl;
19663
19687
  resolve(true);
@@ -19679,7 +19703,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
19679
19703
  c2.width = props2.width ? Number(props2.width.replaceAll("px", "")) : width;
19680
19704
  c2.height = props2.height ? Number(props2.height.replaceAll("px", "")) : width * ratio;
19681
19705
  clear();
19682
- if (!props2.clearOnResize && url !== void 0) fromDataURL(url);
19706
+ if (!props2.clearOnResize && url !== void 0) void fromDataURL(url);
19683
19707
  if (props2.waterMark) addWaterMark(props2.waterMark);
19684
19708
  }
19685
19709
  window.addEventListener("resize", () => {
@@ -22355,7 +22379,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
22355
22379
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
22356
22380
  vue.createTextVNode(" New ")
22357
22381
  ])),
22358
- _: 1
22382
+ _: 1,
22383
+ __: [1]
22359
22384
  })
22360
22385
  ], 8, _hoisted_1$t);
22361
22386
  };
@@ -33590,7 +33615,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33590
33615
  _cache[30] || (_cache[30] = vue.createElementVNode("u", null, "or click to select a file", -1)),
33591
33616
  _cache[31] || (_cache[31] = vue.createElementVNode("p", { class: "txt-12 color-gray" }, " Accepts .xlsx, .xls, and .csv files ", -1))
33592
33617
  ]),
33593
- _: 1
33618
+ _: 1,
33619
+ __: [29, 30, 31]
33594
33620
  })
33595
33621
  ]),
33596
33622
  _: 1
@@ -33721,7 +33747,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33721
33747
  default: vue.withCtx(() => _cache[34] || (_cache[34] = [
33722
33748
  vue.createTextVNode(" Preview Data ")
33723
33749
  ])),
33724
- _: 1
33750
+ _: 1,
33751
+ __: [34]
33725
33752
  })
33726
33753
  ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, _cache[35] || (_cache[35] = [
33727
33754
  vue.createElementVNode("div", { class: "mapping-incomplete-message" }, " Please map the required fields to continue ", -1)
@@ -33857,7 +33884,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33857
33884
  _cache[40] || (_cache[40] = vue.createElementVNode("p", null, "or click to select a file", -1)),
33858
33885
  _cache[41] || (_cache[41] = vue.createElementVNode("p", { class: "txt-12 color-gray" }, " Accepts .xlsx, .xls, and .csv files ", -1))
33859
33886
  ]),
33860
- _: 1
33887
+ _: 1,
33888
+ __: [39, 40, 41]
33861
33889
  })
33862
33890
  ]),
33863
33891
  _: 1
@@ -33943,7 +33971,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33943
33971
  default: vue.withCtx(() => _cache[42] || (_cache[42] = [
33944
33972
  vue.createTextVNode(" Transform ")
33945
33973
  ])),
33946
- _: 2
33974
+ _: 2,
33975
+ __: [42]
33947
33976
  }, 1032, ["onClick"])
33948
33977
  ])
33949
33978
  ])
@@ -34117,7 +34146,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
34117
34146
  default: vue.withCtx(() => _cache[48] || (_cache[48] = [
34118
34147
  vue.createTextVNode(" Close ")
34119
34148
  ])),
34120
- _: 1
34149
+ _: 1,
34150
+ __: [48]
34121
34151
  })
34122
34152
  ])
34123
34153
  ])) : vue.createCommentVNode("", true)
@@ -34285,7 +34315,8 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
34285
34315
  _cache[0] || (_cache[0] = vue.createElementVNode("div", { style: { "flex-grow": "1" } }, null, -1)),
34286
34316
  vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
34287
34317
  ]),
34288
- _: 3
34318
+ _: 3,
34319
+ __: [0]
34289
34320
  })
34290
34321
  ], 2);
34291
34322
  };
@@ -34672,7 +34703,8 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
34672
34703
  }, null, 8, _hoisted_5$5)) : vue.createCommentVNode("", true)
34673
34704
  ])
34674
34705
  ]),
34675
- _: 3
34706
+ _: 3,
34707
+ __: [0]
34676
34708
  }, 16, ["class", "onClick"])), [
34677
34709
  [_directive_ripple, isClickable.value]
34678
34710
  ]);
package/dist/index.mjs CHANGED
@@ -762,8 +762,8 @@ function onClickOutside(target, handler, options = {}) {
762
762
  if (isIOS && !_iOSWorkaround) {
763
763
  _iOSWorkaround = true;
764
764
  const listenerOptions = { passive: true };
765
- Array.from(window2.document.body.children).forEach((el) => useEventListener(el, "click", noop$1, listenerOptions));
766
- useEventListener(window2.document.documentElement, "click", noop$1, listenerOptions);
765
+ Array.from(window2.document.body.children).forEach((el) => el.addEventListener("click", noop$1, listenerOptions));
766
+ window2.document.documentElement.addEventListener("click", noop$1, listenerOptions);
767
767
  }
768
768
  let shouldListen = true;
769
769
  const shouldIgnore = (event) => {
@@ -10920,15 +10920,20 @@ const flip = function(options) {
10920
10920
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
10921
10921
  const nextPlacement = placements2[nextIndex];
10922
10922
  if (nextPlacement) {
10923
- return {
10924
- data: {
10925
- index: nextIndex,
10926
- overflows: overflowsData
10927
- },
10928
- reset: {
10929
- placement: nextPlacement
10930
- }
10931
- };
10923
+ var _overflowsData$;
10924
+ const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
10925
+ const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
10926
+ if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
10927
+ return {
10928
+ data: {
10929
+ index: nextIndex,
10930
+ overflows: overflowsData
10931
+ },
10932
+ reset: {
10933
+ placement: nextPlacement
10934
+ }
10935
+ };
10936
+ }
10932
10937
  }
10933
10938
  let resetPlacement = (_overflowsData$filter = overflowsData.filter((d2) => d2.overflows[0] <= 0).sort((a2, b2) => a2.overflows[1] - b2.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
10934
10939
  if (!resetPlacement) {
@@ -14184,7 +14189,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14184
14189
  });
14185
14190
  const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-73f1d9ad"]]);
14186
14191
  const _hoisted_1$L = ["title"];
14187
- const _hoisted_2$A = ["id", "value", "required"];
14192
+ const _hoisted_2$A = ["id", "disabled", "value", "required"];
14188
14193
  const _hoisted_3$v = ["for"];
14189
14194
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
14190
14195
  __name: "CheckInput",
@@ -14194,6 +14199,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14194
14199
  title: {},
14195
14200
  small: { type: Boolean },
14196
14201
  required: { type: Boolean },
14202
+ disabled: { type: Boolean },
14197
14203
  defaultValue: { default: false },
14198
14204
  value: {}
14199
14205
  }, {
@@ -14215,6 +14221,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14215
14221
  withDirectives(createElementVNode("input", {
14216
14222
  id: inputId.value + _ctx.value,
14217
14223
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
14224
+ disabled: _ctx.disabled,
14218
14225
  value: _ctx.value,
14219
14226
  required: _ctx.required,
14220
14227
  type: "checkbox",
@@ -14233,7 +14240,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14233
14240
  };
14234
14241
  }
14235
14242
  });
14236
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-722373de"]]);
14243
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-1c41dd4f"]]);
14237
14244
  function useHighlight() {
14238
14245
  const hljs = ref(null);
14239
14246
  const loaded = ref(false);
@@ -17695,9 +17702,13 @@ function createCommandRegistry(state2) {
17695
17702
  }, (state22) => state22.isCodeView)
17696
17703
  };
17697
17704
  const mediaCommands = {
17698
- image: createCommand("Insert Image", (state22) => state22.modal && insertImage(state22.modal, state22)),
17705
+ image: createCommand("Insert Image", (state22) => {
17706
+ state22.modal && insertImage(state22.modal, state22);
17707
+ }),
17699
17708
  link: createCommand("Insert Link", (state22) => state22.modal && state22.range && insertLink(state22.modal, state22)),
17700
- embed: createCommand("Insert Embed", (state22) => state22.modal && insertEmbed(state22.modal, state22))
17709
+ embed: createCommand("Insert Embed", (state22) => {
17710
+ state22.modal && insertEmbed(state22.modal, state22);
17711
+ })
17701
17712
  };
17702
17713
  const otherCommands = {
17703
17714
  clear: createCommand("Clear Formatting", (state22) => {
@@ -18584,7 +18595,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18584
18595
  default: withCtx(() => _cache[3] || (_cache[3] = [
18585
18596
  createTextVNode(" Clear Session ")
18586
18597
  ])),
18587
- _: 1
18598
+ _: 1,
18599
+ __: [3]
18588
18600
  }, 8, ["onClick"]),
18589
18601
  createVNode(unref(Btn), {
18590
18602
  thin: "",
@@ -18595,7 +18607,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18595
18607
  default: withCtx(() => _cache[4] || (_cache[4] = [
18596
18608
  createTextVNode(" Download Log ")
18597
18609
  ])),
18598
- _: 1
18610
+ _: 1,
18611
+ __: [4]
18599
18612
  }, 8, ["onClick"]),
18600
18613
  createVNode(unref(Btn), {
18601
18614
  thin: "",
@@ -18609,7 +18622,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18609
18622
  default: withCtx(() => _cache[5] || (_cache[5] = [
18610
18623
  createTextVNode(" Copy Log ")
18611
18624
  ])),
18612
- _: 1
18625
+ _: 1,
18626
+ __: [5]
18613
18627
  })
18614
18628
  ])) : createCommentVNode("", true)
18615
18629
  ], 2)
@@ -19573,22 +19587,32 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19573
19587
  if (props2.format === "image/svg+xml") {
19574
19588
  fileData.value = new File([data2], "signature.svg", { type: "image/svg+xml" });
19575
19589
  } else {
19576
- const base64Data = data2.split(",")[1];
19577
- const byteCharacters = atob(base64Data);
19578
- const byteNumbers = Array.from({ length: byteCharacters.length });
19579
- for (let i2 = 0; i2 < byteCharacters.length; i2++) {
19580
- byteNumbers[i2] = byteCharacters.charCodeAt(i2);
19590
+ try {
19591
+ const base64Data = data2.split(",")[1];
19592
+ if (!base64Data) throw new Error("Invalid data URL format");
19593
+ const byteCharacters = atob(base64Data);
19594
+ const byteArray = new Uint8Array(
19595
+ Array.from(byteCharacters, (char) => char.charCodeAt(0))
19596
+ );
19597
+ const mimeType = props2.format || "image/png";
19598
+ const blob = new Blob([byteArray], { type: mimeType });
19599
+ const extension = mimeType.split("/")[1];
19600
+ fileData.value = new File([blob], `signature.${extension}`, { type: mimeType });
19601
+ } catch (error) {
19602
+ console.error("Error saving signature file:", error);
19581
19603
  }
19582
- const byteArray = new Uint8Array(byteNumbers);
19583
- const blob = new Blob([byteArray], { type: props2.format || "image/png" });
19584
- const extension = (props2.format || "image/png").split("/")[1];
19585
- fileData.value = new File([blob], `signature.${extension}`, { type: props2.format || "image/png" });
19586
19604
  }
19587
19605
  }
19588
- const fromDataURL = (url) => {
19589
- var _a;
19590
- return (_a = sig.value) == null ? void 0 : _a.fromDataURL(url);
19591
- };
19606
+ function fromDataURL(url) {
19607
+ var _a, _b, _c;
19608
+ return (_c = sig.value) == null ? void 0 : _c.fromDataURL(url, {
19609
+ height: (_a = vCanvas.value) == null ? void 0 : _a.height,
19610
+ width: (_b = vCanvas.value) == null ? void 0 : _b.width,
19611
+ ratio: props2.ratio,
19612
+ xOffset: 0,
19613
+ yOffset: 0
19614
+ });
19615
+ }
19592
19616
  const isEmpty = () => {
19593
19617
  var _a;
19594
19618
  return (_a = sig.value) == null ? void 0 : _a.isEmpty();
@@ -19654,8 +19678,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19654
19678
  return new Promise((resolve) => {
19655
19679
  reader.onload = (e) => {
19656
19680
  var _a;
19657
- const dataUrl = (_a = e.target) == null ? void 0 : _a.result;
19658
- fromDataURL(dataUrl);
19681
+ const dataUrl = String((_a = e.target) == null ? void 0 : _a.result);
19682
+ void fromDataURL(dataUrl);
19659
19683
  _isEmpty.value = false;
19660
19684
  sigData.value = dataUrl;
19661
19685
  resolve(true);
@@ -19677,7 +19701,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19677
19701
  c2.width = props2.width ? Number(props2.width.replaceAll("px", "")) : width;
19678
19702
  c2.height = props2.height ? Number(props2.height.replaceAll("px", "")) : width * ratio;
19679
19703
  clear();
19680
- if (!props2.clearOnResize && url !== void 0) fromDataURL(url);
19704
+ if (!props2.clearOnResize && url !== void 0) void fromDataURL(url);
19681
19705
  if (props2.waterMark) addWaterMark(props2.waterMark);
19682
19706
  }
19683
19707
  window.addEventListener("resize", () => {
@@ -22353,7 +22377,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
22353
22377
  default: withCtx(() => _cache[1] || (_cache[1] = [
22354
22378
  createTextVNode(" New ")
22355
22379
  ])),
22356
- _: 1
22380
+ _: 1,
22381
+ __: [1]
22357
22382
  })
22358
22383
  ], 8, _hoisted_1$t);
22359
22384
  };
@@ -33588,7 +33613,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33588
33613
  _cache[30] || (_cache[30] = createElementVNode("u", null, "or click to select a file", -1)),
33589
33614
  _cache[31] || (_cache[31] = createElementVNode("p", { class: "txt-12 color-gray" }, " Accepts .xlsx, .xls, and .csv files ", -1))
33590
33615
  ]),
33591
- _: 1
33616
+ _: 1,
33617
+ __: [29, 30, 31]
33592
33618
  })
33593
33619
  ]),
33594
33620
  _: 1
@@ -33719,7 +33745,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33719
33745
  default: withCtx(() => _cache[34] || (_cache[34] = [
33720
33746
  createTextVNode(" Preview Data ")
33721
33747
  ])),
33722
- _: 1
33748
+ _: 1,
33749
+ __: [34]
33723
33750
  })
33724
33751
  ])) : (openBlock(), createElementBlock("div", _hoisted_19, _cache[35] || (_cache[35] = [
33725
33752
  createElementVNode("div", { class: "mapping-incomplete-message" }, " Please map the required fields to continue ", -1)
@@ -33855,7 +33882,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33855
33882
  _cache[40] || (_cache[40] = createElementVNode("p", null, "or click to select a file", -1)),
33856
33883
  _cache[41] || (_cache[41] = createElementVNode("p", { class: "txt-12 color-gray" }, " Accepts .xlsx, .xls, and .csv files ", -1))
33857
33884
  ]),
33858
- _: 1
33885
+ _: 1,
33886
+ __: [39, 40, 41]
33859
33887
  })
33860
33888
  ]),
33861
33889
  _: 1
@@ -33941,7 +33969,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
33941
33969
  default: withCtx(() => _cache[42] || (_cache[42] = [
33942
33970
  createTextVNode(" Transform ")
33943
33971
  ])),
33944
- _: 2
33972
+ _: 2,
33973
+ __: [42]
33945
33974
  }, 1032, ["onClick"])
33946
33975
  ])
33947
33976
  ])
@@ -34115,7 +34144,8 @@ ${unmatchedValues.length} values could not be automatically matched.`);
34115
34144
  default: withCtx(() => _cache[48] || (_cache[48] = [
34116
34145
  createTextVNode(" Close ")
34117
34146
  ])),
34118
- _: 1
34147
+ _: 1,
34148
+ __: [48]
34119
34149
  })
34120
34150
  ])
34121
34151
  ])) : createCommentVNode("", true)
@@ -34283,7 +34313,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
34283
34313
  _cache[0] || (_cache[0] = createElementVNode("div", { style: { "flex-grow": "1" } }, null, -1)),
34284
34314
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
34285
34315
  ]),
34286
- _: 3
34316
+ _: 3,
34317
+ __: [0]
34287
34318
  })
34288
34319
  ], 2);
34289
34320
  };
@@ -34670,7 +34701,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
34670
34701
  }, null, 8, _hoisted_5$5)) : createCommentVNode("", true)
34671
34702
  ])
34672
34703
  ]),
34673
- _: 3
34704
+ _: 3,
34705
+ __: [0]
34674
34706
  }, 16, ["class", "onClick"])), [
34675
34707
  [_directive_ripple, isClickable.value]
34676
34708
  ]);
package/dist/style.css CHANGED
@@ -1362,12 +1362,12 @@ fieldset[data-v-f7e758e5] {
1362
1362
  box-shadow: inset 0 0 0px 2px white;
1363
1363
  }
1364
1364
 
1365
- .bgl-checkbox[data-v-722373de] {
1365
+ .bgl-checkbox[data-v-1c41dd4f] {
1366
1366
  flex-direction: row;
1367
1367
  cursor: pointer;
1368
1368
  align-items: flex-start;
1369
1369
  }
1370
- .bgl-checkbox input[type='checkbox'][data-v-722373de] {
1370
+ .bgl-checkbox input[type='checkbox'][data-v-1c41dd4f] {
1371
1371
  accent-color: var(--bgl-accent-color);
1372
1372
  height: calc(var(--input-height) / 2.75);
1373
1373
  width: calc(var(--input-height) / 2.75);
@@ -1377,7 +1377,7 @@ fieldset[data-v-f7e758e5] {
1377
1377
  align-items: center;
1378
1378
  flex-shrink: 0;
1379
1379
  }
1380
- .bgl-checkbox input[type='checkbox'][data-v-722373de]::before {
1380
+ .bgl-checkbox input[type='checkbox'][data-v-1c41dd4f]::before {
1381
1381
  content: '';
1382
1382
  height: calc(var(--input-height) / 2.75);
1383
1383
  width: calc(var(--input-height) / 2.75);
@@ -1387,23 +1387,23 @@ fieldset[data-v-f7e758e5] {
1387
1387
  transition: all 200ms ease;
1388
1388
  position: absolute;
1389
1389
  }
1390
- .bgl-checkbox input[type='checkbox'][data-v-722373de]:hover::before {
1390
+ .bgl-checkbox input[type='checkbox'][data-v-1c41dd4f]:hover::before {
1391
1391
  opacity: 0.2;
1392
1392
  transform: scale(2);
1393
1393
  }
1394
- .bgl-checkbox label[data-v-722373de] {
1394
+ .bgl-checkbox label[data-v-1c41dd4f] {
1395
1395
  cursor: pointer;
1396
1396
  user-select: none;
1397
1397
  font-size: var(--input-font-size);
1398
1398
  transition: var(--bgl-transition-400);
1399
1399
  }
1400
- .bgl-checkbox:hover label[data-v-722373de] {
1400
+ .bgl-checkbox:hover label[data-v-1c41dd4f] {
1401
1401
  color: var(--bgl-primary) !important;
1402
1402
  }
1403
- .bgl-checkbox input:checked + label[data-v-722373de]{
1403
+ .bgl-checkbox input:checked + label[data-v-1c41dd4f]{
1404
1404
  color: var(--bgl-primary) !important;
1405
1405
  }
1406
- .bagel-input:focus-within.bgl-checkbox:not(:checked) label[data-v-722373de] {
1406
+ .bagel-input:focus-within.bgl-checkbox:not(:checked) label[data-v-1c41dd4f] {
1407
1407
  color: var(--label-color) !important;
1408
1408
  }
1409
1409
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.4.5",
4
+ "version": "1.4.8",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -59,7 +59,7 @@
59
59
  "@types/leaflet": "^1.9.17",
60
60
  "@types/signature_pad": "^4.0.0",
61
61
  "@vue-macros/reactivity-transform": "^1.1.6",
62
- "vue": "^3.5.13",
62
+ "vue": "^3.5.14",
63
63
  "vue-component-type-helpers": "^2.2.10"
64
64
  },
65
65
  "peerDependencies": {
@@ -7,6 +7,7 @@ const { defaultValue = false, id } = defineProps<{
7
7
  title?: string
8
8
  small?: boolean
9
9
  required?: boolean
10
+ disabled?: boolean
10
11
  defaultValue?: T
11
12
  value?: any
12
13
  }>()
@@ -29,6 +30,7 @@ onMounted(() => {
29
30
  <input
30
31
  :id="inputId + value"
31
32
  v-model="checked"
33
+ :disabled="disabled"
32
34
  :value
33
35
  :required
34
36
  type="checkbox"
@@ -367,9 +367,9 @@ export function createCommandRegistry(state: EditorState): CommandRegistry {
367
367
 
368
368
  // Media commands
369
369
  const mediaCommands = {
370
- image: createCommand('Insert Image', state => state.modal && insertImage(state.modal, state)),
370
+ image: createCommand('Insert Image', (state) => { state.modal && insertImage(state.modal, state) }),
371
371
  link: createCommand('Insert Link', state => state.modal && state.range && insertLink(state.modal, state)),
372
- embed: createCommand('Insert Embed', state => state.modal && insertEmbed(state.modal, state))
372
+ embed: createCommand('Insert Embed', (state) => { state.modal && insertEmbed(state.modal, state) })
373
373
  }
374
374
 
375
375
  // Other formatting commands
@@ -62,24 +62,37 @@ function saveFile() {
62
62
  // For SVG, create file directly from the SVG string
63
63
  fileData.value = new File([data], 'signature.svg', { type: 'image/svg+xml' })
64
64
  } else {
65
- // For PNG/JPG, convert base64 to blob first
66
- const base64Data = data.split(',')[1]
67
- const byteCharacters = atob(base64Data)
68
- const byteNumbers: number[] = Array.from({ length: byteCharacters.length })
69
-
70
- for (let i = 0; i < byteCharacters.length; i++) {
71
- byteNumbers[i] = byteCharacters.charCodeAt(i)
65
+ try {
66
+ // For PNG/JPG, convert base64 to blob first
67
+ const base64Data = data.split(',')[1]
68
+ if (!base64Data) throw new Error('Invalid data URL format')
69
+
70
+ const byteCharacters = atob(base64Data)
71
+ // Create byte array directly with mapping function
72
+ const byteArray = new Uint8Array(
73
+ Array.from(byteCharacters, char => char.charCodeAt(0))
74
+ )
75
+
76
+ const mimeType = props.format || 'image/png'
77
+ const blob = new Blob([byteArray], { type: mimeType })
78
+ const extension = mimeType.split('/')[1]
79
+
80
+ fileData.value = new File([blob], `signature.${extension}`, { type: mimeType })
81
+ } catch (error) {
82
+ console.error('Error saving signature file:', error)
72
83
  }
73
-
74
- const byteArray = new Uint8Array(byteNumbers)
75
- const blob = new Blob([byteArray], { type: props.format || 'image/png' })
76
-
77
- const extension = (props.format || 'image/png').split('/')[1]
78
- fileData.value = new File([blob], `signature.${extension}`, { type: props.format || 'image/png' })
79
84
  }
80
85
  }
81
86
 
82
- const fromDataURL = (url: string) => sig?.fromDataURL(url)
87
+ function fromDataURL(url: string) {
88
+ return sig?.fromDataURL(url, {
89
+ height: vCanvas?.height,
90
+ width: vCanvas?.width,
91
+ ratio: props.ratio,
92
+ xOffset: 0,
93
+ yOffset: 0,
94
+ })
95
+ }
83
96
 
84
97
  const isEmpty = () => sig?.isEmpty()
85
98
  function undo() {
@@ -145,8 +158,8 @@ async function loadFile(file: File | undefined) {
145
158
  const reader = new FileReader()
146
159
  return new Promise((resolve) => {
147
160
  reader.onload = (e) => {
148
- const dataUrl = e.target?.result as string
149
- fromDataURL(dataUrl)
161
+ const dataUrl = String(e.target?.result)
162
+ void fromDataURL(dataUrl)
150
163
  _isEmpty = false
151
164
  sigData.value = dataUrl
152
165
  resolve(true)
@@ -163,6 +176,7 @@ function draw() {
163
176
  const canvas = vCanvas!
164
177
  sig = new SignaturePad(canvas, signatureOptions)
165
178
  function resizeCanvas(c: HTMLCanvasElement) {
179
+ // ! TODO: function does not need to be declared inside draw()
166
180
  let url
167
181
  if (!isEmpty()) url = save()
168
182
  const ratio = props.ratio ?? 1 / 2
@@ -170,7 +184,7 @@ function draw() {
170
184
  c.width = props.width ? Number(props.width.replaceAll('px', '')) : width
171
185
  c.height = props.height ? Number(props.height.replaceAll('px', '')) : width * ratio
172
186
  clear()
173
- if (!props.clearOnResize && url !== undefined) fromDataURL(url)
187
+ if (!props.clearOnResize && url !== undefined) void fromDataURL(url)
174
188
  if (props.waterMark) addWaterMark(props.waterMark)
175
189
  }
176
190
  window.addEventListener('resize', () => { resizeCanvas(canvas) })
@@ -202,10 +216,31 @@ defineExpose({
202
216
  </script>
203
217
 
204
218
  <template>
205
- <div class="bgl_input signature-pad relative" :class="{ 'bg-transparent': disabled }" @touchmove.prevent>
206
- <Btn v-if="clearable && !disabled" flat thin icon="refresh" class="position-bottom-end" @click="clear" />
207
- <canvas ref="vCanvas" class="canvas" :disabled />
208
- <input v-if="required && _isEmpty" placeholder="required" type="text" required class="pixel opacity-0">
219
+ <div
220
+ class="bgl_input signature-pad relative"
221
+ :class="{ 'bg-transparent': disabled }"
222
+ @touchmove.prevent
223
+ >
224
+ <Btn
225
+ v-if="clearable && !disabled"
226
+ flat
227
+ thin
228
+ icon="refresh"
229
+ class="position-bottom-end"
230
+ @click="clear"
231
+ />
232
+ <canvas
233
+ ref="vCanvas"
234
+ class="canvas"
235
+ :disabled
236
+ />
237
+ <input
238
+ v-if="required && _isEmpty"
239
+ placeholder="required"
240
+ type="text"
241
+ required
242
+ class="pixel opacity-0"
243
+ >
209
244
  </div>
210
245
  </template>
211
246