PageSourceSearch

https://www.caramaps.com/_nuxt/CcVEXKIR.js

js caramaps.com collected 2026-10-01 13:11:50 UTC 3,431 bytes, 1 lines download raw bytes

1import{d as R,k as j,aF as I,aa as z,W as N,K as S,aG as U,j as V,a3 as W,o as n,m as d,n as s,p as r,a as l,R as C,e as i,a4 as c,q as P,_ as q,v as M,b as A,s as b,y,aj as w,P as F}from"./DdFPbGFk.js";const G={key:2,class:"mt-5 flex justify-center gap-4"},Y=["innerHTML"],Z=["innerHTML"],D=R({__name:"Modal",props:{submitButton:{type:Boolean,default:!0},cancelButton:{type:Boolean,default:!1},closeIcon:{type:Boolean,default:!0},detach:{type:Boolean,default:!1},containerClass:{default:null},backgroundClass:{default:null},blur:{type:Boolean,default:!1},borderTitle:{type:Boolean,default:!0},small:{type:Boolean,default:!1},borderRadius:{default:26}},emits:["close","submit"],setup(_,{emit:L}){const e=_,f=L,m=b(!1),p=b(null),a=b(null),T=y(()=>w("relative max-h-[70svh] overflow-y-auto overflow-x-hidden pt-2 custom-scrollbar",e.containerClass)),H=y(()=>w("fixed inset-0 h-full w-full bg-black/40",e.backgroundClass)),E=y(()=>{const o="relative max-h-[90svh] w-full rounded-md bg-white px-6 mx-8 lg:mx-0 py-8 md:h-fit md:shadow-lg rounded-[26px]",t=e.small?"max-w-sm md:max-w-md":"max-w-[40rem] md:max-w-[50rem]";return w(o,t)});function v(){f("close"),u()}function x(o){(o.key==="Escape"||o.key==="Enter")&&v()}function $(){f("submit")}function h(){e.detach&&!m.value&&a.value instanceof HTMLElement&&(document.body.prepend(a.value),a.value.hidden=!1,m.value=!0)}function u(){if(e.detach&&a.value instanceof HTMLElement){if(m.value=!1,p.value instanceof HTMLElement){p.value.prepend(a.value),a.value.hidden=!0;return}a.value.remove()}}j(()=>{h()}),I(()=>{h()}),z(()=>{u()});const K=N();S(()=>K.fullPath,()=>{u()}),U(()=>{u()});const{t:k}=V(),B=W();return(o,t)=>{const g=q;return n(),d("div",{ref_key:"modalWrapper",ref:p},[s("div",{ref_key:"modal",ref:a,class:r(["fixed inset-0 z-[3000] flex h-full w-full items-center justify-center overflow-x-hidden overflow-y-hidden",e.blur&&"sibling:blur-md"])},[s("div",{class:r(l(H)),onClick:v,onKeyup:x},null,34),s("div",{class:r(l(E)),onClick:t[1]||(t[1]=C(()=>{},["stop"])),onKeyup:t[2]||(t[2]=C(()=>{},["stop"]))},[e.closeIcon?(n(),d("div",{key:0,class:"absolute right-2 top-2 p-1 hover:cursor-pointer",onClick:v,onKeyup:x},[...t[3]||(t[3]=[s("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",class:"h-5 text-[#000]",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 20 20"},[s("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 0 1 1.414 0L10 8.586l4.293-4.293a1 1 0 1 1 1.414 1.414L11.414 10l4.293 4.293a1 1 0 0 1-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L8.586 10L4.293 5.707a1 1 0 0 1 0-1.414Z","clip-rule":"evenodd"})],-1)])],32)):i("",!0),l(B).title?(n(),d("div",{key:1,class:r(["border-b-1 h-fit w-full max-w-full truncate pb-2 text-center lg:text-start",e.borderTitle&&"border border-x-0 border-t-0 border-black"])},[c(o.$slots,"title",{},void 0,!0)],2)):i("",!0),s("div",{class:r(l(T))},[c(o.$slots,"content",{},void 0,!0),c(o.$slots,"default",{},void 0,!0)],2),e.submitButton||l(B).action?(n(),d("div",G,[c(o.$slots,"action",{},()=>[P(g,{onMousedown:$},{default:M(()=>[s("span",{innerHTML:l(k)("confirm")},null,8,Y)]),_:1}),e.cancelButton?(n(),A(g,{key:0,classname:"bg-slate-300 text-ambassador-black",onMousedown:t[0]||(t[0]=J=>f("close"))},{default:M(()=>[s("span",{innerHTML:l(k)("cancel")},null,8,Z)]),_:1})):i("",!0)],!0)])):i("",!0)],34)],2)],512)}}}),Q=F(D,[["__scopeId","data-v-ad146b13"]]);export{Q 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.