1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:astra-oas-frontend":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`269412cd-c599-4ea3-9c4a-26767e680a9e`,e._sentryDebugIdIdentifier=`sentry-dbid-269412cd-c599-4ea3-9c4a-26767e680a9e`)}catch{}})();import{$ as e,A as t,G as n,Q as r,R as i,V as a,b as o,d as s,f as c,j as l,m as u,mt as d,nt as f,p,s as m,u as h}from"./DKgyLr-x.js";import{t as g}from"./DmP5lFlL.js";import{t as _}from"./Dkxg1h7A.js";import{O as v,g as y,h as b}from"./CxawlfzH.js";import{t as x}from"./q3dvseAA.js";var S=[`tabindex`,`aria-hidden`,`aria-labelledby`,`aria-describedby`],C={class:`modal__container`},w={class:`modal__body`},T={class:`modal__header`},E={class:`modal__content`},D={ref:`last-modal-trigger`,"aria-hidden":`true`,class:`modal__last-trigger`},O={__name:`UiModal`,props:{modelValue:{type:Boolean,required:!1},closeByEsc:{type:Boolean,required:!1,default:!0},dismissible:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:`Video Modal`},description:{type:null,required:!1,default:void 0}},emits:[`close`,`update:modelValue`,`input`,`beforeClose`,`beforeOpen`],setup(O,{emit:k}){let A=O,j=k,M=d(!1),N=d(A.modelValue),P=r(`close-modal-button`),F=r(`last-modal-trigger`),I=r(`modal-window`),L=d(null),R=h(()=>A.title?`modal_window_title`:void 0),{focused:z}=y(I),{focused:B}=b(F),V=d(),H=v(V),U=()=>{M.value=!0},W=()=>{j(`beforeOpen`,{cancel:U}),document&&(L.value=document.activeElement)},G=()=>{j(`beforeClose`,{cancel:U})},K=async()=>{G(),M.value?M.value=!1:N.value=!1,await l(),L?.value?.focus(),H.value=!1},q=async()=>{W(),M.value?M.value=!1:N.value=!0,await l(),P.value?.focus(),H.value=!0};return e(()=>A.modelValue,e=>{e?q():K()}),e(()=>N.value,e=>{j(`update:modelValue`,e),j(`input`,e)},{immediate:!0}),e(z,e=>{!e&&N.value&&P.value?.focus()}),e(B,e=>{e&&P.value?.focus()}),i(()=>{V.value=document.getElementsByTagName(`html`)?.[0],document.addEventListener(`keydown`,e=>{!A.dismissible||!A.closeByEsc||e.key===`Escape`&&K()})}),(e,r)=>{let i=x,l=_;return a(),u(`div`,null,[o(l,null,{default:f(()=>[(a(),c(m,{to:`#modals`},[o(g,{name:`modal`,appear:``},{default:f(()=>[N.value?(a(),u(`div`,t({key:0,ref:`modal-window`,tabindex:N.value?`1`:`-1`,"aria-hidden":!N.value},{...e.$attrs},{class:`modal`,role:`dialog`,"aria-labelledby":R.value,"aria-describedby":O.description}),[s(`div`,C,[s(`div`,w,[s(`div`,T,[O.dismissible?(a(),u(`button`,{key:0,ref:`close-modal-button`,type:`button`,class:`modal__close`,onClick:K},[o(i,{name:`material-symbols:close-rounded`,class:`modal__icon`}),r[1]||=s(`span`,{class:`sr-only`},`Close modal`,-1)],512)):p(``,!0)]),s(`div`,E,[n(e.$slots,`default`)])])]),N.value?(a(),u(`div`,{key:0,class:`modal__overlay`,onClick:r[0]||=e=>O.dismissible?K():null})):p(``,!0),s(`button`,D,null,512)],16,S)):p(``,!0)]),_:3})]))]),_:3})])}}};export{O as t};
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.