// @bun
var{defineProperty:a,getOwnPropertyNames:p,getOwnPropertyDescriptor:c}=Object,u=Object.prototype.hasOwnProperty;function d(t){return this[t]}var S=(t)=>{var e=(s??=new WeakMap).get(t),o;if(e)return e;if(e=a({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function"){for(var r of p(t))if(!u.call(e,r))a(e,r,{get:d.bind(t,r),enumerable:!(o=c(t,r))||o.enumerable})}return s.set(t,e),e},s;var g=(t)=>t;function x(t,e){this[t]=g.bind(null,e)}var X=(t,e)=>{for(var o in e)a(t,o,{get:e[o],enumerable:!0,configurable:!0,set:x.bind(e,o)})};var y=(t,e)=>()=>(t&&(e=t(t=0)),e);var T=import.meta.require;function i(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l(t,e){if(t.serverDynamic[e]!==void 0)return String(t.serverDynamic[e]);let o=t.static[e];if(typeof o==="string")return o;return}function h(t,e,o){let r=l(t,e);if(r!==void 0){let n=Number.parseInt(r,10);if(!Number.isNaN(n))return n}return o}var m,C;var v=y(()=>{m={"top-right":"top:1rem;right:1rem","top-left":"top:1rem;left:1rem","top-center":"top:1rem;left:50%;transform:translateX(-50%)","bottom-right":"bottom:1rem;right:1rem","bottom-left":"bottom:1rem;left:1rem","bottom-center":"bottom:1rem;left:50%;transform:translateX(-50%)"},C={name:"StxToast",aliases:["stx-toast"],render(t,e,o){let r=i(l(t,"position")||"top-right"),n=h(t,"max",5),f=m[r]||m["top-right"];return`<div id="stx-toast-container" data-stx-toast-position="${r}" data-stx-toast-max="${n}" style="position:fixed;${f};z-index:999999;display:flex;flex-direction:column;gap:0.5rem;pointer-events:none;max-width:24rem;width:100%"></div>
<style>
@keyframes stx-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
@keyframes stx-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}
@keyframes stx-toast-in-left{from{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}
@keyframes stx-toast-out-left{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-100%)}}
@keyframes stx-toast-in-center{from{opacity:0;transform:translateY(-1rem)}to{opacity:1;transform:translateY(0)}}
@keyframes stx-toast-out-center{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-1rem)}}
</style>`}}});v();export{C as StxToastBuiltin};
