fantasia-ui 0.2.2 → 0.2.4

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.
Files changed (87) hide show
  1. package/README.en.md +14 -1
  2. package/README.md +16 -3
  3. package/dist/fantasia-ui.css +1 -0
  4. package/dist/fantasia-ui.es.js +888 -1020
  5. package/dist/fantasia-ui.umd.js +1 -2
  6. package/dist/types/components/index.d.ts +29 -27
  7. package/dist/types/components/index.js +29 -27
  8. package/dist/types/index.d.ts +3 -2
  9. package/dist/types/index.js +6 -12
  10. package/dist/types/types/components/index.d.ts +3 -0
  11. package/dist/types/types/components/index.js +3 -0
  12. package/dist/types/types/components/modules/f-checkbox.d.ts +5 -0
  13. package/dist/types/types/components/modules/f-checkbox.js +1 -0
  14. package/dist/types/types/components/modules/f-form-item.d.ts +4 -0
  15. package/dist/types/types/components/modules/f-form-item.js +1 -0
  16. package/dist/types/types/components/modules/f-form.d.ts +21 -78
  17. package/dist/types/utils/general.d.ts +4 -0
  18. package/dist/types/utils/general.js +4 -0
  19. package/dist/types/utils/index.d.ts +2 -0
  20. package/dist/types/utils/index.js +2 -0
  21. package/dist/types/utils/validator.d.ts +23 -0
  22. package/dist/types/utils/validator.js +181 -0
  23. package/package.json +37 -15
  24. package/dist/assets/index.d.ts +0 -5
  25. package/dist/components/index.d.ts +0 -27
  26. package/dist/components/modules/FAffix.vue.d.ts +0 -21
  27. package/dist/components/modules/FAvatar.vue.d.ts +0 -6
  28. package/dist/components/modules/FBadge.vue.d.ts +0 -24
  29. package/dist/components/modules/FBreadcrumb.vue.d.ts +0 -24
  30. package/dist/components/modules/FButton.vue.d.ts +0 -21
  31. package/dist/components/modules/FCard.vue.d.ts +0 -31
  32. package/dist/components/modules/FCol.vue.d.ts +0 -22
  33. package/dist/components/modules/FContainer.vue.d.ts +0 -20
  34. package/dist/components/modules/FDivider.vue.d.ts +0 -6
  35. package/dist/components/modules/FDropdown.vue.d.ts +0 -35
  36. package/dist/components/modules/FIcon.vue.d.ts +0 -20
  37. package/dist/components/modules/FImage.vue.d.ts +0 -23
  38. package/dist/components/modules/FInput.vue.d.ts +0 -27
  39. package/dist/components/modules/FLink.vue.d.ts +0 -21
  40. package/dist/components/modules/FLoading.vue.d.ts +0 -6
  41. package/dist/components/modules/FPagination.vue.d.ts +0 -16
  42. package/dist/components/modules/FProgress.vue.d.ts +0 -6
  43. package/dist/components/modules/FRate.vue.d.ts +0 -22
  44. package/dist/components/modules/FRow.vue.d.ts +0 -24
  45. package/dist/components/modules/FSelect.vue.d.ts +0 -17
  46. package/dist/components/modules/FSpace.vue.d.ts +0 -9
  47. package/dist/components/modules/FTabs.vue.d.ts +0 -24
  48. package/dist/components/modules/FTag.vue.d.ts +0 -25
  49. package/dist/components/modules/FText.vue.d.ts +0 -22
  50. package/dist/components/modules/FTooltip.vue.d.ts +0 -31
  51. package/dist/components/modules/FTypography.vue.d.ts +0 -22
  52. package/dist/index.css +0 -1
  53. package/dist/index.d.ts +0 -3
  54. package/dist/types/components/modules/base.d.ts +0 -7
  55. package/dist/types/components/modules/f-affix.d.ts +0 -5
  56. package/dist/types/components/modules/f-avatar.d.ts +0 -10
  57. package/dist/types/components/modules/f-badge.d.ts +0 -9
  58. package/dist/types/components/modules/f-breadcrumb.d.ts +0 -10
  59. package/dist/types/components/modules/f-button.d.ts +0 -9
  60. package/dist/types/components/modules/f-card.d.ts +0 -6
  61. package/dist/types/components/modules/f-col.d.ts +0 -15
  62. package/dist/types/components/modules/f-container.d.ts +0 -4
  63. package/dist/types/components/modules/f-dialog.d.ts +0 -6
  64. package/dist/types/components/modules/f-divider.d.ts +0 -8
  65. package/dist/types/components/modules/f-dropdown.d.ts +0 -17
  66. package/dist/types/components/modules/f-form.d.ts +0 -83
  67. package/dist/types/components/modules/f-icon.d.ts +0 -5
  68. package/dist/types/components/modules/f-image.d.ts +0 -8
  69. package/dist/types/components/modules/f-input.d.ts +0 -9
  70. package/dist/types/components/modules/f-link.d.ts +0 -8
  71. package/dist/types/components/modules/f-loading.d.ts +0 -6
  72. package/dist/types/components/modules/f-menu.d.ts +0 -13
  73. package/dist/types/components/modules/f-pagination.d.ts +0 -6
  74. package/dist/types/components/modules/f-progress.d.ts +0 -7
  75. package/dist/types/components/modules/f-rate.d.ts +0 -12
  76. package/dist/types/components/modules/f-row.d.ts +0 -9
  77. package/dist/types/components/modules/f-slider-captcha.d.ts +0 -16
  78. package/dist/types/components/modules/f-space.d.ts +0 -11
  79. package/dist/types/components/modules/f-table.d.ts +0 -12
  80. package/dist/types/components/modules/f-tabs.d.ts +0 -12
  81. package/dist/types/components/modules/f-tag.d.ts +0 -10
  82. package/dist/types/components/modules/f-tagsview.d.ts +0 -7
  83. package/dist/types/components/modules/f-text.d.ts +0 -10
  84. package/dist/types/components/modules/f-toolbar.d.ts +0 -26
  85. package/dist/types/components/modules/f-tooltip.d.ts +0 -10
  86. package/dist/types/components/modules/f-upload.d.ts +0 -11
  87. package/dist/types/models/index.d.ts +0 -26
