/*! For license information please see 9071.460b09a07ec240bb.js.LICENSE.txt */
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9071],{9071:(e,t,o)=>{o.r(t),o.d(t,{startTapClick:()=>startTapClick});var n=o(28476),i=o(81559);const startTapClick=e=>{if(void 0===n.d)return;let t,o,c,d=0;const l=e.getBoolean("animated",!0)&&e.getBoolean("rippleEffect",!0),u=new WeakMap,cancelActive=()=>{c&&clearTimeout(c),c=void 0,t&&(removeActivated(!1),t=void 0)},setActivatedElement=(e,o)=>{if(e&&e===t)return;c&&clearTimeout(c),c=void 0;const{x:n,y:r}=(0,i.u)(o);if(t){if(u.has(t))throw new Error("internal error");t.classList.contains(s)||addActivated(t,n,r),removeActivated(!0)}if(e){const t=u.get(e);t&&(clearTimeout(t),u.delete(e)),e.classList.remove(s);const callback=()=>{addActivated(e,n,r),c=void 0};isInstant(e)?callback():c=setTimeout(callback,a)}t=e},addActivated=(e,t,n)=>{if(d=Date.now(),e.classList.add(s),!l)return;const i=getRippleEffect(e);null!==i&&(removeRipple(),o=i.addRipple(t,n))},removeRipple=()=>{void 0!==o&&(o.then((e=>e())),o=void 0)},removeActivated=e=>{removeRipple();const o=t;if(!o)return;const n=r-Date.now()+d;if(e&&n>0&&!isInstant(o)){const e=setTimeout((()=>{o.classList.remove(s),u.delete(o)}),r);u.set(o,e)}else o.classList.remove(s)};n.d.addEventListener("ionGestureCaptured",cancelActive),n.d.addEventListener("pointerdown",(e=>{t||2===e.button||setActivatedElement(getActivatableTarget(e),e)}),!0),n.d.addEventListener("pointerup",(e=>{setActivatedElement(void 0,e)}),!0),n.d.addEventListener("pointercancel",cancelActive,!0)},getActivatableTarget=e=>{if(void 0===e.composedPath)return e.target.closest(".ion-activatable");{const t=e.composedPath();for(let e=0;e<t.length-2;e++){const o=t[e];if(!(o instanceof ShadowRoot)&&o.classList.contains("ion-activatable"))return o}}},isInstant=e=>e.classList.contains("ion-activatable-instant"),getRippleEffect=e=>{if(e.shadowRoot){const t=e.shadowRoot.querySelector("ion-ripple-effect");if(t)return t}return e.querySelector("ion-ripple-effect")},s="ion-activated",a=100,r=150}}]);