/*! For license information please see 80964.0829ea06fcd68352.js.LICENSE.txt */
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[80964],{80964:(t,n,i)=>{i.r(n),i.d(n,{ion_ripple_effect:()=>r});var a=i(10467),e=i(96317),o=i(74346);const r=class{constructor(t){(0,e.r)(this,t),this.type="bounded"}addRipple(t,n){var i=this;return(0,a.A)((function*(){return new Promise((a=>{(0,e.d)((()=>{const o=i.el.getBoundingClientRect(),r=o.width,l=o.height,m=Math.sqrt(r*r+l*l),f=Math.max(l,r),d=i.unbounded?f:m+s,u=Math.floor(f*c),p=d/u;let b=t-o.left,w=n-o.top;i.unbounded&&(b=.5*r,w=.5*l);const k=b-.5*u,h=w-.5*u,y=.5*r-b,g=.5*l-w;(0,e.w)((()=>{const t=document.createElement("div");t.classList.add("ripple-effect");const n=t.style;n.top=h+"px",n.left=k+"px",n.width=n.height=u+"px",n.setProperty("--final-scale",`${p}`),n.setProperty("--translate-end",`${y}px, ${g}px`);(i.el.shadowRoot||i.el).appendChild(t),setTimeout((()=>{a((()=>{removeRipple(t)}))}),325)}))}))}))}))()}get unbounded(){return"unbounded"===this.type}render(){const t=(0,o.b)(this);return(0,e.h)(e.e,{key:"40c7f73e7f5f67e29f83e1236a61c6e1c9943c42",role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return(0,e.f)(this)}},removeRipple=t=>{t.classList.add("fade-out"),setTimeout((()=>{t.remove()}),200)},s=10,c=.5;r.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}"}}]);