clds-ui 0.3.12 → 0.3.14

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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as o, computed as d, ref as f, onMounted as y, onUnmounted as $, watch as V, reactive as P } from "vue";
2
- const F = /* @__PURE__ */ o({
1
+ import { defineComponent as o, computed as u, ref as h, onMounted as S, onUnmounted as y, watch as V } from "vue";
2
+ const P = /* @__PURE__ */ o({
3
3
  __name: "CreatorsButton",
4
4
  props: {
5
5
  variant: { default: "primary" },
@@ -12,14 +12,14 @@ const F = /* @__PURE__ */ o({
12
12
  return { __sfc: !0, emit: t };
13
13
  }
14
14
  });
15
- function i(a, t, e, s, l, r, n, u) {
16
- var c = typeof a == "function" ? a.options : a;
17
- return t && (c.render = t, c.staticRenderFns = e, c._compiled = !0), r && (c._scopeId = "data-v-" + r), {
15
+ function i(a, t, e, s, l, r, n, p) {
16
+ var _ = typeof a == "function" ? a.options : a;
17
+ return t && (_.render = t, _.staticRenderFns = e, _._compiled = !0), r && (_._scopeId = "data-v-" + r), {
18
18
  exports: a,
19
- options: c
19
+ options: _
20
20
  };
21
21
  }
22
- var R = function() {
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
- }, L = [], j = /* @__PURE__ */ i(
32
+ }, R = [], L = /* @__PURE__ */ i(
33
+ P,
33
34
  F,
34
35
  R,
35
- L,
36
36
  !1,
37
37
  null,
38
38
  "2b3665ef"
39
39
  );
40
- const z = j.exports, T = /* @__PURE__ */ o({
40
+ const j = L.exports, z = /* @__PURE__ */ o({
41
41
  __name: "CreatorsText",
42
42
  props: {
43
43
  variant: { default: "body-md" },
@@ -64,22 +64,22 @@ const z = j.exports, T = /* @__PURE__ */ o({
64
64
  "body-lg": "p",
65
65
  "body-md": "p",
66
66
  "body-sm": "p"
67
- }, s = d(() => t.as ?? e[t.variant]);
67
+ }, s = u(() => t.as ?? e[t.variant]);
68
68
  return { __sfc: !0, props: t, defaultTags: e, resolvedTag: s };
69
69
  }
70
70
  });
71
- var M = function() {
71
+ var T = function() {
72
72
  var t = this, e = t._self._c, s = t._self._setupProxy;
73
73
  return e(s.resolvedTag, { tag: "component", class: ["cl-text", `cl-text--${t.variant}`], style: t.weight ? { fontWeight: t.weight } : {} }, [t._t("default")], 2);
74
- }, I = [], O = /* @__PURE__ */ i(
74
+ }, M = [], I = /* @__PURE__ */ i(
75
+ z,
75
76
  T,
76
77
  M,
77
- I,
78
78
  !1,
79
79
  null,
80
80
  "0956e087"
81
81
  );
82
- const D = O.exports, E = /* @__PURE__ */ o({
82
+ const O = I.exports, E = /* @__PURE__ */ o({
83
83
  __name: "CreatorsAccordion",
84
84
  props: {
85
85
  items: null,
@@ -87,7 +87,7 @@ const D = O.exports, E = /* @__PURE__ */ o({
87
87
  },
88
88
  emits: ["change"],
89
89
  setup(a, { emit: t }) {
90
- const e = a, s = f(
90
+ const e = a, s = h(
91
91
  e.defaultOpen >= 0 ? e.defaultOpen : null
92
92
  );
93
93
  function l(r) {
@@ -96,7 +96,7 @@ const D = O.exports, E = /* @__PURE__ */ o({
96
96
  return { __sfc: !0, props: e, emit: t, openIndex: s, toggle: l };
97
97
  }
98
98
  });
99
- var W = function() {
99
+ var D = function() {
100
100
  var t = this, e = t._self._c, s = t._self._setupProxy;
101
101
  return e("div", { staticClass: "cl-accordion" }, t._l(t.items, function(l, r) {
102
102
  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) {
@@ -105,15 +105,15 @@ var W = function() {
105
105
  return [t._v(t._s(l.content))];
106
106
  })], 2)])]);
107
107
  }), 0);
108
- }, A = [], q = /* @__PURE__ */ i(
108
+ }, W = [], A = /* @__PURE__ */ i(
109
109
  E,
110
+ D,
110
111
  W,
111
- A,
112
112
  !1,
113
113
  null,
114
114
  "cdacee19"
115
115
  );
116
- const K = q.exports, G = /* @__PURE__ */ o({
116
+ const q = A.exports, K = /* @__PURE__ */ o({
117
117
  __name: "CreatorsInput",
118
118
  props: {
119
119
  modelValue: null,
@@ -136,8 +136,8 @@ const K = q.exports, G = /* @__PURE__ */ o({
136
136
  t("update:modelValue", n.target.value);
137
137
  }
138
138
  function s(n) {
139
- const u = n.target.value;
140
- t("enter", u), t("search", u);
139
+ const p = n.target.value;
140
+ t("enter", p), t("search", p);
141
141
  }
142
142
  function l() {
143
143
  t("update:modelValue", ""), t("clear");
@@ -148,7 +148,7 @@ const K = q.exports, G = /* @__PURE__ */ o({
148
148
  return { __sfc: !0, emit: t, onInput: e, onEnter: s, onClear: l, onSearch: r };
149
149
  }
150
150
  });
151
- var N = function() {
151
+ var G = function() {
152
152
  var t = this, e = t._self._c, s = t._self._setupProxy;
153
153
  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() {
154
154
  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()];
@@ -159,15 +159,15 @@ var N = function() {
159
159
  }, blur: function(l) {
160
160
  return s.emit("blur", l);
161
161
  } } }, "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()]);
162
- }, U = [], X = /* @__PURE__ */ i(
162
+ }, N = [], U = /* @__PURE__ */ i(
163
+ K,
163
164
  G,
164
165
  N,
165
- U,
166
166
  !1,
167
167
  null,
168
168
  "8c08ffa2"
169
169
  );
170
- const H = X.exports, Y = /* @__PURE__ */ o({
170
+ const X = U.exports, H = /* @__PURE__ */ o({
171
171
  __name: "CreatorsInputSwitch",
172
172
  props: {
173
173
  modelValue: { type: Boolean, default: !1 },
@@ -183,21 +183,21 @@ const H = X.exports, Y = /* @__PURE__ */ o({
183
183
  return { __sfc: !0, emit: t, onChange: e };
184
184
  }
185
185
  });
186
- var J = function() {
186
+ var Y = function() {
187
187
  var t = this, e = t._self._c, s = t._self._setupProxy;
188
188
  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()]);
189
- }, Q = [function() {
189
+ }, J = [function() {
190
190
  var a = this, t = a._self._c;
191
191
  return a._self._setupProxy, t("span", { staticClass: "cl-switch__track" }, [t("span", { staticClass: "cl-switch__thumb" })]);
192
- }], Z = /* @__PURE__ */ i(
192
+ }], Q = /* @__PURE__ */ i(
193
+ H,
193
194
  Y,
194
195
  J,
195
- Q,
196
196
  !1,
197
197
  null,
198
198
  "3fb5090c"
199
199
  );
200
- const tt = Z.exports, et = /* @__PURE__ */ o({
200
+ const Z = Q.exports, tt = /* @__PURE__ */ o({
201
201
  __name: "CreatorsTextarea",
202
202
  props: {
203
203
  modelValue: null,
@@ -219,13 +219,13 @@ const tt = Z.exports, et = /* @__PURE__ */ o({
219
219
  function l(n) {
220
220
  t("enter", n.target.value);
221
221
  }
222
- const r = d(
222
+ const r = u(
223
223
  () => e.maxlength !== void 0 && (e.modelValue ?? "").length > e.maxlength
224
224
  );
225
225
  return { __sfc: !0, props: e, emit: t, onInput: s, onEnter: l, isOver: r };
226
226
  }
227
227
  });
228
- var st = function() {
228
+ var et = function() {
229
229
  var t = this, e = t._self._c, s = t._self._setupProxy;
230
230
  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) {
231
231
  return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") || !l.ctrlKey ? null : s.onEnter.apply(null, arguments);
@@ -234,15 +234,15 @@ var st = function() {
234
234
  }, blur: function(l) {
235
235
  return s.emit("blur", l);
236
236
  } } }, "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()])]);
237
- }, lt = [], at = /* @__PURE__ */ i(
237
+ }, st = [], lt = /* @__PURE__ */ i(
238
+ tt,
238
239
  et,
239
240
  st,
240
- lt,
241
241
  !1,
242
242
  null,
243
243
  "b23cc99a"
244
244
  );
245
- const rt = at.exports, nt = /* @__PURE__ */ o({
245
+ const at = lt.exports, rt = /* @__PURE__ */ o({
246
246
  __name: "CreatorsSelect",
247
247
  props: {
248
248
  modelValue: null,
@@ -256,41 +256,41 @@ const rt = at.exports, nt = /* @__PURE__ */ o({
256
256
  },
257
257
  emits: ["update:modelValue", "change"],
258
258
  setup(a, { emit: t }) {
259
- const e = a, s = f(!1), l = f(null), r = d(
260
- () => e.options.find((_) => _.value === e.modelValue) ?? null
259
+ const e = a, s = h(!1), l = h(null), r = u(
260
+ () => e.options.find((f) => f.value === e.modelValue) ?? null
261
261
  );
262
262
  function n() {
263
263
  e.disabled || (s.value = !s.value);
264
264
  }
265
- function u(_) {
266
- t("update:modelValue", _.value), t("change", _.value), s.value = !1;
265
+ function p(f) {
266
+ t("update:modelValue", f.value), t("change", f.value), s.value = !1;
267
267
  }
268
- function c(_) {
269
- l.value && !l.value.contains(_.target) && (s.value = !1);
268
+ function _(f) {
269
+ l.value && !l.value.contains(f.target) && (s.value = !1);
270
270
  }
271
- return y(() => {
272
- document.addEventListener("mousedown", c), document.addEventListener("touchstart", c);
273
- }), $(() => {
274
- document.removeEventListener("mousedown", c), document.removeEventListener("touchstart", c);
275
- }), { __sfc: !0, props: e, emit: t, isOpen: s, rootRef: l, selectedOption: r, toggle: n, select: u, onClickOutside: c };
271
+ return S(() => {
272
+ document.addEventListener("mousedown", _), document.addEventListener("touchstart", _);
273
+ }), y(() => {
274
+ document.removeEventListener("mousedown", _), document.removeEventListener("touchstart", _);
275
+ }), { __sfc: !0, props: e, emit: t, isOpen: s, rootRef: l, selectedOption: r, toggle: n, select: p, onClickOutside: _ };
276
276
  }
277
277
  });
278
- var ot = function() {
278
+ var nt = function() {
279
279
  var t = this, e = t._self._c, s = t._self._setupProxy;
280
280
  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) {
281
281
  return e("li", { key: l.value, class: ["cl-select__option", { "cl-select__option--selected": l.value === t.modelValue }], on: { click: function(r) {
282
282
  return s.select(l);
283
283
  } } }, [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()]);
284
284
  }), 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);
285
- }, it = [], ct = /* @__PURE__ */ i(
285
+ }, ot = [], it = /* @__PURE__ */ i(
286
+ rt,
286
287
  nt,
287
288
  ot,
288
- it,
289
289
  !1,
290
290
  null,
291
291
  "f07ac917"
292
292
  );
293
- const _t = ct.exports, dt = /* @__PURE__ */ o({
293
+ const ct = it.exports, _t = /* @__PURE__ */ o({
294
294
  __name: "CreatorsCheckbox",
295
295
  props: {
296
296
  modelValue: { type: Boolean, default: !1 },
@@ -305,18 +305,18 @@ const _t = ct.exports, dt = /* @__PURE__ */ o({
305
305
  return { __sfc: !0, emit: t, onChange: e };
306
306
  }
307
307
  });
308
- var ut = function() {
308
+ var dt = function() {
309
309
  var t = this, e = t._self._c, s = t._self._setupProxy;
310
310
  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()]);
311
- }, pt = [], ft = /* @__PURE__ */ i(
311
+ }, ut = [], pt = /* @__PURE__ */ i(
312
+ _t,
312
313
  dt,
313
314
  ut,
314
- pt,
315
315
  !1,
316
316
  null,
317
317
  "d1ad8f2e"
318
318
  );
319
- const vt = ft.exports, ht = /* @__PURE__ */ o({
319
+ const ft = pt.exports, vt = /* @__PURE__ */ o({
320
320
  __name: "CreatorsRadio",
321
321
  props: {
322
322
  modelValue: null,
@@ -329,20 +329,20 @@ const vt = ft.exports, ht = /* @__PURE__ */ o({
329
329
  return { __sfc: !0, emit: t };
330
330
  }
331
331
  });
332
- var mt = function() {
332
+ var ht = function() {
333
333
  var t = this, e = t._self._c, s = t._self._setupProxy;
334
334
  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) {
335
335
  return s.emit("update:modelValue", t.value);
336
336
  } } }), 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()]);
337
- }, gt = [], wt = /* @__PURE__ */ i(
337
+ }, mt = [], gt = /* @__PURE__ */ i(
338
+ vt,
338
339
  ht,
339
340
  mt,
340
- gt,
341
341
  !1,
342
342
  null,
343
343
  "242eedd7"
344
344
  );
345
- const Ct = wt.exports, bt = /* @__PURE__ */ o({
345
+ const wt = gt.exports, Ct = /* @__PURE__ */ o({
346
346
  __name: "CreatorsRating",
347
347
  props: {
348
348
  modelValue: null,
@@ -354,14 +354,14 @@ const Ct = wt.exports, bt = /* @__PURE__ */ o({
354
354
  },
355
355
  emits: ["update:modelValue", "change"],
356
356
  setup(a, { emit: t }) {
357
- const e = a, s = f(null), l = d(() => ({ sm: 16, md: 24, lg: 32 })[e.size]);
357
+ const e = a, s = h(null), l = u(() => ({ sm: 16, md: 24, lg: 32 })[e.size]);
358
358
  function r(n) {
359
359
  t("update:modelValue", n), t("change", n);
360
360
  }
361
361
  return { __sfc: !0, props: e, emit: t, hovered: s, starSize: l, select: r };
362
362
  }
363
363
  });
364
- var xt = function() {
364
+ var bt = function() {
365
365
  var t = this, e = t._self._c, s = t._self._setupProxy;
366
366
  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) {
367
367
  return e("button", { key: l, staticClass: "cl-rating__star", class: {
@@ -374,15 +374,15 @@ var xt = function() {
374
374
  s.hovered = null;
375
375
  } } }, [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") } })])]);
376
376
  }), t.showValue ? e("span", { staticClass: "cl-rating__value" }, [t._v(t._s(t.modelValue ?? 0) + "/" + t._s(t.count))]) : t._e()], 2);
377
- }, kt = [], yt = /* @__PURE__ */ i(
377
+ }, xt = [], kt = /* @__PURE__ */ i(
378
+ Ct,
378
379
  bt,
379
380
  xt,
380
- kt,
381
381
  !1,
382
382
  null,
383
383
  "9b711643"
384
384
  );
385
- const $t = yt.exports, Bt = /* @__PURE__ */ o({
385
+ const yt = kt.exports, $t = /* @__PURE__ */ o({
386
386
  __name: "CreatorsDataTable",
387
387
  props: {
388
388
  columns: null,
@@ -395,25 +395,25 @@ const $t = yt.exports, Bt = /* @__PURE__ */ o({
395
395
  },
396
396
  emits: ["row-click", "sort"],
397
397
  setup(a, { emit: t }) {
398
- const e = a, s = f(null), l = f("asc"), r = f(1);
399
- function n(p) {
400
- s.value === p ? l.value = l.value === "asc" ? "desc" : "asc" : (s.value = p, l.value = "asc"), t("sort", s.value, l.value);
398
+ const e = a, s = h(null), l = h("asc"), r = h(1);
399
+ function n(d) {
400
+ s.value === d ? l.value = l.value === "asc" ? "desc" : "asc" : (s.value = d, l.value = "asc"), t("sort", s.value, l.value);
401
401
  }
402
- const u = d(() => s.value ? [...e.rows].sort((p, S) => {
403
- const b = p[s.value], x = S[s.value];
402
+ const p = u(() => s.value ? [...e.rows].sort((d, v) => {
403
+ const b = d[s.value], x = v[s.value];
404
404
  if (b == null) return 1;
405
405
  if (x == null) return -1;
406
- const k = b < x ? -1 : b > x ? 1 : 0;
407
- return l.value === "asc" ? k : -k;
408
- }) : [...e.rows]), c = d(() => Math.max(1, Math.ceil(e.rows.length / e.pageSize))), _ = d(() => {
409
- if (!e.pagination) return u.value;
410
- const p = (r.value - 1) * e.pageSize;
411
- return u.value.slice(p, p + e.pageSize);
412
- }), m = d(() => Math.min((r.value - 1) * e.pageSize + 1, e.rows.length)), C = d(() => Math.min(r.value * e.pageSize, e.rows.length));
413
- return { __sfc: !0, props: e, emit: t, sortKey: s, sortDir: l, page: r, toggleSort: n, sorted: u, totalPages: c, sortedRows: _, paginationStart: m, paginationEnd: C };
406
+ const B = b < x ? -1 : b > x ? 1 : 0;
407
+ return l.value === "asc" ? B : -B;
408
+ }) : [...e.rows]), _ = u(() => Math.max(1, Math.ceil(e.rows.length / e.pageSize))), f = u(() => {
409
+ if (!e.pagination) return p.value;
410
+ const d = (r.value - 1) * e.pageSize;
411
+ return p.value.slice(d, d + e.pageSize);
412
+ }), C = u(() => Math.min((r.value - 1) * e.pageSize + 1, e.rows.length)), c = u(() => Math.min(r.value * e.pageSize, e.rows.length));
413
+ return { __sfc: !0, props: e, emit: t, sortKey: s, sortDir: l, page: r, toggleSort: n, sorted: p, totalPages: _, sortedRows: f, paginationStart: C, paginationEnd: c };
414
414
  }
415
415
  });
416
- var St = function() {
416
+ var Bt = function() {
417
417
  var t = this, e = t._self._c, s = t._self._setupProxy;
418
418
  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) {
419
419
  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) {
@@ -432,18 +432,18 @@ var St = function() {
432
432
  } } }, [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) {
433
433
  s.page++;
434
434
  } } }, [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()]);
435
- }, Vt = [function() {
435
+ }, St = [function() {
436
436
  var a = this, t = a._self._c;
437
437
  return a._self._setupProxy, t("div", { staticClass: "cl-table__loading" }, [t("span", { staticClass: "cl-table__spinner" }), t("span", [a._v("Carregando...")])]);
438
- }], Pt = /* @__PURE__ */ i(
438
+ }], Vt = /* @__PURE__ */ i(
439
+ $t,
439
440
  Bt,
440
441
  St,
441
- Vt,
442
442
  !1,
443
443
  null,
444
444
  "917ea8fe"
445
445
  );
446
- const Ft = Pt.exports, Rt = /* @__PURE__ */ o({
446
+ const Pt = Vt.exports, Ft = /* @__PURE__ */ o({
447
447
  __name: "CreatorsDivider",
448
448
  props: {
449
449
  label: null,
@@ -455,7 +455,7 @@ const Ft = Pt.exports, Rt = /* @__PURE__ */ o({
455
455
  return { __sfc: !0 };
456
456
  }
457
457
  });
458
- var Lt = function() {
458
+ var Rt = function() {
459
459
  var t = this, e = t._self._c;
460
460
  return t._self._setupProxy, e("div", { class: [
461
461
  "cl-divider",
@@ -463,15 +463,15 @@ var Lt = function() {
463
463
  { "cl-divider--dashed": t.dashed },
464
464
  t.label ? `cl-divider--label-${t.align}` : ""
465
465
  ], attrs: { role: "separator" } }, [t.label ? e("span", { staticClass: "cl-divider__label" }, [t._v(t._s(t.label))]) : t._e()]);
466
- }, jt = [], zt = /* @__PURE__ */ i(
466
+ }, Lt = [], jt = /* @__PURE__ */ i(
467
+ Ft,
467
468
  Rt,
468
469
  Lt,
469
- jt,
470
470
  !1,
471
471
  null,
472
472
  "31f5c2f9"
473
473
  );
474
- const Tt = zt.exports, Mt = /* @__PURE__ */ o({
474
+ const zt = jt.exports, Tt = /* @__PURE__ */ o({
475
475
  __name: "CreatorsTimeline",
476
476
  props: {
477
477
  items: null,
@@ -482,7 +482,7 @@ const Tt = zt.exports, Mt = /* @__PURE__ */ o({
482
482
  return { __sfc: !0 };
483
483
  }
484
484
  });
485
- var It = function() {
485
+ var Mt = function() {
486
486
  var t = this, e = t._self._c;
487
487
  return t._self._setupProxy, e("div", { class: ["cl-timeline", `cl-timeline--${t.align}`, `cl-timeline--${t.orientation}`] }, t._l(t.items, function(s, l) {
488
488
  return e("div", { key: l, class: [
@@ -500,15 +500,15 @@ var It = function() {
500
500
  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()])];
501
501
  })], 2)]], 2);
502
502
  }), 0);
503
- }, Ot = [], Dt = /* @__PURE__ */ i(
503
+ }, It = [], Ot = /* @__PURE__ */ i(
504
+ Tt,
504
505
  Mt,
505
506
  It,
506
- Ot,
507
507
  !1,
508
508
  null,
509
509
  "f802dc88"
510
510
  );
511
- const Et = Dt.exports, Wt = /* @__PURE__ */ o({
511
+ const Et = Ot.exports, Dt = /* @__PURE__ */ o({
512
512
  __name: "CreatorsBadge",
513
513
  props: {
514
514
  variant: { default: "default" },
@@ -519,18 +519,18 @@ const Et = Dt.exports, Wt = /* @__PURE__ */ o({
519
519
  return { __sfc: !0, props: t, statusIcon: e };
520
520
  }
521
521
  });
522
- var At = function() {
522
+ var Wt = function() {
523
523
  var t = this, e = t._self._c, s = t._self._setupProxy;
524
524
  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);
525
- }, qt = [], Kt = /* @__PURE__ */ i(
525
+ }, At = [], qt = /* @__PURE__ */ i(
526
+ Dt,
526
527
  Wt,
527
528
  At,
528
- qt,
529
529
  !1,
530
530
  null,
531
531
  "36988d61"
532
532
  );
533
- const Gt = Kt.exports, Nt = /* @__PURE__ */ o({
533
+ const Kt = qt.exports, Gt = /* @__PURE__ */ o({
534
534
  __name: "CreatorsCard",
535
535
  props: {
536
536
  title: null,
@@ -543,11 +543,11 @@ const Gt = Kt.exports, Nt = /* @__PURE__ */ o({
543
543
  to: null
544
544
  },
545
545
  setup(a) {
546
- const t = a, e = d(() => t.to ? "router-link" : "div");
546
+ const t = a, e = u(() => t.to ? "router-link" : "div");
547
547
  return { __sfc: !0, props: t, tag: e };
548
548
  }
549
549
  });
550
- var Ut = function() {
550
+ var Nt = function() {
551
551
  var t = this, e = t._self._c, s = t._self._setupProxy;
552
552
  return e(s.tag, { tag: "component", class: [
553
553
  "cl-card",
@@ -559,15 +559,15 @@ var Ut = function() {
559
559
  })], 2) : t._e(), t.description || t.$slots.description ? e("div", { staticClass: "cl-card__description" }, [t._t("description", function() {
560
560
  return [t._v(t._s(t.description))];
561
561
  })], 2) : t._e(), t._t("default")], 2), t.$slots.footer ? e("div", { staticClass: "cl-card__footer" }, [t._t("footer")], 2) : t._e()]);
562
- }, Xt = [], Ht = /* @__PURE__ */ i(
562
+ }, Ut = [], Xt = /* @__PURE__ */ i(
563
+ Gt,
563
564
  Nt,
564
565
  Ut,
565
- Xt,
566
566
  !1,
567
567
  null,
568
568
  "9d2598d2"
569
569
  );
570
- const Yt = Ht.exports, Jt = /* @__PURE__ */ o({
570
+ const Ht = Xt.exports, Yt = /* @__PURE__ */ o({
571
571
  __name: "CreatorsCardCampaign",
572
572
  props: {
573
573
  status: null,
@@ -583,22 +583,22 @@ const Yt = Ht.exports, Jt = /* @__PURE__ */ o({
583
583
  to: null
584
584
  },
585
585
  setup(a) {
586
- const t = a, e = d(() => t.to ? "router-link" : "div"), s = d(() => (t.brandName ?? t.title).slice(0, 2).toUpperCase());
586
+ const t = a, e = u(() => t.to ? "router-link" : "div"), s = u(() => (t.brandName ?? t.title).slice(0, 2).toUpperCase());
587
587
  return { __sfc: !0, props: t, tag: e, brandInitials: s };
588
588
  }
589
589
  });
590
- var Qt = function() {
590
+ var Jt = function() {
591
591
  var t = this, e = t._self._c, s = t._self._setupProxy;
592
592
  return e(s.tag, { tag: "component", class: ["cl-card-campaign", { "cl-card-campaign--hoverable": t.hoverable || !!t.to }], style: t.border ? { border: t.border } : {}, attrs: { to: t.to ?? void 0 } }, [e("div", { staticClass: "cl-card-campaign__top" }, [e("span", { class: ["cl-card-campaign__badge", `cl-card-campaign__badge--${t.statusVariant}`] }, [t._v(" " + t._s(t.status) + " ")])]), e("div", { staticClass: "cl-card-campaign__brand" }, [e("div", { staticClass: "cl-card-campaign__logo" }, [t.brandLogo ? e("img", { attrs: { src: t.brandLogo, alt: t.brandName ?? t.title } }) : e("span", { staticClass: "cl-card-campaign__logo-fallback" }, [t._v(" " + t._s(s.brandInitials) + " ")])]), e("span", { staticClass: "cl-card-campaign__title" }, [t._v(t._s(t.title))])]), e("div", { staticClass: "cl-card-campaign__divider" }), e("div", { staticClass: "cl-card-campaign__footer" }, [e("span", { staticClass: "cl-card-campaign__stat" }, [e("strong", [t._v(t._s(t.publicationsCount))]), e("span", { staticClass: "cl-card-campaign__stat-label" }, [t._v(t._s(t.publicationsLabel))])]), t.deliveryDate ? e("span", { staticClass: "cl-card-campaign__delivery" }, [e("span", { staticClass: "cl-card-campaign__stat-label" }, [t._v("entrega")]), e("strong", [t._v(t._s(t.deliveryDate))])]) : t._e()])]);
593
- }, Zt = [], te = /* @__PURE__ */ i(
593
+ }, Qt = [], Zt = /* @__PURE__ */ i(
594
+ Yt,
594
595
  Jt,
595
596
  Qt,
596
- Zt,
597
597
  !1,
598
598
  null,
599
599
  "40bccc0d"
600
600
  );
601
- const ee = te.exports, se = /* @__PURE__ */ o({
601
+ const te = Zt.exports, ee = /* @__PURE__ */ o({
602
602
  __name: "CreatorsCardShell",
603
603
  props: {
604
604
  padding: null,
@@ -608,26 +608,26 @@ const ee = te.exports, se = /* @__PURE__ */ o({
608
608
  to: null
609
609
  },
610
610
  setup(a) {
611
- const t = a, e = d(() => t.to ? "router-link" : "div");
611
+ const t = a, e = u(() => t.to ? "router-link" : "div");
612
612
  return { __sfc: !0, props: t, tag: e };
613
613
  }
614
614
  });
615
- var le = function() {
615
+ var se = function() {
616
616
  var t = this, e = t._self._c, s = t._self._setupProxy;
617
617
  return e(s.tag, { tag: "component", class: ["cl-card-shell", { "cl-card-shell--hoverable": t.hoverable || !!t.to }], style: {
618
618
  ...t.padding ? { padding: t.padding } : {},
619
619
  ...t.border ? { border: t.border } : {},
620
620
  ...t.background ? { background: t.background } : {}
621
621
  }, attrs: { to: t.to ?? void 0 } }, [t._t("default")], 2);
622
- }, ae = [], re = /* @__PURE__ */ i(
622
+ }, le = [], ae = /* @__PURE__ */ i(
623
+ ee,
623
624
  se,
624
625
  le,
625
- ae,
626
626
  !1,
627
627
  null,
628
628
  "4e3b4fd5"
629
629
  );
630
- const ne = re.exports, oe = /* @__PURE__ */ o({
630
+ const re = ae.exports, ne = /* @__PURE__ */ o({
631
631
  __name: "CreatorsModal",
632
632
  props: {
633
633
  modelValue: { type: Boolean },
@@ -651,56 +651,64 @@ const ne = re.exports, oe = /* @__PURE__ */ o({
651
651
  }
652
652
  return V(() => e.modelValue, (n) => {
653
653
  document.body.style.overflow = n ? "hidden" : "";
654
- }), y(() => window.addEventListener("keydown", r)), $(() => {
654
+ }), S(() => window.addEventListener("keydown", r)), y(() => {
655
655
  window.removeEventListener("keydown", r), document.body.style.overflow = "";
656
656
  }), { __sfc: !0, props: e, emit: t, close: s, onOverlayClick: l, onKeydown: r };
657
657
  }
658
658
  });
659
- var ie = function() {
659
+ var oe = function() {
660
660
  var t = this, e = t._self._c, s = t._self._setupProxy;
661
661
  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) {
662
662
  return l.target !== l.currentTarget ? null : s.onOverlayClick.apply(null, arguments);
663
663
  } } }, [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() {
664
664
  return [t.title ? e("span", { staticClass: "cl-modal__title", attrs: { id: "cl-modal-title" } }, [t._v(t._s(t.title))]) : t._e()];
665
665
  }), 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()]);
666
- }, ce = [], _e = /* @__PURE__ */ i(
666
+ }, ie = [], ce = /* @__PURE__ */ i(
667
+ ne,
667
668
  oe,
668
669
  ie,
669
- ce,
670
670
  !1,
671
671
  null,
672
672
  null
673
673
  );
674
- const de = _e.exports;
674
+ const _e = ce.exports, m = {};
675
+ function de(a, t) {
676
+ return m[a] || (m[a] = []), m[a].push(t), () => {
677
+ m[a] = (m[a] || []).filter((e) => e !== t);
678
+ };
679
+ }
680
+ function $(a, t) {
681
+ (m[a] || []).forEach((e) => e(t));
682
+ }
675
683
  let ue = 0;
676
- const w = typeof window < "u" && window.Vue, v = w != null && w.observable ? w.observable({ items: [] }) : P({ items: [] });
677
- function g(a, t = "info") {
684
+ function w(a, t = "info") {
678
685
  const e = ++ue, s = typeof a == "string" ? { id: e, type: t, title: a, duration: 4e3, position: "top-right" } : { id: e, ...a };
679
- return s.id = e, s.duration > 0 && (s._timer = setTimeout(() => B(e), s.duration)), v.items.push(s), e;
686
+ return s.id = e, $("add", s), e;
680
687
  }
681
- function B(a) {
682
- const t = v.items.findIndex((e) => e.id === a);
683
- t !== -1 && (clearTimeout(v.items[t]._timer), v.items.splice(t, 1));
684
- }
685
- function pe() {
686
- v.items.forEach((a) => clearTimeout(a._timer)), v.items.splice(0);
688
+ function pe(a) {
689
+ $("remove", a);
687
690
  }
688
691
  function fe() {
692
+ $("clear");
693
+ }
694
+ function k(a, t) {
695
+ return de(a, t);
696
+ }
697
+ function us() {
689
698
  return {
690
- toasts: v.items,
691
- add: g,
692
- remove: B,
693
- clear: pe,
694
- success: (a, t) => g({ title: a, type: "success", duration: 4e3, position: "top-right", ...t }),
695
- error: (a, t) => g({ title: a, type: "error", duration: 4e3, position: "top-right", ...t }),
696
- warning: (a, t) => g({ title: a, type: "warning", duration: 4e3, position: "top-right", ...t }),
697
- info: (a, t) => g({ title: a, type: "info", duration: 4e3, position: "top-right", ...t })
699
+ add: w,
700
+ remove: pe,
701
+ clear: fe,
702
+ success: (a, t) => w({ title: a, type: "success", duration: 4e3, position: "top-right", ...t }),
703
+ error: (a, t) => w({ title: a, type: "error", duration: 4e3, position: "top-right", ...t }),
704
+ warning: (a, t) => w({ title: a, type: "warning", duration: 4e3, position: "top-right", ...t }),
705
+ info: (a, t) => w({ title: a, type: "info", duration: 4e3, position: "top-right", ...t })
698
706
  };
699
707
  }
700
708
  const ve = /* @__PURE__ */ o({
701
709
  __name: "CreatorsToaster",
702
710
  setup(a) {
703
- const { toasts: t, remove: e } = fe(), s = [
711
+ const t = h([]), e = [
704
712
  "top-left",
705
713
  "top-center",
706
714
  "top-right",
@@ -708,23 +716,36 @@ const ve = /* @__PURE__ */ o({
708
716
  "bottom-center",
709
717
  "bottom-right"
710
718
  ];
719
+ function s(c) {
720
+ return t.value.filter((d) => d.position === c);
721
+ }
711
722
  function l(c) {
712
- return t.filter((_) => _.position === c);
723
+ const d = t.value.findIndex((v) => v.id === c);
724
+ d !== -1 && (clearTimeout(t.value[d]._timer), t.value.splice(d, 1));
713
725
  }
714
- const r = /* @__PURE__ */ new Map();
715
- function n(c) {
726
+ const r = k("add", (c) => {
727
+ c.duration > 0 && (c._timer = setTimeout(() => l(c.id), c.duration)), t.value.push(c);
728
+ }), n = k("remove", (c) => l(c)), p = k("clear", () => {
729
+ t.value.forEach((c) => clearTimeout(c._timer)), t.value.splice(0);
730
+ });
731
+ y(() => {
732
+ r(), n(), p();
733
+ });
734
+ const _ = /* @__PURE__ */ new Map();
735
+ function f(c) {
736
+ var v;
716
737
  if (c.duration <= 0) return;
717
738
  clearTimeout(c._timer);
718
- const _ = r.get(c.id), m = _ ? _.remaining : c.duration;
719
- r.set(c.id, { remaining: m, startedAt: Date.now() });
739
+ const d = ((v = _.get(c.id)) == null ? void 0 : v.remaining) ?? c.duration;
740
+ _.set(c.id, { remaining: d, startedAt: Date.now() });
720
741
  }
721
- function u(c) {
722
- const _ = r.get(c.id);
723
- if (!_) return;
724
- const m = Date.now() - _.startedAt, C = Math.max(_.remaining - m, 0);
725
- r.delete(c.id), c._timer = setTimeout(() => e(c.id), C);
742
+ function C(c) {
743
+ const d = _.get(c.id);
744
+ if (!d) return;
745
+ const v = Math.max(d.remaining - (Date.now() - d.startedAt), 0);
746
+ _.delete(c.id), c._timer = setTimeout(() => l(c.id), v);
726
747
  }
727
- return { __sfc: !0, toasts: t, remove: e, positions: s, byPosition: l, paused: r, pauseTimer: n, resumeTimer: u };
748
+ return { __sfc: !0, toasts: t, positions: e, byPosition: s, remove: l, offAdd: r, offRemove: n, offClear: p, paused: _, pauseTimer: f, resumeTimer: C };
728
749
  }
729
750
  });
730
751
  var he = function() {
@@ -779,10 +800,10 @@ var be = function() {
779
800
  null,
780
801
  "3b626f1f"
781
802
  );
782
- const h = ke.exports, ye = /* @__PURE__ */ o({
803
+ const g = ke.exports, ye = /* @__PURE__ */ o({
783
804
  __name: "CreatorsSkeletonCard",
784
805
  setup(a) {
785
- return { __sfc: !0, CreatorsSkeleton: h };
806
+ return { __sfc: !0, CreatorsSkeleton: g };
786
807
  }
787
808
  });
788
809
  var $e = function() {
@@ -805,7 +826,7 @@ const Ve = Se.exports, Pe = /* @__PURE__ */ o({
805
826
  action: { type: Boolean, default: !1 }
806
827
  },
807
828
  setup(a) {
808
- return { __sfc: !0, titleWidths: ["60%", "75%", "50%", "80%", "65%"], subtitleWidths: ["40%", "55%", "35%", "50%", "45%"], CreatorsSkeleton: h };
829
+ return { __sfc: !0, titleWidths: ["60%", "75%", "50%", "80%", "65%"], subtitleWidths: ["40%", "55%", "35%", "50%", "45%"], CreatorsSkeleton: g };
809
830
  }
810
831
  });
811
832
  var Fe = function() {
@@ -829,7 +850,7 @@ const je = Le.exports, ze = /* @__PURE__ */ o({
829
850
  height: { default: "44px" }
830
851
  },
831
852
  setup(a) {
832
- return { __sfc: !0, CreatorsSkeleton: h };
853
+ return { __sfc: !0, CreatorsSkeleton: g };
833
854
  }
834
855
  });
835
856
  var Te = function() {
@@ -845,23 +866,23 @@ var Te = function() {
845
866
  null,
846
867
  "f47e1288"
847
868
  );
848
- const Oe = Ie.exports, De = /* @__PURE__ */ o({
869
+ const Oe = Ie.exports, Ee = /* @__PURE__ */ o({
849
870
  __name: "CreatorsSkeletonProfile",
850
871
  props: {
851
872
  avatarSize: { default: "80px" }
852
873
  },
853
874
  setup(a) {
854
- return { __sfc: !0, CreatorsSkeleton: h };
875
+ return { __sfc: !0, CreatorsSkeleton: g };
855
876
  }
856
877
  });
857
- var Ee = function() {
878
+ var De = function() {
858
879
  var t = this, e = t._self._c, s = t._self._setupProxy;
859
880
  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) {
860
881
  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);
861
882
  }), 0)], 1)], 1)], 1);
862
883
  }, We = [], Ae = /* @__PURE__ */ i(
863
- De,
864
884
  Ee,
885
+ De,
865
886
  We,
866
887
  !1,
867
888
  null,
@@ -874,7 +895,7 @@ const qe = Ae.exports, Ke = /* @__PURE__ */ o({
874
895
  cols: { default: 4 }
875
896
  },
876
897
  setup(a) {
877
- return { __sfc: !0, CreatorsSkeleton: h };
898
+ return { __sfc: !0, CreatorsSkeleton: g };
878
899
  }
879
900
  });
880
901
  var Ge = function() {
@@ -936,7 +957,7 @@ const Ze = Qe.exports, ts = /* @__PURE__ */ o({
936
957
  offsetXl: null
937
958
  },
938
959
  setup(a) {
939
- const t = a, e = d(() => {
960
+ const t = a, e = u(() => {
940
961
  const s = ["cl-col"];
941
962
  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;
942
963
  });
@@ -963,7 +984,7 @@ const as = ls.exports, rs = /* @__PURE__ */ o({
963
984
  trackColor: { default: "rgba(255, 255, 255, 0.08)" }
964
985
  },
965
986
  setup(a) {
966
- 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);
987
+ const t = a, e = `cl-prog-${Math.random().toString(36).slice(2, 8)}`, s = u(() => Math.min(100, Math.max(0, t.value))), l = u(() => s.value / 100 * t.width);
967
988
  return { __sfc: !0, props: t, gradId: e, clamped: s, fillWidth: l };
968
989
  }
969
990
  });
@@ -979,26 +1000,26 @@ var ns = function() {
979
1000
  null
980
1001
  );
981
1002
  const cs = is.exports, _s = {
982
- CreatorsButton: z,
983
- CreatorsText: D,
984
- CreatorsAccordion: K,
985
- CreatorsInput: H,
986
- CreatorsInputSwitch: tt,
987
- CreatorsTextarea: rt,
988
- CreatorsSelect: _t,
989
- CreatorsCheckbox: vt,
990
- CreatorsRadio: Ct,
991
- CreatorsRating: $t,
992
- CreatorsDataTable: Ft,
993
- CreatorsDivider: Tt,
1003
+ CreatorsButton: j,
1004
+ CreatorsText: O,
1005
+ CreatorsAccordion: q,
1006
+ CreatorsInput: X,
1007
+ CreatorsInputSwitch: Z,
1008
+ CreatorsTextarea: at,
1009
+ CreatorsSelect: ct,
1010
+ CreatorsCheckbox: ft,
1011
+ CreatorsRadio: wt,
1012
+ CreatorsRating: yt,
1013
+ CreatorsDataTable: Pt,
1014
+ CreatorsDivider: zt,
994
1015
  CreatorsTimeline: Et,
995
- CreatorsBadge: Gt,
996
- CreatorsCard: Yt,
997
- CreatorsCardCampaign: ee,
998
- CreatorsCardShell: ne,
999
- CreatorsModal: de,
1016
+ CreatorsBadge: Kt,
1017
+ CreatorsCard: Ht,
1018
+ CreatorsCardCampaign: te,
1019
+ CreatorsCardShell: re,
1020
+ CreatorsModal: _e,
1000
1021
  CreatorsToaster: we,
1001
- CreatorsSkeleton: h,
1022
+ CreatorsSkeleton: g,
1002
1023
  CreatorsSkeletonCard: Ve,
1003
1024
  CreatorsSkeletonList: je,
1004
1025
  CreatorsSkeletonSimpleList: Oe,
@@ -1007,41 +1028,41 @@ const cs = is.exports, _s = {
1007
1028
  CreatorsRow: Ze,
1008
1029
  CreatorsCol: as,
1009
1030
  CreatorsProgress: cs
1010
- }, us = {
1031
+ }, ps = {
1011
1032
  install(a) {
1012
1033
  for (const [t, e] of Object.entries(_s))
1013
1034
  a.component(t, e);
1014
1035
  }
1015
1036
  };
1016
1037
  export {
1017
- K as CreatorsAccordion,
1018
- Gt as CreatorsBadge,
1019
- z as CreatorsButton,
1020
- Yt as CreatorsCard,
1021
- ee as CreatorsCardCampaign,
1022
- ne as CreatorsCardShell,
1023
- vt as CreatorsCheckbox,
1038
+ q as CreatorsAccordion,
1039
+ Kt as CreatorsBadge,
1040
+ j as CreatorsButton,
1041
+ Ht as CreatorsCard,
1042
+ te as CreatorsCardCampaign,
1043
+ re as CreatorsCardShell,
1044
+ ft as CreatorsCheckbox,
1024
1045
  as as CreatorsCol,
1025
- Ft as CreatorsDataTable,
1026
- Tt as CreatorsDivider,
1027
- H as CreatorsInput,
1028
- tt as CreatorsInputSwitch,
1029
- us as CreatorsLibPlugin,
1030
- de as CreatorsModal,
1046
+ Pt as CreatorsDataTable,
1047
+ zt as CreatorsDivider,
1048
+ X as CreatorsInput,
1049
+ Z as CreatorsInputSwitch,
1050
+ ps as CreatorsLibPlugin,
1051
+ _e as CreatorsModal,
1031
1052
  cs as CreatorsProgress,
1032
- Ct as CreatorsRadio,
1033
- $t as CreatorsRating,
1053
+ wt as CreatorsRadio,
1054
+ yt as CreatorsRating,
1034
1055
  Ze as CreatorsRow,
1035
- _t as CreatorsSelect,
1036
- h as CreatorsSkeleton,
1056
+ ct as CreatorsSelect,
1057
+ g as CreatorsSkeleton,
1037
1058
  Ve as CreatorsSkeletonCard,
1038
1059
  je as CreatorsSkeletonList,
1039
1060
  qe as CreatorsSkeletonProfile,
1040
1061
  Oe as CreatorsSkeletonSimpleList,
1041
1062
  Xe as CreatorsSkeletonTable,
1042
- D as CreatorsText,
1043
- rt as CreatorsTextarea,
1063
+ O as CreatorsText,
1064
+ at as CreatorsTextarea,
1044
1065
  Et as CreatorsTimeline,
1045
1066
  we as CreatorsToaster,
1046
- fe as useToast
1067
+ us as useToast
1047
1068
  };
@@ -1 +1 @@
1
- (function(o,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(o=typeof globalThis<"u"?globalThis:o||self,n(o.CreatorsLib={},o.Vue))})(this,function(o,n){"use strict";const Q=n.defineComponent({__name:"CreatorsButton",props:{variant:{default:"primary"},size:{default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(a,{emit:t}){return{__sfc:!0,emit:t}}});function c(a,t,e,s,l,r,i,u){var _=typeof a=="function"?a.options:a;return t&&(_.render=t,_.staticRenderFns=e,_._compiled=!0),r&&(_._scopeId="data-v-"+r),{exports:a,options:_}}var Z=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)},tt=[],et=c(Q,Z,tt,!1,null,"2b3665ef");const k=et.exports,st=n.defineComponent({__name:"CreatorsText",props:{variant:{default:"body-md"},as:null,weight:null},setup(a){const t=a,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=n.computed(()=>t.as??e[t.variant]);return{__sfc:!0,props:t,defaultTags:e,resolvedTag:s}}});var lt=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}`],style:t.weight?{fontWeight:t.weight}:{}},[t._t("default")],2)},at=[],nt=c(st,lt,at,!1,null,"0956e087");const y=nt.exports,rt=n.defineComponent({__name:"CreatorsAccordion",props:{items:null,defaultOpen:{default:-1}},emits:["change"],setup(a,{emit:t}){const e=a,s=n.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 ot=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)},it=[],ct=c(rt,ot,it,!1,null,"cdacee19");const x=ct.exports,_t=n.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(a,{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 dt=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()])},ut=[],pt=c(_t,dt,ut,!1,null,"8c08ffa2");const $=pt.exports,ft=n.defineComponent({__name:"CreatorsInputSwitch",props:{modelValue:{type:Boolean,default:!1},label:null,size:{default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:t}){function e(s){t("update:modelValue",s.target.checked)}return{__sfc:!0,emit:t,onChange:e}}});var ht=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()])},vt=[function(){var a=this,t=a._self._c;return a._self._setupProxy,t("span",{staticClass:"cl-switch__track"},[t("span",{staticClass:"cl-switch__thumb"})])}],mt=c(ft,ht,vt,!1,null,"3fb5090c");const S=mt.exports,gt=n.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(a,{emit:t}){const e=a;function s(i){t("update:modelValue",i.target.value)}function l(i){t("enter",i.target.value)}const r=n.computed(()=>e.maxlength!==void 0&&(e.modelValue??"").length>e.maxlength);return{__sfc:!0,props:e,emit:t,onInput:s,onEnter:l,isOver:r}}});var Ct=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()])])},wt=[],bt=c(gt,Ct,wt,!1,null,"b23cc99a");const B=bt.exports,kt=n.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(a,{emit:t}){const e=a,s=n.ref(!1),l=n.ref(null),r=n.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 n.onMounted(()=>{document.addEventListener("mousedown",_),document.addEventListener("touchstart",_)}),n.onUnmounted(()=>{document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_)}),{__sfc:!0,props:e,emit:t,isOpen:s,rootRef:l,selectedOption:r,toggle:i,select:u,onClickOutside:_}}});var yt=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)},xt=[],$t=c(kt,yt,xt,!1,null,"f07ac917");const V=$t.exports,St=n.defineComponent({__name:"CreatorsCheckbox",props:{modelValue:{type:Boolean,default:!1},label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{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()])},Vt=[],Pt=c(St,Bt,Vt,!1,null,"d1ad8f2e");const P=Pt.exports,Rt=n.defineComponent({__name:"CreatorsRadio",props:{modelValue:null,value:null,label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:t}){return{__sfc:!0,emit:t}}});var Ft=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()])},Lt=[],Tt=c(Rt,Ft,Lt,!1,null,"242eedd7");const R=Tt.exports,jt=n.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(a,{emit:t}){const e=a,s=n.ref(null),l=n.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 zt=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)},Mt=[],It=c(jt,zt,Mt,!1,null,"9b711643");const F=It.exports,Ot=n.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(a,{emit:t}){const e=a,s=n.ref(null),l=n.ref("asc"),r=n.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=n.computed(()=>s.value?[...e.rows].sort((h,rs)=>{const w=h[s.value],b=rs[s.value];if(w==null)return 1;if(b==null)return-1;const J=w<b?-1:w>b?1:0;return l.value==="asc"?J:-J}):[...e.rows]),_=n.computed(()=>Math.max(1,Math.ceil(e.rows.length/e.pageSize))),d=n.computed(()=>{if(!e.pagination)return u.value;const h=(r.value-1)*e.pageSize;return u.value.slice(h,h+e.pageSize)}),m=n.computed(()=>Math.min((r.value-1)*e.pageSize+1,e.rows.length)),C=n.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:C}}});var Dt=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()])},Et=[function(){var a=this,t=a._self._c;return a._self._setupProxy,t("div",{staticClass:"cl-table__loading"},[t("span",{staticClass:"cl-table__spinner"}),t("span",[a._v("Carregando...")])])}],Wt=c(Ot,Dt,Et,!1,null,"917ea8fe");const L=Wt.exports,At=n.defineComponent({__name:"CreatorsDivider",props:{label:null,align:{default:"center"},orientation:{default:"horizontal"},dashed:{type:Boolean,default:!1}},setup(a){return{__sfc:!0}}});var qt=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()])},Kt=[],Ut=c(At,qt,Kt,!1,null,"31f5c2f9");const T=Ut.exports,Gt=n.defineComponent({__name:"CreatorsTimeline",props:{items:null,align:{default:"left"},orientation:{default:"vertical"}},setup(a){return{__sfc:!0}}});var Nt=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)},Xt=[],Ht=c(Gt,Nt,Xt,!1,null,"f802dc88");const j=Ht.exports,Yt=n.defineComponent({__name:"CreatorsBadge",props:{variant:{default:"default"},icon:null},setup(a){const t=a,e=["success","warning","error","info"].includes(t.variant)&&!t.icon;return{__sfc:!0,props:t,statusIcon:e}}});var Jt=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)},Qt=[],Zt=c(Yt,Jt,Qt,!1,null,"36988d61");const z=Zt.exports,te=n.defineComponent({__name:"CreatorsCard",props:{title:null,description:null,label:null,variant:{default:"default"},hoverable:{type:Boolean,default:!1},flush:{type:Boolean,default:!1},border:null,to:null},setup(a){const t=a,e=n.computed(()=>t.to?"router-link":"div");return{__sfc:!0,props:t,tag:e}}});var ee=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.tag,{tag:"component",class:["cl-card",`cl-card--${t.variant}`,{"cl-card--hoverable":t.hoverable||!!t.to},{"cl-card--flush":t.flush}],style:t.border?{border:t.border}:{},attrs:{to:t.to??void 0}},[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()])},se=[],le=c(te,ee,se,!1,null,"9d2598d2");const M=le.exports,ae=n.defineComponent({__name:"CreatorsCardCampaign",props:{status:null,statusVariant:{default:"default"},brandLogo:null,brandName:null,title:null,publicationsCount:{default:"0"},publicationsLabel:{default:"publicações"},deliveryDate:null,hoverable:{type:Boolean,default:!1},border:null,to:null},setup(a){const t=a,e=n.computed(()=>t.to?"router-link":"div"),s=n.computed(()=>(t.brandName??t.title).slice(0,2).toUpperCase());return{__sfc:!0,props:t,tag:e,brandInitials:s}}});var ne=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.tag,{tag:"component",class:["cl-card-campaign",{"cl-card-campaign--hoverable":t.hoverable||!!t.to}],style:t.border?{border:t.border}:{},attrs:{to:t.to??void 0}},[e("div",{staticClass:"cl-card-campaign__top"},[e("span",{class:["cl-card-campaign__badge",`cl-card-campaign__badge--${t.statusVariant}`]},[t._v(" "+t._s(t.status)+" ")])]),e("div",{staticClass:"cl-card-campaign__brand"},[e("div",{staticClass:"cl-card-campaign__logo"},[t.brandLogo?e("img",{attrs:{src:t.brandLogo,alt:t.brandName??t.title}}):e("span",{staticClass:"cl-card-campaign__logo-fallback"},[t._v(" "+t._s(s.brandInitials)+" ")])]),e("span",{staticClass:"cl-card-campaign__title"},[t._v(t._s(t.title))])]),e("div",{staticClass:"cl-card-campaign__divider"}),e("div",{staticClass:"cl-card-campaign__footer"},[e("span",{staticClass:"cl-card-campaign__stat"},[e("strong",[t._v(t._s(t.publicationsCount))]),e("span",{staticClass:"cl-card-campaign__stat-label"},[t._v(t._s(t.publicationsLabel))])]),t.deliveryDate?e("span",{staticClass:"cl-card-campaign__delivery"},[e("span",{staticClass:"cl-card-campaign__stat-label"},[t._v("entrega")]),e("strong",[t._v(t._s(t.deliveryDate))])]):t._e()])])},re=[],oe=c(ae,ne,re,!1,null,"40bccc0d");const I=oe.exports,ie=n.defineComponent({__name:"CreatorsCardShell",props:{padding:null,border:null,background:null,hoverable:{type:Boolean,default:!1},to:null},setup(a){const t=a,e=n.computed(()=>t.to?"router-link":"div");return{__sfc:!0,props:t,tag:e}}});var ce=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.tag,{tag:"component",class:["cl-card-shell",{"cl-card-shell--hoverable":t.hoverable||!!t.to}],style:{...t.padding?{padding:t.padding}:{},...t.border?{border:t.border}:{},...t.background?{background:t.background}:{}},attrs:{to:t.to??void 0}},[t._t("default")],2)},_e=[],de=c(ie,ce,_e,!1,null,"4e3b4fd5");const O=de.exports,ue=n.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(a,{emit:t}){const e=a;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 n.watch(()=>e.modelValue,i=>{document.body.style.overflow=i?"hidden":""}),n.onMounted(()=>window.addEventListener("keydown",r)),n.onUnmounted(()=>{window.removeEventListener("keydown",r),document.body.style.overflow=""}),{__sfc:!0,props:e,emit:t,close:s,onOverlayClick:l,onKeydown:r}}});var pe=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()])},fe=[],he=c(ue,pe,fe,!1,null,null);const D=he.exports;let ve=0;const g=typeof window<"u"&&window.Vue,p=g!=null&&g.observable?g.observable({items:[]}):n.reactive({items:[]});function v(a,t="info"){const e=++ve,s=typeof a=="string"?{id:e,type:t,title:a,duration:4e3,position:"top-right"}:{id:e,...a};return s.id=e,s.duration>0&&(s._timer=setTimeout(()=>E(e),s.duration)),p.items.push(s),e}function E(a){const t=p.items.findIndex(e=>e.id===a);t!==-1&&(clearTimeout(p.items[t]._timer),p.items.splice(t,1))}function me(){p.items.forEach(a=>clearTimeout(a._timer)),p.items.splice(0)}function W(){return{toasts:p.items,add:v,remove:E,clear:me,success:(a,t)=>v({title:a,type:"success",duration:4e3,position:"top-right",...t}),error:(a,t)=>v({title:a,type:"error",duration:4e3,position:"top-right",...t}),warning:(a,t)=>v({title:a,type:"warning",duration:4e3,position:"top-right",...t}),info:(a,t)=>v({title:a,type:"info",duration:4e3,position:"top-right",...t})}}const ge=n.defineComponent({__name:"CreatorsToaster",setup(a){const{toasts:t,remove:e}=W(),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,C=Math.max(d.remaining-m,0);r.delete(_.id),_._timer=setTimeout(()=>e(_.id),C)}return{__sfc:!0,toasts:t,remove:e,positions:s,byPosition:l,paused:r,pauseTimer:i,resumeTimer:u}}});var Ce=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)},we=[],be=c(ge,Ce,we,!1,null,null);const A=be.exports,ke=n.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(a){return{__sfc:!0}}});var ye=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")},xe=[],$e=c(ke,ye,xe,!1,null,"3b626f1f");const f=$e.exports,Se=n.defineComponent({__name:"CreatorsSkeletonCard",setup(a){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-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=[],Pe=c(Se,Be,Ve,!1,null,"00fa9654");const q=Pe.exports,Re=n.defineComponent({__name:"CreatorsSkeletonList",props:{rows:{default:5},avatar:{type:Boolean,default:!0},subtitle:{type:Boolean,default:!0},action:{type:Boolean,default:!1}},setup(a){return{__sfc:!0,titleWidths:["60%","75%","50%","80%","65%"],subtitleWidths:["40%","55%","35%","50%","45%"],CreatorsSkeleton:f}}});var Fe=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)},Le=[],Te=c(Re,Fe,Le,!1,null,"295ec324");const K=Te.exports,je=n.defineComponent({__name:"CreatorsSkeletonSimpleList",props:{loading:{type:Boolean,default:!0},rows:{default:6},height:{default:"44px"}},setup(a){return{__sfc:!0,CreatorsSkeleton:f}}});var ze=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")},Me=[],Ie=c(je,ze,Me,!1,null,"f47e1288");const U=Ie.exports,Oe=n.defineComponent({__name:"CreatorsSkeletonProfile",props:{avatarSize:{default:"80px"}},setup(a){return{__sfc:!0,CreatorsSkeleton:f}}});var De=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)},Ee=[],We=c(Oe,De,Ee,!1,null,"a6635fb6");const G=We.exports,Ae=n.defineComponent({__name:"CreatorsSkeletonTable",props:{rows:{default:5},cols:{default:4}},setup(a){return{__sfc:!0,CreatorsSkeleton:f}}});var qe=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)},Ke=[],Ue=c(Ae,qe,Ke,!1,null,"175f116d");const N=Ue.exports,Ge=n.defineComponent({__name:"CreatorsRow",props:{align:null,justify:null,noGutter:{type:Boolean,default:!1}},setup(a){return{__sfc:!0}}});var Ne=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)},Xe=[],He=c(Ge,Ne,Xe,!1,null,null);const X=He.exports,Ye=n.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(a){const t=a,e=n.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 Je=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{class:s.classes},[t._t("default")],2)},Qe=[],Ze=c(Ye,Je,Qe,!1,null,null);const H=Ze.exports,ts=n.defineComponent({__name:"CreatorsProgress",props:{value:{default:0},width:{default:380},height:{default:10},trackColor:{default:"rgba(255, 255, 255, 0.08)"}},setup(a){const t=a,e=`cl-prog-${Math.random().toString(36).slice(2,8)}`,s=n.computed(()=>Math.min(100,Math.max(0,t.value))),l=n.computed(()=>s.value/100*t.width);return{__sfc:!0,props:t,gradId:e,clamped:s,fillWidth:l}}});var es=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)])},ss=[],ls=c(ts,es,ss,!1,null,null);const Y=ls.exports,as={CreatorsButton:k,CreatorsText:y,CreatorsAccordion:x,CreatorsInput:$,CreatorsInputSwitch:S,CreatorsTextarea:B,CreatorsSelect:V,CreatorsCheckbox:P,CreatorsRadio:R,CreatorsRating:F,CreatorsDataTable:L,CreatorsDivider:T,CreatorsTimeline:j,CreatorsBadge:z,CreatorsCard:M,CreatorsCardCampaign:I,CreatorsCardShell:O,CreatorsModal:D,CreatorsToaster:A,CreatorsSkeleton:f,CreatorsSkeletonCard:q,CreatorsSkeletonList:K,CreatorsSkeletonSimpleList:U,CreatorsSkeletonProfile:G,CreatorsSkeletonTable:N,CreatorsRow:X,CreatorsCol:H,CreatorsProgress:Y},ns={install(a){for(const[t,e]of Object.entries(as))a.component(t,e)}};o.CreatorsAccordion=x,o.CreatorsBadge=z,o.CreatorsButton=k,o.CreatorsCard=M,o.CreatorsCardCampaign=I,o.CreatorsCardShell=O,o.CreatorsCheckbox=P,o.CreatorsCol=H,o.CreatorsDataTable=L,o.CreatorsDivider=T,o.CreatorsInput=$,o.CreatorsInputSwitch=S,o.CreatorsLibPlugin=ns,o.CreatorsModal=D,o.CreatorsProgress=Y,o.CreatorsRadio=R,o.CreatorsRating=F,o.CreatorsRow=X,o.CreatorsSelect=V,o.CreatorsSkeleton=f,o.CreatorsSkeletonCard=q,o.CreatorsSkeletonList=K,o.CreatorsSkeletonProfile=G,o.CreatorsSkeletonSimpleList=U,o.CreatorsSkeletonTable=N,o.CreatorsText=y,o.CreatorsTextarea=B,o.CreatorsTimeline=j,o.CreatorsToaster=A,o.useToast=W,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
1
+ (function(o,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(o=typeof globalThis<"u"?globalThis:o||self,n(o.CreatorsLib={},o.Vue))})(this,function(o,n){"use strict";const Q=n.defineComponent({__name:"CreatorsButton",props:{variant:{default:"primary"},size:{default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(a,{emit:t}){return{__sfc:!0,emit:t}}});function c(a,t,e,s,l,r,i,p){var d=typeof a=="function"?a.options:a;return t&&(d.render=t,d.staticRenderFns=e,d._compiled=!0),r&&(d._scopeId="data-v-"+r),{exports:a,options:d}}var Z=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)},tt=[],et=c(Q,Z,tt,!1,null,"2b3665ef");const x=et.exports,st=n.defineComponent({__name:"CreatorsText",props:{variant:{default:"body-md"},as:null,weight:null},setup(a){const t=a,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=n.computed(()=>t.as??e[t.variant]);return{__sfc:!0,props:t,defaultTags:e,resolvedTag:s}}});var lt=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}`],style:t.weight?{fontWeight:t.weight}:{}},[t._t("default")],2)},at=[],nt=c(st,lt,at,!1,null,"0956e087");const $=nt.exports,rt=n.defineComponent({__name:"CreatorsAccordion",props:{items:null,defaultOpen:{default:-1}},emits:["change"],setup(a,{emit:t}){const e=a,s=n.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 ot=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)},it=[],ct=c(rt,ot,it,!1,null,"cdacee19");const S=ct.exports,_t=n.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(a,{emit:t}){function e(i){t("update:modelValue",i.target.value)}function s(i){const p=i.target.value;t("enter",p),t("search",p)}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 dt=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()])},ut=[],pt=c(_t,dt,ut,!1,null,"8c08ffa2");const B=pt.exports,ft=n.defineComponent({__name:"CreatorsInputSwitch",props:{modelValue:{type:Boolean,default:!1},label:null,size:{default:"md"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:t}){function e(s){t("update:modelValue",s.target.checked)}return{__sfc:!0,emit:t,onChange:e}}});var ht=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()])},vt=[function(){var a=this,t=a._self._c;return a._self._setupProxy,t("span",{staticClass:"cl-switch__track"},[t("span",{staticClass:"cl-switch__thumb"})])}],mt=c(ft,ht,vt,!1,null,"3fb5090c");const V=mt.exports,gt=n.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(a,{emit:t}){const e=a;function s(i){t("update:modelValue",i.target.value)}function l(i){t("enter",i.target.value)}const r=n.computed(()=>e.maxlength!==void 0&&(e.modelValue??"").length>e.maxlength);return{__sfc:!0,props:e,emit:t,onInput:s,onEnter:l,isOver:r}}});var Ct=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()])])},wt=[],bt=c(gt,Ct,wt,!1,null,"b23cc99a");const P=bt.exports,kt=n.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(a,{emit:t}){const e=a,s=n.ref(!1),l=n.ref(null),r=n.computed(()=>e.options.find(f=>f.value===e.modelValue)??null);function i(){e.disabled||(s.value=!s.value)}function p(f){t("update:modelValue",f.value),t("change",f.value),s.value=!1}function d(f){l.value&&!l.value.contains(f.target)&&(s.value=!1)}return n.onMounted(()=>{document.addEventListener("mousedown",d),document.addEventListener("touchstart",d)}),n.onUnmounted(()=>{document.removeEventListener("mousedown",d),document.removeEventListener("touchstart",d)}),{__sfc:!0,props:e,emit:t,isOpen:s,rootRef:l,selectedOption:r,toggle:i,select:p,onClickOutside:d}}});var yt=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)},xt=[],$t=c(kt,yt,xt,!1,null,"f07ac917");const R=$t.exports,St=n.defineComponent({__name:"CreatorsCheckbox",props:{modelValue:{type:Boolean,default:!1},label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{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()])},Vt=[],Pt=c(St,Bt,Vt,!1,null,"d1ad8f2e");const F=Pt.exports,Rt=n.defineComponent({__name:"CreatorsRadio",props:{modelValue:null,value:null,label:null,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:t}){return{__sfc:!0,emit:t}}});var Ft=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()])},Lt=[],Tt=c(Rt,Ft,Lt,!1,null,"242eedd7");const L=Tt.exports,jt=n.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(a,{emit:t}){const e=a,s=n.ref(null),l=n.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 zt=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)},Mt=[],It=c(jt,zt,Mt,!1,null,"9b711643");const T=It.exports,Ot=n.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(a,{emit:t}){const e=a,s=n.ref(null),l=n.ref("asc"),r=n.ref(1);function i(u){s.value===u?l.value=l.value==="asc"?"desc":"asc":(s.value=u,l.value="asc"),t("sort",s.value,l.value)}const p=n.computed(()=>s.value?[...e.rows].sort((u,h)=>{const k=u[s.value],y=h[s.value];if(k==null)return 1;if(y==null)return-1;const J=k<y?-1:k>y?1:0;return l.value==="asc"?J:-J}):[...e.rows]),d=n.computed(()=>Math.max(1,Math.ceil(e.rows.length/e.pageSize))),f=n.computed(()=>{if(!e.pagination)return p.value;const u=(r.value-1)*e.pageSize;return p.value.slice(u,u+e.pageSize)}),b=n.computed(()=>Math.min((r.value-1)*e.pageSize+1,e.rows.length)),_=n.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:p,totalPages:d,sortedRows:f,paginationStart:b,paginationEnd:_}}});var Dt=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()])},Et=[function(){var a=this,t=a._self._c;return a._self._setupProxy,t("div",{staticClass:"cl-table__loading"},[t("span",{staticClass:"cl-table__spinner"}),t("span",[a._v("Carregando...")])])}],Wt=c(Ot,Dt,Et,!1,null,"917ea8fe");const j=Wt.exports,At=n.defineComponent({__name:"CreatorsDivider",props:{label:null,align:{default:"center"},orientation:{default:"horizontal"},dashed:{type:Boolean,default:!1}},setup(a){return{__sfc:!0}}});var qt=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()])},Ut=[],Kt=c(At,qt,Ut,!1,null,"31f5c2f9");const z=Kt.exports,Gt=n.defineComponent({__name:"CreatorsTimeline",props:{items:null,align:{default:"left"},orientation:{default:"vertical"}},setup(a){return{__sfc:!0}}});var Nt=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)},Xt=[],Ht=c(Gt,Nt,Xt,!1,null,"f802dc88");const M=Ht.exports,Yt=n.defineComponent({__name:"CreatorsBadge",props:{variant:{default:"default"},icon:null},setup(a){const t=a,e=["success","warning","error","info"].includes(t.variant)&&!t.icon;return{__sfc:!0,props:t,statusIcon:e}}});var Jt=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)},Qt=[],Zt=c(Yt,Jt,Qt,!1,null,"36988d61");const I=Zt.exports,te=n.defineComponent({__name:"CreatorsCard",props:{title:null,description:null,label:null,variant:{default:"default"},hoverable:{type:Boolean,default:!1},flush:{type:Boolean,default:!1},border:null,to:null},setup(a){const t=a,e=n.computed(()=>t.to?"router-link":"div");return{__sfc:!0,props:t,tag:e}}});var ee=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.tag,{tag:"component",class:["cl-card",`cl-card--${t.variant}`,{"cl-card--hoverable":t.hoverable||!!t.to},{"cl-card--flush":t.flush}],style:t.border?{border:t.border}:{},attrs:{to:t.to??void 0}},[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()])},se=[],le=c(te,ee,se,!1,null,"9d2598d2");const O=le.exports,ae=n.defineComponent({__name:"CreatorsCardCampaign",props:{status:null,statusVariant:{default:"default"},brandLogo:null,brandName:null,title:null,publicationsCount:{default:"0"},publicationsLabel:{default:"publicações"},deliveryDate:null,hoverable:{type:Boolean,default:!1},border:null,to:null},setup(a){const t=a,e=n.computed(()=>t.to?"router-link":"div"),s=n.computed(()=>(t.brandName??t.title).slice(0,2).toUpperCase());return{__sfc:!0,props:t,tag:e,brandInitials:s}}});var ne=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.tag,{tag:"component",class:["cl-card-campaign",{"cl-card-campaign--hoverable":t.hoverable||!!t.to}],style:t.border?{border:t.border}:{},attrs:{to:t.to??void 0}},[e("div",{staticClass:"cl-card-campaign__top"},[e("span",{class:["cl-card-campaign__badge",`cl-card-campaign__badge--${t.statusVariant}`]},[t._v(" "+t._s(t.status)+" ")])]),e("div",{staticClass:"cl-card-campaign__brand"},[e("div",{staticClass:"cl-card-campaign__logo"},[t.brandLogo?e("img",{attrs:{src:t.brandLogo,alt:t.brandName??t.title}}):e("span",{staticClass:"cl-card-campaign__logo-fallback"},[t._v(" "+t._s(s.brandInitials)+" ")])]),e("span",{staticClass:"cl-card-campaign__title"},[t._v(t._s(t.title))])]),e("div",{staticClass:"cl-card-campaign__divider"}),e("div",{staticClass:"cl-card-campaign__footer"},[e("span",{staticClass:"cl-card-campaign__stat"},[e("strong",[t._v(t._s(t.publicationsCount))]),e("span",{staticClass:"cl-card-campaign__stat-label"},[t._v(t._s(t.publicationsLabel))])]),t.deliveryDate?e("span",{staticClass:"cl-card-campaign__delivery"},[e("span",{staticClass:"cl-card-campaign__stat-label"},[t._v("entrega")]),e("strong",[t._v(t._s(t.deliveryDate))])]):t._e()])])},re=[],oe=c(ae,ne,re,!1,null,"40bccc0d");const D=oe.exports,ie=n.defineComponent({__name:"CreatorsCardShell",props:{padding:null,border:null,background:null,hoverable:{type:Boolean,default:!1},to:null},setup(a){const t=a,e=n.computed(()=>t.to?"router-link":"div");return{__sfc:!0,props:t,tag:e}}});var ce=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e(s.tag,{tag:"component",class:["cl-card-shell",{"cl-card-shell--hoverable":t.hoverable||!!t.to}],style:{...t.padding?{padding:t.padding}:{},...t.border?{border:t.border}:{},...t.background?{background:t.background}:{}},attrs:{to:t.to??void 0}},[t._t("default")],2)},_e=[],de=c(ie,ce,_e,!1,null,"4e3b4fd5");const E=de.exports,ue=n.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(a,{emit:t}){const e=a;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 n.watch(()=>e.modelValue,i=>{document.body.style.overflow=i?"hidden":""}),n.onMounted(()=>window.addEventListener("keydown",r)),n.onUnmounted(()=>{window.removeEventListener("keydown",r),document.body.style.overflow=""}),{__sfc:!0,props:e,emit:t,close:s,onOverlayClick:l,onKeydown:r}}});var pe=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()])},fe=[],he=c(ue,pe,fe,!1,null,null);const W=he.exports,m={};function ve(a,t){return m[a]||(m[a]=[]),m[a].push(t),()=>{m[a]=(m[a]||[]).filter(e=>e!==t)}}function C(a,t){(m[a]||[]).forEach(e=>e(t))}let me=0;function g(a,t="info"){const e=++me,s=typeof a=="string"?{id:e,type:t,title:a,duration:4e3,position:"top-right"}:{id:e,...a};return s.id=e,C("add",s),e}function ge(a){C("remove",a)}function Ce(){C("clear")}function w(a,t){return ve(a,t)}function we(){return{add:g,remove:ge,clear:Ce,success:(a,t)=>g({title:a,type:"success",duration:4e3,position:"top-right",...t}),error:(a,t)=>g({title:a,type:"error",duration:4e3,position:"top-right",...t}),warning:(a,t)=>g({title:a,type:"warning",duration:4e3,position:"top-right",...t}),info:(a,t)=>g({title:a,type:"info",duration:4e3,position:"top-right",...t})}}const be=n.defineComponent({__name:"CreatorsToaster",setup(a){const t=n.ref([]),e=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"];function s(_){return t.value.filter(u=>u.position===_)}function l(_){const u=t.value.findIndex(h=>h.id===_);u!==-1&&(clearTimeout(t.value[u]._timer),t.value.splice(u,1))}const r=w("add",_=>{_.duration>0&&(_._timer=setTimeout(()=>l(_.id),_.duration)),t.value.push(_)}),i=w("remove",_=>l(_)),p=w("clear",()=>{t.value.forEach(_=>clearTimeout(_._timer)),t.value.splice(0)});n.onUnmounted(()=>{r(),i(),p()});const d=new Map;function f(_){var h;if(_.duration<=0)return;clearTimeout(_._timer);const u=((h=d.get(_.id))==null?void 0:h.remaining)??_.duration;d.set(_.id,{remaining:u,startedAt:Date.now()})}function b(_){const u=d.get(_.id);if(!u)return;const h=Math.max(u.remaining-(Date.now()-u.startedAt),0);d.delete(_.id),_._timer=setTimeout(()=>l(_.id),h)}return{__sfc:!0,toasts:t,positions:e,byPosition:s,remove:l,offAdd:r,offRemove:i,offClear:p,paused:d,pauseTimer:f,resumeTimer:b}}});var ke=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)},ye=[],xe=c(be,ke,ye,!1,null,null);const A=xe.exports,$e=n.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(a){return{__sfc:!0}}});var Se=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")},Be=[],Ve=c($e,Se,Be,!1,null,"3b626f1f");const v=Ve.exports,Pe=n.defineComponent({__name:"CreatorsSkeletonCard",setup(a){return{__sfc:!0,CreatorsSkeleton:v}}});var Re=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)},Fe=[],Le=c(Pe,Re,Fe,!1,null,"00fa9654");const q=Le.exports,Te=n.defineComponent({__name:"CreatorsSkeletonList",props:{rows:{default:5},avatar:{type:Boolean,default:!0},subtitle:{type:Boolean,default:!0},action:{type:Boolean,default:!1}},setup(a){return{__sfc:!0,titleWidths:["60%","75%","50%","80%","65%"],subtitleWidths:["40%","55%","35%","50%","45%"],CreatorsSkeleton:v}}});var je=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)},ze=[],Me=c(Te,je,ze,!1,null,"295ec324");const U=Me.exports,Ie=n.defineComponent({__name:"CreatorsSkeletonSimpleList",props:{loading:{type:Boolean,default:!0},rows:{default:6},height:{default:"44px"}},setup(a){return{__sfc:!0,CreatorsSkeleton:v}}});var Oe=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")},De=[],Ee=c(Ie,Oe,De,!1,null,"f47e1288");const K=Ee.exports,We=n.defineComponent({__name:"CreatorsSkeletonProfile",props:{avatarSize:{default:"80px"}},setup(a){return{__sfc:!0,CreatorsSkeleton:v}}});var Ae=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)},qe=[],Ue=c(We,Ae,qe,!1,null,"a6635fb6");const G=Ue.exports,Ke=n.defineComponent({__name:"CreatorsSkeletonTable",props:{rows:{default:5},cols:{default:4}},setup(a){return{__sfc:!0,CreatorsSkeleton:v}}});var Ge=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)},Ne=[],Xe=c(Ke,Ge,Ne,!1,null,"175f116d");const N=Xe.exports,He=n.defineComponent({__name:"CreatorsRow",props:{align:null,justify:null,noGutter:{type:Boolean,default:!1}},setup(a){return{__sfc:!0}}});var Ye=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)},Je=[],Qe=c(He,Ye,Je,!1,null,null);const X=Qe.exports,Ze=n.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(a){const t=a,e=n.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 ts=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{class:s.classes},[t._t("default")],2)},es=[],ss=c(Ze,ts,es,!1,null,null);const H=ss.exports,ls=n.defineComponent({__name:"CreatorsProgress",props:{value:{default:0},width:{default:380},height:{default:10},trackColor:{default:"rgba(255, 255, 255, 0.08)"}},setup(a){const t=a,e=`cl-prog-${Math.random().toString(36).slice(2,8)}`,s=n.computed(()=>Math.min(100,Math.max(0,t.value))),l=n.computed(()=>s.value/100*t.width);return{__sfc:!0,props:t,gradId:e,clamped:s,fillWidth:l}}});var as=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)])},ns=[],rs=c(ls,as,ns,!1,null,null);const Y=rs.exports,os={CreatorsButton:x,CreatorsText:$,CreatorsAccordion:S,CreatorsInput:B,CreatorsInputSwitch:V,CreatorsTextarea:P,CreatorsSelect:R,CreatorsCheckbox:F,CreatorsRadio:L,CreatorsRating:T,CreatorsDataTable:j,CreatorsDivider:z,CreatorsTimeline:M,CreatorsBadge:I,CreatorsCard:O,CreatorsCardCampaign:D,CreatorsCardShell:E,CreatorsModal:W,CreatorsToaster:A,CreatorsSkeleton:v,CreatorsSkeletonCard:q,CreatorsSkeletonList:U,CreatorsSkeletonSimpleList:K,CreatorsSkeletonProfile:G,CreatorsSkeletonTable:N,CreatorsRow:X,CreatorsCol:H,CreatorsProgress:Y},is={install(a){for(const[t,e]of Object.entries(os))a.component(t,e)}};o.CreatorsAccordion=S,o.CreatorsBadge=I,o.CreatorsButton=x,o.CreatorsCard=O,o.CreatorsCardCampaign=D,o.CreatorsCardShell=E,o.CreatorsCheckbox=F,o.CreatorsCol=H,o.CreatorsDataTable=j,o.CreatorsDivider=z,o.CreatorsInput=B,o.CreatorsInputSwitch=V,o.CreatorsLibPlugin=is,o.CreatorsModal=W,o.CreatorsProgress=Y,o.CreatorsRadio=L,o.CreatorsRating=T,o.CreatorsRow=X,o.CreatorsSelect=R,o.CreatorsSkeleton=v,o.CreatorsSkeletonCard=q,o.CreatorsSkeletonList=U,o.CreatorsSkeletonProfile=G,o.CreatorsSkeletonSimpleList=K,o.CreatorsSkeletonTable=N,o.CreatorsText=$,o.CreatorsTextarea=P,o.CreatorsTimeline=M,o.CreatorsToaster=A,o.useToast=we,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
@@ -9,11 +9,12 @@ export interface ToastItem {
9
9
  position: ToastPosition;
10
10
  _timer?: ReturnType<typeof setTimeout>;
11
11
  }
12
+ type Handler = (payload: any) => void;
12
13
  declare function add(options: Omit<ToastItem, 'id'> | string, type?: ToastType): number;
13
14
  declare function remove(id: number): void;
14
15
  declare function clear(): void;
16
+ export declare function _onToastEvent(event: 'add' | 'remove' | 'clear', fn: Handler): () => void;
15
17
  export declare function useToast(): {
16
- toasts: ToastItem[];
17
18
  add: typeof add;
18
19
  remove: typeof remove;
19
20
  clear: typeof clear;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clds-ui",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "Vue UI component library",
5
5
  "type": "module",
6
6
  "files": [