1import{bd as W,ci as H,be as n,bF as D,bS as L,bf as c,bD as j,cu as p,bC as h,bg as b,bh as u,bj as v,bp as o,bU as N,bI as x,bq as z,bo as g,bi as O,bk as E,cF as F,c5 as m,cw as w,bJ as I}from"./CAMA6yvQ.js";const M={class:"shrink-0 grow-0","data-testid":"modal-dialog-header"},R={key:0,class:"text-headline-s"},$=W({__name:"ModalDialog",props:{title:{default:void 0},fullScreen:{type:Boolean},persistent:{type:Boolean},width:{default:void 0},minWidth:{default:void 0},maxWidth:{default:void 0},height:{default:void 0},minHeight:{default:void 0},maxHeight:{default:void 0},modelValue:{type:[Boolean,null],default:null},mobileVariant:{default:"fullscreen"}},emits:["closed","update:modelValue"],setup(e,{expose:y,emit:k}){const t=e,r=k,{breakpoint:S}=H(),l=n(()=>t.mobileVariant==="sheet"),V=n(()=>[w.Laptop,w.Desktop].includes(S.value)?{width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,height:t.height,minHeight:t.minHeight,maxHeight:t.maxHeight}:void 0),f=I(!1),i=n(()=>t.modelValue!==null),s=n({get:()=>i.value?t.modelValue:f.value,set:a=>{f.value=a,i.value&&r("update:modelValue",a)}}),d=()=>{s.value&&(s.value=!1,!i.value&&m&&document.body.classList.remove("overflow-hidden"),r("closed"))},B=a=>{t.persistent||a.target===a.currentTarget&&d()},C=()=>{s.value=!0,!i.value&&m&&document.body.classList.add("overflow-hidden")};return D(()=>t.modelValue,a=>{m&&(a?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden"))}),y({open:C,close:d}),L(()=>{d()}),(a,T)=>(c(),j(p,{name:"motion-fade",css:l.value,appear:""},{default:h(()=>[s.value?(c(),b("div",{key:0,class:u(["fixed top-0 right-0 bottom-0 left-0 z-50 bg-transparent laptop:flex laptop:items-center laptop:justify-center laptop:bg-black/40",{"max-laptop:flex max-laptop:items-end max-laptop:bg-effect-backdrop-overlay max-laptop:backdrop-blur-xs":l.value}]),"data-testid":"modal-dialog",onClick:B},[v(p,{name:"motion-slide",css:l.value,appear:""},{default:h(()=>[o("div",{class:u(["flex h-full w-full grow-0 flex-col overflow-hidden bg-surface text-main",{"[--mo-x:0] max-la
1ptop:h-auto max-laptop:max-h-[85dvh] max-laptop:rounded-t-2xl max-laptop:pb-[env(safe-area-inset-bottom)] max-laptop:[--mo-y:100%]":l.value,"laptop:h-auto laptop:w-auto laptop:rounded-lg":!e.fullScreen,"laptop:max-h-[70%]":!e.fullScreen&&!e.maxHeight&&!e.height,"laptop:max-w-[70%]":!e.fullScreen&&!e.maxWidth&&!e.width}]),style:N(V.value)},[o("div",M,[x(a.$slots,"header",{},()=>[o("div",{class:u(["flex px-6 pt-6 pb-4",e.title?"justify-between":"justify-end"])},[e.title?(c(),b("div",R,z(e.title),1)):g("",!0),o("button",{class:"btn-link-neutral-s","data-testid":"modal-dialog-btn-close",onClick:O(d,["stop","prevent"])},[v(E(F),{class:"lucide-icon-m"})])],2)])]),o("div",{class:u(["overflow-auto px-6 pb-6",{"h-full w-full":e.fullScreen,"max-laptop:h-auto":e.fullScreen&&l.value}]),"data-testid":"modal-dialog-content"},[x(a.$slots,"default")],2)],6)]),_:3},8,["css"])],2)):g("",!0)]),_:3},8,["css"]))}});export{$ as _};
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.