Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aideyekit

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aideyekit - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/aideyekit.d.ts

@@ -116,3 +116,3 @@ // Generated by dts-bundle-generator v8.1.2

refresh: typeof requireRefresh;
drive: (stepIndex?: number) => void;
aidAt: (stepIndex?: number) => void;
setConfig: typeof configure;

@@ -119,0 +119,0 @@ setSteps: (steps: AidEyeStep[]) => void;

@@ -1,2 +0,2 @@

var aideyekit=function(D){"use strict";let F={};function z(e={}){F={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...e}}function a(e){return e?F[e]:F}function W(e,o,t,i){return(e/=i/2)<1?t/2*e*e+o:-t/2*(--e*(e-2)-1)+o}function q(e){const o='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(t=>{const i=t.matches(o),p=Array.from(t.querySelectorAll(o));return[...i?[t]:[],...p]}).filter(t=>getComputedStyle(t).pointerEvents!=="none"&&ae(t))}function V(e){if(!e||se(e))return;const o=a("smoothScroll");e.scrollIntoView({behavior:!o||re(e)?"auto":"smooth",inline:"center",block:"center"})}function re(e){if(!e||!e.parentElement)return;const o=e.parentElement;return o.scrollHeight>o.clientHeight}function se(e){const o=e.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)}function ae(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let N={};function b(e,o){N[e]=o}function l(e){return e?N[e]:N}function K(){N={}}let E={};function O(e,o){E[e]=o}function _(e){var o;(o=E[e])==null||o.call(E)}function ce(){E={}}function le(e,o,t,i){let p=l("__activeStagePosition");const n=p||t.getBoundingClientRect(),v=i.getBoundingClientRect(),g=W(e,n.x,v.x-n.x,o),r=W(e,n.y,v.y-n.y,o),f=W(e,n.width,v.width-n.width,o),s=W(e,n.height,v.height-n.height,o);p={x:g,y:r,width:f,height:s},Y(p),b("__activeStagePosition",p)}function X(e){if(!e)return;const o=e.getBoundingClientRect(),t={x:o.x,y:o.y,width:o.width,height:o.height};b("__activeStagePosition",t),Y(t)}function de(){const e=l("__activeStagePosition"),o=l("__overlaySvg");if(!e)return;if(!o){console.warn("No stage svg found.");return}const t=window.innerWidth,i=window.innerHeight;o.setAttribute("viewBox",`0 0 ${t} ${i}`)}function pe(e){const o=ue(e);document.body.appendChild(o),G(o,t=>{t.target.tagName==="path"&&_("overlayClick")}),b("__overlaySvg",o)}function Y(e){const o=l("__overlaySvg");if(!o){pe(e);return}const t=o.firstElementChild;if((t==null?void 0:t.tagName)!=="path")throw new Error("no path element found in stage svg");t.setAttribute("d",j(e))}function ue(e){const o=window.innerWidth,t=window.innerHeight,i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("aideye-overlay","aideye-overlay-animated"),i.setAttribute("viewBox",`0 0 ${o} ${t}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%";const p=document.createElementNS("http://www.w3.org/2000/svg","path");return p.setAttribute("d",j(e)),p.style.fill=a("overlayColor")||"rgb(0,0,0)",p.style.opacity=`${a("overlayOpacity")}`,p.style.pointerEvents="auto",p.style.cursor="auto",i.appendChild(p),i}function j(e){const o=window.innerWidth,t=window.innerHeight,i=a("stagePadding")||0,p=a("stageRadius")||0,n=e.width+i*2,v=e.height+i*2,g=Math.min(p,n/2,v/2),r=Math.floor(Math.max(g,0)),f=e.x-i+r,s=e.y-i,c=n-r*2,d=v-r*2;return`M${o},0L0,0L0,${t}L${o},${t}L${o},0Z
M${f},${s} h${c} a${r},${r} 0 0 1 ${r},${r} v${d} a${r},${r} 0 0 1 -${r},${r} h-${c} a${r},${r} 0 0 1 -${r},-${r} v-${d} a${r},${r} 0 0 1 ${r},-${r} z`}function fe(){const e=l("__overlaySvg");e&&e.remove()}function ve(){const e=document.getElementById("aideye-dummy-element");if(e)return e;let o=document.createElement("div");return o.id="aideye-dummy-element",o.style.width="0",o.style.height="0",o.style.pointerEvents="none",o.style.opacity="0",o.style.position="fixed",o.style.top="50%",o.style.left="50%",document.body.appendChild(o),o}function Q(e){const{element:o}=e;let t=typeof o=="string"?document.querySelector(o):o;t||(t=ve()),ye(t,e)}function he(){const e=l("__activeElement"),o=l("__activeStep");e&&(X(e),de(),oe(e,o))}function ye(e,o){const i=Date.now(),p=l("__activeStep"),n=l("__activeElement")||e,v=!n||n===e,g=e.id==="aideye-dummy-element",r=n.id==="aideye-dummy-element",f=a("animate"),s=o.onHighlightStarted||a("onHighlightStarted"),c=(o==null?void 0:o.onHighlighted)||a("onHighlighted"),d=(p==null?void 0:p.onDeselected)||a("onDeselected"),w=a(),y=l();!v&&d&&d(r?void 0:n,p,{config:w,state:y}),s&&s(g?void 0:e,o,{config:w,state:y});const u=!v&&f;let h=!1;xe(),b("previousStep",p),b("previousElement",n),b("activeStep",o),b("activeElement",e);const P=()=>{if(l("__transitionCallback")!==P)return;const x=Date.now()-i,m=400-x<=400/2;o.popover&&m&&!h&&u&&(J(e,o),h=!0),a("animate")&&x<400?le(x,400,n,e):(X(e),c&&c(g?void 0:e,o,{config:a(),state:l()}),b("__transitionCallback",void 0),b("__previousStep",p),b("__previousElement",n),b("__activeStep",o),b("__activeElement",e)),window.requestAnimationFrame(P)};b("__transitionCallback",P),window.requestAnimationFrame(P),V(e),!u&&o.popover&&J(e,o),n.classList.remove("aideye-active-element","aideye-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),a("disableActiveInteraction")&&e.classList.add("aideye-no-interaction"),e.classList.add("aideye-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","aideye-popover-content")}function ge(){var e;(e=document.getElementById("aideye-dummy-element"))==null||e.remove(),document.querySelectorAll(".aideye-active-element").forEach(o=>{o.classList.remove("aideye-active-element","aideye-no-interaction"),o.removeAttribute("aria-haspopup"),o.removeAttribute("aria-expanded"),o.removeAttribute("aria-controls")})}function A(){const e=l("__resizeTimeout");e&&window.cancelAnimationFrame(e),b("__resizeTimeout",window.requestAnimationFrame(he))}function we(e){var r;if(!l("isInitialized")||!(e.key==="Tab"||e.keyCode===9))return;const i=l("__activeElement"),p=(r=l("popover"))==null?void 0:r.wrapper,n=q([...p?[p]:[],...i?[i]:[]]),v=n[0],g=n[n.length-1];if(e.preventDefault(),e.shiftKey){const f=n[n.indexOf(document.activeElement)-1]||g;f==null||f.focus()}else{const f=n[n.indexOf(document.activeElement)+1]||v;f==null||f.focus()}}function Z(e){var t;((t=a("allowKeyboardControl"))==null||t)&&(e.key==="Escape"?_("escapePress"):e.key==="ArrowRight"?_("arrowRightPress"):e.key==="ArrowLeft"&&_("arrowLeftPress"))}function G(e,o,t){const i=(n,v)=>{const g=n.target;e.contains(g)&&((!t||t(g))&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation()),v==null||v(n))};document.addEventListener("pointerdown",i,!0),document.addEventListener("mousedown",i,!0),document.addEventListener("pointerup",i,!0),document.addEventListener("mouseup",i,!0),document.addEventListener("click",n=>{i(n,o)},!0)}function me(){window.addEventListener("keyup",Z,!1),window.addEventListener("keydown",we,!1),window.addEventListener("resize",A),window.addEventListener("scroll",A)}function be(){window.removeEventListener("keyup",Z),window.removeEventListener("resize",A),window.removeEventListener("scroll",A)}function xe(){const e=l("popover");e&&(e.wrapper.style.display="none")}function J(e,o){var C,m;let t=l("popover");t&&document.body.removeChild(t.wrapper),t=Pe(),document.body.appendChild(t.wrapper);const{title:i,description:p,showButtons:n,disableButtons:v,showProgress:g,nextBtnText:r=a("nextBtnText")||"Next &rarr;",prevBtnText:f=a("prevBtnText")||"&larr; Previous",progressText:s=a("progressText")||"{current} of {total}"}=o.popover||{};t.nextButton.innerHTML=r,t.previousButton.innerHTML=f,t.progress.innerHTML=s,i?(t.title.innerHTML=i,t.title.style.display="block"):t.title.style.display="none",p?(t.description.innerHTML=p,t.description.style.display="block"):t.description.style.display="none";const c=n||a("showButtons"),d=g||a("showProgress")||!1,w=(c==null?void 0:c.includes("next"))||(c==null?void 0:c.includes("previous"))||d;t.closeButton.style.display=c.includes("close")?"block":"none",w?(t.footer.style.display="flex",t.progress.style.display=d?"block":"none",t.nextButton.style.display=c.includes("next")?"block":"none",t.previousButton.style.display=c.includes("previous")?"block":"none"):t.footer.style.display="none";const y=v||a("disableButtons")||[];y!=null&&y.includes("next")&&(t.nextButton.disabled=!0,t.nextButton.classList.add("aideye-popover-btn-disabled")),y!=null&&y.includes("previous")&&(t.previousButton.disabled=!0,t.previousButton.classList.add("aideye-popover-btn-disabled")),y!=null&&y.includes("close")&&(t.closeButton.disabled=!0,t.closeButton.classList.add("aideye-popover-btn-disabled"));const u=t.wrapper;u.style.display="block",u.style.left="",u.style.top="",u.style.bottom="",u.style.right="",u.id="aideye-popover-content",u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby","aideye-popover-title"),u.setAttribute("aria-describedby","aideye-popover-description");const h=t.arrow;h.className="aideye-popover-arrow";const P=((C=o.popover)==null?void 0:C.popoverClass)||a("popoverClass")||"";u.className=`aideye-popover ${P}`.trim(),G(t.wrapper,k=>{var M,R,I;const T=k.target,H=((M=o.popover)==null?void 0:M.onNextClick)||a("onNextClick"),$=((R=o.popover)==null?void 0:R.onPrevClick)||a("onPrevClick"),B=((I=o.popover)==null?void 0:I.onCloseClick)||a("onCloseClick");if(T.classList.contains("aideye-popover-next-btn"))return H?H(e,o,{config:a(),state:l()}):_("nextClick");if(T.classList.contains("aideye-popover-prev-btn"))return $?$(e,o,{config:a(),state:l()}):_("prevClick");if(T.classList.contains("aideye-popover-close-btn"))return B?B(e,o,{config:a(),state:l()}):_("closeClick")},k=>!(t!=null&&t.description.contains(k))&&!(t!=null&&t.title.contains(k))&&typeof k.className=="string"&&k.className.includes("aideye-popover")),b("popover",t);const S=((m=o.popover)==null?void 0:m.onPopoverRender)||a("onPopoverRender");S&&S(t,{config:a(),state:l()}),oe(e,o),V(u);const L=e.classList.contains("aideye-dummy-element"),x=q([u,...L?[]:[e]]);x.length>0&&x[0].focus()}function U(){const e=l("popover");if(!(e!=null&&e.wrapper))return;const o=e.wrapper.getBoundingClientRect(),t=a("stagePadding")||0,i=a("popoverOffset")||0;return{width:o.width+t+i,height:o.height+t+i,realWidth:o.width,realHeight:o.height}}function ee(e,o){const{elementDimensions:t,popoverDimensions:i,popoverPadding:p,popoverArrowDimensions:n}=o;return e==="start"?Math.max(Math.min(t.top-p,window.innerHeight-i.realHeight-n.width),n.width):e==="end"?Math.max(Math.min(t.top-(i==null?void 0:i.realHeight)+t.height+p,window.innerHeight-(i==null?void 0:i.realHeight)-n.width),n.width):e==="center"?Math.max(Math.min(t.top+t.height/2-(i==null?void 0:i.realHeight)/2,window.innerHeight-(i==null?void 0:i.realHeight)-n.width),n.width):0}function te(e,o){const{elementDimensions:t,popoverDimensions:i,popoverPadding:p,popoverArrowDimensions:n}=o;return e==="start"?Math.max(Math.min(t.left-p,window.innerWidth-i.realWidth-n.width),n.width):e==="end"?Math.max(Math.min(t.left-(i==null?void 0:i.realWidth)+t.width+p,window.innerWidth-(i==null?void 0:i.realWidth)-n.width),n.width):e==="center"?Math.max(Math.min(t.left+t.width/2-(i==null?void 0:i.realWidth)/2,window.innerWidth-(i==null?void 0:i.realWidth)-n.width),n.width):0}function oe(e,o){const t=l("popover");if(!t)return;const{align:i="start",side:p="left"}=(o==null?void 0:o.popover)||{},n=i,v=e.id==="aideye-dummy-element"?"over":p,g=a("stagePadding")||0,r=U(),f=t.arrow.getBoundingClientRect(),s=e.getBoundingClientRect(),c=s.top-r.height;let d=c>=0;const w=window.innerHeight-(s.bottom+r.height);let y=w>=0;const u=s.left-r.width;let h=u>=0;const P=window.innerWidth-(s.right+r.width);let S=P>=0;const L=!d&&!y&&!h&&!S;let x=v;if(v==="top"&&d?S=h=y=!1:v==="bottom"&&y?S=h=d=!1:v==="left"&&h?S=d=y=!1:v==="right"&&S&&(h=d=y=!1),v==="over"){const C=window.innerWidth/2-r.realWidth/2,m=window.innerHeight/2-r.realHeight/2;t.wrapper.style.left=`${C}px`,t.wrapper.style.right="auto",t.wrapper.style.top=`${m}px`,t.wrapper.style.bottom="auto"}else if(L){const C=window.innerWidth/2-(r==null?void 0:r.realWidth)/2,m=10;t.wrapper.style.left=`${C}px`,t.wrapper.style.right="auto",t.wrapper.style.bottom=`${m}px`,t.wrapper.style.top="auto"}else if(h){const C=Math.min(u,window.innerWidth-(r==null?void 0:r.realWidth)-f.width),m=ee(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.left=`${C}px`,t.wrapper.style.top=`${m}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",x="left"}else if(S){const C=Math.min(P,window.innerWidth-(r==null?void 0:r.realWidth)-f.width),m=ee(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.right=`${C}px`,t.wrapper.style.top=`${m}px`,t.wrapper.style.bottom="auto",t.wrapper.style.left="auto",x="right"}else if(d){const C=Math.min(c,window.innerHeight-r.realHeight-f.width);let m=te(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.top=`${C}px`,t.wrapper.style.left=`${m}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",x="top"}else if(y){const C=Math.min(w,window.innerHeight-(r==null?void 0:r.realHeight)-f.width);let m=te(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.left=`${m}px`,t.wrapper.style.bottom=`${C}px`,t.wrapper.style.top="auto",t.wrapper.style.right="auto",x="bottom"}L?t.arrow.classList.add("aideye-popover-arrow-none"):Ce(n,x,e)}function Ce(e,o,t){const i=l("popover");if(!i)return;const p=t.getBoundingClientRect(),n=U(),v=i.arrow,g=n.width,r=window.innerWidth,f=p.width,s=p.left,c=n.height,d=window.innerHeight,w=p.top,y=p.height;v.className="aideye-popover-arrow";let u=o,h=e;o==="top"?(s+f<=0?(u="right",h="end"):s+f-g<=0&&(u="top",h="start"),s>=r?(u="left",h="end"):s+g>=r&&(u="top",h="end")):o==="bottom"?(s+f<=0?(u="right",h="start"):s+f-g<=0&&(u="bottom",h="start"),s>=r?(u="left",h="start"):s+g>=r&&(u="bottom",h="end")):o==="left"?(w+y<=0?(u="bottom",h="end"):w+y-c<=0&&(u="left",h="start"),w>=d?(u="top",h="end"):w+c>=d&&(u="left",h="end")):o==="right"&&(w+y<=0?(u="bottom",h="start"):w+y-c<=0&&(u="right",h="start"),w>=d?(u="top",h="start"):w+c>=d&&(u="right",h="end")),u?(v.classList.add(`aideye-popover-arrow-side-${u}`),v.classList.add(`aideye-popover-arrow-align-${h}`)):v.classList.add("aideye-popover-arrow-none")}function Pe(){const e=document.createElement("div");e.classList.add("aideye-popover");const o=document.createElement("div");o.classList.add("aideye-popover-arrow");const t=document.createElement("header");t.id="aideye-popover-title",t.classList.add("aideye-popover-title"),t.style.display="none",t.innerText="Popover Title";const i=document.createElement("div");i.id="aideye-popover-description",i.classList.add("aideye-popover-description"),i.style.display="none",i.innerText="Popover description is here";const p=document.createElement("button");p.type="button",p.classList.add("aideye-popover-close-btn"),p.setAttribute("aria-label","Close"),p.innerHTML="&times;";const n=document.createElement("footer");n.classList.add("aideye-popover-footer");const v=document.createElement("span");v.classList.add("aideye-popover-progress-text"),v.innerText="";const g=document.createElement("span");g.classList.add("aideye-popover-navigation-btns");const r=document.createElement("button");r.type="button",r.classList.add("aideye-popover-prev-btn"),r.innerHTML="&larr; Previous";const f=document.createElement("button");return f.type="button",f.classList.add("aideye-popover-next-btn"),f.innerHTML="Next &rarr;",g.appendChild(r),g.appendChild(f),n.appendChild(v),n.appendChild(g),e.appendChild(p),e.appendChild(o),e.appendChild(t),e.appendChild(i),e.appendChild(n),{wrapper:e,arrow:o,title:t,description:i,footer:n,previousButton:r,nextButton:f,closeButton:p,footerButtons:g,progress:v}}function Se(){var o;const e=l("popover");e&&((o=e.wrapper.parentElement)==null||o.removeChild(e.wrapper))}const Le="";function ke(e={}){z(e);function o(){a("allowClose")&&f()}function t(){const s=l("activeIndex"),c=a("steps")||[];if(typeof s=="undefined")return;const d=s+1;c[d]?r(d):f()}function i(){const s=l("activeIndex"),c=a("steps")||[];if(typeof s=="undefined")return;const d=s-1;c[d]?r(d):f()}function p(s){(a("steps")||[])[s]?r(s):f()}function n(){var h;if(l("__transitionCallback"))return;const c=l("activeIndex"),d=l("__activeStep"),w=l("__activeElement");if(typeof c=="undefined"||typeof d=="undefined"||typeof l("activeIndex")=="undefined")return;const u=((h=d.popover)==null?void 0:h.onPrevClick)||a("onPrevClick");if(u)return u(w,d,{config:a(),state:l()});i()}function v(){var u;if(l("__transitionCallback"))return;const c=l("activeIndex"),d=l("__activeStep"),w=l("__activeElement");if(typeof c=="undefined"||typeof d=="undefined")return;const y=((u=d.popover)==null?void 0:u.onNextClick)||a("onNextClick");if(y)return y(w,d,{config:a(),state:l()});t()}function g(){l("isInitialized")||(b("isInitialized",!0),document.body.classList.add("aideye-active",a("animate")?"aideye-fade":"aideye-simple"),me(),O("overlayClick",o),O("escapePress",o),O("arrowLeftPress",n),O("arrowRightPress",v))}function r(s=0){var H,$,B,M,R,I,ie,ne;const c=a("steps");if(!c){console.error("No steps to drive through"),f();return}if(!c[s]){f();return}b("__activeOnDestroyed",document.activeElement),b("activeIndex",s);const d=c[s],w=c[s+1],y=c[s-1],u=((H=d.popover)==null?void 0:H.doneBtnText)||a("doneBtnText")||"Done",h=a("allowClose"),P=typeof(($=d.popover)==null?void 0:$.showProgress)!="undefined"?(B=d.popover)==null?void 0:B.showProgress:a("showProgress"),L=(((M=d.popover)==null?void 0:M.progressText)||a("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${s+1}`).replace("{{total}}",`${c.length}`),x=((R=d.popover)==null?void 0:R.showButtons)||a("showButtons"),C=["next","previous",...h?["close"]:[]].filter(_e=>!(x!=null&&x.length)||x.includes(_e)),m=((I=d.popover)==null?void 0:I.onNextClick)||a("onNextClick"),k=((ie=d.popover)==null?void 0:ie.onPrevClick)||a("onPrevClick"),T=((ne=d.popover)==null?void 0:ne.onCloseClick)||a("onCloseClick");Q({...d,popover:{showButtons:C,nextBtnText:w?void 0:u,disableButtons:[...y?[]:["previous"]],showProgress:P,progressText:L,onNextClick:m||(()=>{w?r(s+1):f()}),onPrevClick:k||(()=>{r(s-1)}),onCloseClick:T||(()=>{f()}),...(d==null?void 0:d.popover)||{}}})}function f(s=!0){const c=l("__activeElement"),d=l("__activeStep"),w=l("__activeOnDestroyed"),y=a("onDestroyStarted");if(s&&y){const P=!c||(c==null?void 0:c.id)==="aideye-dummy-element";y(P?void 0:c,d,{config:a(),state:l()});return}const u=(d==null?void 0:d.onDeselected)||a("onDeselected"),h=a("onDestroyed");if(document.body.classList.remove("aideye-active","aideye-fade","aideye-simple"),be(),Se(),ge(),fe(),ce(),K(),c&&d){const P=c.id==="aideye-dummy-element";u&&u(P?void 0:c,d,{config:a(),state:l()}),h&&h(P?void 0:c,d,{config:a(),state:l()})}w&&w.focus()}return{isActive:()=>l("isInitialized")||!1,refresh:A,drive:(s=0)=>{g(),r(s)},setConfig:z,setSteps:s=>{K(),z({...a(),steps:s})},getConfig:a,getState:l,getActiveIndex:()=>l("activeIndex"),isFirstStep:()=>l("activeIndex")===0,isLastStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&c===s.length-1},getActiveStep:()=>l("activeStep"),getActiveElement:()=>l("activeElement"),getPreviousElement:()=>l("previousElement"),getPreviousStep:()=>l("previousStep"),moveNext:t,movePrevious:i,moveTo:p,hasNextStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&s[c+1]},hasPreviousStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&s[c-1]},highlight:s=>{g(),Q({...s,popover:s.popover?{showButtons:[],showProgress:!1,progressText:"",...s.popover}:void 0})},destroy:()=>{f(!1)}}}return D.aideye=ke,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),D}({});
var aideyekit=function(D){"use strict";let F={};function z(e={}){F={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...e}}function a(e){return e?F[e]:F}function W(e,o,t,i){return(e/=i/2)<1?t/2*e*e+o:-t/2*(--e*(e-2)-1)+o}function q(e){const o='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(t=>{const i=t.matches(o),p=Array.from(t.querySelectorAll(o));return[...i?[t]:[],...p]}).filter(t=>getComputedStyle(t).pointerEvents!=="none"&&ae(t))}function V(e){if(!e||se(e))return;const o=a("smoothScroll");e.scrollIntoView({behavior:!o||re(e)?"auto":"smooth",inline:"center",block:"center"})}function re(e){if(!e||!e.parentElement)return;const o=e.parentElement;return o.scrollHeight>o.clientHeight}function se(e){const o=e.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)}function ae(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let N={};function b(e,o){N[e]=o}function l(e){return e?N[e]:N}function K(){N={}}let T={};function O(e,o){T[e]=o}function _(e){var o;(o=T[e])==null||o.call(T)}function ce(){T={}}function le(e,o,t,i){let p=l("__activeStagePosition");const n=p||t.getBoundingClientRect(),h=i.getBoundingClientRect(),g=W(e,n.x,h.x-n.x,o),r=W(e,n.y,h.y-n.y,o),f=W(e,n.width,h.width-n.width,o),s=W(e,n.height,h.height-n.height,o);p={x:g,y:r,width:f,height:s},Y(p),b("__activeStagePosition",p)}function X(e){if(!e)return;const o=e.getBoundingClientRect(),t={x:o.x,y:o.y,width:o.width,height:o.height};b("__activeStagePosition",t),Y(t)}function de(){const e=l("__activeStagePosition"),o=l("__overlaySvg");if(!e)return;if(!o){console.warn("No stage svg found.");return}const t=window.innerWidth,i=window.innerHeight;o.setAttribute("viewBox",`0 0 ${t} ${i}`)}function pe(e){const o=ue(e);document.body.appendChild(o),G(o,t=>{t.target.tagName==="path"&&_("overlayClick")}),b("__overlaySvg",o)}function Y(e){const o=l("__overlaySvg");if(!o){pe(e);return}const t=o.firstElementChild;if((t==null?void 0:t.tagName)!=="path")throw new Error("no path element found in stage svg");t.setAttribute("d",j(e))}function ue(e){const o=window.innerWidth,t=window.innerHeight,i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("aideye-overlay","aideye-overlay-animated"),i.setAttribute("viewBox",`0 0 ${o} ${t}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%";const p=document.createElementNS("http://www.w3.org/2000/svg","path");return p.setAttribute("d",j(e)),p.style.fill=a("overlayColor")||"rgb(0,0,0)",p.style.opacity=`${a("overlayOpacity")}`,p.style.pointerEvents="auto",p.style.cursor="auto",i.appendChild(p),i}function j(e){const o=window.innerWidth,t=window.innerHeight,i=a("stagePadding")||0,p=a("stageRadius")||0,n=e.width+i*2,h=e.height+i*2,g=Math.min(p,n/2,h/2),r=Math.floor(Math.max(g,0)),f=e.x-i+r,s=e.y-i,c=n-r*2,d=h-r*2;return`M${o},0L0,0L0,${t}L${o},${t}L${o},0Z
M${f},${s} h${c} a${r},${r} 0 0 1 ${r},${r} v${d} a${r},${r} 0 0 1 -${r},${r} h-${c} a${r},${r} 0 0 1 -${r},-${r} v-${d} a${r},${r} 0 0 1 ${r},-${r} z`}function fe(){const e=l("__overlaySvg");e&&e.remove()}function he(){const e=document.getElementById("aideye-dummy-element");if(e)return e;let o=document.createElement("div");return o.id="aideye-dummy-element",o.style.width="0",o.style.height="0",o.style.pointerEvents="none",o.style.opacity="0",o.style.position="fixed",o.style.top="50%",o.style.left="50%",document.body.appendChild(o),o}function Q(e){const{element:o}=e;let t=typeof o=="string"?document.querySelector(o):o;t||(t=he()),ye(t,e)}function ve(){const e=l("__activeElement"),o=l("__activeStep");e&&(X(e),de(),oe(e,o))}function ye(e,o){const i=Date.now(),p=l("__activeStep"),n=l("__activeElement")||e,h=!n||n===e,g=e.id==="aideye-dummy-element",r=n.id==="aideye-dummy-element",f=a("animate"),s=o.onHighlightStarted||a("onHighlightStarted"),c=(o==null?void 0:o.onHighlighted)||a("onHighlighted"),d=(p==null?void 0:p.onDeselected)||a("onDeselected"),w=a(),y=l();!h&&d&&d(r?void 0:n,p,{config:w,state:y}),s&&s(g?void 0:e,o,{config:w,state:y});const u=!h&&f;let v=!1;xe(),b("previousStep",p),b("previousElement",n),b("activeStep",o),b("activeElement",e);const P=()=>{if(l("__transitionCallback")!==P)return;const x=Date.now()-i,m=400-x<=400/2;o.popover&&m&&!v&&u&&(J(e,o),v=!0),a("animate")&&x<400?le(x,400,n,e):(X(e),c&&c(g?void 0:e,o,{config:a(),state:l()}),b("__transitionCallback",void 0),b("__previousStep",p),b("__previousElement",n),b("__activeStep",o),b("__activeElement",e)),window.requestAnimationFrame(P)};b("__transitionCallback",P),window.requestAnimationFrame(P),V(e),!u&&o.popover&&J(e,o),n.classList.remove("aideye-active-element","aideye-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),a("disableActiveInteraction")&&e.classList.add("aideye-no-interaction"),e.classList.add("aideye-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","aideye-popover-content")}function ge(){var e;(e=document.getElementById("aideye-dummy-element"))==null||e.remove(),document.querySelectorAll(".aideye-active-element").forEach(o=>{o.classList.remove("aideye-active-element","aideye-no-interaction"),o.removeAttribute("aria-haspopup"),o.removeAttribute("aria-expanded"),o.removeAttribute("aria-controls")})}function E(){const e=l("__resizeTimeout");e&&window.cancelAnimationFrame(e),b("__resizeTimeout",window.requestAnimationFrame(ve))}function we(e){var r;if(!l("isInitialized")||!(e.key==="Tab"||e.keyCode===9))return;const i=l("__activeElement"),p=(r=l("popover"))==null?void 0:r.wrapper,n=q([...p?[p]:[],...i?[i]:[]]),h=n[0],g=n[n.length-1];if(e.preventDefault(),e.shiftKey){const f=n[n.indexOf(document.activeElement)-1]||g;f==null||f.focus()}else{const f=n[n.indexOf(document.activeElement)+1]||h;f==null||f.focus()}}function Z(e){var t;((t=a("allowKeyboardControl"))==null||t)&&(e.key==="Escape"?_("escapePress"):e.key==="ArrowRight"?_("arrowRightPress"):e.key==="ArrowLeft"&&_("arrowLeftPress"))}function G(e,o,t){const i=(n,h)=>{const g=n.target;e.contains(g)&&((!t||t(g))&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation()),h==null||h(n))};document.addEventListener("pointerdown",i,!0),document.addEventListener("mousedown",i,!0),document.addEventListener("pointerup",i,!0),document.addEventListener("mouseup",i,!0),document.addEventListener("click",n=>{i(n,o)},!0)}function me(){window.addEventListener("keyup",Z,!1),window.addEventListener("keydown",we,!1),window.addEventListener("resize",E),window.addEventListener("scroll",E)}function be(){window.removeEventListener("keyup",Z),window.removeEventListener("resize",E),window.removeEventListener("scroll",E)}function xe(){const e=l("popover");e&&(e.wrapper.style.display="none")}function J(e,o){var C,m;let t=l("popover");t&&document.body.removeChild(t.wrapper),t=Pe(),document.body.appendChild(t.wrapper);const{title:i,description:p,showButtons:n,disableButtons:h,showProgress:g,nextBtnText:r=a("nextBtnText")||"Next &rarr;",prevBtnText:f=a("prevBtnText")||"&larr; Previous",progressText:s=a("progressText")||"{current} of {total}"}=o.popover||{};t.nextButton.innerHTML=r,t.previousButton.innerHTML=f,t.progress.innerHTML=s,i?(t.title.innerHTML=i,t.title.style.display="block"):t.title.style.display="none",p?(t.description.innerHTML=p,t.description.style.display="block"):t.description.style.display="none";const c=n||a("showButtons"),d=g||a("showProgress")||!1,w=(c==null?void 0:c.includes("next"))||(c==null?void 0:c.includes("previous"))||d;t.closeButton.style.display=c.includes("close")?"block":"none",w?(t.footer.style.display="flex",t.progress.style.display=d?"block":"none",t.nextButton.style.display=c.includes("next")?"block":"none",t.previousButton.style.display=c.includes("previous")?"block":"none"):t.footer.style.display="none";const y=h||a("disableButtons")||[];y!=null&&y.includes("next")&&(t.nextButton.disabled=!0,t.nextButton.classList.add("aideye-popover-btn-disabled")),y!=null&&y.includes("previous")&&(t.previousButton.disabled=!0,t.previousButton.classList.add("aideye-popover-btn-disabled")),y!=null&&y.includes("close")&&(t.closeButton.disabled=!0,t.closeButton.classList.add("aideye-popover-btn-disabled"));const u=t.wrapper;u.style.display="block",u.style.left="",u.style.top="",u.style.bottom="",u.style.right="",u.id="aideye-popover-content",u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby","aideye-popover-title"),u.setAttribute("aria-describedby","aideye-popover-description");const v=t.arrow;v.className="aideye-popover-arrow";const P=((C=o.popover)==null?void 0:C.popoverClass)||a("popoverClass")||"";u.className=`aideye-popover ${P}`.trim(),G(t.wrapper,k=>{var M,R,I;const A=k.target,H=((M=o.popover)==null?void 0:M.onNextClick)||a("onNextClick"),$=((R=o.popover)==null?void 0:R.onPrevClick)||a("onPrevClick"),B=((I=o.popover)==null?void 0:I.onCloseClick)||a("onCloseClick");if(A.classList.contains("aideye-popover-next-btn"))return H?H(e,o,{config:a(),state:l()}):_("nextClick");if(A.classList.contains("aideye-popover-prev-btn"))return $?$(e,o,{config:a(),state:l()}):_("prevClick");if(A.classList.contains("aideye-popover-close-btn"))return B?B(e,o,{config:a(),state:l()}):_("closeClick")},k=>!(t!=null&&t.description.contains(k))&&!(t!=null&&t.title.contains(k))&&typeof k.className=="string"&&k.className.includes("aideye-popover")),b("popover",t);const S=((m=o.popover)==null?void 0:m.onPopoverRender)||a("onPopoverRender");S&&S(t,{config:a(),state:l()}),oe(e,o),V(u);const L=e.classList.contains("aideye-dummy-element"),x=q([u,...L?[]:[e]]);x.length>0&&x[0].focus()}function U(){const e=l("popover");if(!(e!=null&&e.wrapper))return;const o=e.wrapper.getBoundingClientRect(),t=a("stagePadding")||0,i=a("popoverOffset")||0;return{width:o.width+t+i,height:o.height+t+i,realWidth:o.width,realHeight:o.height}}function ee(e,o){const{elementDimensions:t,popoverDimensions:i,popoverPadding:p,popoverArrowDimensions:n}=o;return e==="start"?Math.max(Math.min(t.top-p,window.innerHeight-i.realHeight-n.width),n.width):e==="end"?Math.max(Math.min(t.top-(i==null?void 0:i.realHeight)+t.height+p,window.innerHeight-(i==null?void 0:i.realHeight)-n.width),n.width):e==="center"?Math.max(Math.min(t.top+t.height/2-(i==null?void 0:i.realHeight)/2,window.innerHeight-(i==null?void 0:i.realHeight)-n.width),n.width):0}function te(e,o){const{elementDimensions:t,popoverDimensions:i,popoverPadding:p,popoverArrowDimensions:n}=o;return e==="start"?Math.max(Math.min(t.left-p,window.innerWidth-i.realWidth-n.width),n.width):e==="end"?Math.max(Math.min(t.left-(i==null?void 0:i.realWidth)+t.width+p,window.innerWidth-(i==null?void 0:i.realWidth)-n.width),n.width):e==="center"?Math.max(Math.min(t.left+t.width/2-(i==null?void 0:i.realWidth)/2,window.innerWidth-(i==null?void 0:i.realWidth)-n.width),n.width):0}function oe(e,o){const t=l("popover");if(!t)return;const{align:i="start",side:p="left"}=(o==null?void 0:o.popover)||{},n=i,h=e.id==="aideye-dummy-element"?"over":p,g=a("stagePadding")||0,r=U(),f=t.arrow.getBoundingClientRect(),s=e.getBoundingClientRect(),c=s.top-r.height;let d=c>=0;const w=window.innerHeight-(s.bottom+r.height);let y=w>=0;const u=s.left-r.width;let v=u>=0;const P=window.innerWidth-(s.right+r.width);let S=P>=0;const L=!d&&!y&&!v&&!S;let x=h;if(h==="top"&&d?S=v=y=!1:h==="bottom"&&y?S=v=d=!1:h==="left"&&v?S=d=y=!1:h==="right"&&S&&(v=d=y=!1),h==="over"){const C=window.innerWidth/2-r.realWidth/2,m=window.innerHeight/2-r.realHeight/2;t.wrapper.style.left=`${C}px`,t.wrapper.style.right="auto",t.wrapper.style.top=`${m}px`,t.wrapper.style.bottom="auto"}else if(L){const C=window.innerWidth/2-(r==null?void 0:r.realWidth)/2,m=10;t.wrapper.style.left=`${C}px`,t.wrapper.style.right="auto",t.wrapper.style.bottom=`${m}px`,t.wrapper.style.top="auto"}else if(v){const C=Math.min(u,window.innerWidth-(r==null?void 0:r.realWidth)-f.width),m=ee(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.left=`${C}px`,t.wrapper.style.top=`${m}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",x="left"}else if(S){const C=Math.min(P,window.innerWidth-(r==null?void 0:r.realWidth)-f.width),m=ee(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.right=`${C}px`,t.wrapper.style.top=`${m}px`,t.wrapper.style.bottom="auto",t.wrapper.style.left="auto",x="right"}else if(d){const C=Math.min(c,window.innerHeight-r.realHeight-f.width);let m=te(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.top=`${C}px`,t.wrapper.style.left=`${m}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",x="top"}else if(y){const C=Math.min(w,window.innerHeight-(r==null?void 0:r.realHeight)-f.width);let m=te(n,{elementDimensions:s,popoverDimensions:r,popoverPadding:g,popoverArrowDimensions:f});t.wrapper.style.left=`${m}px`,t.wrapper.style.bottom=`${C}px`,t.wrapper.style.top="auto",t.wrapper.style.right="auto",x="bottom"}L?t.arrow.classList.add("aideye-popover-arrow-none"):Ce(n,x,e)}function Ce(e,o,t){const i=l("popover");if(!i)return;const p=t.getBoundingClientRect(),n=U(),h=i.arrow,g=n.width,r=window.innerWidth,f=p.width,s=p.left,c=n.height,d=window.innerHeight,w=p.top,y=p.height;h.className="aideye-popover-arrow";let u=o,v=e;o==="top"?(s+f<=0?(u="right",v="end"):s+f-g<=0&&(u="top",v="start"),s>=r?(u="left",v="end"):s+g>=r&&(u="top",v="end")):o==="bottom"?(s+f<=0?(u="right",v="start"):s+f-g<=0&&(u="bottom",v="start"),s>=r?(u="left",v="start"):s+g>=r&&(u="bottom",v="end")):o==="left"?(w+y<=0?(u="bottom",v="end"):w+y-c<=0&&(u="left",v="start"),w>=d?(u="top",v="end"):w+c>=d&&(u="left",v="end")):o==="right"&&(w+y<=0?(u="bottom",v="start"):w+y-c<=0&&(u="right",v="start"),w>=d?(u="top",v="start"):w+c>=d&&(u="right",v="end")),u?(h.classList.add(`aideye-popover-arrow-side-${u}`),h.classList.add(`aideye-popover-arrow-align-${v}`)):h.classList.add("aideye-popover-arrow-none")}function Pe(){const e=document.createElement("div");e.classList.add("aideye-popover");const o=document.createElement("div");o.classList.add("aideye-popover-arrow");const t=document.createElement("header");t.id="aideye-popover-title",t.classList.add("aideye-popover-title"),t.style.display="none",t.innerText="Popover Title";const i=document.createElement("div");i.id="aideye-popover-description",i.classList.add("aideye-popover-description"),i.style.display="none",i.innerText="Popover description is here";const p=document.createElement("button");p.type="button",p.classList.add("aideye-popover-close-btn"),p.setAttribute("aria-label","Close"),p.innerHTML="&times;";const n=document.createElement("footer");n.classList.add("aideye-popover-footer");const h=document.createElement("span");h.classList.add("aideye-popover-progress-text"),h.innerText="";const g=document.createElement("span");g.classList.add("aideye-popover-navigation-btns");const r=document.createElement("button");r.type="button",r.classList.add("aideye-popover-prev-btn"),r.innerHTML="&larr; Previous";const f=document.createElement("button");return f.type="button",f.classList.add("aideye-popover-next-btn"),f.innerHTML="Next &rarr;",g.appendChild(r),g.appendChild(f),n.appendChild(h),n.appendChild(g),e.appendChild(p),e.appendChild(o),e.appendChild(t),e.appendChild(i),e.appendChild(n),{wrapper:e,arrow:o,title:t,description:i,footer:n,previousButton:r,nextButton:f,closeButton:p,footerButtons:g,progress:h}}function Se(){var o;const e=l("popover");e&&((o=e.wrapper.parentElement)==null||o.removeChild(e.wrapper))}const Le="";function ke(e={}){z(e);function o(){a("allowClose")&&f()}function t(){const s=l("activeIndex"),c=a("steps")||[];if(typeof s=="undefined")return;const d=s+1;c[d]?r(d):f()}function i(){const s=l("activeIndex"),c=a("steps")||[];if(typeof s=="undefined")return;const d=s-1;c[d]?r(d):f()}function p(s){(a("steps")||[])[s]?r(s):f()}function n(){var v;if(l("__transitionCallback"))return;const c=l("activeIndex"),d=l("__activeStep"),w=l("__activeElement");if(typeof c=="undefined"||typeof d=="undefined"||typeof l("activeIndex")=="undefined")return;const u=((v=d.popover)==null?void 0:v.onPrevClick)||a("onPrevClick");if(u)return u(w,d,{config:a(),state:l()});i()}function h(){var u;if(l("__transitionCallback"))return;const c=l("activeIndex"),d=l("__activeStep"),w=l("__activeElement");if(typeof c=="undefined"||typeof d=="undefined")return;const y=((u=d.popover)==null?void 0:u.onNextClick)||a("onNextClick");if(y)return y(w,d,{config:a(),state:l()});t()}function g(){l("isInitialized")||(b("isInitialized",!0),document.body.classList.add("aideye-active",a("animate")?"aideye-fade":"aideye-simple"),me(),O("overlayClick",o),O("escapePress",o),O("arrowLeftPress",n),O("arrowRightPress",h))}function r(s=0){var H,$,B,M,R,I,ie,ne;const c=a("steps");if(!c){console.error("No steps to aid through"),f();return}if(!c[s]){f();return}b("__activeOnDestroyed",document.activeElement),b("activeIndex",s);const d=c[s],w=c[s+1],y=c[s-1],u=((H=d.popover)==null?void 0:H.doneBtnText)||a("doneBtnText")||"Done",v=a("allowClose"),P=typeof(($=d.popover)==null?void 0:$.showProgress)!="undefined"?(B=d.popover)==null?void 0:B.showProgress:a("showProgress"),L=(((M=d.popover)==null?void 0:M.progressText)||a("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${s+1}`).replace("{{total}}",`${c.length}`),x=((R=d.popover)==null?void 0:R.showButtons)||a("showButtons"),C=["next","previous",...v?["close"]:[]].filter(_e=>!(x!=null&&x.length)||x.includes(_e)),m=((I=d.popover)==null?void 0:I.onNextClick)||a("onNextClick"),k=((ie=d.popover)==null?void 0:ie.onPrevClick)||a("onPrevClick"),A=((ne=d.popover)==null?void 0:ne.onCloseClick)||a("onCloseClick");Q({...d,popover:{showButtons:C,nextBtnText:w?void 0:u,disableButtons:[...y?[]:["previous"]],showProgress:P,progressText:L,onNextClick:m||(()=>{w?r(s+1):f()}),onPrevClick:k||(()=>{r(s-1)}),onCloseClick:A||(()=>{f()}),...(d==null?void 0:d.popover)||{}}})}function f(s=!0){const c=l("__activeElement"),d=l("__activeStep"),w=l("__activeOnDestroyed"),y=a("onDestroyStarted");if(s&&y){const P=!c||(c==null?void 0:c.id)==="aideye-dummy-element";y(P?void 0:c,d,{config:a(),state:l()});return}const u=(d==null?void 0:d.onDeselected)||a("onDeselected"),v=a("onDestroyed");if(document.body.classList.remove("aideye-active","aideye-fade","aideye-simple"),be(),Se(),ge(),fe(),ce(),K(),c&&d){const P=c.id==="aideye-dummy-element";u&&u(P?void 0:c,d,{config:a(),state:l()}),v&&v(P?void 0:c,d,{config:a(),state:l()})}w&&w.focus()}return{isActive:()=>l("isInitialized")||!1,refresh:E,aidAt:(s=0)=>{g(),r(s)},setConfig:z,setSteps:s=>{K(),z({...a(),steps:s})},getConfig:a,getState:l,getActiveIndex:()=>l("activeIndex"),isFirstStep:()=>l("activeIndex")===0,isLastStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&c===s.length-1},getActiveStep:()=>l("activeStep"),getActiveElement:()=>l("activeElement"),getPreviousElement:()=>l("previousElement"),getPreviousStep:()=>l("previousStep"),moveNext:t,movePrevious:i,moveTo:p,hasNextStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&s[c+1]},hasPreviousStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&s[c-1]},highlight:s=>{g(),Q({...s,popover:s.popover?{showButtons:[],showProgress:!1,progressText:"",...s.popover}:void 0})},destroy:()=>{f(!1)}}}return D.aideye=ke,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),D}({});

@@ -5,3 +5,3 @@ {

"private": false,
"version": "0.0.1",
"version": "0.0.2",
"main": "./dist/aideyekit.cjs",

@@ -8,0 +8,0 @@ "module": "./dist/aideyekit.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc