clds-ui 0.3.3 → 0.3.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.
package/dist/creators-lib.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o, computed as
|
|
1
|
+
import { defineComponent as o, computed as d, ref as f, onMounted as y, onUnmounted as b, watch as S, reactive as V } from "vue";
|
|
2
2
|
const P = /* @__PURE__ */ o({
|
|
3
3
|
__name: "CreatorsButton",
|
|
4
4
|
props: {
|
|
@@ -12,14 +12,14 @@ const P = /* @__PURE__ */ o({
|
|
|
12
12
|
return { __sfc: !0, emit: t };
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
function i(a, t, e, s, l,
|
|
15
|
+
function i(a, t, e, s, l, r, n, u) {
|
|
16
16
|
var c = typeof a == "function" ? a.options : a;
|
|
17
|
-
return t && (c.render = t, c.staticRenderFns = e, c._compiled = !0),
|
|
17
|
+
return t && (c.render = t, c.staticRenderFns = e, c._compiled = !0), r && (c._scopeId = "data-v-" + r), {
|
|
18
18
|
exports: a,
|
|
19
19
|
options: c
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var F = function() {
|
|
23
23
|
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
24
24
|
return e("button", t._b({ class: [
|
|
25
25
|
"cl-btn",
|
|
@@ -29,15 +29,15 @@ var R = function() {
|
|
|
29
29
|
], attrs: { disabled: t.disabled || t.loading }, on: { click: function(l) {
|
|
30
30
|
return s.emit("click", l);
|
|
31
31
|
} } }, "button", t.$attrs, !1), [t.loading ? e("span", { staticClass: "cl-btn__spinner", attrs: { "aria-hidden": "true" } }) : t._e(), t._t("default")], 2);
|
|
32
|
-
},
|
|
32
|
+
}, R = [], j = /* @__PURE__ */ i(
|
|
33
33
|
P,
|
|
34
|
+
F,
|
|
34
35
|
R,
|
|
35
|
-
j,
|
|
36
36
|
!1,
|
|
37
37
|
null,
|
|
38
38
|
"bf5586f5"
|
|
39
39
|
);
|
|
40
|
-
const z =
|
|
40
|
+
const z = j.exports, L = /* @__PURE__ */ o({
|
|
41
41
|
__name: "CreatorsText",
|
|
42
42
|
props: {
|
|
43
43
|
variant: { default: "body-md" },
|
|
@@ -63,7 +63,7 @@ const z = F.exports, L = /* @__PURE__ */ o({
|
|
|
63
63
|
"body-lg": "p",
|
|
64
64
|
"body-md": "p",
|
|
65
65
|
"body-sm": "p"
|
|
66
|
-
}, s =
|
|
66
|
+
}, s = d(() => t.as ?? e[t.variant]);
|
|
67
67
|
return { __sfc: !0, props: t, defaultTags: e, resolvedTag: s };
|
|
68
68
|
}
|
|
69
69
|
});
|
|
@@ -89,18 +89,18 @@ const I = O.exports, E = /* @__PURE__ */ o({
|
|
|
89
89
|
const e = a, s = f(
|
|
90
90
|
e.defaultOpen >= 0 ? e.defaultOpen : null
|
|
91
91
|
);
|
|
92
|
-
function l(
|
|
93
|
-
s.value = s.value ===
|
|
92
|
+
function l(r) {
|
|
93
|
+
s.value = s.value === r ? null : r, t("change", s.value);
|
|
94
94
|
}
|
|
95
95
|
return { __sfc: !0, props: e, emit: t, openIndex: s, toggle: l };
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
var D = function() {
|
|
99
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,
|
|
101
|
-
return e("div", { key:
|
|
102
|
-
return s.toggle(
|
|
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-${
|
|
100
|
+
return e("div", { staticClass: "cl-accordion" }, t._l(t.items, function(l, r) {
|
|
101
|
+
return e("div", { key: r, staticClass: "cl-accordion__item", class: { "cl-accordion__item--open": s.openIndex === r } }, [e("button", { staticClass: "cl-accordion__trigger", on: { click: function(n) {
|
|
102
|
+
return s.toggle(r);
|
|
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-${r}`, function() {
|
|
104
104
|
return [t._v(t._s(l.content))];
|
|
105
105
|
})], 2)])]);
|
|
106
106
|
}), 0);
|
|
@@ -131,23 +131,23 @@ const K = A.exports, G = /* @__PURE__ */ o({
|
|
|
131
131
|
},
|
|
132
132
|
emits: ["update:modelValue", "enter", "focus", "blur", "clear", "search"],
|
|
133
133
|
setup(a, { emit: t }) {
|
|
134
|
-
function e(
|
|
135
|
-
t("update:modelValue",
|
|
134
|
+
function e(n) {
|
|
135
|
+
t("update:modelValue", n.target.value);
|
|
136
136
|
}
|
|
137
|
-
function s(
|
|
138
|
-
const
|
|
139
|
-
t("enter",
|
|
137
|
+
function s(n) {
|
|
138
|
+
const u = n.target.value;
|
|
139
|
+
t("enter", u), t("search", u);
|
|
140
140
|
}
|
|
141
141
|
function l() {
|
|
142
142
|
t("update:modelValue", ""), t("clear");
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function r() {
|
|
145
145
|
t("search", "");
|
|
146
146
|
}
|
|
147
|
-
return { __sfc: !0, emit: t, onInput: e, onEnter: s, onClear: l, onSearch:
|
|
147
|
+
return { __sfc: !0, emit: t, onInput: e, onEnter: s, onClear: l, onSearch: r };
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
-
var
|
|
150
|
+
var U = function() {
|
|
151
151
|
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
152
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
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()];
|
|
@@ -158,15 +158,15 @@ var X = function() {
|
|
|
158
158
|
}, blur: function(l) {
|
|
159
159
|
return s.emit("blur", l);
|
|
160
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
|
-
},
|
|
161
|
+
}, X = [], H = /* @__PURE__ */ i(
|
|
162
162
|
G,
|
|
163
|
+
U,
|
|
163
164
|
X,
|
|
164
|
-
H,
|
|
165
165
|
!1,
|
|
166
166
|
null,
|
|
167
167
|
"914bb790"
|
|
168
168
|
);
|
|
169
|
-
const
|
|
169
|
+
const q = H.exports, N = /* @__PURE__ */ o({
|
|
170
170
|
__name: "CreatorsInputSwitch",
|
|
171
171
|
props: {
|
|
172
172
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -189,7 +189,7 @@ var Y = function() {
|
|
|
189
189
|
var a = this, t = a._self._c;
|
|
190
190
|
return a._self._setupProxy, t("span", { staticClass: "cl-switch__track" }, [t("span", { staticClass: "cl-switch__thumb" })]);
|
|
191
191
|
}], Q = /* @__PURE__ */ i(
|
|
192
|
-
|
|
192
|
+
N,
|
|
193
193
|
Y,
|
|
194
194
|
J,
|
|
195
195
|
!1,
|
|
@@ -212,16 +212,16 @@ const Z = Q.exports, tt = /* @__PURE__ */ o({
|
|
|
212
212
|
emits: ["update:modelValue", "enter", "focus", "blur"],
|
|
213
213
|
setup(a, { emit: t }) {
|
|
214
214
|
const e = a;
|
|
215
|
-
function s(
|
|
216
|
-
t("update:modelValue",
|
|
215
|
+
function s(n) {
|
|
216
|
+
t("update:modelValue", n.target.value);
|
|
217
217
|
}
|
|
218
|
-
function l(
|
|
219
|
-
t("enter",
|
|
218
|
+
function l(n) {
|
|
219
|
+
t("enter", n.target.value);
|
|
220
220
|
}
|
|
221
|
-
const
|
|
221
|
+
const r = d(
|
|
222
222
|
() => e.maxlength !== void 0 && (e.modelValue ?? "").length > e.maxlength
|
|
223
223
|
);
|
|
224
|
-
return { __sfc: !0, props: e, emit: t, onInput: s, onEnter: l, isOver:
|
|
224
|
+
return { __sfc: !0, props: e, emit: t, onInput: s, onEnter: l, isOver: r };
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
227
|
var et = function() {
|
|
@@ -241,7 +241,7 @@ var et = function() {
|
|
|
241
241
|
null,
|
|
242
242
|
"4d2b35a5"
|
|
243
243
|
);
|
|
244
|
-
const at = lt.exports,
|
|
244
|
+
const at = lt.exports, rt = /* @__PURE__ */ o({
|
|
245
245
|
__name: "CreatorsSelect",
|
|
246
246
|
props: {
|
|
247
247
|
modelValue: null,
|
|
@@ -255,31 +255,31 @@ const at = lt.exports, nt = /* @__PURE__ */ o({
|
|
|
255
255
|
},
|
|
256
256
|
emits: ["update:modelValue", "change"],
|
|
257
257
|
setup(a, { emit: t }) {
|
|
258
|
-
const e = a, s = f(!1), l = f(null),
|
|
258
|
+
const e = a, s = f(!1), l = f(null), r = d(
|
|
259
259
|
() => e.options.find((_) => _.value === e.modelValue) ?? null
|
|
260
260
|
);
|
|
261
|
-
function
|
|
261
|
+
function n() {
|
|
262
262
|
e.disabled || (s.value = !s.value);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function u(_) {
|
|
265
265
|
t("update:modelValue", _.value), t("change", _.value), s.value = !1;
|
|
266
266
|
}
|
|
267
267
|
function c(_) {
|
|
268
268
|
l.value && !l.value.contains(_.target) && (s.value = !1);
|
|
269
269
|
}
|
|
270
|
-
return y(() => document.addEventListener("mousedown", c)), b(() => document.removeEventListener("mousedown", c)), { __sfc: !0, props: e, emit: t, isOpen: s, rootRef: l, selectedOption:
|
|
270
|
+
return y(() => document.addEventListener("mousedown", c)), b(() => document.removeEventListener("mousedown", c)), { __sfc: !0, props: e, emit: t, isOpen: s, rootRef: l, selectedOption: r, toggle: n, select: u, onClickOutside: c };
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
|
-
var
|
|
273
|
+
var nt = function() {
|
|
274
274
|
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
275
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(
|
|
276
|
+
return e("li", { key: l.value, class: ["cl-select__option", { "cl-select__option--selected": l.value === t.modelValue }], on: { click: function(r) {
|
|
277
277
|
return s.select(l);
|
|
278
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
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
280
|
}, ot = [], it = /* @__PURE__ */ i(
|
|
281
|
-
nt,
|
|
282
281
|
rt,
|
|
282
|
+
nt,
|
|
283
283
|
ot,
|
|
284
284
|
!1,
|
|
285
285
|
null,
|
|
@@ -349,11 +349,11 @@ const wt = gt.exports, Ct = /* @__PURE__ */ o({
|
|
|
349
349
|
},
|
|
350
350
|
emits: ["update:modelValue", "change"],
|
|
351
351
|
setup(a, { emit: t }) {
|
|
352
|
-
const e = a, s = f(null), l =
|
|
353
|
-
function n
|
|
354
|
-
t("update:modelValue",
|
|
352
|
+
const e = a, s = f(null), l = d(() => ({ sm: 16, md: 24, lg: 32 })[e.size]);
|
|
353
|
+
function r(n) {
|
|
354
|
+
t("update:modelValue", n), t("change", n);
|
|
355
355
|
}
|
|
356
|
-
return { __sfc: !0, props: e, emit: t, hovered: s, starSize: l, select:
|
|
356
|
+
return { __sfc: !0, props: e, emit: t, hovered: s, starSize: l, select: r };
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
var xt = function() {
|
|
@@ -361,11 +361,11 @@ var xt = function() {
|
|
|
361
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
362
|
return e("button", { key: l, staticClass: "cl-rating__star", class: {
|
|
363
363
|
"cl-rating__star--filled": l <= (s.hovered ?? t.modelValue ?? 0)
|
|
364
|
-
}, attrs: { type: "button", disabled: t.disabled || t.readonly }, on: { click: function(
|
|
364
|
+
}, attrs: { type: "button", disabled: t.disabled || t.readonly }, on: { click: function(r) {
|
|
365
365
|
return s.select(l);
|
|
366
|
-
}, mouseenter: function(
|
|
366
|
+
}, mouseenter: function(r) {
|
|
367
367
|
s.hovered = l;
|
|
368
|
-
}, mouseleave: function(
|
|
368
|
+
}, mouseleave: function(r) {
|
|
369
369
|
s.hovered = null;
|
|
370
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
371
|
}), t.showValue ? e("span", { staticClass: "cl-rating__value" }, [t._v(t._s(t.modelValue ?? 0) + "/" + t._s(t.count))]) : t._e()], 2);
|
|
@@ -390,37 +390,37 @@ const bt = yt.exports, $t = /* @__PURE__ */ o({
|
|
|
390
390
|
},
|
|
391
391
|
emits: ["row-click", "sort"],
|
|
392
392
|
setup(a, { emit: t }) {
|
|
393
|
-
const e = a, s = f(null), l = f("asc"),
|
|
394
|
-
function
|
|
393
|
+
const e = a, s = f(null), l = f("asc"), r = f(1);
|
|
394
|
+
function n(p) {
|
|
395
395
|
s.value === p ? l.value = l.value === "asc" ? "desc" : "asc" : (s.value = p, l.value = "asc"), t("sort", s.value, l.value);
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const u = d(() => s.value ? [...e.rows].sort((p, B) => {
|
|
398
398
|
const C = p[s.value], x = B[s.value];
|
|
399
399
|
if (C == null) return 1;
|
|
400
400
|
if (x == null) return -1;
|
|
401
401
|
const k = C < x ? -1 : C > x ? 1 : 0;
|
|
402
402
|
return l.value === "asc" ? k : -k;
|
|
403
|
-
}) : [...e.rows]), c =
|
|
404
|
-
if (!e.pagination) return
|
|
405
|
-
const p = (
|
|
406
|
-
return
|
|
407
|
-
}), m =
|
|
408
|
-
return { __sfc: !0, props: e, emit: t, sortKey: s, sortDir: l, page:
|
|
403
|
+
}) : [...e.rows]), c = d(() => Math.max(1, Math.ceil(e.rows.length / e.pageSize))), _ = d(() => {
|
|
404
|
+
if (!e.pagination) return u.value;
|
|
405
|
+
const p = (r.value - 1) * e.pageSize;
|
|
406
|
+
return u.value.slice(p, p + e.pageSize);
|
|
407
|
+
}), m = d(() => Math.min((r.value - 1) * e.pageSize + 1, e.rows.length)), w = d(() => Math.min(r.value * e.pageSize, e.rows.length));
|
|
408
|
+
return { __sfc: !0, props: e, emit: t, sortKey: s, sortDir: l, page: r, toggleSort: n, sorted: u, totalPages: c, sortedRows: _, paginationStart: m, paginationEnd: w };
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
var Bt = function() {
|
|
412
412
|
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
413
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(
|
|
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(r) {
|
|
415
415
|
l.sortable && s.toggleSort(l.key);
|
|
416
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,
|
|
418
|
-
return e("tr", { key:
|
|
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, r) {
|
|
418
|
+
return e("tr", { key: r, staticClass: "cl-table__row", class: { "cl-table__row--clickable": !!t.onRowClick }, on: { click: function(n) {
|
|
419
419
|
t.onRowClick && s.emit("row-click", l);
|
|
420
|
-
} } }, t._l(t.columns, function(
|
|
421
|
-
return e("td", { key:
|
|
422
|
-
return [t._v(" " + t._s(l[
|
|
423
|
-
}, { row: l, value: l[
|
|
420
|
+
} } }, t._l(t.columns, function(n) {
|
|
421
|
+
return e("td", { key: n.key, staticClass: "cl-table__td" }, [t._t(`cell-${n.key}`, function() {
|
|
422
|
+
return [t._v(" " + t._s(l[n.key]) + " ")];
|
|
423
|
+
}, { row: l, value: l[n.key] })], 2);
|
|
424
424
|
}), 0);
|
|
425
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
426
|
s.page--;
|
|
@@ -438,7 +438,7 @@ var Bt = function() {
|
|
|
438
438
|
null,
|
|
439
439
|
"7b8da436"
|
|
440
440
|
);
|
|
441
|
-
const Pt = Vt.exports,
|
|
441
|
+
const Pt = Vt.exports, Ft = /* @__PURE__ */ o({
|
|
442
442
|
__name: "CreatorsDivider",
|
|
443
443
|
props: {
|
|
444
444
|
label: null,
|
|
@@ -450,7 +450,7 @@ const Pt = Vt.exports, Rt = /* @__PURE__ */ o({
|
|
|
450
450
|
return { __sfc: !0 };
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
|
-
var
|
|
453
|
+
var Rt = function() {
|
|
454
454
|
var t = this, e = t._self._c;
|
|
455
455
|
return t._self._setupProxy, e("div", { class: [
|
|
456
456
|
"cl-divider",
|
|
@@ -458,10 +458,10 @@ var jt = function() {
|
|
|
458
458
|
{ "cl-divider--dashed": t.dashed },
|
|
459
459
|
t.label ? `cl-divider--label-${t.align}` : ""
|
|
460
460
|
], attrs: { role: "separator" } }, [t.label ? e("span", { staticClass: "cl-divider__label" }, [t._v(t._s(t.label))]) : t._e()]);
|
|
461
|
-
},
|
|
461
|
+
}, jt = [], zt = /* @__PURE__ */ i(
|
|
462
|
+
Ft,
|
|
462
463
|
Rt,
|
|
463
464
|
jt,
|
|
464
|
-
Ft,
|
|
465
465
|
!1,
|
|
466
466
|
null,
|
|
467
467
|
"31f5c2f9"
|
|
@@ -525,7 +525,7 @@ var Wt = function() {
|
|
|
525
525
|
null,
|
|
526
526
|
"36988d61"
|
|
527
527
|
);
|
|
528
|
-
const Gt = Kt.exports,
|
|
528
|
+
const Gt = Kt.exports, Ut = /* @__PURE__ */ o({
|
|
529
529
|
__name: "CreatorsCard",
|
|
530
530
|
props: {
|
|
531
531
|
title: null,
|
|
@@ -539,7 +539,7 @@ const Gt = Kt.exports, Xt = /* @__PURE__ */ o({
|
|
|
539
539
|
return { __sfc: !0 };
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
|
-
var
|
|
542
|
+
var Xt = function() {
|
|
543
543
|
var t = this, e = t._self._c;
|
|
544
544
|
return t._self._setupProxy, e("div", { class: [
|
|
545
545
|
"cl-card",
|
|
@@ -551,15 +551,15 @@ var Ht = function() {
|
|
|
551
551
|
})], 2) : t._e(), t.description || t.$slots.description ? e("div", { staticClass: "cl-card__description" }, [t._t("description", function() {
|
|
552
552
|
return [t._v(t._s(t.description))];
|
|
553
553
|
})], 2) : t._e(), t._t("default")], 2), t.$slots.footer ? e("div", { staticClass: "cl-card__footer" }, [t._t("footer")], 2) : t._e()]);
|
|
554
|
-
},
|
|
554
|
+
}, Ht = [], qt = /* @__PURE__ */ i(
|
|
555
|
+
Ut,
|
|
555
556
|
Xt,
|
|
556
557
|
Ht,
|
|
557
|
-
qt,
|
|
558
558
|
!1,
|
|
559
559
|
null,
|
|
560
560
|
"152c5819"
|
|
561
561
|
);
|
|
562
|
-
const
|
|
562
|
+
const Nt = qt.exports, Yt = /* @__PURE__ */ o({
|
|
563
563
|
__name: "CreatorsModal",
|
|
564
564
|
props: {
|
|
565
565
|
modelValue: { type: Boolean },
|
|
@@ -578,14 +578,14 @@ const Ut = Nt.exports, Yt = /* @__PURE__ */ o({
|
|
|
578
578
|
function l() {
|
|
579
579
|
e.persistent || s();
|
|
580
580
|
}
|
|
581
|
-
function n
|
|
582
|
-
|
|
581
|
+
function r(n) {
|
|
582
|
+
n.key === "Escape" && e.modelValue && !e.persistent && s();
|
|
583
583
|
}
|
|
584
|
-
return S(() => e.modelValue, (
|
|
585
|
-
document.body.style.overflow =
|
|
586
|
-
}), y(() => window.addEventListener("keydown",
|
|
587
|
-
window.removeEventListener("keydown",
|
|
588
|
-
}), { __sfc: !0, props: e, emit: t, close: s, onOverlayClick: l, onKeydown:
|
|
584
|
+
return S(() => e.modelValue, (n) => {
|
|
585
|
+
document.body.style.overflow = n ? "hidden" : "";
|
|
586
|
+
}), y(() => window.addEventListener("keydown", r)), b(() => {
|
|
587
|
+
window.removeEventListener("keydown", r), document.body.style.overflow = "";
|
|
588
|
+
}), { __sfc: !0, props: e, emit: t, close: s, onOverlayClick: l, onKeydown: r };
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
591
|
var Jt = function() {
|
|
@@ -643,39 +643,39 @@ const ae = /* @__PURE__ */ o({
|
|
|
643
643
|
function l(c) {
|
|
644
644
|
return t.filter((_) => _.position === c);
|
|
645
645
|
}
|
|
646
|
-
const
|
|
647
|
-
function
|
|
646
|
+
const r = /* @__PURE__ */ new Map();
|
|
647
|
+
function n(c) {
|
|
648
648
|
if (c.duration <= 0) return;
|
|
649
649
|
clearTimeout(c._timer);
|
|
650
|
-
const _ =
|
|
651
|
-
|
|
650
|
+
const _ = r.get(c.id), m = _ ? _.remaining : c.duration;
|
|
651
|
+
r.set(c.id, { remaining: m, startedAt: Date.now() });
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
const _ =
|
|
653
|
+
function u(c) {
|
|
654
|
+
const _ = r.get(c.id);
|
|
655
655
|
if (!_) return;
|
|
656
656
|
const m = Date.now() - _.startedAt, w = Math.max(_.remaining - m, 0);
|
|
657
|
-
|
|
657
|
+
r.delete(c.id), c._timer = setTimeout(() => e(c.id), w);
|
|
658
658
|
}
|
|
659
|
-
return { __sfc: !0, toasts: t, remove: e, positions: s, byPosition: l, paused:
|
|
659
|
+
return { __sfc: !0, toasts: t, remove: e, positions: s, byPosition: l, paused: r, pauseTimer: n, resumeTimer: u };
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
|
-
var
|
|
662
|
+
var re = function() {
|
|
663
663
|
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
664
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(
|
|
666
|
-
return e("div", { key:
|
|
667
|
-
return s.pauseTimer(
|
|
668
|
-
}, mouseleave: function(
|
|
669
|
-
return s.resumeTimer(
|
|
670
|
-
} } }, [e("div", { staticClass: "cl-toast__icon" }, [
|
|
671
|
-
return s.remove(
|
|
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" } })])]),
|
|
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(r) {
|
|
666
|
+
return e("div", { key: r.id, class: ["cl-toast", `cl-toast--${r.type}`], attrs: { role: "alert" }, on: { mouseenter: function(n) {
|
|
667
|
+
return s.pauseTimer(r);
|
|
668
|
+
}, mouseleave: function(n) {
|
|
669
|
+
return s.resumeTimer(r);
|
|
670
|
+
} } }, [e("div", { staticClass: "cl-toast__icon" }, [r.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" } })]) : r.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" } })]) : r.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(r.title))]), r.description ? e("span", { staticClass: "cl-toast__desc" }, [t._v(t._s(r.description))]) : t._e()]), e("button", { staticClass: "cl-toast__close", attrs: { "aria-label": "Fechar" }, on: { click: function(n) {
|
|
671
|
+
return s.remove(r.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" } })])]), r.duration > 0 ? e("div", { staticClass: "cl-toast__progress" }, [e("div", { staticClass: "cl-toast__progress-bar", style: { animationDuration: `${r.duration}ms` } })]) : t._e()]);
|
|
673
673
|
}), 0);
|
|
674
674
|
}), 1);
|
|
675
|
-
},
|
|
675
|
+
}, ne = [], oe = /* @__PURE__ */ i(
|
|
676
676
|
ae,
|
|
677
|
-
ne,
|
|
678
677
|
re,
|
|
678
|
+
ne,
|
|
679
679
|
!1,
|
|
680
680
|
null,
|
|
681
681
|
null
|
|
@@ -791,15 +791,15 @@ var Pe = function() {
|
|
|
791
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
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
793
|
}), 0)], 1)], 1)], 1);
|
|
794
|
-
},
|
|
794
|
+
}, Fe = [], Re = /* @__PURE__ */ i(
|
|
795
795
|
Ve,
|
|
796
796
|
Pe,
|
|
797
|
-
|
|
797
|
+
Fe,
|
|
798
798
|
!1,
|
|
799
799
|
null,
|
|
800
800
|
"a6635fb6"
|
|
801
801
|
);
|
|
802
|
-
const
|
|
802
|
+
const je = Re.exports, ze = /* @__PURE__ */ o({
|
|
803
803
|
__name: "CreatorsSkeletonTable",
|
|
804
804
|
props: {
|
|
805
805
|
rows: { default: 5 },
|
|
@@ -814,8 +814,8 @@ var Le = function() {
|
|
|
814
814
|
return e("div", { staticClass: "cl-skeleton-table" }, [e("div", { staticClass: "cl-skeleton-table__head" }, t._l(t.cols, function(l) {
|
|
815
815
|
return e("div", { key: l, staticClass: "cl-skeleton-table__cell" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "80px", height: "11px" } })], 1);
|
|
816
816
|
}), 0), t._l(t.rows, function(l) {
|
|
817
|
-
return e("div", { key: l, staticClass: "cl-skeleton-table__row" }, t._l(t.cols, function(
|
|
818
|
-
return e("div", { key:
|
|
817
|
+
return e("div", { key: l, staticClass: "cl-skeleton-table__row" }, t._l(t.cols, function(r) {
|
|
818
|
+
return e("div", { key: r, staticClass: "cl-skeleton-table__cell" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: r === 1 ? "140px" : r === t.cols ? "60px" : `${70 + (l + r) % 3 * 20}px`, height: "13px" } })], 1);
|
|
819
819
|
}), 0);
|
|
820
820
|
})], 2);
|
|
821
821
|
}, Te = [], Me = /* @__PURE__ */ i(
|
|
@@ -868,7 +868,7 @@ const Ae = We.exports, Ke = /* @__PURE__ */ o({
|
|
|
868
868
|
offsetXl: null
|
|
869
869
|
},
|
|
870
870
|
setup(a) {
|
|
871
|
-
const t = a, e =
|
|
871
|
+
const t = a, e = d(() => {
|
|
872
872
|
const s = ["cl-col"];
|
|
873
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
874
|
});
|
|
@@ -878,19 +878,43 @@ const Ae = We.exports, Ke = /* @__PURE__ */ o({
|
|
|
878
878
|
var Ge = function() {
|
|
879
879
|
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
880
880
|
return e("div", { class: s.classes }, [t._t("default")], 2);
|
|
881
|
-
},
|
|
881
|
+
}, Ue = [], Xe = /* @__PURE__ */ i(
|
|
882
882
|
Ke,
|
|
883
883
|
Ge,
|
|
884
|
-
|
|
884
|
+
Ue,
|
|
885
|
+
!1,
|
|
886
|
+
null,
|
|
887
|
+
null
|
|
888
|
+
);
|
|
889
|
+
const He = Xe.exports, qe = /* @__PURE__ */ o({
|
|
890
|
+
__name: "CreatorsProgress",
|
|
891
|
+
props: {
|
|
892
|
+
value: { default: 0 },
|
|
893
|
+
width: { default: 380 },
|
|
894
|
+
height: { default: 10 },
|
|
895
|
+
trackColor: { default: "rgba(255, 255, 255, 0.08)" }
|
|
896
|
+
},
|
|
897
|
+
setup(a) {
|
|
898
|
+
const t = a, e = `cl-prog-${Math.random().toString(36).slice(2, 8)}`, s = d(() => Math.min(100, Math.max(0, t.value))), l = d(() => s.value / 100 * t.width);
|
|
899
|
+
return { __sfc: !0, props: t, gradId: e, clamped: s, fillWidth: l };
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
var Ne = function() {
|
|
903
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
904
|
+
return e("svg", { staticClass: "cl-progress", attrs: { xmlns: "http://www.w3.org/2000/svg", width: t.width, height: t.height, viewBox: `0 0 ${t.width} ${t.height}`, fill: "none" } }, [e("rect", { attrs: { width: t.width, height: t.height, rx: t.height / 2, fill: t.trackColor } }), s.clamped > 0 ? e("rect", { attrs: { width: s.fillWidth, height: t.height, rx: t.height / 2, fill: `url(#${s.gradId})` } }) : t._e(), e("defs", [e("linearGradient", { attrs: { id: s.gradId, x1: 0, y1: 0, x2: t.width, y2: 0, gradientUnits: "userSpaceOnUse" } }, [e("stop", { attrs: { "stop-color": "#6C3AFF" } }), e("stop", { attrs: { offset: "0.656", "stop-color": "#F564FF" } }), e("stop", { attrs: { offset: "0.784", "stop-color": "#FF9864" } })], 1)], 1)]);
|
|
905
|
+
}, Ye = [], Je = /* @__PURE__ */ i(
|
|
906
|
+
qe,
|
|
907
|
+
Ne,
|
|
908
|
+
Ye,
|
|
885
909
|
!1,
|
|
886
910
|
null,
|
|
887
911
|
null
|
|
888
912
|
);
|
|
889
|
-
const
|
|
913
|
+
const Qe = Je.exports, Ze = {
|
|
890
914
|
CreatorsButton: z,
|
|
891
915
|
CreatorsText: I,
|
|
892
916
|
CreatorsAccordion: K,
|
|
893
|
-
CreatorsInput:
|
|
917
|
+
CreatorsInput: q,
|
|
894
918
|
CreatorsInputSwitch: Z,
|
|
895
919
|
CreatorsTextarea: at,
|
|
896
920
|
CreatorsSelect: ct,
|
|
@@ -901,20 +925,21 @@ const qe = He.exports, Ne = {
|
|
|
901
925
|
CreatorsDivider: Lt,
|
|
902
926
|
CreatorsTimeline: Et,
|
|
903
927
|
CreatorsBadge: Gt,
|
|
904
|
-
CreatorsCard:
|
|
928
|
+
CreatorsCard: Nt,
|
|
905
929
|
CreatorsModal: te,
|
|
906
930
|
CreatorsToaster: ie,
|
|
907
931
|
CreatorsSkeleton: h,
|
|
908
932
|
CreatorsSkeletonCard: me,
|
|
909
933
|
CreatorsSkeletonList: ke,
|
|
910
934
|
CreatorsSkeletonSimpleList: Se,
|
|
911
|
-
CreatorsSkeletonProfile:
|
|
935
|
+
CreatorsSkeletonProfile: je,
|
|
912
936
|
CreatorsSkeletonTable: Oe,
|
|
913
937
|
CreatorsRow: Ae,
|
|
914
|
-
CreatorsCol:
|
|
915
|
-
|
|
938
|
+
CreatorsCol: He,
|
|
939
|
+
CreatorsProgress: Qe
|
|
940
|
+
}, es = {
|
|
916
941
|
install(a) {
|
|
917
|
-
for (const [t, e] of Object.entries(
|
|
942
|
+
for (const [t, e] of Object.entries(Ze))
|
|
918
943
|
a.component(t, e);
|
|
919
944
|
}
|
|
920
945
|
};
|
|
@@ -922,15 +947,16 @@ export {
|
|
|
922
947
|
K as CreatorsAccordion,
|
|
923
948
|
Gt as CreatorsBadge,
|
|
924
949
|
z as CreatorsButton,
|
|
925
|
-
|
|
950
|
+
Nt as CreatorsCard,
|
|
926
951
|
ft as CreatorsCheckbox,
|
|
927
|
-
|
|
952
|
+
He as CreatorsCol,
|
|
928
953
|
Pt as CreatorsDataTable,
|
|
929
954
|
Lt as CreatorsDivider,
|
|
930
|
-
|
|
955
|
+
q as CreatorsInput,
|
|
931
956
|
Z as CreatorsInputSwitch,
|
|
932
|
-
|
|
957
|
+
es as CreatorsLibPlugin,
|
|
933
958
|
te as CreatorsModal,
|
|
959
|
+
Qe as CreatorsProgress,
|
|
934
960
|
wt as CreatorsRadio,
|
|
935
961
|
bt as CreatorsRating,
|
|
936
962
|
Ae as CreatorsRow,
|
|
@@ -938,7 +964,7 @@ export {
|
|
|
938
964
|
h as CreatorsSkeleton,
|
|
939
965
|
me as CreatorsSkeletonCard,
|
|
940
966
|
ke as CreatorsSkeletonList,
|
|
941
|
-
|
|
967
|
+
je as CreatorsSkeletonProfile,
|
|
942
968
|
Se as CreatorsSkeletonSimpleList,
|
|
943
969
|
Oe as CreatorsSkeletonTable,
|
|
944
970
|
I as CreatorsText,
|
package/dist/creators-lib.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(o,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(o=typeof globalThis<"u"?globalThis:o||self,r(o.CreatorsLib={},o.Vue))})(this,function(o,r){"use strict";const U=r.defineComponent({__name:"CreatorsButton",props:{variant:{default:"primary"},size:{default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:t}){return{__sfc:!0,emit:t}}});function c(n,t,e,s,l,a,i,u){var _=typeof n=="function"?n.options:n;return t&&(_.render=t,_.staticRenderFns=e,_._compiled=!0),a&&(_._scopeId="data-v-"+a),{exports:n,options:_}}var N=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("button",t._b({class:["cl-btn",`cl-btn--${t.variant}`,`cl-btn--${t.size}`,{"cl-btn--loading":t.loading}],attrs:{disabled:t.disabled||t.loading},on:{click:function(l){return s.emit("click",l)}}},"button",t.$attrs,!1),[t.loading?e("span",{staticClass:"cl-btn__spinner",attrs:{"aria-hidden":"true"}}):t._e(),t._t("default")],2)},Y=[],J=c(U,N,Y,!1,null,"bf5586f5");const k=J.exports,Q=r.defineComponent({__name:"CreatorsText",props:{variant:{default:"body-md"},as:null},setup(n){const t=n,e={"display-2xl":"p","display-xl":"p","display-l":"p","display-md":"p","display-sm":"p","accent-2xl":"p","accent-xl":"p","accent-l":"p","accent-md":"p","accent-sm":"p",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5","body-lg":"p","body-md":"p","body-sm":"p"},s=r.computed(()=>t.as??e[t.variant]);return{__sfc:!0,props:t,defaultTags:e,resolvedTag:s}}});var Z=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.resolvedTag,{tag:"component",class:["cl-text",`cl-text--${t.variant}`]},[t._t("default")],2)},tt=[],et=c(Q,Z,tt,!1,null,"a993d82e");const y=et.exports,st=r.defineComponent({__name:"CreatorsAccordion",props:{items:null,defaultOpen:{default:-1}},emits:["change"],setup(n,{emit:t}){const e=n,s=r.ref(e.defaultOpen>=0?e.defaultOpen:null);function l(a){s.value=s.value===a?null:a,t("change",s.value)}return{__sfc:!0,props:e,emit:t,openIndex:s,toggle:l}}});var lt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-accordion"},t._l(t.items,function(l,a){return e("div",{key:a,staticClass:"cl-accordion__item",class:{"cl-accordion__item--open":s.openIndex===a}},[e("button",{staticClass:"cl-accordion__trigger",on:{click:function(i){return s.toggle(a)}}},[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-${a}`,function(){return[t._v(t._s(l.content))]})],2)])])}),0)},nt=[],at=c(st,lt,nt,!1,null,"cdacee19");const b=at.exports,rt=r.defineComponent({__name:"CreatorsInput",props:{modelValue:null,label:null,placeholder:null,hint:null,error:null,type:{default:"text"},size:{default:"md"},disabled:{type:Boolean,default:!1},id:null,icon:null,loading:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1}},emits:["update:modelValue","enter","focus","blur","clear","search"],setup(n,{emit:t}){function e(i){t("update:modelValue",i.target.value)}function s(i){const u=i.target.value;t("enter",u),t("search",u)}function l(){t("update:modelValue",""),t("clear")}function a(){t("search","")}return{__sfc:!0,emit:t,onInput:e,onEnter:s,onClear:l,onSearch:a}}});var ot=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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(){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()]})],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){return!l.type.indexOf("key")&&t._k(l.keyCode,"enter",13,l.key,"Enter")?null:s.onEnter.apply(null,arguments)},focus:function(l){return s.emit("focus",l)},blur:function(l){return s.emit("blur",l)}}},"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()])},it=[],ct=c(rt,ot,it,!1,null,"914bb790");const x=ct.exports,_t=r.defineComponent({__name:"CreatorsInputSwitch",props:{modelValue:{type:Boolean,default:!1},label:null,size:{default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:t}){function e(s){t("update:modelValue",s.target.checked)}return{__sfc:!0,emit:t,onChange:e}}});var dt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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()])},ut=[function(){var n=this,t=n._self._c;return n._self._setupProxy,t("span",{staticClass:"cl-switch__track"},[t("span",{staticClass:"cl-switch__thumb"})])}],pt=c(_t,dt,ut,!1,null,"3fb5090c");const $=pt.exports,ft=r.defineComponent({__name:"CreatorsTextarea",props:{modelValue:null,label:null,placeholder:null,hint:null,error:null,rows:{default:4},maxlength:null,disabled:{type:Boolean,default:!1},id:null},emits:["update:modelValue","enter","focus","blur"],setup(n,{emit:t}){const e=n;function s(i){t("update:modelValue",i.target.value)}function l(i){t("enter",i.target.value)}const a=r.computed(()=>e.maxlength!==void 0&&(e.modelValue??"").length>e.maxlength);return{__sfc:!0,props:e,emit:t,onInput:s,onEnter:l,isOver:a}}});var ht=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return!l.type.indexOf("key")&&t._k(l.keyCode,"enter",13,l.key,"Enter")||!l.ctrlKey?null:s.onEnter.apply(null,arguments)},focus:function(l){return s.emit("focus",l)},blur:function(l){return s.emit("blur",l)}}},"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()])])},vt=[],mt=c(ft,ht,vt,!1,null,"4d2b35a5");const S=mt.exports,gt=r.defineComponent({__name:"CreatorsSelect",props:{modelValue:null,options:null,label:null,placeholder:{default:"Selecionar..."},hint:null,error:null,size:{default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:t}){const e=n,s=r.ref(!1),l=r.ref(null),a=r.computed(()=>e.options.find(d=>d.value===e.modelValue)??null);function i(){e.disabled||(s.value=!s.value)}function u(d){t("update:modelValue",d.value),t("change",d.value),s.value=!1}function _(d){l.value&&!l.value.contains(d.target)&&(s.value=!1)}return r.onMounted(()=>document.addEventListener("mousedown",_)),r.onUnmounted(()=>document.removeEventListener("mousedown",_)),{__sfc:!0,props:e,emit:t,isOpen:s,rootRef:l,selectedOption:a,toggle:i,select:u,onClickOutside:_}}});var Ct=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return e("li",{key:l.value,class:["cl-select__option",{"cl-select__option--selected":l.value===t.modelValue}],on:{click:function(a){return s.select(l)}}},[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()])}),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)},wt=[],kt=c(gt,Ct,wt,!1,null,"06f181b3");const B=kt.exports,yt=r.defineComponent({__name:"CreatorsCheckbox",props:{modelValue:{type:Boolean,default:!1},label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:t}){function e(s){t("update:modelValue",s.target.checked)}return{__sfc:!0,emit:t,onChange:e}}});var bt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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()])},xt=[],$t=c(yt,bt,xt,!1,null,"d1ad8f2e");const V=$t.exports,St=r.defineComponent({__name:"CreatorsRadio",props:{modelValue:null,value:null,label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:t}){return{__sfc:!0,emit:t}}});var Bt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return s.emit("update:modelValue",t.value)}}}),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()])},Vt=[],Pt=c(St,Bt,Vt,!1,null,"242eedd7");const P=Pt.exports,Rt=r.defineComponent({__name:"CreatorsRating",props:{modelValue:null,count:{default:5},size:{default:"md"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:t}){const e=n,s=r.ref(null),l=r.computed(()=>({sm:16,md:24,lg:32})[e.size]);function a(i){t("update:modelValue",i),t("change",i)}return{__sfc:!0,props:e,emit:t,hovered:s,starSize:l,select:a}}});var Tt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return e("button",{key:l,staticClass:"cl-rating__star",class:{"cl-rating__star--filled":l<=(s.hovered??t.modelValue??0)},attrs:{type:"button",disabled:t.disabled||t.readonly},on:{click:function(a){return s.select(l)},mouseenter:function(a){s.hovered=l},mouseleave:function(a){s.hovered=null}}},[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")}})])])}),t.showValue?e("span",{staticClass:"cl-rating__value"},[t._v(t._s(t.modelValue??0)+"/"+t._s(t.count))]):t._e()],2)},jt=[],Ft=c(Rt,Tt,jt,!1,null,"e6a67dab");const R=Ft.exports,Lt=r.defineComponent({__name:"CreatorsDataTable",props:{columns:null,rows:null,loading:{type:Boolean,default:!1},emptyText:{default:"Nenhum resultado encontrado."},pagination:{type:Boolean,default:!1},pageSize:{default:10},onRowClick:{type:Boolean,default:!1}},emits:["row-click","sort"],setup(n,{emit:t}){const e=n,s=r.ref(null),l=r.ref("asc"),a=r.ref(1);function i(h){s.value===h?l.value=l.value==="asc"?"desc":"asc":(s.value=h,l.value="asc"),t("sort",s.value,l.value)}const u=r.computed(()=>s.value?[...e.rows].sort((h,Ge)=>{const C=h[s.value],w=Ge[s.value];if(C==null)return 1;if(w==null)return-1;const H=C<w?-1:C>w?1:0;return l.value==="asc"?H:-H}):[...e.rows]),_=r.computed(()=>Math.max(1,Math.ceil(e.rows.length/e.pageSize))),d=r.computed(()=>{if(!e.pagination)return u.value;const h=(a.value-1)*e.pageSize;return u.value.slice(h,h+e.pageSize)}),m=r.computed(()=>Math.min((a.value-1)*e.pageSize+1,e.rows.length)),g=r.computed(()=>Math.min(a.value*e.pageSize,e.rows.length));return{__sfc:!0,props:e,emit:t,sortKey:s,sortDir:l,page:a,toggleSort:i,sorted:u,totalPages:_,sortedRows:d,paginationStart:m,paginationEnd:g}}});var zt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){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(a){l.sortable&&s.toggleSort(l.key)}}},[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()])])}),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,a){return e("tr",{key:a,staticClass:"cl-table__row",class:{"cl-table__row--clickable":!!t.onRowClick},on:{click:function(i){t.onRowClick&&s.emit("row-click",l)}}},t._l(t.columns,function(i){return e("td",{key:i.key,staticClass:"cl-table__td"},[t._t(`cell-${i.key}`,function(){return[t._v(" "+t._s(l[i.key])+" ")]},{row:l,value:l[i.key]})],2)}),0)}):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){s.page--}}},[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){s.page++}}},[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()])},Mt=[function(){var n=this,t=n._self._c;return n._self._setupProxy,t("div",{staticClass:"cl-table__loading"},[t("span",{staticClass:"cl-table__spinner"}),t("span",[n._v("Carregando...")])])}],Ot=c(Lt,zt,Mt,!1,null,"7b8da436");const T=Ot.exports,It=r.defineComponent({__name:"CreatorsDivider",props:{label:null,align:{default:"center"},orientation:{default:"horizontal"},dashed:{type:Boolean,default:!1}},setup(n){return{__sfc:!0}}});var Dt=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-divider",`cl-divider--${t.orientation}`,{"cl-divider--dashed":t.dashed},t.label?`cl-divider--label-${t.align}`:""],attrs:{role:"separator"}},[t.label?e("span",{staticClass:"cl-divider__label"},[t._v(t._s(t.label))]):t._e()])},Et=[],Wt=c(It,Dt,Et,!1,null,"31f5c2f9");const j=Wt.exports,At=r.defineComponent({__name:"CreatorsTimeline",props:{items:null,align:{default:"left"},orientation:{default:"vertical"}},setup(n){return{__sfc:!0}}});var Kt=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-timeline",`cl-timeline--${t.align}`,`cl-timeline--${t.orientation}`]},t._l(t.items,function(s,l){return e("div",{key:l,class:["cl-timeline__item",t.align==="alternate"?l%2===0?"cl-timeline__item--left":"cl-timeline__item--right":""]},[t.align==="alternate"?[l%2===0?e("div",{staticClass:"cl-timeline__content cl-timeline__content--left"},[t._t(`item-${l}`,function(){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()])]})],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(){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()]})],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(){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()])]})],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(){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()]})],2),e("div",{staticClass:"cl-timeline__line cl-timeline__line--after"})]),e("div",{staticClass:"cl-timeline__content"},[t._t(`item-${l}`,function(){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()])]})],2)]],2)}),0)},Gt=[],Xt=c(At,Kt,Gt,!1,null,"f802dc88");const F=Xt.exports,qt=r.defineComponent({__name:"CreatorsBadge",props:{variant:{default:"default"},icon:null},setup(n){const t=n,e=["success","warning","error","info"].includes(t.variant)&&!t.icon;return{__sfc:!0,props:t,statusIcon:e}}});var Ht=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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)},Ut=[],Nt=c(qt,Ht,Ut,!1,null,"36988d61");const L=Nt.exports,Yt=r.defineComponent({__name:"CreatorsCard",props:{title:null,description:null,label:null,variant:{default:"default"},hoverable:{type:Boolean,default:!1},flush:{type:Boolean,default:!1}},setup(n){return{__sfc:!0}}});var Jt=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-card",`cl-card--${t.variant}`,{"cl-card--hoverable":t.hoverable},{"cl-card--flush":t.flush}]},[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(){return[t._v(t._s(t.title))]})],2):t._e(),t.description||t.$slots.description?e("div",{staticClass:"cl-card__description"},[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),t._t("default")],2),t.$slots.footer?e("div",{staticClass:"cl-card__footer"},[t._t("footer")],2):t._e()])},Qt=[],Zt=c(Yt,Jt,Qt,!1,null,"152c5819");const z=Zt.exports,te=r.defineComponent({__name:"CreatorsModal",props:{modelValue:{type:Boolean},title:null,size:{default:"md"},hideClose:{type:Boolean,default:!1},persistent:{type:Boolean,default:!1},blur:{type:Boolean,default:!1}},emits:["update:modelValue","close"],setup(n,{emit:t}){const e=n;function s(){t("update:modelValue",!1),t("close")}function l(){e.persistent||s()}function a(i){i.key==="Escape"&&e.modelValue&&!e.persistent&&s()}return r.watch(()=>e.modelValue,i=>{document.body.style.overflow=i?"hidden":""}),r.onMounted(()=>window.addEventListener("keydown",a)),r.onUnmounted(()=>{window.removeEventListener("keydown",a),document.body.style.overflow=""}),{__sfc:!0,props:e,emit:t,close:s,onOverlayClick:l,onKeydown:a}}});var ee=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return l.target!==l.currentTarget?null:s.onOverlayClick.apply(null,arguments)}}},[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(){return[t.title?e("span",{staticClass:"cl-modal__title",attrs:{id:"cl-modal-title"}},[t._v(t._s(t.title))]):t._e()]}),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()])},se=[],le=c(te,ee,se,!1,null,null);const M=le.exports;let ne=0;const p=r.reactive({items:[]});function v(n,t="info"){const e=++ne,s=typeof n=="string"?{id:e,type:t,title:n,duration:4e3,position:"top-right"}:{id:e,...n};return s.id=e,s.duration>0&&(s._timer=setTimeout(()=>O(e),s.duration)),p.items.push(s),e}function O(n){const t=p.items.findIndex(e=>e.id===n);t!==-1&&(clearTimeout(p.items[t]._timer),p.items.splice(t,1))}function ae(){p.items.forEach(n=>clearTimeout(n._timer)),p.items.splice(0)}function I(){return{toasts:p.items,add:v,remove:O,clear:ae,success:(n,t)=>v({title:n,type:"success",duration:4e3,position:"top-right",...t}),error:(n,t)=>v({title:n,type:"error",duration:4e3,position:"top-right",...t}),warning:(n,t)=>v({title:n,type:"warning",duration:4e3,position:"top-right",...t}),info:(n,t)=>v({title:n,type:"info",duration:4e3,position:"top-right",...t})}}const re=r.defineComponent({__name:"CreatorsToaster",setup(n){const{toasts:t,remove:e}=I(),s=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"];function l(_){return t.filter(d=>d.position===_)}const a=new Map;function i(_){if(_.duration<=0)return;clearTimeout(_._timer);const d=a.get(_.id),m=d?d.remaining:_.duration;a.set(_.id,{remaining:m,startedAt:Date.now()})}function u(_){const d=a.get(_.id);if(!d)return;const m=Date.now()-d.startedAt,g=Math.max(d.remaining-m,0);a.delete(_.id),_._timer=setTimeout(()=>e(_.id),g)}return{__sfc:!0,toasts:t,remove:e,positions:s,byPosition:l,paused:a,pauseTimer:i,resumeTimer:u}}});var oe=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-toaster"},t._l(s.positions,function(l){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(a){return e("div",{key:a.id,class:["cl-toast",`cl-toast--${a.type}`],attrs:{role:"alert"},on:{mouseenter:function(i){return s.pauseTimer(a)},mouseleave:function(i){return s.resumeTimer(a)}}},[e("div",{staticClass:"cl-toast__icon"},[a.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"}})]):a.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"}})]):a.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(a.title))]),a.description?e("span",{staticClass:"cl-toast__desc"},[t._v(t._s(a.description))]):t._e()]),e("button",{staticClass:"cl-toast__close",attrs:{"aria-label":"Fechar"},on:{click:function(i){return s.remove(a.id)}}},[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"}})])]),a.duration>0?e("div",{staticClass:"cl-toast__progress"},[e("div",{staticClass:"cl-toast__progress-bar",style:{animationDuration:`${a.duration}ms`}})]):t._e()])}),0)}),1)},ie=[],ce=c(re,oe,ie,!1,null,null);const D=ce.exports,_e=r.defineComponent({__name:"CreatorsSkeleton",props:{loading:{type:Boolean,default:!0},variant:{default:"rect"},width:null,height:null,radius:null,lines:{default:3},animated:{type:Boolean,default:!0}},setup(n){return{__sfc:!0}}});var de=function(){var t=this,e=t._self._c;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){return e("div",{key:s,class:["cl-skeleton","cl-skeleton--rect",{"cl-skeleton--no-animation":!t.animated}],style:{height:"14px",width:s===t.lines&&t.lines>1?"65%":t.width??"100%"}})}),0)]:t._t("default")},ue=[],pe=c(_e,de,ue,!1,null,"3b626f1f");const f=pe.exports,fe=r.defineComponent({__name:"CreatorsSkeletonCard",setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var he=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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)},ve=[],me=c(fe,he,ve,!1,null,"00fa9654");const E=me.exports,ge=r.defineComponent({__name:"CreatorsSkeletonList",props:{rows:{default:5},avatar:{type:Boolean,default:!0},subtitle:{type:Boolean,default:!0},action:{type:Boolean,default:!1}},setup(n){return{__sfc:!0,titleWidths:["60%","75%","50%","80%","65%"],subtitleWidths:["40%","55%","35%","50%","45%"],CreatorsSkeleton:f}}});var Ce=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-skeleton-list"},t._l(t.rows,function(l){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)}),0)},we=[],ke=c(ge,Ce,we,!1,null,"295ec324");const W=ke.exports,ye=r.defineComponent({__name:"CreatorsSkeletonSimpleList",props:{loading:{type:Boolean,default:!0},rows:{default:6},height:{default:"44px"}},setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var be=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return t.loading?[e("div",{staticClass:"cl-skeleton-simple-list"},t._l(t.rows,function(l){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)}),0)]:t._t("default")},xe=[],$e=c(ye,be,xe,!1,null,"f47e1288");const A=$e.exports,Se=r.defineComponent({__name:"CreatorsSkeletonProfile",props:{avatarSize:{default:"80px"}},setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var Be=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){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)}),0)],1)],1)],1)},Ve=[],Pe=c(Se,Be,Ve,!1,null,"a6635fb6");const K=Pe.exports,Re=r.defineComponent({__name:"CreatorsSkeletonTable",props:{rows:{default:5},cols:{default:4}},setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var Te=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-skeleton-table"},[e("div",{staticClass:"cl-skeleton-table__head"},t._l(t.cols,function(l){return e("div",{key:l,staticClass:"cl-skeleton-table__cell"},[e(s.CreatorsSkeleton,{attrs:{variant:"rect",width:"80px",height:"11px"}})],1)}),0),t._l(t.rows,function(l){return e("div",{key:l,staticClass:"cl-skeleton-table__row"},t._l(t.cols,function(a){return e("div",{key:a,staticClass:"cl-skeleton-table__cell"},[e(s.CreatorsSkeleton,{attrs:{variant:"rect",width:a===1?"140px":a===t.cols?"60px":`${70+(l+a)%3*20}px`,height:"13px"}})],1)}),0)})],2)},je=[],Fe=c(Re,Te,je,!1,null,"175f116d");const G=Fe.exports,Le=r.defineComponent({__name:"CreatorsRow",props:{align:null,justify:null,noGutter:{type:Boolean,default:!1}},setup(n){return{__sfc:!0}}});var ze=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-row",t.align?`cl-row--align-${t.align}`:"",t.justify?`cl-row--justify-${t.justify}`:"",t.noGutter?"cl-row--no-gutter":""]},[t._t("default")],2)},Me=[],Oe=c(Le,ze,Me,!1,null,null);const X=Oe.exports,Ie=r.defineComponent({__name:"CreatorsCol",props:{cols:null,sm:null,md:null,lg:null,xl:null,offset:null,offsetSm:null,offsetMd:null,offsetLg:null,offsetXl:null},setup(n){const t=n,e=r.computed(()=>{const s=["cl-col"];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});return{__sfc:!0,props:t,classes:e}}});var De=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{class:s.classes},[t._t("default")],2)},Ee=[],We=c(Ie,De,Ee,!1,null,null);const q=We.exports,Ae={CreatorsButton:k,CreatorsText:y,CreatorsAccordion:b,CreatorsInput:x,CreatorsInputSwitch:$,CreatorsTextarea:S,CreatorsSelect:B,CreatorsCheckbox:V,CreatorsRadio:P,CreatorsRating:R,CreatorsDataTable:T,CreatorsDivider:j,CreatorsTimeline:F,CreatorsBadge:L,CreatorsCard:z,CreatorsModal:M,CreatorsToaster:D,CreatorsSkeleton:f,CreatorsSkeletonCard:E,CreatorsSkeletonList:W,CreatorsSkeletonSimpleList:A,CreatorsSkeletonProfile:K,CreatorsSkeletonTable:G,CreatorsRow:X,CreatorsCol:q},Ke={install(n){for(const[t,e]of Object.entries(Ae))n.component(t,e)}};o.CreatorsAccordion=b,o.CreatorsBadge=L,o.CreatorsButton=k,o.CreatorsCard=z,o.CreatorsCheckbox=V,o.CreatorsCol=q,o.CreatorsDataTable=T,o.CreatorsDivider=j,o.CreatorsInput=x,o.CreatorsInputSwitch=$,o.CreatorsLibPlugin=Ke,o.CreatorsModal=M,o.CreatorsRadio=P,o.CreatorsRating=R,o.CreatorsRow=X,o.CreatorsSelect=B,o.CreatorsSkeleton=f,o.CreatorsSkeletonCard=E,o.CreatorsSkeletonList=W,o.CreatorsSkeletonProfile=K,o.CreatorsSkeletonSimpleList=A,o.CreatorsSkeletonTable=G,o.CreatorsText=y,o.CreatorsTextarea=S,o.CreatorsTimeline=F,o.CreatorsToaster=D,o.useToast=I,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(o,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(o=typeof globalThis<"u"?globalThis:o||self,a(o.CreatorsLib={},o.Vue))})(this,function(o,a){"use strict";const N=a.defineComponent({__name:"CreatorsButton",props:{variant:{default:"primary"},size:{default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:t}){return{__sfc:!0,emit:t}}});function c(n,t,e,s,l,r,i,u){var _=typeof n=="function"?n.options:n;return t&&(_.render=t,_.staticRenderFns=e,_._compiled=!0),r&&(_._scopeId="data-v-"+r),{exports:n,options:_}}var Y=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("button",t._b({class:["cl-btn",`cl-btn--${t.variant}`,`cl-btn--${t.size}`,{"cl-btn--loading":t.loading}],attrs:{disabled:t.disabled||t.loading},on:{click:function(l){return s.emit("click",l)}}},"button",t.$attrs,!1),[t.loading?e("span",{staticClass:"cl-btn__spinner",attrs:{"aria-hidden":"true"}}):t._e(),t._t("default")],2)},J=[],Q=c(N,Y,J,!1,null,"bf5586f5");const k=Q.exports,Z=a.defineComponent({__name:"CreatorsText",props:{variant:{default:"body-md"},as:null},setup(n){const t=n,e={"display-2xl":"p","display-xl":"p","display-l":"p","display-md":"p","display-sm":"p","accent-2xl":"p","accent-xl":"p","accent-l":"p","accent-md":"p","accent-sm":"p",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5","body-lg":"p","body-md":"p","body-sm":"p"},s=a.computed(()=>t.as??e[t.variant]);return{__sfc:!0,props:t,defaultTags:e,resolvedTag:s}}});var tt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.resolvedTag,{tag:"component",class:["cl-text",`cl-text--${t.variant}`]},[t._t("default")],2)},et=[],st=c(Z,tt,et,!1,null,"a993d82e");const y=st.exports,lt=a.defineComponent({__name:"CreatorsAccordion",props:{items:null,defaultOpen:{default:-1}},emits:["change"],setup(n,{emit:t}){const e=n,s=a.ref(e.defaultOpen>=0?e.defaultOpen:null);function l(r){s.value=s.value===r?null:r,t("change",s.value)}return{__sfc:!0,props:e,emit:t,openIndex:s,toggle:l}}});var nt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-accordion"},t._l(t.items,function(l,r){return e("div",{key:r,staticClass:"cl-accordion__item",class:{"cl-accordion__item--open":s.openIndex===r}},[e("button",{staticClass:"cl-accordion__trigger",on:{click:function(i){return s.toggle(r)}}},[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-${r}`,function(){return[t._v(t._s(l.content))]})],2)])])}),0)},rt=[],at=c(lt,nt,rt,!1,null,"cdacee19");const x=at.exports,ot=a.defineComponent({__name:"CreatorsInput",props:{modelValue:null,label:null,placeholder:null,hint:null,error:null,type:{default:"text"},size:{default:"md"},disabled:{type:Boolean,default:!1},id:null,icon:null,loading:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1}},emits:["update:modelValue","enter","focus","blur","clear","search"],setup(n,{emit:t}){function e(i){t("update:modelValue",i.target.value)}function s(i){const u=i.target.value;t("enter",u),t("search",u)}function l(){t("update:modelValue",""),t("clear")}function r(){t("search","")}return{__sfc:!0,emit:t,onInput:e,onEnter:s,onClear:l,onSearch:r}}});var it=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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(){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()]})],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){return!l.type.indexOf("key")&&t._k(l.keyCode,"enter",13,l.key,"Enter")?null:s.onEnter.apply(null,arguments)},focus:function(l){return s.emit("focus",l)},blur:function(l){return s.emit("blur",l)}}},"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()])},ct=[],_t=c(ot,it,ct,!1,null,"914bb790");const b=_t.exports,dt=a.defineComponent({__name:"CreatorsInputSwitch",props:{modelValue:{type:Boolean,default:!1},label:null,size:{default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:t}){function e(s){t("update:modelValue",s.target.checked)}return{__sfc:!0,emit:t,onChange:e}}});var ut=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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()])},pt=[function(){var n=this,t=n._self._c;return n._self._setupProxy,t("span",{staticClass:"cl-switch__track"},[t("span",{staticClass:"cl-switch__thumb"})])}],ft=c(dt,ut,pt,!1,null,"3fb5090c");const $=ft.exports,ht=a.defineComponent({__name:"CreatorsTextarea",props:{modelValue:null,label:null,placeholder:null,hint:null,error:null,rows:{default:4},maxlength:null,disabled:{type:Boolean,default:!1},id:null},emits:["update:modelValue","enter","focus","blur"],setup(n,{emit:t}){const e=n;function s(i){t("update:modelValue",i.target.value)}function l(i){t("enter",i.target.value)}const r=a.computed(()=>e.maxlength!==void 0&&(e.modelValue??"").length>e.maxlength);return{__sfc:!0,props:e,emit:t,onInput:s,onEnter:l,isOver:r}}});var vt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return!l.type.indexOf("key")&&t._k(l.keyCode,"enter",13,l.key,"Enter")||!l.ctrlKey?null:s.onEnter.apply(null,arguments)},focus:function(l){return s.emit("focus",l)},blur:function(l){return s.emit("blur",l)}}},"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()])])},mt=[],gt=c(ht,vt,mt,!1,null,"4d2b35a5");const S=gt.exports,Ct=a.defineComponent({__name:"CreatorsSelect",props:{modelValue:null,options:null,label:null,placeholder:{default:"Selecionar..."},hint:null,error:null,size:{default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:t}){const e=n,s=a.ref(!1),l=a.ref(null),r=a.computed(()=>e.options.find(d=>d.value===e.modelValue)??null);function i(){e.disabled||(s.value=!s.value)}function u(d){t("update:modelValue",d.value),t("change",d.value),s.value=!1}function _(d){l.value&&!l.value.contains(d.target)&&(s.value=!1)}return a.onMounted(()=>document.addEventListener("mousedown",_)),a.onUnmounted(()=>document.removeEventListener("mousedown",_)),{__sfc:!0,props:e,emit:t,isOpen:s,rootRef:l,selectedOption:r,toggle:i,select:u,onClickOutside:_}}});var wt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return e("li",{key:l.value,class:["cl-select__option",{"cl-select__option--selected":l.value===t.modelValue}],on:{click:function(r){return s.select(l)}}},[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()])}),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)},kt=[],yt=c(Ct,wt,kt,!1,null,"06f181b3");const B=yt.exports,xt=a.defineComponent({__name:"CreatorsCheckbox",props:{modelValue:{type:Boolean,default:!1},label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:t}){function e(s){t("update:modelValue",s.target.checked)}return{__sfc:!0,emit:t,onChange:e}}});var bt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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()])},$t=[],St=c(xt,bt,$t,!1,null,"d1ad8f2e");const V=St.exports,Bt=a.defineComponent({__name:"CreatorsRadio",props:{modelValue:null,value:null,label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:t}){return{__sfc:!0,emit:t}}});var Vt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return s.emit("update:modelValue",t.value)}}}),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()])},Pt=[],Rt=c(Bt,Vt,Pt,!1,null,"242eedd7");const P=Rt.exports,Ft=a.defineComponent({__name:"CreatorsRating",props:{modelValue:null,count:{default:5},size:{default:"md"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:t}){const e=n,s=a.ref(null),l=a.computed(()=>({sm:16,md:24,lg:32})[e.size]);function r(i){t("update:modelValue",i),t("change",i)}return{__sfc:!0,props:e,emit:t,hovered:s,starSize:l,select:r}}});var Tt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return e("button",{key:l,staticClass:"cl-rating__star",class:{"cl-rating__star--filled":l<=(s.hovered??t.modelValue??0)},attrs:{type:"button",disabled:t.disabled||t.readonly},on:{click:function(r){return s.select(l)},mouseenter:function(r){s.hovered=l},mouseleave:function(r){s.hovered=null}}},[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")}})])])}),t.showValue?e("span",{staticClass:"cl-rating__value"},[t._v(t._s(t.modelValue??0)+"/"+t._s(t.count))]):t._e()],2)},jt=[],Lt=c(Ft,Tt,jt,!1,null,"e6a67dab");const R=Lt.exports,zt=a.defineComponent({__name:"CreatorsDataTable",props:{columns:null,rows:null,loading:{type:Boolean,default:!1},emptyText:{default:"Nenhum resultado encontrado."},pagination:{type:Boolean,default:!1},pageSize:{default:10},onRowClick:{type:Boolean,default:!1}},emits:["row-click","sort"],setup(n,{emit:t}){const e=n,s=a.ref(null),l=a.ref("asc"),r=a.ref(1);function i(h){s.value===h?l.value=l.value==="asc"?"desc":"asc":(s.value=h,l.value="asc"),t("sort",s.value,l.value)}const u=a.computed(()=>s.value?[...e.rows].sort((h,Ne)=>{const C=h[s.value],w=Ne[s.value];if(C==null)return 1;if(w==null)return-1;const H=C<w?-1:C>w?1:0;return l.value==="asc"?H:-H}):[...e.rows]),_=a.computed(()=>Math.max(1,Math.ceil(e.rows.length/e.pageSize))),d=a.computed(()=>{if(!e.pagination)return u.value;const h=(r.value-1)*e.pageSize;return u.value.slice(h,h+e.pageSize)}),m=a.computed(()=>Math.min((r.value-1)*e.pageSize+1,e.rows.length)),g=a.computed(()=>Math.min(r.value*e.pageSize,e.rows.length));return{__sfc:!0,props:e,emit:t,sortKey:s,sortDir:l,page:r,toggleSort:i,sorted:u,totalPages:_,sortedRows:d,paginationStart:m,paginationEnd:g}}});var Mt=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){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(r){l.sortable&&s.toggleSort(l.key)}}},[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()])])}),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,r){return e("tr",{key:r,staticClass:"cl-table__row",class:{"cl-table__row--clickable":!!t.onRowClick},on:{click:function(i){t.onRowClick&&s.emit("row-click",l)}}},t._l(t.columns,function(i){return e("td",{key:i.key,staticClass:"cl-table__td"},[t._t(`cell-${i.key}`,function(){return[t._v(" "+t._s(l[i.key])+" ")]},{row:l,value:l[i.key]})],2)}),0)}):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){s.page--}}},[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){s.page++}}},[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()])},Ot=[function(){var n=this,t=n._self._c;return n._self._setupProxy,t("div",{staticClass:"cl-table__loading"},[t("span",{staticClass:"cl-table__spinner"}),t("span",[n._v("Carregando...")])])}],It=c(zt,Mt,Ot,!1,null,"7b8da436");const F=It.exports,Dt=a.defineComponent({__name:"CreatorsDivider",props:{label:null,align:{default:"center"},orientation:{default:"horizontal"},dashed:{type:Boolean,default:!1}},setup(n){return{__sfc:!0}}});var Et=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-divider",`cl-divider--${t.orientation}`,{"cl-divider--dashed":t.dashed},t.label?`cl-divider--label-${t.align}`:""],attrs:{role:"separator"}},[t.label?e("span",{staticClass:"cl-divider__label"},[t._v(t._s(t.label))]):t._e()])},Wt=[],At=c(Dt,Et,Wt,!1,null,"31f5c2f9");const T=At.exports,Kt=a.defineComponent({__name:"CreatorsTimeline",props:{items:null,align:{default:"left"},orientation:{default:"vertical"}},setup(n){return{__sfc:!0}}});var Gt=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-timeline",`cl-timeline--${t.align}`,`cl-timeline--${t.orientation}`]},t._l(t.items,function(s,l){return e("div",{key:l,class:["cl-timeline__item",t.align==="alternate"?l%2===0?"cl-timeline__item--left":"cl-timeline__item--right":""]},[t.align==="alternate"?[l%2===0?e("div",{staticClass:"cl-timeline__content cl-timeline__content--left"},[t._t(`item-${l}`,function(){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()])]})],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(){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()]})],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(){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()])]})],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(){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()]})],2),e("div",{staticClass:"cl-timeline__line cl-timeline__line--after"})]),e("div",{staticClass:"cl-timeline__content"},[t._t(`item-${l}`,function(){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()])]})],2)]],2)}),0)},Ut=[],Xt=c(Kt,Gt,Ut,!1,null,"f802dc88");const j=Xt.exports,qt=a.defineComponent({__name:"CreatorsBadge",props:{variant:{default:"default"},icon:null},setup(n){const t=n,e=["success","warning","error","info"].includes(t.variant)&&!t.icon;return{__sfc:!0,props:t,statusIcon:e}}});var Ht=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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)},Nt=[],Yt=c(qt,Ht,Nt,!1,null,"36988d61");const L=Yt.exports,Jt=a.defineComponent({__name:"CreatorsCard",props:{title:null,description:null,label:null,variant:{default:"default"},hoverable:{type:Boolean,default:!1},flush:{type:Boolean,default:!1}},setup(n){return{__sfc:!0}}});var Qt=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-card",`cl-card--${t.variant}`,{"cl-card--hoverable":t.hoverable},{"cl-card--flush":t.flush}]},[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(){return[t._v(t._s(t.title))]})],2):t._e(),t.description||t.$slots.description?e("div",{staticClass:"cl-card__description"},[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),t._t("default")],2),t.$slots.footer?e("div",{staticClass:"cl-card__footer"},[t._t("footer")],2):t._e()])},Zt=[],te=c(Jt,Qt,Zt,!1,null,"152c5819");const z=te.exports,ee=a.defineComponent({__name:"CreatorsModal",props:{modelValue:{type:Boolean},title:null,size:{default:"md"},hideClose:{type:Boolean,default:!1},persistent:{type:Boolean,default:!1},blur:{type:Boolean,default:!1}},emits:["update:modelValue","close"],setup(n,{emit:t}){const e=n;function s(){t("update:modelValue",!1),t("close")}function l(){e.persistent||s()}function r(i){i.key==="Escape"&&e.modelValue&&!e.persistent&&s()}return a.watch(()=>e.modelValue,i=>{document.body.style.overflow=i?"hidden":""}),a.onMounted(()=>window.addEventListener("keydown",r)),a.onUnmounted(()=>{window.removeEventListener("keydown",r),document.body.style.overflow=""}),{__sfc:!0,props:e,emit:t,close:s,onOverlayClick:l,onKeydown:r}}});var se=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){return l.target!==l.currentTarget?null:s.onOverlayClick.apply(null,arguments)}}},[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(){return[t.title?e("span",{staticClass:"cl-modal__title",attrs:{id:"cl-modal-title"}},[t._v(t._s(t.title))]):t._e()]}),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()])},le=[],ne=c(ee,se,le,!1,null,null);const M=ne.exports;let re=0;const p=a.reactive({items:[]});function v(n,t="info"){const e=++re,s=typeof n=="string"?{id:e,type:t,title:n,duration:4e3,position:"top-right"}:{id:e,...n};return s.id=e,s.duration>0&&(s._timer=setTimeout(()=>O(e),s.duration)),p.items.push(s),e}function O(n){const t=p.items.findIndex(e=>e.id===n);t!==-1&&(clearTimeout(p.items[t]._timer),p.items.splice(t,1))}function ae(){p.items.forEach(n=>clearTimeout(n._timer)),p.items.splice(0)}function I(){return{toasts:p.items,add:v,remove:O,clear:ae,success:(n,t)=>v({title:n,type:"success",duration:4e3,position:"top-right",...t}),error:(n,t)=>v({title:n,type:"error",duration:4e3,position:"top-right",...t}),warning:(n,t)=>v({title:n,type:"warning",duration:4e3,position:"top-right",...t}),info:(n,t)=>v({title:n,type:"info",duration:4e3,position:"top-right",...t})}}const oe=a.defineComponent({__name:"CreatorsToaster",setup(n){const{toasts:t,remove:e}=I(),s=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"];function l(_){return t.filter(d=>d.position===_)}const r=new Map;function i(_){if(_.duration<=0)return;clearTimeout(_._timer);const d=r.get(_.id),m=d?d.remaining:_.duration;r.set(_.id,{remaining:m,startedAt:Date.now()})}function u(_){const d=r.get(_.id);if(!d)return;const m=Date.now()-d.startedAt,g=Math.max(d.remaining-m,0);r.delete(_.id),_._timer=setTimeout(()=>e(_.id),g)}return{__sfc:!0,toasts:t,remove:e,positions:s,byPosition:l,paused:r,pauseTimer:i,resumeTimer:u}}});var ie=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-toaster"},t._l(s.positions,function(l){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(r){return e("div",{key:r.id,class:["cl-toast",`cl-toast--${r.type}`],attrs:{role:"alert"},on:{mouseenter:function(i){return s.pauseTimer(r)},mouseleave:function(i){return s.resumeTimer(r)}}},[e("div",{staticClass:"cl-toast__icon"},[r.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"}})]):r.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"}})]):r.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(r.title))]),r.description?e("span",{staticClass:"cl-toast__desc"},[t._v(t._s(r.description))]):t._e()]),e("button",{staticClass:"cl-toast__close",attrs:{"aria-label":"Fechar"},on:{click:function(i){return s.remove(r.id)}}},[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"}})])]),r.duration>0?e("div",{staticClass:"cl-toast__progress"},[e("div",{staticClass:"cl-toast__progress-bar",style:{animationDuration:`${r.duration}ms`}})]):t._e()])}),0)}),1)},ce=[],_e=c(oe,ie,ce,!1,null,null);const D=_e.exports,de=a.defineComponent({__name:"CreatorsSkeleton",props:{loading:{type:Boolean,default:!0},variant:{default:"rect"},width:null,height:null,radius:null,lines:{default:3},animated:{type:Boolean,default:!0}},setup(n){return{__sfc:!0}}});var ue=function(){var t=this,e=t._self._c;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){return e("div",{key:s,class:["cl-skeleton","cl-skeleton--rect",{"cl-skeleton--no-animation":!t.animated}],style:{height:"14px",width:s===t.lines&&t.lines>1?"65%":t.width??"100%"}})}),0)]:t._t("default")},pe=[],fe=c(de,ue,pe,!1,null,"3b626f1f");const f=fe.exports,he=a.defineComponent({__name:"CreatorsSkeletonCard",setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var ve=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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)},me=[],ge=c(he,ve,me,!1,null,"00fa9654");const E=ge.exports,Ce=a.defineComponent({__name:"CreatorsSkeletonList",props:{rows:{default:5},avatar:{type:Boolean,default:!0},subtitle:{type:Boolean,default:!0},action:{type:Boolean,default:!1}},setup(n){return{__sfc:!0,titleWidths:["60%","75%","50%","80%","65%"],subtitleWidths:["40%","55%","35%","50%","45%"],CreatorsSkeleton:f}}});var we=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-skeleton-list"},t._l(t.rows,function(l){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)}),0)},ke=[],ye=c(Ce,we,ke,!1,null,"295ec324");const W=ye.exports,xe=a.defineComponent({__name:"CreatorsSkeletonSimpleList",props:{loading:{type:Boolean,default:!0},rows:{default:6},height:{default:"44px"}},setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var be=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return t.loading?[e("div",{staticClass:"cl-skeleton-simple-list"},t._l(t.rows,function(l){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)}),0)]:t._t("default")},$e=[],Se=c(xe,be,$e,!1,null,"f47e1288");const A=Se.exports,Be=a.defineComponent({__name:"CreatorsSkeletonProfile",props:{avatarSize:{default:"80px"}},setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var Ve=function(){var t=this,e=t._self._c,s=t._self._setupProxy;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){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)}),0)],1)],1)],1)},Pe=[],Re=c(Be,Ve,Pe,!1,null,"a6635fb6");const K=Re.exports,Fe=a.defineComponent({__name:"CreatorsSkeletonTable",props:{rows:{default:5},cols:{default:4}},setup(n){return{__sfc:!0,CreatorsSkeleton:f}}});var Te=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-skeleton-table"},[e("div",{staticClass:"cl-skeleton-table__head"},t._l(t.cols,function(l){return e("div",{key:l,staticClass:"cl-skeleton-table__cell"},[e(s.CreatorsSkeleton,{attrs:{variant:"rect",width:"80px",height:"11px"}})],1)}),0),t._l(t.rows,function(l){return e("div",{key:l,staticClass:"cl-skeleton-table__row"},t._l(t.cols,function(r){return e("div",{key:r,staticClass:"cl-skeleton-table__cell"},[e(s.CreatorsSkeleton,{attrs:{variant:"rect",width:r===1?"140px":r===t.cols?"60px":`${70+(l+r)%3*20}px`,height:"13px"}})],1)}),0)})],2)},je=[],Le=c(Fe,Te,je,!1,null,"175f116d");const G=Le.exports,ze=a.defineComponent({__name:"CreatorsRow",props:{align:null,justify:null,noGutter:{type:Boolean,default:!1}},setup(n){return{__sfc:!0}}});var Me=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-row",t.align?`cl-row--align-${t.align}`:"",t.justify?`cl-row--justify-${t.justify}`:"",t.noGutter?"cl-row--no-gutter":""]},[t._t("default")],2)},Oe=[],Ie=c(ze,Me,Oe,!1,null,null);const U=Ie.exports,De=a.defineComponent({__name:"CreatorsCol",props:{cols:null,sm:null,md:null,lg:null,xl:null,offset:null,offsetSm:null,offsetMd:null,offsetLg:null,offsetXl:null},setup(n){const t=n,e=a.computed(()=>{const s=["cl-col"];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});return{__sfc:!0,props:t,classes:e}}});var Ee=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{class:s.classes},[t._t("default")],2)},We=[],Ae=c(De,Ee,We,!1,null,null);const X=Ae.exports,Ke=a.defineComponent({__name:"CreatorsProgress",props:{value:{default:0},width:{default:380},height:{default:10},trackColor:{default:"rgba(255, 255, 255, 0.08)"}},setup(n){const t=n,e=`cl-prog-${Math.random().toString(36).slice(2,8)}`,s=a.computed(()=>Math.min(100,Math.max(0,t.value))),l=a.computed(()=>s.value/100*t.width);return{__sfc:!0,props:t,gradId:e,clamped:s,fillWidth:l}}});var Ge=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("svg",{staticClass:"cl-progress",attrs:{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,viewBox:`0 0 ${t.width} ${t.height}`,fill:"none"}},[e("rect",{attrs:{width:t.width,height:t.height,rx:t.height/2,fill:t.trackColor}}),s.clamped>0?e("rect",{attrs:{width:s.fillWidth,height:t.height,rx:t.height/2,fill:`url(#${s.gradId})`}}):t._e(),e("defs",[e("linearGradient",{attrs:{id:s.gradId,x1:0,y1:0,x2:t.width,y2:0,gradientUnits:"userSpaceOnUse"}},[e("stop",{attrs:{"stop-color":"#6C3AFF"}}),e("stop",{attrs:{offset:"0.656","stop-color":"#F564FF"}}),e("stop",{attrs:{offset:"0.784","stop-color":"#FF9864"}})],1)],1)])},Ue=[],Xe=c(Ke,Ge,Ue,!1,null,null);const q=Xe.exports,qe={CreatorsButton:k,CreatorsText:y,CreatorsAccordion:x,CreatorsInput:b,CreatorsInputSwitch:$,CreatorsTextarea:S,CreatorsSelect:B,CreatorsCheckbox:V,CreatorsRadio:P,CreatorsRating:R,CreatorsDataTable:F,CreatorsDivider:T,CreatorsTimeline:j,CreatorsBadge:L,CreatorsCard:z,CreatorsModal:M,CreatorsToaster:D,CreatorsSkeleton:f,CreatorsSkeletonCard:E,CreatorsSkeletonList:W,CreatorsSkeletonSimpleList:A,CreatorsSkeletonProfile:K,CreatorsSkeletonTable:G,CreatorsRow:U,CreatorsCol:X,CreatorsProgress:q},He={install(n){for(const[t,e]of Object.entries(qe))n.component(t,e)}};o.CreatorsAccordion=x,o.CreatorsBadge=L,o.CreatorsButton=k,o.CreatorsCard=z,o.CreatorsCheckbox=V,o.CreatorsCol=X,o.CreatorsDataTable=F,o.CreatorsDivider=T,o.CreatorsInput=b,o.CreatorsInputSwitch=$,o.CreatorsLibPlugin=He,o.CreatorsModal=M,o.CreatorsProgress=q,o.CreatorsRadio=P,o.CreatorsRating=R,o.CreatorsRow=U,o.CreatorsSelect=B,o.CreatorsSkeleton=f,o.CreatorsSkeletonCard=E,o.CreatorsSkeletonList=W,o.CreatorsSkeletonProfile=K,o.CreatorsSkeletonSimpleList=A,o.CreatorsSkeletonTable=G,o.CreatorsText=y,o.CreatorsTextarea=S,o.CreatorsTimeline=j,o.CreatorsToaster=D,o.useToast=I,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ProgressProps {
|
|
2
|
+
value: number;
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
trackColor?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<ProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
|
|
8
|
+
value: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
trackColor: string;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -37,3 +37,5 @@ export { CreatorsSkeleton, CreatorsSkeletonCard, CreatorsSkeletonList, CreatorsS
|
|
|
37
37
|
export type { SkeletonProps, SkeletonSimpleListProps } from './components/Skeleton';
|
|
38
38
|
export { CreatorsRow, CreatorsCol } from './components/Grid';
|
|
39
39
|
export type { RowProps, ColProps } from './components/Grid';
|
|
40
|
+
export { CreatorsProgress } from './components/Progress';
|
|
41
|
+
export type { ProgressProps } from './components/Progress';
|