@feedmepos/mf-menu-portal 1.0.4 → 1.0.5-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/{App-CgYpEYgp.js → App-B2xq1U4S.js} +699 -687
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
  4. package/dist/Catalog-BEI73S_k.js +433 -0
  5. package/dist/{CatalogBinding-BjTeOA91.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
  8. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
  9. package/dist/{Category-6-ppsSmZ.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-CdsbuUqi.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-CRyRlBeV.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-DVrUlq4i.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DqyBHSFx.js → Group-qqr5SUIc.js} +17 -15
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
  16. package/dist/{Ingredient-CGLfhbvN.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-Oct3vbHj.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-BDkzflgE.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
  21. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
  22. package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
  23. package/dist/{Preview-V9cSpevb.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-3UwiMoBU.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-LaB-YRTQ.js → Product-sbMCaVhM.js} +8 -7
  27. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
  28. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
  29. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-DWCgC825.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-D0d5RywR.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-BLUhwFT-.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-BGfofjHT.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-BL7t8aS7.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-CDFXMCiN.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-CnlrVwCy.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-D8FzvC2w.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-BWVzwWnh.js → Takeaway-DFqOtls7.js} +17 -16
  47. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
  48. package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
  49. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-Do7Tt8U8.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-D1kLupxx.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-DomaBHrh.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-C_XNYz8_.js → app-CxJjx2ma.js} +39 -39
  54. package/dist/app.js +1 -1
  55. package/dist/apps/mf-menu/src/app.d.ts +35 -0
  56. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
  57. package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
  58. package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
  59. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
  60. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
  61. package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  62. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
  63. package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
  64. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/assets/{menu-compute-Did75Kp9.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DVMOLygB.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-Bwf3KcOV.js → provide-BGLSDsuJ.js} +99817 -99565
  69. package/dist/{useActionFeedback-CXx7dOVc.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-BrHGEI3p.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +0 -1807
  74. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
  75. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
  76. package/dist/Publish-Dkjnls7p.js +0 -1337
  77. package/dist/Setting-gYZoZxQG.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js +0 -554
@@ -1,7 +1,7 @@
1
- import { defineComponent as Ft, resolveComponent as U, openBlock as b, createBlock as R, Teleport as Ye, createVNode as z, Transition as Xe, withCtx as I, withKeys as Kt, normalizeClass as Ut, createElementVNode as S, toDisplayString as O, renderSlot as J, createElementBlock as F, Fragment as pt, renderList as xt, createCommentVNode as V, resolveDynamicComponent as Mt, withDirectives as ce, vShow as ue, mergeProps as de, withModifiers as Ve, ref as L, watch as Ne, computed as st, normalizeStyle as Jt, onBeforeUnmount as qe, unref as A } from "vue";
1
+ import { defineComponent as Ft, resolveComponent as U, openBlock as b, createBlock as A, Teleport as Ye, createVNode as z, Transition as Xe, withCtx as I, withKeys as Kt, normalizeClass as Ut, createElementVNode as E, toDisplayString as O, renderSlot as J, createElementBlock as F, Fragment as pt, renderList as xt, createCommentVNode as V, resolveDynamicComponent as Mt, withDirectives as ce, vShow as ue, mergeProps as de, withModifiers as Ve, ref as L, watch as Ne, computed as st, normalizeStyle as Jt, onBeforeUnmount as qe, unref as R } from "vue";
2
2
  import { useI18n as Ze } from "@feedmepos/mf-common";
3
- import { components as B } from "@feedmepos/ui-library";
4
- import { b as Ge, A as Qe } from "./provide-Bwf3KcOV.js";
3
+ import { components as $ } from "@feedmepos/ui-library";
4
+ import { b as Ge, A as Qe } from "./provide-BGLSDsuJ.js";
5
5
  import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Je = {
7
7
  class: /* @__PURE__ */ Ut([
@@ -17,7 +17,7 @@ const Je = {
17
17
  "w-full",
18
18
  "px-24"
19
19
  ])
20
- }, fn = /* @__PURE__ */ Ft({
20
+ }, mn = /* @__PURE__ */ Ft({
21
21
  __name: "FullScreenForm",
22
22
  props: {
23
23
  show: { type: Boolean },
@@ -47,7 +47,7 @@ const Je = {
47
47
  };
48
48
  return (r, l) => {
49
49
  const c = U("fm-button"), u = U("fm-form");
50
- return b(), R(Ye, { to: "body" }, [
50
+ return b(), A(Ye, { to: "body" }, [
51
51
  z(Xe, {
52
52
  "enter-active-class": "transition-opacity duration-500 ease-in-out",
53
53
  "enter-from-class": "opacity-0",
@@ -57,7 +57,7 @@ const Je = {
57
57
  "leave-to-class": "opacity-0"
58
58
  }, {
59
59
  default: I(() => [
60
- r.show ? (b(), R(u, {
60
+ r.show ? (b(), A(u, {
61
61
  key: 0,
62
62
  "blame-form-child-on-validation-failed": "",
63
63
  class: Ut([
@@ -75,10 +75,10 @@ const Je = {
75
75
  onKeyup: Kt(h, ["esc"])
76
76
  }, {
77
77
  default: I(() => [
78
- S("div", Je, [
79
- S("p", ti, O(r.title), 1),
78
+ E("div", Je, [
79
+ E("p", ti, O(r.title), 1),
80
80
  J(r.$slots, "append-title"),
81
- (b(!0), F(pt, null, xt(r.secondaryActions, (d) => (b(), R(c, {
81
+ (b(!0), F(pt, null, xt(r.secondaryActions, (d) => (b(), A(c, {
82
82
  key: d.label,
83
83
  label: d.label,
84
84
  variant: "tertiary",
@@ -91,7 +91,7 @@ const Je = {
91
91
  variant: "primary"
92
92
  }, null, 8, ["label", "disabled"])
93
93
  ]),
94
- S("div", ei, [
94
+ E("div", ei, [
95
95
  J(r.$slots, "default")
96
96
  ])
97
97
  ]),
@@ -111,7 +111,7 @@ function ii(t) {
111
111
  });
112
112
  }
113
113
  const G = /* @__PURE__ */ new Map();
114
- function pn(t) {
114
+ function fn(t) {
115
115
  const e = G.get(t);
116
116
  if (e)
117
117
  return G.delete(t), G.set(t, e), e;
@@ -128,7 +128,7 @@ function pn(t) {
128
128
  }); G.size > 6; ) G.delete(G.keys().next().value);
129
129
  return i;
130
130
  }
131
- async function gn(t) {
131
+ async function pn(t) {
132
132
  return t ? {
133
133
  contentType: t.blob.type,
134
134
  fileName: t.fileName,
@@ -167,13 +167,13 @@ async function me(t) {
167
167
  }
168
168
  return r ? { blob: r, width: e.width, height: e.height } : null;
169
169
  }
170
- async function vn(t) {
170
+ async function gn(t) {
171
171
  const e = await fetch(t);
172
172
  if (!e.ok) throw new Error("Image read failed");
173
173
  const i = await e.blob();
174
174
  return new File([i], "remy-image", { type: i.type || "image/png" });
175
175
  }
176
- async function bn(t) {
176
+ async function vn(t) {
177
177
  var i;
178
178
  const e = URL.createObjectURL(t);
179
179
  try {
@@ -212,14 +212,14 @@ function w(t) {
212
212
  for (var e = 1; e < arguments.length; e++) {
213
213
  var i = arguments[e] != null ? arguments[e] : {};
214
214
  e % 2 ? te(Object(i), !0).forEach((function(o) {
215
- $(t, o, i[o]);
215
+ j(t, o, i[o]);
216
216
  })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : te(Object(i)).forEach((function(o) {
217
217
  Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(i, o));
218
218
  }));
219
219
  }
220
220
  return t;
221
221
  }
222
- function $(t, e, i) {
222
+ function j(t, e, i) {
223
223
  return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
224
224
  }
225
225
  function ni(t, e) {
@@ -444,7 +444,7 @@ var ft = function(t, e) {
444
444
  this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
445
445
  } }, emits: ["drag", "drag-end", "leave", "enter"] };
446
446
  Xt.render = function(t, e, i, o, s, n) {
447
- return b(), R("div", { ref: "draggable", class: i.classname, onTouchstart: e[1] || (e[1] = function() {
447
+ return b(), A("div", { ref: "draggable", class: i.classname, onTouchstart: e[1] || (e[1] = function() {
448
448
  return n.onTouchStart && n.onTouchStart.apply(n, arguments);
449
449
  }), onMousedown: e[2] || (e[2] = function() {
450
450
  return n.onMouseDown && n.onMouseDown.apply(n, arguments);
@@ -458,13 +458,13 @@ var _t = Y("vue-handler-wrapper"), be = { name: "HandlerWrapper", components: {
458
458
  var t;
459
459
  if (this.horizontalPosition || this.verticalPosition) {
460
460
  var e, i = fe(this.horizontalPosition, this.verticalPosition);
461
- t = _t(($(e = {}, i.classname, !0), $(e, "disabled", this.disabled), e));
461
+ t = _t((j(e = {}, i.classname, !0), j(e, "disabled", this.disabled), e));
462
462
  } else t = _t({ disabled: this.disabled });
463
463
  return { root: t, draggable: _t("draggable") };
464
464
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
465
465
  be.render = function(t, e, i, o, s, n) {
466
466
  var a = U("DraggableElement");
467
- return b(), R("div", { class: n.classes.root }, [z(a, { class: n.classes.draggable, onDrag: e[1] || (e[1] = function(h) {
467
+ return b(), A("div", { class: n.classes.root }, [z(a, { class: n.classes.draggable, onDrag: e[1] || (e[1] = function(h) {
468
468
  return t.$emit("drag", h);
469
469
  }), onDragEnd: e[2] || (e[2] = function(h) {
470
470
  return t.$emit("drag-end");
@@ -478,11 +478,11 @@ be.render = function(t, e, i, o, s, n) {
478
478
  };
479
479
  var ai = Y("vue-line-wrapper"), we = { name: "LineWrapper", components: { DraggableElement: Xt }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
480
480
  var t;
481
- return ai(($(t = {}, this.position, !0), $(t, "disabled", this.disabled), t));
481
+ return ai((j(t = {}, this.position, !0), j(t, "disabled", this.disabled), t));
482
482
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
483
483
  we.render = function(t, e, i, o, s, n) {
484
484
  var a = U("DraggableElement");
485
- return b(), R(a, { class: n.classname, onDrag: e[1] || (e[1] = function(h) {
485
+ return b(), A(a, { class: n.classname, onDrag: e[1] || (e[1] = function(h) {
486
486
  return t.$emit("drag", h);
487
487
  }), onDragEnd: e[2] || (e[2] = function(h) {
488
488
  return t.$emit("drag-end");
@@ -525,7 +525,7 @@ function St(t) {
525
525
  function P(t, e) {
526
526
  return p(p({}, t), { left: t.left + e.left, top: t.top + e.top });
527
527
  }
528
- function j(t, e, i, o) {
528
+ function k(t, e, i, o) {
529
529
  if (e !== 1) {
530
530
  if (i) {
531
531
  var s = _(t);
@@ -632,8 +632,8 @@ function fi(t) {
632
632
  t.stencilReference;
633
633
  var r, l, c, u = p({}, o), d = p({}, s), m = p({}, n);
634
634
  r = y(m), l = y(u), c === void 0 && (c = 1e-3), (r === 0 || l === 0 ? Math.abs(l - r) < c : Math.abs(l / r) < 1 + c && Math.abs(l / r) > 1 - c) || (u = p(p({}, u), K({ sizeRestrictions: a, width: u.width, height: u.height, aspectRatio: { minimum: y(m), maximum: y(m) } })));
635
- var g = Et(d = j(d, u.width * i.width / (d.width * m.width)), e({ visibleArea: d, type: "resize" }));
636
- return g !== 1 && (d = j(d, g), u = j(u, g)), d = D(d = P(d, ct(_(u), _(d))), e({ visibleArea: d, type: "move" })), { coordinates: u = D(u, Ct(Z(d), h)), visibleArea: d };
635
+ var g = Et(d = k(d, u.width * i.width / (d.width * m.width)), e({ visibleArea: d, type: "resize" }));
636
+ return g !== 1 && (d = k(d, g), u = k(u, g)), d = D(d = P(d, ct(_(u), _(d))), e({ visibleArea: d, type: "move" })), { coordinates: u = D(u, Ct(Z(d), h)), visibleArea: d };
637
637
  }
638
638
  function pi(t) {
639
639
  var e = t.event, i = t.getAreaRestrictions, o = t.boundaries, s = t.coordinates, n = t.visibleArea;
@@ -644,8 +644,8 @@ function pi(t) {
644
644
  if (s && n && e.type !== "manipulateImage") {
645
645
  var l = { width: 0, height: 0 };
646
646
  r.width, o.width, y(o) > y(h) ? (l.height = 0.8 * o.height, l.width = l.height * y(h)) : (l.width = 0.8 * o.width, l.height = l.width * y(h));
647
- var c = Et(r = j(r, h.width * o.width / (r.width * l.width)), i({ visibleArea: r, type: "resize" }));
648
- r = j(r, c), c !== 1 && (l.height /= c, l.width /= c), r = D(r = P(r, ct(_(h), _(r))), i({ visibleArea: r, type: "move" })), h = D(h, Ct(Z(r), a));
647
+ var c = Et(r = k(r, h.width * o.width / (r.width * l.width)), i({ visibleArea: r, type: "resize" }));
648
+ r = k(r, c), c !== 1 && (l.height /= c, l.width /= c), r = D(r = P(r, ct(_(h), _(r))), i({ visibleArea: r, type: "move" })), h = D(h, Ct(Z(r), a));
649
649
  }
650
650
  return { coordinates: h, visibleArea: r };
651
651
  }
@@ -653,7 +653,7 @@ function gi(t) {
653
653
  var e = t.event, i = t.coordinates, o = t.visibleArea, s = t.getAreaRestrictions, n = p({}, o), a = p({}, i);
654
654
  if (e.type === "setCoordinates") {
655
655
  var h = Math.max(0, a.width - n.width), r = Math.max(0, a.height - n.height);
656
- h > r ? n = j(n, Math.min(a.width / n.width, ut(n, s({ visibleArea: n, type: "resize" })))) : r > h && (n = j(n, Math.min(a.height / n.height, ut(n, s({ visibleArea: n, type: "resize" }))))), n = D(n = P(n, St(dt(a, Z(n)))), s({ visibleArea: n, type: "move" }));
656
+ h > r ? n = k(n, Math.min(a.width / n.width, ut(n, s({ visibleArea: n, type: "resize" })))) : r > h && (n = k(n, Math.min(a.height / n.height, ut(n, s({ visibleArea: n, type: "resize" }))))), n = D(n = P(n, St(dt(a, Z(n)))), s({ visibleArea: n, type: "move" }));
657
657
  }
658
658
  return { visibleArea: n, coordinates: a };
659
659
  }
@@ -685,13 +685,13 @@ function zi(t) {
685
685
  var e = t.event, i = t.coordinates, o = t.visibleArea, s = t.sizeRestrictions, n = t.getAreaRestrictions, a = t.positionRestrictions, h = t.adjustStencil, r = e.scale, l = e.move, c = p({}, o), u = p({}, i), d = 1, m = 1, g = r.factor && Math.abs(r.factor - 1) > 1e-3;
686
686
  c = P(c, { left: l.left || 0, top: l.top || 0 });
687
687
  var v = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / u.width : 0, s.minHeight ? s.minHeight / u.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / u.width : 1 / 0, s.maxHeight ? s.maxHeight / u.height : 1 / 0, ut(u, a)) }, area: { maximum: ut(c, n({ visibleArea: c, type: "resize" })) } };
688
- r.factor && g && (r.factor < 1 ? (m = Math.max(r.factor, v.stencil.minimum)) > 1 && (m = 1) : r.factor > 1 && (m = Math.min(r.factor, Math.min(v.area.maximum, v.stencil.maximum))) < 1 && (m = 1)), m && (c = j(c, m, r.center));
688
+ r.factor && g && (r.factor < 1 ? (m = Math.max(r.factor, v.stencil.minimum)) > 1 && (m = 1) : r.factor > 1 && (m = Math.min(r.factor, Math.min(v.area.maximum, v.stencil.maximum))) < 1 && (m = 1)), m && (c = k(c, m, r.center));
689
689
  var M = i.left - o.left, H = o.width + o.left - (i.width + i.left), tt = i.top - o.top, at = o.height + o.top - (i.height + i.top);
690
- return c = D(c = P(c, dt(c, { left: a.left !== void 0 ? a.left - M * m : void 0, top: a.top !== void 0 ? a.top - tt * m : void 0, bottom: a.bottom !== void 0 ? a.bottom + at * m : void 0, right: a.right !== void 0 ? a.right + H * m : void 0 })), n({ visibleArea: c, type: "move" })), u.width = u.width * m, u.height = u.height * m, u.left = c.left + M * m, u.top = c.top + tt * m, u = D(u, Ct(Z(c), a)), r.factor && g && h && (r.factor > 1 ? d = Math.min(v.area.maximum, r.factor) / m : r.factor < 1 && (d = Math.max(u.height / c.height, u.width / c.width, r.factor / m)), d !== 1 && (c = P(c = D(c = j(c, d, r.factor > 1 ? r.center : _(u)), n({ visibleArea: c, type: "move" })), St(dt(u, Z(c)))))), { coordinates: u, visibleArea: c };
690
+ return c = D(c = P(c, dt(c, { left: a.left !== void 0 ? a.left - M * m : void 0, top: a.top !== void 0 ? a.top - tt * m : void 0, bottom: a.bottom !== void 0 ? a.bottom + at * m : void 0, right: a.right !== void 0 ? a.right + H * m : void 0 })), n({ visibleArea: c, type: "move" })), u.width = u.width * m, u.height = u.height * m, u.left = c.left + M * m, u.top = c.top + tt * m, u = D(u, Ct(Z(c), a)), r.factor && g && h && (r.factor > 1 ? d = Math.min(v.area.maximum, r.factor) / m : r.factor < 1 && (d = Math.max(u.height / c.height, u.width / c.width, r.factor / m)), d !== 1 && (c = P(c = D(c = k(c, d, r.factor > 1 ? r.center : _(u)), n({ visibleArea: c, type: "move" })), St(dt(u, Z(c)))))), { coordinates: u, visibleArea: c };
691
691
  }
692
692
  function Ri(t) {
693
693
  var e = t.aspectRatio, i = t.getAreaRestrictions, o = t.coordinates, s = t.visibleArea, n = t.sizeRestrictions, a = t.positionRestrictions, h = t.imageSize, r = t.previousImageSize, l = t.angle, c = p({}, o), u = p({}, s), d = ot(_(p({ left: 0, top: 0 }, r)), l);
694
- return (c = p(p({}, K({ sizeRestrictions: n, aspectRatio: e, width: c.width, height: c.height })), ot(_(c), l))).left -= d.left - h.width / 2 + c.width / 2, c.top -= d.top - h.height / 2 + c.height / 2, u = j(u, Et(u, i({ visibleArea: u, type: "resize" }))), { coordinates: c = D(c, a), visibleArea: u = D(u = P(u, ct(_(c), _(o))), i({ visibleArea: u, type: "move" })) };
694
+ return (c = p(p({}, K({ sizeRestrictions: n, aspectRatio: e, width: c.width, height: c.height })), ot(_(c), l))).left -= d.left - h.width / 2 + c.width / 2, c.top -= d.top - h.height / 2 + c.height / 2, u = k(u, Et(u, i({ visibleArea: u, type: "resize" }))), { coordinates: c = D(c, a), visibleArea: u = D(u = P(u, ct(_(c), _(o))), i({ visibleArea: u, type: "move" })) };
695
695
  }
696
696
  function Ai(t) {
697
697
  var e = t.flip, i = t.previousFlip, o = t.rotate, s = t.getAreaRestrictions, n = t.coordinates, a = t.visibleArea, h = t.imageSize, r = p({}, n), l = p({}, a), c = i.horizontal !== e.horizontal, u = i.vertical !== e.vertical;
@@ -738,7 +738,7 @@ function zt(t, e, i) {
738
738
  var xi = Y("vue-simple-handler"), Mi = Y("vue-simple-handler-wrapper"), Vt = { name: "SimpleHandler", components: { HandlerWrapper: be }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
739
739
  return { hover: !1 };
740
740
  }, computed: { classes: function() {
741
- var t, e = ($(t = {}, this.horizontalPosition, !!this.horizontalPosition), $(t, this.verticalPosition, !!this.verticalPosition), $(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), $(t, "hover", this.hover), t);
741
+ var t, e = (j(t = {}, this.horizontalPosition, !!this.horizontalPosition), j(t, this.verticalPosition, !!this.verticalPosition), j(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), j(t, "hover", this.hover), t);
742
742
  return { default: C(xi(e), this.defaultClass, this.hover && this.hoverClass), wrapper: C(Mi(e), this.wrapperClass) };
743
743
  } }, methods: { onDrag: function(t) {
744
744
  this.$emit("drag", t);
@@ -751,14 +751,14 @@ var xi = Y("vue-simple-handler"), Mi = Y("vue-simple-handler-wrapper"), Vt = { n
751
751
  } }, emits: ["drag", "drag-end"] };
752
752
  Vt.render = function(t, e, i, o, s, n) {
753
753
  var a = U("HandlerWrapper");
754
- return b(), R(a, { class: n.classes.wrapper, "vertical-position": i.verticalPosition, "horizontal-position": i.horizontalPosition, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: I((function() {
754
+ return b(), A(a, { class: n.classes.wrapper, "vertical-position": i.verticalPosition, "horizontal-position": i.horizontalPosition, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: I((function() {
755
755
  return [z("div", { class: n.classes.default }, null, 2)];
756
756
  })), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
757
757
  };
758
758
  var Si = Y("vue-simple-line"), Ei = Y("vue-simple-line-wrapper"), Nt = { name: "SimpleLine", components: { LineWrapper: we }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
759
759
  return { hover: !1 };
760
760
  }, computed: { classes: function() {
761
- return { root: C(Si($({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: C(Ei($({}, this.position, !0)), this.wrapperClass) };
761
+ return { root: C(Si(j({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: C(Ei(j({}, this.position, !0)), this.wrapperClass) };
762
762
  } }, methods: { onDrag: function(t) {
763
763
  this.$emit("drag", t);
764
764
  }, onEnter: function() {
@@ -770,7 +770,7 @@ var Si = Y("vue-simple-line"), Ei = Y("vue-simple-line-wrapper"), Nt = { name: "
770
770
  } }, emits: ["drag", "drag-end"] };
771
771
  Nt.render = function(t, e, i, o, s, n) {
772
772
  var a = U("LineWrapper");
773
- return b(), R(a, { class: n.classes.wrapper, position: i.position, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: I((function() {
773
+ return b(), A(a, { class: n.classes.wrapper, position: i.position, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: I((function() {
774
774
  return [z("div", { class: n.classes.root }, null, 2)];
775
775
  })), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
776
776
  };
@@ -819,7 +819,7 @@ var Lt = Y("vue-bounding-box"), Ci = ["east", "west", null], Ti = ["south", "nor
819
819
  if (i && o) {
820
820
  var a = s.horizontalDirection, h = s.verticalDirection, r = a === "east" ? i : a === "west" ? 0 : i / 2, l = h === "south" ? o : h === "north" ? 0 : o / 2;
821
821
  n.wrapperClass = Lt("handler"), n.wrapperStyle = { transform: "translate(".concat(r, "px, ").concat(l, "px)") }, t.transitions && t.transitions.enabled && (n.wrapperStyle.transition = "".concat(t.transitions.time, "ms ").concat(t.transitions.timingFunction));
822
- } else n.wrapperClass = Lt("handler", $({}, s.classname, !0));
822
+ } else n.wrapperClass = Lt("handler", j({}, s.classname, !0));
823
823
  e.push(n);
824
824
  }
825
825
  })), e;
@@ -836,14 +836,14 @@ var Lt = Y("vue-bounding-box"), Ci = ["east", "west", null], Ti = ["south", "nor
836
836
  e === "west" ? h.left -= n : e === "east" && (h.right += n), i === "north" ? h.top -= a : i === "south" && (h.bottom += a), !i && e ? o = "width" : i && !e && (o = "height"), this.resizable && this.$emit("resize", new si(h, { allowedDirections: { left: e === "west" || !e, right: e === "east" || !e, bottom: i === "south" || !i, top: i === "north" || !i }, preserveAspectRatio: t.nativeEvent && t.nativeEvent.shiftKey, respectDirection: o }));
837
837
  } }, emits: ["resize", "resize-end"] };
838
838
  Ae.render = function(t, e, i, o, s, n) {
839
- return b(), R("div", { ref: "box", class: n.classes.root, style: n.style }, [J(t.$slots, "default"), z("div", null, [(b(!0), R(pt, null, xt(n.lineNodes, (function(a) {
840
- return b(), R(Mt(a.component), { key: a.name, "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, position: a.name, disabled: a.disabled, onDrag: function(h) {
839
+ return b(), A("div", { ref: "box", class: n.classes.root, style: n.style }, [J(t.$slots, "default"), z("div", null, [(b(!0), A(pt, null, xt(n.lineNodes, (function(a) {
840
+ return b(), A(Mt(a.component), { key: a.name, "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, position: a.name, disabled: a.disabled, onDrag: function(h) {
841
841
  return n.onHandlerDrag(h, a.horizontalDirection, a.verticalDirection);
842
842
  }, onDragEnd: e[1] || (e[1] = function(h) {
843
843
  return n.onEnd();
844
844
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
845
- })), 128))]), (b(!0), R(pt, null, xt(n.handlerNodes, (function(a) {
846
- return b(), R("div", { key: a.name, style: a.wrapperStyle, class: a.wrapperClass }, [(b(), R(Mt(a.component), { "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, "horizontal-position": a.horizontalDirection, "vertical-position": a.verticalDirection, disabled: a.disabled, onDrag: function(h) {
845
+ })), 128))]), (b(!0), A(pt, null, xt(n.handlerNodes, (function(a) {
846
+ return b(), A("div", { key: a.name, style: a.wrapperStyle, class: a.wrapperClass }, [(b(), A(Mt(a.component), { "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, "horizontal-position": a.horizontalDirection, "vertical-position": a.verticalDirection, disabled: a.disabled, onDrag: function(h) {
847
847
  return n.onHandlerDrag(h, a.horizontalDirection, a.verticalDirection);
848
848
  }, onDragEnd: e[2] || (e[2] = function(h) {
849
849
  return n.onEnd();
@@ -889,7 +889,7 @@ var Wi = Y("vue-draggable-area"), xe = { name: "DraggableArea", props: { movable
889
889
  this.touches.length && this.$emit("move-end"), this.touches = [];
890
890
  } }, emits: ["move", "move-end"] };
891
891
  xe.render = function(t, e, i, o, s, n) {
892
- return b(), R("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
892
+ return b(), A("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
893
893
  return n.onTouchStart && n.onTouchStart.apply(n, arguments);
894
894
  }), onMousedown: e[2] || (e[2] = function() {
895
895
  return n.onMouseDown && n.onMouseDown.apply(n, arguments);
@@ -1033,7 +1033,7 @@ var Se = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
1033
1033
  var a, h;
1034
1034
  } }, emits: ["resize", "move", "transform-end"] };
1035
1035
  Se.render = function(t, e, i, o, s, n) {
1036
- return b(), R("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
1036
+ return b(), A("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
1037
1037
  return n.onTouchStart && n.onTouchStart.apply(n, arguments);
1038
1038
  }), onMousedown: e[2] || (e[2] = function() {
1039
1039
  return n.onMouseDown && n.onMouseDown.apply(n, arguments);
@@ -1044,7 +1044,7 @@ Se.render = function(t, e, i, o, s, n) {
1044
1044
  var Bt = { components: { TransformableImage: Se }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
1045
1045
  Bt.render = function(t, e, i, o, s, n) {
1046
1046
  var a = U("transformable-image");
1047
- return b(), R(a, { "touch-move": i.touchMove, "touch-resize": i.touchResize, "mouse-move": i.mouseMove, "wheel-resize": i.wheelResize, onMove: e[1] || (e[1] = function(h) {
1047
+ return b(), A(a, { "touch-move": i.touchMove, "touch-resize": i.touchResize, "mouse-move": i.mouseMove, "wheel-resize": i.wheelResize, onMove: e[1] || (e[1] = function(h) {
1048
1048
  return t.$emit("move", h);
1049
1049
  }), onResize: e[2] || (e[2] = function(h) {
1050
1050
  return t.$emit("resize", h);
@@ -1096,12 +1096,12 @@ var Rt = Y("vue-preview"), Ee = { props: { coordinates: { type: Object }, transi
1096
1096
  t && t.complete && this.refreshImage(), this.refresh();
1097
1097
  } } };
1098
1098
  Ee.render = function(t, e, i, o, s, n) {
1099
- return b(), R("div", { ref: "root", class: n.classes.root, style: n.style }, [z("div", { ref: "wrapper", class: n.classes.wrapper, style: n.wrapperStyle }, [ce(z("img", { ref: "image", src: i.image && i.image.src, class: n.classes.image, style: n.imageStyle }, null, 14, ["src"]), [[ue, i.image && i.image.src]])], 6)], 6);
1099
+ return b(), A("div", { ref: "root", class: n.classes.root, style: n.style }, [z("div", { ref: "wrapper", class: n.classes.wrapper, style: n.wrapperStyle }, [ce(z("img", { ref: "image", src: i.image && i.image.src, class: n.classes.image, style: n.imageStyle }, null, 14, ["src"]), [[ue, i.image && i.image.src]])], 6)], 6);
1100
1100
  };
1101
1101
  var Ce = { components: { Preview: Ee }, inheritAttrs: !1 };
1102
1102
  Ce.render = function(t, e, i, o, s, n) {
1103
1103
  var a = U("preview");
1104
- return b(), R(a, de(t.$attrs, { fill: !0 }), null, 16);
1104
+ return b(), A(a, de(t.$attrs, { fill: !0 }), null, 16);
1105
1105
  };
1106
1106
  var Ht = Y("vue-rectangle-stencil"), Te = { name: "RectangleStencil", components: { StencilPreview: Ce, BoundingBox: Ae, DraggableArea: xe }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
1107
1107
  return Vt;
@@ -1135,7 +1135,7 @@ var Ht = Y("vue-rectangle-stencil"), Te = { name: "RectangleStencil", components
1135
1135
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
1136
1136
  Te.render = function(t, e, i, o, s, n) {
1137
1137
  var a = U("stencil-preview"), h = U("draggable-area"), r = U("bounding-box");
1138
- return b(), R("div", { class: n.classes.stencil, style: n.style }, [z(r, { width: i.stencilCoordinates.width, height: i.stencilCoordinates.height, transitions: i.transitions, class: n.classes.boundingBox, handlers: i.handlers, "handlers-component": i.handlersComponent, "handlers-classes": i.handlersClasses, "handlers-wrappers-classes": i.handlersWrappersClasses, lines: i.lines, "lines-component": i.linesComponent, "lines-classes": i.linesClasses, "lines-wrappers-classes": i.linesWrappersClasses, resizable: i.resizable, onResize: n.onResize, onResizeEnd: n.onResizeEnd }, { default: I((function() {
1138
+ return b(), A("div", { class: n.classes.stencil, style: n.style }, [z(r, { width: i.stencilCoordinates.width, height: i.stencilCoordinates.height, transitions: i.transitions, class: n.classes.boundingBox, handlers: i.handlers, "handlers-component": i.handlersComponent, "handlers-classes": i.handlersClasses, "handlers-wrappers-classes": i.handlersWrappersClasses, lines: i.lines, "lines-component": i.linesComponent, "lines-classes": i.linesClasses, "lines-wrappers-classes": i.linesWrappersClasses, resizable: i.resizable, onResize: n.onResize, onResizeEnd: n.onResizeEnd }, { default: I((function() {
1139
1139
  return [z(h, { movable: i.movable, onMove: n.onMove, onMoveEnd: n.onMoveEnd }, { default: I((function() {
1140
1140
  return [z(a, { image: i.image, coordinates: i.coordinates, width: i.stencilCoordinates.width, height: i.stencilCoordinates.height, class: n.classes.preview, transitions: i.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
1141
1141
  })), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
@@ -1185,8 +1185,8 @@ var Li = ["transitions"], Q = Y("vue-advanced-cropper"), We = { name: "Cropper",
1185
1185
  return a = D(a = P(a, ct(_(i), _(a))), Ct(Z(e), n));
1186
1186
  } }, fitVisibleArea: { type: Function, default: function(t) {
1187
1187
  var e = t.visibleArea, i = t.boundaries, o = t.getAreaRestrictions, s = t.coordinates, n = p({}, e);
1188
- n.height = n.width / y(i), n.top += (e.height - n.height) / 2, (s.height - n.height > 0 || s.width - n.width > 0) && (n = j(n, Math.max(s.height / n.height, s.width / n.width)));
1189
- var a = St(dt(s, Z(n = j(n, Et(n, o({ visibleArea: n, type: "resize" }))))));
1188
+ n.height = n.width / y(i), n.top += (e.height - n.height) / 2, (s.height - n.height > 0 || s.width - n.width > 0) && (n = k(n, Math.max(s.height / n.height, s.width / n.width)));
1189
+ var a = St(dt(s, Z(n = k(n, Et(n, o({ visibleArea: n, type: "resize" }))))));
1190
1190
  return n.width < s.width && (a.left = 0), n.height < s.height && (a.top = 0), n = D(n = P(n, a), o({ visibleArea: n, type: "move" }));
1191
1191
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
1192
1192
  var e = t.visibleArea, i = t.boundaries, o = t.imageSize, s = t.imageRestriction, n = t.type, a = {};
@@ -1568,9 +1568,9 @@ var Li = ["transitions"], Q = Y("vue-advanced-cropper"), We = { name: "Cropper",
1568
1568
  }
1569
1569
  } }, emits: ["change", "error", "ready"] }, Ii = { key: 0, ref: "canvas", style: { display: "none" } }, Hi = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
1570
1570
  We.render = function(t, e, i, o, s, n) {
1571
- return b(), R("div", { ref: "cropper", class: n.classes.cropper }, [z("div", { ref: "stretcher", class: n.classes.stretcher }, null, 2), z("div", { class: n.classes.boundaries, style: n.boundariesStyle }, [(b(), R(Mt(i.backgroundWrapperComponent), { class: n.classes.cropperWrapper, "wheel-resize": n.settings.resizeImage.wheel, "touch-resize": n.settings.resizeImage.touch, "touch-move": n.settings.moveImage.touch, "mouse-move": n.settings.moveImage.mouse, onMove: n.onManipulateImage, onResize: n.onManipulateImage }, { default: I((function() {
1571
+ return b(), A("div", { ref: "cropper", class: n.classes.cropper }, [z("div", { ref: "stretcher", class: n.classes.stretcher }, null, 2), z("div", { class: n.classes.boundaries, style: n.boundariesStyle }, [(b(), A(Mt(i.backgroundWrapperComponent), { class: n.classes.cropperWrapper, "wheel-resize": n.settings.resizeImage.wheel, "touch-resize": n.settings.resizeImage.touch, "touch-move": n.settings.moveImage.touch, "mouse-move": n.settings.moveImage.mouse, onMove: n.onManipulateImage, onResize: n.onManipulateImage }, { default: I((function() {
1572
1572
  return [z("div", { class: n.classes.background, style: n.boundariesStyle }, null, 6), z("div", { class: n.classes.imageWrapper }, [z("img", { ref: "image", crossorigin: s.imageAttributes.crossOrigin, src: s.imageAttributes.src, class: n.classes.image, style: n.imageStyle, onMousedown: e[1] || (e[1] = Ve((function() {
1573
- }), ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), z("div", { class: n.classes.foreground, style: n.boundariesStyle }, null, 6), ce((b(), R(Mt(i.stencilComponent), de({ ref: "stencil", image: n.image, coordinates: s.coordinates, "stencil-coordinates": n.stencilCoordinates, transitions: n.transitionsOptions }, i.stencilProps, { onResize: n.onResize, onResizeEnd: n.onResizeEnd, onMove: n.onMove, onMoveEnd: n.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[ue, s.imageLoaded]]), i.canvas ? (b(), R("canvas", Ii, null, 512)) : V("", !0), i.canvas ? (b(), R("canvas", Hi, null, 512)) : V("", !0)];
1573
+ }), ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), z("div", { class: n.classes.foreground, style: n.boundariesStyle }, null, 6), ce((b(), A(Mt(i.stencilComponent), de({ ref: "stencil", image: n.image, coordinates: s.coordinates, "stencil-coordinates": n.stencilCoordinates, transitions: n.transitionsOptions }, i.stencilProps, { onResize: n.onResize, onResizeEnd: n.onResizeEnd, onMove: n.onMove, onMoveEnd: n.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[ue, s.imageLoaded]]), i.canvas ? (b(), A("canvas", Ii, null, 512)) : V("", !0), i.canvas ? (b(), A("canvas", Hi, null, 512)) : V("", !0)];
1574
1574
  })), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
1575
1575
  };
1576
1576
  const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = ["aria-label", "disabled", "max", "min", "step", "value"], $i = /* @__PURE__ */ Ft({
@@ -1615,7 +1615,7 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1615
1615
  class: "range-slider__bubble fm-typo-en-body-sm-600",
1616
1616
  style: Jt({ left: `${h.value}%` })
1617
1617
  }, O(r.value), 5)) : V("", !0),
1618
- S("input", {
1618
+ E("input", {
1619
1619
  "aria-label": c.ariaLabel,
1620
1620
  class: "range-slider__input",
1621
1621
  disabled: c.disabled,
@@ -1651,7 +1651,7 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1651
1651
  }, an = {
1652
1652
  key: 4,
1653
1653
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
1654
- }, hn = { class: "flex w-full items-center justify-end gap-8" }, wn = /* @__PURE__ */ Ft({
1654
+ }, bn = /* @__PURE__ */ Ft({
1655
1655
  __name: "ProductImageEditorDialog",
1656
1656
  props: {
1657
1657
  file: { default: null },
@@ -1674,35 +1674,35 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1674
1674
  { id: "1x1", label: () => "1:1", ratio: 1 },
1675
1675
  { id: "16x9", label: () => "16:9", ratio: 16 / 9 }
1676
1676
  ], r = L(!0), l = L("free"), c = L(1), u = L(0), d = L(null), m = L(null), g = L(null), v = L(!1), M = L(null), H = L(1), tt = (f) => n(f, { style: "percent", maximumFractionDigits: 0 }), at = st(() => {
1677
- const f = g.value, E = f ? Math.min(1, 2e3 / Math.max(f.width, f.height)) : 1;
1677
+ const f = g.value, S = f ? Math.min(1, 2e3 / Math.max(f.width, f.height)) : 1;
1678
1678
  return s("menu.product_image.editor.output_edited", {
1679
1679
  dimensions: f ? s("menu.product_image.editor.dimensions", {
1680
- width: n(Math.round(f.width * E), { useGrouping: !1 }),
1681
- height: n(Math.round(f.height * E), { useGrouping: !1 })
1680
+ width: n(Math.round(f.width * S), { useGrouping: !1 }),
1681
+ height: n(Math.round(f.height * S), { useGrouping: !1 })
1682
1682
  }) : s("menu.product_image.editor.unknown_dimensions"),
1683
1683
  format: s("menu.product_image.editor.jpeg")
1684
1684
  });
1685
1685
  }), et = st(() => {
1686
- var E;
1687
- const f = Pe.value ?? ((E = h.find((x) => x.id === l.value)) == null ? void 0 : E.ratio);
1686
+ var S;
1687
+ const f = Pe.value ?? ((S = h.find((x) => x.id === l.value)) == null ? void 0 : S.ratio);
1688
1688
  return f ? { aspectRatio: f } : {};
1689
1689
  });
1690
1690
  function _e({
1691
1691
  imageSize: f,
1692
- visibleArea: E
1692
+ visibleArea: S
1693
1693
  }) {
1694
- const x = E ?? f, W = et.value.aspectRatio;
1694
+ const x = S ?? f, W = et.value.aspectRatio;
1695
1695
  return W ? x.width / x.height > W ? { width: x.height * W, height: x.height } : { width: x.width, height: x.width / W } : x;
1696
1696
  }
1697
1697
  function De(f) {
1698
- var E, x, W, ht, k;
1699
- if (u.value = ((E = f.imageTransforms) == null ? void 0 : E.rotate) ?? 0, (x = f.image) != null && x.width && f.image.height && (m.value = {
1698
+ var S, x, W, ht, B;
1699
+ if (u.value = ((S = f.imageTransforms) == null ? void 0 : S.rotate) ?? 0, (x = f.image) != null && x.width && f.image.height && (m.value = {
1700
1700
  width: f.image.width,
1701
1701
  height: f.image.height
1702
1702
  }), (W = f.coordinates) != null && W.width && f.coordinates.height && (g.value = {
1703
1703
  width: Math.round(f.coordinates.width),
1704
1704
  height: Math.round(f.coordinates.height)
1705
- }), (ht = f.image) != null && ht.width && ((k = f.visibleArea) != null && k.width)) {
1705
+ }), (ht = f.image) != null && ht.width && ((B = f.visibleArea) != null && B.width)) {
1706
1706
  const mt = f.image.width / f.visibleArea.width;
1707
1707
  M.value ?? (M.value = mt), H.value = mt / M.value, c.value = Number(H.value.toFixed(2));
1708
1708
  }
@@ -1745,9 +1745,9 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1745
1745
  async function Fe() {
1746
1746
  var mt, Gt, Qt;
1747
1747
  if (!X.value) return null;
1748
- const f = new Image(), E = X.value;
1748
+ const f = new Image(), S = X.value;
1749
1749
  if (await new Promise((nt) => {
1750
- f.onload = () => nt(), f.onerror = () => nt(), f.src = E;
1750
+ f.onload = () => nt(), f.onerror = () => nt(), f.src = S;
1751
1751
  }), !f.naturalWidth || !f.naturalHeight) return null;
1752
1752
  const x = g.value, W = m.value, ht = !x || !W || u.value % 360 === 0 && x.width >= W.width - 1 && x.height >= W.height - 1;
1753
1753
  if (i.mode === "edit" && ht && ((mt = it.value) == null ? void 0 : mt.type) === "image/jpeg" && it.value.size <= 800 * 1024 && Math.max(f.naturalWidth, f.naturalHeight) <= 2e3)
@@ -1756,23 +1756,23 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1756
1756
  width: f.naturalWidth,
1757
1757
  height: f.naturalHeight
1758
1758
  };
1759
- let k;
1759
+ let B;
1760
1760
  if (ht) {
1761
- k = document.createElement("canvas");
1761
+ B = document.createElement("canvas");
1762
1762
  const nt = Math.min(
1763
1763
  1,
1764
1764
  2e3 / Math.max(f.naturalWidth, f.naturalHeight)
1765
1765
  );
1766
- k.width = Math.max(1, Math.round(f.naturalWidth * nt)), k.height = Math.max(1, Math.round(f.naturalHeight * nt));
1767
- const Tt = k.getContext("2d");
1766
+ B.width = Math.max(1, Math.round(f.naturalWidth * nt)), B.height = Math.max(1, Math.round(f.naturalHeight * nt));
1767
+ const Tt = B.getContext("2d");
1768
1768
  if (!Tt) return null;
1769
- Tt.imageSmoothingQuality = "high", Tt.drawImage(f, 0, 0, k.width, k.height);
1769
+ Tt.imageSmoothingQuality = "high", Tt.drawImage(f, 0, 0, B.width, B.height);
1770
1770
  } else {
1771
1771
  const nt = (Qt = (Gt = d.value) == null ? void 0 : Gt.getResult()) == null ? void 0 : Qt.canvas;
1772
1772
  if (!nt) return null;
1773
- k = nt;
1773
+ B = nt;
1774
1774
  }
1775
- return me(k);
1775
+ return me(B);
1776
1776
  }
1777
1777
  async function Ue() {
1778
1778
  if (!vt.value) {
@@ -1782,52 +1782,55 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1782
1782
  o("confirm", null), r.value = !1;
1783
1783
  return;
1784
1784
  }
1785
- const f = await Fe(), E = it.value.name.replace(/\.[^.]+$/, "") + ".jpg";
1785
+ const f = await Fe(), S = it.value.name.replace(/\.[^.]+$/, "") + ".jpg";
1786
1786
  if (!f) {
1787
1787
  o("confirm", null), r.value = !1;
1788
1788
  return;
1789
1789
  }
1790
- o("confirm", { ...f, fileName: E }), r.value = !1;
1790
+ o("confirm", { ...f, fileName: S }), r.value = !1;
1791
1791
  } finally {
1792
1792
  vt.value = !1;
1793
1793
  }
1794
1794
  }
1795
1795
  }
1796
- return (f, E) => (b(), R(A(B).FmDialog, {
1796
+ return (f, S) => (b(), A(R($).FmDialog, {
1797
1797
  modelValue: r.value,
1798
1798
  "onUpdate:modelValue": [
1799
- E[0] || (E[0] = (x) => r.value = x),
1800
- E[1] || (E[1] = (x) => !x && o("cancel"))
1799
+ S[0] || (S[0] = (x) => r.value = x),
1800
+ S[1] || (S[1] = (x) => !x && o("cancel"))
1801
1801
  ]
1802
1802
  }, {
1803
1803
  "dialog-header": I(() => [
1804
- S("div", ki, [
1805
- S("p", Bi, O($e.value), 1),
1806
- S("p", Fi, O(je.value), 1)
1804
+ E("div", ki, [
1805
+ E("p", Bi, O($e.value), 1),
1806
+ E("p", Fi, O(je.value), 1)
1807
1807
  ])
1808
1808
  ]),
1809
1809
  "dialog-footer": I(() => [
1810
- S("div", hn, [
1811
- z(A(B).FmButton, {
1812
- label: A(s)("menu.common.actions.cancel"),
1813
- variant: "tertiary",
1814
- onClick: ke
1815
- }, null, 8, ["label"]),
1816
- z(A(B).FmButton, {
1817
- disabled: vt.value,
1818
- label: i.editView ? A(a)(i.editView.confirmLabel) : A(s)("menu.common.actions.confirm"),
1819
- variant: "primary",
1820
- onClick: Ue
1821
- }, null, 8, ["disabled", "label"])
1822
- ])
1810
+ z(R($).FmSpacer, { class: "sm:hidden xs:hidden" }),
1811
+ z(R($).FmButton, {
1812
+ class: "sm:w-full xs:w-full",
1813
+ label: R(s)("menu.common.actions.cancel"),
1814
+ size: "md",
1815
+ variant: "tertiary",
1816
+ onClick: ke
1817
+ }, null, 8, ["label"]),
1818
+ z(R($).FmButton, {
1819
+ class: "sm:w-full xs:w-full",
1820
+ disabled: vt.value,
1821
+ label: i.editView ? R(a)(i.editView.confirmLabel) : R(s)("menu.common.actions.confirm"),
1822
+ size: "md",
1823
+ variant: "primary",
1824
+ onClick: Ue
1825
+ }, null, 8, ["disabled", "label"])
1823
1826
  ]),
1824
1827
  default: I(() => {
1825
1828
  var x;
1826
1829
  return [
1827
- S("div", Ui, [
1830
+ E("div", Ui, [
1828
1831
  X.value ? (b(), F(pt, { key: 1 }, [
1829
- S("div", Xi, [
1830
- z(A(We), {
1832
+ E("div", Xi, [
1833
+ z(R(We), {
1831
1834
  ref_key: "cropperRef",
1832
1835
  ref: d,
1833
1836
  canvas: { maxWidth: 4096, maxHeight: 4096 },
@@ -1841,8 +1844,8 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1841
1844
  }, null, 8, ["src", "stencil-props"])
1842
1845
  ]),
1843
1846
  i.ratioLabel ? V("", !0) : (b(), F("div", Vi, [
1844
- S("p", Ni, O(A(s)("menu.product_image.editor.ratio")), 1),
1845
- (b(), F(pt, null, xt(h, (W) => z(A(B).FmButton, {
1847
+ E("p", Ni, O(R(s)("menu.product_image.editor.ratio")), 1),
1848
+ (b(), F(pt, null, xt(h, (W) => z(R($).FmButton, {
1846
1849
  key: W.id,
1847
1850
  label: W.label(),
1848
1851
  class: "!h-[26px] !rounded-md !px-8",
@@ -1852,40 +1855,40 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1852
1855
  onClick: (ht) => Ie(W.id)
1853
1856
  }, {
1854
1857
  default: I(() => [
1855
- S("span", qi, O(W.label()), 1)
1858
+ E("span", qi, O(W.label()), 1)
1856
1859
  ]),
1857
1860
  _: 2
1858
1861
  }, 1032, ["label", "bg-color", "onClick"])), 64))
1859
1862
  ])),
1860
1863
  i.mode === "replace" ? (b(), F("div", Zi, [
1861
- z(A(B).FmIcon, {
1864
+ z(R($).FmIcon, {
1862
1865
  class: "shrink-0",
1863
1866
  color: "system-blue-400",
1864
1867
  name: "info",
1865
1868
  outline: "",
1866
1869
  size: "sm"
1867
1870
  }),
1868
- S("div", Gi, [
1869
- S("p", Qi, O(A(s)("menu.product_image.editor.replace_notice_title")), 1),
1870
- S("p", Ki, O(A(s)("menu.product_image.editor.replace_notice_body", {
1871
+ E("div", Gi, [
1872
+ E("p", Qi, O(R(s)("menu.product_image.editor.replace_notice_title")), 1),
1873
+ E("p", Ki, O(R(s)("menu.product_image.editor.replace_notice_body", {
1871
1874
  ratio: i.ratioLabel ?? ""
1872
1875
  })), 1)
1873
1876
  ])
1874
1877
  ])) : V("", !0)
1875
- ], 64)) : (b(), R(A(B).FmDropField, {
1878
+ ], 64)) : (b(), A(R($).FmDropField, {
1876
1879
  key: 0,
1877
- accept: A(He),
1880
+ accept: R(He),
1878
1881
  "content-class": "h-[280px] w-full",
1879
1882
  onFileUpload: Oe
1880
1883
  }, {
1881
1884
  "accept-text": I(() => [
1882
- S("p", Yi, O(A(s)("menu.product_image.replace.accepts")), 1)
1885
+ E("p", Yi, O(R(s)("menu.product_image.replace.accepts")), 1)
1883
1886
  ]),
1884
1887
  _: 1
1885
1888
  }, 8, ["accept"])),
1886
1889
  X.value ? (b(), F("div", Ji, [
1887
- S("p", tn, O(A(s)("menu.product_image.editor.zoom")), 1),
1888
- z(A(B).FmIcon, {
1890
+ E("p", tn, O(R(s)("menu.product_image.editor.zoom")), 1),
1891
+ z(R($).FmIcon, {
1889
1892
  color: "neutral-gray-400",
1890
1893
  name: "zoom_out",
1891
1894
  outline: "",
@@ -1894,28 +1897,28 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1894
1897
  z(ji, {
1895
1898
  "model-value": c.value,
1896
1899
  "onUpdate:modelValue": Le,
1897
- "aria-label": A(s)("menu.product_image.editor.zoom"),
1898
- class: "product-image-editor-zoom flex-1",
1900
+ "aria-label": R(s)("menu.product_image.editor.zoom"),
1901
+ class: "product-image-editor-zoom grow",
1899
1902
  "format-value": tt,
1900
1903
  max: 4,
1901
1904
  min: 1,
1902
1905
  step: 0.01
1903
1906
  }, null, 8, ["model-value", "aria-label"]),
1904
- z(A(B).FmIcon, {
1907
+ z(R($).FmIcon, {
1905
1908
  color: "neutral-gray-400",
1906
1909
  name: "zoom_in",
1907
1910
  outline: "",
1908
1911
  size: "sm"
1909
1912
  }),
1910
- S("span", en, O(tt(c.value)), 1),
1911
- z(A(B).FmButton, {
1912
- "aria-label": A(s)("menu.product_image.editor.rotate"),
1913
+ E("span", en, O(tt(c.value)), 1),
1914
+ z(R($).FmButton, {
1915
+ "aria-label": R(s)("menu.product_image.editor.rotate"),
1913
1916
  icon: "rotate_right",
1914
1917
  variant: "tertiary",
1915
1918
  onClick: Be
1916
1919
  }, null, 8, ["aria-label"]),
1917
- z(A(B).FmButton, {
1918
- "aria-label": A(s)("menu.product_image.editor.reset"),
1920
+ z(R($).FmButton, {
1921
+ "aria-label": R(s)("menu.product_image.editor.reset"),
1919
1922
  disabled: !v.value,
1920
1923
  icon: "restart_alt",
1921
1924
  variant: "tertiary",
@@ -1923,16 +1926,16 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1923
1926
  }, null, 8, ["aria-label", "disabled"])
1924
1927
  ])) : V("", !0),
1925
1928
  (x = i.editView) != null && x.noticeTitle ? (b(), F("div", nn, [
1926
- z(A(B).FmIcon, {
1929
+ z(R($).FmIcon, {
1927
1930
  class: "shrink-0",
1928
1931
  color: "system-orange-400",
1929
1932
  name: "info",
1930
1933
  outline: "",
1931
1934
  size: "sm"
1932
1935
  }),
1933
- S("div", on, [
1934
- S("p", sn, O(A(a)(i.editView.noticeTitle)), 1),
1935
- i.editView.noticeBody ? (b(), F("p", rn, O(A(a)(i.editView.noticeBody)), 1)) : V("", !0)
1936
+ E("div", on, [
1937
+ E("p", sn, O(R(a)(i.editView.noticeTitle)), 1),
1938
+ i.editView.noticeBody ? (b(), F("p", rn, O(R(a)(i.editView.noticeBody)), 1)) : V("", !0)
1936
1939
  ])
1937
1940
  ])) : V("", !0),
1938
1941
  X.value ? (b(), F("p", an, O(at.value), 1)) : V("", !0)
@@ -1944,12 +1947,12 @@ const Oi = { class: "range-slider relative flex h-[20px] items-center" }, Pi = [
1944
1947
  }
1945
1948
  });
1946
1949
  export {
1947
- fn as _,
1948
- wn as a,
1949
- pn as b,
1950
- bn as c,
1951
- vn as d,
1950
+ mn as _,
1951
+ bn as a,
1952
+ fn as b,
1953
+ vn as c,
1954
+ gn as d,
1952
1955
  We as f,
1953
1956
  ii as r,
1954
- gn as t
1957
+ pn as t
1955
1958
  };