@feedmepos/mf-brand-app-builder 0.5.14 → 0.5.16

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 (70) hide show
  1. package/dist/{App-DZzvEb1n.js → App-CqKbnZtF.js} +5 -5
  2. package/dist/{AssetsSettings-BNqB22rl.js → AssetsSettings-BwL7Hf39.js} +5 -5
  3. package/dist/{BuilderView-CdxiU_5V.js → BuilderView-DpY3fjD7.js} +316 -314
  4. package/dist/{ButtonGroup-CbW3Lnxj.js → ButtonGroup-B3ba45VA.js} +2 -2
  5. package/dist/{CircularProgress-DdblYCtV.js → CircularProgress-h90pbjU3.js} +4 -4
  6. package/dist/{ColorPicker-Bz8yOMlS.js → ColorPicker-DAysa9fA.js} +2 -2
  7. package/dist/{Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js → Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js} +2 -2
  8. package/dist/{ImageUpload-Cpkzp4iS.js → ImageUpload-Cda_zmZX.js} +9 -9
  9. package/dist/{LinkButton-D0MS93kZ.js → LinkButton-BQuuHAkv.js} +3 -3
  10. package/dist/{ListRepeater-B_aON8eJ.js → ListRepeater-CiRH4DsF.js} +2 -2
  11. package/dist/{ManagementSettings-ljpWqE-1.js → ManagementSettings-xCd9rSYl.js} +3 -3
  12. package/dist/{Select-C2r_c4vv.js → Select-CbQFoAzb.js} +2 -2
  13. package/dist/{SettingsView-BUGfoZhA.js → SettingsView-DFAxZPug.js} +2 -2
  14. package/dist/{StepperField-xVvcmxNx.js → StepperField-DrHM9EDn.js} +2 -2
  15. package/dist/{Switch-uc_zN-mb.js → Switch-8mmNQUDo.js} +2 -2
  16. package/dist/{TextAlign-BSp1Xi7F.js → TextAlign-BOC8ekaH.js} +2 -2
  17. package/dist/{TextDecorators-1C54q7us.js → TextDecorators-BJC4umDR.js} +4 -4
  18. package/dist/{TextField-DfBJB6vQ.js → TextField-BiVH5rLX.js} +2 -2
  19. package/dist/{TextStyleList-Bef3irUx.js → TextStyleList-CuPE80Py.js} +3 -3
  20. package/dist/{app-BSofsfPH.js → app-CHLqZtX1.js} +27 -27
  21. package/dist/app.js +1 -1
  22. package/dist/components/src/components/BranchList.vue.d.ts +1 -1
  23. package/dist/components/src/components/ButtonList.vue.d.ts +1 -1
  24. package/dist/components/src/components/CountrySwitcher.vue.d.ts +1 -1
  25. package/dist/components/src/components/Homepage.vue.d.ts +3 -3
  26. package/dist/components/src/components/ImageCarousel.vue.d.ts +1 -1
  27. package/dist/components/src/components/ImageDisplay.vue.d.ts +1 -1
  28. package/dist/components/src/components/MemberCard.vue.d.ts +1 -1
  29. package/dist/components/src/components/OrderHistoryCard.vue.d.ts +1 -1
  30. package/dist/components/src/components/OrderMethod.vue.d.ts +4 -1
  31. package/dist/components/src/components/TextDisplay.vue.d.ts +1 -1
  32. package/dist/components/src/components/atoms/Button.vue.d.ts +4 -4
  33. package/dist/components/src/components/atoms/CircularProgress.vue.d.ts +1 -1
  34. package/dist/components/src/components/atoms/Container.vue.d.ts +3 -3
  35. package/dist/components/src/components/atoms/Divider.vue.d.ts +1 -1
  36. package/dist/components/src/components/atoms/Icon.vue.d.ts +1 -1
  37. package/dist/components/src/components/atoms/LinkSlot.vue.d.ts +4 -4
  38. package/dist/components/src/views/OrderDetails.vue.d.ts +1 -1
  39. package/dist/{image-Dm7AsBZX.js → image-Dq-ZZEdE.js} +1 -1
  40. package/dist/{index-BZ63ygCw.js → index-C0BfhDyP.js} +1 -1
  41. package/dist/index-Cy5FK1yC.js +1734 -0
  42. package/dist/{index-CJXFGv-u.js → index-DLCLZ4cG.js} +4 -4
  43. package/dist/{index-CAfpg2Eg.js → index-j0YX9EMn.js} +158 -162
  44. package/dist/{main-BnnUrWK-.js → main-DT3xX1S6.js} +332 -321
  45. package/dist/merchant/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
  46. package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +1 -1
  47. package/dist/merchant/src/components/editor/Editor.vue.d.ts +1 -1
  48. package/dist/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +1 -1
  49. package/dist/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +1 -1
  50. package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
  51. package/dist/merchant/src/components/inputs/ColorPicker.vue.d.ts +1 -1
  52. package/dist/merchant/src/components/inputs/ImageUpload.vue.d.ts +1 -1
  53. package/dist/merchant/src/components/inputs/TextAlign.vue.d.ts +1 -1
  54. package/dist/merchant/src/components/inputs/TextDecorators.vue.d.ts +1 -1
  55. package/dist/merchant/src/components/inputs/TextStyleList.vue.d.ts +1 -1
  56. package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +1 -1
  57. package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +3 -3
  58. package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +3 -3
  59. package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +3 -3
  60. package/dist/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
  61. package/dist/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +1 -1
  62. package/dist/merchant/src/components/settings/AssetsSettings.vue.d.ts +1 -1
  63. package/dist/merchant/src/components/settings/ManagementSettings.vue.d.ts +1 -1
  64. package/dist/merchant/src/views/BuilderView.vue.d.ts +1 -1
  65. package/dist/merchant/src/views/HomeView.vue.d.ts +1 -1
  66. package/dist/merchant/src/views/SettingsView.vue.d.ts +1 -1
  67. package/dist/package.json +1 -1
  68. package/dist/{v4-CKwdnpQf.js → v4-ANoOI1Qw.js} +8 -8
  69. package/package.json +1 -1
  70. package/dist/index-B0O5NxWl.js +0 -1741
