mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
1 line
2.0 KiB
JavaScript
1 line
2.0 KiB
JavaScript
|
|
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[1355],{41355:function(t,e,n){"use strict";n.r(e),n.d(e,{startTapClick:function(){return o}});var i=n(13772),o=function(t){var e,n,o,f,v=10*-l,p=0,L=t.getBoolean("animated",!0)&&t.getBoolean("rippleEffect",!0),m=new WeakMap,h=function(t){v=(0,i.n)(t),w(t)},E=function(){clearTimeout(f),f=void 0,n&&(S(!1),n=void 0)},g=function(t){n||void 0!==e&&null!==e.parentElement||(e=void 0,b(a(t),t))},w=function(t){b(void 0,t)},b=function(t,e){if(!t||t!==n){clearTimeout(f),f=void 0;var o=(0,i.p)(e),a=o.x,c=o.y;if(n){if(m.has(n))throw new Error("internal error");n.classList.contains(s)||k(n,a,c),S(!0)}if(t){var d=m.get(t);d&&(clearTimeout(d),m.delete(t));var l=r(t)?0:u;t.classList.remove(s),f=setTimeout(function(){k(t,a,c),f=void 0},l)}n=t}},k=function(t,e,n){p=Date.now(),t.classList.add(s);var i=L&&c(t);i&&i.addRipple&&(T(),o=i.addRipple(e,n))},T=function(){void 0!==o&&(o.then(function(t){return t()}),o=void 0)},S=function(t){T();var e=n;if(e){var i=d-Date.now()+p;if(t&&i>0&&!r(e)){var o=setTimeout(function(){e.classList.remove(s),m.delete(e)},d);m.set(e,o)}else e.classList.remove(s)}},C=document;C.addEventListener("ionScrollStart",function(t){e=t.target,E()}),C.addEventListener("ionScrollEnd",function(){e=void 0}),C.addEventListener("ionGestureCaptured",E),C.addEventListener("touchstart",function(t){v=(0,i.n)(t),g(t)},!0),C.addEventListener("touchcancel",h,!0),C.addEventListener("touchend",h,!0),C.addEventListener("mousedown",function(t){var e=(0,i.n)(t)-l;v<e&&g(t)},!0),C.addEventListener("mouseup",function(t){var e=(0,i.n)(t)-l;v<e&&w(t)},!0)},a=function(t){if(!t.composedPath)return t.target.closest(".ion-activatable");for(var e=t.composedPath(),n=0;n<e.length-2;n++){var i=e[n];if(i.classList&&i.classList.contains("ion-activatable"))return i}},r=function(t){return t.classList.contains("ion-activatable-instant")},c=function(t){if(t.shadowRoot){var e=t.shadowRoot.querySelector("ion-ripple-effect");if(e)return e}return t.querySelector("ion-ripple-effect")},s="ion-activated",u=200,d=200,l=2500}}]);
|