1var v=Object.defineProperty;var u=(y,e,i)=>e in y?v(y,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[e]=i;var f=(y,e,i)=>(u(y,typeof e!="symbol"?e+"":e,i),i);import{i as m}from"./utils-3a9d2551.js";import{i as b,a as P}from"./index-4af11e01.js";import"./vendor-a6c4fc13.js";class C{constructor(e){f(this,"el");this.el=e,this.init()}init(){this.el.dataset.animation==="appear"&&this.initButtonAppearAnimation()}initButtonAppearAnimation(){const e=this.el,i=e.querySelector(".button__icon-container"),t=e.querySelector(".button__label");if(!i){console.warn("Button animation: Icon container not found for",e);return}i.style.opacity="0";let c="0px",o={};if(t){o={display:t.style.display,width:t.style.width,position:t.style.position,visibility:t.style.visibility,overflow:t.style.overflow,whiteSpace:t.style.whiteSpace,opacity:t.style.opacity};const l=t.style.position,r=t.style.visibility,a=getComputedStyle(t).display,p=t.style.display||a,s=t.style.width,w=t.style.whiteSpace;t.style.position="absolute",t.style.visibility="hidden",t.style.display="inline-block",t.style.width="auto",t.style.whiteSpace="nowrap",c=`${t.offsetWidth}px`,t.style.position=l,t.style.visibility=r,t.style.display=p,t.style.width=s,t.style.whiteSpace=w,t.style.opacity="0",t.style.display="inline-block",t.style.width="0px",t.style.overflow="hidden",t.style.whiteSpace="nowrap"}const d=e.dataset.animationDelay;let n=0;if(d){const l=parseInt(d,10);!isNaN(l)&&l>0&&(n=l)}const h=()=>{b(e,()=>{if(m(e)){e.style.opacity="1",i.style.opacity="1",t&&(Object.keys(o).forEach(a=>{const s=o[a];s!=null?t.style.setProperty(a.replace(/([A-Z])/g,"-$1").toLowerCase(),String(s)):t.style.removeProperty(a.replace(/([A-Z])/g,"-$1").toLowerCase())}),t.style.opacity="1",(o.width===void 0||o.width==="")&&t.style.removeProperty("width"),(o.display===void 0||o.display==="")&&(t.style.display="inline"));return}e.style.opacity="0",e.style.overflow="hidden";const l=i.offsetWidth;l>0&&(i.style.width=`${l}px`,i.style.flexShrink="0");const r=[[e,{opacity:[0,1]},{duration:.1,ease:"linear",at:0}],[i,{opacity:[0,1]},{duration:.2,ease:"linear",at:.05}]];t&&r.push([t,{opacity:[0,1],width:["0px",c]},{duration:.3,ease:"easeInOut",at:.15}]),P(r).then(()=>{e.style.opacity="1",e.style.overflow="",i.style.opacity="",l>0&&(i.style.removeProperty("width"),i.style.removeProperty("flex-shrink")),t&&(Object.keys(o).forEach(a=>{let s=o[a];s===null&&(s=""),s!==void 0&&s!==""?t.style.setProperty(a.replace(/([A-Z])/g,"-$1").toLowerCase(),String(s)):t.style.removeProperty(a.replace(/([A-Z])/g,"-$1").toLowerCase())}),o.opacity===void 0&&t.style.removeProperty("opacity"),o.width===void 0&&t.style.removeProperty("width"),o.overflow===void 0&&t.style.removeProperty("overflow"),o.whiteSpace===void 0&&t.style.removeProperty("white-space"),o.display===void 0&&t.style.display==="inline-block"&&t.style.removeProperty("display"),setTimeout(()=>{t.style.width&&o.width===void 0&&t.style.removeProperty("width"),t.style.whiteSpace&&o.whiteSpace===void 0&&t.style.removeProperty("white-space")},0))})},{amount:1})};n>0?setTimeout(h,n):h()}}export{C as default}; 2//# sourceMappingURL=button-97df4a02.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.