fancy-plugins-components 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,31 +9,31 @@ const Pt = /* @__PURE__ */ Symbol(), D = "el", Vt = "is-", $ = (t, r, e, n, a) =
9
9
  const e = Ot();
10
10
  return {
11
11
  namespace: e,
12
- b: (u = "") => $(e.value, t, u, "", ""),
13
- e: (u) => u ? $(e.value, t, "", u, "") : "",
14
- m: (u) => u ? $(e.value, t, "", "", u) : "",
15
- be: (u, d) => u && d ? $(e.value, t, u, d, "") : "",
16
- em: (u, d) => u && d ? $(e.value, t, "", u, d) : "",
17
- bm: (u, d) => u && d ? $(e.value, t, u, "", d) : "",
18
- bem: (u, d, c) => u && d && c ? $(e.value, t, u, d, c) : "",
19
- is: (u, ...d) => {
20
- const c = d.length >= 1 ? d[0] : !0;
21
- return u && c ? `${Vt}${u}` : "";
12
+ b: (c = "") => $(e.value, t, c, "", ""),
13
+ e: (c) => c ? $(e.value, t, "", c, "") : "",
14
+ m: (c) => c ? $(e.value, t, "", "", c) : "",
15
+ be: (c, d) => c && d ? $(e.value, t, c, d, "") : "",
16
+ em: (c, d) => c && d ? $(e.value, t, "", c, d) : "",
17
+ bm: (c, d) => c && d ? $(e.value, t, c, "", d) : "",
18
+ bem: (c, d, u) => c && d && u ? $(e.value, t, c, d, u) : "",
19
+ is: (c, ...d) => {
20
+ const u = d.length >= 1 ? d[0] : !0;
21
+ return c && u ? `${Vt}${c}` : "";
22
22
  },
23
- cssVar: (u) => {
23
+ cssVar: (c) => {
24
24
  const d = {};
25
- for (const c in u)
26
- u[c] && (d[`--${e.value}-${c}`] = u[c]);
25
+ for (const u in c)
26
+ c[u] && (d[`--${e.value}-${u}`] = c[u]);
27
27
  return d;
28
28
  },
29
- cssVarName: (u) => `--${e.value}-${u}`,
30
- cssVarBlock: (u) => {
29
+ cssVarName: (c) => `--${e.value}-${c}`,
30
+ cssVarBlock: (c) => {
31
31
  const d = {};
32
- for (const c in u)
33
- u[c] && (d[`--${e.value}-${t}-${c}`] = u[c]);
32
+ for (const u in c)
33
+ c[u] && (d[`--${e.value}-${t}-${u}`] = c[u]);
34
34
  return d;
35
35
  },
36
- cssVarBlockName: (u) => `--${e.value}-${t}-${u}`
36
+ cssVarBlockName: (c) => `--${e.value}-${t}-${c}`
37
37
  };
38
38
  };
39
39
  process.env.NODE_ENV !== "production" && Object.freeze({});
@@ -231,35 +231,35 @@ For more detail, please visit: ${a}
231
231
  );
232
232
  const e = w(xt, void 0), n = Jt("button"), { form: a } = ae(), o = oe(h(() => e?.size)), i = St(), s = R(), f = Bt(), m = h(
233
233
  () => {
234
- var c;
235
- return t.type || e?.type || ((c = n.value) == null ? void 0 : c.type) || "";
234
+ var u;
235
+ return t.type || e?.type || ((u = n.value) == null ? void 0 : u.type) || "";
236
236
  }
237
237
  ), g = h(
238
238
  () => {
239
- var c, l, b;
240
- return (b = (l = t.autoInsertSpace) != null ? l : (c = n.value) == null ? void 0 : c.autoInsertSpace) != null ? b : !1;
239
+ var u, l, b;
240
+ return (b = (l = t.autoInsertSpace) != null ? l : (u = n.value) == null ? void 0 : u.autoInsertSpace) != null ? b : !1;
241
241
  }
242
242
  ), S = h(
243
243
  () => {
244
- var c, l, b;
245
- return (b = (l = t.plain) != null ? l : (c = n.value) == null ? void 0 : c.plain) != null ? b : !1;
244
+ var u, l, b;
245
+ return (b = (l = t.plain) != null ? l : (u = n.value) == null ? void 0 : u.plain) != null ? b : !1;
246
246
  }
247
247
  ), A = h(
248
248
  () => {
249
- var c, l, b;
250
- return (b = (l = t.round) != null ? l : (c = n.value) == null ? void 0 : c.round) != null ? b : !1;
249
+ var u, l, b;
250
+ return (b = (l = t.round) != null ? l : (u = n.value) == null ? void 0 : u.round) != null ? b : !1;
251
251
  }
252
252
  ), E = h(() => {
253
- var c, l, b;
254
- return (b = (l = t.text) != null ? l : (c = n.value) == null ? void 0 : c.text) != null ? b : !1;
253
+ var u, l, b;
254
+ return (b = (l = t.text) != null ? l : (u = n.value) == null ? void 0 : u.text) != null ? b : !1;
255
255
  }), C = h(() => t.tag === "button" ? {
256
256
  ariaDisabled: i.value || t.loading,
257
257
  disabled: i.value || t.loading,
258
258
  autofocus: t.autofocus,
259
259
  type: t.nativeType
260
- } : {}), u = h(() => {
261
- var c;
262
- const l = (c = f.default) == null ? void 0 : c.call(f);
260
+ } : {}), c = h(() => {
261
+ var u;
262
+ const l = (u = f.default) == null ? void 0 : u.call(f);
263
263
  if (g.value && l?.length === 1) {
264
264
  const b = l[0];
265
265
  if (b?.type === At) {
@@ -278,16 +278,16 @@ For more detail, please visit: ${a}
278
278
  _plain: S,
279
279
  _round: A,
280
280
  _text: E,
281
- shouldAddSpace: u,
282
- handleClick: (c) => {
281
+ shouldAddSpace: c,
282
+ handleClick: (u) => {
283
283
  if (i.value || t.loading) {
284
- c.stopPropagation();
284
+ u.stopPropagation();
285
285
  return;
286
286
  }
287
- t.nativeType === "reset" && a?.resetFields(), r("click", c);
287
+ t.nativeType === "reset" && a?.resetFields(), r("click", u);
288
288
  }
289
289
  };
290
- }, ue = [
290
+ }, ce = [
291
291
  "default",
292
292
  "primary",
293
293
  "success",
@@ -296,7 +296,7 @@ For more detail, please visit: ${a}
296
296
  "danger",
297
297
  "text",
298
298
  ""
299
- ], ce = ["button", "submit", "reset"], U = pt({
299
+ ], ue = ["button", "submit", "reset"], U = pt({
300
300
  size: qt,
301
301
  disabled: {
302
302
  type: Boolean,
@@ -304,7 +304,7 @@ For more detail, please visit: ${a}
304
304
  },
305
305
  type: {
306
306
  type: String,
307
- values: ue,
307
+ values: ce,
308
308
  default: ""
309
309
  },
310
310
  icon: {
@@ -312,7 +312,7 @@ For more detail, please visit: ${a}
312
312
  },
313
313
  nativeType: {
314
314
  type: String,
315
- values: ce,
315
+ values: ue,
316
316
  default: "button"
317
317
  },
318
318
  loading: Boolean,
@@ -440,7 +440,7 @@ function ve(t, r, e) {
440
440
  var n = Math.floor(t), a = t - n, o = e * (1 - r), i = e * (1 - a * r), s = e * (1 - (1 - a) * r), f = n % 6, m = [e, i, o, o, s, e][f], g = [s, e, e, i, o, o][f], S = [o, o, s, e, e, i][f];
441
441
  return { r: m * 255, g: g * 255, b: S * 255 };
442
442
  }
443
- function ut(t, r, e, n) {
443
+ function ct(t, r, e, n) {
444
444
  var a = [
445
445
  B(Math.round(t).toString(16)),
446
446
  B(Math.round(r).toString(16)),
@@ -460,7 +460,7 @@ function pe(t, r, e, n, a) {
460
460
  function be(t) {
461
461
  return Math.round(parseFloat(t) * 255).toString(16);
462
462
  }
463
- function ct(t) {
463
+ function ut(t) {
464
464
  return y(t) / 255;
465
465
  }
466
466
  function y(t) {
@@ -660,7 +660,7 @@ function _e(t) {
660
660
  r: y(e[1]),
661
661
  g: y(e[2]),
662
662
  b: y(e[3]),
663
- a: ct(e[4]),
663
+ a: ut(e[4]),
664
664
  format: r ? "name" : "hex8"
665
665
  } : (e = x.hex6.exec(t), e ? {
666
666
  r: y(e[1]),
@@ -671,7 +671,7 @@ function _e(t) {
671
671
  r: y(e[1] + e[1]),
672
672
  g: y(e[2] + e[2]),
673
673
  b: y(e[3] + e[3]),
674
- a: ct(e[4] + e[4]),
674
+ a: ut(e[4] + e[4]),
675
675
  format: r ? "name" : "hex8"
676
676
  } : (e = x.hex3.exec(t), e ? {
677
677
  r: y(e[1] + e[1]),
@@ -725,7 +725,7 @@ var ke = (
725
725
  var r = it(this.r, this.g, this.b), e = Math.round(r.h * 360), n = Math.round(r.s * 100), a = Math.round(r.l * 100);
726
726
  return this.a === 1 ? "hsl(".concat(e, ", ").concat(n, "%, ").concat(a, "%)") : "hsla(".concat(e, ", ").concat(n, "%, ").concat(a, "%, ").concat(this.roundA, ")");
727
727
  }, t.prototype.toHex = function(r) {
728
- return r === void 0 && (r = !1), ut(this.r, this.g, this.b, r);
728
+ return r === void 0 && (r = !1), ct(this.r, this.g, this.b, r);
729
729
  }, t.prototype.toHexString = function(r) {
730
730
  return r === void 0 && (r = !1), "#" + this.toHex(r);
731
731
  }, t.prototype.toHex8 = function(r) {
@@ -764,7 +764,7 @@ var ke = (
764
764
  return "transparent";
765
765
  if (this.a < 1)
766
766
  return !1;
767
- for (var r = "#" + ut(this.r, this.g, this.b, !1), e = 0, n = Object.entries(J); e < n.length; e++) {
767
+ for (var r = "#" + ct(this.r, this.g, this.b, !1), e = 0, n = Object.entries(J); e < n.length; e++) {
768
768
  var a = n[e], o = a[0], i = a[1];
769
769
  if (r === i)
770
770
  return o;
@@ -917,9 +917,9 @@ const Me = V({
917
917
  _plain: A,
918
918
  _round: E,
919
919
  _text: C,
920
- shouldAddSpace: u,
920
+ shouldAddSpace: c,
921
921
  handleClick: d
922
- } = se(n, a), c = h(() => [
922
+ } = se(n, a), u = h(() => [
923
923
  i.b(),
924
924
  i.m(m.value),
925
925
  i.m(f.value),
@@ -937,12 +937,12 @@ const Me = V({
937
937
  size: f,
938
938
  type: m,
939
939
  disabled: g,
940
- shouldAddSpace: u
940
+ shouldAddSpace: c
941
941
  }), (l, b) => (_(), H(G(l.tag), ft({
942
942
  ref_key: "_ref",
943
943
  ref: s
944
944
  }, v(S), {
945
- class: c.value,
945
+ class: u.value,
946
946
  style: v(o),
947
947
  onClick: v(d)
948
948
  }), {
@@ -972,7 +972,7 @@ const Me = V({
972
972
  "span",
973
973
  {
974
974
  key: 2,
975
- class: W({ [v(i).em("text", "expand")]: v(u) })
975
+ class: W({ [v(i).em("text", "expand")]: v(c) })
976
976
  },
977
977
  [
978
978
  I(l.$slots, "default")
@@ -1033,7 +1033,7 @@ const Ee = /* @__PURE__ */ V({
1033
1033
  loading: {}
1034
1034
  },
1035
1035
  setup(t) {
1036
- return (r, e) => (_(), H(v(Ae), null, {
1036
+ return (r, e) => (_(), H(v(Ae), { class: "test_btn" }, {
1037
1037
  default: z(() => [...e[0] || (e[0] = [
1038
1038
  Rt("123", -1)
1039
1039
  ])]),
@@ -1,3 +1,3 @@
1
1
  (function(x,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(x=typeof globalThis<"u"?globalThis:x||self,a(x.FancyComponents={},x.Vue))})(this,(function(x,a){"use strict";const ut=Symbol(),T="el",dt="is-",B=(t,n,e,r,o)=>{let i=`${t}-${n}`;return e&&(i+=`-${e}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},ht=Symbol("namespaceContextKey"),pt=t=>{const n=a.getCurrentInstance()?a.inject(ht,a.ref(T)):a.ref(T);return a.computed(()=>a.unref(n)||T)},C=(t,n)=>{const e=pt();return{namespace:e,b:(l="")=>B(e.value,t,l,"",""),e:l=>l?B(e.value,t,"",l,""):"",m:l=>l?B(e.value,t,"","",l):"",be:(l,h)=>l&&h?B(e.value,t,l,h,""):"",em:(l,h)=>l&&h?B(e.value,t,"",l,h):"",bm:(l,h)=>l&&h?B(e.value,t,l,"",h):"",bem:(l,h,f)=>l&&h&&f?B(e.value,t,l,h,f):"",is:(l,...h)=>{const f=h.length>=1?h[0]:!0;return l&&f?`${dt}${l}`:""},cssVar:l=>{const h={};for(const f in l)l[f]&&(h[`--${e.value}-${f}`]=l[f]);return h},cssVarName:l=>`--${e.value}-${l}`,cssVarBlock:l=>{const h={};for(const f in l)l[f]&&(h[`--${e.value}-${t}-${f}`]=l[f]);return h},cssVarBlockName:l=>`--${e.value}-${t}-${l}`}};process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const gt=()=>{},bt=Object.prototype.hasOwnProperty,D=(t,n)=>bt.call(t,n),P=t=>typeof t=="string",K=t=>t!==null&&typeof t=="object";function mt(t){for(var n=-1,e=t==null?0:t.length,r={};++n<e;){var o=t[n];r[o[0]]=o[1]}return r}const vt=t=>typeof t=="number",yt=t=>P(t)?!Number.isNaN(Number(t)):!1;class kt extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function q(t,n){if(process.env.NODE_ENV!=="production"){const e=P(t)?new kt(`[${t}] ${n}`):t;console.warn(e)}}const L="__epPropKey",A=t=>t,St=t=>K(t)&&!!t[L],W=(t,n)=>{if(!K(t)||St(t))return t;const{values:e,required:r,default:o,type:i,validator:s}=t,d={type:i,required:!!r,validator:e||s?m=>{let g=!1,y=[];if(e&&(y=Array.from(e),D(t,"default")&&y.push(o),g||(g=y.includes(m))),s&&(g||(g=s(m))),!g&&y.length>0){const N=[...new Set(y)].map($=>JSON.stringify($)).join(", ");a.warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${N}], got value ${JSON.stringify(m)}.`)}return g}:void 0,[L]:!0};return D(t,"default")&&(d.default=o),d},U=t=>mt(Object.entries(t).map(([n,e])=>[n,W(e,n)])),xt=W({type:String,values:["","default","small","large"],required:!1}),_t=Symbol("size"),wt=()=>{const t=a.inject(_t,{});return a.computed(()=>a.unref(t.size)||"")},J=a.ref();function Bt(t,n=void 0){const e=a.getCurrentInstance()?a.inject(ut,J):J;return a.computed(()=>{var r,o;return(o=(r=e.value)==null?void 0:r[t])!=null?o:n})}var R=(t,n)=>{const e=t.__vccOpts||t;for(const[r,o]of n)e[r]=o;return e};const Z=(t,n)=>{if(t.install=e=>{for(const r of[t,...Object.values(n??{})])e.component(r.name,r)},n)for(const[e,r]of Object.entries(n))t[e]=r;return t},Mt=t=>(t.install=gt,t),Nt="utils/dom/style";function $t(t,n="px"){if(!t&&t!==0)return"";if(vt(t)||yt(t))return`${t}${n}`;if(P(t))return t;q(Nt,"binding value must be a string or number")}const Ct=U({size:{type:A([Number,String])},color:{type:String}}),At=a.defineComponent({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:Ct,setup(t){const n=t,e=C("icon"),r=a.computed(()=>{const{size:o,color:i}=n,s=$t(o);return!s&&!i?{}:{fontSize:s,"--color":i}});return(o,i)=>(a.openBlock(),a.createElementBlock("i",a.mergeProps({class:a.unref(e).b(),style:r.value},o.$attrs),[a.renderSlot(o.$slots,"default")],16))}});var Et=R(At,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Y=Z(Et);var Ht=a.defineComponent({name:"Loading",__name:"loading",setup(t){return(n,e)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),It=Ht;const Q=A([String,Object,Function]),V=Symbol("formContextKey"),X=Symbol("formItemContextKey"),Tt=()=>{const t=a.inject(V,void 0),n=a.inject(X,void 0);return{form:t,formItem:n}},tt=t=>{const n=a.getCurrentInstance();return a.computed(()=>{var e,r;return(r=(e=n?.proxy)==null?void 0:e.$props)==null?void 0:r[t]})},Pt=(t,n={})=>{const e=a.ref(void 0),r=n.prop?e:tt("size"),o=n.global?e:wt(),i=n.form?{size:void 0}:a.inject(V,void 0),s=n.formItem?{size:void 0}:a.inject(X,void 0);return a.computed(()=>r.value||a.unref(t)||s?.size||i?.size||o.value||"")},et=t=>{const n=tt("disabled"),e=a.inject(V,void 0);return a.computed(()=>{var r,o,i;return(i=(o=(r=n.value)!=null?r:a.unref(t))!=null?o:e?.disabled)!=null?i:!1})},nt=Symbol("buttonGroupContextKey"),Rt=({from:t,replacement:n,scope:e,version:r,ref:o,type:i="API"},s)=>{a.watch(()=>a.unref(s),c=>{c&&q(e,`[${i}] ${t} is about to be deprecated in version ${r}, please use ${n} instead.
2
2
  For more detail, please visit: ${o}
3
- `)},{immediate:!0})},Vt=(t,n)=>{Rt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},a.computed(()=>t.type==="text"));const e=a.inject(nt,void 0),r=Bt("button"),{form:o}=Tt(),i=Pt(a.computed(()=>e?.size)),s=et(),c=a.ref(),d=a.useSlots(),m=a.computed(()=>{var f;return t.type||e?.type||((f=r.value)==null?void 0:f.type)||""}),g=a.computed(()=>{var f,u,b;return(b=(u=t.autoInsertSpace)!=null?u:(f=r.value)==null?void 0:f.autoInsertSpace)!=null?b:!1}),y=a.computed(()=>{var f,u,b;return(b=(u=t.plain)!=null?u:(f=r.value)==null?void 0:f.plain)!=null?b:!1}),N=a.computed(()=>{var f,u,b;return(b=(u=t.round)!=null?u:(f=r.value)==null?void 0:f.round)!=null?b:!1}),$=a.computed(()=>{var f,u,b;return(b=(u=t.text)!=null?u:(f=r.value)==null?void 0:f.text)!=null?b:!1}),I=a.computed(()=>t.tag==="button"?{ariaDisabled:s.value||t.loading,disabled:s.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),l=a.computed(()=>{var f;const u=(f=d.default)==null?void 0:f.call(d);if(g.value&&u?.length===1){const b=u[0];if(b?.type===a.Text){const ae=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(ae.trim())}}return!1});return{_disabled:s,_size:i,_type:m,_ref:c,_props:I,_plain:y,_round:N,_text:$,shouldAddSpace:l,handleClick:f=>{if(s.value||t.loading){f.stopPropagation();return}t.nativeType==="reset"&&o?.resetFields(),n("click",f)}}},z=U({size:xt,disabled:{type:Boolean,default:void 0},type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Q},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Q,default:()=>It},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:A([String,Object]),default:"button"}}),zt={click:t=>t instanceof MouseEvent};function p(t,n){Ot(t)&&(t="100%");var e=Ft(t);return t=n===360?t:Math.min(n,Math.max(0,parseFloat(t))),e&&(t=parseInt(String(t*n),10)/100),Math.abs(t-n)<1e-6?1:(n===360?t=(t<0?t%n+n:t%n)/parseFloat(String(n)):t=t%n/parseFloat(String(n)),t)}function E(t){return Math.min(1,Math.max(0,t))}function Ot(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Ft(t){return typeof t=="string"&&t.indexOf("%")!==-1}function rt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function H(t){return t<=1?"".concat(Number(t)*100,"%"):t}function M(t){return t.length===1?"0"+t:String(t)}function jt(t,n,e){return{r:p(t,255)*255,g:p(n,255)*255,b:p(e,255)*255}}function ot(t,n,e){t=p(t,255),n=p(n,255),e=p(e,255);var r=Math.max(t,n,e),o=Math.min(t,n,e),i=0,s=0,c=(r+o)/2;if(r===o)s=0,i=0;else{var d=r-o;switch(s=c>.5?d/(2-r-o):d/(r+o),r){case t:i=(n-e)/d+(n<e?6:0);break;case n:i=(e-t)/d+2;break;case e:i=(t-n)/d+4;break}i/=6}return{h:i,s,l:c}}function O(t,n,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+(n-t)*(6*e):e<1/2?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function Gt(t,n,e){var r,o,i;if(t=p(t,360),n=p(n,100),e=p(e,100),n===0)o=e,i=e,r=e;else{var s=e<.5?e*(1+n):e+n-e*n,c=2*e-s;r=O(c,s,t+1/3),o=O(c,s,t),i=O(c,s,t-1/3)}return{r:r*255,g:o*255,b:i*255}}function at(t,n,e){t=p(t,255),n=p(n,255),e=p(e,255);var r=Math.max(t,n,e),o=Math.min(t,n,e),i=0,s=r,c=r-o,d=r===0?0:c/r;if(r===o)i=0;else{switch(r){case t:i=(n-e)/c+(n<e?6:0);break;case n:i=(e-t)/c+2;break;case e:i=(t-n)/c+4;break}i/=6}return{h:i,s:d,v:s}}function Dt(t,n,e){t=p(t,360)*6,n=p(n,100),e=p(e,100);var r=Math.floor(t),o=t-r,i=e*(1-n),s=e*(1-o*n),c=e*(1-(1-o)*n),d=r%6,m=[e,s,i,i,c,e][d],g=[c,e,e,s,i,i][d],y=[i,i,c,e,e,s][d];return{r:m*255,g:g*255,b:y*255}}function it(t,n,e,r){var o=[M(Math.round(t).toString(16)),M(Math.round(n).toString(16)),M(Math.round(e).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Kt(t,n,e,r,o){var i=[M(Math.round(t).toString(16)),M(Math.round(n).toString(16)),M(Math.round(e).toString(16)),M(qt(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function qt(t){return Math.round(parseFloat(t)*255).toString(16)}function st(t){return v(t)/255}function v(t){return parseInt(t,16)}function Lt(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var F={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wt(t){var n={r:0,g:0,b:0},e=1,r=null,o=null,i=null,s=!1,c=!1;return typeof t=="string"&&(t=Zt(t)),typeof t=="object"&&(S(t.r)&&S(t.g)&&S(t.b)?(n=jt(t.r,t.g,t.b),s=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):S(t.h)&&S(t.s)&&S(t.v)?(r=H(t.s),o=H(t.v),n=Dt(t.h,r,o),s=!0,c="hsv"):S(t.h)&&S(t.s)&&S(t.l)&&(r=H(t.s),i=H(t.l),n=Gt(t.h,r,i),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(e=t.a)),e=rt(e),{ok:s,format:t.format||c,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:e}}var Ut="[-\\+]?\\d+%?",Jt="[-\\+]?\\d*\\.\\d+%?",_="(?:".concat(Jt,")|(?:").concat(Ut,")"),j="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),G="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),k={CSS_UNIT:new RegExp(_),rgb:new RegExp("rgb"+j),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+j),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+j),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Zt(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var n=!1;if(F[t])t=F[t],n=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=k.rgb.exec(t);return e?{r:e[1],g:e[2],b:e[3]}:(e=k.rgba.exec(t),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=k.hsl.exec(t),e?{h:e[1],s:e[2],l:e[3]}:(e=k.hsla.exec(t),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=k.hsv.exec(t),e?{h:e[1],s:e[2],v:e[3]}:(e=k.hsva.exec(t),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=k.hex8.exec(t),e?{r:v(e[1]),g:v(e[2]),b:v(e[3]),a:st(e[4]),format:n?"name":"hex8"}:(e=k.hex6.exec(t),e?{r:v(e[1]),g:v(e[2]),b:v(e[3]),format:n?"name":"hex"}:(e=k.hex4.exec(t),e?{r:v(e[1]+e[1]),g:v(e[2]+e[2]),b:v(e[3]+e[3]),a:st(e[4]+e[4]),format:n?"name":"hex8"}:(e=k.hex3.exec(t),e?{r:v(e[1]+e[1]),g:v(e[2]+e[2]),b:v(e[3]+e[3]),format:n?"name":"hex"}:!1)))))))))}function S(t){return!!k.CSS_UNIT.exec(String(t))}var Yt=(function(){function t(n,e){n===void 0&&(n=""),e===void 0&&(e={});var r;if(n instanceof t)return n;typeof n=="number"&&(n=Lt(n)),this.originalInput=n;var o=Wt(n);this.originalInput=n,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=e.format)!==null&&r!==void 0?r:o.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},t.prototype.getLuminance=function(){var n=this.toRgb(),e,r,o,i=n.r/255,s=n.g/255,c=n.b/255;return i<=.03928?e=i/12.92:e=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),c<=.03928?o=c/12.92:o=Math.pow((c+.055)/1.055,2.4),.2126*e+.7152*r+.0722*o},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(n){return this.a=rt(n),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},t.prototype.toHsv=function(){var n=at(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},t.prototype.toHsvString=function(){var n=at(this.r,this.g,this.b),e=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?"hsv(".concat(e,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(e,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var n=ot(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},t.prototype.toHslString=function(){var n=ot(this.r,this.g,this.b),e=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?"hsl(".concat(e,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(e,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(n){return n===void 0&&(n=!1),it(this.r,this.g,this.b,n)},t.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},t.prototype.toHex8=function(n){return n===void 0&&(n=!1),Kt(this.r,this.g,this.b,this.a,n)},t.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},t.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var n=Math.round(this.r),e=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(e,", ").concat(r,")"):"rgba(".concat(n,", ").concat(e,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var n=function(e){return"".concat(Math.round(p(e,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var n=function(e){return Math.round(p(e,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+it(this.r,this.g,this.b,!1),e=0,r=Object.entries(F);e<r.length;e++){var o=r[e],i=o[0],s=o[1];if(n===s)return i}return!1},t.prototype.toString=function(n){var e=!!n;n=n??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!e&&o&&(n.startsWith("hex")||n==="name");return i?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.l+=n/100,e.l=E(e.l),new t(e)},t.prototype.brighten=function(n){n===void 0&&(n=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(n/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(n/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(n/100)))),new t(e)},t.prototype.darken=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.l-=n/100,e.l=E(e.l),new t(e)},t.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},t.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},t.prototype.desaturate=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.s-=n/100,e.s=E(e.s),new t(e)},t.prototype.saturate=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.s+=n/100,e.s=E(e.s),new t(e)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(n){var e=this.toHsl(),r=(e.h+n)%360;return e.h=r<0?360+r:r,new t(e)},t.prototype.mix=function(n,e){e===void 0&&(e=50);var r=this.toRgb(),o=new t(n).toRgb(),i=e/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new t(s)},t.prototype.analogous=function(n,e){n===void 0&&(n=6),e===void 0&&(e=30);var r=this.toHsl(),o=360/e,i=[this];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(new t(r));return i},t.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new t(n)},t.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var e=this.toHsv(),r=e.h,o=e.s,i=e.v,s=[],c=1/n;n--;)s.push(new t({h:r,s:o,v:i})),i=(i+c)%1;return s},t.prototype.splitcomplement=function(){var n=this.toHsl(),e=n.h;return[this,new t({h:(e+72)%360,s:n.s,l:n.l}),new t({h:(e+216)%360,s:n.s,l:n.l})]},t.prototype.onBackground=function(n){var e=this.toRgb(),r=new t(n).toRgb(),o=e.a+r.a*(1-e.a);return new t({r:(e.r*e.a+r.r*r.a*(1-e.a))/o,g:(e.g*e.a+r.g*r.a*(1-e.a))/o,b:(e.b*e.a+r.b*r.a*(1-e.a))/o,a:o})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(n){for(var e=this.toHsl(),r=e.h,o=[this],i=360/n,s=1;s<n;s++)o.push(new t({h:(r+s*i)%360,s:e.s,l:e.l}));return o},t.prototype.equals=function(n){return this.toRgbString()===new t(n).toRgbString()},t})();function w(t,n=20){return t.mix("#141414",n).toString()}function Qt(t){const n=et(),e=C("button");return a.computed(()=>{let r={},o=t.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new Yt(o),c=t.dark?s.tint(20).toString():w(s,20);if(t.plain)r=e.cssVarBlock({"bg-color":t.dark?w(s,90):s.tint(90).toString(),"text-color":o,"border-color":t.dark?w(s,50):s.tint(50).toString(),"hover-text-color":`var(${e.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":c,"active-text-color":`var(${e.cssVarName("color-white")})`,"active-border-color":c}),n.value&&(r[e.cssVarBlockName("disabled-bg-color")]=t.dark?w(s,90):s.tint(90).toString(),r[e.cssVarBlockName("disabled-text-color")]=t.dark?w(s,50):s.tint(50).toString(),r[e.cssVarBlockName("disabled-border-color")]=t.dark?w(s,80):s.tint(80).toString());else{const d=t.dark?w(s,30):s.tint(30).toString(),m=s.isDark()?`var(${e.cssVarName("color-white")})`:`var(${e.cssVarName("color-black")})`;if(r=e.cssVarBlock({"bg-color":o,"text-color":m,"border-color":o,"hover-bg-color":d,"hover-text-color":m,"hover-border-color":d,"active-bg-color":c,"active-border-color":c}),n.value){const g=t.dark?w(s,50):s.tint(50).toString();r[e.cssVarBlockName("disabled-bg-color")]=g,r[e.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${e.cssVarName("color-white")})`,r[e.cssVarBlockName("disabled-border-color")]=g}}}return r})}const Xt=a.defineComponent({name:"ElButton",__name:"button",props:z,emits:zt,setup(t,{expose:n,emit:e}){const r=t,o=e,i=Qt(r),s=C("button"),{_ref:c,_size:d,_type:m,_disabled:g,_props:y,_plain:N,_round:$,_text:I,shouldAddSpace:l,handleClick:h}=Vt(r,o),f=a.computed(()=>[s.b(),s.m(m.value),s.m(d.value),s.is("disabled",g.value),s.is("loading",r.loading),s.is("plain",N.value),s.is("round",$.value),s.is("circle",r.circle),s.is("text",I.value),s.is("link",r.link),s.is("has-bg",r.bg)]);return n({ref:c,size:d,type:m,disabled:g,shouldAddSpace:l}),(u,b)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.tag),a.mergeProps({ref_key:"_ref",ref:c},a.unref(y),{class:f.value,style:a.unref(i),onClick:a.unref(h)}),{default:a.withCtx(()=>[u.loading?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[u.$slots.loading?a.renderSlot(u.$slots,"loading",{key:0}):(a.openBlock(),a.createBlock(a.unref(Y),{key:1,class:a.normalizeClass(a.unref(s).is("loading"))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.loadingIcon)))]),_:1},8,["class"]))],64)):u.icon||u.$slots.icon?(a.openBlock(),a.createBlock(a.unref(Y),{key:1},{default:a.withCtx(()=>[u.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.icon),{key:0})):a.renderSlot(u.$slots,"icon",{key:1})]),_:3})):a.createCommentVNode("v-if",!0),u.$slots.default?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass({[a.unref(s).em("text","expand")]:a.unref(l)})},[a.renderSlot(u.$slots,"default")],2)):a.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var te=R(Xt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ee={size:z.size,type:z.type,direction:{type:A(String),values:["horizontal","vertical"],default:"horizontal"}},ne=a.defineComponent({name:"ElButtonGroup",__name:"button-group",props:ee,setup(t){const n=t;a.provide(nt,a.reactive({size:a.toRef(n,"size"),type:a.toRef(n,"type")}));const e=C("button");return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(e).b("group"),a.unref(e).bm("group",n.direction)])},[a.renderSlot(r.$slots,"default")],2))}});var ct=R(ne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const re=Z(te,{ButtonGroup:ct});Mt(ct);const lt=a.defineComponent({name:"FancyButton",__name:"button",props:{type:{},size:{},loading:{}},setup(t){return(n,e)=>(a.openBlock(),a.createBlock(a.unref(re),null,{default:a.withCtx(()=>[...e[0]||(e[0]=[a.createTextVNode("123",-1)])]),_:1}))}}),ft=Object.freeze(Object.defineProperty({__proto__:null,FancyButton:lt},Symbol.toStringTag,{value:"Module"})),oe={install(t){Object.keys(ft).forEach(n=>{const e=ft[n];e&&e.name&&t.component(e.name,e)})}};x.FancyButton=lt,x.installer=oe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
3
+ `)},{immediate:!0})},Vt=(t,n)=>{Rt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},a.computed(()=>t.type==="text"));const e=a.inject(nt,void 0),r=Bt("button"),{form:o}=Tt(),i=Pt(a.computed(()=>e?.size)),s=et(),c=a.ref(),d=a.useSlots(),m=a.computed(()=>{var f;return t.type||e?.type||((f=r.value)==null?void 0:f.type)||""}),g=a.computed(()=>{var f,u,b;return(b=(u=t.autoInsertSpace)!=null?u:(f=r.value)==null?void 0:f.autoInsertSpace)!=null?b:!1}),y=a.computed(()=>{var f,u,b;return(b=(u=t.plain)!=null?u:(f=r.value)==null?void 0:f.plain)!=null?b:!1}),N=a.computed(()=>{var f,u,b;return(b=(u=t.round)!=null?u:(f=r.value)==null?void 0:f.round)!=null?b:!1}),$=a.computed(()=>{var f,u,b;return(b=(u=t.text)!=null?u:(f=r.value)==null?void 0:f.text)!=null?b:!1}),I=a.computed(()=>t.tag==="button"?{ariaDisabled:s.value||t.loading,disabled:s.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),l=a.computed(()=>{var f;const u=(f=d.default)==null?void 0:f.call(d);if(g.value&&u?.length===1){const b=u[0];if(b?.type===a.Text){const ae=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(ae.trim())}}return!1});return{_disabled:s,_size:i,_type:m,_ref:c,_props:I,_plain:y,_round:N,_text:$,shouldAddSpace:l,handleClick:f=>{if(s.value||t.loading){f.stopPropagation();return}t.nativeType==="reset"&&o?.resetFields(),n("click",f)}}},z=U({size:xt,disabled:{type:Boolean,default:void 0},type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Q},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Q,default:()=>It},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:A([String,Object]),default:"button"}}),zt={click:t=>t instanceof MouseEvent};function p(t,n){Ot(t)&&(t="100%");var e=Ft(t);return t=n===360?t:Math.min(n,Math.max(0,parseFloat(t))),e&&(t=parseInt(String(t*n),10)/100),Math.abs(t-n)<1e-6?1:(n===360?t=(t<0?t%n+n:t%n)/parseFloat(String(n)):t=t%n/parseFloat(String(n)),t)}function E(t){return Math.min(1,Math.max(0,t))}function Ot(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Ft(t){return typeof t=="string"&&t.indexOf("%")!==-1}function rt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function H(t){return t<=1?"".concat(Number(t)*100,"%"):t}function M(t){return t.length===1?"0"+t:String(t)}function jt(t,n,e){return{r:p(t,255)*255,g:p(n,255)*255,b:p(e,255)*255}}function ot(t,n,e){t=p(t,255),n=p(n,255),e=p(e,255);var r=Math.max(t,n,e),o=Math.min(t,n,e),i=0,s=0,c=(r+o)/2;if(r===o)s=0,i=0;else{var d=r-o;switch(s=c>.5?d/(2-r-o):d/(r+o),r){case t:i=(n-e)/d+(n<e?6:0);break;case n:i=(e-t)/d+2;break;case e:i=(t-n)/d+4;break}i/=6}return{h:i,s,l:c}}function O(t,n,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+(n-t)*(6*e):e<1/2?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function Gt(t,n,e){var r,o,i;if(t=p(t,360),n=p(n,100),e=p(e,100),n===0)o=e,i=e,r=e;else{var s=e<.5?e*(1+n):e+n-e*n,c=2*e-s;r=O(c,s,t+1/3),o=O(c,s,t),i=O(c,s,t-1/3)}return{r:r*255,g:o*255,b:i*255}}function at(t,n,e){t=p(t,255),n=p(n,255),e=p(e,255);var r=Math.max(t,n,e),o=Math.min(t,n,e),i=0,s=r,c=r-o,d=r===0?0:c/r;if(r===o)i=0;else{switch(r){case t:i=(n-e)/c+(n<e?6:0);break;case n:i=(e-t)/c+2;break;case e:i=(t-n)/c+4;break}i/=6}return{h:i,s:d,v:s}}function Dt(t,n,e){t=p(t,360)*6,n=p(n,100),e=p(e,100);var r=Math.floor(t),o=t-r,i=e*(1-n),s=e*(1-o*n),c=e*(1-(1-o)*n),d=r%6,m=[e,s,i,i,c,e][d],g=[c,e,e,s,i,i][d],y=[i,i,c,e,e,s][d];return{r:m*255,g:g*255,b:y*255}}function it(t,n,e,r){var o=[M(Math.round(t).toString(16)),M(Math.round(n).toString(16)),M(Math.round(e).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Kt(t,n,e,r,o){var i=[M(Math.round(t).toString(16)),M(Math.round(n).toString(16)),M(Math.round(e).toString(16)),M(qt(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function qt(t){return Math.round(parseFloat(t)*255).toString(16)}function st(t){return v(t)/255}function v(t){return parseInt(t,16)}function Lt(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var F={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wt(t){var n={r:0,g:0,b:0},e=1,r=null,o=null,i=null,s=!1,c=!1;return typeof t=="string"&&(t=Zt(t)),typeof t=="object"&&(S(t.r)&&S(t.g)&&S(t.b)?(n=jt(t.r,t.g,t.b),s=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):S(t.h)&&S(t.s)&&S(t.v)?(r=H(t.s),o=H(t.v),n=Dt(t.h,r,o),s=!0,c="hsv"):S(t.h)&&S(t.s)&&S(t.l)&&(r=H(t.s),i=H(t.l),n=Gt(t.h,r,i),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(e=t.a)),e=rt(e),{ok:s,format:t.format||c,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:e}}var Ut="[-\\+]?\\d+%?",Jt="[-\\+]?\\d*\\.\\d+%?",_="(?:".concat(Jt,")|(?:").concat(Ut,")"),j="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),G="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),k={CSS_UNIT:new RegExp(_),rgb:new RegExp("rgb"+j),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+j),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+j),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Zt(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var n=!1;if(F[t])t=F[t],n=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=k.rgb.exec(t);return e?{r:e[1],g:e[2],b:e[3]}:(e=k.rgba.exec(t),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=k.hsl.exec(t),e?{h:e[1],s:e[2],l:e[3]}:(e=k.hsla.exec(t),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=k.hsv.exec(t),e?{h:e[1],s:e[2],v:e[3]}:(e=k.hsva.exec(t),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=k.hex8.exec(t),e?{r:v(e[1]),g:v(e[2]),b:v(e[3]),a:st(e[4]),format:n?"name":"hex8"}:(e=k.hex6.exec(t),e?{r:v(e[1]),g:v(e[2]),b:v(e[3]),format:n?"name":"hex"}:(e=k.hex4.exec(t),e?{r:v(e[1]+e[1]),g:v(e[2]+e[2]),b:v(e[3]+e[3]),a:st(e[4]+e[4]),format:n?"name":"hex8"}:(e=k.hex3.exec(t),e?{r:v(e[1]+e[1]),g:v(e[2]+e[2]),b:v(e[3]+e[3]),format:n?"name":"hex"}:!1)))))))))}function S(t){return!!k.CSS_UNIT.exec(String(t))}var Yt=(function(){function t(n,e){n===void 0&&(n=""),e===void 0&&(e={});var r;if(n instanceof t)return n;typeof n=="number"&&(n=Lt(n)),this.originalInput=n;var o=Wt(n);this.originalInput=n,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=e.format)!==null&&r!==void 0?r:o.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},t.prototype.getLuminance=function(){var n=this.toRgb(),e,r,o,i=n.r/255,s=n.g/255,c=n.b/255;return i<=.03928?e=i/12.92:e=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),c<=.03928?o=c/12.92:o=Math.pow((c+.055)/1.055,2.4),.2126*e+.7152*r+.0722*o},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(n){return this.a=rt(n),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},t.prototype.toHsv=function(){var n=at(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},t.prototype.toHsvString=function(){var n=at(this.r,this.g,this.b),e=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?"hsv(".concat(e,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(e,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var n=ot(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},t.prototype.toHslString=function(){var n=ot(this.r,this.g,this.b),e=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?"hsl(".concat(e,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(e,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(n){return n===void 0&&(n=!1),it(this.r,this.g,this.b,n)},t.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},t.prototype.toHex8=function(n){return n===void 0&&(n=!1),Kt(this.r,this.g,this.b,this.a,n)},t.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},t.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var n=Math.round(this.r),e=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(e,", ").concat(r,")"):"rgba(".concat(n,", ").concat(e,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var n=function(e){return"".concat(Math.round(p(e,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var n=function(e){return Math.round(p(e,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+it(this.r,this.g,this.b,!1),e=0,r=Object.entries(F);e<r.length;e++){var o=r[e],i=o[0],s=o[1];if(n===s)return i}return!1},t.prototype.toString=function(n){var e=!!n;n=n??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!e&&o&&(n.startsWith("hex")||n==="name");return i?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.l+=n/100,e.l=E(e.l),new t(e)},t.prototype.brighten=function(n){n===void 0&&(n=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(n/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(n/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(n/100)))),new t(e)},t.prototype.darken=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.l-=n/100,e.l=E(e.l),new t(e)},t.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},t.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},t.prototype.desaturate=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.s-=n/100,e.s=E(e.s),new t(e)},t.prototype.saturate=function(n){n===void 0&&(n=10);var e=this.toHsl();return e.s+=n/100,e.s=E(e.s),new t(e)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(n){var e=this.toHsl(),r=(e.h+n)%360;return e.h=r<0?360+r:r,new t(e)},t.prototype.mix=function(n,e){e===void 0&&(e=50);var r=this.toRgb(),o=new t(n).toRgb(),i=e/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new t(s)},t.prototype.analogous=function(n,e){n===void 0&&(n=6),e===void 0&&(e=30);var r=this.toHsl(),o=360/e,i=[this];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(new t(r));return i},t.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new t(n)},t.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var e=this.toHsv(),r=e.h,o=e.s,i=e.v,s=[],c=1/n;n--;)s.push(new t({h:r,s:o,v:i})),i=(i+c)%1;return s},t.prototype.splitcomplement=function(){var n=this.toHsl(),e=n.h;return[this,new t({h:(e+72)%360,s:n.s,l:n.l}),new t({h:(e+216)%360,s:n.s,l:n.l})]},t.prototype.onBackground=function(n){var e=this.toRgb(),r=new t(n).toRgb(),o=e.a+r.a*(1-e.a);return new t({r:(e.r*e.a+r.r*r.a*(1-e.a))/o,g:(e.g*e.a+r.g*r.a*(1-e.a))/o,b:(e.b*e.a+r.b*r.a*(1-e.a))/o,a:o})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(n){for(var e=this.toHsl(),r=e.h,o=[this],i=360/n,s=1;s<n;s++)o.push(new t({h:(r+s*i)%360,s:e.s,l:e.l}));return o},t.prototype.equals=function(n){return this.toRgbString()===new t(n).toRgbString()},t})();function w(t,n=20){return t.mix("#141414",n).toString()}function Qt(t){const n=et(),e=C("button");return a.computed(()=>{let r={},o=t.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new Yt(o),c=t.dark?s.tint(20).toString():w(s,20);if(t.plain)r=e.cssVarBlock({"bg-color":t.dark?w(s,90):s.tint(90).toString(),"text-color":o,"border-color":t.dark?w(s,50):s.tint(50).toString(),"hover-text-color":`var(${e.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":c,"active-text-color":`var(${e.cssVarName("color-white")})`,"active-border-color":c}),n.value&&(r[e.cssVarBlockName("disabled-bg-color")]=t.dark?w(s,90):s.tint(90).toString(),r[e.cssVarBlockName("disabled-text-color")]=t.dark?w(s,50):s.tint(50).toString(),r[e.cssVarBlockName("disabled-border-color")]=t.dark?w(s,80):s.tint(80).toString());else{const d=t.dark?w(s,30):s.tint(30).toString(),m=s.isDark()?`var(${e.cssVarName("color-white")})`:`var(${e.cssVarName("color-black")})`;if(r=e.cssVarBlock({"bg-color":o,"text-color":m,"border-color":o,"hover-bg-color":d,"hover-text-color":m,"hover-border-color":d,"active-bg-color":c,"active-border-color":c}),n.value){const g=t.dark?w(s,50):s.tint(50).toString();r[e.cssVarBlockName("disabled-bg-color")]=g,r[e.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${e.cssVarName("color-white")})`,r[e.cssVarBlockName("disabled-border-color")]=g}}}return r})}const Xt=a.defineComponent({name:"ElButton",__name:"button",props:z,emits:zt,setup(t,{expose:n,emit:e}){const r=t,o=e,i=Qt(r),s=C("button"),{_ref:c,_size:d,_type:m,_disabled:g,_props:y,_plain:N,_round:$,_text:I,shouldAddSpace:l,handleClick:h}=Vt(r,o),f=a.computed(()=>[s.b(),s.m(m.value),s.m(d.value),s.is("disabled",g.value),s.is("loading",r.loading),s.is("plain",N.value),s.is("round",$.value),s.is("circle",r.circle),s.is("text",I.value),s.is("link",r.link),s.is("has-bg",r.bg)]);return n({ref:c,size:d,type:m,disabled:g,shouldAddSpace:l}),(u,b)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.tag),a.mergeProps({ref_key:"_ref",ref:c},a.unref(y),{class:f.value,style:a.unref(i),onClick:a.unref(h)}),{default:a.withCtx(()=>[u.loading?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[u.$slots.loading?a.renderSlot(u.$slots,"loading",{key:0}):(a.openBlock(),a.createBlock(a.unref(Y),{key:1,class:a.normalizeClass(a.unref(s).is("loading"))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.loadingIcon)))]),_:1},8,["class"]))],64)):u.icon||u.$slots.icon?(a.openBlock(),a.createBlock(a.unref(Y),{key:1},{default:a.withCtx(()=>[u.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.icon),{key:0})):a.renderSlot(u.$slots,"icon",{key:1})]),_:3})):a.createCommentVNode("v-if",!0),u.$slots.default?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass({[a.unref(s).em("text","expand")]:a.unref(l)})},[a.renderSlot(u.$slots,"default")],2)):a.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var te=R(Xt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ee={size:z.size,type:z.type,direction:{type:A(String),values:["horizontal","vertical"],default:"horizontal"}},ne=a.defineComponent({name:"ElButtonGroup",__name:"button-group",props:ee,setup(t){const n=t;a.provide(nt,a.reactive({size:a.toRef(n,"size"),type:a.toRef(n,"type")}));const e=C("button");return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(e).b("group"),a.unref(e).bm("group",n.direction)])},[a.renderSlot(r.$slots,"default")],2))}});var ct=R(ne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const re=Z(te,{ButtonGroup:ct});Mt(ct);const lt=a.defineComponent({name:"FancyButton",__name:"button",props:{type:{},size:{},loading:{}},setup(t){return(n,e)=>(a.openBlock(),a.createBlock(a.unref(re),{class:"test_btn"},{default:a.withCtx(()=>[...e[0]||(e[0]=[a.createTextVNode("123",-1)])]),_:1}))}}),ft=Object.freeze(Object.defineProperty({__proto__:null,FancyButton:lt},Symbol.toStringTag,{value:"Module"})),oe={install(t){Object.keys(ft).forEach(n=>{const e=ft[n];e&&e.name&&t.component(e.name,e)})}};x.FancyButton=lt,x.installer=oe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1 @@
1
+ @use '../Button/styles/index.scss';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fancy-plugins-components",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "./dist/fancy-components.js",
6
6
  "module": "./dist/fancy-components.js",
@@ -22,10 +22,11 @@
22
22
  "author": "",
23
23
  "license": "ISC",
24
24
  "type": "module",
25
- "dependencies": {
25
+ "peerDependencies": {
26
26
  "element-plus": "^2.13.0"
27
27
  },
28
28
  "devDependencies": {
29
- "sass": "^1.97.1"
29
+ "sass": "^1.97.1",
30
+ "vite-plugin-static-copy": "^3.1.4"
30
31
  }
31
32
  }