1import{d as h,r as t,o as f,z as v,b as w,s as g,x as p,f as s,F as k,l as M,w as c,J as z,K as S,G as _,L as b}from"./app-B4Hm5MTU.js";const T=h({__name:"ModalHeaderSearchTool",setup(x){const o=t(!1),a=t(!1),l=t(null),n=t({}),m=()=>{o.value=!1},u=()=>{o.value=!o.value},i=()=>{n.value={},b(()=>{if(!(l.value&&a.value))return;const e=l.value.getBoundingClientRect(),d=Math.ceil(e.left+e.width/2+208);d&&(n.value={transition:"transform 0.3s","margin-right":`calc(100% - ${d}px) !important`})})},r=()=>{a.value=window.matchMedia("(min-width: 1024px)").matches};return f(()=>{r(),window.addEventListener("resize",i),window.addEventListener("resize",r)}),v(()=>{window.removeEventListener("resize",i),window.removeEventListener("resize",r)}),(e,d)=>(w(),g(_,null,[p("div",{ref_key:"modalTriggerRef",ref:l,class:"header-search-tool",onClick:k(u,["prevent"])},[s(e.$slots,"modal-trigger")],512),M(S,{"is-hide-close-button":a.value,"modal-show":o.value,style:z(n.value),class:"modal-header-search-tool m-0 !bg-white lg:!bg-opacity-80 lg:!max-w-full lg:!w-[416px] lg:!ml-auto","modal-id":"headerSearchToolModal","modal-size":"xl",position:a.value?"top":"center","is-maximized-mobile":"",onShow:i,"onUpdate:visible":m},{header:c(()=>[s(e.$slots,"header")]),default:c(()=>[s(e.$slots,"default")]),footer:c(()=>[s(e.$slots,"footer")]),_:3},8,["is-hide-close-button","modal-show","style","position"])],64))}});export{T as default}; 2//# sourceMappingURL=ModalHeaderSearchTool-ClyB1wMy.js.map
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.