1import{n as e}from"./standalone-app-Bj-IdwrG.js";import"./polymer-C_GypsRJ.js";import"./institution-DyFDvNu6.js";import{o as t}from"./main-5Sl8yySz.js";var n=t.store.institution,r=class{click_(e){}boundClick_(e){}track_(e){}boundTrack_(e){}close(e){}connectedCallback(){}disconnectedCallback(){}};r.prototype.institution,r.prototype.routeId,r.prototype.swipeStart,r.prototype.swipeEnd;function i(t){class r extends t{static get properties(){return{institution:{type:Object,value:()=>n},routeId:{type:String,attribute:`route-id`}}}constructor(){super(),this.institution=n,this.routeId=void 0,this.boundClick_=e=>this.click_(e),this.boundTrack_=e=>this.track_(e),this.swipeStart=null,this.swipeEnd=null}connectedCallback(){super.connectedCallback(),this.addEventListener(`click`,this.boundClick_,!1),this.addEventListener(`touchstart`,this.boundTrack_),this.addEventListener(`touchend`,this.boundTrack_),this.addEventListener(`touchmove`,this.boundTrack_)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`click`,this.boundClick_,!1),this.removeEventListener(`touchstart`,this.boundTrack_),this.removeEventListener(`touchend`,this.boundTrack_),this.removeEventListener(`touchmove`,this.boundTrack_)}click_(e){let t=e.composedPath();for(let n=0;n<t.length;n++)if(t[n].tagName===`A`||t[n].tagName===`BUTTON`&&!(t[n].className||``).includes(`toggle-button`)){this.close(e);return}}close(e){this.dispatchEvent(new CustomEvent(`closeModal`,{bubbles:!0,composed:!0}))}track_(t){switch(t.type){case`touchstart`:this.swipeStart=t;break;case`touchmove`:this.swipeEnd=t;break;case`touchend`:try{if(this.swipeEnd&&this.swipeStart){let n=this.swipeStart.touches[0].screenX-this.swipeEnd.touches[0].screenX;e.console.log(`swipe x diff: ${n}`),e.console.log(`swipe time: ${this.swipeEnd.timeStamp-this.swipeStart.timeStamp}`),n>50&&this.swipeEnd.timeStamp-this.swipeStart.timeStamp<500&&this.close(t),this.swipeStart=null,this.swipeEnd=null}}catch(t){e.console.error(t)}break;default:break}}}return r}i.Type=r;export{i as t};
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.