@@ -1,15 +1,10 @@
1
- import { defineComponent as bt, useAttrs as Xt, ref as p, computed as g, createElementBlock as f, watchEffect as W, nextTick as Zt, watch as Wt, openBlock as d, unref as N, Fragment as j, renderList as mt, mergeProps as pt, createBlock as K, normalizeStyle as ft, normalizeClass as L, withCtx as V, renderSlot as z, createVNode as U, onMounted as Rt, onBeforeUnmount as te, createCommentVNode as G, resolveDynamicComponent as tt, createElementVNode as D, normalizeProps as Vt, createTextVNode as Ut, toDisplayString as ct } from "vue";
2
- import { H as F, a as Ft } from "./index-B0O5NxWl.js";
1
+ import { defineComponent as bt, useAttrs as Xt, ref as p, computed as g, watchEffect as K, nextTick as Zt, watch as Kt, openBlock as d, createElementBlock as h, unref as O, Fragment as j, renderList as mt, mergeProps as pt, createBlock as G, normalizeClass as D, normalizeStyle as ht, withCtx as U, renderSlot as z, createVNode as W, onMounted as Rt, onBeforeUnmount as te, resolveDynamicComponent as tt, createCommentVNode as _, createElementVNode as L, normalizeProps as Vt, createTextVNode as Ut, toDisplayString as ct } from "vue";
2
+ import { H as F, a as Ft } from "./index-Cy5FK1yC.js";
3
3
  var ee = Object.defineProperty, ae = (s, a, t) => a in s ? ee(s, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[a] = t, k = (s, a, t) => ae(s, typeof a != "symbol" ? a + "" : a, t);
4
4
  function oe(s) {
5
5
  if (typeof document > "u") return;
6
- function a() {
7
- let t = document.head || document.getElementsByTagName("head")[0];
8
- if (!t) return;
9
- let n = document.createElement("style");
10
- n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = s : n.appendChild(document.createTextNode(s));
11
- }
12
- document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", a) : a();
6
+ let a = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style");
7
+ t.type = "text/css", a.appendChild(t), t.styleSheet ? t.styleSheet.cssText = s : t.appendChild(document.createTextNode(s));
13
8
  }
14
9
  oe(":where([data-sonner-toaster][dir=ltr]),:where(html[dir=ltr]){--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}:where([data-sonner-toaster][dir=rtl]),:where(html[dir=rtl]){--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted=true]){transform:translateY(-10px)}@media (hover:none) and (pointer:coarse){:where([data-sonner-toaster][data-lifted=true]){transform:none}}:where([data-sonner-toaster][data-x-position=right]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=left]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=center]){left:50%;transform:translateX(-50%)}:where([data-sonner-toaster][data-y-position=top]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=bottom]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=true]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast][data-y-position=top]){top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=bottom]){bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=true]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=dark]) :where([data-cancel]){background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast]) :where([data-disabled=true]){cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=true])::before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=top][data-swiping=true])::before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=bottom][data-swiping=true])::before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=false][data-removed=true])::before{content:'';position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast])::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=true]){--y:translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=false][data-front=false]){--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=false][data-front=false][data-styled=true])>*{opacity:0}:where([data-sonner-toast][data-visible=false]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=true][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]){--y:translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]){--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=true][data-front=false])::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
15
10
  let yt = 0;
@@ -24,14 +19,14 @@ class se {
24
19
  this.publish(a), this.toasts = [...this.toasts, a];
25
20
  }), k(this, "create", (a) => {
26
21
  var t;
27
- const { message: n, ...r } = a, y = typeof a.id == "number" || a.id && ((t = a.id) == null ? void 0 : t.length) > 0 ? a.id : yt++, T = this.toasts.find((h) => h.id === y), E = a.dismissible === void 0 ? !0 : a.dismissible;
28
- return T ? this.toasts = this.toasts.map((h) => h.id === y ? (this.publish({ ...h, ...a, id: y, title: n }), {
29
- ...h,
22
+ const { message: n, ...r } = a, y = typeof a.id == "number" || a.id && ((t = a.id) == null ? void 0 : t.length) > 0 ? a.id : yt++, T = this.toasts.find((v) => v.id === y), E = a.dismissible === void 0 ? !0 : a.dismissible;
23
+ return T ? this.toasts = this.toasts.map((v) => v.id === y ? (this.publish({ ...v, ...a, id: y, title: n }), {
24
+ ...v,
30
25
  ...a,
31
26
  id: y,
32
27
  dismissible: E,
33
28
  title: n
34
- }) : h) : this.addToast({ title: n, ...r, dismissible: E, id: y }), y;
29
+ }) : v) : this.addToast({ title: n, ...r, dismissible: E, id: y }), y;
35
30
  }), k(this, "dismiss", (a) => (a || this.toasts.forEach((t) => {
36
31
  this.subscribers.forEach(
37
32
  (n) => n({ id: t.id, dismiss: !0 })
@@ -52,35 +47,35 @@ class se {
52
47
  const E = r.then(async (c) => {
53
48
  if (T = ["resolve", c], re(c) && !c.ok) {
54
49
  y = !1;
55
- const v = typeof t.error == "function" ? await t.error(
50
+ const f = typeof t.error == "function" ? await t.error(
56
51
  `HTTP error! status: ${c.status}`
57
52
  ) : t.error, b = typeof t.description == "function" ? (
58
53
  // @ts-expect-error
59
54
  await t.description(`HTTP error! status: ${c.status}`)
60
55
  ) : t.description;
61
- this.create({ id: n, type: "error", message: v, description: b });
56
+ this.create({ id: n, type: "error", message: f, description: b });
62
57
  } else if (t.success !== void 0) {
63
58
  y = !1;
64
- const v = typeof t.success == "function" ? await t.success(c) : t.success, b = typeof t.description == "function" ? await t.description(c) : t.description;
65
- this.create({ id: n, type: "success", message: v, description: b });
59
+ const f = typeof t.success == "function" ? await t.success(c) : t.success, b = typeof t.description == "function" ? await t.description(c) : t.description;
60
+ this.create({ id: n, type: "success", message: f, description: b });
66
61
  }
67
62
  }).catch(async (c) => {
68
63
  if (T = ["reject", c], t.error !== void 0) {
69
64
  y = !1;
70
- const v = typeof t.error == "function" ? await t.error(c) : t.error, b = typeof t.description == "function" ? await t.description(
65
+ const f = typeof t.error == "function" ? await t.error(c) : t.error, b = typeof t.description == "function" ? await t.description(
71
66
  c
72
67
  ) : t.description;
73
- this.create({ id: n, type: "error", message: v, description: b });
68
+ this.create({ id: n, type: "error", message: f, description: b });
74
69
  }
75
70
  }).finally(() => {
76
71
  var c;
77
72
  y && (this.dismiss(n), n = void 0), (c = t.finally) == null || c.call(t);
78
- }), h = () => new Promise(
79
- (c, v) => E.then(
80
- () => T[0] === "reject" ? v(T[1]) : c(T[1])
81
- ).catch(v)
73
+ }), v = () => new Promise(
74
+ (c, f) => E.then(
75
+ () => T[0] === "reject" ? f(T[1]) : c(T[1])
76
+ ).catch(f)
82
77
  );
83
- return typeof n != "string" && typeof n != "number" ? { unwrap: h } : Object.assign(n, { unwrap: h });
78
+ return typeof n != "string" && typeof n != "number" ? { unwrap: v } : Object.assign(n, { unwrap: v });
84
79
  }), k(this, "custom", (a, t) => {
85
80
  const n = (t == null ? void 0 : t.id) || yt++;
86
81
  return this.publish({ component: a, id: n, ...t }), n;
@@ -119,7 +114,7 @@ function ut(s) {
119
114
  }
120
115
  function de() {
121
116
  const s = p(!1);
122
- return W(() => {
117
+ return K(() => {
123
118
  const a = () => {
124
119
  s.value = document.hidden;
125
120
  };
@@ -128,7 +123,7 @@ function de() {
128
123
  isDocumentHidden: s
129
124
  };
130
125
  }
131
- const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "data-promise", "data-removed", "data-visible", "data-y-position", "data-x-position", "data-index", "data-front", "data-swiping", "data-dismissible", "data-type", "data-invert", "data-swipe-out", "data-expanded"], ue = ["aria-label", "data-disabled"], Gt = 4e3, pe = 20, fe = 200, he = /* @__PURE__ */ bt({
126
+ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "data-promise", "data-removed", "data-visible", "data-y-position", "data-x-position", "data-index", "data-front", "data-swiping", "data-dismissible", "data-type", "data-invert", "data-swipe-out", "data-expanded"], ue = ["aria-label", "data-disabled"], Wt = 4e3, pe = 20, he = 200, ve = /* @__PURE__ */ bt({
132
127
  __name: "Toast",
133
128
  props: {
134
129
  toast: {},
@@ -160,23 +155,23 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
160
155
  },
161
156
  emits: ["update:heights", "removeToast"],
162
157
  setup(s, { emit: a }) {
163
- const t = s, n = a, r = p(!1), y = p(!1), T = p(!1), E = p(!1), h = p(!1), c = p(0), v = p(0), b = p(
164
- t.toast.duration || t.duration || Gt
165
- ), I = p(null), B = p(null), ht = g(() => t.index === 0), vt = g(() => t.index + 1 <= t.visibleToasts), S = g(() => t.toast.type), O = g(() => t.toast.dismissible !== !1), gt = g(() => t.toast.class || ""), o = g(() => t.descriptionClass || ""), i = t.toast.style || {}, l = g(
158
+ const t = s, n = a, r = p(!1), y = p(!1), T = p(!1), E = p(!1), v = p(!1), c = p(0), f = p(0), b = p(
159
+ t.toast.duration || t.duration || Wt
160
+ ), I = p(null), B = p(null), vt = g(() => t.index === 0), ft = g(() => t.index + 1 <= t.visibleToasts), S = g(() => t.toast.type), N = g(() => t.toast.dismissible !== !1), gt = g(() => t.toast.class || ""), o = g(() => t.descriptionClass || ""), i = t.toast.style || {}, l = g(
166
161
  () => t.heights.findIndex((e) => e.toastId === t.toast.id) || 0
167
162
  ), w = g(() => t.toast.closeButton ?? t.closeButton);
168
163
  g(
169
- () => t.toast.duration || t.duration || Gt
164
+ () => t.toast.duration || t.duration || Wt
170
165
  );
171
166
  const P = p(0), A = p(0), H = p(null), q = g(() => t.position.split("-")), J = g(() => q.value[0]), at = g(() => q.value[1]), ot = g(() => typeof t.toast.title != "string"), st = g(
172
167
  () => typeof t.toast.description != "string"
173
- ), nt = g(() => t.heights.reduce((e, u, x) => x >= l.value ? e : e + u.height, 0)), rt = de(), it = g(() => t.toast.invert || t.invert), _ = g(() => S.value === "loading"), Y = g(() => l.value * t.gap + nt.value || 0);
168
+ ), nt = g(() => t.heights.reduce((e, u, x) => x >= l.value ? e : e + u.height, 0)), rt = de(), it = g(() => t.toast.invert || t.invert), R = g(() => S.value === "loading"), Y = g(() => l.value * t.gap + nt.value || 0);
174
169
  Rt(() => {
175
170
  if (!r.value) return;
176
171
  const e = B.value, u = e == null ? void 0 : e.style.height;
177
172
  e.style.height = "auto";
178
173
  const x = e.getBoundingClientRect().height;
179
- e.style.height = u, v.value = x;
174
+ e.style.height = u, f.value = x;
180
175
  let C;
181
176
  t.heights.find(
182
177
  (m) => m.toastId === t.toast.id
@@ -191,44 +186,44 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
191
186
  ...t.heights
192
187
  ], n("update:heights", C);
193
188
  });
194
- function R() {
189
+ function V() {
195
190
  y.value = !0, c.value = Y.value;
196
191
  const e = t.heights.filter(
197
192
  (u) => u.toastId !== t.toast.id
198
193
  );
199
194
  n("update:heights", e), setTimeout(() => {
200
195
  n("removeToast", t.toast);
201
- }, fe);
196
+ }, he);
202
197
  }
203
198
  function wt() {
204
199
  var e, u;
205
- if (_.value || !O.value)
200
+ if (R.value || !N.value)
206
201
  return {};
207
- R(), (u = (e = t.toast).onDismiss) == null || u.call(e, t.toast);
202
+ V(), (u = (e = t.toast).onDismiss) == null || u.call(e, t.toast);
208
203
  }
209
204
  function qt(e) {
210
- _.value || !O.value || (I.value = /* @__PURE__ */ new Date(), c.value = Y.value, e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (T.value = !0, H.value = { x: e.clientX, y: e.clientY }));
205
+ R.value || !N.value || (I.value = /* @__PURE__ */ new Date(), c.value = Y.value, e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (T.value = !0, H.value = { x: e.clientX, y: e.clientY }));
211
206
  }
212
207
  function Jt() {
213
208
  var e, u, x, C, m;
214
- if (E.value || !O) return;
209
+ if (E.value || !N) return;
215
210
  H.value = null;
216
211
  const M = Number(
217
212
  ((e = B.value) == null ? void 0 : e.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0
218
213
  ), lt = (/* @__PURE__ */ new Date()).getTime() - ((u = I.value) == null ? void 0 : u.getTime()), dt = Math.abs(M) / lt;
219
214
  if (Math.abs(M) >= pe || dt > 0.11) {
220
- c.value = Y.value, (C = (x = t.toast).onDismiss) == null || C.call(x, t.toast), R(), E.value = !0, h.value = !1;
215
+ c.value = Y.value, (C = (x = t.toast).onDismiss) == null || C.call(x, t.toast), V(), E.value = !0, v.value = !1;
221
216
  return;
222
217
  }
223
218
  (m = B.value) == null || m.style.setProperty("--swipe-amount", "0px"), T.value = !1;
224
219
  }
225
220
  function Qt(e) {
226
221
  var u, x;
227
- if (!H.value || !O.value) return;
222
+ if (!H.value || !N.value) return;
228
223
  const C = e.clientY - H.value.y, m = ((u = window.getSelection()) == null ? void 0 : u.toString().length) > 0, M = J.value === "top" ? Math.min(0, C) : Math.max(0, C);
229
- Math.abs(M) > 0 && (h.value = !0), !m && ((x = B.value) == null || x.style.setProperty("--swipe-amount", `${M}px`));
224
+ Math.abs(M) > 0 && (v.value = !0), !m && ((x = B.value) == null || x.style.setProperty("--swipe-amount", `${M}px`));
230
225
  }
231
- return W((e) => {
226
+ return K((e) => {
232
227
  if (t.toast.promise && S.value === "loading" || t.toast.duration === 1 / 0 || t.toast.type === "loading")
233
228
  return;
234
229
  let u;
@@ -241,16 +236,16 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
241
236
  }, C = () => {
242
237
  b.value !== 1 / 0 && (P.value = (/* @__PURE__ */ new Date()).getTime(), u = setTimeout(() => {
243
238
  var m, M;
244
- (M = (m = t.toast).onAutoClose) == null || M.call(m, t.toast), R();
239
+ (M = (m = t.toast).onAutoClose) == null || M.call(m, t.toast), V();
245
240
  }, b.value));
246
241
  };
247
242
  t.expanded || t.interacting || t.pauseWhenPageIsHidden && rt ? x() : C(), e(() => {
248
243
  clearTimeout(u);
249
244
  });
250
- }), Wt(
245
+ }), Kt(
251
246
  () => t.toast.delete,
252
247
  () => {
253
- t.toast.delete && R();
248
+ t.toast.delete && V();
254
249
  },
255
250
  {
256
251
  deep: !0
@@ -258,7 +253,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
258
253
  ), Rt(() => {
259
254
  if (r.value = !0, B.value) {
260
255
  const e = B.value.getBoundingClientRect().height;
261
- v.value = e;
256
+ f.value = e;
262
257
  const u = [
263
258
  { toastId: t.toast.id, height: e, position: t.toast.position },
264
259
  ...t.heights
@@ -273,8 +268,8 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
273
268
  n("update:heights", e);
274
269
  }
275
270
  }), (e, u) => {
276
- var x, C, m, M, lt, dt, xt, kt, Bt, Ct, Tt, St, Pt, $t, Et, zt, Mt, It, At, Yt, Ht, Lt, Dt, Ot, Nt, jt, _t;
277
- return d(), f("li", {
271
+ var x, C, m, M, lt, dt, xt, kt, Bt, Ct, Tt, St, Pt, $t, Et, zt, Mt, It, At, Yt, Ht, Dt, Lt, Nt, Ot, _t, jt;
272
+ return d(), h("li", {
278
273
  ref_key: "toastRef",
279
274
  ref: B,
280
275
  "aria-live": e.toast.important ? "assertive" : "polite",
@@ -282,7 +277,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
282
277
  role: "status",
283
278
  tabindex: "0",
284
279
  "data-sonner-toast": "true",
285
- class: L(
280
+ class: D(
286
281
  e.cn(
287
282
  t.class,
288
283
  gt.value,
@@ -299,66 +294,67 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
299
294
  "data-mounted": r.value,
300
295
  "data-promise": !!e.toast.promise,
301
296
  "data-removed": y.value,
302
- "data-visible": vt.value,
297
+ "data-visible": ft.value,
303
298
  "data-y-position": J.value,
304
299
  "data-x-position": at.value,
305
300
  "data-index": e.index,
306
- "data-front": ht.value,
301
+ "data-front": vt.value,
307
302
  "data-swiping": T.value,
308
- "data-dismissible": O.value,
303
+ "data-dismissible": N.value,
309
304
  "data-type": S.value,
310
305
  "data-invert": it.value,
311
306
  "data-swipe-out": E.value,
312
307
  "data-expanded": !!(e.expanded || e.expandByDefault && r.value),
313
- style: ft({
308
+ style: ht({
314
309
  "--index": e.index,
315
310
  "--toasts-before": e.index,
316
311
  "--z-index": e.toasts.length - e.index,
317
312
  "--offset": `${y.value ? c.value : Y.value}px`,
318
- "--initial-height": e.expandByDefault ? "auto" : `${v.value}px`,
313
+ "--initial-height": e.expandByDefault ? "auto" : `${f.value}px`,
319
314
  ...e.style,
320
- ...N(i)
315
+ ...O(i)
321
316
  }),
322
317
  onPointerdown: qt,
323
318
  onPointerup: Jt,
324
319
  onPointermove: Qt
325
320
  }, [
326
- w.value && !e.toast.component ? (d(), f("button", {
321
+ w.value && !e.toast.component ? (d(), h("button", {
327
322
  key: 0,
328
323
  "aria-label": e.closeButtonAriaLabel || "Close toast",
329
- "data-disabled": _.value,
324
+ "data-disabled": R.value,
330
325
  "data-close-button": "true",
331
- class: L(e.cn((xt = e.classes) == null ? void 0 : xt.closeButton, (Bt = (kt = e.toast) == null ? void 0 : kt.classes) == null ? void 0 : Bt.closeButton)),
326
+ class: D(e.cn((xt = e.classes) == null ? void 0 : xt.closeButton, (Bt = (kt = e.toast) == null ? void 0 : kt.classes) == null ? void 0 : Bt.closeButton)),
332
327
  onClick: wt
333
328
  }, [
334
- (Ct = e.icons) != null && Ct.close ? (d(), K(tt((Tt = e.icons) == null ? void 0 : Tt.close), { key: 0 })) : z(e.$slots, "close-icon", { key: 1 })
335
- ], 10, ue)) : G("", !0),
336
- e.toast.component ? (d(), K(tt(e.toast.component), pt({ key: 1 }, e.toast.componentProps, { onCloseToast: wt }), null, 16)) : (d(), f(j, { key: 2 }, [
337
- S.value !== "default" || e.toast.icon || e.toast.promise ? (d(), f("div", {
329
+ (Ct = e.icons) != null && Ct.close ? (d(), G(tt((Tt = e.icons) == null ? void 0 : Tt.close), { key: 0 })) : z(e.$slots, "close-icon", { key: 1 })
330
+ ], 10, ue)) : _("", !0),
331
+ e.toast.component ? (d(), G(tt(e.toast.component), pt({ key: 1 }, e.toast.componentProps, { onCloseToast: wt }), null, 16)) : (d(), h(j, { key: 2 }, [
332
+ S.value !== "default" || e.toast.icon || e.toast.promise ? (d(), h("div", {
338
333
  key: 0,
339
334
  "data-icon": "",
340
- class: L(e.cn((St = e.classes) == null ? void 0 : St.icon, ($t = (Pt = e.toast) == null ? void 0 : Pt.classes) == null ? void 0 : $t.icon))
335
+ class: D(e.cn((St = e.classes) == null ? void 0 : St.icon, ($t = (Pt = e.toast) == null ? void 0 : Pt.classes) == null ? void 0 : $t.icon))
341
336
  }, [
342
- e.toast.icon ? (d(), K(tt(e.toast.icon), { key: 0 })) : (d(), f(j, { key: 1 }, [
343
- S.value === "loading" ? z(e.$slots, "loading-icon", { key: 0 }) : S.value === "success" ? z(e.$slots, "success-icon", { key: 1 }) : S.value === "error" ? z(e.$slots, "error-icon", { key: 2 }) : S.value === "warning" ? z(e.$slots, "warning-icon", { key: 3 }) : S.value === "info" ? z(e.$slots, "info-icon", { key: 4 }) : G("", !0)
337
+ (e.toast.promise || S.value === "loading") && !e.toast.icon ? z(e.$slots, "loading-icon", { key: 0 }) : _("", !0),
338
+ e.toast.icon ? (d(), G(tt(e.toast.icon), { key: 1 })) : (d(), h(j, { key: 2 }, [
339
+ S.value === "success" ? z(e.$slots, "success-icon", { key: 0 }) : S.value === "error" ? z(e.$slots, "error-icon", { key: 1 }) : S.value === "warning" ? z(e.$slots, "warning-icon", { key: 2 }) : S.value === "info" ? z(e.$slots, "info-icon", { key: 3 }) : _("", !0)
344
340
  ], 64))
345
- ], 2)) : G("", !0),
346
- D("div", {
341
+ ], 2)) : _("", !0),
342
+ L("div", {
347
343
  "data-content": "",
348
- class: L(e.cn((Et = e.classes) == null ? void 0 : Et.content, (Mt = (zt = e.toast) == null ? void 0 : zt.classes) == null ? void 0 : Mt.content))
344
+ class: D(e.cn((Et = e.classes) == null ? void 0 : Et.content, (Mt = (zt = e.toast) == null ? void 0 : zt.classes) == null ? void 0 : Mt.content))
349
345
  }, [
350
- D("div", {
346
+ L("div", {
351
347
  "data-title": "",
352
- class: L(e.cn((It = e.classes) == null ? void 0 : It.title, (At = e.toast.classes) == null ? void 0 : At.title))
348
+ class: D(e.cn((It = e.classes) == null ? void 0 : It.title, (At = e.toast.classes) == null ? void 0 : At.title))
353
349
  }, [
354
- ot.value ? (d(), K(tt(e.toast.title), Vt(pt({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), f(j, { key: 1 }, [
350
+ ot.value ? (d(), G(tt(e.toast.title), Vt(pt({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), h(j, { key: 1 }, [
355
351
  Ut(ct(e.toast.title), 1)
356
352
  ], 64))
357
353
  ], 2),
358
- e.toast.description ? (d(), f("div", {
354
+ e.toast.description ? (d(), h("div", {
359
355
  key: 0,
360
356
  "data-description": "",
361
- class: L(
357
+ class: D(
362
358
  e.cn(
363
359
  e.descriptionClass,
364
360
  o.value,
@@ -367,33 +363,33 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
367
363
  )
368
364
  )
369
365
  }, [
370
- st.value ? (d(), K(tt(e.toast.description), Vt(pt({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), f(j, { key: 1 }, [
366
+ st.value ? (d(), G(tt(e.toast.description), Vt(pt({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), h(j, { key: 1 }, [
371
367
  Ut(ct(e.toast.description), 1)
372
368
  ], 64))
373
- ], 2)) : G("", !0)
369
+ ], 2)) : _("", !0)
374
370
  ], 2),
375
- e.toast.cancel ? (d(), f("button", {
371
+ e.toast.cancel ? (d(), h("button", {
376
372
  key: 1,
377
- style: ft(e.toast.cancelButtonStyle || e.cancelButtonStyle),
378
- class: L(e.cn((Lt = e.classes) == null ? void 0 : Lt.cancelButton, (Dt = e.toast.classes) == null ? void 0 : Dt.cancelButton)),
373
+ style: ht(e.toast.cancelButtonStyle || e.cancelButtonStyle),
374
+ class: D(e.cn((Dt = e.classes) == null ? void 0 : Dt.cancelButton, (Lt = e.toast.classes) == null ? void 0 : Lt.cancelButton)),
379
375
  "data-button": "",
380
376
  "data-cancel": "",
381
377
  onClick: u[0] || (u[0] = (Q) => {
382
378
  var X, Z;
383
- N(ut)(e.toast.cancel) && O.value && ((Z = (X = e.toast.cancel).onClick) == null || Z.call(X, Q), R());
379
+ O(ut)(e.toast.cancel) && N.value && ((Z = (X = e.toast.cancel).onClick) == null || Z.call(X, Q), V());
384
380
  })
385
- }, ct(N(ut)(e.toast.cancel) ? (Ot = e.toast.cancel) == null ? void 0 : Ot.label : e.toast.cancel), 7)) : G("", !0),
386
- e.toast.action ? (d(), f("button", {
381
+ }, ct(O(ut)(e.toast.cancel) ? (Nt = e.toast.cancel) == null ? void 0 : Nt.label : e.toast.cancel), 7)) : _("", !0),
382
+ e.toast.action ? (d(), h("button", {
387
383
  key: 2,
388
- style: ft(e.toast.actionButtonStyle || e.actionButtonStyle),
389
- class: L(e.cn((Nt = e.classes) == null ? void 0 : Nt.actionButton, (jt = e.toast.classes) == null ? void 0 : jt.actionButton)),
384
+ style: ht(e.toast.actionButtonStyle || e.actionButtonStyle),
385
+ class: D(e.cn((Ot = e.classes) == null ? void 0 : Ot.actionButton, (_t = e.toast.classes) == null ? void 0 : _t.actionButton)),
390
386
  "data-button": "",
391
387
  "data-action": "",
392
388
  onClick: u[1] || (u[1] = (Q) => {
393
389
  var X, Z;
394
- N(ut)(e.toast.action) && (Q.defaultPrevented || ((Z = (X = e.toast.action).onClick) == null || Z.call(X, Q), !Q.defaultPrevented && R()));
390
+ O(ut)(e.toast.action) && (Q.defaultPrevented || ((Z = (X = e.toast.action).onClick) == null || Z.call(X, Q), !Q.defaultPrevented && V()));
395
391
  })
396
- }, ct(N(ut)(e.toast.action) ? (_t = e.toast.action) == null ? void 0 : _t.label : e.toast.action), 7)) : G("", !0)
392
+ }, ct(O(ut)(e.toast.action) ? (jt = e.toast.action) == null ? void 0 : jt.label : e.toast.action), 7)) : _("", !0)
397
393
  ], 64))
398
394
  ], 46, ce);
399
395
  };
@@ -403,7 +399,7 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
403
399
  for (const [n, r] of a)
404
400
  t[n] = r;
405
401
  return t;
406
- }, ve = {}, ge = {
402
+ }, fe = {}, ge = {
407
403
  xmlns: "http://www.w3.org/2000/svg",
408
404
  width: "12",
409
405
  height: "12",
@@ -415,14 +411,14 @@ const ce = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
415
411
  "stroke-linejoin": "round"
416
412
  };
417
413
  function me(s, a) {
418
- return d(), f("svg", ge, a[0] || (a[0] = [
419
- D("line", {
414
+ return d(), h("svg", ge, a[0] || (a[0] = [
415
+ L("line", {
420
416
  x1: "18",
421
417
  y1: "6",
422
418
  x2: "6",
423
419
  y2: "18"
424
420
  }, null, -1),
425
- D("line", {
421
+ L("line", {
426
422
  x1: "6",
427
423
  y1: "6",
428
424
  x2: "18",
@@ -430,19 +426,19 @@ function me(s, a) {
430
426
  }, null, -1)
431
427
  ]));
432
428
  }
433
- const ye = /* @__PURE__ */ et(ve, [["render", me]]), be = ["data-visible"], we = { class: "sonner-spinner" }, xe = /* @__PURE__ */ bt({
429
+ const ye = /* @__PURE__ */ et(fe, [["render", me]]), be = ["data-visible"], we = { class: "sonner-spinner" }, xe = /* @__PURE__ */ bt({
434
430
  __name: "Loader",
435
431
  props: {
436
432
  visible: { type: Boolean }
437
433
  },
438
434
  setup(s) {
439
435
  const a = Array(12).fill(0);
440
- return (t, n) => (d(), f("div", {
436
+ return (t, n) => (d(), h("div", {
441
437
  class: "sonner-loading-wrapper",
442
438
  "data-visible": t.visible
443
439
  }, [
444
- D("div", we, [
445
- (d(!0), f(j, null, mt(N(a), (r) => (d(), f("div", {
440
+ L("div", we, [
441
+ (d(!0), h(j, null, mt(O(a), (r) => (d(), h("div", {
446
442
  key: `spinner-bar-${r}`,
447
443
  class: "sonner-loading-bar"
448
444
  }))), 128))
@@ -457,8 +453,8 @@ const ye = /* @__PURE__ */ et(ve, [["render", me]]), be = ["data-visible"], we =
457
453
  width: "20"
458
454
  };
459
455
  function Ce(s, a) {
460
- return d(), f("svg", Be, a[0] || (a[0] = [
461
- D("path", {
456
+ return d(), h("svg", Be, a[0] || (a[0] = [
457
+ L("path", {
462
458
  "fill-rule": "evenodd",
463
459
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
464
460
  "clip-rule": "evenodd"
@@ -473,8 +469,8 @@ const Te = /* @__PURE__ */ et(ke, [["render", Ce]]), Se = {}, Pe = {
473
469
  width: "20"
474
470
  };
475
471
  function $e(s, a) {
476
- return d(), f("svg", Pe, a[0] || (a[0] = [
477
- D("path", {
472
+ return d(), h("svg", Pe, a[0] || (a[0] = [
473
+ L("path", {
478
474
  "fill-rule": "evenodd",
479
475
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
480
476
  "clip-rule": "evenodd"
@@ -489,8 +485,8 @@ const Ee = /* @__PURE__ */ et(Se, [["render", $e]]), ze = {}, Me = {
489
485
  width: "20"
490
486
  };
491
487
  function Ie(s, a) {
492
- return d(), f("svg", Me, a[0] || (a[0] = [
493
- D("path", {
488
+ return d(), h("svg", Me, a[0] || (a[0] = [
489
+ L("path", {
494
490
  "fill-rule": "evenodd",
495
491
  d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
496
492
  "clip-rule": "evenodd"
@@ -504,16 +500,16 @@ const Ae = /* @__PURE__ */ et(ze, [["render", Ie]]), Ye = {}, He = {
504
500
  height: "20",
505
501
  width: "20"
506
502
  };
507
- function Le(s, a) {
508
- return d(), f("svg", He, a[0] || (a[0] = [
509
- D("path", {
503
+ function De(s, a) {
504
+ return d(), h("svg", He, a[0] || (a[0] = [
505
+ L("path", {
510
506
  "fill-rule": "evenodd",
511
507
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
512
508
  "clip-rule": "evenodd"
513
509
  }, null, -1)
514
510
  ]));
515
511
  }
516
- const De = /* @__PURE__ */ et(Ye, [["render", Le]]), Oe = ["aria-label"], Ne = ["dir", "data-theme", "data-rich-colors", "data-y-position", "data-x-position", "data-lifted"], je = 3, Kt = "32px", _e = 356, Re = 14, Ve = typeof window < "u" && typeof document < "u";
512
+ const Le = /* @__PURE__ */ et(Ye, [["render", De]]), Ne = ["aria-label"], Oe = ["dir", "data-theme", "data-rich-colors", "data-y-position", "data-x-position", "data-lifted"], _e = 3, Gt = "32px", je = 356, Re = 14, Ve = typeof window < "u" && typeof document < "u";
517
513
  function Ue(...s) {
518
514
  return s.filter(Boolean).join(" ");
519
515
  }
@@ -530,12 +526,12 @@ const aa = /* @__PURE__ */ bt({
530
526
  expand: { type: Boolean, default: !1 },
531
527
  duration: {},
532
528
  gap: { default: Re },
533
- visibleToasts: { default: je },
529
+ visibleToasts: { default: _e },
534
530
  closeButton: { type: Boolean, default: !1 },
535
531
  toastOptions: { default: () => ({}) },
536
532
  class: { default: "" },
537
533
  style: { default: () => ({}) },
538
- offset: { default: Kt },
534
+ offset: { default: Gt },
539
535
  dir: { default: "auto" },
540
536
  icons: {},
541
537
  containerAriaLabel: { default: "Notifications" },
@@ -554,10 +550,10 @@ const aa = /* @__PURE__ */ bt({
554
550
  )), T = g(() => {
555
551
  const o = r.value.filter((i) => i.position).map((i) => i.position);
556
552
  return o.length > 0 ? Array.from(new Set([a.position].concat(o))) : [a.position];
557
- }), E = p([]), h = p(!1), c = p(!1), v = p(
553
+ }), E = p([]), v = p(!1), c = p(!1), f = p(
558
554
  a.theme !== "system" ? a.theme : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
559
- ), b = p(null), I = p(null), B = p(!1), ht = a.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
560
- function vt(o) {
555
+ ), b = p(null), I = p(null), B = p(!1), vt = a.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
556
+ function ft(o) {
561
557
  var i;
562
558
  (i = r.value.find((l) => l.id === o.id)) != null && i.delete || $.dismiss(o.id), r.value = r.value.filter(({ id: l }) => l !== o.id);
563
559
  }
@@ -565,13 +561,13 @@ const aa = /* @__PURE__ */ bt({
565
561
  var i, l;
566
562
  B.value && !((l = (i = o.currentTarget) == null ? void 0 : i.contains) != null && l.call(i, o.relatedTarget)) && (B.value = !1, I.value && (I.value.focus({ preventScroll: !0 }), I.value = null));
567
563
  }
568
- function O(o) {
564
+ function N(o) {
569
565
  o.target instanceof HTMLElement && o.target.dataset.dismissible === "false" || B.value || (B.value = !0, I.value = o.relatedTarget);
570
566
  }
571
567
  function gt(o) {
572
568
  o.target && o.target instanceof HTMLElement && o.target.dataset.dismissible === "false" || (c.value = !0);
573
569
  }
574
- return W((o) => {
570
+ return K((o) => {
575
571
  const i = $.subscribe((l) => {
576
572
  if (l.dismiss) {
577
573
  r.value = r.value.map(
@@ -591,55 +587,55 @@ const aa = /* @__PURE__ */ bt({
591
587
  });
592
588
  });
593
589
  o(i);
594
- }), Wt(
590
+ }), Kt(
595
591
  () => a.theme,
596
592
  (o) => {
597
593
  if (o !== "system") {
598
- v.value = o;
594
+ f.value = o;
599
595
  return;
600
596
  }
601
- if (o === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? v.value = "dark" : v.value = "light"), typeof window > "u") return;
597
+ if (o === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? f.value = "dark" : f.value = "light"), typeof window > "u") return;
602
598
  const i = window.matchMedia("(prefers-color-scheme: dark)");
603
599
  try {
604
600
  i.addEventListener("change", ({ matches: l }) => {
605
- l ? v.value = "dark" : v.value = "light";
601
+ l ? f.value = "dark" : f.value = "light";
606
602
  });
607
603
  } catch {
608
604
  i.addListener(({ matches: l }) => {
609
605
  try {
610
- l ? v.value = "dark" : v.value = "light";
606
+ l ? f.value = "dark" : f.value = "light";
611
607
  } catch (w) {
612
608
  console.error(w);
613
609
  }
614
610
  });
615
611
  }
616
612
  }
617
- ), W(() => {
613
+ ), K(() => {
618
614
  b.value && I.value && (I.value.focus({ preventScroll: !0 }), I.value = null, B.value = !1);
619
- }), W(() => {
620
- r.value.length <= 1 && (h.value = !1);
621
- }), W((o) => {
615
+ }), K(() => {
616
+ r.value.length <= 1 && (v.value = !1);
617
+ }), K((o) => {
622
618
  function i(l) {
623
619
  const w = a.hotkey.every(
624
620
  (H) => l[H] || l.code === H
625
621
  ), P = Array.isArray(b.value) ? b.value[0] : b.value;
626
- w && (h.value = !0, P == null || P.focus());
622
+ w && (v.value = !0, P == null || P.focus());
627
623
  const A = document.activeElement === b.value || (P == null ? void 0 : P.contains(document.activeElement));
628
- l.code === "Escape" && A && (h.value = !1);
624
+ l.code === "Escape" && A && (v.value = !1);
629
625
  }
630
626
  Ve && (document.addEventListener("keydown", i), o(() => {
631
627
  document.removeEventListener("keydown", i);
632
628
  }));
633
- }), (o, i) => (d(), f("section", {
634
- "aria-label": `${o.containerAriaLabel} ${N(ht)}`,
629
+ }), (o, i) => (d(), h("section", {
630
+ "aria-label": `${o.containerAriaLabel} ${O(vt)}`,
635
631
  tabIndex: -1,
636
632
  "aria-live": "polite",
637
633
  "aria-relevant": "additions text",
638
634
  "aria-atomic": "false"
639
635
  }, [
640
- (d(!0), f(j, null, mt(T.value, (l, w) => {
636
+ (d(!0), h(j, null, mt(T.value, (l, w) => {
641
637
  var P;
642
- return d(), f("ol", pt({
638
+ return d(), h("ol", pt({
643
639
  key: l,
644
640
  ref_for: !0,
645
641
  ref_key: "listRef",
@@ -652,29 +648,29 @@ const aa = /* @__PURE__ */ bt({
652
648
  "data-rich-colors": o.richColors,
653
649
  "data-y-position": l.split("-")[0],
654
650
  "data-x-position": l.split("-")[1],
655
- "data-lifted": h.value && r.value.length > 1 && !o.expand,
651
+ "data-lifted": v.value && r.value.length > 1 && !o.expand,
656
652
  style: {
657
653
  "--front-toast-height": `${(P = E.value[0]) == null ? void 0 : P.height}px`,
658
- "--offset": typeof o.offset == "number" ? `${o.offset}px` : o.offset || Kt,
659
- "--width": `${_e}px`,
654
+ "--offset": typeof o.offset == "number" ? `${o.offset}px` : o.offset || Gt,
655
+ "--width": `${je}px`,
660
656
  "--gap": `${o.gap}px`,
661
657
  ...o.style,
662
- ...N(n).style
658
+ ...O(n).style
663
659
  }
664
660
  }, o.$attrs, {
665
661
  onBlur: S,
666
- onFocus: O,
667
- onMouseenter: i[1] || (i[1] = () => h.value = !0),
668
- onMousemove: i[2] || (i[2] = () => h.value = !0),
662
+ onFocus: N,
663
+ onMouseenter: i[1] || (i[1] = () => v.value = !0),
664
+ onMousemove: i[2] || (i[2] = () => v.value = !0),
669
665
  onMouseleave: i[3] || (i[3] = () => {
670
- c.value || (h.value = !1);
666
+ c.value || (v.value = !1);
671
667
  }),
672
668
  onPointerdown: gt,
673
669
  onPointerup: i[4] || (i[4] = () => c.value = !1)
674
670
  }), [
675
- (d(!0), f(j, null, mt(y.value(l, w), (A, H) => {
676
- var q, J, at, ot, st, nt, rt, it, _;
677
- return d(), K(he, {
671
+ (d(!0), h(j, null, mt(y.value(l, w), (A, H) => {
672
+ var q, J, at, ot, st, nt, rt, it, R;
673
+ return d(), G(ve, {
678
674
  key: A.id,
679
675
  heights: E.value.filter((Y) => Y.position === A.position),
680
676
  icons: o.icons,
@@ -682,70 +678,70 @@ const aa = /* @__PURE__ */ bt({
682
678
  toast: A,
683
679
  defaultRichColors: o.richColors,
684
680
  duration: ((q = o.toastOptions) == null ? void 0 : q.duration) ?? o.duration,
685
- class: L(((J = o.toastOptions) == null ? void 0 : J.class) ?? ""),
681
+ class: D(((J = o.toastOptions) == null ? void 0 : J.class) ?? ""),
686
682
  descriptionClass: (at = o.toastOptions) == null ? void 0 : at.descriptionClass,
687
683
  invert: o.invert,
688
684
  visibleToasts: o.visibleToasts,
689
685
  closeButton: ((ot = o.toastOptions) == null ? void 0 : ot.closeButton) ?? o.closeButton,
690
686
  interacting: c.value,
691
687
  position: l,
692
- style: ft((st = o.toastOptions) == null ? void 0 : st.style),
688
+ style: ht((st = o.toastOptions) == null ? void 0 : st.style),
693
689
  unstyled: (nt = o.toastOptions) == null ? void 0 : nt.unstyled,
694
690
  classes: (rt = o.toastOptions) == null ? void 0 : rt.classes,
695
691
  cancelButtonStyle: (it = o.toastOptions) == null ? void 0 : it.cancelButtonStyle,
696
- actionButtonStyle: (_ = o.toastOptions) == null ? void 0 : _.actionButtonStyle,
692
+ actionButtonStyle: (R = o.toastOptions) == null ? void 0 : R.actionButtonStyle,
697
693
  toasts: r.value.filter((Y) => Y.position === A.position),
698
694
  expandByDefault: o.expand,
699
695
  gap: o.gap,
700
- expanded: h.value,
696
+ expanded: v.value,
701
697
  pauseWhenPageIsHidden: o.pauseWhenPageIsHidden,
702
698
  cn: o.cn,
703
699
  "onUpdate:heights": i[0] || (i[0] = (Y) => {
704
700
  E.value = Y;
705
701
  }),
706
- onRemoveToast: vt
702
+ onRemoveToast: ft
707
703
  }, {
708
- "close-icon": V(() => [
704
+ "close-icon": U(() => [
709
705
  z(o.$slots, "close-icon", {}, () => [
710
- U(ye)
706
+ W(ye)
711
707
  ])
712
708
  ]),
713
- "loading-icon": V(() => [
709
+ "loading-icon": U(() => [
714
710
  z(o.$slots, "loading-icon", {}, () => [
715
- U(xe, {
711
+ W(xe, {
716
712
  visible: A.type === "loading"
717
713
  }, null, 8, ["visible"])
718
714
  ])
719
715
  ]),
720
- "success-icon": V(() => [
716
+ "success-icon": U(() => [
721
717
  z(o.$slots, "success-icon", {}, () => [
722
- U(Te)
718
+ W(Te)
723
719
  ])
724
720
  ]),
725
- "error-icon": V(() => [
721
+ "error-icon": U(() => [
726
722
  z(o.$slots, "error-icon", {}, () => [
727
- U(De)
723
+ W(Le)
728
724
  ])
729
725
  ]),
730
- "warning-icon": V(() => [
726
+ "warning-icon": U(() => [
731
727
  z(o.$slots, "warning-icon", {}, () => [
732
- U(Ae)
728
+ W(Ae)
733
729
  ])
734
730
  ]),
735
- "info-icon": V(() => [
731
+ "info-icon": U(() => [
736
732
  z(o.$slots, "info-icon", {}, () => [
737
- U(Ee)
733
+ W(Ee)
738
734
  ])
739
735
  ]),
740
736
  _: 2
741
737
  }, 1032, ["heights", "icons", "index", "toast", "defaultRichColors", "duration", "class", "descriptionClass", "invert", "visibleToasts", "closeButton", "interacting", "position", "style", "unstyled", "classes", "cancelButtonStyle", "actionButtonStyle", "toasts", "expandByDefault", "gap", "expanded", "pauseWhenPageIsHidden", "cn"]);
742
738
  }), 128))
743
- ], 16, Ne);
739
+ ], 16, Oe);
744
740
  }), 128))
745
- ], 8, Oe));
741
+ ], 8, Ne));
746
742
  }
747
- }), Ge = () => Ft().PORTAL_V2_BACKEND, Ke = () => Ft().LICENSE_BACKEND;
748
- async function We(s) {
743
+ }), We = () => Ft().PORTAL_V2_BACKEND, Ge = () => Ft().LICENSE_BACKEND;
744
+ async function Ke(s) {
749
745
  return (await F.Get(
750
746
  "https://api.feedme.vip",
751
747
  `/short-url/${s}`
@@ -789,7 +785,7 @@ async function Je(s, a, t) {
789
785
  }
790
786
  async function Qe(s, a) {
791
787
  return await F.Put(
792
- Ge(),
788
+ We(),
793
789
  `businesses/${s}/profile`,
794
790
  {
795
791
  data: a
@@ -800,13 +796,13 @@ async function Qe(s, a) {
800
796
  });
801
797
  }
802
798
  async function Xe(s) {
803
- return (await F.Get(
804
- Ke(),
799
+ return await F.Get(
800
+ Ge(),
805
801
  `api/business/${s}/feature/miniprogram`
806
- )).data;
802
+ ).then((a) => a.data).catch(() => !1);
807
803
  }
808
804
  const oa = {
809
- getGlobalSlug: We,
805
+ getGlobalSlug: Ke,
810
806
  setShortUrl: Fe,
811
807
  getBusinessMetadata: qe,
812
808
  setBusinessMetadata: Je,