clds-ui 0.3.3
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.
- package/README.md +16 -0
- package/dist/creators-lib.es.js +949 -0
- package/dist/creators-lib.umd.js +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/robots.txt +2 -0
- package/dist/src/components/Accordion/CreatorsAccordion.vue.d.ts +27 -0
- package/dist/src/components/Accordion/index.d.ts +2 -0
- package/dist/src/components/Badge/CreatorsBadge.vue.d.ts +20 -0
- package/dist/src/components/Badge/index.d.ts +2 -0
- package/dist/src/components/Button/CreatorsButton.vue.d.ts +28 -0
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/src/components/Card/CreatorsCard.vue.d.ts +33 -0
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/Checkbox/CreatorsCheckbox.vue.d.ts +15 -0
- package/dist/src/components/Checkbox/index.d.ts +2 -0
- package/dist/src/components/DataTable/CreatorsDataTable.vue.d.ts +43 -0
- package/dist/src/components/DataTable/index.d.ts +2 -0
- package/dist/src/components/Divider/CreatorsDivider.vue.d.ts +13 -0
- package/dist/src/components/Divider/index.d.ts +2 -0
- package/dist/src/components/Grid/CreatorsCol.vue.d.ts +35 -0
- package/dist/src/components/Grid/CreatorsRow.vue.d.ts +20 -0
- package/dist/src/components/Grid/index.d.ts +4 -0
- package/dist/src/components/Input/CreatorsInput.vue.d.ts +51 -0
- package/dist/src/components/Input/index.d.ts +2 -0
- package/dist/src/components/InputSwitch/CreatorsInputSwitch.vue.d.ts +17 -0
- package/dist/src/components/InputSwitch/index.d.ts +2 -0
- package/dist/src/components/Modal/CreatorsModal.vue.d.ts +36 -0
- package/dist/src/components/Modal/index.d.ts +2 -0
- package/dist/src/components/Radio/CreatorsRadio.vue.d.ts +15 -0
- package/dist/src/components/Radio/index.d.ts +2 -0
- package/dist/src/components/Rating/CreatorsRating.vue.d.ts +23 -0
- package/dist/src/components/Rating/index.d.ts +2 -0
- package/dist/src/components/Select/CreatorsSelect.vue.d.ts +27 -0
- package/dist/src/components/Select/index.d.ts +2 -0
- package/dist/src/components/Skeleton/CreatorsSkeleton.vue.d.ts +27 -0
- package/dist/src/components/Skeleton/CreatorsSkeletonCard.vue.d.ts +3 -0
- package/dist/src/components/Skeleton/CreatorsSkeletonList.vue.d.ts +14 -0
- package/dist/src/components/Skeleton/CreatorsSkeletonProfile.vue.d.ts +8 -0
- package/dist/src/components/Skeleton/CreatorsSkeletonSimpleList.vue.d.ts +22 -0
- package/dist/src/components/Skeleton/CreatorsSkeletonTable.vue.d.ts +10 -0
- package/dist/src/components/Skeleton/index.d.ts +8 -0
- package/dist/src/components/Text/CreatorsText.vue.d.ts +20 -0
- package/dist/src/components/Text/index.d.ts +2 -0
- package/dist/src/components/Textarea/CreatorsTextarea.vue.d.ts +27 -0
- package/dist/src/components/Textarea/index.d.ts +2 -0
- package/dist/src/components/Timeline/CreatorsTimeline.vue.d.ts +37 -0
- package/dist/src/components/Timeline/index.d.ts +2 -0
- package/dist/src/components/Toast/CreatorsToaster.vue.d.ts +3 -0
- package/dist/src/components/Toast/index.d.ts +3 -0
- package/dist/src/components/Toast/useToast.d.ts +33 -0
- package/dist/src/index.d.ts +39 -0
- package/dist/src/plugin.d.ts +3 -0
- package/dist/style.css +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
import { defineComponent as o, computed as u, ref as f, onMounted as y, onUnmounted as b, watch as S, reactive as V } from "vue";
|
|
2
|
+
const P = /* @__PURE__ */ o({
|
|
3
|
+
__name: "CreatorsButton",
|
|
4
|
+
props: {
|
|
5
|
+
variant: { default: "primary" },
|
|
6
|
+
size: { default: "md" },
|
|
7
|
+
disabled: { type: Boolean, default: !1 },
|
|
8
|
+
loading: { type: Boolean, default: !1 }
|
|
9
|
+
},
|
|
10
|
+
emits: ["click"],
|
|
11
|
+
setup(a, { emit: t }) {
|
|
12
|
+
return { __sfc: !0, emit: t };
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
function i(a, t, e, s, l, n, r, d) {
|
|
16
|
+
var c = typeof a == "function" ? a.options : a;
|
|
17
|
+
return t && (c.render = t, c.staticRenderFns = e, c._compiled = !0), n && (c._scopeId = "data-v-" + n), {
|
|
18
|
+
exports: a,
|
|
19
|
+
options: c
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var R = function() {
|
|
23
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
24
|
+
return e("button", t._b({ class: [
|
|
25
|
+
"cl-btn",
|
|
26
|
+
`cl-btn--${t.variant}`,
|
|
27
|
+
`cl-btn--${t.size}`,
|
|
28
|
+
{ "cl-btn--loading": t.loading }
|
|
29
|
+
], attrs: { disabled: t.disabled || t.loading }, on: { click: function(l) {
|
|
30
|
+
return s.emit("click", l);
|
|
31
|
+
} } }, "button", t.$attrs, !1), [t.loading ? e("span", { staticClass: "cl-btn__spinner", attrs: { "aria-hidden": "true" } }) : t._e(), t._t("default")], 2);
|
|
32
|
+
}, j = [], F = /* @__PURE__ */ i(
|
|
33
|
+
P,
|
|
34
|
+
R,
|
|
35
|
+
j,
|
|
36
|
+
!1,
|
|
37
|
+
null,
|
|
38
|
+
"bf5586f5"
|
|
39
|
+
);
|
|
40
|
+
const z = F.exports, L = /* @__PURE__ */ o({
|
|
41
|
+
__name: "CreatorsText",
|
|
42
|
+
props: {
|
|
43
|
+
variant: { default: "body-md" },
|
|
44
|
+
as: null
|
|
45
|
+
},
|
|
46
|
+
setup(a) {
|
|
47
|
+
const t = a, e = {
|
|
48
|
+
"display-2xl": "p",
|
|
49
|
+
"display-xl": "p",
|
|
50
|
+
"display-l": "p",
|
|
51
|
+
"display-md": "p",
|
|
52
|
+
"display-sm": "p",
|
|
53
|
+
"accent-2xl": "p",
|
|
54
|
+
"accent-xl": "p",
|
|
55
|
+
"accent-l": "p",
|
|
56
|
+
"accent-md": "p",
|
|
57
|
+
"accent-sm": "p",
|
|
58
|
+
h1: "h1",
|
|
59
|
+
h2: "h2",
|
|
60
|
+
h3: "h3",
|
|
61
|
+
h4: "h4",
|
|
62
|
+
h5: "h5",
|
|
63
|
+
"body-lg": "p",
|
|
64
|
+
"body-md": "p",
|
|
65
|
+
"body-sm": "p"
|
|
66
|
+
}, s = u(() => t.as ?? e[t.variant]);
|
|
67
|
+
return { __sfc: !0, props: t, defaultTags: e, resolvedTag: s };
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
var T = function() {
|
|
71
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
72
|
+
return e(s.resolvedTag, { tag: "component", class: ["cl-text", `cl-text--${t.variant}`] }, [t._t("default")], 2);
|
|
73
|
+
}, M = [], O = /* @__PURE__ */ i(
|
|
74
|
+
L,
|
|
75
|
+
T,
|
|
76
|
+
M,
|
|
77
|
+
!1,
|
|
78
|
+
null,
|
|
79
|
+
"a993d82e"
|
|
80
|
+
);
|
|
81
|
+
const I = O.exports, E = /* @__PURE__ */ o({
|
|
82
|
+
__name: "CreatorsAccordion",
|
|
83
|
+
props: {
|
|
84
|
+
items: null,
|
|
85
|
+
defaultOpen: { default: -1 }
|
|
86
|
+
},
|
|
87
|
+
emits: ["change"],
|
|
88
|
+
setup(a, { emit: t }) {
|
|
89
|
+
const e = a, s = f(
|
|
90
|
+
e.defaultOpen >= 0 ? e.defaultOpen : null
|
|
91
|
+
);
|
|
92
|
+
function l(n) {
|
|
93
|
+
s.value = s.value === n ? null : n, t("change", s.value);
|
|
94
|
+
}
|
|
95
|
+
return { __sfc: !0, props: e, emit: t, openIndex: s, toggle: l };
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
var D = function() {
|
|
99
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
100
|
+
return e("div", { staticClass: "cl-accordion" }, t._l(t.items, function(l, n) {
|
|
101
|
+
return e("div", { key: n, staticClass: "cl-accordion__item", class: { "cl-accordion__item--open": s.openIndex === n } }, [e("button", { staticClass: "cl-accordion__trigger", on: { click: function(r) {
|
|
102
|
+
return s.toggle(n);
|
|
103
|
+
} } }, [e("span", { staticClass: "cl-accordion__title" }, [t._v(t._s(l.title))]), e("svg", { staticClass: "cl-accordion__icon", attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "6 9 12 15 18 9" } })])]), e("div", { staticClass: "cl-accordion__body" }, [e("div", { staticClass: "cl-accordion__content" }, [t._t(`item-${n}`, function() {
|
|
104
|
+
return [t._v(t._s(l.content))];
|
|
105
|
+
})], 2)])]);
|
|
106
|
+
}), 0);
|
|
107
|
+
}, W = [], A = /* @__PURE__ */ i(
|
|
108
|
+
E,
|
|
109
|
+
D,
|
|
110
|
+
W,
|
|
111
|
+
!1,
|
|
112
|
+
null,
|
|
113
|
+
"cdacee19"
|
|
114
|
+
);
|
|
115
|
+
const K = A.exports, G = /* @__PURE__ */ o({
|
|
116
|
+
__name: "CreatorsInput",
|
|
117
|
+
props: {
|
|
118
|
+
modelValue: null,
|
|
119
|
+
label: null,
|
|
120
|
+
placeholder: null,
|
|
121
|
+
hint: null,
|
|
122
|
+
error: null,
|
|
123
|
+
type: { default: "text" },
|
|
124
|
+
size: { default: "md" },
|
|
125
|
+
disabled: { type: Boolean, default: !1 },
|
|
126
|
+
id: null,
|
|
127
|
+
icon: null,
|
|
128
|
+
loading: { type: Boolean, default: !1 },
|
|
129
|
+
clearable: { type: Boolean, default: !1 },
|
|
130
|
+
searchable: { type: Boolean, default: !1 }
|
|
131
|
+
},
|
|
132
|
+
emits: ["update:modelValue", "enter", "focus", "blur", "clear", "search"],
|
|
133
|
+
setup(a, { emit: t }) {
|
|
134
|
+
function e(r) {
|
|
135
|
+
t("update:modelValue", r.target.value);
|
|
136
|
+
}
|
|
137
|
+
function s(r) {
|
|
138
|
+
const d = r.target.value;
|
|
139
|
+
t("enter", d), t("search", d);
|
|
140
|
+
}
|
|
141
|
+
function l() {
|
|
142
|
+
t("update:modelValue", ""), t("clear");
|
|
143
|
+
}
|
|
144
|
+
function n() {
|
|
145
|
+
t("search", "");
|
|
146
|
+
}
|
|
147
|
+
return { __sfc: !0, emit: t, onInput: e, onEnter: s, onClear: l, onSearch: n };
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
var X = function() {
|
|
151
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
152
|
+
return e("div", { class: ["cl-input", `cl-input--${t.size}`, { "cl-input--error": t.error, "cl-input--disabled": t.disabled }] }, [t.label ? e("label", { staticClass: "cl-input__label", attrs: { for: t.id } }, [t._v(t._s(t.label))]) : t._e(), e("div", { staticClass: "cl-input__wrapper" }, [t.icon || t.$slots.prefix ? e("span", { staticClass: "cl-input__slot cl-input__slot--prefix" }, [t._t("prefix", function() {
|
|
153
|
+
return [t.icon === "search" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("circle", { attrs: { cx: "11", cy: "11", r: "8" } }), e("line", { attrs: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" } })]) : t.icon === "mail" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" } }), e("polyline", { attrs: { points: "22,6 12,13 2,6" } })]) : t.icon === "lock" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("rect", { attrs: { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" } }), e("path", { attrs: { d: "M7 11V7a5 5 0 0 1 10 0v4" } })]) : t.icon === "user" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" } }), e("circle", { attrs: { cx: "12", cy: "7", r: "4" } })]) : t._e()];
|
|
154
|
+
})], 2) : t._e(), e("input", t._b({ staticClass: "cl-input__field", attrs: { id: t.id, placeholder: t.placeholder, disabled: t.disabled || t.loading, type: t.type }, domProps: { value: t.modelValue }, on: { input: s.onInput, keydown: function(l) {
|
|
155
|
+
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : s.onEnter.apply(null, arguments);
|
|
156
|
+
}, focus: function(l) {
|
|
157
|
+
return s.emit("focus", l);
|
|
158
|
+
}, blur: function(l) {
|
|
159
|
+
return s.emit("blur", l);
|
|
160
|
+
} } }, "input", t.$attrs, !1)), e("span", { staticClass: "cl-input__slot cl-input__slot--suffix" }, [t.loading ? e("span", { staticClass: "cl-input__spinner" }) : t.modelValue && t.clearable ? e("button", { staticClass: "cl-input__action", attrs: { type: "button", "aria-label": "Limpar" }, on: { click: s.onClear } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), e("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])]) : t._e(), t.searchable && !t.loading ? e("button", { staticClass: "cl-input__action cl-input__action--search", attrs: { type: "button", "aria-label": "Pesquisar" }, on: { click: s.onSearch } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("circle", { attrs: { cx: "11", cy: "11", r: "8" } }), e("line", { attrs: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" } })])]) : t._e(), t._t("suffix")], 2)]), t.hint || t.error ? e("span", { staticClass: "cl-input__hint", class: { "cl-input__hint--error": t.error } }, [t._v(" " + t._s(t.error || t.hint) + " ")]) : t._e()]);
|
|
161
|
+
}, H = [], q = /* @__PURE__ */ i(
|
|
162
|
+
G,
|
|
163
|
+
X,
|
|
164
|
+
H,
|
|
165
|
+
!1,
|
|
166
|
+
null,
|
|
167
|
+
"914bb790"
|
|
168
|
+
);
|
|
169
|
+
const N = q.exports, U = /* @__PURE__ */ o({
|
|
170
|
+
__name: "CreatorsInputSwitch",
|
|
171
|
+
props: {
|
|
172
|
+
modelValue: { type: Boolean, default: !1 },
|
|
173
|
+
label: null,
|
|
174
|
+
size: { default: "md" },
|
|
175
|
+
disabled: { type: Boolean, default: !1 }
|
|
176
|
+
},
|
|
177
|
+
emits: ["update:modelValue"],
|
|
178
|
+
setup(a, { emit: t }) {
|
|
179
|
+
function e(s) {
|
|
180
|
+
t("update:modelValue", s.target.checked);
|
|
181
|
+
}
|
|
182
|
+
return { __sfc: !0, emit: t, onChange: e };
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
var Y = function() {
|
|
186
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
187
|
+
return e("label", { class: ["cl-switch", `cl-switch--${t.size}`, { "cl-switch--checked": t.modelValue, "cl-switch--disabled": t.disabled }] }, [e("input", { staticClass: "cl-switch__input", attrs: { type: "checkbox", disabled: t.disabled }, domProps: { checked: t.modelValue }, on: { change: s.onChange } }), t._m(0), t.label ? e("span", { staticClass: "cl-switch__label" }, [t._v(t._s(t.label))]) : t._e()]);
|
|
188
|
+
}, J = [function() {
|
|
189
|
+
var a = this, t = a._self._c;
|
|
190
|
+
return a._self._setupProxy, t("span", { staticClass: "cl-switch__track" }, [t("span", { staticClass: "cl-switch__thumb" })]);
|
|
191
|
+
}], Q = /* @__PURE__ */ i(
|
|
192
|
+
U,
|
|
193
|
+
Y,
|
|
194
|
+
J,
|
|
195
|
+
!1,
|
|
196
|
+
null,
|
|
197
|
+
"3fb5090c"
|
|
198
|
+
);
|
|
199
|
+
const Z = Q.exports, tt = /* @__PURE__ */ o({
|
|
200
|
+
__name: "CreatorsTextarea",
|
|
201
|
+
props: {
|
|
202
|
+
modelValue: null,
|
|
203
|
+
label: null,
|
|
204
|
+
placeholder: null,
|
|
205
|
+
hint: null,
|
|
206
|
+
error: null,
|
|
207
|
+
rows: { default: 4 },
|
|
208
|
+
maxlength: null,
|
|
209
|
+
disabled: { type: Boolean, default: !1 },
|
|
210
|
+
id: null
|
|
211
|
+
},
|
|
212
|
+
emits: ["update:modelValue", "enter", "focus", "blur"],
|
|
213
|
+
setup(a, { emit: t }) {
|
|
214
|
+
const e = a;
|
|
215
|
+
function s(r) {
|
|
216
|
+
t("update:modelValue", r.target.value);
|
|
217
|
+
}
|
|
218
|
+
function l(r) {
|
|
219
|
+
t("enter", r.target.value);
|
|
220
|
+
}
|
|
221
|
+
const n = u(
|
|
222
|
+
() => e.maxlength !== void 0 && (e.modelValue ?? "").length > e.maxlength
|
|
223
|
+
);
|
|
224
|
+
return { __sfc: !0, props: e, emit: t, onInput: s, onEnter: l, isOver: n };
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
var et = function() {
|
|
228
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
229
|
+
return e("div", { class: ["cl-textarea", { "cl-textarea--error": t.error, "cl-textarea--disabled": t.disabled }] }, [t.label ? e("label", { staticClass: "cl-textarea__label", attrs: { for: t.id } }, [t._v(t._s(t.label))]) : t._e(), e("textarea", t._b({ staticClass: "cl-textarea__field", attrs: { id: t.id, placeholder: t.placeholder, disabled: t.disabled, rows: t.rows }, domProps: { value: t.modelValue }, on: { input: s.onInput, keydown: function(l) {
|
|
230
|
+
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") || !l.ctrlKey ? null : s.onEnter.apply(null, arguments);
|
|
231
|
+
}, focus: function(l) {
|
|
232
|
+
return s.emit("focus", l);
|
|
233
|
+
}, blur: function(l) {
|
|
234
|
+
return s.emit("blur", l);
|
|
235
|
+
} } }, "textarea", t.$attrs, !1)), t._v(" "), e("div", { staticClass: "cl-textarea__footer" }, [t.hint || t.error ? e("span", { staticClass: "cl-textarea__hint", class: { "cl-textarea__hint--error": t.error } }, [t._v(" " + t._s(t.error || t.hint) + " ")]) : t._e(), t.maxlength ? e("span", { staticClass: "cl-textarea__count", class: { "cl-textarea__count--over": s.isOver } }, [t._v(" " + t._s((t.modelValue ?? "").length) + "/" + t._s(t.maxlength) + " ")]) : t._e()])]);
|
|
236
|
+
}, st = [], lt = /* @__PURE__ */ i(
|
|
237
|
+
tt,
|
|
238
|
+
et,
|
|
239
|
+
st,
|
|
240
|
+
!1,
|
|
241
|
+
null,
|
|
242
|
+
"4d2b35a5"
|
|
243
|
+
);
|
|
244
|
+
const at = lt.exports, nt = /* @__PURE__ */ o({
|
|
245
|
+
__name: "CreatorsSelect",
|
|
246
|
+
props: {
|
|
247
|
+
modelValue: null,
|
|
248
|
+
options: null,
|
|
249
|
+
label: null,
|
|
250
|
+
placeholder: { default: "Selecionar..." },
|
|
251
|
+
hint: null,
|
|
252
|
+
error: null,
|
|
253
|
+
size: { default: "md" },
|
|
254
|
+
disabled: { type: Boolean, default: !1 }
|
|
255
|
+
},
|
|
256
|
+
emits: ["update:modelValue", "change"],
|
|
257
|
+
setup(a, { emit: t }) {
|
|
258
|
+
const e = a, s = f(!1), l = f(null), n = u(
|
|
259
|
+
() => e.options.find((_) => _.value === e.modelValue) ?? null
|
|
260
|
+
);
|
|
261
|
+
function r() {
|
|
262
|
+
e.disabled || (s.value = !s.value);
|
|
263
|
+
}
|
|
264
|
+
function d(_) {
|
|
265
|
+
t("update:modelValue", _.value), t("change", _.value), s.value = !1;
|
|
266
|
+
}
|
|
267
|
+
function c(_) {
|
|
268
|
+
l.value && !l.value.contains(_.target) && (s.value = !1);
|
|
269
|
+
}
|
|
270
|
+
return y(() => document.addEventListener("mousedown", c)), b(() => document.removeEventListener("mousedown", c)), { __sfc: !0, props: e, emit: t, isOpen: s, rootRef: l, selectedOption: n, toggle: r, select: d, onClickOutside: c };
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
var rt = function() {
|
|
274
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
275
|
+
return e("div", { ref: "rootRef", class: ["cl-select", `cl-select--${t.size}`, { "cl-select--open": s.isOpen, "cl-select--error": t.error, "cl-select--disabled": t.disabled }] }, [t.label ? e("label", { staticClass: "cl-select__label", on: { click: s.toggle } }, [t._v(t._s(t.label))]) : t._e(), e("button", { staticClass: "cl-select__trigger", attrs: { type: "button", disabled: t.disabled }, on: { click: s.toggle } }, [e("span", { class: ["cl-select__value", { "cl-select__value--placeholder": !s.selectedOption }] }, [t._v(" " + t._s(s.selectedOption ? s.selectedOption.label : t.placeholder) + " ")]), e("svg", { staticClass: "cl-select__chevron", attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "6 9 12 15 18 9" } })])]), e("transition", { attrs: { name: "cl-select-dropdown" } }, [s.isOpen ? e("ul", { staticClass: "cl-select__dropdown" }, t._l(t.options, function(l) {
|
|
276
|
+
return e("li", { key: l.value, class: ["cl-select__option", { "cl-select__option--selected": l.value === t.modelValue }], on: { click: function(n) {
|
|
277
|
+
return s.select(l);
|
|
278
|
+
} } }, [e("span", [t._v(t._s(l.label))]), l.value === t.modelValue ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "20 6 9 17 4 12" } })]) : t._e()]);
|
|
279
|
+
}), 0) : t._e()]), e("div", { staticClass: "cl-select__footer" }, [t.hint || t.error ? e("span", { staticClass: "cl-select__hint", class: { "cl-select__hint--error": t.error } }, [t._v(" " + t._s(t.error || t.hint) + " ")]) : t._e()])], 1);
|
|
280
|
+
}, ot = [], it = /* @__PURE__ */ i(
|
|
281
|
+
nt,
|
|
282
|
+
rt,
|
|
283
|
+
ot,
|
|
284
|
+
!1,
|
|
285
|
+
null,
|
|
286
|
+
"06f181b3"
|
|
287
|
+
);
|
|
288
|
+
const ct = it.exports, _t = /* @__PURE__ */ o({
|
|
289
|
+
__name: "CreatorsCheckbox",
|
|
290
|
+
props: {
|
|
291
|
+
modelValue: { type: Boolean, default: !1 },
|
|
292
|
+
label: null,
|
|
293
|
+
disabled: { type: Boolean, default: !1 }
|
|
294
|
+
},
|
|
295
|
+
emits: ["update:modelValue"],
|
|
296
|
+
setup(a, { emit: t }) {
|
|
297
|
+
function e(s) {
|
|
298
|
+
t("update:modelValue", s.target.checked);
|
|
299
|
+
}
|
|
300
|
+
return { __sfc: !0, emit: t, onChange: e };
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
var dt = function() {
|
|
304
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
305
|
+
return e("label", { class: ["cl-checkbox", { "cl-checkbox--checked": t.modelValue, "cl-checkbox--disabled": t.disabled }] }, [e("input", { staticClass: "cl-checkbox__input", attrs: { type: "checkbox", disabled: t.disabled }, domProps: { checked: t.modelValue }, on: { change: s.onChange } }), e("span", { staticClass: "cl-checkbox__box" }, [t.modelValue ? e("svg", { staticClass: "cl-checkbox__check", attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "20 6 9 17 4 12" } })]) : t._e()]), t.label ? e("span", { staticClass: "cl-checkbox__label" }, [t._v(t._s(t.label))]) : t._e()]);
|
|
306
|
+
}, ut = [], pt = /* @__PURE__ */ i(
|
|
307
|
+
_t,
|
|
308
|
+
dt,
|
|
309
|
+
ut,
|
|
310
|
+
!1,
|
|
311
|
+
null,
|
|
312
|
+
"d1ad8f2e"
|
|
313
|
+
);
|
|
314
|
+
const ft = pt.exports, vt = /* @__PURE__ */ o({
|
|
315
|
+
__name: "CreatorsRadio",
|
|
316
|
+
props: {
|
|
317
|
+
modelValue: null,
|
|
318
|
+
value: null,
|
|
319
|
+
label: null,
|
|
320
|
+
disabled: { type: Boolean, default: !1 }
|
|
321
|
+
},
|
|
322
|
+
emits: ["update:modelValue"],
|
|
323
|
+
setup(a, { emit: t }) {
|
|
324
|
+
return { __sfc: !0, emit: t };
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
var ht = function() {
|
|
328
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
329
|
+
return e("label", { class: ["cl-radio", { "cl-radio--checked": t.modelValue === t.value, "cl-radio--disabled": t.disabled }] }, [e("input", { staticClass: "cl-radio__input", attrs: { type: "radio", disabled: t.disabled }, domProps: { checked: t.modelValue === t.value }, on: { change: function(l) {
|
|
330
|
+
return s.emit("update:modelValue", t.value);
|
|
331
|
+
} } }), e("span", { staticClass: "cl-radio__circle" }, [t.modelValue === t.value ? e("span", { staticClass: "cl-radio__dot" }) : t._e()]), t.label ? e("span", { staticClass: "cl-radio__label" }, [t._v(t._s(t.label))]) : t._e()]);
|
|
332
|
+
}, mt = [], gt = /* @__PURE__ */ i(
|
|
333
|
+
vt,
|
|
334
|
+
ht,
|
|
335
|
+
mt,
|
|
336
|
+
!1,
|
|
337
|
+
null,
|
|
338
|
+
"242eedd7"
|
|
339
|
+
);
|
|
340
|
+
const wt = gt.exports, Ct = /* @__PURE__ */ o({
|
|
341
|
+
__name: "CreatorsRating",
|
|
342
|
+
props: {
|
|
343
|
+
modelValue: null,
|
|
344
|
+
count: { default: 5 },
|
|
345
|
+
size: { default: "md" },
|
|
346
|
+
readonly: { type: Boolean, default: !1 },
|
|
347
|
+
disabled: { type: Boolean, default: !1 },
|
|
348
|
+
showValue: { type: Boolean, default: !1 }
|
|
349
|
+
},
|
|
350
|
+
emits: ["update:modelValue", "change"],
|
|
351
|
+
setup(a, { emit: t }) {
|
|
352
|
+
const e = a, s = f(null), l = u(() => ({ sm: 16, md: 24, lg: 32 })[e.size]);
|
|
353
|
+
function n(r) {
|
|
354
|
+
t("update:modelValue", r), t("change", r);
|
|
355
|
+
}
|
|
356
|
+
return { __sfc: !0, props: e, emit: t, hovered: s, starSize: l, select: n };
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
var xt = function() {
|
|
360
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
361
|
+
return e("div", { class: ["cl-rating", `cl-rating--${t.size}`, { "cl-rating--readonly": t.readonly, "cl-rating--disabled": t.disabled }] }, [e("svg", { staticStyle: { position: "absolute" }, attrs: { width: "0", height: "0" } }, [e("defs", [e("linearGradient", { attrs: { id: "cl-star-gradient", x1: "0%", y1: "0%", x2: "100%", y2: "0%" } }, [e("stop", { attrs: { offset: "0%", "stop-color": "#6C3AFF" } }), e("stop", { attrs: { offset: "77%", "stop-color": "#F564FF" } }), e("stop", { attrs: { offset: "100%", "stop-color": "#FF9864" } })], 1)], 1)]), t._l(t.count, function(l) {
|
|
362
|
+
return e("button", { key: l, staticClass: "cl-rating__star", class: {
|
|
363
|
+
"cl-rating__star--filled": l <= (s.hovered ?? t.modelValue ?? 0)
|
|
364
|
+
}, attrs: { type: "button", disabled: t.disabled || t.readonly }, on: { click: function(n) {
|
|
365
|
+
return s.select(l);
|
|
366
|
+
}, mouseenter: function(n) {
|
|
367
|
+
s.hovered = l;
|
|
368
|
+
}, mouseleave: function(n) {
|
|
369
|
+
s.hovered = null;
|
|
370
|
+
} } }, [e("svg", { attrs: { width: s.starSize, height: s.starSize, viewBox: "0 0 24 24" } }, [e("path", { attrs: { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z", fill: l <= (s.hovered ?? t.modelValue ?? 0) ? "url(#cl-star-gradient)" : "currentColor", stroke: (l <= (s.hovered ?? t.modelValue ?? 0), "none") } })])]);
|
|
371
|
+
}), t.showValue ? e("span", { staticClass: "cl-rating__value" }, [t._v(t._s(t.modelValue ?? 0) + "/" + t._s(t.count))]) : t._e()], 2);
|
|
372
|
+
}, kt = [], yt = /* @__PURE__ */ i(
|
|
373
|
+
Ct,
|
|
374
|
+
xt,
|
|
375
|
+
kt,
|
|
376
|
+
!1,
|
|
377
|
+
null,
|
|
378
|
+
"e6a67dab"
|
|
379
|
+
);
|
|
380
|
+
const bt = yt.exports, $t = /* @__PURE__ */ o({
|
|
381
|
+
__name: "CreatorsDataTable",
|
|
382
|
+
props: {
|
|
383
|
+
columns: null,
|
|
384
|
+
rows: null,
|
|
385
|
+
loading: { type: Boolean, default: !1 },
|
|
386
|
+
emptyText: { default: "Nenhum resultado encontrado." },
|
|
387
|
+
pagination: { type: Boolean, default: !1 },
|
|
388
|
+
pageSize: { default: 10 },
|
|
389
|
+
onRowClick: { type: Boolean, default: !1 }
|
|
390
|
+
},
|
|
391
|
+
emits: ["row-click", "sort"],
|
|
392
|
+
setup(a, { emit: t }) {
|
|
393
|
+
const e = a, s = f(null), l = f("asc"), n = f(1);
|
|
394
|
+
function r(p) {
|
|
395
|
+
s.value === p ? l.value = l.value === "asc" ? "desc" : "asc" : (s.value = p, l.value = "asc"), t("sort", s.value, l.value);
|
|
396
|
+
}
|
|
397
|
+
const d = u(() => s.value ? [...e.rows].sort((p, B) => {
|
|
398
|
+
const C = p[s.value], x = B[s.value];
|
|
399
|
+
if (C == null) return 1;
|
|
400
|
+
if (x == null) return -1;
|
|
401
|
+
const k = C < x ? -1 : C > x ? 1 : 0;
|
|
402
|
+
return l.value === "asc" ? k : -k;
|
|
403
|
+
}) : [...e.rows]), c = u(() => Math.max(1, Math.ceil(e.rows.length / e.pageSize))), _ = u(() => {
|
|
404
|
+
if (!e.pagination) return d.value;
|
|
405
|
+
const p = (n.value - 1) * e.pageSize;
|
|
406
|
+
return d.value.slice(p, p + e.pageSize);
|
|
407
|
+
}), m = u(() => Math.min((n.value - 1) * e.pageSize + 1, e.rows.length)), w = u(() => Math.min(n.value * e.pageSize, e.rows.length));
|
|
408
|
+
return { __sfc: !0, props: e, emit: t, sortKey: s, sortDir: l, page: n, toggleSort: r, sorted: d, totalPages: c, sortedRows: _, paginationStart: m, paginationEnd: w };
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
var Bt = function() {
|
|
412
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
413
|
+
return e("div", { staticClass: "cl-table-wrapper" }, [e("table", { staticClass: "cl-table" }, [e("thead", { staticClass: "cl-table__head" }, [e("tr", t._l(t.columns, function(l) {
|
|
414
|
+
return e("th", { key: l.key, staticClass: "cl-table__th", class: { "cl-table__th--sortable": l.sortable }, style: l.width ? { width: l.width } : {}, on: { click: function(n) {
|
|
415
|
+
l.sortable && s.toggleSort(l.key);
|
|
416
|
+
} } }, [e("span", { staticClass: "cl-table__th-inner" }, [t._v(" " + t._s(l.label) + " "), l.sortable ? e("span", { staticClass: "cl-table__sort-icon" }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [s.sortKey === l.key && s.sortDir === "asc" ? e("polyline", { attrs: { points: "18 15 12 9 6 15" } }) : s.sortKey === l.key && s.sortDir === "desc" ? e("polyline", { attrs: { points: "6 9 12 15 18 9" } }) : e("g", [e("polyline", { attrs: { points: "18 15 12 9 6 15", opacity: "0.4" } }), e("polyline", { staticStyle: { transform: "translateY(-8px)" }, attrs: { points: "6 21 12 27 18 21", opacity: "0.4" } })])])]) : t._e()])]);
|
|
417
|
+
}), 0)]), e("tbody", { staticClass: "cl-table__body" }, [t.loading ? e("tr", [e("td", { staticClass: "cl-table__td cl-table__td--center", attrs: { colspan: t.columns.length } }, [t._m(0)])]) : s.sortedRows.length ? t._l(s.sortedRows, function(l, n) {
|
|
418
|
+
return e("tr", { key: n, staticClass: "cl-table__row", class: { "cl-table__row--clickable": !!t.onRowClick }, on: { click: function(r) {
|
|
419
|
+
t.onRowClick && s.emit("row-click", l);
|
|
420
|
+
} } }, t._l(t.columns, function(r) {
|
|
421
|
+
return e("td", { key: r.key, staticClass: "cl-table__td" }, [t._t(`cell-${r.key}`, function() {
|
|
422
|
+
return [t._v(" " + t._s(l[r.key]) + " ")];
|
|
423
|
+
}, { row: l, value: l[r.key] })], 2);
|
|
424
|
+
}), 0);
|
|
425
|
+
}) : e("tr", [e("td", { staticClass: "cl-table__td cl-table__td--center cl-table__td--empty", attrs: { colspan: t.columns.length } }, [t._v(" " + t._s(t.emptyText) + " ")])])], 2)]), t.pagination ? e("div", { staticClass: "cl-table__pagination" }, [e("span", { staticClass: "cl-table__pagination-info" }, [t._v(" " + t._s(s.paginationStart) + "–" + t._s(s.paginationEnd) + " de " + t._s(t.rows.length) + " ")]), e("div", { staticClass: "cl-table__pagination-controls" }, [e("button", { staticClass: "cl-table__page-btn", attrs: { disabled: s.page === 1 }, on: { click: function(l) {
|
|
426
|
+
s.page--;
|
|
427
|
+
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "15 18 9 12 15 6" } })])]), e("span", { staticClass: "cl-table__page-current" }, [t._v(t._s(s.page) + " / " + t._s(s.totalPages))]), e("button", { staticClass: "cl-table__page-btn", attrs: { disabled: s.page === s.totalPages }, on: { click: function(l) {
|
|
428
|
+
s.page++;
|
|
429
|
+
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "9 18 15 12 9 6" } })])])])]) : t._e()]);
|
|
430
|
+
}, St = [function() {
|
|
431
|
+
var a = this, t = a._self._c;
|
|
432
|
+
return a._self._setupProxy, t("div", { staticClass: "cl-table__loading" }, [t("span", { staticClass: "cl-table__spinner" }), t("span", [a._v("Carregando...")])]);
|
|
433
|
+
}], Vt = /* @__PURE__ */ i(
|
|
434
|
+
$t,
|
|
435
|
+
Bt,
|
|
436
|
+
St,
|
|
437
|
+
!1,
|
|
438
|
+
null,
|
|
439
|
+
"7b8da436"
|
|
440
|
+
);
|
|
441
|
+
const Pt = Vt.exports, Rt = /* @__PURE__ */ o({
|
|
442
|
+
__name: "CreatorsDivider",
|
|
443
|
+
props: {
|
|
444
|
+
label: null,
|
|
445
|
+
align: { default: "center" },
|
|
446
|
+
orientation: { default: "horizontal" },
|
|
447
|
+
dashed: { type: Boolean, default: !1 }
|
|
448
|
+
},
|
|
449
|
+
setup(a) {
|
|
450
|
+
return { __sfc: !0 };
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
var jt = function() {
|
|
454
|
+
var t = this, e = t._self._c;
|
|
455
|
+
return t._self._setupProxy, e("div", { class: [
|
|
456
|
+
"cl-divider",
|
|
457
|
+
`cl-divider--${t.orientation}`,
|
|
458
|
+
{ "cl-divider--dashed": t.dashed },
|
|
459
|
+
t.label ? `cl-divider--label-${t.align}` : ""
|
|
460
|
+
], attrs: { role: "separator" } }, [t.label ? e("span", { staticClass: "cl-divider__label" }, [t._v(t._s(t.label))]) : t._e()]);
|
|
461
|
+
}, Ft = [], zt = /* @__PURE__ */ i(
|
|
462
|
+
Rt,
|
|
463
|
+
jt,
|
|
464
|
+
Ft,
|
|
465
|
+
!1,
|
|
466
|
+
null,
|
|
467
|
+
"31f5c2f9"
|
|
468
|
+
);
|
|
469
|
+
const Lt = zt.exports, Tt = /* @__PURE__ */ o({
|
|
470
|
+
__name: "CreatorsTimeline",
|
|
471
|
+
props: {
|
|
472
|
+
items: null,
|
|
473
|
+
align: { default: "left" },
|
|
474
|
+
orientation: { default: "vertical" }
|
|
475
|
+
},
|
|
476
|
+
setup(a) {
|
|
477
|
+
return { __sfc: !0 };
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
var Mt = function() {
|
|
481
|
+
var t = this, e = t._self._c;
|
|
482
|
+
return t._self._setupProxy, e("div", { class: ["cl-timeline", `cl-timeline--${t.align}`, `cl-timeline--${t.orientation}`] }, t._l(t.items, function(s, l) {
|
|
483
|
+
return e("div", { key: l, class: [
|
|
484
|
+
"cl-timeline__item",
|
|
485
|
+
t.align === "alternate" ? l % 2 === 0 ? "cl-timeline__item--left" : "cl-timeline__item--right" : ""
|
|
486
|
+
] }, [t.align === "alternate" ? [l % 2 === 0 ? e("div", { staticClass: "cl-timeline__content cl-timeline__content--left" }, [t._t(`item-${l}`, function() {
|
|
487
|
+
return [e("div", { staticClass: "cl-timeline__card" }, [e("div", { staticClass: "cl-timeline__card-header cl-timeline__card-header--reverse" }, [e("span", { staticClass: "cl-timeline__title" }, [t._v(t._s(s.title))]), s.time ? e("span", { staticClass: "cl-timeline__time" }, [t._v(t._s(s.time))]) : t._e()]), s.description ? e("p", { staticClass: "cl-timeline__desc" }, [t._v(t._s(s.description))]) : t._e(), s.tag ? e("div", { staticClass: "cl-timeline__tag cl-timeline__tag--right" }, [t._v(t._s(s.tag))]) : t._e()])];
|
|
488
|
+
})], 2) : e("div", { staticClass: "cl-timeline__spacer" }), e("div", { staticClass: "cl-timeline__dot-wrapper" }, [e("div", { staticClass: "cl-timeline__line cl-timeline__line--before" }), e("div", { class: ["cl-timeline__dot", `cl-timeline__dot--${s.color ?? "primary"}`] }, [t._t(`dot-${l}`, function() {
|
|
489
|
+
return [s.icon === "check" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "20 6 9 17 4 12" } })]) : s.icon === "star" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 24 24", fill: "currentColor" } }, [e("path", { attrs: { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" } })]) : s.icon === "warning" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" } }), e("line", { attrs: { x1: "12", y1: "9", x2: "12", y2: "13" } }), e("line", { attrs: { x1: "12", y1: "17", x2: "12.01", y2: "17" } })]) : t._e()];
|
|
490
|
+
})], 2), e("div", { staticClass: "cl-timeline__line cl-timeline__line--after" })]), l % 2 !== 0 ? e("div", { staticClass: "cl-timeline__content cl-timeline__content--right" }, [t._t(`item-${l}`, function() {
|
|
491
|
+
return [e("div", { staticClass: "cl-timeline__card" }, [e("div", { staticClass: "cl-timeline__card-header" }, [e("span", { staticClass: "cl-timeline__title" }, [t._v(t._s(s.title))]), s.time ? e("span", { staticClass: "cl-timeline__time" }, [t._v(t._s(s.time))]) : t._e()]), s.description ? e("p", { staticClass: "cl-timeline__desc" }, [t._v(t._s(s.description))]) : t._e(), s.tag ? e("div", { staticClass: "cl-timeline__tag" }, [t._v(t._s(s.tag))]) : t._e()])];
|
|
492
|
+
})], 2) : e("div", { staticClass: "cl-timeline__spacer" })] : [e("div", { staticClass: "cl-timeline__dot-wrapper" }, [e("div", { staticClass: "cl-timeline__line cl-timeline__line--before" }), e("div", { class: ["cl-timeline__dot", `cl-timeline__dot--${s.color ?? "primary"}`] }, [t._t(`dot-${l}`, function() {
|
|
493
|
+
return [s.icon === "check" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "20 6 9 17 4 12" } })]) : s.icon === "star" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 24 24", fill: "currentColor" } }, [e("path", { attrs: { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" } })]) : s.icon === "warning" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" } }), e("line", { attrs: { x1: "12", y1: "9", x2: "12", y2: "13" } }), e("line", { attrs: { x1: "12", y1: "17", x2: "12.01", y2: "17" } })]) : t._e()];
|
|
494
|
+
})], 2), e("div", { staticClass: "cl-timeline__line cl-timeline__line--after" })]), e("div", { staticClass: "cl-timeline__content" }, [t._t(`item-${l}`, function() {
|
|
495
|
+
return [e("div", { staticClass: "cl-timeline__card" }, [e("div", { staticClass: "cl-timeline__card-header" }, [e("span", { staticClass: "cl-timeline__title" }, [t._v(t._s(s.title))]), s.time ? e("span", { staticClass: "cl-timeline__time" }, [t._v(t._s(s.time))]) : t._e()]), s.description ? e("p", { staticClass: "cl-timeline__desc" }, [t._v(t._s(s.description))]) : t._e(), s.tag ? e("div", { staticClass: "cl-timeline__tag" }, [t._v(t._s(s.tag))]) : t._e()])];
|
|
496
|
+
})], 2)]], 2);
|
|
497
|
+
}), 0);
|
|
498
|
+
}, Ot = [], It = /* @__PURE__ */ i(
|
|
499
|
+
Tt,
|
|
500
|
+
Mt,
|
|
501
|
+
Ot,
|
|
502
|
+
!1,
|
|
503
|
+
null,
|
|
504
|
+
"f802dc88"
|
|
505
|
+
);
|
|
506
|
+
const Et = It.exports, Dt = /* @__PURE__ */ o({
|
|
507
|
+
__name: "CreatorsBadge",
|
|
508
|
+
props: {
|
|
509
|
+
variant: { default: "default" },
|
|
510
|
+
icon: null
|
|
511
|
+
},
|
|
512
|
+
setup(a) {
|
|
513
|
+
const t = a, e = ["success", "warning", "error", "info"].includes(t.variant) && !t.icon;
|
|
514
|
+
return { __sfc: !0, props: t, statusIcon: e };
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
var Wt = function() {
|
|
518
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
519
|
+
return e("span", { class: ["cl-badge", `cl-badge--${t.variant}`] }, [t.icon || s.statusIcon ? e("span", { staticClass: "cl-badge__icon", attrs: { "aria-hidden": "true" } }, [t.icon ? [t._v(t._s(t.icon))] : t.variant === "success" ? [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "11", height: "11", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.8", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("polyline", { attrs: { points: "20 6 9 17 4 12" } })])] : t.variant === "warning" ? [t._v("⚠")] : t.variant === "error" ? [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "11", height: "11", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.8", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), e("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])] : t.variant === "info" ? [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "11", height: "11", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.8", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), e("line", { attrs: { x1: "12", y1: "16", x2: "12", y2: "12" } }), e("line", { attrs: { x1: "12", y1: "8", x2: "12.01", y2: "8" } })])] : t._e()], 2) : t._e(), t._t("default")], 2);
|
|
520
|
+
}, At = [], Kt = /* @__PURE__ */ i(
|
|
521
|
+
Dt,
|
|
522
|
+
Wt,
|
|
523
|
+
At,
|
|
524
|
+
!1,
|
|
525
|
+
null,
|
|
526
|
+
"36988d61"
|
|
527
|
+
);
|
|
528
|
+
const Gt = Kt.exports, Xt = /* @__PURE__ */ o({
|
|
529
|
+
__name: "CreatorsCard",
|
|
530
|
+
props: {
|
|
531
|
+
title: null,
|
|
532
|
+
description: null,
|
|
533
|
+
label: null,
|
|
534
|
+
variant: { default: "default" },
|
|
535
|
+
hoverable: { type: Boolean, default: !1 },
|
|
536
|
+
flush: { type: Boolean, default: !1 }
|
|
537
|
+
},
|
|
538
|
+
setup(a) {
|
|
539
|
+
return { __sfc: !0 };
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
var Ht = function() {
|
|
543
|
+
var t = this, e = t._self._c;
|
|
544
|
+
return t._self._setupProxy, e("div", { class: [
|
|
545
|
+
"cl-card",
|
|
546
|
+
`cl-card--${t.variant}`,
|
|
547
|
+
{ "cl-card--hoverable": t.hoverable },
|
|
548
|
+
{ "cl-card--flush": t.flush }
|
|
549
|
+
] }, [t.$slots.media ? e("div", { staticClass: "cl-card__media" }, [t._t("media")], 2) : t._e(), e("div", { staticClass: "cl-card__body" }, [t.label ? e("div", { staticClass: "cl-card__label" }, [t._v(t._s(t.label))]) : t._e(), t.title || t.$slots.title ? e("div", { staticClass: "cl-card__title" }, [t._t("title", function() {
|
|
550
|
+
return [t._v(t._s(t.title))];
|
|
551
|
+
})], 2) : t._e(), t.description || t.$slots.description ? e("div", { staticClass: "cl-card__description" }, [t._t("description", function() {
|
|
552
|
+
return [t._v(t._s(t.description))];
|
|
553
|
+
})], 2) : t._e(), t._t("default")], 2), t.$slots.footer ? e("div", { staticClass: "cl-card__footer" }, [t._t("footer")], 2) : t._e()]);
|
|
554
|
+
}, qt = [], Nt = /* @__PURE__ */ i(
|
|
555
|
+
Xt,
|
|
556
|
+
Ht,
|
|
557
|
+
qt,
|
|
558
|
+
!1,
|
|
559
|
+
null,
|
|
560
|
+
"152c5819"
|
|
561
|
+
);
|
|
562
|
+
const Ut = Nt.exports, Yt = /* @__PURE__ */ o({
|
|
563
|
+
__name: "CreatorsModal",
|
|
564
|
+
props: {
|
|
565
|
+
modelValue: { type: Boolean },
|
|
566
|
+
title: null,
|
|
567
|
+
size: { default: "md" },
|
|
568
|
+
hideClose: { type: Boolean, default: !1 },
|
|
569
|
+
persistent: { type: Boolean, default: !1 },
|
|
570
|
+
blur: { type: Boolean, default: !1 }
|
|
571
|
+
},
|
|
572
|
+
emits: ["update:modelValue", "close"],
|
|
573
|
+
setup(a, { emit: t }) {
|
|
574
|
+
const e = a;
|
|
575
|
+
function s() {
|
|
576
|
+
t("update:modelValue", !1), t("close");
|
|
577
|
+
}
|
|
578
|
+
function l() {
|
|
579
|
+
e.persistent || s();
|
|
580
|
+
}
|
|
581
|
+
function n(r) {
|
|
582
|
+
r.key === "Escape" && e.modelValue && !e.persistent && s();
|
|
583
|
+
}
|
|
584
|
+
return S(() => e.modelValue, (r) => {
|
|
585
|
+
document.body.style.overflow = r ? "hidden" : "";
|
|
586
|
+
}), y(() => window.addEventListener("keydown", n)), b(() => {
|
|
587
|
+
window.removeEventListener("keydown", n), document.body.style.overflow = "";
|
|
588
|
+
}), { __sfc: !0, props: e, emit: t, close: s, onOverlayClick: l, onKeydown: n };
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
var Jt = function() {
|
|
592
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
593
|
+
return e("transition", { attrs: { name: "cl-modal" } }, [t.modelValue ? e("div", { staticClass: "cl-modal-overlay", class: { "cl-modal-overlay--blur": t.blur }, on: { mousedown: function(l) {
|
|
594
|
+
return l.target !== l.currentTarget ? null : s.onOverlayClick.apply(null, arguments);
|
|
595
|
+
} } }, [e("div", { class: ["cl-modal", `cl-modal--${t.size}`], attrs: { role: "dialog", "aria-modal": "true", "aria-labelledby": t.title ? "cl-modal-title" : void 0 } }, [t.title || t.$slots.header || !t.hideClose ? e("div", { staticClass: "cl-modal__header" }, [t._t("header", function() {
|
|
596
|
+
return [t.title ? e("span", { staticClass: "cl-modal__title", attrs: { id: "cl-modal-title" } }, [t._v(t._s(t.title))]) : t._e()];
|
|
597
|
+
}), t.hideClose ? t._e() : e("button", { staticClass: "cl-modal__close", attrs: { "aria-label": "Fechar" }, on: { click: s.close } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), e("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])])], 2) : t._e(), e("div", { staticClass: "cl-modal__body" }, [t._t("default")], 2), t.$slots.footer ? e("div", { staticClass: "cl-modal__footer" }, [t._t("footer")], 2) : t._e()])]) : t._e()]);
|
|
598
|
+
}, Qt = [], Zt = /* @__PURE__ */ i(
|
|
599
|
+
Yt,
|
|
600
|
+
Jt,
|
|
601
|
+
Qt,
|
|
602
|
+
!1,
|
|
603
|
+
null,
|
|
604
|
+
null
|
|
605
|
+
);
|
|
606
|
+
const te = Zt.exports;
|
|
607
|
+
let ee = 0;
|
|
608
|
+
const v = V({ items: [] });
|
|
609
|
+
function g(a, t = "info") {
|
|
610
|
+
const e = ++ee, s = typeof a == "string" ? { id: e, type: t, title: a, duration: 4e3, position: "top-right" } : { id: e, ...a };
|
|
611
|
+
return s.id = e, s.duration > 0 && (s._timer = setTimeout(() => $(e), s.duration)), v.items.push(s), e;
|
|
612
|
+
}
|
|
613
|
+
function $(a) {
|
|
614
|
+
const t = v.items.findIndex((e) => e.id === a);
|
|
615
|
+
t !== -1 && (clearTimeout(v.items[t]._timer), v.items.splice(t, 1));
|
|
616
|
+
}
|
|
617
|
+
function se() {
|
|
618
|
+
v.items.forEach((a) => clearTimeout(a._timer)), v.items.splice(0);
|
|
619
|
+
}
|
|
620
|
+
function le() {
|
|
621
|
+
return {
|
|
622
|
+
toasts: v.items,
|
|
623
|
+
add: g,
|
|
624
|
+
remove: $,
|
|
625
|
+
clear: se,
|
|
626
|
+
success: (a, t) => g({ title: a, type: "success", duration: 4e3, position: "top-right", ...t }),
|
|
627
|
+
error: (a, t) => g({ title: a, type: "error", duration: 4e3, position: "top-right", ...t }),
|
|
628
|
+
warning: (a, t) => g({ title: a, type: "warning", duration: 4e3, position: "top-right", ...t }),
|
|
629
|
+
info: (a, t) => g({ title: a, type: "info", duration: 4e3, position: "top-right", ...t })
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
const ae = /* @__PURE__ */ o({
|
|
633
|
+
__name: "CreatorsToaster",
|
|
634
|
+
setup(a) {
|
|
635
|
+
const { toasts: t, remove: e } = le(), s = [
|
|
636
|
+
"top-left",
|
|
637
|
+
"top-center",
|
|
638
|
+
"top-right",
|
|
639
|
+
"bottom-left",
|
|
640
|
+
"bottom-center",
|
|
641
|
+
"bottom-right"
|
|
642
|
+
];
|
|
643
|
+
function l(c) {
|
|
644
|
+
return t.filter((_) => _.position === c);
|
|
645
|
+
}
|
|
646
|
+
const n = /* @__PURE__ */ new Map();
|
|
647
|
+
function r(c) {
|
|
648
|
+
if (c.duration <= 0) return;
|
|
649
|
+
clearTimeout(c._timer);
|
|
650
|
+
const _ = n.get(c.id), m = _ ? _.remaining : c.duration;
|
|
651
|
+
n.set(c.id, { remaining: m, startedAt: Date.now() });
|
|
652
|
+
}
|
|
653
|
+
function d(c) {
|
|
654
|
+
const _ = n.get(c.id);
|
|
655
|
+
if (!_) return;
|
|
656
|
+
const m = Date.now() - _.startedAt, w = Math.max(_.remaining - m, 0);
|
|
657
|
+
n.delete(c.id), c._timer = setTimeout(() => e(c.id), w);
|
|
658
|
+
}
|
|
659
|
+
return { __sfc: !0, toasts: t, remove: e, positions: s, byPosition: l, paused: n, pauseTimer: r, resumeTimer: d };
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
var ne = function() {
|
|
663
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
664
|
+
return e("div", { staticClass: "cl-toaster" }, t._l(s.positions, function(l) {
|
|
665
|
+
return e("transition-group", { key: l, class: ["cl-toast-group", `cl-toast-group--${l}`], attrs: { tag: "div", name: "cl-toast" } }, t._l(s.byPosition(l), function(n) {
|
|
666
|
+
return e("div", { key: n.id, class: ["cl-toast", `cl-toast--${n.type}`], attrs: { role: "alert" }, on: { mouseenter: function(r) {
|
|
667
|
+
return s.pauseTimer(n);
|
|
668
|
+
}, mouseleave: function(r) {
|
|
669
|
+
return s.resumeTimer(n);
|
|
670
|
+
} } }, [e("div", { staticClass: "cl-toast__icon" }, [n.type === "success" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" } }), e("polyline", { attrs: { points: "22 4 12 14.01 9 11.01" } })]) : n.type === "error" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), e("line", { attrs: { x1: "15", y1: "9", x2: "9", y2: "15" } }), e("line", { attrs: { x1: "9", y1: "9", x2: "15", y2: "15" } })]) : n.type === "warning" ? e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" } }), e("line", { attrs: { x1: "12", y1: "9", x2: "12", y2: "13" } }), e("line", { attrs: { x1: "12", y1: "17", x2: "12.01", y2: "17" } })]) : e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), e("line", { attrs: { x1: "12", y1: "16", x2: "12", y2: "12" } }), e("line", { attrs: { x1: "12", y1: "8", x2: "12.01", y2: "8" } })])]), e("div", { staticClass: "cl-toast__body" }, [e("span", { staticClass: "cl-toast__title" }, [t._v(t._s(n.title))]), n.description ? e("span", { staticClass: "cl-toast__desc" }, [t._v(t._s(n.description))]) : t._e()]), e("button", { staticClass: "cl-toast__close", attrs: { "aria-label": "Fechar" }, on: { click: function(r) {
|
|
671
|
+
return s.remove(n.id);
|
|
672
|
+
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), e("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])]), n.duration > 0 ? e("div", { staticClass: "cl-toast__progress" }, [e("div", { staticClass: "cl-toast__progress-bar", style: { animationDuration: `${n.duration}ms` } })]) : t._e()]);
|
|
673
|
+
}), 0);
|
|
674
|
+
}), 1);
|
|
675
|
+
}, re = [], oe = /* @__PURE__ */ i(
|
|
676
|
+
ae,
|
|
677
|
+
ne,
|
|
678
|
+
re,
|
|
679
|
+
!1,
|
|
680
|
+
null,
|
|
681
|
+
null
|
|
682
|
+
);
|
|
683
|
+
const ie = oe.exports, ce = /* @__PURE__ */ o({
|
|
684
|
+
__name: "CreatorsSkeleton",
|
|
685
|
+
props: {
|
|
686
|
+
loading: { type: Boolean, default: !0 },
|
|
687
|
+
variant: { default: "rect" },
|
|
688
|
+
width: null,
|
|
689
|
+
height: null,
|
|
690
|
+
radius: null,
|
|
691
|
+
lines: { default: 3 },
|
|
692
|
+
animated: { type: Boolean, default: !0 }
|
|
693
|
+
},
|
|
694
|
+
setup(a) {
|
|
695
|
+
return { __sfc: !0 };
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
var _e = function() {
|
|
699
|
+
var t = this, e = t._self._c;
|
|
700
|
+
return t._self._setupProxy, t.loading ? [t.variant !== "text" ? e("div", { class: ["cl-skeleton", `cl-skeleton--${t.variant}`, { "cl-skeleton--no-animation": !t.animated }], style: { width: t.width, height: t.height, borderRadius: t.radius } }) : e("div", { staticClass: "cl-skeleton-text" }, t._l(t.lines, function(s) {
|
|
701
|
+
return e("div", { key: s, class: ["cl-skeleton", "cl-skeleton--rect", { "cl-skeleton--no-animation": !t.animated }], style: {
|
|
702
|
+
height: "14px",
|
|
703
|
+
width: s === t.lines && t.lines > 1 ? "65%" : t.width ?? "100%"
|
|
704
|
+
} });
|
|
705
|
+
}), 0)] : t._t("default");
|
|
706
|
+
}, de = [], ue = /* @__PURE__ */ i(
|
|
707
|
+
ce,
|
|
708
|
+
_e,
|
|
709
|
+
de,
|
|
710
|
+
!1,
|
|
711
|
+
null,
|
|
712
|
+
"3b626f1f"
|
|
713
|
+
);
|
|
714
|
+
const h = ue.exports, pe = /* @__PURE__ */ o({
|
|
715
|
+
__name: "CreatorsSkeletonCard",
|
|
716
|
+
setup(a) {
|
|
717
|
+
return { __sfc: !0, CreatorsSkeleton: h };
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
var fe = function() {
|
|
721
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
722
|
+
return e("div", { staticClass: "cl-skeleton-card" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "100%", height: "180px" } }), e("div", { staticClass: "cl-skeleton-card__body" }, [e("div", { staticClass: "cl-skeleton-card__header" }, [e(s.CreatorsSkeleton, { attrs: { variant: "circle", width: "40px", height: "40px" } }), e("div", { staticClass: "cl-skeleton-card__meta" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "120px", height: "14px" } }), e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "80px", height: "12px" } })], 1)], 1), e(s.CreatorsSkeleton, { attrs: { variant: "text", lines: 3 } }), e("div", { staticClass: "cl-skeleton-card__footer" }, [e(s.CreatorsSkeleton, { attrs: { variant: "pill", width: "72px", height: "28px" } }), e(s.CreatorsSkeleton, { attrs: { variant: "pill", width: "72px", height: "28px" } })], 1)], 1)], 1);
|
|
723
|
+
}, ve = [], he = /* @__PURE__ */ i(
|
|
724
|
+
pe,
|
|
725
|
+
fe,
|
|
726
|
+
ve,
|
|
727
|
+
!1,
|
|
728
|
+
null,
|
|
729
|
+
"00fa9654"
|
|
730
|
+
);
|
|
731
|
+
const me = he.exports, ge = /* @__PURE__ */ o({
|
|
732
|
+
__name: "CreatorsSkeletonList",
|
|
733
|
+
props: {
|
|
734
|
+
rows: { default: 5 },
|
|
735
|
+
avatar: { type: Boolean, default: !0 },
|
|
736
|
+
subtitle: { type: Boolean, default: !0 },
|
|
737
|
+
action: { type: Boolean, default: !1 }
|
|
738
|
+
},
|
|
739
|
+
setup(a) {
|
|
740
|
+
return { __sfc: !0, titleWidths: ["60%", "75%", "50%", "80%", "65%"], subtitleWidths: ["40%", "55%", "35%", "50%", "45%"], CreatorsSkeleton: h };
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
var we = function() {
|
|
744
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
745
|
+
return e("div", { staticClass: "cl-skeleton-list" }, t._l(t.rows, function(l) {
|
|
746
|
+
return e("div", { key: l, staticClass: "cl-skeleton-list__item" }, [t.avatar ? e(s.CreatorsSkeleton, { attrs: { variant: "circle", width: "44px", height: "44px" } }) : t._e(), e("div", { staticClass: "cl-skeleton-list__content" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: s.titleWidths[(l - 1) % s.titleWidths.length], height: "14px" } }), t.subtitle ? e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: s.subtitleWidths[(l - 1) % s.subtitleWidths.length], height: "12px" } }) : t._e()], 1), t.action ? e(s.CreatorsSkeleton, { attrs: { variant: "pill", width: "64px", height: "28px" } }) : t._e()], 1);
|
|
747
|
+
}), 0);
|
|
748
|
+
}, Ce = [], xe = /* @__PURE__ */ i(
|
|
749
|
+
ge,
|
|
750
|
+
we,
|
|
751
|
+
Ce,
|
|
752
|
+
!1,
|
|
753
|
+
null,
|
|
754
|
+
"295ec324"
|
|
755
|
+
);
|
|
756
|
+
const ke = xe.exports, ye = /* @__PURE__ */ o({
|
|
757
|
+
__name: "CreatorsSkeletonSimpleList",
|
|
758
|
+
props: {
|
|
759
|
+
loading: { type: Boolean, default: !0 },
|
|
760
|
+
rows: { default: 6 },
|
|
761
|
+
height: { default: "44px" }
|
|
762
|
+
},
|
|
763
|
+
setup(a) {
|
|
764
|
+
return { __sfc: !0, CreatorsSkeleton: h };
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
var be = function() {
|
|
768
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
769
|
+
return t.loading ? [e("div", { staticClass: "cl-skeleton-simple-list" }, t._l(t.rows, function(l) {
|
|
770
|
+
return e("div", { key: l, staticClass: "cl-skeleton-simple-list__item" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "100%", height: t.height, radius: "var(--cl-radius-lg, 12px)" } })], 1);
|
|
771
|
+
}), 0)] : t._t("default");
|
|
772
|
+
}, $e = [], Be = /* @__PURE__ */ i(
|
|
773
|
+
ye,
|
|
774
|
+
be,
|
|
775
|
+
$e,
|
|
776
|
+
!1,
|
|
777
|
+
null,
|
|
778
|
+
"f47e1288"
|
|
779
|
+
);
|
|
780
|
+
const Se = Be.exports, Ve = /* @__PURE__ */ o({
|
|
781
|
+
__name: "CreatorsSkeletonProfile",
|
|
782
|
+
props: {
|
|
783
|
+
avatarSize: { default: "80px" }
|
|
784
|
+
},
|
|
785
|
+
setup(a) {
|
|
786
|
+
return { __sfc: !0, CreatorsSkeleton: h };
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
var Pe = function() {
|
|
790
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
791
|
+
return e("div", { staticClass: "cl-skeleton-profile" }, [e(s.CreatorsSkeleton, { staticClass: "cl-skeleton-profile__cover", attrs: { variant: "rect", width: "100%", height: "120px" } }), e("div", { staticClass: "cl-skeleton-profile__body" }, [e(s.CreatorsSkeleton, { staticClass: "cl-skeleton-profile__avatar", attrs: { variant: "circle", width: t.avatarSize, height: t.avatarSize } }), e("div", { staticClass: "cl-skeleton-profile__info" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "160px", height: "18px" } }), e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "100px", height: "13px" } }), e(s.CreatorsSkeleton, { attrs: { variant: "text", lines: 2, width: "320px" } }), e("div", { staticClass: "cl-skeleton-profile__stats" }, t._l(3, function(l) {
|
|
792
|
+
return e("div", { key: l, staticClass: "cl-skeleton-profile__stat" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "48px", height: "18px" } }), e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "56px", height: "12px" } })], 1);
|
|
793
|
+
}), 0)], 1)], 1)], 1);
|
|
794
|
+
}, Re = [], je = /* @__PURE__ */ i(
|
|
795
|
+
Ve,
|
|
796
|
+
Pe,
|
|
797
|
+
Re,
|
|
798
|
+
!1,
|
|
799
|
+
null,
|
|
800
|
+
"a6635fb6"
|
|
801
|
+
);
|
|
802
|
+
const Fe = je.exports, ze = /* @__PURE__ */ o({
|
|
803
|
+
__name: "CreatorsSkeletonTable",
|
|
804
|
+
props: {
|
|
805
|
+
rows: { default: 5 },
|
|
806
|
+
cols: { default: 4 }
|
|
807
|
+
},
|
|
808
|
+
setup(a) {
|
|
809
|
+
return { __sfc: !0, CreatorsSkeleton: h };
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
var Le = function() {
|
|
813
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
814
|
+
return e("div", { staticClass: "cl-skeleton-table" }, [e("div", { staticClass: "cl-skeleton-table__head" }, t._l(t.cols, function(l) {
|
|
815
|
+
return e("div", { key: l, staticClass: "cl-skeleton-table__cell" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "80px", height: "11px" } })], 1);
|
|
816
|
+
}), 0), t._l(t.rows, function(l) {
|
|
817
|
+
return e("div", { key: l, staticClass: "cl-skeleton-table__row" }, t._l(t.cols, function(n) {
|
|
818
|
+
return e("div", { key: n, staticClass: "cl-skeleton-table__cell" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: n === 1 ? "140px" : n === t.cols ? "60px" : `${70 + (l + n) % 3 * 20}px`, height: "13px" } })], 1);
|
|
819
|
+
}), 0);
|
|
820
|
+
})], 2);
|
|
821
|
+
}, Te = [], Me = /* @__PURE__ */ i(
|
|
822
|
+
ze,
|
|
823
|
+
Le,
|
|
824
|
+
Te,
|
|
825
|
+
!1,
|
|
826
|
+
null,
|
|
827
|
+
"175f116d"
|
|
828
|
+
);
|
|
829
|
+
const Oe = Me.exports, Ie = /* @__PURE__ */ o({
|
|
830
|
+
__name: "CreatorsRow",
|
|
831
|
+
props: {
|
|
832
|
+
align: null,
|
|
833
|
+
justify: null,
|
|
834
|
+
noGutter: { type: Boolean, default: !1 }
|
|
835
|
+
},
|
|
836
|
+
setup(a) {
|
|
837
|
+
return { __sfc: !0 };
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
var Ee = function() {
|
|
841
|
+
var t = this, e = t._self._c;
|
|
842
|
+
return t._self._setupProxy, e("div", { class: [
|
|
843
|
+
"cl-row",
|
|
844
|
+
t.align ? `cl-row--align-${t.align}` : "",
|
|
845
|
+
t.justify ? `cl-row--justify-${t.justify}` : "",
|
|
846
|
+
t.noGutter ? "cl-row--no-gutter" : ""
|
|
847
|
+
] }, [t._t("default")], 2);
|
|
848
|
+
}, De = [], We = /* @__PURE__ */ i(
|
|
849
|
+
Ie,
|
|
850
|
+
Ee,
|
|
851
|
+
De,
|
|
852
|
+
!1,
|
|
853
|
+
null,
|
|
854
|
+
null
|
|
855
|
+
);
|
|
856
|
+
const Ae = We.exports, Ke = /* @__PURE__ */ o({
|
|
857
|
+
__name: "CreatorsCol",
|
|
858
|
+
props: {
|
|
859
|
+
cols: null,
|
|
860
|
+
sm: null,
|
|
861
|
+
md: null,
|
|
862
|
+
lg: null,
|
|
863
|
+
xl: null,
|
|
864
|
+
offset: null,
|
|
865
|
+
offsetSm: null,
|
|
866
|
+
offsetMd: null,
|
|
867
|
+
offsetLg: null,
|
|
868
|
+
offsetXl: null
|
|
869
|
+
},
|
|
870
|
+
setup(a) {
|
|
871
|
+
const t = a, e = u(() => {
|
|
872
|
+
const s = ["cl-col"];
|
|
873
|
+
return t.cols && s.push(`c-${t.cols}`), t.sm && s.push(`c-sm-${t.sm}`), t.md && s.push(`c-md-${t.md}`), t.lg && s.push(`c-lg-${t.lg}`), t.xl && s.push(`c-xl-${t.xl}`), t.offset && s.push(`c-offset-${t.offset}`), t.offsetSm && s.push(`c-sm-offset-${t.offsetSm}`), t.offsetMd && s.push(`c-md-offset-${t.offsetMd}`), t.offsetLg && s.push(`c-lg-offset-${t.offsetLg}`), t.offsetXl && s.push(`c-xl-offset-${t.offsetXl}`), s;
|
|
874
|
+
});
|
|
875
|
+
return { __sfc: !0, props: t, classes: e };
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
var Ge = function() {
|
|
879
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
880
|
+
return e("div", { class: s.classes }, [t._t("default")], 2);
|
|
881
|
+
}, Xe = [], He = /* @__PURE__ */ i(
|
|
882
|
+
Ke,
|
|
883
|
+
Ge,
|
|
884
|
+
Xe,
|
|
885
|
+
!1,
|
|
886
|
+
null,
|
|
887
|
+
null
|
|
888
|
+
);
|
|
889
|
+
const qe = He.exports, Ne = {
|
|
890
|
+
CreatorsButton: z,
|
|
891
|
+
CreatorsText: I,
|
|
892
|
+
CreatorsAccordion: K,
|
|
893
|
+
CreatorsInput: N,
|
|
894
|
+
CreatorsInputSwitch: Z,
|
|
895
|
+
CreatorsTextarea: at,
|
|
896
|
+
CreatorsSelect: ct,
|
|
897
|
+
CreatorsCheckbox: ft,
|
|
898
|
+
CreatorsRadio: wt,
|
|
899
|
+
CreatorsRating: bt,
|
|
900
|
+
CreatorsDataTable: Pt,
|
|
901
|
+
CreatorsDivider: Lt,
|
|
902
|
+
CreatorsTimeline: Et,
|
|
903
|
+
CreatorsBadge: Gt,
|
|
904
|
+
CreatorsCard: Ut,
|
|
905
|
+
CreatorsModal: te,
|
|
906
|
+
CreatorsToaster: ie,
|
|
907
|
+
CreatorsSkeleton: h,
|
|
908
|
+
CreatorsSkeletonCard: me,
|
|
909
|
+
CreatorsSkeletonList: ke,
|
|
910
|
+
CreatorsSkeletonSimpleList: Se,
|
|
911
|
+
CreatorsSkeletonProfile: Fe,
|
|
912
|
+
CreatorsSkeletonTable: Oe,
|
|
913
|
+
CreatorsRow: Ae,
|
|
914
|
+
CreatorsCol: qe
|
|
915
|
+
}, Ye = {
|
|
916
|
+
install(a) {
|
|
917
|
+
for (const [t, e] of Object.entries(Ne))
|
|
918
|
+
a.component(t, e);
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
export {
|
|
922
|
+
K as CreatorsAccordion,
|
|
923
|
+
Gt as CreatorsBadge,
|
|
924
|
+
z as CreatorsButton,
|
|
925
|
+
Ut as CreatorsCard,
|
|
926
|
+
ft as CreatorsCheckbox,
|
|
927
|
+
qe as CreatorsCol,
|
|
928
|
+
Pt as CreatorsDataTable,
|
|
929
|
+
Lt as CreatorsDivider,
|
|
930
|
+
N as CreatorsInput,
|
|
931
|
+
Z as CreatorsInputSwitch,
|
|
932
|
+
Ye as CreatorsLibPlugin,
|
|
933
|
+
te as CreatorsModal,
|
|
934
|
+
wt as CreatorsRadio,
|
|
935
|
+
bt as CreatorsRating,
|
|
936
|
+
Ae as CreatorsRow,
|
|
937
|
+
ct as CreatorsSelect,
|
|
938
|
+
h as CreatorsSkeleton,
|
|
939
|
+
me as CreatorsSkeletonCard,
|
|
940
|
+
ke as CreatorsSkeletonList,
|
|
941
|
+
Fe as CreatorsSkeletonProfile,
|
|
942
|
+
Se as CreatorsSkeletonSimpleList,
|
|
943
|
+
Oe as CreatorsSkeletonTable,
|
|
944
|
+
I as CreatorsText,
|
|
945
|
+
at as CreatorsTextarea,
|
|
946
|
+
Et as CreatorsTimeline,
|
|
947
|
+
ie as CreatorsToaster,
|
|
948
|
+
le as useToast
|
|
949
|
+
};
|