1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`282cc9b677652e6fae2b78ae8486f8251e72ce64`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`81887d01-4c8b-49d1-87a4-be79d78e4cc2`,e._sentryDebugIdIdentifier=`sentry-dbid-81887d01-4c8b-49d1-87a4-be79d78e4cc2`)}catch{}})();import{C as e,D as t,H as n,J as r,Q as i,S as a,U as o,t as s,u as c,x as l}from"./style-BTGxmFmA.js";import{t as u}from"./basedirective-I80ZxYoF.js";var d=s.extend({name:`ripple-directive`,style:` 2 .p-ink { 3 display: block; 4 position: absolute; 5 background: dt('ripple.background'); 6 border-radius: 100%; 7 transform: scale(0); 8 pointer-events: none; 9 } 10 11 .p-ink-active { 12 animation: ripple 0.4s linear; 13 } 14 15 @keyframes ripple { 16 100% { 17 opacity: 0; 18 transform: scale(2.5); 19 } 20 } 21`,classes:{root:`p-ink`}}),f=u.extend({style:d});function p(e){"@babel/helpers - typeof";return p=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},p(e)}function m(e){return v(e)||_(e)||g(e)||h()}function h(){throw TypeError(`Invalid attempt to spread non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(e,t){if(e){if(typeof e==`string`)return y(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function _(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function v(e){if(Array.isArray(e))return y(e)}function y(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){var t=S(e,`string`);return p(t)==`symbol`?t:t+``}function S(e,t){if(p(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(p(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var C=f.extend(`ripple`,{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute(`data-pd-ripple`,!0),this.$host.style.overflow=`hidden`,this.$host.style.position=`relative`):(this.remove(this.$host),this.$host.removeAttribute(`data-pd-ripple`))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener(`mousedown`,this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener(`mousedown`,this.onMouseDown.bind(this))},createRipple:function(e){var t=this.getInk(e);t||(t=a(`span`,b(b({role:`presentation`,"aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx(`root`),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,``),`p-bind`,this.ptm(`root`))),e.appendChild(t),this.$el=t)},remove:function(e){var t=this.getInk(e);t&&(this.$host.style.overflow=``,this.$host.style.position=``,this.unbindEvents(e),t.removeEventListener(`animationend`,this.onAnimationEnd),t.remove())},onMouseDown:function(r){var a=this,s=r.currentTarget,u=this.getInk(s);if(!(!u||getComputedStyle(u,null).display===`none`)){if(!this.isUnstyled()&&t(u,`p-ink-active`),u.setAttribute(`data-p-ink-active`,`false`),!l(u)&&!n(u)){var d=Math.max(c(s),o(s));u.style.height=d+`px`,u.style.width=d+`px`}var f=i(s),p=r.pageX-f.left+document.body.scrollTop-n(u)/2,m=r.pageY-f.top+document.body.scrollLeft-l(u)/2;u.style.top=m+`px`,u.style.left=p+`px`,!this.isUnstyled()&&e(u,`p-ink-active`),u.setAttribute(`data-p-ink-active`,`true`),this.timeout=setTimeout(function(){u&&(!a.isUnstyled()&&t(u,`p-ink-active`),u.setAttribute(`data-p-ink-active`,`false`))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&t(e.currentTarget,`p-ink-active`),e.currentTarget.setAttribute(`data-p-ink-active`,`false`)},getInk:function(e){return e&&e.children?m(e.children).find(function(e){return r(e,`data-pc-name`)===`ripple`}):void 0}}});
22export{C as t}; 23//# sourceMappingURL=ripple-0k6232kY.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.