@@ -1,48 +1,66 @@
1
- import { defineComponent as m, computed as _, createElementBlock as r, openBlock as l, normalizeStyle as B, renderSlot as g, ref as A, watch as te, resolveComponent as P, createVNode as z, withDirectives as oe, Transition as Q, withCtx as S, createCommentVNode as b, unref as T, createElementVNode as h, vShow as ae, mergeModels as G, useModel as Z, normalizeClass as x, readonly as se, vModelDynamic as fe, Fragment as R, renderList as U, toDisplayString as V, createBlock as D, getCurrentScope as ve, onScopeDispose as me, toValue as K, nextTick as re, onUnmounted as ie, Teleport as ce, withModifiers as de, resolveDynamicComponent as Y, createTextVNode as he, TransitionGroup as _e, useSlots as ge, defineAsyncComponent as ye } from "vue";
2
- const we = (s, e, t) => {
3
- const o = s[e];
4
- return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, c) => {
5
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
6
- c.bind(
7
- null,
8
- new Error(
9
- "Unknown variable dynamic import: " + e + (e.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
10
- )
11
- )
12
- );
13
- });
14
- }, $e = /* @__PURE__ */ m({
1
+ var ge = Object.defineProperty, be = Object.defineProperties;
2
+ var ye = Object.getOwnPropertyDescriptors;
3
+ var le = Object.getOwnPropertySymbols;
4
+ var $e = Object.prototype.hasOwnProperty, ke = Object.prototype.propertyIsEnumerable;
5
+ var re = (n, e, o) => e in n ? ge(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o, ie = (n, e) => {
6
+ for (var o in e || (e = {}))
7
+ $e.call(e, o) && re(n, o, e[o]);
8
+ if (le)
9
+ for (var o of le(e))
10
+ ke.call(e, o) && re(n, o, e[o]);
11
+ return n;
12
+ }, ce = (n, e) => be(n, ye(e));
13
+ var J = (n, e, o) => new Promise((t, s) => {
14
+ var i = (a) => {
15
+ try {
16
+ r(o.next(a));
17
+ } catch (f) {
18
+ s(f);
19
+ }
20
+ }, u = (a) => {
21
+ try {
22
+ r(o.throw(a));
23
+ } catch (f) {
24
+ s(f);
25
+ }
26
+ }, r = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(i, u);
27
+ r((o = o.apply(n, e)).next());
28
+ });
29
+ import { defineComponent as g, computed as h, createElementBlock as c, openBlock as l, normalizeStyle as T, unref as p, renderSlot as v, ref as R, watch as ee, resolveComponent as O, createVNode as S, withDirectives as te, Transition as K, withCtx as I, createCommentVNode as y, createElementVNode as z, vShow as ue, mergeModels as H, useModel as Q, normalizeClass as C, readonly as de, vModelDynamic as we, Fragment as P, renderList as G, toDisplayString as V, createBlock as W, nextTick as pe, onUnmounted as oe, Teleport as fe, withModifiers as se, resolveDynamicComponent as Y, createTextVNode as me, TransitionGroup as Fe, useSlots as ze, provide as _e, inject as Ce, onMounted as xe } from "vue";
30
+ import { Search as Se, StarOutline as Me, StarHalf as Ie, Star as Te, ChevronDownOutline as Be, ChevronBackOutline as Ve, EllipsisHorizontal as Re, ChevronForwardOutline as Ae, CloseCircle as Pe, Close as We, Person as je } from "@vicons/ionicons5";
31
+ import { useEventListener as De } from "@vueuse/core";
32
+ const Ee = /* @__PURE__ */ g({
15
33
  __name: "FIcon",
16
34
  props: {
17
35
  color: {},
18
36
  size: { default: "1em" }
19
37
  },
20
- setup(s) {
21
- const e = s, t = _(() => ({
38
+ setup(n) {
39
+ const e = n, o = h(() => ({
22
40
  width: typeof e.size == "number" ? `${e.size}px` : e.size,
23
41
  height: typeof e.size == "number" ? `${e.size}px` : e.size,
24
42
  color: e.color
25
43
  }));
26
- return (o, n) => (l(), r("span", {
44
+ return (t, s) => (l(), c("span", {
27
45
  role: "img",
28
46
  class: "f-icon",
29
- style: B(t.value)
47
+ style: T(p(o))
30
48
  }, [
31
- g(o.$slots, "default", {}, void 0, !0)
49
+ v(t.$slots, "default", {}, void 0, !0)
32
50
  ], 4));
33
51
  }
34
- }), w = (s, e) => {
35
- const t = s.__vccOpts || s;
36
- for (const [o, n] of e)
37
- t[o] = n;
38
- return t;
39
- }, _o = /* @__PURE__ */ w($e, [["__scopeId", "data-v-6fc51076"]]), be = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1780285609860'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12961'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M894.4%20281.504a39.36%2039.36%200%200%200-27.104-11.808l-293.888-10.976-22.016%2046.88%2030.592%2087.2-55.2%2099.008%2022.4%2079.904%2056%2068.48%2081.024-70.496c7.808-6.88%2020.288-6.496%2027.104%201.216l103.904%20106.4c7.296%207.296%206.88%2019.2-0.928%2026.112a18.944%2018.944%200%200%201-13.76%204.896l-284.8-10.624-14.24%2038.72%2015.52%2034.592%20327.488%2011.808c21.504%200.8%2039.616-15.104%2040.096-35.52l18.208-439.296a34.368%2034.368%200%200%200-10.4-26.496zM684.096%20483.2c-32.32-1.184-57.28-26.88-56-57.088%201.28-30.592%2028.416-54.208%2060.288-52.992%2031.904%201.184%2057.312%2026.88%2056%2057.088-1.184%2030.208-28.384%2054.304-60.288%2052.992z%20m-211.104%20253.6l9.92-40.8-231.424%2015.104c-10.784%200.8-19.776-6.496-20.672-16.704a17.856%2017.856%200%200%201%204.672-13.504l171.52-186.272a18.048%2018.048%200%200%201%2014.208-6.112c5.184%200%2010.272%201.984%2014.176%205.696l57.28%2056.704-24.576-60.32%2044-104.288L472%20302.72l16.384-48.096-315.392%2020.8c-21.504%201.184-37.504%2018.784-36.192%2039.072l31.904%20439.424c0.384%209.792%205.184%2018.688%2013.408%2024.896%207.776%206.496%2017.696%209.792%2028%208.992l281.792-18.304-18.88-32.704z'%20p-id='12962'%3e%3c/path%3e%3c/svg%3e", ke = { class: "f-image" }, xe = {
52
+ }), b = (n, e) => {
53
+ const o = n.__vccOpts || n;
54
+ for (const [t, s] of e)
55
+ o[t] = s;
56
+ return o;
57
+ }, Le = /* @__PURE__ */ b(Ee, [["__scopeId", "data-v-524b7dbb"]]), Oe = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1780285609860'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12961'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M894.4%20281.504a39.36%2039.36%200%200%200-27.104-11.808l-293.888-10.976-22.016%2046.88%2030.592%2087.2-55.2%2099.008%2022.4%2079.904%2056%2068.48%2081.024-70.496c7.808-6.88%2020.288-6.496%2027.104%201.216l103.904%20106.4c7.296%207.296%206.88%2019.2-0.928%2026.112a18.944%2018.944%200%200%201-13.76%204.896l-284.8-10.624-14.24%2038.72%2015.52%2034.592%20327.488%2011.808c21.504%200.8%2039.616-15.104%2040.096-35.52l18.208-439.296a34.368%2034.368%200%200%200-10.4-26.496zM684.096%20483.2c-32.32-1.184-57.28-26.88-56-57.088%201.28-30.592%2028.416-54.208%2060.288-52.992%2031.904%201.184%2057.312%2026.88%2056%2057.088-1.184%2030.208-28.384%2054.304-60.288%2052.992z%20m-211.104%20253.6l9.92-40.8-231.424%2015.104c-10.784%200.8-19.776-6.496-20.672-16.704a17.856%2017.856%200%200%201%204.672-13.504l171.52-186.272a18.048%2018.048%200%200%201%2014.208-6.112c5.184%200%2010.272%201.984%2014.176%205.696l57.28%2056.704-24.576-60.32%2044-104.288L472%20302.72l16.384-48.096-315.392%2020.8c-21.504%201.184-37.504%2018.784-36.192%2039.072l31.904%20439.424c0.384%209.792%205.184%2018.688%2013.408%2024.896%207.776%206.496%2017.696%209.792%2028%208.992l281.792-18.304-18.88-32.704z'%20p-id='12962'%3e%3c/path%3e%3c/svg%3e", He = { class: "f-image" }, Ne = {
40
58
  key: 0,
41
59
  class: "f-image__placeholder"
42
- }, Ce = {
60
+ }, qe = {
43
61
  key: 0,
44
62
  class: "f-image__error"
45
- }, Fe = ["src", "loading"], ze = /* @__PURE__ */ m({
63
+ }, Ge = ["src", "loading"], Ue = /* @__PURE__ */ g({
46
64
  __name: "FImage",
47
65
  props: {
48
66
  src: {},
@@ -50,382 +68,54 @@ const we = (s, e, t) => {
50
68
  fit: { default: "cover" },
51
69
  lazy: { type: Boolean, default: !0 }
52
70
  },
53
- setup(s) {
54
- const e = s, t = A("loading");
55
- te(() => e.src, () => {
56
- t.value = "loading";
71
+ setup(n) {
72
+ const e = n, o = R("loading");
73
+ ee(() => e.src, () => {
74
+ o.value = "loading";
57
75
  }, { immediate: !1 });
58
- const o = () => t.value = "loaded", n = () => t.value = "error";
59
- return (c, d) => {
60
- const i = P("f-loading"), a = P("f-icon");
61
- return l(), r("div", ke, [
62
- z(Q, { name: "fade" }, {
63
- default: S(() => [
64
- t.value === "loading" ? (l(), r("div", xe, [
65
- z(i, { type: "classic first" })
66
- ])) : b("", !0)
76
+ const t = () => o.value = "loaded", s = () => o.value = "error";
77
+ return (i, u) => {
78
+ const r = O("f-loading"), a = O("f-icon");
79
+ return l(), c("div", He, [
80
+ S(K, { name: "fade" }, {
81
+ default: I(() => [
82
+ p(o) === "loading" ? (l(), c("div", Ne, [
83
+ S(r, { type: "classic first" })
84
+ ])) : y("", !0)
67
85
  ]),
68
86
  _: 1
69
87
  }),
70
- z(Q, { name: "fade" }, {
71
- default: S(() => [
72
- t.value === "error" ? (l(), r("div", Ce, [
73
- g(c.$slots, "error", {}, () => [
74
- z(a, { size: "48px" }, {
75
- default: S(() => [
76
- z(T(be))
88
+ S(K, { name: "fade" }, {
89
+ default: I(() => [
90
+ p(o) === "error" ? (l(), c("div", qe, [
91
+ v(i.$slots, "error", {}, () => [
92
+ S(a, { size: "48px" }, {
93
+ default: I(() => [
94
+ S(p(Oe))
77
95
  ]),
78
96
  _: 1
79
97
  })
80
98
  ], !0)
81
- ])) : b("", !0)
99
+ ])) : y("", !0)
82
100
  ]),
83
101
  _: 3
84
102
  }),
85
- oe(h("img", {
103
+ te(z("img", {
86
104
  src: e.src,
87
- loading: c.lazy ? "lazy" : "eager",
88
- style: B({ objectFit: e.fit }),
105
+ loading: i.lazy ? "lazy" : "eager",
106
+ style: T({ objectFit: e.fit }),
89
107
  class: "f-image__img",
90
- onLoad: o,
91
- onError: n
92
- }, null, 44, Fe), [
93
- [ae, t.value === "loaded"]
108
+ onLoad: t,
109
+ onError: s
110
+ }, null, 44, Ge), [
111
+ [ue, p(o) === "loaded"]
94
112
  ])
95
113
  ]);
96
114
  };
97
115
  }
98
- }), go = /* @__PURE__ */ w(ze, [["__scopeId", "data-v-aaa14cc8"]]), Me = {
99
- xmlns: "http://www.w3.org/2000/svg",
100
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
101
- viewBox: "0 0 512 512"
102
- }, Se = m({
103
- name: "ChevronBackOutline",
104
- render: function(e, t) {
105
- return l(), r(
106
- "svg",
107
- Me,
108
- t[0] || (t[0] = [
109
- h(
110
- "path",
111
- {
112
- fill: "none",
113
- stroke: "currentColor",
114
- "stroke-linecap": "round",
115
- "stroke-linejoin": "round",
116
- "stroke-width": "48",
117
- d: "M328 112L184 256l144 144"
118
- },
119
- null,
120
- -1
121
- /* HOISTED */
122
- )
123
- ])
124
- );
125
- }
126
- }), Be = {
127
- xmlns: "http://www.w3.org/2000/svg",
128
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
129
- viewBox: "0 0 512 512"
130
- }, Te = m({
131
- name: "ChevronDownOutline",
132
- render: function(e, t) {
133
- return l(), r(
134
- "svg",
135
- Be,
136
- t[0] || (t[0] = [
137
- h(
138
- "path",
139
- {
140
- fill: "none",
141
- stroke: "currentColor",
142
- "stroke-linecap": "round",
143
- "stroke-linejoin": "round",
144
- "stroke-width": "48",
145
- d: "M112 184l144 144l144-144"
146
- },
147
- null,
148
- -1
149
- /* HOISTED */
150
- )
151
- ])
152
- );
153
- }
154
- }), Ie = {
155
- xmlns: "http://www.w3.org/2000/svg",
156
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
157
- viewBox: "0 0 512 512"
158
- }, Le = m({
159
- name: "ChevronForwardOutline",
160
- render: function(e, t) {
161
- return l(), r(
162
- "svg",
163
- Ie,
164
- t[0] || (t[0] = [
165
- h(
166
- "path",
167
- {
168
- fill: "none",
169
- stroke: "currentColor",
170
- "stroke-linecap": "round",
171
- "stroke-linejoin": "round",
172
- "stroke-width": "48",
173
- d: "M184 112l144 144l-144 144"
174
- },
175
- null,
176
- -1
177
- /* HOISTED */
178
- )
179
- ])
180
- );
181
- }
182
- }), Ae = {
183
- xmlns: "http://www.w3.org/2000/svg",
184
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
185
- viewBox: "0 0 512 512"
186
- }, Ve = m({
187
- name: "Close",
188
- render: function(e, t) {
189
- return l(), r(
190
- "svg",
191
- Ae,
192
- t[0] || (t[0] = [
193
- h(
194
- "path",
195
- {
196
- d: "M289.94 256l95-95A24 24 0 0 0 351 127l-95 95l-95-95a24 24 0 0 0-34 34l95 95l-95 95a24 24 0 1 0 34 34l95-95l95 95a24 24 0 0 0 34-34z",
197
- fill: "currentColor"
198
- },
199
- null,
200
- -1
201
- /* HOISTED */
202
- )
203
- ])
204
- );
205
- }
206
- }), Re = {
207
- xmlns: "http://www.w3.org/2000/svg",
208
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
209
- viewBox: "0 0 512 512"
210
- }, De = m({
211
- name: "CloseCircle",
212
- render: function(e, t) {
213
- return l(), r(
214
- "svg",
215
- Re,
216
- t[0] || (t[0] = [
217
- h(
218
- "path",
219
- {
220
- d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208s208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 1 1-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 0 1-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0 1 22.62-22.62L256 233.37l52.69-52.68a16 16 0 0 1 22.62 22.62L278.63 256z",
221
- fill: "currentColor"
222
- },
223
- null,
224
- -1
225
- /* HOISTED */
226
- )
227
- ])
228
- );
229
- }
230
- }), He = {
231
- xmlns: "http://www.w3.org/2000/svg",
232
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
233
- viewBox: "0 0 512 512"
234
- }, je = m({
235
- name: "EllipsisHorizontal",
236
- render: function(e, t) {
237
- return l(), r(
238
- "svg",
239
- He,
240
- t[0] || (t[0] = [
241
- h(
242
- "circle",
243
- {
244
- cx: "256",
245
- cy: "256",
246
- r: "48",
247
- fill: "currentColor"
248
- },
249
- null,
250
- -1
251
- /* HOISTED */
252
- ),
253
- h(
254
- "circle",
255
- {
256
- cx: "416",
257
- cy: "256",
258
- r: "48",
259
- fill: "currentColor"
260
- },
261
- null,
262
- -1
263
- /* HOISTED */
264
- ),
265
- h(
266
- "circle",
267
- {
268
- cx: "96",
269
- cy: "256",
270
- r: "48",
271
- fill: "currentColor"
272
- },
273
- null,
274
- -1
275
- /* HOISTED */
276
- )
277
- ])
278
- );
279
- }
280
- }), Oe = {
281
- xmlns: "http://www.w3.org/2000/svg",
282
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
283
- viewBox: "0 0 512 512"
284
- }, We = m({
285
- name: "Person",
286
- render: function(e, t) {
287
- return l(), r(
288
- "svg",
289
- Oe,
290
- t[0] || (t[0] = [
291
- h(
292
- "path",
293
- {
294
- d: "M332.64 64.58C313.18 43.57 286 32 256 32c-30.16 0-57.43 11.5-76.8 32.38c-19.58 21.11-29.12 49.8-26.88 80.78C156.76 206.28 203.27 256 256 256s99.16-49.71 103.67-110.82c2.27-30.7-7.33-59.33-27.03-80.6z",
295
- fill: "currentColor"
296
- },
297
- null,
298
- -1
299
- /* HOISTED */
300
- ),
301
- h(
302
- "path",
303
- {
304
- d: "M432 480H80a31 31 0 0 1-24.2-11.13c-6.5-7.77-9.12-18.38-7.18-29.11C57.06 392.94 83.4 353.61 124.8 326c36.78-24.51 83.37-38 131.2-38s94.42 13.5 131.2 38c41.4 27.6 67.74 66.93 76.18 113.75c1.94 10.73-.68 21.34-7.18 29.11A31 31 0 0 1 432 480z",
305
- fill: "currentColor"
306
- },
307
- null,
308
- -1
309
- /* HOISTED */
310
- )
311
- ])
312
- );
313
- }
314
- }), Pe = {
315
- xmlns: "http://www.w3.org/2000/svg",
316
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
317
- viewBox: "0 0 512 512"
318
- }, Ee = m({
319
- name: "Search",
320
- render: function(e, t) {
321
- return l(), r(
322
- "svg",
323
- Pe,
324
- t[0] || (t[0] = [
325
- h(
326
- "path",
327
- {
328
- d: "M456.69 421.39L362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8a124.95 124.95 0 0 1-124.8-124.8z",
329
- fill: "currentColor"
330
- },
331
- null,
332
- -1
333
- /* HOISTED */
334
- )
335
- ])
336
- );
337
- }
338
- }), Ne = {
339
- xmlns: "http://www.w3.org/2000/svg",
340
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
341
- viewBox: "0 0 512 512"
342
- }, Ge = m({
343
- name: "Star",
344
- render: function(e, t) {
345
- return l(), r(
346
- "svg",
347
- Ne,
348
- t[0] || (t[0] = [
349
- h(
350
- "path",
351
- {
352
- d: "M394 480a16 16 0 0 1-9.39-3L256 383.76L127.39 477a16 16 0 0 1-24.55-18.08L153 310.35L23 221.2a16 16 0 0 1 9-29.2h160.38l48.4-148.95a16 16 0 0 1 30.44 0l48.4 149H480a16 16 0 0 1 9.05 29.2L359 310.35l50.13 148.53A16 16 0 0 1 394 480z",
353
- fill: "currentColor"
354
- },
355
- null,
356
- -1
357
- /* HOISTED */
358
- )
359
- ])
360
- );
361
- }
362
- }), Ue = {
363
- xmlns: "http://www.w3.org/2000/svg",
364
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
365
- viewBox: "0 0 512 512"
366
- }, qe = m({
367
- name: "StarHalf",
368
- render: function(e, t) {
369
- return l(), r(
370
- "svg",
371
- Ue,
372
- t[0] || (t[0] = [
373
- h(
374
- "path",
375
- {
376
- d: "M480 208H308L256 48l-52 160H32l140 96l-54 160l138-100l138 100l-54-160z",
377
- fill: "none",
378
- stroke: "currentColor",
379
- "stroke-linejoin": "round",
380
- "stroke-width": "32"
381
- },
382
- null,
383
- -1
384
- /* HOISTED */
385
- ),
386
- h(
387
- "path",
388
- {
389
- d: "M256 48v316L118 464l54-160l-140-96h172l52-160z",
390
- fill: "currentColor"
391
- },
392
- null,
393
- -1
394
- /* HOISTED */
395
- )
396
- ])
397
- );
398
- }
399
- }), Xe = {
400
- xmlns: "http://www.w3.org/2000/svg",
401
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
402
- viewBox: "0 0 512 512"
403
- }, Ye = m({
404
- name: "StarOutline",
405
- render: function(e, t) {
406
- return l(), r(
407
- "svg",
408
- Xe,
409
- t[0] || (t[0] = [
410
- h(
411
- "path",
412
- {
413
- d: "M480 208H308L256 48l-52 160H32l140 96l-54 160l138-100l138 100l-54-160z",
414
- fill: "none",
415
- stroke: "currentColor",
416
- "stroke-linejoin": "round",
417
- "stroke-width": "32"
418
- },
419
- null,
420
- -1
421
- /* HOISTED */
422
- )
423
- ])
424
- );
425
- }
426
- }), Je = ["type", "placeholder", "disabled", "readonly", "name", "id"], Ke = /* @__PURE__ */ m({
116
+ }), Xe = /* @__PURE__ */ b(Ue, [["__scopeId", "data-v-2948108d"]]), Ye = ["type", "placeholder", "disabled", "readonly", "name", "id"], Je = /* @__PURE__ */ g({
427
117
  __name: "FInput",
428
- props: /* @__PURE__ */ G({
118
+ props: /* @__PURE__ */ H({
429
119
  placeholder: { default: "输入..." },
430
120
  type: { default: "text" },
431
121
  disabled: { type: Boolean, default: !1 },
@@ -436,85 +126,85 @@ const we = (s, e, t) => {
436
126
  modelValue: { default: "" },
437
127
  modelModifiers: {}
438
128
  }),
439
- emits: /* @__PURE__ */ G(["input", "change", "focus", "blur"], ["update:modelValue"]),
440
- setup(s, { emit: e }) {
441
- const t = Z(s, "modelValue"), o = e, n = (a) => {
442
- const f = a.target.value;
443
- o("input", f);
444
- }, c = (a) => {
129
+ emits: /* @__PURE__ */ H(["input", "change", "focus", "blur"], ["update:modelValue"]),
130
+ setup(n, { emit: e }) {
131
+ const o = Q(n, "modelValue"), t = e, s = (a) => {
445
132
  const f = a.target.value;
446
- o("change", f);
447
- }, d = (a) => {
448
- o("focus", a);
133
+ t("input", f);
449
134
  }, i = (a) => {
450
- o("blur", a);
135
+ const f = a.target.value;
136
+ t("change", f);
137
+ }, u = (a) => {
138
+ t("focus", a);
139
+ }, r = (a) => {
140
+ t("blur", a);
451
141
  };
452
142
  return (a, f) => {
453
- const u = P("f-icon");
454
- return l(), r("div", {
455
- class: x(["f-input", { "is-disabled": a.disabled, "is-readonly": "readonly" in a ? a.readonly : T(se) }])
143
+ const m = O("f-icon");
144
+ return l(), c("div", {
145
+ class: C(["f-input", { "is-disabled": a.disabled, "is-readonly": "readonly" in a ? a.readonly : p(de) }])
456
146
  }, [
457
- z(u, { class: "f-input__icon" }, {
458
- default: S(() => [
459
- z(T(Ee))
147
+ S(m, { class: "f-input__icon" }, {
148
+ default: I(() => [
149
+ S(p(Se))
460
150
  ]),
461
151
  _: 1
462
152
  }),
463
- oe(h("input", {
153
+ te(z("input", {
464
154
  class: "f-input__text",
465
- "onUpdate:modelValue": f[0] || (f[0] = (p) => t.value = p),
155
+ "onUpdate:modelValue": f[0] || (f[0] = (d) => o.value = d),
466
156
  type: a.type,
467
157
  placeholder: a.placeholder,
468
158
  disabled: a.disabled,
469
- readonly: "readonly" in a ? a.readonly : T(se),
159
+ readonly: "readonly" in a ? a.readonly : p(de),
470
160
  name: a.name,
471
161
  id: a.id,
472
- onInput: n,
473
- onChange: c,
474
- onFocus: d,
475
- onBlur: i
476
- }, null, 40, Je), [
477
- [fe, t.value]
162
+ onInput: s,
163
+ onChange: i,
164
+ onFocus: u,
165
+ onBlur: r
166
+ }, null, 40, Ye), [
167
+ [we, o.value]
478
168
  ])
479
169
  ], 2);
480
170
  };
481
171
  }
482
- }), yo = /* @__PURE__ */ w(Ke, [["__scopeId", "data-v-6c6d7c63"]]), Qe = {
172
+ }), Ke = /* @__PURE__ */ b(Je, [["__scopeId", "data-v-6c6d7c63"]]), Qe = {
483
173
  key: 0,
484
174
  class: "loop cubes"
485
175
  }, Ze = {
486
176
  key: 2,
487
177
  class: "msg"
488
- }, et = /* @__PURE__ */ m({
178
+ }, et = /* @__PURE__ */ g({
489
179
  __name: "FLoading",
490
180
  props: {
491
181
  type: { default: "dots" },
492
182
  text: {},
493
183
  mask: { type: Boolean, default: !1 }
494
184
  },
495
- setup(s) {
496
- const e = s;
497
- return (t, o) => (l(), r("div", {
498
- class: x(["flex-center-col size-full loading-container", { "global-mask": t.mask }])
185
+ setup(n) {
186
+ const e = n;
187
+ return (o, t) => (l(), c("div", {
188
+ class: C(["flex-center-col size-full loading-container", { "global-mask": o.mask }])
499
189
  }, [
500
- t.type === "cubes" ? (l(), r("div", Qe, [
501
- (l(), r(R, null, U(6, (n) => h("div", {
190
+ o.type === "cubes" ? (l(), c("div", Qe, [
191
+ (l(), c(P, null, G(6, (s) => z("div", {
502
192
  class: "item cubes",
503
- key: n
193
+ key: s
504
194
  })), 64))
505
- ])) : (l(), r("div", {
195
+ ])) : (l(), c("div", {
506
196
  key: 1,
507
- class: x(["loader", t.type])
197
+ class: C(["loader", o.type])
508
198
  }, null, 2)),
509
- e.text ? (l(), r("p", Ze, V(e.text), 1)) : b("", !0)
199
+ e.text ? (l(), c("p", Ze, V(e.text), 1)) : y("", !0)
510
200
  ], 2));
511
201
  }
512
- }), wo = /* @__PURE__ */ w(et, [["__scopeId", "data-v-26005e98"]]), tt = ["onMousemove"], ot = {
202
+ }), tt = /* @__PURE__ */ b(et, [["__scopeId", "data-v-20f58a50"]]), ot = ["onMousemove"], st = {
513
203
  key: 0,
514
204
  class: "f-rate__score"
515
- }, nt = /* @__PURE__ */ m({
205
+ }, at = /* @__PURE__ */ g({
516
206
  __name: "FRate",
517
- props: /* @__PURE__ */ G({
207
+ props: /* @__PURE__ */ H({
518
208
  modelValue: {},
519
209
  count: { default: 5 },
520
210
  readonly: { type: Boolean, default: !1 },
@@ -528,120 +218,63 @@ const we = (s, e, t) => {
528
218
  modelValue: { default: 0 },
529
219
  modelModifiers: {}
530
220
  }),
531
- emits: /* @__PURE__ */ G(["change"], ["update:modelValue"]),
532
- setup(s, { emit: e }) {
533
- const t = Z(s, "modelValue"), o = s, n = e, c = A(null), d = _(() => c.value ?? t.value), i = _(
534
- () => o.scoreTemplate.replace("{value}", String(t.value))
535
- ), a = _(
536
- () => o.size === "normal" ? 16 : o.size === "small" ? 12 : 20
537
- ), f = (k) => {
538
- const I = d.value;
539
- return I >= k ? "full" : o.allowHalf && I >= k - 0.5 ? "half" : "empty";
540
- }, u = (k) => f(k) === "full" ? o.voidColor : o.color, p = (k, I) => {
541
- if (!o.readonly)
542
- if (o.allowHalf) {
543
- const L = k.currentTarget, { left: F, width: O } = L.getBoundingClientRect();
544
- c.value = (k.clientX - F) / O < 0.5 ? I - 0.5 : I;
221
+ emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
222
+ setup(n, { emit: e }) {
223
+ const o = Q(n, "modelValue"), t = n, s = e, i = R(null), u = h(() => {
224
+ var w;
225
+ return (w = i.value) != null ? w : o.value;
226
+ }), r = h(
227
+ () => t.scoreTemplate.replace("{value}", String(o.value))
228
+ ), a = h(
229
+ () => t.size === "normal" ? 16 : t.size === "small" ? 12 : 20
230
+ ), f = (w) => {
231
+ const B = u.value;
232
+ return B >= w ? "full" : t.allowHalf && B >= w - 0.5 ? "half" : "empty";
233
+ }, m = (w) => f(w) === "full" ? t.voidColor : t.color, d = (w, B) => {
234
+ if (!t.readonly)
235
+ if (t.allowHalf) {
236
+ const A = w.currentTarget, { left: M, width: E } = A.getBoundingClientRect();
237
+ i.value = (w.clientX - M) / E < 0.5 ? B - 0.5 : B;
545
238
  } else
546
- c.value = I;
547
- }, C = () => {
548
- o.readonly || (c.value = null);
549
- }, M = () => {
550
- if (o.readonly) return;
551
- const k = c.value ?? t.value;
552
- t.value = k, n("change", k);
239
+ i.value = B;
240
+ }, k = () => {
241
+ t.readonly || (i.value = null);
242
+ }, x = () => {
243
+ var B;
244
+ if (t.readonly) return;
245
+ const w = (B = i.value) != null ? B : o.value;
246
+ o.value = w, s("change", w);
553
247
  };
554
- return (k, I) => {
555
- const L = P("f-icon");
556
- return l(), r("div", {
557
- class: x(["f-rate", { "f-rate--readonly": o.readonly }]),
558
- onMouseleave: C
248
+ return (w, B) => {
249
+ const A = O("f-icon");
250
+ return l(), c("div", {
251
+ class: C(["f-rate", { "f-rate--readonly": t.readonly }]),
252
+ onMouseleave: k
559
253
  }, [
560
- (l(!0), r(R, null, U(o.count, (F) => (l(), r("span", {
561
- key: F,
254
+ (l(!0), c(P, null, G(t.count, (M) => (l(), c("span", {
255
+ key: M,
562
256
  class: "f-rate__item",
563
- onMousemove: (O) => p(O, F),
564
- onClick: M
257
+ onMousemove: (E) => d(E, M),
258
+ onClick: x
565
259
  }, [
566
- z(L, {
567
- color: u(F),
568
- size: a.value
260
+ S(A, {
261
+ color: m(M),
262
+ size: p(a)
569
263
  }, {
570
- default: S(() => [
571
- f(F) === "full" ? (l(), D(T(Ye), { key: 0 })) : f(F) === "half" ? (l(), D(T(qe), { key: 1 })) : (l(), D(T(Ge), { key: 2 }))
264
+ default: I(() => [
265
+ f(M) === "full" ? (l(), W(p(Me), { key: 0 })) : f(M) === "half" ? (l(), W(p(Ie), { key: 1 })) : (l(), W(p(Te), { key: 2 }))
572
266
  ]),
573
267
  _: 2
574
268
  }, 1032, ["color", "size"])
575
- ], 40, tt))), 128)),
576
- o.showText ? (l(), r("span", ot, V(i.value), 1)) : b("", !0)
269
+ ], 40, ot))), 128)),
270
+ t.showText ? (l(), c("span", st, V(p(r)), 1)) : y("", !0)
577
271
  ], 34);
578
272
  };
579
273
  }
580
- }), $o = /* @__PURE__ */ w(nt, [["__scopeId", "data-v-58cbc0f6"]]);
581
- function lt(s) {
582
- return ve() ? (me(s), !0) : !1;
583
- }
584
- const st = typeof window < "u" && typeof document < "u";
585
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
586
- const at = Object.prototype.toString, rt = (s) => at.call(s) === "[object Object]";
587
- function ee(s) {
588
- return Array.isArray(s) ? s : [s];
589
- }
590
- function it(s, e, t) {
591
- return te(
592
- s,
593
- e,
594
- {
595
- ...t,
596
- immediate: !0
597
- }
598
- );
599
- }
600
- const ct = st ? window : void 0;
601
- function dt(s) {
602
- var e;
603
- const t = K(s);
604
- return (e = t == null ? void 0 : t.$el) != null ? e : t;
605
- }
606
- function ut(...s) {
607
- const e = [], t = () => {
608
- e.forEach((i) => i()), e.length = 0;
609
- }, o = (i, a, f, u) => (i.addEventListener(a, f, u), () => i.removeEventListener(a, f, u)), n = _(() => {
610
- const i = ee(K(s[0])).filter((a) => a != null);
611
- return i.every((a) => typeof a != "string") ? i : void 0;
612
- }), c = it(
613
- () => {
614
- var i, a;
615
- return [
616
- (a = (i = n.value) == null ? void 0 : i.map((f) => dt(f))) != null ? a : [ct].filter((f) => f != null),
617
- ee(K(n.value ? s[1] : s[0])),
618
- ee(T(n.value ? s[2] : s[1])),
619
- // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
620
- K(n.value ? s[3] : s[2])
621
- ];
622
- },
623
- ([i, a, f, u]) => {
624
- if (t(), !(i != null && i.length) || !(a != null && a.length) || !(f != null && f.length))
625
- return;
626
- const p = rt(u) ? { ...u } : u;
627
- e.push(
628
- ...i.flatMap(
629
- (C) => a.flatMap(
630
- (M) => f.map((k) => o(C, M, k, p))
631
- )
632
- )
633
- );
634
- },
635
- { flush: "post" }
636
- ), d = () => {
637
- c(), t();
638
- };
639
- return lt(t), d;
640
- }
641
- const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }, vt = ["onClick"], mt = {
274
+ }), nt = /* @__PURE__ */ b(at, [["__scopeId", "data-v-d68cd0e3"]]), lt = { class: "f-dropdown-wrapper" }, rt = { class: "f-dropdown-content" }, it = ["onClick"], ct = {
642
275
  key: 0,
643
276
  class: "opt-icon"
644
- }, ht = { class: "opt-label" }, _t = /* @__PURE__ */ m({
277
+ }, dt = { class: "opt-label" }, ut = /* @__PURE__ */ g({
645
278
  __name: "FDropdown",
646
279
  props: {
647
280
  placement: { default: "right-start" },
@@ -651,136 +284,136 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
651
284
  options: { default: () => [] }
652
285
  },
653
286
  emits: ["select"],
654
- setup(s, { emit: e }) {
655
- const t = s, o = e, n = A(!1), c = A(null), d = A(null), i = A(null), a = A(0), f = A(0), u = _(() => {
656
- const [v] = t.placement.split("-"), y = (Array.isArray(t.offset) ? t.offset[0] : t.offset) + 4, $ = { position: "absolute" };
657
- return v === "right" ? ($.width = `${y}px`, $.left = `-${y}px`, $.top = 0, $.bottom = 0) : v === "left" ? ($.width = `${y}px`, $.right = `-${y}px`, $.top = 0, $.bottom = 0) : v === "bottom" ? ($.height = `${y}px`, $.top = `-${y}px`, $.left = 0, $.right = 0) : v === "top" && ($.height = `${y}px`, $.bottom = `-${y}px`, $.left = 0, $.right = 0), $;
658
- }), p = _(() => {
659
- if (!c.value) return {};
660
- const v = c.value, { placement: E } = t, y = Array.isArray(t.offset) ? t.offset[0] : t.offset, [$, N] = E.split("-"), ne = window.innerWidth, le = window.innerHeight, q = f.value || 160, X = a.value || 200;
661
- let H = 0, j = 0, W = $;
662
- $ === "right" ? (j = v.right + y, j + q > ne && (j = v.left - q - y, W = "left")) : $ === "left" ? (j = v.left - q - y, j < 0 && (j = v.right + y, W = "right")) : $ === "bottom" ? (H = v.bottom + y, H + X > le && (H = v.top - X - y, W = "top")) : $ === "top" && (H = v.top - X - y, H < 0 && (H = v.bottom + y, W = "bottom")), W === "top" || W === "bottom" ? (N === "start" ? j = v.left : N === "end" ? j = v.right - q : j = v.left + (v.width - q) / 2, j = Math.max(8, Math.min(j, ne - q - 8))) : (N === "start" ? H = v.top : N === "end" ? H = v.bottom - X : H = v.top + (v.height - X) / 2, H = Math.max(8, Math.min(H, le - X - 8)));
663
- const ue = W === "right" ? "left" : W === "left" ? "right" : N === "start" ? "left" : N === "end" ? "right" : "center", pe = W === "bottom" ? "top" : W === "top" ? "bottom" : N === "start" ? "top" : N === "end" ? "bottom" : "center";
287
+ setup(n, { emit: e }) {
288
+ const o = n, t = e, s = R(!1), i = R(null), u = R(null), r = R(null), a = R(0), f = R(0), m = h(() => {
289
+ const [_] = o.placement.split("-"), $ = (Array.isArray(o.offset) ? o.offset[0] : o.offset) + 4, F = { position: "absolute" };
290
+ return _ === "right" ? (F.width = `${$}px`, F.left = `-${$}px`, F.top = 0, F.bottom = 0) : _ === "left" ? (F.width = `${$}px`, F.right = `-${$}px`, F.top = 0, F.bottom = 0) : _ === "bottom" ? (F.height = `${$}px`, F.top = `-${$}px`, F.left = 0, F.right = 0) : _ === "top" && (F.height = `${$}px`, F.bottom = `-${$}px`, F.left = 0, F.right = 0), F;
291
+ }), d = h(() => {
292
+ if (!i.value) return {};
293
+ const _ = i.value, { placement: N } = o, $ = Array.isArray(o.offset) ? o.offset[0] : o.offset, [F, q] = N.split("-"), ae = window.innerWidth, ne = window.innerHeight, U = f.value || 160, X = a.value || 200;
294
+ let j = 0, D = 0, L = F;
295
+ F === "right" ? (D = _.right + $, D + U > ae && (D = _.left - U - $, L = "left")) : F === "left" ? (D = _.left - U - $, D < 0 && (D = _.right + $, L = "right")) : F === "bottom" ? (j = _.bottom + $, j + X > ne && (j = _.top - X - $, L = "top")) : F === "top" && (j = _.top - X - $, j < 0 && (j = _.bottom + $, L = "bottom")), L === "top" || L === "bottom" ? (q === "start" ? D = _.left : q === "end" ? D = _.right - U : D = _.left + (_.width - U) / 2, D = Math.max(8, Math.min(D, ae - U - 8))) : (q === "start" ? j = _.top : q === "end" ? j = _.bottom - X : j = _.top + (_.height - X) / 2, j = Math.max(8, Math.min(j, ne - X - 8)));
296
+ const he = L === "right" ? "left" : L === "left" ? "right" : q === "start" ? "left" : q === "end" ? "right" : "center", ve = L === "bottom" ? "top" : L === "top" ? "bottom" : q === "start" ? "top" : q === "end" ? "bottom" : "center";
664
297
  return {
665
- top: `${H}px`,
666
- left: `${j}px`,
667
- transformOrigin: `${pe} ${ue}`
298
+ top: `${j}px`,
299
+ left: `${D}px`,
300
+ transformOrigin: `${ve} ${he}`
668
301
  };
669
302
  });
670
- let C = null, M = null;
671
- const k = () => {
672
- C && (clearTimeout(C), C = null);
673
- }, I = (v) => {
674
- t.trigger === "click" && (v.stopPropagation(), n.value ? n.value = !1 : (c.value = d.value.getBoundingClientRect(), n.value = !0));
675
- }, L = () => {
676
- t.trigger === "hover" && (k(), M = setTimeout(() => {
677
- d.value && (c.value = d.value.getBoundingClientRect()), n.value = !0;
303
+ let k = null, x = null;
304
+ const w = () => {
305
+ k && (clearTimeout(k), k = null);
306
+ }, B = (_) => {
307
+ o.trigger === "click" && (_.stopPropagation(), s.value ? s.value = !1 : (i.value = u.value.getBoundingClientRect(), s.value = !0));
308
+ }, A = () => {
309
+ o.trigger === "hover" && (w(), x = setTimeout(() => {
310
+ u.value && (i.value = u.value.getBoundingClientRect()), s.value = !0;
678
311
  }, 400));
679
- }, F = () => {
680
- t.trigger === "hover" && (M && (clearTimeout(M), M = null), C = setTimeout(() => {
681
- n.value = !1;
312
+ }, M = () => {
313
+ o.trigger === "hover" && (x && (clearTimeout(x), x = null), k = setTimeout(() => {
314
+ s.value = !1;
682
315
  }, 400));
683
- }, O = (v) => {
684
- t.trigger !== "click" || !n.value || (n.value = !1);
685
- }, J = (v) => {
686
- v.disabled || (o("select", v.key, v), v.children || (n.value = !1));
316
+ }, E = (_) => {
317
+ o.trigger !== "click" || !s.value || (s.value = !1);
318
+ }, Z = (_) => {
319
+ _.disabled || (t("select", _.key, _), _.children || (s.value = !1));
687
320
  };
688
- return te(n, async (v) => {
689
- var E, y;
690
- v ? (c.value = d.value.getBoundingClientRect(), await re(), a.value = ((E = i.value) == null ? void 0 : E.offsetHeight) || 200, f.value = ((y = i.value) == null ? void 0 : y.offsetWidth) || 160) : (a.value = 0, f.value = 0);
691
- }), ie(() => {
692
- k(), M && clearTimeout(M);
693
- }), ut(window, "click", O), (v, E) => (l(), r("div", pt, [
694
- h("div", {
321
+ return ee(s, (_) => J(null, null, function* () {
322
+ var N, $;
323
+ _ ? (i.value = u.value.getBoundingClientRect(), yield pe(), a.value = ((N = r.value) == null ? void 0 : N.offsetHeight) || 200, f.value = (($ = r.value) == null ? void 0 : $.offsetWidth) || 160) : (a.value = 0, f.value = 0);
324
+ })), oe(() => {
325
+ w(), x && clearTimeout(x);
326
+ }), De(window, "click", E), (_, N) => (l(), c("div", lt, [
327
+ z("div", {
695
328
  ref_key: "triggerRef",
696
- ref: d,
329
+ ref: u,
697
330
  class: "f-dropdown-trigger-wrapper",
698
- onMouseenter: L,
699
- onMouseleave: F,
700
- onClick: I
331
+ onMouseenter: A,
332
+ onMouseleave: M,
333
+ onClick: B
701
334
  }, [
702
- g(v.$slots, "default", {}, void 0, !0)
335
+ v(_.$slots, "default", {}, void 0, !0)
703
336
  ], 544),
704
- (l(), D(ce, { to: "body" }, [
705
- z(Q, { name: "f-dropdown-motion" }, {
706
- default: S(() => [
707
- n.value ? (l(), r("div", {
337
+ (l(), W(fe, { to: "body" }, [
338
+ S(K, { name: "f-dropdown-motion" }, {
339
+ default: I(() => [
340
+ p(s) ? (l(), c("div", {
708
341
  key: 0,
709
342
  ref_key: "dropdownRef",
710
- ref: i,
343
+ ref: r,
711
344
  class: "f-dropdown-item",
712
- style: B([p.value, { zIndex: v.zIndex }]),
713
- onMouseenter: k,
714
- onMouseleave: F,
715
- onClick: E[0] || (E[0] = de(() => {
345
+ style: T([p(d), { zIndex: _.zIndex }]),
346
+ onMouseenter: w,
347
+ onMouseleave: M,
348
+ onClick: N[0] || (N[0] = se(() => {
716
349
  }, ["stop"]))
717
350
  }, [
718
- v.trigger === "hover" ? (l(), r("div", {
351
+ _.trigger === "hover" ? (l(), c("div", {
719
352
  key: 0,
720
353
  class: "f-dropdown-bridge",
721
- style: B(u.value)
722
- }, null, 4)) : b("", !0),
723
- h("div", ft, [
724
- v.options && v.options.length > 0 ? (l(!0), r(R, { key: 0 }, U(v.options, (y) => (l(), r("div", {
725
- key: y.key,
726
- class: x(["f-dropdown-option", { "is-disabled": y.disabled }]),
727
- onClick: ($) => J(y)
354
+ style: T(p(m))
355
+ }, null, 4)) : y("", !0),
356
+ z("div", rt, [
357
+ _.options && _.options.length > 0 ? (l(!0), c(P, { key: 0 }, G(_.options, ($) => (l(), c("div", {
358
+ key: $.key,
359
+ class: C(["f-dropdown-option", { "is-disabled": $.disabled }]),
360
+ onClick: (F) => Z($)
728
361
  }, [
729
- y.icon ? (l(), r("span", mt, [
730
- (l(), D(Y(y.icon)))
731
- ])) : b("", !0),
732
- h("span", ht, V(y.label), 1)
733
- ], 10, vt))), 128)) : g(v.$slots, "content", { key: 1 }, void 0, !0)
362
+ $.icon ? (l(), c("span", ct, [
363
+ (l(), W(Y($.icon)))
364
+ ])) : y("", !0),
365
+ z("span", dt, V($.label), 1)
366
+ ], 10, it))), 128)) : v(_.$slots, "content", { key: 1 }, void 0, !0)
734
367
  ])
735
- ], 36)) : b("", !0)
368
+ ], 36)) : y("", !0)
736
369
  ]),
737
370
  _: 3
738
371
  })
739
372
  ]))
740
373
  ]));
741
374
  }
742
- }), bo = /* @__PURE__ */ w(_t, [["__scopeId", "data-v-73eb3486"]]), gt = /* @__PURE__ */ m({
375
+ }), pt = /* @__PURE__ */ b(ut, [["__scopeId", "data-v-addb3a3b"]]), ft = /* @__PURE__ */ g({
743
376
  __name: "FSelect",
744
- props: /* @__PURE__ */ G({
377
+ props: /* @__PURE__ */ H({
745
378
  options: {},
746
379
  placeholder: {}
747
380
  }, {
748
381
  modelValue: {},
749
382
  modelModifiers: {}
750
383
  }),
751
- emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
752
- setup(s, { emit: e }) {
753
- const t = s, o = e, n = Z(s, "modelValue"), c = A(!1), d = _(
384
+ emits: /* @__PURE__ */ H(["select"], ["update:modelValue"]),
385
+ setup(n, { emit: e }) {
386
+ const o = n, t = e, s = Q(n, "modelValue"), i = R(!1), u = h(
754
387
  () => {
755
- var u;
756
- return ((u = t.options.find((p) => p.key === n.value)) == null ? void 0 : u.label) ?? t.placeholder ?? "请选择";
388
+ var m, d, k;
389
+ return (k = (m = o.options.find((x) => x.key === s.value)) == null ? void 0 : m.label) != null ? k : (d = o.placeholder) != null ? d : "请选择";
757
390
  }
758
- ), i = _(() => n.value !== void 0 && n.value !== ""), a = (u, p) => {
759
- n.value = u, o("select", u, p), c.value = !1;
760
- }, f = (u) => {
761
- c.value = u;
391
+ ), r = h(() => s.value !== void 0 && s.value !== ""), a = (m, d) => {
392
+ s.value = m, t("select", m, d), i.value = !1;
393
+ }, f = (m) => {
394
+ i.value = m;
762
395
  };
763
- return (u, p) => {
764
- const C = P("f-icon"), M = P("f-dropdown");
765
- return l(), D(M, {
766
- options: u.options,
396
+ return (m, d) => {
397
+ const k = O("f-icon"), x = O("f-dropdown");
398
+ return l(), W(x, {
399
+ options: m.options,
767
400
  trigger: "click",
768
401
  onSelect: a,
769
- onShow: p[0] || (p[0] = (k) => f(!0)),
770
- onHide: p[1] || (p[1] = (k) => f(!1)),
402
+ onShow: d[0] || (d[0] = (w) => f(!0)),
403
+ onHide: d[1] || (d[1] = (w) => f(!1)),
771
404
  placement: "bottom",
772
405
  offset: 4
773
406
  }, {
774
- default: S(() => [
775
- h("div", {
776
- class: x(["f-select", { "is-active": i.value, "is-open": c.value }])
407
+ default: I(() => [
408
+ z("div", {
409
+ class: C(["f-select", { "is-active": p(r), "is-open": p(i) }])
777
410
  }, [
778
- h("span", {
779
- class: x(["f-select__label", { "is-placeholder": !i.value }])
780
- }, V(d.value), 3),
781
- z(C, { class: "f-select__arrow" }, {
782
- default: S(() => [
783
- z(T(Te))
411
+ z("span", {
412
+ class: C(["f-select__label", { "is-placeholder": !p(r) }])
413
+ }, V(p(u)), 3),
414
+ S(k, { class: "f-select__arrow" }, {
415
+ default: I(() => [
416
+ S(p(Be))
784
417
  ]),
785
418
  _: 1
786
419
  })
@@ -790,12 +423,12 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
790
423
  }, 8, ["options"]);
791
424
  };
792
425
  }
793
- }), ko = /* @__PURE__ */ w(gt, [["__scopeId", "data-v-0a611203"]]), yt = { class: "f-pagination" }, wt = { class: "f-pagination__list" }, $t = {
426
+ }), mt = /* @__PURE__ */ b(ft, [["__scopeId", "data-v-25e7d03d"]]), _t = { class: "f-pagination" }, ht = { class: "f-pagination__list" }, vt = {
794
427
  key: 0,
795
428
  class: "page-btn ellipsis"
796
- }, bt = ["onClick"], kt = /* @__PURE__ */ m({
429
+ }, gt = ["onClick"], bt = /* @__PURE__ */ g({
797
430
  __name: "FPagination",
798
- props: /* @__PURE__ */ G({
431
+ props: /* @__PURE__ */ H({
799
432
  total: {},
800
433
  pageSize: { default: 10 },
801
434
  hideOnSingle: { type: Boolean }
@@ -803,51 +436,51 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
803
436
  modelValue: { default: 1 },
804
437
  modelModifiers: {}
805
438
  }),
806
- emits: /* @__PURE__ */ G(["update:currentPage"], ["update:modelValue"]),
807
- setup(s, { emit: e }) {
808
- const t = s, o = Z(s, "modelValue"), n = _(() => Math.ceil(t.total / t.pageSize) || 1), c = _(() => {
809
- const i = n.value, a = o.value;
810
- return !i || i <= 0 ? [] : i <= 7 ? Array.from({ length: i }, (f, u) => u + 1) : a <= 4 ? [1, 2, 3, 4, 5, "...", i] : a >= i - 3 ? [1, "...", i - 4, i - 3, i - 2, i - 1, i] : [1, "...", a - 1, a, a + 1, "...", i];
811
- }), d = (i) => {
812
- typeof i == "number" && (i < 1 || i > n.value || i === o.value || (o.value = i));
439
+ emits: /* @__PURE__ */ H(["update:currentPage"], ["update:modelValue"]),
440
+ setup(n, { emit: e }) {
441
+ const o = n, t = Q(n, "modelValue"), s = h(() => Math.ceil(o.total / o.pageSize) || 1), i = h(() => {
442
+ const r = s.value, a = t.value;
443
+ return !r || r <= 0 ? [] : r <= 7 ? Array.from({ length: r }, (f, m) => m + 1) : a <= 4 ? [1, 2, 3, 4, 5, "...", r] : a >= r - 3 ? [1, "...", r - 4, r - 3, r - 2, r - 1, r] : [1, "...", a - 1, a, a + 1, "...", r];
444
+ }), u = (r) => {
445
+ typeof r == "number" && (r < 1 || r > s.value || r === t.value || (t.value = r));
813
446
  };
814
- return (i, a) => {
815
- const f = P("f-icon");
816
- return l(), r("div", yt, [
817
- h("button", {
818
- class: x(["page-btn", { disabled: o.value === 1 }]),
819
- onClick: a[0] || (a[0] = (u) => d(o.value - 1))
447
+ return (r, a) => {
448
+ const f = O("f-icon");
449
+ return l(), c("div", _t, [
450
+ z("button", {
451
+ class: C(["page-btn", { disabled: t.value === 1 }]),
452
+ onClick: a[0] || (a[0] = (m) => u(t.value - 1))
820
453
  }, [
821
- z(f, null, {
822
- default: S(() => [
823
- z(T(Se))
454
+ S(f, null, {
455
+ default: I(() => [
456
+ S(p(Ve))
824
457
  ]),
825
458
  _: 1
826
459
  })
827
460
  ], 2),
828
- h("ul", wt, [
829
- (l(!0), r(R, null, U(c.value, (u, p) => (l(), r(R, { key: p }, [
830
- u === "..." ? (l(), r("li", $t, [
831
- z(f, null, {
832
- default: S(() => [
833
- z(T(je))
461
+ z("ul", ht, [
462
+ (l(!0), c(P, null, G(p(i), (m, d) => (l(), c(P, { key: d }, [
463
+ m === "..." ? (l(), c("li", vt, [
464
+ S(f, null, {
465
+ default: I(() => [
466
+ S(p(Re))
834
467
  ]),
835
468
  _: 1
836
469
  })
837
- ])) : (l(), r("li", {
470
+ ])) : (l(), c("li", {
838
471
  key: 1,
839
- class: x(["page-btn", { active: o.value === u }]),
840
- onClick: (C) => d(u)
841
- }, V(u), 11, bt))
472
+ class: C(["page-btn", { active: t.value === m }]),
473
+ onClick: (k) => u(m)
474
+ }, V(m), 11, gt))
842
475
  ], 64))), 128))
843
476
  ]),
844
- h("button", {
845
- class: x(["page-btn", { disabled: o.value === n.value }]),
846
- onClick: a[1] || (a[1] = (u) => d(o.value + 1))
477
+ z("button", {
478
+ class: C(["page-btn", { disabled: t.value === p(s) }]),
479
+ onClick: a[1] || (a[1] = (m) => u(t.value + 1))
847
480
  }, [
848
- z(f, null, {
849
- default: S(() => [
850
- z(T(Le))
481
+ S(f, null, {
482
+ default: I(() => [
483
+ S(p(Ae))
851
484
  ]),
852
485
  _: 1
853
486
  })
@@ -855,87 +488,87 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
855
488
  ]);
856
489
  };
857
490
  }
858
- }), xo = /* @__PURE__ */ w(kt, [["__scopeId", "data-v-33bfb5be"]]), xt = {
491
+ }), yt = /* @__PURE__ */ b(bt, [["__scopeId", "data-v-e58f1ac9"]]), $t = {
859
492
  key: 0,
860
493
  class: "f-card__header"
861
- }, Ct = {
494
+ }, kt = {
862
495
  key: 0,
863
496
  class: "f-card__header-extra"
864
- }, Ft = {
497
+ }, wt = {
865
498
  key: 1,
866
499
  class: "f-card__cover"
867
- }, zt = {
500
+ }, Ft = {
868
501
  key: 2,
869
502
  class: "f-card__body"
870
- }, Mt = {
503
+ }, zt = {
871
504
  key: 3,
872
505
  class: "f-card__footer"
873
- }, St = {
506
+ }, Ct = {
874
507
  key: 0,
875
508
  class: "f-card__header"
876
- }, Bt = {
509
+ }, xt = {
877
510
  key: 0,
878
511
  class: "f-card__header-extra"
879
- }, Tt = {
512
+ }, St = {
880
513
  key: 1,
881
514
  class: "f-card__cover"
882
- }, It = { class: "f-card__content" }, Lt = {
515
+ }, Mt = { class: "f-card__content" }, It = {
883
516
  key: 0,
884
517
  class: "f-card__body"
885
- }, At = {
518
+ }, Tt = {
886
519
  key: 1,
887
520
  class: "f-card__footer"
888
- }, Vt = /* @__PURE__ */ m({
521
+ }, Bt = /* @__PURE__ */ g({
889
522
  __name: "FCard",
890
523
  props: {
891
524
  hoverable: { type: Boolean, default: !0 },
892
525
  direction: { default: "vertical" }
893
526
  },
894
- setup(s) {
895
- return (e, t) => (l(), r("div", {
896
- class: x(["f-card", [`f-card--${e.direction}`, { "is-hoverable": e.hoverable }]])
527
+ setup(n) {
528
+ return (e, o) => (l(), c("div", {
529
+ class: C(["f-card", [`f-card--${e.direction}`, { "is-hoverable": e.hoverable }]])
897
530
  }, [
898
- e.direction === "vertical" ? (l(), r(R, { key: 0 }, [
899
- e.$slots.header || e.$slots["header-extra"] ? (l(), r("div", xt, [
900
- g(e.$slots, "header", {}, void 0, !0),
901
- e.$slots["header-extra"] ? (l(), r("div", Ct, [
902
- g(e.$slots, "header-extra", {}, void 0, !0)
903
- ])) : b("", !0)
904
- ])) : b("", !0),
905
- e.$slots.cover ? (l(), r("div", Ft, [
906
- g(e.$slots, "cover", {}, void 0, !0)
907
- ])) : b("", !0),
908
- e.$slots.default ? (l(), r("div", zt, [
909
- g(e.$slots, "default", {}, void 0, !0)
910
- ])) : b("", !0),
911
- e.$slots.footer ? (l(), r("div", Mt, [
912
- g(e.$slots, "footer", {}, void 0, !0)
913
- ])) : b("", !0)
914
- ], 64)) : (l(), r(R, { key: 1 }, [
915
- e.$slots.header || e.$slots["header-extra"] ? (l(), r("div", St, [
916
- g(e.$slots, "header", {}, void 0, !0),
917
- e.$slots["header-extra"] ? (l(), r("div", Bt, [
918
- g(e.$slots, "header-extra", {}, void 0, !0)
919
- ])) : b("", !0)
920
- ])) : b("", !0),
921
- e.$slots.cover ? (l(), r("div", Tt, [
922
- g(e.$slots, "cover", {}, void 0, !0)
923
- ])) : b("", !0),
924
- h("div", It, [
925
- e.$slots.default ? (l(), r("div", Lt, [
926
- g(e.$slots, "default", {}, void 0, !0)
927
- ])) : b("", !0),
928
- e.$slots.footer ? (l(), r("div", At, [
929
- g(e.$slots, "footer", {}, void 0, !0)
930
- ])) : b("", !0)
531
+ e.direction === "vertical" ? (l(), c(P, { key: 0 }, [
532
+ e.$slots.header || e.$slots["header-extra"] ? (l(), c("div", $t, [
533
+ v(e.$slots, "header", {}, void 0, !0),
534
+ e.$slots["header-extra"] ? (l(), c("div", kt, [
535
+ v(e.$slots, "header-extra", {}, void 0, !0)
536
+ ])) : y("", !0)
537
+ ])) : y("", !0),
538
+ e.$slots.cover ? (l(), c("div", wt, [
539
+ v(e.$slots, "cover", {}, void 0, !0)
540
+ ])) : y("", !0),
541
+ e.$slots.default ? (l(), c("div", Ft, [
542
+ v(e.$slots, "default", {}, void 0, !0)
543
+ ])) : y("", !0),
544
+ e.$slots.footer ? (l(), c("div", zt, [
545
+ v(e.$slots, "footer", {}, void 0, !0)
546
+ ])) : y("", !0)
547
+ ], 64)) : (l(), c(P, { key: 1 }, [
548
+ e.$slots.header || e.$slots["header-extra"] ? (l(), c("div", Ct, [
549
+ v(e.$slots, "header", {}, void 0, !0),
550
+ e.$slots["header-extra"] ? (l(), c("div", xt, [
551
+ v(e.$slots, "header-extra", {}, void 0, !0)
552
+ ])) : y("", !0)
553
+ ])) : y("", !0),
554
+ e.$slots.cover ? (l(), c("div", St, [
555
+ v(e.$slots, "cover", {}, void 0, !0)
556
+ ])) : y("", !0),
557
+ z("div", Mt, [
558
+ e.$slots.default ? (l(), c("div", It, [
559
+ v(e.$slots, "default", {}, void 0, !0)
560
+ ])) : y("", !0),
561
+ e.$slots.footer ? (l(), c("div", Tt, [
562
+ v(e.$slots, "footer", {}, void 0, !0)
563
+ ])) : y("", !0)
931
564
  ])
932
565
  ], 64))
933
566
  ], 2));
934
567
  }
935
- }), Co = /* @__PURE__ */ w(Vt, [["__scopeId", "data-v-a66fa373"]]), Rt = {
568
+ }), Vt = /* @__PURE__ */ b(Bt, [["__scopeId", "data-v-a66fa373"]]), Rt = {
936
569
  key: 0,
937
570
  class: "f-tag__dot"
938
- }, Dt = /* @__PURE__ */ m({
571
+ }, At = /* @__PURE__ */ g({
939
572
  __name: "FTag",
940
573
  props: {
941
574
  color: {},
@@ -945,35 +578,36 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
945
578
  size: { default: "normal" }
946
579
  },
947
580
  emits: ["close"],
948
- setup(s, { emit: e }) {
949
- const t = e, o = A(!1);
950
- return (n, c) => {
951
- const d = P("f-icon");
952
- return l(), r("span", {
953
- class: x(["f-tag", [
954
- `f-tag--${n.type ?? "round"}`,
955
- `f-tag--${n.effect ?? "light"}`,
956
- n.color ?? "default"
581
+ setup(n, { emit: e }) {
582
+ const o = e, t = R(!1);
583
+ return (s, i) => {
584
+ var r, a, f;
585
+ const u = O("f-icon");
586
+ return l(), c("span", {
587
+ class: C(["f-tag", [
588
+ `f-tag--${(r = s.type) != null ? r : "round"}`,
589
+ `f-tag--${(a = s.effect) != null ? a : "light"}`,
590
+ (f = s.color) != null ? f : "default"
957
591
  ]]),
958
- onMouseenter: c[1] || (c[1] = (i) => o.value = !0),
959
- onMouseleave: c[2] || (c[2] = (i) => o.value = !1)
592
+ onMouseenter: i[1] || (i[1] = (m) => t.value = !0),
593
+ onMouseleave: i[2] || (i[2] = (m) => t.value = !1)
960
594
  }, [
961
- n.type === "dot" ? (l(), r("span", Rt)) : b("", !0),
962
- g(n.$slots, "default", {}, void 0, !0),
963
- n.closable ? (l(), D(d, {
595
+ s.type === "dot" ? (l(), c("span", Rt)) : y("", !0),
596
+ v(s.$slots, "default", {}, void 0, !0),
597
+ s.closable ? (l(), W(u, {
964
598
  key: 1,
965
599
  class: "f-tag__close",
966
- onClick: c[0] || (c[0] = de((i) => t("close"), ["stop"]))
600
+ onClick: i[0] || (i[0] = se((m) => o("close"), ["stop"]))
967
601
  }, {
968
- default: S(() => [
969
- (l(), D(Y(o.value ? T(De) : T(Ve))))
602
+ default: I(() => [
603
+ (l(), W(Y(p(t) ? p(Pe) : p(We))))
970
604
  ]),
971
605
  _: 1
972
- })) : b("", !0)
606
+ })) : y("", !0)
973
607
  ], 34);
974
608
  };
975
609
  }
976
- }), Fo = /* @__PURE__ */ w(Dt, [["__scopeId", "data-v-6667c961"]]), Ht = /* @__PURE__ */ m({
610
+ }), Pt = /* @__PURE__ */ b(At, [["__scopeId", "data-v-9f7974a7"]]), Wt = /* @__PURE__ */ g({
977
611
  __name: "FTooltip",
978
612
  props: {
979
613
  content: {},
@@ -983,77 +617,77 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
983
617
  offset: { default: 6 },
984
618
  maxWidth: { default: 240 }
985
619
  },
986
- setup(s) {
987
- const e = s, t = A(null), o = A(null), n = A(!1), c = A({ top: 0, left: 0 });
988
- let d = null;
989
- const i = () => {
990
- e.disabled || (d = setTimeout(() => {
991
- n.value = !0, re(f);
620
+ setup(n) {
621
+ const e = n, o = R(null), t = R(null), s = R(!1), i = R({ top: 0, left: 0 });
622
+ let u = null;
623
+ const r = () => {
624
+ e.disabled || (u = setTimeout(() => {
625
+ s.value = !0, pe(f);
992
626
  }, e.delay));
993
627
  }, a = () => {
994
- d && clearTimeout(d), n.value = !1;
628
+ u && clearTimeout(u), s.value = !1;
995
629
  }, f = () => {
996
- var J;
997
- if (!o.value) return;
998
- const u = ((J = t.value) == null ? void 0 : J.firstElementChild) ?? t.value;
999
- if (!u) return;
1000
- const p = u.getBoundingClientRect(), C = o.value.getBoundingClientRect(), M = e.offset, [k, I] = e.placement.split("-");
1001
- let L = 0, F = 0;
1002
- switch (k) {
630
+ var Z, _;
631
+ if (!t.value) return;
632
+ const m = (_ = (Z = o.value) == null ? void 0 : Z.firstElementChild) != null ? _ : o.value;
633
+ if (!m) return;
634
+ const d = m.getBoundingClientRect(), k = t.value.getBoundingClientRect(), x = e.offset, [w, B] = e.placement.split("-");
635
+ let A = 0, M = 0;
636
+ switch (w) {
1003
637
  case "top":
1004
- L = p.top - C.height - M;
638
+ A = d.top - k.height - x;
1005
639
  break;
1006
640
  case "bottom":
1007
- L = p.bottom + M;
641
+ A = d.bottom + x;
1008
642
  break;
1009
643
  case "left":
1010
- F = p.left - C.width - M;
644
+ M = d.left - k.width - x;
1011
645
  break;
1012
646
  case "right":
1013
- F = p.right + M;
647
+ M = d.right + x;
1014
648
  break;
1015
649
  }
1016
- k === "top" || k === "bottom" ? I === "start" ? F = p.left : I === "end" ? F = p.right - C.width : F = p.left + (p.width - C.width) / 2 : I === "start" ? L = p.top : I === "end" ? L = p.bottom - C.height : L = p.top + (p.height - C.height) / 2;
1017
- const O = 8;
1018
- F = Math.max(O, Math.min(F, window.innerWidth - C.width - O)), L = Math.max(O, Math.min(L, window.innerHeight - C.height - O)), c.value = { top: L + window.scrollY, left: F + window.scrollX };
650
+ w === "top" || w === "bottom" ? B === "start" ? M = d.left : B === "end" ? M = d.right - k.width : M = d.left + (d.width - k.width) / 2 : B === "start" ? A = d.top : B === "end" ? A = d.bottom - k.height : A = d.top + (d.height - k.height) / 2;
651
+ const E = 8;
652
+ M = Math.max(E, Math.min(M, window.innerWidth - k.width - E)), A = Math.max(E, Math.min(A, window.innerHeight - k.height - E)), i.value = { top: A + window.scrollY, left: M + window.scrollX };
1019
653
  };
1020
- return ie(a), (u, p) => (l(), r("div", {
654
+ return oe(a), (m, d) => (l(), c("div", {
1021
655
  class: "f-tooltip",
1022
656
  ref_key: "triggerRef",
1023
- ref: t,
1024
- onMouseenter: i,
657
+ ref: o,
658
+ onMouseenter: r,
1025
659
  onMouseleave: a
1026
660
  }, [
1027
- g(u.$slots, "default", {}, void 0, !0),
1028
- (l(), D(ce, { to: "body" }, [
1029
- z(Q, { name: "f-tooltip" }, {
1030
- default: S(() => [
1031
- n.value && (u.content || u.$slots.content) ? (l(), r("div", {
661
+ v(m.$slots, "default", {}, void 0, !0),
662
+ (l(), W(fe, { to: "body" }, [
663
+ S(K, { name: "f-tooltip" }, {
664
+ default: I(() => [
665
+ p(s) && (m.content || m.$slots.content) ? (l(), c("div", {
1032
666
  key: 0,
1033
667
  ref_key: "tooltipRef",
1034
- ref: o,
1035
- class: x(["f-tooltip-wrapper", `is-${u.placement.split("-")[0]}`]),
1036
- style: B({
1037
- top: `${c.value.top}px`,
1038
- left: `${c.value.left}px`,
1039
- maxWidth: `${u.maxWidth}px`
668
+ ref: t,
669
+ class: C(["f-tooltip-wrapper", `is-${m.placement.split("-")[0]}`]),
670
+ style: T({
671
+ top: `${p(i).top}px`,
672
+ left: `${p(i).left}px`,
673
+ maxWidth: `${m.maxWidth}px`
1040
674
  })
1041
675
  }, [
1042
- g(u.$slots, "content", {}, () => [
1043
- he(V(u.content), 1)
676
+ v(m.$slots, "content", {}, () => [
677
+ me(V(m.content), 1)
1044
678
  ], !0),
1045
- p[0] || (p[0] = h("span", { class: "f-tooltip-arrow" }, null, -1))
1046
- ], 6)) : b("", !0)
679
+ d[0] || (d[0] = z("span", { class: "f-tooltip-arrow" }, null, -1))
680
+ ], 6)) : y("", !0)
1047
681
  ]),
1048
682
  _: 3
1049
683
  })
1050
684
  ]))
1051
685
  ], 544));
1052
686
  }
1053
- }), zo = /* @__PURE__ */ w(Ht, [["__scopeId", "data-v-8d9ae5bb"]]), jt = { class: "f-progress" }, Ot = {
687
+ }), jt = /* @__PURE__ */ b(Wt, [["__scopeId", "data-v-be9acca7"]]), Dt = { class: "f-progress" }, Et = {
1054
688
  key: 0,
1055
689
  class: "f-progress__text"
1056
- }, Wt = /* @__PURE__ */ m({
690
+ }, Lt = /* @__PURE__ */ g({
1057
691
  __name: "FProgress",
1058
692
  props: {
1059
693
  percent: {},
@@ -1061,25 +695,25 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1061
695
  showText: { type: Boolean, default: !1 },
1062
696
  height: { default: 5 }
1063
697
  },
1064
- setup(s) {
1065
- const e = s, t = _(() => Math.min(100, Math.max(0, e.percent)));
1066
- return (o, n) => (l(), r("div", jt, [
1067
- h("div", {
698
+ setup(n) {
699
+ const e = n, o = h(() => Math.min(100, Math.max(0, e.percent)));
700
+ return (t, s) => (l(), c("div", Dt, [
701
+ z("div", {
1068
702
  class: "f-progress__track",
1069
- style: B({ height: `${o.height}px` })
703
+ style: T({ height: `${t.height}px` })
1070
704
  }, [
1071
- h("div", {
705
+ z("div", {
1072
706
  class: "f-progress__fill",
1073
- style: B({
1074
- width: `${t.value}%`,
1075
- background: o.color
707
+ style: T({
708
+ width: `${p(o)}%`,
709
+ background: t.color
1076
710
  })
1077
711
  }, null, 4)
1078
712
  ], 4),
1079
- o.showText ? (l(), r("span", Ot, V(t.value) + "%", 1)) : b("", !0)
713
+ t.showText ? (l(), c("span", Et, V(p(o)) + "%", 1)) : y("", !0)
1080
714
  ]));
1081
715
  }
1082
- }), Mo = /* @__PURE__ */ w(Wt, [["__scopeId", "data-v-06d85e64"]]), Pt = { class: "f-tabs__nav-container" }, Et = { class: "f-tabs__nav" }, Nt = ["onClick"], Gt = { class: "f-tabs__label" }, Ut = /* @__PURE__ */ m({
716
+ }), Ot = /* @__PURE__ */ b(Lt, [["__scopeId", "data-v-c2164d6e"]]), Ht = { class: "f-tabs__nav-container" }, Nt = { class: "f-tabs__nav" }, qt = ["onClick"], Gt = { class: "f-tabs__label" }, Ut = /* @__PURE__ */ g({
1083
717
  __name: "FTabs",
1084
718
  props: {
1085
719
  tabs: {},
@@ -1087,92 +721,93 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1087
721
  type: { default: "line" }
1088
722
  },
1089
723
  emits: ["update:active", "change"],
1090
- setup(s, { emit: e }) {
1091
- const t = s, o = e, n = _({
724
+ setup(n, { emit: e }) {
725
+ const o = n, t = e, s = h({
1092
726
  get: () => {
1093
- if (t.active && t.tabs.some((i) => i.name === t.active && !i.disabled))
1094
- return t.active;
1095
- const d = t.tabs.find((i) => !i.disabled);
1096
- return (d == null ? void 0 : d.name) ?? "";
727
+ var r;
728
+ if (o.active && o.tabs.some((a) => a.name === o.active && !a.disabled))
729
+ return o.active;
730
+ const u = o.tabs.find((a) => !a.disabled);
731
+ return (r = u == null ? void 0 : u.name) != null ? r : "";
1097
732
  },
1098
- set: (d) => {
1099
- o("update:active", d), o("change", d);
733
+ set: (u) => {
734
+ t("update:active", u), t("change", u);
1100
735
  }
1101
- }), c = (d, i) => {
1102
- i || (n.value = d);
736
+ }), i = (u, r) => {
737
+ r || (s.value = u);
1103
738
  };
1104
- return (d, i) => (l(), r("div", {
1105
- class: x(["f-tabs", [`f-tabs--${d.type}`]])
739
+ return (u, r) => (l(), c("div", {
740
+ class: C(["f-tabs", [`f-tabs--${u.type}`]])
1106
741
  }, [
1107
- h("div", Pt, [
1108
- h("div", Et, [
1109
- (l(!0), r(R, null, U(d.tabs, (a) => (l(), r("div", {
742
+ z("div", Ht, [
743
+ z("div", Nt, [
744
+ (l(!0), c(P, null, G(u.tabs, (a) => (l(), c("div", {
1110
745
  key: a.name,
1111
- class: x(["f-tabs__tab", {
1112
- active: n.value === a.name,
746
+ class: C(["f-tabs__tab", {
747
+ active: p(s) === a.name,
1113
748
  disabled: a.disabled
1114
749
  }]),
1115
- onClick: (f) => c(a.name, a.disabled)
750
+ onClick: (f) => i(a.name, a.disabled)
1116
751
  }, [
1117
- h("span", Gt, V(a.label), 1)
1118
- ], 10, Nt))), 128))
752
+ z("span", Gt, V(a.label), 1)
753
+ ], 10, qt))), 128))
1119
754
  ])
1120
755
  ]),
1121
- (l(!0), r(R, null, U(d.tabs, (a) => oe((l(), r("div", {
756
+ (l(!0), c(P, null, G(u.tabs, (a) => te((l(), c("div", {
1122
757
  key: a.name,
1123
758
  class: "f-tabs__panel"
1124
759
  }, [
1125
- g(d.$slots, a.name, {}, void 0, !0)
760
+ v(u.$slots, a.name, {}, void 0, !0)
1126
761
  ])), [
1127
- [ae, n.value === a.name]
762
+ [ue, p(s) === a.name]
1128
763
  ])), 128))
1129
764
  ], 2));
1130
765
  }
1131
- }), So = /* @__PURE__ */ w(Ut, [["__scopeId", "data-v-00231637"]]), qt = {
766
+ }), Xt = /* @__PURE__ */ b(Ut, [["__scopeId", "data-v-268fc654"]]), Yt = {
1132
767
  class: "f-breadcrumb__current",
1133
768
  "aria-current": "page"
1134
- }, Xt = ["href"], Yt = {
769
+ }, Jt = ["href"], Kt = {
1135
770
  key: 3,
1136
771
  class: "f-breadcrumb__text"
1137
- }, Jt = /* @__PURE__ */ m({
772
+ }, Qt = /* @__PURE__ */ g({
1138
773
  __name: "FBreadcrumb",
1139
774
  props: {
1140
775
  items: { default: () => [] },
1141
776
  separator: { default: "/" },
1142
777
  animated: { type: Boolean, default: !1 }
1143
778
  },
1144
- setup(s) {
1145
- return (e, t) => (l(), r("nav", {
1146
- class: x(["f-breadcrumb", { "f-breadcrumb--animated": e.animated }]),
779
+ setup(n) {
780
+ return (e, o) => (l(), c("nav", {
781
+ class: C(["f-breadcrumb", { "f-breadcrumb--animated": e.animated }]),
1147
782
  "aria-label": "breadcrumb"
1148
783
  }, [
1149
- z(_e, { name: "breadcrumb" }, {
1150
- default: S(() => [
1151
- (l(!0), r(R, null, U(e.items, (o, n) => (l(), r(R, {
1152
- key: o.label
784
+ S(Fe, { name: "breadcrumb" }, {
785
+ default: I(() => [
786
+ (l(!0), c(P, null, G(e.items, (t, s) => (l(), c(P, {
787
+ key: t.label
1153
788
  }, [
1154
- n > 0 ? (l(), r("span", {
1155
- key: `sep-${o.label}`,
789
+ s > 0 ? (l(), c("span", {
790
+ key: `sep-${t.label}`,
1156
791
  class: "f-breadcrumb__sep",
1157
792
  "aria-hidden": "true"
1158
- }, V(e.separator), 1)) : b("", !0),
1159
- n === e.items.length - 1 ? g(e.$slots, "default", {
793
+ }, V(e.separator), 1)) : y("", !0),
794
+ s === e.items.length - 1 ? v(e.$slots, "default", {
1160
795
  key: 1,
1161
- item: o
796
+ item: t
1162
797
  }, () => [
1163
- h("span", qt, V(o.label), 1)
1164
- ], !0) : o.href ? (l(), r("a", {
798
+ z("span", Yt, V(t.label), 1)
799
+ ], !0) : t.href ? (l(), c("a", {
1165
800
  key: 2,
1166
- href: o.href,
801
+ href: t.href,
1167
802
  class: "f-breadcrumb__link"
1168
- }, V(o.label), 9, Xt)) : (l(), r("span", Yt, V(o.label), 1))
803
+ }, V(t.label), 9, Jt)) : (l(), c("span", Kt, V(t.label), 1))
1169
804
  ], 64))), 128))
1170
805
  ]),
1171
806
  _: 3
1172
807
  })
1173
808
  ], 2));
1174
809
  }
1175
- }), Bo = /* @__PURE__ */ w(Jt, [["__scopeId", "data-v-bb787dcc"]]), Kt = /* @__PURE__ */ m({
810
+ }), Zt = /* @__PURE__ */ b(Qt, [["__scopeId", "data-v-bb787dcc"]]), eo = /* @__PURE__ */ g({
1176
811
  __name: "FCol",
1177
812
  props: {
1178
813
  span: { default: 24 },
@@ -1183,28 +818,28 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1183
818
  md: {},
1184
819
  lg: {}
1185
820
  },
1186
- setup(s) {
1187
- const e = s, t = (c) => typeof c == "number" ? { span: c } : c, o = _(() => ({
821
+ setup(n) {
822
+ const e = n, o = (i) => typeof i == "number" ? { span: i } : i, t = h(() => ({
1188
823
  "--col-span": e.span,
1189
824
  "--col-offset": e.offset,
1190
825
  "--col-order": e.order
1191
- })), n = _(() => {
1192
- const c = [], d = { xs: e.xs, sm: e.sm, md: e.md, lg: e.lg };
1193
- for (const [i, a] of Object.entries(d)) {
826
+ })), s = h(() => {
827
+ const i = [], u = { xs: e.xs, sm: e.sm, md: e.md, lg: e.lg };
828
+ for (const [r, a] of Object.entries(u)) {
1194
829
  if (a === void 0) continue;
1195
- const { span: f, offset: u, order: p } = t(a);
1196
- f !== void 0 && c.push(`f-col--${i}-${f}`), u !== void 0 && c.push(`f-col--${i}-offset-${u}`), p !== void 0 && c.push(`f-col--${i}-order-${p}`);
830
+ const { span: f, offset: m, order: d } = o(a);
831
+ f !== void 0 && i.push(`f-col--${r}-${f}`), m !== void 0 && i.push(`f-col--${r}-offset-${m}`), d !== void 0 && i.push(`f-col--${r}-order-${d}`);
1197
832
  }
1198
- return c;
833
+ return i;
1199
834
  });
1200
- return (c, d) => (l(), r("div", {
1201
- class: x(["f-col", n.value]),
1202
- style: B(o.value)
835
+ return (i, u) => (l(), c("div", {
836
+ class: C(["f-col", p(s)]),
837
+ style: T(p(t))
1203
838
  }, [
1204
- g(c.$slots, "default", {}, void 0, !0)
839
+ v(i.$slots, "default", {}, void 0, !0)
1205
840
  ], 6));
1206
841
  }
1207
- }), To = /* @__PURE__ */ w(Kt, [["__scopeId", "data-v-522acc47"]]), Qt = /* @__PURE__ */ m({
842
+ }), to = /* @__PURE__ */ b(eo, [["__scopeId", "data-v-5a8b0cb4"]]), oo = /* @__PURE__ */ g({
1208
843
  __name: "FRow",
1209
844
  props: {
1210
845
  gutter: { default: 0 },
@@ -1213,47 +848,47 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1213
848
  wrap: { default: "wrap" },
1214
849
  tag: { default: "div" }
1215
850
  },
1216
- setup(s) {
1217
- const e = s, t = _(
851
+ setup(n) {
852
+ const e = n, o = h(
1218
853
  () => Array.isArray(e.gutter) ? e.gutter[0] : e.gutter
1219
- ), o = _(
854
+ ), t = h(
1220
855
  () => Array.isArray(e.gutter) ? e.gutter[1] : 0
1221
- ), n = {
856
+ ), s = {
1222
857
  start: "flex-start",
1223
858
  end: "flex-end",
1224
859
  center: "center",
1225
860
  "space-between": "space-between",
1226
861
  "space-around": "space-around",
1227
862
  "space-evenly": "space-evenly"
1228
- }, c = {
863
+ }, i = {
1229
864
  top: "flex-start",
1230
865
  middle: "center",
1231
866
  bottom: "flex-end",
1232
867
  stretch: "stretch"
1233
- }, d = _(() => ({
1234
- marginLeft: t.value ? `-${t.value / 2}px` : void 0,
1235
- marginRight: t.value ? `-${t.value / 2}px` : void 0,
1236
- rowGap: o.value ? `${o.value}px` : void 0,
1237
- justifyContent: n[e.justify],
1238
- alignItems: c[e.align],
868
+ }, u = h(() => ({
869
+ marginLeft: o.value ? `-${o.value / 2}px` : void 0,
870
+ marginRight: o.value ? `-${o.value / 2}px` : void 0,
871
+ rowGap: t.value ? `${t.value}px` : void 0,
872
+ justifyContent: s[e.justify],
873
+ alignItems: i[e.align],
1239
874
  flexWrap: e.wrap,
1240
- "--row-gutter-h": t.value ? `${t.value / 2}px` : "0px"
875
+ "--row-gutter-h": o.value ? `${o.value / 2}px` : "0px"
1241
876
  }));
1242
- return (i, a) => (l(), D(Y(i.tag), {
877
+ return (r, a) => (l(), W(Y(r.tag), {
1243
878
  class: "f-row",
1244
- style: B(d.value)
879
+ style: T(p(u))
1245
880
  }, {
1246
- default: S(() => [
1247
- g(i.$slots, "default", {}, void 0, !0)
881
+ default: I(() => [
882
+ v(r.$slots, "default", {}, void 0, !0)
1248
883
  ]),
1249
884
  _: 3
1250
885
  }, 8, ["style"]));
1251
886
  }
1252
- }), Io = /* @__PURE__ */ w(Qt, [["__scopeId", "data-v-bf5b6af7"]]), Zt = { class: "f-space__item" }, eo = {
887
+ }), so = /* @__PURE__ */ b(oo, [["__scopeId", "data-v-72f62339"]]), ao = { class: "f-space__item" }, no = {
1253
888
  key: 0,
1254
889
  class: "f-space__split",
1255
890
  "aria-hidden": "true"
1256
- }, to = /* @__PURE__ */ m({
891
+ }, lo = /* @__PURE__ */ g({
1257
892
  __name: "FSpace",
1258
893
  props: {
1259
894
  direction: { default: "horizontal" },
@@ -1263,80 +898,80 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1263
898
  wrap: { type: Boolean, default: !1 },
1264
899
  split: {}
1265
900
  },
1266
- setup(s) {
1267
- const e = s, t = {
901
+ setup(n) {
902
+ const e = n, o = {
1268
903
  small: 6,
1269
904
  normal: 12,
1270
905
  large: 18
1271
- }, o = (a) => typeof a == "number" ? a : t[a], n = _(() => {
906
+ }, t = (a) => typeof a == "number" ? a : o[a], s = h(() => {
1272
907
  const a = e.size;
1273
- return Array.isArray(a) ? `${o(a[1])}px ${o(a[0])}px` : `${o(a)}px`;
1274
- }), c = _(() => ({
908
+ return Array.isArray(a) ? `${t(a[1])}px ${t(a[0])}px` : `${t(a)}px`;
909
+ }), i = h(() => ({
1275
910
  flexDirection: e.direction === "vertical" ? "column" : "row",
1276
911
  alignItems: e.align,
1277
912
  justifyContent: e.justify,
1278
913
  flexWrap: e.wrap ? "wrap" : "nowrap",
1279
- gap: n.value
1280
- })), d = ge(), i = _(() => {
1281
- var u;
1282
- const a = (u = d.default) == null ? void 0 : u.call(d);
914
+ gap: s.value
915
+ })), u = ze(), r = h(() => {
916
+ var m;
917
+ const a = (m = u.default) == null ? void 0 : m.call(u);
1283
918
  if (!a) return [];
1284
919
  const f = [];
1285
- for (const p of a)
1286
- p.type === R ? f.push(...p.children) : f.push(p);
1287
- return f.filter((p) => p.type !== Comment);
920
+ for (const d of a)
921
+ d.type === P ? f.push(...d.children) : f.push(d);
922
+ return f.filter((d) => d.type !== Comment);
1288
923
  });
1289
- return (a, f) => (l(), r("div", {
924
+ return (a, f) => (l(), c("div", {
1290
925
  class: "f-space",
1291
- style: B(c.value)
926
+ style: T(p(i))
1292
927
  }, [
1293
- (l(!0), r(R, null, U(i.value, (u, p) => (l(), r(R, { key: p }, [
1294
- h("div", Zt, [
1295
- (l(), D(Y(u)))
928
+ (l(!0), c(P, null, G(p(r), (m, d) => (l(), c(P, { key: d }, [
929
+ z("div", ao, [
930
+ (l(), W(Y(m)))
1296
931
  ]),
1297
- a.split && p < i.value.length - 1 ? (l(), r("span", eo, V(a.split), 1)) : b("", !0)
932
+ a.split && d < p(r).length - 1 ? (l(), c("span", no, V(a.split), 1)) : y("", !0)
1298
933
  ], 64))), 128))
1299
934
  ], 4));
1300
935
  }
1301
- }), Lo = /* @__PURE__ */ w(to, [["__scopeId", "data-v-9a9642c7"]]), oo = /* @__PURE__ */ m({
936
+ }), ro = /* @__PURE__ */ b(lo, [["__scopeId", "data-v-5fb3b1a0"]]), io = /* @__PURE__ */ g({
1302
937
  __name: "FContainer",
1303
938
  props: {
1304
939
  gap: { default: 12 }
1305
940
  },
1306
- setup(s) {
1307
- const e = s, t = _(() => ({
941
+ setup(n) {
942
+ const e = n, o = h(() => ({
1308
943
  gap: typeof e.gap == "number" ? `${e.gap}px` : e.gap
1309
944
  }));
1310
- return (o, n) => (l(), r("div", {
945
+ return (t, s) => (l(), c("div", {
1311
946
  class: "f-container",
1312
- style: B(t.value)
947
+ style: T(p(o))
1313
948
  }, [
1314
- g(o.$slots, "default", {}, void 0, !0)
949
+ v(t.$slots, "default", {}, void 0, !0)
1315
950
  ], 4));
1316
951
  }
1317
- }), Ao = /* @__PURE__ */ w(oo, [["__scopeId", "data-v-7a5352b1"]]), no = /* @__PURE__ */ m({
952
+ }), co = /* @__PURE__ */ b(io, [["__scopeId", "data-v-08450ddf"]]), uo = /* @__PURE__ */ g({
1318
953
  __name: "FDivider",
1319
954
  props: {
1320
955
  color: {},
1321
956
  direction: { default: "horizontal" },
1322
957
  line: { default: "solid" }
1323
958
  },
1324
- setup(s) {
1325
- const e = s, t = _(() => {
1326
- const o = e.color || "var(--el-color-primary)", n = e.direction === "horizontal";
959
+ setup(n) {
960
+ const e = n, o = h(() => {
961
+ const t = e.color || "var(--el-color-primary)", s = e.direction === "horizontal";
1327
962
  return {
1328
- borderTop: n ? `${e.line} ${o}` : "none",
1329
- borderLeft: n ? "none" : `${e.line} ${o}`,
1330
- height: n ? "0" : "100%",
1331
- width: n ? "100%" : "0",
1332
- margin: n ? "24px 0" : "0"
963
+ borderTop: s ? `${e.line} ${t}` : "none",
964
+ borderLeft: s ? "none" : `${e.line} ${t}`,
965
+ height: s ? "0" : "100%",
966
+ width: s ? "100%" : "0",
967
+ margin: s ? "24px 0" : "0"
1333
968
  };
1334
969
  });
1335
- return (o, n) => (l(), r("hr", {
1336
- style: B(t.value)
970
+ return (t, s) => (l(), c("hr", {
971
+ style: T(o.value)
1337
972
  }, null, 4));
1338
973
  }
1339
- }), Vo = /* @__PURE__ */ w(no, [["__scopeId", "data-v-512ee743"]]), lo = ["src", "alt"], so = /* @__PURE__ */ m({
974
+ }), po = /* @__PURE__ */ b(uo, [["__scopeId", "data-v-512ee743"]]), fo = ["src", "alt"], mo = /* @__PURE__ */ g({
1340
975
  __name: "FAvatar",
1341
976
  props: {
1342
977
  src: {},
@@ -1345,39 +980,39 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1345
980
  shape: { default: "circle" },
1346
981
  icon: {}
1347
982
  },
1348
- setup(s) {
1349
- const e = s, t = {
983
+ setup(n) {
984
+ const e = n, o = {
1350
985
  small: "32px",
1351
986
  normal: "48px",
1352
987
  large: "64px"
1353
- }, o = _(() => ({
1354
- width: typeof e.size == "string" ? t[e.size] : `${e.size}px`,
1355
- height: typeof e.size == "string" ? t[e.size] : `${e.size}px`,
988
+ }, t = h(() => ({
989
+ width: typeof e.size == "string" ? o[e.size] : `${e.size}px`,
990
+ height: typeof e.size == "string" ? o[e.size] : `${e.size}px`,
1356
991
  borderRadius: e.shape === "circle" ? "50%" : "8px"
1357
992
  }));
1358
- return (n, c) => {
1359
- const d = P("f-icon");
1360
- return l(), r("div", {
993
+ return (s, i) => {
994
+ const u = O("f-icon");
995
+ return l(), c("div", {
1361
996
  class: "f-avatar",
1362
- style: B(o.value)
997
+ style: T(p(t))
1363
998
  }, [
1364
- n.src ? (l(), r("img", {
999
+ s.src ? (l(), c("img", {
1365
1000
  key: 0,
1366
- src: n.src,
1367
- alt: n.alt
1368
- }, null, 8, lo)) : (l(), D(d, {
1001
+ src: s.src,
1002
+ alt: s.alt
1003
+ }, null, 8, fo)) : (l(), W(u, {
1369
1004
  key: 1,
1370
1005
  size: 24
1371
1006
  }, {
1372
- default: S(() => [
1373
- (l(), D(Y(n.icon ? n.icon : T(We))))
1007
+ default: I(() => [
1008
+ (l(), W(Y(s.icon ? s.icon : p(je))))
1374
1009
  ]),
1375
1010
  _: 1
1376
1011
  }))
1377
1012
  ], 4);
1378
1013
  };
1379
1014
  }
1380
- }), Ro = /* @__PURE__ */ w(so, [["__scopeId", "data-v-e28271c3"]]), ao = ["disabled"], ro = /* @__PURE__ */ m({
1015
+ }), _o = /* @__PURE__ */ b(mo, [["__scopeId", "data-v-799350d0"]]), ho = ["disabled"], vo = /* @__PURE__ */ g({
1381
1016
  __name: "FButton",
1382
1017
  props: {
1383
1018
  size: { default: "normal" },
@@ -1386,44 +1021,49 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1386
1021
  bgColor: {},
1387
1022
  variant: {}
1388
1023
  },
1389
- setup(s) {
1390
- const e = s, t = {
1024
+ setup(n) {
1025
+ const e = n, o = {
1391
1026
  small: { height: "24px", minWidth: "24px", padding: "0 8px", fontSize: "11px" },
1392
1027
  normal: { height: "32px", minWidth: "32px", padding: "0 12px", fontSize: "12px" },
1393
1028
  large: { height: "40px", minWidth: "40px", padding: "0 16px", fontSize: "13px" }
1394
- }, o = _(() => ({
1395
- ...t[e.size] ?? t.normal,
1396
- borderRadius: e.round === !0 ? "999px" : typeof e.round == "number" ? `${e.round}px` : "6px",
1397
- backgroundColor: e.bgColor
1398
- }));
1399
- return (n, c) => (l(), r("button", {
1400
- class: x(["f-button", [
1401
- `f-button--${n.variant ?? "default"}`,
1402
- { "is-disabled": n.disabled }
1403
- ]]),
1404
- style: B(o.value),
1405
- disabled: n.disabled
1406
- }, [
1407
- g(n.$slots, "default", {}, void 0, !0)
1408
- ], 14, ao));
1029
+ }, t = h(() => {
1030
+ var s;
1031
+ return ce(ie({}, (s = o[e.size]) != null ? s : o.normal), {
1032
+ borderRadius: e.round === !0 ? "999px" : typeof e.round == "number" ? `${e.round}px` : "6px",
1033
+ backgroundColor: e.bgColor
1034
+ });
1035
+ });
1036
+ return (s, i) => {
1037
+ var u;
1038
+ return l(), c("button", {
1039
+ class: C(["f-button", [
1040
+ `f-button--${(u = s.variant) != null ? u : "default"}`,
1041
+ { "is-disabled": s.disabled }
1042
+ ]]),
1043
+ style: T(p(t)),
1044
+ disabled: s.disabled
1045
+ }, [
1046
+ v(s.$slots, "default", {}, void 0, !0)
1047
+ ], 14, ho);
1048
+ };
1409
1049
  }
1410
- }), Do = /* @__PURE__ */ w(ro, [["__scopeId", "data-v-04df3a98"]]), io = /* @__PURE__ */ m({
1050
+ }), go = /* @__PURE__ */ b(vo, [["__scopeId", "data-v-eeff7101"]]), bo = /* @__PURE__ */ g({
1411
1051
  __name: "FTypography",
1412
1052
  props: {
1413
1053
  color: { default: "" }
1414
1054
  },
1415
- setup(s) {
1416
- const e = s, t = _(() => ({
1055
+ setup(n) {
1056
+ const e = n, o = h(() => ({
1417
1057
  color: e.color
1418
1058
  }));
1419
- return (o, n) => (l(), r("div", {
1059
+ return (t, s) => (l(), c("div", {
1420
1060
  class: "f-typography",
1421
- style: B(t.value)
1061
+ style: T(p(o))
1422
1062
  }, [
1423
- g(o.$slots, "default", {}, void 0, !0)
1063
+ v(t.$slots, "default", {}, void 0, !0)
1424
1064
  ], 4));
1425
1065
  }
1426
- }), Ho = /* @__PURE__ */ w(io, [["__scopeId", "data-v-40f51ad6"]]), co = /* @__PURE__ */ m({
1066
+ }), yo = /* @__PURE__ */ b(bo, [["__scopeId", "data-v-54c9aca5"]]), $o = /* @__PURE__ */ g({
1427
1067
  __name: "FText",
1428
1068
  props: {
1429
1069
  tag: { default: "span" },
@@ -1434,37 +1074,46 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1434
1074
  truncate: { type: Boolean },
1435
1075
  italic: { type: Boolean }
1436
1076
  },
1437
- setup(s) {
1438
- const e = s, t = {
1077
+ setup(n) {
1078
+ const e = n, o = {
1439
1079
  1: "3xl",
1440
1080
  2: "2xl",
1441
1081
  3: "xl",
1442
1082
  4: "lg",
1443
1083
  5: "normal",
1444
1084
  6: "sm"
1445
- }, o = {
1085
+ }, t = {
1446
1086
  1: "bolder",
1447
1087
  2: "bold",
1448
1088
  3: "bold",
1449
1089
  4: "medium",
1450
1090
  5: "medium",
1451
1091
  6: "normal"
1452
- }, n = _(() => e.heading ? `h${e.heading}` : e.tag ?? "span"), c = _(() => e.size ?? (e.heading ? t[e.heading] : "normal")), d = _(() => e.weight ?? (e.heading ? o[e.heading] : "normal"));
1453
- return (i, a) => (l(), D(Y(n.value), {
1454
- class: x(["f-text", [
1455
- `f-text--${c.value}`,
1456
- `f-text--${d.value}`,
1457
- i.color && `f-text--${i.color}`,
1458
- { "f-text--truncate": i.truncate, "f-text--italic": i.italic }
1092
+ }, s = h(() => {
1093
+ var r;
1094
+ return e.heading ? `h${e.heading}` : (r = e.tag) != null ? r : "span";
1095
+ }), i = h(() => {
1096
+ var r;
1097
+ return (r = e.size) != null ? r : e.heading ? o[e.heading] : "normal";
1098
+ }), u = h(() => {
1099
+ var r;
1100
+ return (r = e.weight) != null ? r : e.heading ? t[e.heading] : "normal";
1101
+ });
1102
+ return (r, a) => (l(), W(Y(p(s)), {
1103
+ class: C(["f-text", [
1104
+ `f-text--${p(i)}`,
1105
+ `f-text--${p(u)}`,
1106
+ r.color && `f-text--${r.color}`,
1107
+ { "f-text--truncate": r.truncate, "f-text--italic": r.italic }
1459
1108
  ]])
1460
1109
  }, {
1461
- default: S(() => [
1462
- g(i.$slots, "default", {}, void 0, !0)
1110
+ default: I(() => [
1111
+ v(r.$slots, "default", {}, void 0, !0)
1463
1112
  ]),
1464
1113
  _: 3
1465
1114
  }, 8, ["class"]));
1466
1115
  }
1467
- }), jo = /* @__PURE__ */ w(co, [["__scopeId", "data-v-ac74c770"]]), uo = ["href", "target", "rel"], po = /* @__PURE__ */ m({
1116
+ }), ko = /* @__PURE__ */ b($o, [["__scopeId", "data-v-8bcfc6b3"]]), wo = ["href", "target", "rel"], Fo = /* @__PURE__ */ g({
1468
1117
  __name: "FLink",
1469
1118
  props: {
1470
1119
  href: {},
@@ -1473,10 +1122,10 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1473
1122
  color: {},
1474
1123
  disabled: { type: Boolean }
1475
1124
  },
1476
- setup(s) {
1477
- const e = s;
1478
- return (t, o) => (l(), r("a", {
1479
- class: x(["f-link", [
1125
+ setup(n) {
1126
+ const e = n;
1127
+ return (o, t) => (l(), c("a", {
1128
+ class: C(["f-link", [
1480
1129
  e.color && `f-link--${e.color}`,
1481
1130
  `f-link--underline-${e.underline}`,
1482
1131
  { "f-link--disabled": e.disabled }
@@ -1485,10 +1134,10 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1485
1134
  target: e.target,
1486
1135
  rel: e.target === "_blank" ? "noopener noreferrer" : void 0
1487
1136
  }, [
1488
- g(t.$slots, "default", {}, void 0, !0)
1489
- ], 10, uo));
1137
+ v(o.$slots, "default", {}, void 0, !0)
1138
+ ], 10, wo));
1490
1139
  }
1491
- }), Oo = /* @__PURE__ */ w(po, [["__scopeId", "data-v-daaa3e25"]]), fo = { class: "f-badge" }, vo = /* @__PURE__ */ m({
1140
+ }), zo = /* @__PURE__ */ b(Fo, [["__scopeId", "data-v-daaa3e25"]]), Co = { class: "f-badge" }, xo = /* @__PURE__ */ g({
1492
1141
  __name: "FBadge",
1493
1142
  props: {
1494
1143
  value: {},
@@ -1498,106 +1147,325 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1498
1147
  placement: { default: "top-right" },
1499
1148
  offset: { default: () => [0, 0] }
1500
1149
  },
1501
- setup(s) {
1502
- const e = s, t = _(() => e.dot ? "" : typeof e.value == "number" && e.value > e.max ? `${e.max}+` : e.value ?? ""), o = _(() => {
1503
- const [n, c] = e.offset;
1150
+ setup(n) {
1151
+ const e = n, o = h(() => {
1152
+ var s;
1153
+ return e.dot ? "" : typeof e.value == "number" && e.value > e.max ? `${e.max}+` : (s = e.value) != null ? s : "";
1154
+ }), t = h(() => {
1155
+ const [s, i] = e.offset;
1504
1156
  return {
1505
- "top-right": { top: 0, right: 0, transform: `translate(calc(50% + ${n}px), calc(-50% + ${c}px))` },
1506
- "top-left": { top: 0, left: 0, transform: `translate(calc(-50% + ${n}px), calc(-50% + ${c}px))` },
1507
- "bottom-right": { bottom: 0, right: 0, transform: `translate(calc(50% + ${n}px), calc(50% + ${c}px))` },
1508
- "bottom-left": { bottom: 0, left: 0, transform: `translate(calc(-50% + ${n}px), calc(50% + ${c}px))` }
1157
+ "top-right": { top: 0, right: 0, transform: `translate(calc(50% + ${s}px), calc(-50% + ${i}px))` },
1158
+ "top-left": { top: 0, left: 0, transform: `translate(calc(-50% + ${s}px), calc(-50% + ${i}px))` },
1159
+ "bottom-right": { bottom: 0, right: 0, transform: `translate(calc(50% + ${s}px), calc(50% + ${i}px))` },
1160
+ "bottom-left": { bottom: 0, left: 0, transform: `translate(calc(-50% + ${s}px), calc(50% + ${i}px))` }
1509
1161
  }[e.placement];
1510
1162
  });
1511
- return (n, c) => (l(), r("div", fo, [
1512
- g(n.$slots, "default", {}, void 0, !0),
1513
- n.dot || n.value !== void 0 && n.value !== "" ? (l(), r("span", {
1163
+ return (s, i) => (l(), c("div", Co, [
1164
+ v(s.$slots, "default", {}, void 0, !0),
1165
+ s.dot || s.value !== void 0 && s.value !== "" ? (l(), c("span", {
1514
1166
  key: 0,
1515
- class: x(["f-badge__content", [`f-badge--${n.type}`, { "f-badge--dot": n.dot }]]),
1516
- style: B(o.value)
1517
- }, V(t.value), 7)) : b("", !0)
1167
+ class: C(["f-badge__content", [`f-badge--${s.type}`, { "f-badge--dot": s.dot }]]),
1168
+ style: T(p(t))
1169
+ }, V(p(o)), 7)) : y("", !0)
1518
1170
  ]));
1519
1171
  }
1520
- }), Wo = /* @__PURE__ */ w(vo, [["__scopeId", "data-v-b9d3e8d6"]]), mo = /* @__PURE__ */ m({
1172
+ }), So = /* @__PURE__ */ b(xo, [["__scopeId", "data-v-be6947ff"]]), Mo = /* @__PURE__ */ g({
1521
1173
  __name: "FAffix",
1522
1174
  props: {
1523
1175
  placement: { default: "top-right" },
1524
1176
  offset: { default: () => [8, 8] }
1525
1177
  },
1526
- setup(s) {
1527
- const e = s, t = _(() => {
1528
- const [o, n] = e.offset;
1178
+ setup(n) {
1179
+ const e = n, o = h(() => {
1180
+ const [t, s] = e.offset;
1529
1181
  return {
1530
- "top-left": { top: `${n}px`, left: `${o}px` },
1531
- "top-right": { top: `${n}px`, right: `${o}px` },
1532
- "bottom-left": { bottom: `${n}px`, left: `${o}px` },
1533
- "bottom-right": { bottom: `${n}px`, right: `${o}px` }
1182
+ "top-left": { top: `${s}px`, left: `${t}px` },
1183
+ "top-right": { top: `${s}px`, right: `${t}px` },
1184
+ "bottom-left": { bottom: `${s}px`, left: `${t}px` },
1185
+ "bottom-right": { bottom: `${s}px`, right: `${t}px` }
1534
1186
  }[e.placement];
1535
1187
  });
1536
- return (o, n) => (l(), r("div", {
1188
+ return (t, s) => (l(), c("div", {
1537
1189
  class: "f-affix",
1538
- style: B(t.value)
1190
+ style: T(p(o))
1539
1191
  }, [
1540
- g(o.$slots, "default", {}, void 0, !0)
1192
+ v(t.$slots, "default", {}, void 0, !0)
1541
1193
  ], 4));
1542
1194
  }
1543
- }), Po = /* @__PURE__ */ w(mo, [["__scopeId", "data-v-2ba0b82c"]]), Eo = (s) => {
1544
- [
1545
- "FInput",
1546
- "FImage",
1547
- "FLoading",
1548
- "FIcon",
1549
- "FRate",
1550
- "FDropdown",
1551
- "FSelect",
1552
- "FPagination",
1553
- "FCard",
1554
- "FTag",
1555
- "FTooltip",
1556
- "FProgress",
1557
- "FTabs",
1558
- "FBreadcrumb",
1559
- "FCol",
1560
- "FRow",
1561
- "FSpace",
1562
- "FContainer",
1563
- "FDivider",
1564
- "FAvatar",
1565
- "FButton",
1566
- "FTypography",
1567
- "FText",
1568
- "FLink",
1569
- "FBadge",
1570
- "FAffix"
1571
- ].forEach((t) => {
1572
- s.component(t, ye(() => we(/* @__PURE__ */ Object.assign({}), `./common/${t}.vue`, 3)));
1195
+ }), Io = /* @__PURE__ */ b(Mo, [["__scopeId", "data-v-8506d679"]]), To = /* @__PURE__ */ g({
1196
+ __name: "FForm",
1197
+ props: {
1198
+ model: {},
1199
+ rules: { default: () => ({}) },
1200
+ labelWidth: { default: "80px" },
1201
+ labelPosition: { default: "right" },
1202
+ size: { default: "normal" }
1203
+ },
1204
+ setup(n, { expose: e }) {
1205
+ const o = n, t = R([]), s = (a) => {
1206
+ t.value.push(a);
1207
+ }, i = (a) => {
1208
+ t.value = t.value.filter((f) => f.prop !== a);
1209
+ };
1210
+ return _e("FFormContext", {
1211
+ model: o.model,
1212
+ rules: o.rules,
1213
+ labelWidth: o.labelWidth,
1214
+ labelPosition: h(() => o.labelPosition),
1215
+ size: h(() => o.size),
1216
+ registerField: s,
1217
+ unregisterField: i
1218
+ }), e({
1219
+ validate: () => J(null, null, function* () {
1220
+ const a = t.value.map((d) => d.validate());
1221
+ if ((yield Promise.all(a)).filter((d) => d !== void 0).length > 0)
1222
+ throw new Error("表单校验失败");
1223
+ return !0;
1224
+ }),
1225
+ resetFields: () => {
1226
+ t.value.forEach((a) => a.clearValidate());
1227
+ }
1228
+ }), (a, f) => (l(), c("form", {
1229
+ class: C(["f-form", [
1230
+ `f-form--label-${a.labelPosition}`,
1231
+ `f-form--size-${a.size}`
1232
+ ]]),
1233
+ onSubmit: f[0] || (f[0] = se(() => {
1234
+ }, ["prevent"]))
1235
+ }, [
1236
+ v(a.$slots, "default", {}, void 0, !0)
1237
+ ], 34));
1238
+ }
1239
+ }), Bo = /* @__PURE__ */ b(To, [["__scopeId", "data-v-21f7de9b"]]), Vo = (n, e) => J(null, null, function* () {
1240
+ const o = Array.isArray(e) ? e : [e];
1241
+ for (let t of o) {
1242
+ t.transform && (n = t.transform(n));
1243
+ const s = n == null || n === "", i = t.whitespace && typeof n == "string" && n.trim() === "";
1244
+ if (t.required && (s || i))
1245
+ return t.message || "此字段为必填项";
1246
+ if (!t.required && s) continue;
1247
+ if (t.type) {
1248
+ const r = Ro(n, t);
1249
+ if (r) return r;
1250
+ }
1251
+ const u = Ao(n, t);
1252
+ if (u) return u;
1253
+ if (t.pattern && !t.pattern.test(String(n)))
1254
+ return t.message || "格式不匹配";
1255
+ if (t.enum && !t.enum.includes(n))
1256
+ return t.message || "不在指定的枚举范围内";
1257
+ if (t.validator) {
1258
+ const r = yield Promise.resolve(t.validator(n, t));
1259
+ if (typeof r == "string") return r;
1260
+ if (r === !1) return t.message || "校验失败";
1261
+ }
1262
+ }
1263
+ }), Ro = (n, e) => {
1264
+ const { type: o, message: t } = e;
1265
+ switch (o) {
1266
+ case "string":
1267
+ if (typeof n != "string") return t || "必须是字符串";
1268
+ break;
1269
+ case "number":
1270
+ if (typeof n != "number" || isNaN(n)) return t || "必须是数字";
1271
+ break;
1272
+ case "integer":
1273
+ if (!Number.isInteger(n)) return t || "必须是整数";
1274
+ break;
1275
+ case "boolean":
1276
+ if (typeof n != "boolean") return t || "必须是布尔值";
1277
+ break;
1278
+ case "array":
1279
+ if (!Array.isArray(n)) return t || "必须是数组";
1280
+ break;
1281
+ case "object":
1282
+ if (typeof n != "object" || n === null) return t || "必须是对象";
1283
+ break;
1284
+ case "email":
1285
+ if (!/^[^\s@]+@([^\s@]+\.)+[^\s@]+$/.test(n)) return t || "邮箱格式不正确";
1286
+ break;
1287
+ case "regexp":
1288
+ if (e.pattern && !e.pattern.test(String(n)))
1289
+ return e.message || "格式不匹配";
1290
+ break;
1291
+ }
1292
+ }, Ao = (n, e) => {
1293
+ const { min: o, max: t, len: s, message: i, type: u } = e, r = u === "number" || u === "integer" || u === "float", a = r && typeof n == "number" ? n : n == null ? void 0 : n.length;
1294
+ if (a !== void 0) {
1295
+ if (s !== void 0 && a !== s)
1296
+ return i || (r ? `值必须等于 ${s}` : `长度必须为 ${s}`);
1297
+ if (o !== void 0 && a < o)
1298
+ return i || (r ? `最小值不能小于 ${o}` : `长度不能小于 ${o}`);
1299
+ if (t !== void 0 && a > t)
1300
+ return i || (r ? `最大值不能大于 ${t}` : `长度不能大于 ${t}`);
1301
+ }
1302
+ }, Po = {
1303
+ key: 0,
1304
+ class: "star"
1305
+ }, Wo = { class: "f-form-item__content" }, jo = {
1306
+ key: 0,
1307
+ class: "f-form-item__error"
1308
+ }, Do = /* @__PURE__ */ g({
1309
+ __name: "FFormItem",
1310
+ props: {
1311
+ label: {},
1312
+ prop: {}
1313
+ },
1314
+ setup(n, { expose: e }) {
1315
+ const o = n, t = Ce("FFormContext"), s = R(""), i = h(() => {
1316
+ var d;
1317
+ return ((d = t == null ? void 0 : t.labelPosition) == null ? void 0 : d.value) || "right";
1318
+ }), u = h(() => {
1319
+ var d;
1320
+ return ((d = t == null ? void 0 : t.size) == null ? void 0 : d.value) || "default";
1321
+ }), r = h(() => {
1322
+ if (!(t != null && t.rules) || !o.prop) return [];
1323
+ const d = t.rules[o.prop] || [];
1324
+ return Array.isArray(d) ? d : [d];
1325
+ }), a = h(() => r.value.some((d) => d.required)), f = () => J(null, null, function* () {
1326
+ if (!o.prop || !t) return;
1327
+ const d = t.model[o.prop], k = yield Vo(d, r.value);
1328
+ return s.value = k || "", k;
1329
+ }), m = () => {
1330
+ s.value = "";
1331
+ };
1332
+ return _e("FFormItemContext", { errorMsg: s, validate: f }), xe(() => {
1333
+ o.prop && (t != null && t.registerField) && t.registerField({ prop: o.prop, validate: f, clearValidate: m });
1334
+ }), oe(() => {
1335
+ o.prop && (t != null && t.unregisterField) && t.unregisterField(o.prop);
1336
+ }), ee(() => t == null ? void 0 : t.model[o.prop], () => {
1337
+ s.value && f();
1338
+ }), e({ validate: f, clearValidate: m }), (d, k) => {
1339
+ var x;
1340
+ return l(), c("div", {
1341
+ class: C(["f-form-item", [
1342
+ `is-label-${p(i)}`,
1343
+ `is-size-${p(u)}`,
1344
+ { "is-error": p(s) }
1345
+ ]])
1346
+ }, [
1347
+ d.label ? (l(), c("label", {
1348
+ key: 0,
1349
+ class: "f-form-item__label",
1350
+ style: T({
1351
+ width: p(i) === "top" ? "100%" : (x = p(t)) == null ? void 0 : x.labelWidth,
1352
+ textAlign: p(i) === "top" ? "left" : p(i)
1353
+ })
1354
+ }, [
1355
+ p(a) ? (l(), c("span", Po, "*")) : y("", !0),
1356
+ me(" " + V(d.label) + ": ", 1)
1357
+ ], 4)) : y("", !0),
1358
+ z("div", Wo, [
1359
+ v(d.$slots, "default", {}, void 0, !0),
1360
+ S(K, { name: "err-slide" }, {
1361
+ default: I(() => [
1362
+ p(s) ? (l(), c("p", jo, V(p(s)), 1)) : y("", !0)
1363
+ ]),
1364
+ _: 1
1365
+ })
1366
+ ])
1367
+ ], 2);
1368
+ };
1369
+ }
1370
+ }), Eo = /* @__PURE__ */ b(Do, [["__scopeId", "data-v-c3d6ec01"]]), Lo = { class: "f-checkbox__wrapper" }, Oo = ["checked", "disabled"], Ho = {
1371
+ key: 0,
1372
+ class: "f-checkbox__label"
1373
+ }, No = /* @__PURE__ */ g({
1374
+ __name: "FCheckbox",
1375
+ props: /* @__PURE__ */ H({
1376
+ label: {},
1377
+ disabled: { type: Boolean }
1378
+ }, {
1379
+ modelValue: { type: Boolean, default: !1 },
1380
+ modelModifiers: {}
1381
+ }),
1382
+ emits: ["update:modelValue"],
1383
+ setup(n) {
1384
+ const e = Q(n, "modelValue"), o = n, t = (s) => {
1385
+ if (o.disabled) return;
1386
+ const i = s.target;
1387
+ e.value = i.checked;
1388
+ };
1389
+ return (s, i) => (l(), c("label", {
1390
+ class: C(["f-checkbox", { "is-disabled": s.disabled }])
1391
+ }, [
1392
+ z("span", Lo, [
1393
+ z("input", {
1394
+ type: "checkbox",
1395
+ checked: e.value,
1396
+ disabled: s.disabled,
1397
+ onChange: t
1398
+ }, null, 40, Oo),
1399
+ i[0] || (i[0] = z("span", { class: "f-checkbox__checkmark" }, null, -1))
1400
+ ]),
1401
+ s.label ? (l(), c("span", Ho, V(s.label), 1)) : y("", !0)
1402
+ ], 2));
1403
+ }
1404
+ }), qo = /* @__PURE__ */ b(No, [["__scopeId", "data-v-633b283a"]]), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1405
+ __proto__: null,
1406
+ FAffix: Io,
1407
+ FAvatar: _o,
1408
+ FBadge: So,
1409
+ FBreadcrumb: Zt,
1410
+ FButton: go,
1411
+ FCard: Vt,
1412
+ FCheckbox: qo,
1413
+ FCol: to,
1414
+ FContainer: co,
1415
+ FDivider: po,
1416
+ FDropdown: pt,
1417
+ FForm: Bo,
1418
+ FFormItem: Eo,
1419
+ FIcon: Le,
1420
+ FImage: Xe,
1421
+ FInput: Ke,
1422
+ FLink: zo,
1423
+ FLoading: tt,
1424
+ FPagination: yt,
1425
+ FProgress: Ot,
1426
+ FRate: nt,
1427
+ FRow: so,
1428
+ FSelect: mt,
1429
+ FSpace: ro,
1430
+ FTabs: Xt,
1431
+ FTag: Pt,
1432
+ FText: ko,
1433
+ FTooltip: jt,
1434
+ FTypography: yo
1435
+ }, Symbol.toStringTag, { value: "Module" })), Ko = (n) => {
1436
+ Object.entries(Go).forEach(([e, o]) => {
1437
+ n.component(e, o);
1573
1438
  });
1574
1439
  };
1575
1440
  export {
1576
- Po as FAffix,
1577
- Ro as FAvatar,
1578
- Wo as FBadge,
1579
- Bo as FBreadcrumb,
1580
- Do as FButton,
1581
- Co as FCard,
1582
- To as FCol,
1583
- Ao as FContainer,
1584
- Vo as FDivider,
1585
- bo as FDropdown,
1586
- _o as FIcon,
1587
- go as FImage,
1588
- yo as FInput,
1589
- Oo as FLink,
1590
- wo as FLoading,
1591
- xo as FPagination,
1592
- Mo as FProgress,
1593
- $o as FRate,
1594
- Io as FRow,
1595
- ko as FSelect,
1596
- Lo as FSpace,
1597
- So as FTabs,
1598
- Fo as FTag,
1599
- jo as FText,
1600
- zo as FTooltip,
1601
- Ho as FTypography,
1602
- Eo as install
1441
+ Io as FAffix,
1442
+ _o as FAvatar,
1443
+ So as FBadge,
1444
+ Zt as FBreadcrumb,
1445
+ go as FButton,
1446
+ Vt as FCard,
1447
+ qo as FCheckbox,
1448
+ to as FCol,
1449
+ co as FContainer,
1450
+ po as FDivider,
1451
+ pt as FDropdown,
1452
+ Bo as FForm,
1453
+ Eo as FFormItem,
1454
+ Le as FIcon,
1455
+ Xe as FImage,
1456
+ Ke as FInput,
1457
+ zo as FLink,
1458
+ tt as FLoading,
1459
+ yt as FPagination,
1460
+ Ot as FProgress,
1461
+ nt as FRate,
1462
+ so as FRow,
1463
+ mt as FSelect,
1464
+ ro as FSpace,
1465
+ Xt as FTabs,
1466
+ Pt as FTag,
1467
+ ko as FText,
1468
+ jt as FTooltip,
1469
+ yo as FTypography,
1470
+ Ko as default
1603
1471
  };