mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-30 16:58:48 +08:00
32 lines
8.0 KiB
JavaScript
32 lines
8.0 KiB
JavaScript
import{D as e,Dt as t,O as n,St as r,T as i,ft as a,it as o,rt as s,st as c,wt as l}from"./Card-CLV9EByv.js";import{Fn as u,dr as d,fr as f,pr as p,ur as m}from"./directives-QatNmAyh.js";import{L as h,d as g,f as _,h as v,p as y,y as b}from"./runtime-core.esm-bundler-BvnVMcQz.js";import{gt as x}from"./isSymbol-DERoyzaf.js";function S(){return(()=>{let e=s(`c69907197a2424a9`);return e[0]||=_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[_(`path`,{fill:`#EF9645`,d:`M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z`}),_(`path`,{fill:`#FFDC5D`,d:`M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z`})],-1)})()}function C(){return(()=>{let e=s(`3c80ed8b3f0240f8`);return e[0]||=_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[_(`circle`,{fill:`#FFCB4C`,cx:`18`,cy:`17.018`,r:`17`}),_(`path`,{fill:`#65471B`,d:`M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z`}),_(`ellipse`,{fill:`#65471B`,cx:`13.119`,cy:`11.174`,rx:`2.125`,ry:`2.656`}),_(`ellipse`,{fill:`#65471B`,cx:`24.375`,cy:`12.236`,rx:`2.125`,ry:`2.656`}),_(`path`,{fill:`#F19020`,d:`M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z`}),_(`path`,{fill:`#65471B`,d:`M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z`})],-1)})()}function w(){return(()=>{let e=s(`de99a3ee9dd8b632`);return e[0]||=_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[_(`ellipse`,{fill:`#292F33`,cx:`18`,cy:`26`,rx:`18`,ry:`10`}),_(`ellipse`,{fill:`#66757F`,cx:`18`,cy:`24`,rx:`18`,ry:`10`}),_(`path`,{fill:`#E1E8ED`,d:`M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z`}),_(`path`,{fill:`#77B255`,d:`M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z`}),_(`ellipse`,{fill:`#A6D388`,cx:`18`,cy:`13`,rx:`15`,ry:`7`}),_(`path`,{d:`M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z`,fill:`#5C913B`})],-1)})()}function T(){return(()=>{let e=s(`96a420cda0b7dc21`);return e[0]||=_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[_(`path`,{fill:`#FFCC4D`,d:`M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18`}),_(`ellipse`,{fill:`#664500`,cx:`18`,cy:`27`,rx:`5`,ry:`6`}),_(`path`,{fill:`#664500`,d:`M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z`})],-1)})()}var E=r(`result`,`
|
|
color: var(--n-text-color);
|
|
line-height: var(--n-line-height);
|
|
font-size: var(--n-font-size);
|
|
transition:
|
|
color .3s var(--n-bezier);
|
|
`,[r(`result-icon`,`
|
|
display: flex;
|
|
justify-content: center;
|
|
transition: color .3s var(--n-bezier);
|
|
`,[l(`status-image`,`
|
|
font-size: var(--n-icon-size);
|
|
width: 1em;
|
|
height: 1em;
|
|
`),r(`base-icon`,`
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
`)]),r(`result-content`,{marginTop:`24px`}),r(`result-footer`,`
|
|
margin-top: 24px;
|
|
text-align: center;
|
|
`),r(`result-header`,[l(`title`,`
|
|
margin-top: 16px;
|
|
font-weight: var(--n-title-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
text-align: center;
|
|
color: var(--n-title-text-color);
|
|
font-size: var(--n-title-font-size);
|
|
`),l(`description`,`
|
|
margin-top: 4px;
|
|
text-align: center;
|
|
font-size: var(--n-font-size);
|
|
`)])]),D={403:S,404:C,418:w,500:T,info:()=>(h(),y(f)),success:()=>(h(),y(d)),warning:()=>(h(),y(m)),error:()=>(h(),y(p))},O={...e.props,size:String,status:{type:String,default:`info`},title:String,description:String},k=b({name:`Result`,props:O,slots:Object,setup(r){let{mergedClsPrefixRef:i,inlineThemeDisabled:o,mergedComponentPropsRef:s}=a(r),c=g(()=>r.size||s?.value?.Result?.size||`medium`),l=e(`Result`,`-result`,E,u,r,i),d=g(()=>{let{status:e}=r,n=c.value,{common:{cubicBezierEaseInOut:i},self:{textColor:a,lineHeight:o,titleTextColor:s,titleFontWeight:u,[t(`iconColor`,e)]:d,[t(`fontSize`,n)]:f,[t(`titleFontSize`,n)]:p,[t(`iconSize`,n)]:m}}=l.value;return{"--n-bezier":i,"--n-font-size":f,"--n-icon-size":m,"--n-line-height":o,"--n-text-color":a,"--n-title-font-size":p,"--n-title-font-weight":u,"--n-title-text-color":s,"--n-icon-color":d||``}}),f=o?n(`result`,g(()=>{let{status:e}=r,t=c.value,n=``;return t&&(n+=t[0]),e&&(n+=e[0]),n}),d,r):void 0;return{mergedClsPrefix:i,cssVars:o?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){let{status:e,$slots:t,mergedClsPrefix:n,onRender:r}=this;return r?.(),h(),v(`div`,{class:o([`${n}-result`,this.themeClass]),style:x(this.cssVars)},[_(`div`,{class:o(`${n}-result-icon`)},[c(()=>t.icon?.()||(h(),y(i,{clsPrefix:n},{default:()=>D[e]()},1032,[`clsPrefix`])))],2),_(`div`,{class:o(`${n}-result-header`)},[this.title?(h(),v(`div`,{key:0,class:o(`${n}-result-header__title`)},[c(()=>this.title)],2)):c(()=>null),this.description?(h(),v(`div`,{key:2,class:o(`${n}-result-header__description`)},[c(()=>this.description)],2)):c(()=>null)],2),c(()=>t.default&&(h(),v(`div`,{class:o(`${n}-result-content`)},[c(()=>t.default())],2))),c(()=>t.footer&&(h(),v(`div`,{class:o(`${n}-result-footer`)},[c(()=>t.footer())],2)))],6)}});export{O as n,k as t}; |