"use strict";(window.rspackChunkvitalsLibrary=window.rspackChunkvitalsLibrary||[]).push([[663],{34382(e,t,n){n.d(t,{A:()=>a});var l=n(47450),o=n.n(l)()(!1);o.push([e.id,"body.Vtl-Modal--Active{overflow:hidden;height:auto}.Vtl-Modal[open]{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100vh;max-height:100dvh;margin:0;padding:0;border:none;background:rgba(0,0,0,0);z-index:2147483645;display:flex}@media(min-width: 768px){.Vtl-Modal[open]{place-content:center;align-items:center}}@media(max-width: 767px){.Vtl-Modal[open].Vtl-Modal--Top{align-items:flex-start}.Vtl-Modal[open].Vtl-Modal--Bottom{align-items:flex-end}.Vtl-Modal[open].Vtl-Modal--Bottom .Vtl-Modal__ContentWrapper{top:0}}.Vtl-Modal[open]::backdrop{background-color:rgba(0,0,0,.8);backdrop-filter:blur(4px)}.Vtl-Modal__InnerWrapper,.Vtl-Modal__ContentWrapper,.Vtl-Modal__Content{pointer-events:none}.Vtl-Modal__Content>*{pointer-events:auto}.Vtl-Modal__ContentWrapper{position:relative;z-index:2;top:100px;transition:all 200ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}@media(max-width: 767px){.Vtl-Modal__ContentWrapper{width:100%}}.Vtl-Modal__Content{height:100%}.Vtl-Modal__InnerWrapper{display:flex;max-height:100%}@media(max-width: 767px){.Vtl-Modal__InnerWrapper{height:100%;width:100%}}.Vtl-Modal__InnerWrapper--Active .Vtl-Modal__ContentWrapper{top:0;opacity:1;transition-duration:350ms;max-height:100%}",""]);let a=o},45619(e,t,n){n.d(t,{A:()=>a});var l=n(47450),o=n.n(l)()(!1);o.push([e.id,"body.Vtl-Modal--Active{overflow:hidden;height:auto}.Vtl-Modal{position:fixed;z-index:2147483645;width:100vw}@media(min-width: 768px){.Vtl-Modal{top:0;left:0;height:100vh;display:flex;align-content:center;justify-content:center;align-items:center}}@media(max-width: 767px){.Vtl-Modal--Top{top:0;left:0}.Vtl-Modal--Bottom{bottom:0;left:0}.Vtl-Modal--Bottom .Vtl-Modal__ContentWrapper{top:0}}.Vtl-Modal__Overlay{position:fixed;display:block;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.8);backdrop-filter:blur(4px);z-index:1;opacity:0;transition:all 100ms cubic-bezier(0.4, 0, 0.2, 1);transition-delay:200ms}.Vtl-Modal__Overlay:empty{display:block !important}.Vtl-Modal__ContentWrapper{position:relative;z-index:2;top:100px;transition:all 200ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}@media(max-width: 767px){.Vtl-Modal__ContentWrapper{width:100%}}.Vtl-Modal__Content{height:100%}.Vtl-Modal__InnerWrapper{display:flex;max-height:100%}@media(max-width: 767px){.Vtl-Modal__InnerWrapper{height:100%}}.Vtl-Modal__InnerWrapper--Active .Vtl-Modal__Overlay{transition-duration:250ms;transition-delay:0ms;opacity:1}.Vtl-Modal__InnerWrapper--Active .Vtl-Modal__ContentWrapper{top:0;opacity:1;transition-duration:350ms;max-height:100%}",""]);let a=o},20643(e,t,n){n.d(t,{T:()=>l,k:()=>o});let l=(0,n(57344).s)("Modal"),o="Vtl-Modal--Active"},43482(e,t,n){n.d(t,{b:()=>l.b,o:()=>l.o});var l=n(60179)},47900(e,t,n){n.d(t,{b:()=>p});var l=n(48951),o=n(36564),a=n(52829),r=n(3001),i=n(37274),d=n(57927),c=n(1931),s=n(20643),u=n(34382);let p=(0,o.memo)(function({open:e,children:t,className:n,targetElement:p,position:m=c.o.a6u,preventClickOutsideClose:h=!1,shouldCloseOnEscape:f,isModal:v=!0,ariaLabelledBy:b,ariaLabel:y,onClose:_}){let[w,M]=(0,o.useState)(!1),g=(0,o.useRef)(null),x=(0,o.useRef)(null),C=(0,o.useRef)(!1),V=(0,o.useCallback)(()=>{document.body.classList.remove(s.k)},[]),k=(0,o.useCallback)(()=>{M(!1),V(),setTimeout(()=>{g.current&&g.current.close(),null==_||_(),(0,i.wp)(x.current,g.current)},200)},[_,V]),E=(0,o.useCallback)(()=>{h||k()},[k,h]),T=null==f||f,L=(0,o.useCallback)(e=>{C.current=e.target===g.current},[]),W=(0,o.useCallback)(e=>{C.current&&e.target===g.current&&E()},[E]);return(0,d.O)("Modal",u.A),(0,o.useEffect)(()=>{let t=g.current;if(!t)return;let n=e=>{e.preventDefault(),T&&k()},l=e=>{T&&(0,a.l)(r.K.Z11,e)&&k()};return e&&!t.open?requestAnimationFrame(()=>{if(!t.isConnected)return;let e=p||document.body;e.contains(t)||e.appendChild(t),x.current=document.activeElement,v?(document.body.classList.add(s.k),t.showModal(),t.addEventListener("cancel",n)):(t.show(),window.addEventListener("keyup",l)),t.focus({preventScroll:!0}),setTimeout(()=>{M(!0)},10)}):!e&&t.open&&(M(!1),setTimeout(()=>{V(),t.close(),null==_||_(),(0,i.wp)(x.current,t)},200)),()=>{t.removeEventListener("cancel",n),window.removeEventListener("keyup",l)}},[e,p,_,T,k,v,V]),(0,o.useEffect)(()=>{let e=g.current;return()=>{V(),e&&e.close(),(0,i.wp)(x.current,e)}},[V]),e||w?(0,l.Y)("dialog",{ref:g,className:(0,s.T)({modifier:m,extra:n}),"aria-labelledby":b,"aria-label":b?void 0:y,onPointerDown:L,onClick:W,children:(0,l.Y)("div",{className:(0,s.T)("InnerWrapper",{Active:w&&e}),children:(0,l.Y)("div",{className:(0,s.T)("ContentWrapper"),children:(0,l.Y)("div",{className:(0,s.T)("Content"),children:t})})})}):null})},60179(e,t,n){n.d(t,{b:()=>s,o:()=>r.o});var l=n(48951),o=n(36564),a=n(479),r=n(1931),i=n(58213),d=n(47900);let c=(0,a.R)(),s=(0,o.memo)(function({open:e,children:t,className:n,targetElement:o,position:a,preventClickOutsideClose:r,shouldCloseOnEscape:s,isModal:u,ariaLabelledBy:p,ariaLabel:m,onClose:h}){return c?(0,l.Y)(d.b,{open:e,onClose:h,className:n,targetElement:o,position:a,preventClickOutsideClose:r,shouldCloseOnEscape:s,isModal:u,ariaLabelledBy:p,ariaLabel:m,children:t}):(0,l.Y)(i.b,{open:e,onClose:h,className:n,targetElement:o,position:a,preventClickOutsideClose:r,shouldCloseOnEscape:s,isModal:u,ariaLabelledBy:p,ariaLabel:m,children:t})})},58213(e,t,n){n.d(t,{b:()=>m});var l=n(48951),o=n(36564),a=n(52829),r=n(3001),i=n(37274),d=n(57927),c=n(3991),s=n(1931),u=n(20643),p=n(45619);let m=(0,o.memo)(function({open:e,children:t,className:n,targetElement:m,position:h=s.o.a6u,preventClickOutsideClose:f=!1,shouldCloseOnEscape:v,ariaLabelledBy:b,ariaLabel:y,onClose:_}){let[w,M]=(0,o.useState)(!1),g=(0,o.useRef)(null),x=(0,o.useRef)(null),C=(0,o.useRef)(null),V=(0,o.useCallback)(()=>{document.body.classList.remove(u.k)},[]),k=(0,o.useCallback)(()=>{M(!1),V(),g.current&&_&&g.current.addEventListener("transitionend",_,{once:!0})},[_,V]),E=(0,o.useCallback)(()=>{f||k()},[k,f]),T=null==v||v;return(0,d.O)("Modal",p.A),(0,o.useEffect)(()=>{let t=g.current,n=e=>T&&(0,a.l)(r.K.Z11,e)&&k();return t&&(window.addEventListener("keyup",n),e||setTimeout(()=>{M(!1),V(),null==_||_()},200)),e&&(document.body.classList.add(u.k),window.setTimeout(()=>{M(e)},10)),()=>{V(),window.removeEventListener("keyup",n)}},[e,T,k,_,V]),(0,o.useEffect)(()=>{if(e&&w&&x.current)return C.current=(0,i.Pe)(x.current),()=>{var e;null==(e=C.current)||e.Y56(!0),C.current=null}},[e,w]),e||w?(0,l.Y)(c.K,{className:(0,u.T)({modifier:h,extra:n}),targetEl:m,children:(0,l.FD)("div",{className:(0,u.T)("InnerWrapper",{Active:w&&e}),children:[(0,l.Y)("div",{ref:g,className:(0,u.T)("Overlay"),onClick:E}),(0,l.Y)("div",{ref:x,className:(0,u.T)("ContentWrapper"),role:"dialog","aria-modal":"true","aria-labelledby":b,"aria-label":b?void 0:y,tabIndex:-1,children:(0,l.Y)("div",{className:(0,u.T)("Content"),children:t})})]})}):null})},1931(e,t,n){n.d(t,{o:()=>o});var l,o=((l={}).a6u="Top",l.Z0="Bottom",l)},479(e,t,n){n.d(t,{R:()=>l});function l(){if("u"o});var l=n(36564);let o=(0,l.memo)(function({children:e,targetEl:t,className:n=""}){let o=(0,l.useMemo)(()=>document.createElement("div"),[]);return(0,l.useEffect)(()=>{let e=t||document.body;return o.className=`vtl-portal__container ${n}`,e.appendChild(o),()=>{try{e.removeChild(o)}catch(e){}}},[o,t,n]),(0,l.createPortal)(e,o)})},37274(e,t,n){function l(e){let t=e.querySelectorAll('a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,audio[controls],video[controls],summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])'),n=[];for(let e=0;e=0)&&l.getClientRects().length>0&&!l.closest("[inert]")&&n.push(l)}return n}function o(e,t){if(!(null==e?void 0:e.isConnected)||"function"!=typeof e.focus)return;let n=e.ownerDocument,l=n.activeElement,o=!l||l===n.body||l===n.documentElement||!l.isConnected,a=!!t&&!!l&&t.contains(l);(o||a)&&e.focus({preventScroll:!0})}n.d(t,{Pe:()=>r,wp:()=>o,xS:()=>l});let a=[];function r(e){let t=e.ownerDocument,n=t.activeElement,r={Y56:()=>void 0},i=n=>{if("Tab"!==n.key||a[a.length-1]!==r)return;let o=t.activeElement,i=null==o?void 0:o.closest('dialog[open], [aria-modal="true"]');if(i&&function(e){if("DIALOG"!==e.tagName)return!0;try{return Element.prototype.matches.call(e,":modal")}catch(e){return!0}}(i)&&!i.contains(e)&&!e.contains(i))return;let d=l(e);if(!d.length){n.preventDefault(),e.focus({preventScroll:!0});return}let c=d[0],s=d[d.length-1],u=!o||!e.contains(o);n.shiftKey&&(o===c||o===e||u)?(n.preventDefault(),s.focus()):!n.shiftKey&&(o===s||u)&&(n.preventDefault(),c.focus())};if(r.Y56=(l=!1)=>{t.removeEventListener("keydown",i,!0);let d=a.indexOf(r);-1!==d&&a.splice(d,1),l&&o(n,e)},a.push(r),t.addEventListener("keydown",i,!0),!e.contains(t.activeElement)){var d;(null!=(d=l(e)[0])?d:e).focus({preventScroll:!0})}return r}}}]);