@feedmepos/mf-brand-app-builder 0.5.11-alpha → 0.5.12-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,14 @@
1
- import { defineComponent as yt, useAttrs as Jt, ref as p, computed as g, watchEffect as K, nextTick as Qt, watch as Ft, openBlock as d, createElementBlock as v, unref as j, Fragment as _, renderList as gt, mergeProps as ut, createBlock as F, normalizeClass as D, normalizeStyle as pt, withCtx as W, renderSlot as E, createVNode as U, onMounted as _t, onBeforeUnmount as Xt, resolveDynamicComponent as Z, createCommentVNode as N, createElementVNode as O, normalizeProps as Rt, createTextVNode as Vt, toDisplayString as dt } from "vue";
2
- var Zt = Object.defineProperty, te = (s, a, t) => a in s ? Zt(s, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[a] = t, k = (s, a, t) => te(s, typeof a != "symbol" ? a + "" : a, t);
3
- function ee(s) {
1
+ import { defineComponent as bt, useAttrs as Qt, ref as p, computed as g, watchEffect as F, nextTick as Xt, watch as Ft, openBlock as d, createElementBlock as h, unref as N, Fragment as j, renderList as mt, mergeProps as pt, createBlock as G, normalizeClass as D, normalizeStyle as ht, withCtx as U, renderSlot as E, createVNode as W, onMounted as Rt, onBeforeUnmount as Zt, resolveDynamicComponent as tt, createCommentVNode as _, createElementVNode as O, normalizeProps as Vt, createTextVNode as Ut, toDisplayString as ct } from "vue";
2
+ import { H as K, a as te } from "./index-D_zWpFpJ.js";
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
+ function oe(s) {
4
5
  if (typeof document > "u") return;
5
6
  let a = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style");
6
7
  t.type = "text/css", a.appendChild(t), t.styleSheet ? t.styleSheet.cssText = s : t.appendChild(document.createTextNode(s));
7
8
  }
8
- ee(":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%)}");
9
- let mt = 0;
10
- class ae {
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%)}");
10
+ let yt = 0;
11
+ class se {
11
12
  constructor() {
12
13
  k(this, "subscribers"), k(this, "toasts"), k(this, "subscribe", (a) => (this.subscribers.push(a), () => {
13
14
  const t = this.subscribers.indexOf(a);
@@ -18,33 +19,33 @@ class ae {
18
19
  this.publish(a), this.toasts = [...this.toasts, a];
19
20
  }), k(this, "create", (a) => {
20
21
  var t;
21
- const { message: i, ...l } = a, y = typeof a.id == "number" || a.id && ((t = a.id) == null ? void 0 : t.length) > 0 ? a.id : mt++, T = this.toasts.find((h) => h.id === y), z = a.dismissible === void 0 ? !0 : a.dismissible;
22
- return T ? this.toasts = this.toasts.map((h) => h.id === y ? (this.publish({ ...h, ...a, id: y, title: i }), {
23
- ...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), z = 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,
24
25
  ...a,
25
26
  id: y,
26
27
  dismissible: z,
27
- title: i
28
- }) : h) : this.addToast({ title: i, ...l, dismissible: z, id: y }), y;
28
+ title: n
29
+ }) : v) : this.addToast({ title: n, ...r, dismissible: z, id: y }), y;
29
30
  }), k(this, "dismiss", (a) => (a || this.toasts.forEach((t) => {
30
31
  this.subscribers.forEach(
31
- (i) => i({ id: t.id, dismiss: !0 })
32
+ (n) => n({ id: t.id, dismiss: !0 })
32
33
  );
33
34
  }), this.subscribers.forEach((t) => t({ id: a, dismiss: !0 })), a)), k(this, "message", (a, t) => this.create({ ...t, message: a, type: "default" })), k(this, "error", (a, t) => this.create({ ...t, type: "error", message: a })), k(this, "success", (a, t) => this.create({ ...t, type: "success", message: a })), k(this, "info", (a, t) => this.create({ ...t, type: "info", message: a })), k(this, "warning", (a, t) => this.create({ ...t, type: "warning", message: a })), k(this, "loading", (a, t) => this.create({ ...t, type: "loading", message: a })), k(this, "promise", (a, t) => {
34
35
  if (!t)
35
36
  return;
36
- let i;
37
- t.loading !== void 0 && (i = this.create({
37
+ let n;
38
+ t.loading !== void 0 && (n = this.create({
38
39
  ...t,
39
40
  promise: a,
40
41
  type: "loading",
41
42
  message: t.loading,
42
43
  description: typeof t.description != "function" ? t.description : void 0
43
44
  }));
44
- const l = a instanceof Promise ? a : a();
45
- let y = i !== void 0, T;
46
- const z = l.then(async (c) => {
47
- if (T = ["resolve", c], se(c) && !c.ok) {
45
+ const r = a instanceof Promise ? a : a();
46
+ let y = n !== void 0, T;
47
+ const z = r.then(async (c) => {
48
+ if (T = ["resolve", c], re(c) && !c.ok) {
48
49
  y = !1;
49
50
  const f = typeof t.error == "function" ? await t.error(
50
51
  `HTTP error! status: ${c.status}`
@@ -52,11 +53,11 @@ class ae {
52
53
  // @ts-expect-error
53
54
  await t.description(`HTTP error! status: ${c.status}`)
54
55
  ) : t.description;
55
- this.create({ id: i, type: "error", message: f, description: b });
56
+ this.create({ id: n, type: "error", message: f, description: b });
56
57
  } else if (t.success !== void 0) {
57
58
  y = !1;
58
59
  const f = typeof t.success == "function" ? await t.success(c) : t.success, b = typeof t.description == "function" ? await t.description(c) : t.description;
59
- this.create({ id: i, type: "success", message: f, description: b });
60
+ this.create({ id: n, type: "success", message: f, description: b });
60
61
  }
61
62
  }).catch(async (c) => {
62
63
  if (T = ["reject", c], t.error !== void 0) {
@@ -64,26 +65,26 @@ class ae {
64
65
  const f = typeof t.error == "function" ? await t.error(c) : t.error, b = typeof t.description == "function" ? await t.description(
65
66
  c
66
67
  ) : t.description;
67
- this.create({ id: i, type: "error", message: f, description: b });
68
+ this.create({ id: n, type: "error", message: f, description: b });
68
69
  }
69
70
  }).finally(() => {
70
71
  var c;
71
- y && (this.dismiss(i), i = void 0), (c = t.finally) == null || c.call(t);
72
- }), h = () => new Promise(
72
+ y && (this.dismiss(n), n = void 0), (c = t.finally) == null || c.call(t);
73
+ }), v = () => new Promise(
73
74
  (c, f) => z.then(
74
75
  () => T[0] === "reject" ? f(T[1]) : c(T[1])
75
76
  ).catch(f)
76
77
  );
77
- return typeof i != "string" && typeof i != "number" ? { unwrap: h } : Object.assign(i, { unwrap: h });
78
+ return typeof n != "string" && typeof n != "number" ? { unwrap: v } : Object.assign(n, { unwrap: v });
78
79
  }), k(this, "custom", (a, t) => {
79
- const i = (t == null ? void 0 : t.id) || mt++;
80
- return this.publish({ component: a, id: i, ...t }), i;
80
+ const n = (t == null ? void 0 : t.id) || yt++;
81
+ return this.publish({ component: a, id: n, ...t }), n;
81
82
  }), this.subscribers = [], this.toasts = [];
82
83
  }
83
84
  }
84
- const $ = new ae();
85
- function oe(s, a) {
86
- const t = (a == null ? void 0 : a.id) || mt++;
85
+ const $ = new se();
86
+ function ne(s, a) {
87
+ const t = (a == null ? void 0 : a.id) || yt++;
87
88
  return $.create({
88
89
  message: s,
89
90
  id: t,
@@ -91,8 +92,8 @@ function oe(s, a) {
91
92
  ...a
92
93
  }), t;
93
94
  }
94
- const se = (s) => s && typeof s == "object" && "ok" in s && typeof s.ok == "boolean" && "status" in s && typeof s.status == "number", ne = oe, re = () => $.toasts, We = Object.assign(
95
- ne,
95
+ const re = (s) => s && typeof s == "object" && "ok" in s && typeof s.ok == "boolean" && "status" in s && typeof s.status == "number", ie = ne, le = () => $.toasts, ta = Object.assign(
96
+ ie,
96
97
  {
97
98
  success: $.success,
98
99
  info: $.info,
@@ -105,15 +106,15 @@ const se = (s) => s && typeof s == "object" && "ok" in s && typeof s.ok == "bool
105
106
  loading: $.loading
106
107
  },
107
108
  {
108
- getHistory: re
109
+ getHistory: le
109
110
  }
110
111
  );
111
- function ct(s) {
112
+ function ut(s) {
112
113
  return s.label !== void 0;
113
114
  }
114
- function ie() {
115
+ function de() {
115
116
  const s = p(!1);
116
- return K(() => {
117
+ return F(() => {
117
118
  const a = () => {
118
119
  s.value = document.hidden;
119
120
  };
@@ -122,7 +123,7 @@ function ie() {
122
123
  isDocumentHidden: s
123
124
  };
124
125
  }
125
- const le = ["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"], de = ["aria-label", "data-disabled"], Wt = 4e3, ce = 20, ue = 200, pe = /* @__PURE__ */ yt({
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({
126
127
  __name: "Toast",
127
128
  props: {
128
129
  toast: {},
@@ -154,19 +155,19 @@ const le = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
154
155
  },
155
156
  emits: ["update:heights", "removeToast"],
156
157
  setup(s, { emit: a }) {
157
- const t = s, i = a, l = p(!1), y = p(!1), T = p(!1), z = p(!1), h = p(!1), c = p(0), f = p(0), b = p(
158
+ const t = s, n = a, r = p(!1), y = p(!1), T = p(!1), z = p(!1), v = p(!1), c = p(0), f = p(0), b = p(
158
159
  t.toast.duration || t.duration || Wt
159
- ), I = p(null), B = p(null), vt = g(() => t.index === 0), ht = g(() => t.index + 1 <= t.visibleToasts), S = g(() => t.toast.type), L = g(() => t.toast.dismissible !== !1), ft = g(() => t.toast.class || ""), o = g(() => t.descriptionClass || ""), n = t.toast.style || {}, r = g(
160
+ ), I = p(null), B = p(null), vt = g(() => t.index === 0), ft = g(() => t.index + 1 <= t.visibleToasts), S = g(() => t.toast.type), L = g(() => t.toast.dismissible !== !1), gt = g(() => t.toast.class || ""), o = g(() => t.descriptionClass || ""), i = t.toast.style || {}, l = g(
160
161
  () => t.heights.findIndex((e) => e.toastId === t.toast.id) || 0
161
162
  ), w = g(() => t.toast.closeButton ?? t.closeButton);
162
163
  g(
163
164
  () => t.toast.duration || t.duration || Wt
164
165
  );
165
- const P = p(0), Y = p(0), A = p(null), q = g(() => t.position.split("-")), G = g(() => q.value[0]), et = g(() => q.value[1]), at = g(() => typeof t.toast.title != "string"), ot = g(
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(
166
167
  () => typeof t.toast.description != "string"
167
- ), st = g(() => t.heights.reduce((e, u, x) => x >= r.value ? e : e + u.height, 0)), nt = ie(), rt = g(() => t.toast.invert || t.invert), R = g(() => S.value === "loading"), H = g(() => r.value * t.gap + st.value || 0);
168
- _t(() => {
169
- if (!l.value) return;
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);
169
+ Rt(() => {
170
+ if (!r.value) return;
170
171
  const e = B.value, u = e == null ? void 0 : e.style.height;
171
172
  e.style.height = "auto";
172
173
  const x = e.getBoundingClientRect().height;
@@ -183,62 +184,62 @@ const le = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
183
184
  position: t.toast.position
184
185
  },
185
186
  ...t.heights
186
- ], i("update:heights", C);
187
+ ], n("update:heights", C);
187
188
  });
188
189
  function V() {
189
- y.value = !0, c.value = H.value;
190
+ y.value = !0, c.value = Y.value;
190
191
  const e = t.heights.filter(
191
192
  (u) => u.toastId !== t.toast.id
192
193
  );
193
- i("update:heights", e), setTimeout(() => {
194
- i("removeToast", t.toast);
195
- }, ue);
194
+ n("update:heights", e), setTimeout(() => {
195
+ n("removeToast", t.toast);
196
+ }, he);
196
197
  }
197
- function bt() {
198
+ function wt() {
198
199
  var e, u;
199
200
  if (R.value || !L.value)
200
201
  return {};
201
202
  V(), (u = (e = t.toast).onDismiss) == null || u.call(e, t.toast);
202
203
  }
203
204
  function Kt(e) {
204
- R.value || !L.value || (I.value = /* @__PURE__ */ new Date(), c.value = H.value, e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (T.value = !0, A.value = { x: e.clientX, y: e.clientY }));
205
+ R.value || !L.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
206
  }
206
207
  function qt() {
207
208
  var e, u, x, C, m;
208
209
  if (z.value || !L) return;
209
- A.value = null;
210
+ H.value = null;
210
211
  const M = Number(
211
212
  ((e = B.value) == null ? void 0 : e.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0
212
- ), it = (/* @__PURE__ */ new Date()).getTime() - ((u = I.value) == null ? void 0 : u.getTime()), lt = Math.abs(M) / it;
213
- if (Math.abs(M) >= ce || lt > 0.11) {
214
- c.value = H.value, (C = (x = t.toast).onDismiss) == null || C.call(x, t.toast), V(), z.value = !0, h.value = !1;
213
+ ), lt = (/* @__PURE__ */ new Date()).getTime() - ((u = I.value) == null ? void 0 : u.getTime()), dt = Math.abs(M) / lt;
214
+ if (Math.abs(M) >= pe || dt > 0.11) {
215
+ c.value = Y.value, (C = (x = t.toast).onDismiss) == null || C.call(x, t.toast), V(), z.value = !0, v.value = !1;
215
216
  return;
216
217
  }
217
218
  (m = B.value) == null || m.style.setProperty("--swipe-amount", "0px"), T.value = !1;
218
219
  }
219
- function Gt(e) {
220
+ function Jt(e) {
220
221
  var u, x;
221
- if (!A.value || !L.value) return;
222
- const C = e.clientY - A.value.y, m = ((u = window.getSelection()) == null ? void 0 : u.toString().length) > 0, M = G.value === "top" ? Math.min(0, C) : Math.max(0, C);
223
- Math.abs(M) > 0 && (h.value = !0), !m && ((x = B.value) == null || x.style.setProperty("--swipe-amount", `${M}px`));
222
+ if (!H.value || !L.value) return;
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);
224
+ Math.abs(M) > 0 && (v.value = !0), !m && ((x = B.value) == null || x.style.setProperty("--swipe-amount", `${M}px`));
224
225
  }
225
- return K((e) => {
226
+ return F((e) => {
226
227
  if (t.toast.promise && S.value === "loading" || t.toast.duration === 1 / 0 || t.toast.type === "loading")
227
228
  return;
228
229
  let u;
229
230
  const x = () => {
230
- if (Y.value < P.value) {
231
+ if (A.value < P.value) {
231
232
  const m = (/* @__PURE__ */ new Date()).getTime() - P.value;
232
233
  b.value = b.value - m;
233
234
  }
234
- Y.value = (/* @__PURE__ */ new Date()).getTime();
235
+ A.value = (/* @__PURE__ */ new Date()).getTime();
235
236
  }, C = () => {
236
237
  b.value !== 1 / 0 && (P.value = (/* @__PURE__ */ new Date()).getTime(), u = setTimeout(() => {
237
238
  var m, M;
238
239
  (M = (m = t.toast).onAutoClose) == null || M.call(m, t.toast), V();
239
240
  }, b.value));
240
241
  };
241
- t.expanded || t.interacting || t.pauseWhenPageIsHidden && nt ? x() : C(), e(() => {
242
+ t.expanded || t.interacting || t.pauseWhenPageIsHidden && rt ? x() : C(), e(() => {
242
243
  clearTimeout(u);
243
244
  });
244
245
  }), Ft(
@@ -249,26 +250,26 @@ const le = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
249
250
  {
250
251
  deep: !0
251
252
  }
252
- ), _t(() => {
253
- if (l.value = !0, B.value) {
253
+ ), Rt(() => {
254
+ if (r.value = !0, B.value) {
254
255
  const e = B.value.getBoundingClientRect().height;
255
256
  f.value = e;
256
257
  const u = [
257
258
  { toastId: t.toast.id, height: e, position: t.toast.position },
258
259
  ...t.heights
259
260
  ];
260
- i("update:heights", u);
261
+ n("update:heights", u);
261
262
  }
262
- }), Xt(() => {
263
+ }), Zt(() => {
263
264
  if (B.value) {
264
265
  const e = t.heights.filter(
265
266
  (u) => u.toastId !== t.toast.id
266
267
  );
267
- i("update:heights", e);
268
+ n("update:heights", e);
268
269
  }
269
270
  }), (e, u) => {
270
- var x, C, m, M, it, lt, wt, xt, kt, Bt, Ct, Tt, St, Pt, $t, zt, Et, Mt, It, Yt, Ht, At, Dt, Ot, Lt, jt, Nt;
271
- return d(), v("li", {
271
+ var x, C, m, M, lt, dt, xt, kt, Bt, Ct, Tt, St, Pt, $t, zt, Et, Mt, It, At, Yt, Ht, Dt, Ot, Lt, Nt, _t, jt;
272
+ return d(), h("li", {
272
273
  ref_key: "toastRef",
273
274
  ref: B,
274
275
  "aria-live": e.toast.important ? "assertive" : "polite",
@@ -279,78 +280,78 @@ const le = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
279
280
  class: D(
280
281
  e.cn(
281
282
  t.class,
282
- ft.value,
283
+ gt.value,
283
284
  (x = e.classes) == null ? void 0 : x.toast,
284
285
  (C = e.toast.classes) == null ? void 0 : C.toast,
285
286
  // @ts-ignore
286
287
  (m = e.classes) == null ? void 0 : m[S.value],
287
288
  // @ts-ignore
288
- (it = (M = e.toast) == null ? void 0 : M.classes) == null ? void 0 : it[S.value]
289
+ (lt = (M = e.toast) == null ? void 0 : M.classes) == null ? void 0 : lt[S.value]
289
290
  )
290
291
  ),
291
292
  "data-rich-colors": e.toast.richColors ?? e.defaultRichColors,
292
- "data-styled": !(e.toast.component || (lt = e.toast) != null && lt.unstyled || e.unstyled),
293
- "data-mounted": l.value,
293
+ "data-styled": !(e.toast.component || (dt = e.toast) != null && dt.unstyled || e.unstyled),
294
+ "data-mounted": r.value,
294
295
  "data-promise": !!e.toast.promise,
295
296
  "data-removed": y.value,
296
- "data-visible": ht.value,
297
- "data-y-position": G.value,
298
- "data-x-position": et.value,
297
+ "data-visible": ft.value,
298
+ "data-y-position": J.value,
299
+ "data-x-position": at.value,
299
300
  "data-index": e.index,
300
301
  "data-front": vt.value,
301
302
  "data-swiping": T.value,
302
303
  "data-dismissible": L.value,
303
304
  "data-type": S.value,
304
- "data-invert": rt.value,
305
+ "data-invert": it.value,
305
306
  "data-swipe-out": z.value,
306
- "data-expanded": !!(e.expanded || e.expandByDefault && l.value),
307
- style: pt({
307
+ "data-expanded": !!(e.expanded || e.expandByDefault && r.value),
308
+ style: ht({
308
309
  "--index": e.index,
309
310
  "--toasts-before": e.index,
310
311
  "--z-index": e.toasts.length - e.index,
311
- "--offset": `${y.value ? c.value : H.value}px`,
312
+ "--offset": `${y.value ? c.value : Y.value}px`,
312
313
  "--initial-height": e.expandByDefault ? "auto" : `${f.value}px`,
313
314
  ...e.style,
314
- ...j(n)
315
+ ...N(i)
315
316
  }),
316
317
  onPointerdown: Kt,
317
318
  onPointerup: qt,
318
- onPointermove: Gt
319
+ onPointermove: Jt
319
320
  }, [
320
- w.value && !e.toast.component ? (d(), v("button", {
321
+ w.value && !e.toast.component ? (d(), h("button", {
321
322
  key: 0,
322
323
  "aria-label": e.closeButtonAriaLabel || "Close toast",
323
324
  "data-disabled": R.value,
324
325
  "data-close-button": "true",
325
- class: D(e.cn((wt = e.classes) == null ? void 0 : wt.closeButton, (kt = (xt = e.toast) == null ? void 0 : xt.classes) == null ? void 0 : kt.closeButton)),
326
- onClick: bt
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)),
327
+ onClick: wt
327
328
  }, [
328
- (Bt = e.icons) != null && Bt.close ? (d(), F(Z((Ct = e.icons) == null ? void 0 : Ct.close), { key: 0 })) : E(e.$slots, "close-icon", { key: 1 })
329
- ], 10, de)) : N("", !0),
330
- e.toast.component ? (d(), F(Z(e.toast.component), ut({ key: 1 }, e.toast.componentProps, { onCloseToast: bt }), null, 16)) : (d(), v(_, { key: 2 }, [
331
- S.value !== "default" || e.toast.icon || e.toast.promise ? (d(), v("div", {
329
+ (Ct = e.icons) != null && Ct.close ? (d(), G(tt((Tt = e.icons) == null ? void 0 : Tt.close), { key: 0 })) : E(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", {
332
333
  key: 0,
333
334
  "data-icon": "",
334
- class: D(e.cn((Tt = e.classes) == null ? void 0 : Tt.icon, (Pt = (St = e.toast) == null ? void 0 : St.classes) == null ? void 0 : Pt.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))
335
336
  }, [
336
- (e.toast.promise || S.value === "loading") && !e.toast.icon ? E(e.$slots, "loading-icon", { key: 0 }) : N("", !0),
337
- e.toast.icon ? (d(), F(Z(e.toast.icon), { key: 1 })) : (d(), v(_, { key: 2 }, [
338
- S.value === "success" ? E(e.$slots, "success-icon", { key: 0 }) : S.value === "error" ? E(e.$slots, "error-icon", { key: 1 }) : S.value === "warning" ? E(e.$slots, "warning-icon", { key: 2 }) : S.value === "info" ? E(e.$slots, "info-icon", { key: 3 }) : N("", !0)
337
+ (e.toast.promise || S.value === "loading") && !e.toast.icon ? E(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" ? E(e.$slots, "success-icon", { key: 0 }) : S.value === "error" ? E(e.$slots, "error-icon", { key: 1 }) : S.value === "warning" ? E(e.$slots, "warning-icon", { key: 2 }) : S.value === "info" ? E(e.$slots, "info-icon", { key: 3 }) : _("", !0)
339
340
  ], 64))
340
- ], 2)) : N("", !0),
341
+ ], 2)) : _("", !0),
341
342
  O("div", {
342
343
  "data-content": "",
343
- class: D(e.cn(($t = e.classes) == null ? void 0 : $t.content, (Et = (zt = e.toast) == null ? void 0 : zt.classes) == null ? void 0 : Et.content))
344
+ class: D(e.cn((zt = e.classes) == null ? void 0 : zt.content, (Mt = (Et = e.toast) == null ? void 0 : Et.classes) == null ? void 0 : Mt.content))
344
345
  }, [
345
346
  O("div", {
346
347
  "data-title": "",
347
- class: D(e.cn((Mt = e.classes) == null ? void 0 : Mt.title, (It = e.toast.classes) == null ? void 0 : It.title))
348
+ class: D(e.cn((It = e.classes) == null ? void 0 : It.title, (At = e.toast.classes) == null ? void 0 : At.title))
348
349
  }, [
349
- at.value ? (d(), F(Z(e.toast.title), Rt(ut({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), v(_, { key: 1 }, [
350
- Vt(dt(e.toast.title), 1)
350
+ ot.value ? (d(), G(tt(e.toast.title), Vt(pt({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), h(j, { key: 1 }, [
351
+ Ut(ct(e.toast.title), 1)
351
352
  ], 64))
352
353
  ], 2),
353
- e.toast.description ? (d(), v("div", {
354
+ e.toast.description ? (d(), h("div", {
354
355
  key: 0,
355
356
  "data-description": "",
356
357
  class: D(
@@ -362,43 +363,43 @@ const le = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
362
363
  )
363
364
  )
364
365
  }, [
365
- ot.value ? (d(), F(Z(e.toast.description), Rt(ut({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), v(_, { key: 1 }, [
366
- Vt(dt(e.toast.description), 1)
366
+ st.value ? (d(), G(tt(e.toast.description), Vt(pt({ key: 0 }, e.toast.componentProps)), null, 16)) : (d(), h(j, { key: 1 }, [
367
+ Ut(ct(e.toast.description), 1)
367
368
  ], 64))
368
- ], 2)) : N("", !0)
369
+ ], 2)) : _("", !0)
369
370
  ], 2),
370
- e.toast.cancel ? (d(), v("button", {
371
+ e.toast.cancel ? (d(), h("button", {
371
372
  key: 1,
372
- style: pt(e.toast.cancelButtonStyle || e.cancelButtonStyle),
373
- class: D(e.cn((At = e.classes) == null ? void 0 : At.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, (Ot = e.toast.classes) == null ? void 0 : Ot.cancelButton)),
374
375
  "data-button": "",
375
376
  "data-cancel": "",
376
- onClick: u[0] || (u[0] = (J) => {
377
- var Q, X;
378
- j(ct)(e.toast.cancel) && L.value && ((X = (Q = e.toast.cancel).onClick) == null || X.call(Q, J), V());
377
+ onClick: u[0] || (u[0] = (Q) => {
378
+ var X, Z;
379
+ N(ut)(e.toast.cancel) && L.value && ((Z = (X = e.toast.cancel).onClick) == null || Z.call(X, Q), V());
379
380
  })
380
- }, dt(j(ct)(e.toast.cancel) ? (Ot = e.toast.cancel) == null ? void 0 : Ot.label : e.toast.cancel), 7)) : N("", !0),
381
- e.toast.action ? (d(), v("button", {
381
+ }, ct(N(ut)(e.toast.cancel) ? (Lt = e.toast.cancel) == null ? void 0 : Lt.label : e.toast.cancel), 7)) : _("", !0),
382
+ e.toast.action ? (d(), h("button", {
382
383
  key: 2,
383
- style: pt(e.toast.actionButtonStyle || e.actionButtonStyle),
384
- class: D(e.cn((Lt = e.classes) == null ? void 0 : Lt.actionButton, (jt = e.toast.classes) == null ? void 0 : jt.actionButton)),
384
+ style: ht(e.toast.actionButtonStyle || e.actionButtonStyle),
385
+ class: D(e.cn((Nt = e.classes) == null ? void 0 : Nt.actionButton, (_t = e.toast.classes) == null ? void 0 : _t.actionButton)),
385
386
  "data-button": "",
386
387
  "data-action": "",
387
- onClick: u[1] || (u[1] = (J) => {
388
- var Q, X;
389
- j(ct)(e.toast.action) && (J.defaultPrevented || ((X = (Q = e.toast.action).onClick) == null || X.call(Q, J), !J.defaultPrevented && V()));
388
+ onClick: u[1] || (u[1] = (Q) => {
389
+ var X, Z;
390
+ N(ut)(e.toast.action) && (Q.defaultPrevented || ((Z = (X = e.toast.action).onClick) == null || Z.call(X, Q), !Q.defaultPrevented && V()));
390
391
  })
391
- }, dt(j(ct)(e.toast.action) ? (Nt = e.toast.action) == null ? void 0 : Nt.label : e.toast.action), 7)) : N("", !0)
392
+ }, ct(N(ut)(e.toast.action) ? (jt = e.toast.action) == null ? void 0 : jt.label : e.toast.action), 7)) : _("", !0)
392
393
  ], 64))
393
- ], 46, le);
394
+ ], 46, ce);
394
395
  };
395
396
  }
396
- }), tt = (s, a) => {
397
+ }), et = (s, a) => {
397
398
  const t = s.__vccOpts || s;
398
- for (const [i, l] of a)
399
- t[i] = l;
399
+ for (const [n, r] of a)
400
+ t[n] = r;
400
401
  return t;
401
- }, ve = {}, he = {
402
+ }, fe = {}, ge = {
402
403
  xmlns: "http://www.w3.org/2000/svg",
403
404
  width: "12",
404
405
  height: "12",
@@ -409,8 +410,8 @@ const le = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
409
410
  "stroke-linecap": "round",
410
411
  "stroke-linejoin": "round"
411
412
  };
412
- function fe(s, a) {
413
- return d(), v("svg", he, a[0] || (a[0] = [
413
+ function me(s, a) {
414
+ return d(), h("svg", ge, a[0] || (a[0] = [
414
415
  O("line", {
415
416
  x1: "18",
416
417
  y1: "6",
@@ -425,34 +426,34 @@ function fe(s, a) {
425
426
  }, null, -1)
426
427
  ]));
427
428
  }
428
- const ge = /* @__PURE__ */ tt(ve, [["render", fe]]), me = ["data-visible"], ye = { class: "sonner-spinner" }, be = /* @__PURE__ */ yt({
429
+ const ye = /* @__PURE__ */ et(fe, [["render", me]]), be = ["data-visible"], we = { class: "sonner-spinner" }, xe = /* @__PURE__ */ bt({
429
430
  __name: "Loader",
430
431
  props: {
431
432
  visible: { type: Boolean }
432
433
  },
433
434
  setup(s) {
434
435
  const a = Array(12).fill(0);
435
- return (t, i) => (d(), v("div", {
436
+ return (t, n) => (d(), h("div", {
436
437
  class: "sonner-loading-wrapper",
437
438
  "data-visible": t.visible
438
439
  }, [
439
- O("div", ye, [
440
- (d(!0), v(_, null, gt(j(a), (l) => (d(), v("div", {
441
- key: `spinner-bar-${l}`,
440
+ O("div", we, [
441
+ (d(!0), h(j, null, mt(N(a), (r) => (d(), h("div", {
442
+ key: `spinner-bar-${r}`,
442
443
  class: "sonner-loading-bar"
443
444
  }))), 128))
444
445
  ])
445
- ], 8, me));
446
+ ], 8, be));
446
447
  }
447
- }), we = {}, xe = {
448
+ }), ke = {}, Be = {
448
449
  xmlns: "http://www.w3.org/2000/svg",
449
450
  viewBox: "0 0 20 20",
450
451
  fill: "currentColor",
451
452
  height: "20",
452
453
  width: "20"
453
454
  };
454
- function ke(s, a) {
455
- return d(), v("svg", xe, a[0] || (a[0] = [
455
+ function Ce(s, a) {
456
+ return d(), h("svg", Be, a[0] || (a[0] = [
456
457
  O("path", {
457
458
  "fill-rule": "evenodd",
458
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",
@@ -460,15 +461,15 @@ function ke(s, a) {
460
461
  }, null, -1)
461
462
  ]));
462
463
  }
463
- const Be = /* @__PURE__ */ tt(we, [["render", ke]]), Ce = {}, Te = {
464
+ const Te = /* @__PURE__ */ et(ke, [["render", Ce]]), Se = {}, Pe = {
464
465
  xmlns: "http://www.w3.org/2000/svg",
465
466
  viewBox: "0 0 20 20",
466
467
  fill: "currentColor",
467
468
  height: "20",
468
469
  width: "20"
469
470
  };
470
- function Se(s, a) {
471
- return d(), v("svg", Te, a[0] || (a[0] = [
471
+ function $e(s, a) {
472
+ return d(), h("svg", Pe, a[0] || (a[0] = [
472
473
  O("path", {
473
474
  "fill-rule": "evenodd",
474
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",
@@ -476,15 +477,15 @@ function Se(s, a) {
476
477
  }, null, -1)
477
478
  ]));
478
479
  }
479
- const Pe = /* @__PURE__ */ tt(Ce, [["render", Se]]), $e = {}, ze = {
480
+ const ze = /* @__PURE__ */ et(Se, [["render", $e]]), Ee = {}, Me = {
480
481
  xmlns: "http://www.w3.org/2000/svg",
481
482
  viewBox: "0 0 24 24",
482
483
  fill: "currentColor",
483
484
  height: "20",
484
485
  width: "20"
485
486
  };
486
- function Ee(s, a) {
487
- return d(), v("svg", ze, a[0] || (a[0] = [
487
+ function Ie(s, a) {
488
+ return d(), h("svg", Me, a[0] || (a[0] = [
488
489
  O("path", {
489
490
  "fill-rule": "evenodd",
490
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",
@@ -492,15 +493,15 @@ function Ee(s, a) {
492
493
  }, null, -1)
493
494
  ]));
494
495
  }
495
- const Me = /* @__PURE__ */ tt($e, [["render", Ee]]), Ie = {}, Ye = {
496
+ const Ae = /* @__PURE__ */ et(Ee, [["render", Ie]]), Ye = {}, He = {
496
497
  xmlns: "http://www.w3.org/2000/svg",
497
498
  viewBox: "0 0 20 20",
498
499
  fill: "currentColor",
499
500
  height: "20",
500
501
  width: "20"
501
502
  };
502
- function He(s, a) {
503
- return d(), v("svg", Ye, a[0] || (a[0] = [
503
+ function De(s, a) {
504
+ return d(), h("svg", He, a[0] || (a[0] = [
504
505
  O("path", {
505
506
  "fill-rule": "evenodd",
506
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",
@@ -508,11 +509,11 @@ function He(s, a) {
508
509
  }, null, -1)
509
510
  ]));
510
511
  }
511
- const Ae = /* @__PURE__ */ tt(Ie, [["render", He]]), De = ["aria-label"], Oe = ["dir", "data-theme", "data-rich-colors", "data-y-position", "data-x-position", "data-lifted"], Le = 3, Ut = "32px", je = 356, Ne = 14, _e = typeof window < "u" && typeof document < "u";
512
- function Re(...s) {
512
+ const Oe = /* @__PURE__ */ et(Ye, [["render", De]]), Le = ["aria-label"], Ne = ["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";
513
+ function Ue(...s) {
513
514
  return s.filter(Boolean).join(" ");
514
515
  }
515
- const Ue = /* @__PURE__ */ yt({
516
+ const ea = /* @__PURE__ */ bt({
516
517
  name: "Toaster",
517
518
  inheritAttrs: !1,
518
519
  __name: "Toaster",
@@ -524,18 +525,18 @@ const Ue = /* @__PURE__ */ yt({
524
525
  richColors: { type: Boolean, default: !1 },
525
526
  expand: { type: Boolean, default: !1 },
526
527
  duration: {},
527
- gap: { default: Ne },
528
- visibleToasts: { default: Le },
528
+ gap: { default: Re },
529
+ visibleToasts: { default: _e },
529
530
  closeButton: { type: Boolean, default: !1 },
530
531
  toastOptions: { default: () => ({}) },
531
532
  class: { default: "" },
532
533
  style: { default: () => ({}) },
533
- offset: { default: Ut },
534
+ offset: { default: Gt },
534
535
  dir: { default: "auto" },
535
536
  icons: {},
536
537
  containerAriaLabel: { default: "Notifications" },
537
538
  pauseWhenPageIsHidden: { type: Boolean, default: !1 },
538
- cn: { type: Function, default: Re }
539
+ cn: { type: Function, default: Ue }
539
540
  },
540
541
  setup(s) {
541
542
  const a = s;
@@ -544,48 +545,48 @@ const Ue = /* @__PURE__ */ yt({
544
545
  const o = document.documentElement.getAttribute("dir");
545
546
  return o === "auto" || !o ? window.getComputedStyle(document.documentElement).direction : o;
546
547
  }
547
- const i = Jt(), l = p([]), y = g(() => (o, n) => l.value.filter(
548
- (r) => !r.position && n === 0 || r.position === o
548
+ const n = Qt(), r = p([]), y = g(() => (o, i) => r.value.filter(
549
+ (l) => !l.position && i === 0 || l.position === o
549
550
  )), T = g(() => {
550
- const o = l.value.filter((n) => n.position).map((n) => n.position);
551
+ const o = r.value.filter((i) => i.position).map((i) => i.position);
551
552
  return o.length > 0 ? Array.from(new Set([a.position].concat(o))) : [a.position];
552
- }), z = p([]), h = p(!1), c = p(!1), f = p(
553
+ }), z = p([]), v = p(!1), c = p(!1), f = p(
553
554
  a.theme !== "system" ? a.theme : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
554
555
  ), b = p(null), I = p(null), B = p(!1), vt = a.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
555
- function ht(o) {
556
- var n;
557
- (n = l.value.find((r) => r.id === o.id)) != null && n.delete || $.dismiss(o.id), l.value = l.value.filter(({ id: r }) => r !== o.id);
556
+ function ft(o) {
557
+ var i;
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);
558
559
  }
559
560
  function S(o) {
560
- var n, r;
561
- B.value && !((r = (n = o.currentTarget) == null ? void 0 : n.contains) != null && r.call(n, o.relatedTarget)) && (B.value = !1, I.value && (I.value.focus({ preventScroll: !0 }), I.value = null));
561
+ var i, l;
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));
562
563
  }
563
564
  function L(o) {
564
565
  o.target instanceof HTMLElement && o.target.dataset.dismissible === "false" || B.value || (B.value = !0, I.value = o.relatedTarget);
565
566
  }
566
- function ft(o) {
567
+ function gt(o) {
567
568
  o.target && o.target instanceof HTMLElement && o.target.dataset.dismissible === "false" || (c.value = !0);
568
569
  }
569
- return K((o) => {
570
- const n = $.subscribe((r) => {
571
- if (r.dismiss) {
572
- l.value = l.value.map(
573
- (w) => w.id === r.id ? { ...w, delete: !0 } : w
570
+ return F((o) => {
571
+ const i = $.subscribe((l) => {
572
+ if (l.dismiss) {
573
+ r.value = r.value.map(
574
+ (w) => w.id === l.id ? { ...w, delete: !0 } : w
574
575
  );
575
576
  return;
576
577
  }
577
- Qt(() => {
578
- const w = l.value.findIndex(
579
- (P) => P.id === r.id
578
+ Xt(() => {
579
+ const w = r.value.findIndex(
580
+ (P) => P.id === l.id
580
581
  );
581
- w !== -1 ? l.value = [
582
- ...l.value.slice(0, w),
583
- { ...l.value[w], ...r },
584
- ...l.value.slice(w + 1)
585
- ] : l.value = [r, ...l.value];
582
+ w !== -1 ? r.value = [
583
+ ...r.value.slice(0, w),
584
+ { ...r.value[w], ...l },
585
+ ...r.value.slice(w + 1)
586
+ ] : r.value = [l, ...r.value];
586
587
  });
587
588
  });
588
- o(n);
589
+ o(i);
589
590
  }), Ft(
590
591
  () => a.theme,
591
592
  (o) => {
@@ -594,48 +595,48 @@ const Ue = /* @__PURE__ */ yt({
594
595
  return;
595
596
  }
596
597
  if (o === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? f.value = "dark" : f.value = "light"), typeof window > "u") return;
597
- const n = window.matchMedia("(prefers-color-scheme: dark)");
598
+ const i = window.matchMedia("(prefers-color-scheme: dark)");
598
599
  try {
599
- n.addEventListener("change", ({ matches: r }) => {
600
- r ? f.value = "dark" : f.value = "light";
600
+ i.addEventListener("change", ({ matches: l }) => {
601
+ l ? f.value = "dark" : f.value = "light";
601
602
  });
602
603
  } catch {
603
- n.addListener(({ matches: r }) => {
604
+ i.addListener(({ matches: l }) => {
604
605
  try {
605
- r ? f.value = "dark" : f.value = "light";
606
+ l ? f.value = "dark" : f.value = "light";
606
607
  } catch (w) {
607
608
  console.error(w);
608
609
  }
609
610
  });
610
611
  }
611
612
  }
612
- ), K(() => {
613
+ ), F(() => {
613
614
  b.value && I.value && (I.value.focus({ preventScroll: !0 }), I.value = null, B.value = !1);
614
- }), K(() => {
615
- l.value.length <= 1 && (h.value = !1);
616
- }), K((o) => {
617
- function n(r) {
615
+ }), F(() => {
616
+ r.value.length <= 1 && (v.value = !1);
617
+ }), F((o) => {
618
+ function i(l) {
618
619
  const w = a.hotkey.every(
619
- (A) => r[A] || r.code === A
620
+ (H) => l[H] || l.code === H
620
621
  ), P = Array.isArray(b.value) ? b.value[0] : b.value;
621
- w && (h.value = !0, P == null || P.focus());
622
- const Y = document.activeElement === b.value || (P == null ? void 0 : P.contains(document.activeElement));
623
- r.code === "Escape" && Y && (h.value = !1);
622
+ w && (v.value = !0, P == null || P.focus());
623
+ const A = document.activeElement === b.value || (P == null ? void 0 : P.contains(document.activeElement));
624
+ l.code === "Escape" && A && (v.value = !1);
624
625
  }
625
- _e && (document.addEventListener("keydown", n), o(() => {
626
- document.removeEventListener("keydown", n);
626
+ Ve && (document.addEventListener("keydown", i), o(() => {
627
+ document.removeEventListener("keydown", i);
627
628
  }));
628
- }), (o, n) => (d(), v("section", {
629
- "aria-label": `${o.containerAriaLabel} ${j(vt)}`,
629
+ }), (o, i) => (d(), h("section", {
630
+ "aria-label": `${o.containerAriaLabel} ${N(vt)}`,
630
631
  tabIndex: -1,
631
632
  "aria-live": "polite",
632
633
  "aria-relevant": "additions text",
633
634
  "aria-atomic": "false"
634
635
  }, [
635
- (d(!0), v(_, null, gt(T.value, (r, w) => {
636
+ (d(!0), h(j, null, mt(T.value, (l, w) => {
636
637
  var P;
637
- return d(), v("ol", ut({
638
- key: r,
638
+ return d(), h("ol", pt({
639
+ key: l,
639
640
  ref_for: !0,
640
641
  ref_key: "listRef",
641
642
  ref: b,
@@ -645,102 +646,171 @@ const Ue = /* @__PURE__ */ yt({
645
646
  tabIndex: -1,
646
647
  "data-theme": o.theme,
647
648
  "data-rich-colors": o.richColors,
648
- "data-y-position": r.split("-")[0],
649
- "data-x-position": r.split("-")[1],
650
- "data-lifted": h.value && l.value.length > 1 && !o.expand,
649
+ "data-y-position": l.split("-")[0],
650
+ "data-x-position": l.split("-")[1],
651
+ "data-lifted": v.value && r.value.length > 1 && !o.expand,
651
652
  style: {
652
653
  "--front-toast-height": `${(P = z.value[0]) == null ? void 0 : P.height}px`,
653
- "--offset": typeof o.offset == "number" ? `${o.offset}px` : o.offset || Ut,
654
+ "--offset": typeof o.offset == "number" ? `${o.offset}px` : o.offset || Gt,
654
655
  "--width": `${je}px`,
655
656
  "--gap": `${o.gap}px`,
656
657
  ...o.style,
657
- ...j(i).style
658
+ ...N(n).style
658
659
  }
659
660
  }, o.$attrs, {
660
661
  onBlur: S,
661
662
  onFocus: L,
662
- onMouseenter: n[1] || (n[1] = () => h.value = !0),
663
- onMousemove: n[2] || (n[2] = () => h.value = !0),
664
- onMouseleave: n[3] || (n[3] = () => {
665
- c.value || (h.value = !1);
663
+ onMouseenter: i[1] || (i[1] = () => v.value = !0),
664
+ onMousemove: i[2] || (i[2] = () => v.value = !0),
665
+ onMouseleave: i[3] || (i[3] = () => {
666
+ c.value || (v.value = !1);
666
667
  }),
667
- onPointerdown: ft,
668
- onPointerup: n[4] || (n[4] = () => c.value = !1)
668
+ onPointerdown: gt,
669
+ onPointerup: i[4] || (i[4] = () => c.value = !1)
669
670
  }), [
670
- (d(!0), v(_, null, gt(y.value(r, w), (Y, A) => {
671
- var q, G, et, at, ot, st, nt, rt, R;
672
- return d(), F(pe, {
673
- key: Y.id,
674
- heights: z.value.filter((H) => H.position === Y.position),
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, {
674
+ key: A.id,
675
+ heights: z.value.filter((Y) => Y.position === A.position),
675
676
  icons: o.icons,
676
- index: A,
677
- toast: Y,
677
+ index: H,
678
+ toast: A,
678
679
  defaultRichColors: o.richColors,
679
680
  duration: ((q = o.toastOptions) == null ? void 0 : q.duration) ?? o.duration,
680
- class: D(((G = o.toastOptions) == null ? void 0 : G.class) ?? ""),
681
- descriptionClass: (et = o.toastOptions) == null ? void 0 : et.descriptionClass,
681
+ class: D(((J = o.toastOptions) == null ? void 0 : J.class) ?? ""),
682
+ descriptionClass: (at = o.toastOptions) == null ? void 0 : at.descriptionClass,
682
683
  invert: o.invert,
683
684
  visibleToasts: o.visibleToasts,
684
- closeButton: ((at = o.toastOptions) == null ? void 0 : at.closeButton) ?? o.closeButton,
685
+ closeButton: ((ot = o.toastOptions) == null ? void 0 : ot.closeButton) ?? o.closeButton,
685
686
  interacting: c.value,
686
- position: r,
687
- style: pt((ot = o.toastOptions) == null ? void 0 : ot.style),
688
- unstyled: (st = o.toastOptions) == null ? void 0 : st.unstyled,
689
- classes: (nt = o.toastOptions) == null ? void 0 : nt.classes,
690
- cancelButtonStyle: (rt = o.toastOptions) == null ? void 0 : rt.cancelButtonStyle,
687
+ position: l,
688
+ style: ht((st = o.toastOptions) == null ? void 0 : st.style),
689
+ unstyled: (nt = o.toastOptions) == null ? void 0 : nt.unstyled,
690
+ classes: (rt = o.toastOptions) == null ? void 0 : rt.classes,
691
+ cancelButtonStyle: (it = o.toastOptions) == null ? void 0 : it.cancelButtonStyle,
691
692
  actionButtonStyle: (R = o.toastOptions) == null ? void 0 : R.actionButtonStyle,
692
- toasts: l.value.filter((H) => H.position === Y.position),
693
+ toasts: r.value.filter((Y) => Y.position === A.position),
693
694
  expandByDefault: o.expand,
694
695
  gap: o.gap,
695
- expanded: h.value,
696
+ expanded: v.value,
696
697
  pauseWhenPageIsHidden: o.pauseWhenPageIsHidden,
697
698
  cn: o.cn,
698
- "onUpdate:heights": n[0] || (n[0] = (H) => {
699
- z.value = H;
699
+ "onUpdate:heights": i[0] || (i[0] = (Y) => {
700
+ z.value = Y;
700
701
  }),
701
- onRemoveToast: ht
702
+ onRemoveToast: ft
702
703
  }, {
703
- "close-icon": W(() => [
704
+ "close-icon": U(() => [
704
705
  E(o.$slots, "close-icon", {}, () => [
705
- U(ge)
706
+ W(ye)
706
707
  ])
707
708
  ]),
708
- "loading-icon": W(() => [
709
+ "loading-icon": U(() => [
709
710
  E(o.$slots, "loading-icon", {}, () => [
710
- U(be, {
711
- visible: Y.type === "loading"
711
+ W(xe, {
712
+ visible: A.type === "loading"
712
713
  }, null, 8, ["visible"])
713
714
  ])
714
715
  ]),
715
- "success-icon": W(() => [
716
+ "success-icon": U(() => [
716
717
  E(o.$slots, "success-icon", {}, () => [
717
- U(Be)
718
+ W(Te)
718
719
  ])
719
720
  ]),
720
- "error-icon": W(() => [
721
+ "error-icon": U(() => [
721
722
  E(o.$slots, "error-icon", {}, () => [
722
- U(Ae)
723
+ W(Oe)
723
724
  ])
724
725
  ]),
725
- "warning-icon": W(() => [
726
+ "warning-icon": U(() => [
726
727
  E(o.$slots, "warning-icon", {}, () => [
727
- U(Me)
728
+ W(Ae)
728
729
  ])
729
730
  ]),
730
- "info-icon": W(() => [
731
+ "info-icon": U(() => [
731
732
  E(o.$slots, "info-icon", {}, () => [
732
- U(Pe)
733
+ W(ze)
733
734
  ])
734
735
  ]),
735
736
  _: 2
736
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"]);
737
738
  }), 128))
738
- ], 16, Oe);
739
+ ], 16, Ne);
739
740
  }), 128))
740
- ], 8, De));
741
+ ], 8, Le));
741
742
  }
742
- });
743
+ }), We = () => te().PORTAL_V2_BACKEND;
744
+ async function Ge(s) {
745
+ return (await K.Get(
746
+ "https://api.feedmedev.vip",
747
+ `/short-url/${s}`
748
+ )).data;
749
+ }
750
+ async function Fe(s, a, t) {
751
+ return await K.Post(
752
+ "https://api.feedmedev.vip",
753
+ "/short-url",
754
+ {
755
+ data: {
756
+ slug: s,
757
+ oldSlug: a,
758
+ type: "BUSINESS",
759
+ businessId: t
760
+ }
761
+ }
762
+ ).then((n) => n.data).catch((n) => {
763
+ var r;
764
+ throw (r = n.response) == null ? void 0 : r.data;
765
+ });
766
+ }
767
+ async function Ke(s) {
768
+ return (await K.Get(
769
+ "https://api.feedmedev.vip",
770
+ `/metadata/${s}/config`
771
+ )).data;
772
+ }
773
+ async function qe(s, a, t) {
774
+ return (await K.Post(
775
+ "https://api.feedmedev.vip",
776
+ `/metadata/${s}/config`,
777
+ {
778
+ data: {
779
+ name: a,
780
+ backgroundColor: "#ffffff",
781
+ country: t
782
+ }
783
+ }
784
+ )).data;
785
+ }
786
+ async function Je(s, a) {
787
+ return await K.Put(
788
+ We(),
789
+ `businesses/${s}/profile`,
790
+ {
791
+ data: a
792
+ }
793
+ ).catch((n) => {
794
+ var r;
795
+ throw (r = n.response) == null ? void 0 : r.data;
796
+ });
797
+ }
798
+ async function Qe(s) {
799
+ return (await K.Get(
800
+ "https://license.feedmedev.cc/api",
801
+ `/business/${s}/feature/miniprogram`
802
+ )).data;
803
+ }
804
+ const aa = {
805
+ getGlobalSlug: Ge,
806
+ setShortUrl: Fe,
807
+ getBusinessMetadata: Ke,
808
+ setBusinessMetadata: qe,
809
+ updateBusinessProfile: Je,
810
+ getBusinessPremiumStatus: Qe
811
+ };
743
812
  export {
744
- We as K,
745
- Ue as V
813
+ aa as B,
814
+ ta as K,
815
+ ea as V
746
816
  };