mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-12 03:01:47 +00:00
2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import{u as $,J as u,at as I,I as a,d as _,Y as b,c as v,e as w,n as P,p as C,j as x,f as j,l as f,a2 as D,r as E,N as c}from"./Bn13st12.js";import N from"./BxN4-OGS.js";import"./DGfYwdQ2.js";import"./DQ01mh0Y.js";import"./xbXMHCug.js";import"./CP3-Mdjo.js";import"./DWkgc5v9.js";import"./BFChgLKF.js";import"./2ETV-d1z.js";import"./Dp8Kfb8G.js";import"./HVcVpEwm.js";import"./BqT5BiBD.js";import"./DDkIcdNV.js";async function z(e){$();const o=u(e);{const{data:n}=await I(`nuxt-component-meta${o?`-${o}`:""}`,()=>$fetch(`/api/component-meta${o?`/${o}`:""}`));return a(()=>n.value)}}const B=e=>(C("data-v-5fd4c706"),e=e(),x(),e),A=B(()=>j("div",{class:"ellipsis-item"},null,-1)),V=[A],k=_({__name:"Ellipsis",props:{width:{type:String,default:"10rem"},height:{type:String,default:"10rem"},zIndex:{type:String,default:"10"},top:{type:String,default:"0"},left:{type:String,default:"auto"},right:{type:String,default:"auto"},blur:{type:String,default:"50px"},colors:{type:Array,default:()=>["rgba(0, 71, 225, 0.22)","rgba(26, 214, 255, 0.22)","rgba(0, 220, 130, 0.22)"]}},setup(e){const o=a(()=>((t=s)=>t.top)()),n=a(()=>((t=s)=>t.left)()),r=a(()=>((t=s)=>t.right)()),i=a(()=>((t=s)=>t.zIndex)()),l=a(()=>((t=s)=>t.width)()),g=a(()=>((t=s)=>t.height)()),h=a(()=>((t=s)=>`blur(${t.blur})`)()),y=a(()=>((t=s)=>{var p,d,m;return`linear-gradient(97.62deg, ${(p=t==null?void 0:t.colors)==null?void 0:p[0]} 2.27%, ${(d=t==null?void 0:t.colors)==null?void 0:d[1]} 50.88%, ${(m=t==null?void 0:t.colors)==null?void 0:m[2]} 98.48%)`})()),s=e,{$pinceau:S}=b(s,void 0,{_cCN_top:o,_eih_insetInlineStart:n,_IfB_insetInlineEnd:r,_SsE_zIndex:i,_wj8_maxWidth:l,_t33_height:g,_Jfd_filter:h,_yUj_background:y});return(t,p)=>(v(),w("div",{class:P(["ellipsis",[u(S)]])},V,2))}}),q=f(k,[["__scopeId","data-v-5fd4c706"]]),J=_({props:{component:{type:String,required:!0},props:{type:Object,required:!1,default:()=>({})}},async setup(e){const o=a(()=>D(e.component)),n=E({...e.props}),r=await z(e.component);return{as:o,formProps:n,componentData:r}},render(e){const o=Object.entries(this.$slots).reduce((n,[r,i])=>{if(r.startsWith("component-")){const l=r.replace("component-","");n[l]=i}return n},{});return c("div",{class:"component-playground"},[c("div",{class:"component-playground-wrapper"},[c(q,{class:"component-playground-ellipsis",blur:"5vw",height:"100%",width:"100%"}),c(e.as,{...e.formProps,class:"component-playground-component"},{...o})]),c(N,{modelValue:e.formProps,componentData:e.componentData,"onUpdate:modelValue":n=>e.formProps=n})])}}),X=f(J,[["__scopeId","data-v-9ca9b996"]]);export{X as default};
|