PageSourceSearch

https://canyon.eu/_nuxt/DKgJiPfy.js

js canyon.eu collected 2026-09-25 03:03:46 UTC 3,382 bytes, 2 lines download raw bytes

1import{h as V,q as A,i as D,r as O,K as j,o as S,k as $,j as W,b as B,c as E,d as w,e as q,x as z,t as R,f as x,a9 as F,ad as H,au as J}from"./Cs01i0Be.js";import{o as P}from"./BNw9s6LR.js";import{n as K,a as M,i as T,b as U,d as G}from"./CYOtW03R.js";import{u as I}from"./8BU147Vn.js";function Q(n){var t;const o=M(n);return(t=o?.$el)!=null?t:o}const N=T?window:void 0;function b(...n){let t,o,a,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([o,a,i]=n,t=N):[t,o,a,i]=n,!t)return K;Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]);const f=[],r=()=>{f.forEach(l=>l()),f.length=0},m=(l,u,y,_)=>(l.addEventListener(u,y,_),()=>l.removeEventListener(u,y,_)),c=D(()=>[Q(t),M(i)],([l,u])=>{if(r(),!l)return;const y=G(u)?{...u}:u;f.push(...o.flatMap(_=>a.map(k=>m(l,_,k,y))))},{immediate:!0,flush:"post"}),d=()=>{c(),r()};return U(d),d}const X={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Y(n={}){const{reactive:t=!1,target:o=N,aliasMap:a=X,passive:i=!0,onEventFired:f=K}=n,r=O(new Set),m={toJSON(){return{}},current:r},c=t?O(m):m,d=new Set,l=new Set;function u(s,e){s in c&&(t?c[s]=e:c[s].value=e)}function y(){r.clear();for(const s of l)u(s,!1)}function _(s,e){var p,g;const v=(p=s.key)==null?void 0:p.toLowerCase(),L=[(g=s.code)==null?void 0:g.toLowerCase(),v].filter(Boolean);v&&(e?r.add(v):r.delete(v));for(const h of L)l.add(h),u(h,e);v==="meta"&&!e?(d.forEach(h=>{r.delete(h),u(h,!1)}),d.clear()):typeof s.getModifierState=="function"&&s.getModifierState("Meta")&&e&&[...r,...L].forEach(h=>d.add(h))}b(o,"keydown",s=>(_(s,!0),f(s)),{passive:i}),b(o,"keyup",s=>(_(s,!1),f(s)),{passive:i}),b("blur",y,{passive:!0}),b("focus",y,{passive:!0});const k=new Proxy(c,{get(s,e,p){if(typeof e!="string")return Reflect.get(s,e,p);if(e=e.toLowerCase(),e in a&&(e=a[e]),!(e in c))if(/[+_-]/.test(e)){const v=e.split(/[+_-]/g).map(C=>C.trim());c[e]=V(()=>v.every(C=>M(k[C])))}else c[e]=A(!1);const g=Reflect.get(s,e,p);return t?M(g):g}});return k}function Z(){const{escape:n}=Y(),t=A(!1),o=()=>{t.value!==!1&&(t.value=!1)},a=()=>{t.value!==!0&&(t.value=!0)};return D(n,i=>{i&&t.value!==!1&&o()}),{isOpen:t,open:a,close:o}}const ee={key:0,class:"cn-modal"},te={class:"cn-modal__close"},se={class:"cn-modal__content"},oe={key:0,class:"cn-modal__title"},ne={key:1,class:"cn-modal__description"},ae={class:"cn-modal__body"},ue=j({__name:"UiModal",props:{title:{default:""},description:{default:""},width:{default:"700px"},height:{default:""}},emits:["close"],setup(n,{expose:t,emit:o}){const a=o,{isOpen:i,open:f,close:r}=Z();I(()=>i.value);const m=A(null),c=()=>{r(),a("close")};return P(m,()=>c()),t({isOpen:i,open:f,close:r}),(d,l)=>(S(),$(J,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-105 opacity-0","enter-to-class":"transform scale-100 opacity-100"},{default:W(()=>[B(i)?(S(),E("div",ee,[w("div",{ref_key:"modal",ref:m,class:"cn-modal__block sm:cut-corner",style:H({width:n.width,maxHeight:n.height})},[w("span",te,[w("button",{class:"cn-modal__close-button",onClick:c},[q(B(z),{name:"close"})])]),w("div",se,[w("div",null,[n.title?(S(),E("div",oe,R(n.title),1)):x("",!0),n.description?(S(),E("div",ne,R(n.description),1)):x("",!0)]),w("div",ae,[F(d.$slots,"default")])])],4)])):x("",!0)]),_:3}))}});export{ue as _};
2//# sourceMappingURL=DKgJiPfy.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.