PageSourceSearch

https://www.industrienspension.dk/assets/vue3/assets/IpSimpleModal-CUFzC9tE.js

js industrienspension.dk collected 2026-10-04 22:22:54 UTC 1,927 bytes, 1 lines download raw bytes

1import{d as x,aa as f,X as g,ab as _,p as m,E as M,a9 as p,b as v,s as b,o as w,f as E,k as S,i as B,e as L,V as $,$ as D}from"../index-20260415.js";import{_ as I}from"./_plugin-vue_export-helper-DlAUqK2U.js";const R={key:0,class:"modal","aria-modal":"true",role:"dialog"},T=x({__name:"IpSimpleModal",props:f({settings:{default:()=>({closeCross:!0,roundCorners:!0,selfClose:!0})},class:{default:""}},{show:{type:Boolean},showModifiers:{}}),emits:f(["closed","update:show"],["update:show"]),setup(d,{emit:k}){g(e=>({"31ba6cfd":L(y)}));const a=_(d,"show"),n=d,y=n.settings.roundCorners?"6px":"0",C=m(n.settings.selfClose??!0),r=k;function l(){C.value&&h()}function h(){a.value=!1}M(()=>a.value,e=>{r("update:show",e),e&&r("closed",!0)}),p(()=>{const e=s=>{s.key==="Escape"&&l()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}});const i=m(null);return p(()=>{a.value&&$(()=>{const e=i.value;if(!e)return;const s=e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex="-1"])'),t=s[0],c=s[s.length-1];t?t.focus():e.focus();const u=o=>{if(o.key==="Tab"){if(s.length===0){o.preventDefault(),e.focus();return}o.shiftKey?(document.activeElement===t||document.activeElement===e)&&(o.preventDefault(),c?.focus()):(document.activeElement===c||document.activeElement===e)&&(o.preventDefault(),t?.focus())}};e.addEventListener("keydown",u),D(()=>{e.removeEventListener("keydown",u)})})}),(e,s)=>a.value?(w(),v("div",R,[E("div",{class:"modal-overlay",onClick:s[0]||(s[0]=t=>l())}),E("div",{ref_key:"modalRef",ref:i,class:B(["modal-content",n.class]),tabindex:"-1"},[n.settings.closeCross?(w(),v("span",{key:0,class:"modal-close",onClick:s[1]||(s[1]=t=>l())},"×")):b("",!0),S(e.$slots,"default",{},void 0,!0)],2)])):b("",!0)}}),q=I(T,[["__scopeId","data-v-7beadfbb"]]);export{q as default};

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.