clds-ui 0.3.10 → 0.3.11

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.
@@ -673,7 +673,15 @@ var oe = function() {
673
673
  );
674
674
  const _e = ce.exports;
675
675
  let de = 0;
676
- const v = V({ items: [] });
676
+ function ue() {
677
+ try {
678
+ return V({ items: [] });
679
+ } catch {
680
+ const a = window.Vue;
681
+ return a != null && a.observable ? a.observable({ items: [] }) : { items: [] };
682
+ }
683
+ }
684
+ const v = ue();
677
685
  function g(a, t = "info") {
678
686
  const e = ++de, s = typeof a == "string" ? { id: e, type: t, title: a, duration: 4e3, position: "top-right" } : { id: e, ...a };
679
687
  return s.id = e, s.duration > 0 && (s._timer = setTimeout(() => $(e), s.duration)), v.items.push(s), e;
@@ -682,25 +690,25 @@ function $(a) {
682
690
  const t = v.items.findIndex((e) => e.id === a);
683
691
  t !== -1 && (clearTimeout(v.items[t]._timer), v.items.splice(t, 1));
684
692
  }
685
- function ue() {
693
+ function pe() {
686
694
  v.items.forEach((a) => clearTimeout(a._timer)), v.items.splice(0);
687
695
  }
688
- function pe() {
696
+ function fe() {
689
697
  return {
690
698
  toasts: v.items,
691
699
  add: g,
692
700
  remove: $,
693
- clear: ue,
701
+ clear: pe,
694
702
  success: (a, t) => g({ title: a, type: "success", duration: 4e3, position: "top-right", ...t }),
695
703
  error: (a, t) => g({ title: a, type: "error", duration: 4e3, position: "top-right", ...t }),
696
704
  warning: (a, t) => g({ title: a, type: "warning", duration: 4e3, position: "top-right", ...t }),
697
705
  info: (a, t) => g({ title: a, type: "info", duration: 4e3, position: "top-right", ...t })
698
706
  };
699
707
  }
700
- const fe = /* @__PURE__ */ o({
708
+ const ve = /* @__PURE__ */ o({
701
709
  __name: "CreatorsToaster",
702
710
  setup(a) {
703
- const { toasts: t, remove: e } = pe(), s = [
711
+ const { toasts: t, remove: e } = fe(), s = [
704
712
  "top-left",
705
713
  "top-center",
706
714
  "top-right",
@@ -727,7 +735,7 @@ const fe = /* @__PURE__ */ o({
727
735
  return { __sfc: !0, toasts: t, remove: e, positions: s, byPosition: l, paused: r, pauseTimer: n, resumeTimer: u };
728
736
  }
729
737
  });
730
- var ve = function() {
738
+ var he = function() {
731
739
  var t = this, e = t._self._c, s = t._self._setupProxy;
732
740
  return e("div", { staticClass: "cl-toaster" }, t._l(s.positions, function(l) {
733
741
  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) {
@@ -740,15 +748,15 @@ var ve = function() {
740
748
  } } }, [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()]);
741
749
  }), 0);
742
750
  }), 1);
743
- }, he = [], me = /* @__PURE__ */ i(
744
- fe,
751
+ }, me = [], ge = /* @__PURE__ */ i(
745
752
  ve,
746
753
  he,
754
+ me,
747
755
  !1,
748
756
  null,
749
757
  null
750
758
  );
751
- const ge = me.exports, we = /* @__PURE__ */ o({
759
+ const we = ge.exports, Ce = /* @__PURE__ */ o({
752
760
  __name: "CreatorsSkeleton",
753
761
  props: {
754
762
  loading: { type: Boolean, default: !0 },
@@ -763,7 +771,7 @@ const ge = me.exports, we = /* @__PURE__ */ o({
763
771
  return { __sfc: !0 };
764
772
  }
765
773
  });
766
- var Ce = function() {
774
+ var be = function() {
767
775
  var t = this, e = t._self._c;
768
776
  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) {
769
777
  return e("div", { key: s, class: ["cl-skeleton", "cl-skeleton--rect", { "cl-skeleton--no-animation": !t.animated }], style: {
@@ -771,32 +779,32 @@ var Ce = function() {
771
779
  width: s === t.lines && t.lines > 1 ? "65%" : t.width ?? "100%"
772
780
  } });
773
781
  }), 0)] : t._t("default");
774
- }, be = [], xe = /* @__PURE__ */ i(
775
- we,
782
+ }, xe = [], ke = /* @__PURE__ */ i(
776
783
  Ce,
777
784
  be,
785
+ xe,
778
786
  !1,
779
787
  null,
780
788
  "3b626f1f"
781
789
  );
782
- const h = xe.exports, ke = /* @__PURE__ */ o({
790
+ const h = ke.exports, ye = /* @__PURE__ */ o({
783
791
  __name: "CreatorsSkeletonCard",
784
792
  setup(a) {
785
793
  return { __sfc: !0, CreatorsSkeleton: h };
786
794
  }
787
795
  });
788
- var ye = function() {
796
+ var $e = function() {
789
797
  var t = this, e = t._self._c, s = t._self._setupProxy;
790
798
  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);
791
- }, $e = [], Be = /* @__PURE__ */ i(
792
- ke,
799
+ }, Be = [], Se = /* @__PURE__ */ i(
793
800
  ye,
794
801
  $e,
802
+ Be,
795
803
  !1,
796
804
  null,
797
805
  "00fa9654"
798
806
  );
799
- const Se = Be.exports, Ve = /* @__PURE__ */ o({
807
+ const Ve = Se.exports, Pe = /* @__PURE__ */ o({
800
808
  __name: "CreatorsSkeletonList",
801
809
  props: {
802
810
  rows: { default: 5 },
@@ -808,20 +816,20 @@ const Se = Be.exports, Ve = /* @__PURE__ */ o({
808
816
  return { __sfc: !0, titleWidths: ["60%", "75%", "50%", "80%", "65%"], subtitleWidths: ["40%", "55%", "35%", "50%", "45%"], CreatorsSkeleton: h };
809
817
  }
810
818
  });
811
- var Pe = function() {
819
+ var Fe = function() {
812
820
  var t = this, e = t._self._c, s = t._self._setupProxy;
813
821
  return e("div", { staticClass: "cl-skeleton-list" }, t._l(t.rows, function(l) {
814
822
  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);
815
823
  }), 0);
816
- }, Fe = [], Re = /* @__PURE__ */ i(
817
- Ve,
824
+ }, Re = [], Le = /* @__PURE__ */ i(
818
825
  Pe,
819
826
  Fe,
827
+ Re,
820
828
  !1,
821
829
  null,
822
830
  "295ec324"
823
831
  );
824
- const Le = Re.exports, je = /* @__PURE__ */ o({
832
+ const je = Le.exports, ze = /* @__PURE__ */ o({
825
833
  __name: "CreatorsSkeletonSimpleList",
826
834
  props: {
827
835
  loading: { type: Boolean, default: !0 },
@@ -832,20 +840,20 @@ const Le = Re.exports, je = /* @__PURE__ */ o({
832
840
  return { __sfc: !0, CreatorsSkeleton: h };
833
841
  }
834
842
  });
835
- var ze = function() {
843
+ var Te = function() {
836
844
  var t = this, e = t._self._c, s = t._self._setupProxy;
837
845
  return t.loading ? [e("div", { staticClass: "cl-skeleton-simple-list" }, t._l(t.rows, function(l) {
838
846
  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);
839
847
  }), 0)] : t._t("default");
840
- }, Te = [], Me = /* @__PURE__ */ i(
841
- je,
848
+ }, Me = [], Ie = /* @__PURE__ */ i(
842
849
  ze,
843
850
  Te,
851
+ Me,
844
852
  !1,
845
853
  null,
846
854
  "f47e1288"
847
855
  );
848
- const Ie = Me.exports, Oe = /* @__PURE__ */ o({
856
+ const Oe = Ie.exports, De = /* @__PURE__ */ o({
849
857
  __name: "CreatorsSkeletonProfile",
850
858
  props: {
851
859
  avatarSize: { default: "80px" }
@@ -854,20 +862,20 @@ const Ie = Me.exports, Oe = /* @__PURE__ */ o({
854
862
  return { __sfc: !0, CreatorsSkeleton: h };
855
863
  }
856
864
  });
857
- var De = function() {
865
+ var Ee = function() {
858
866
  var t = this, e = t._self._c, s = t._self._setupProxy;
859
867
  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
868
  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
869
  }), 0)], 1)], 1)], 1);
862
- }, Ee = [], We = /* @__PURE__ */ i(
863
- Oe,
870
+ }, We = [], Ae = /* @__PURE__ */ i(
864
871
  De,
865
872
  Ee,
873
+ We,
866
874
  !1,
867
875
  null,
868
876
  "a6635fb6"
869
877
  );
870
- const Ae = We.exports, qe = /* @__PURE__ */ o({
878
+ const qe = Ae.exports, Ke = /* @__PURE__ */ o({
871
879
  __name: "CreatorsSkeletonTable",
872
880
  props: {
873
881
  rows: { default: 5 },
@@ -877,7 +885,7 @@ const Ae = We.exports, qe = /* @__PURE__ */ o({
877
885
  return { __sfc: !0, CreatorsSkeleton: h };
878
886
  }
879
887
  });
880
- var Ke = function() {
888
+ var Ge = function() {
881
889
  var t = this, e = t._self._c, s = t._self._setupProxy;
882
890
  return e("div", { staticClass: "cl-skeleton-table" }, [e("div", { staticClass: "cl-skeleton-table__head" }, t._l(t.cols, function(l) {
883
891
  return e("div", { key: l, staticClass: "cl-skeleton-table__cell" }, [e(s.CreatorsSkeleton, { attrs: { variant: "rect", width: "80px", height: "11px" } })], 1);
@@ -886,15 +894,15 @@ var Ke = function() {
886
894
  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);
887
895
  }), 0);
888
896
  })], 2);
889
- }, Ge = [], Ne = /* @__PURE__ */ i(
890
- qe,
897
+ }, Ne = [], Ue = /* @__PURE__ */ i(
891
898
  Ke,
892
899
  Ge,
900
+ Ne,
893
901
  !1,
894
902
  null,
895
903
  "175f116d"
896
904
  );
897
- const Ue = Ne.exports, Xe = /* @__PURE__ */ o({
905
+ const Xe = Ue.exports, He = /* @__PURE__ */ o({
898
906
  __name: "CreatorsRow",
899
907
  props: {
900
908
  align: null,
@@ -905,7 +913,7 @@ const Ue = Ne.exports, Xe = /* @__PURE__ */ o({
905
913
  return { __sfc: !0 };
906
914
  }
907
915
  });
908
- var He = function() {
916
+ var Ye = function() {
909
917
  var t = this, e = t._self._c;
910
918
  return t._self._setupProxy, e("div", { class: [
911
919
  "cl-row",
@@ -913,15 +921,15 @@ var He = function() {
913
921
  t.justify ? `cl-row--justify-${t.justify}` : "",
914
922
  t.noGutter ? "cl-row--no-gutter" : ""
915
923
  ] }, [t._t("default")], 2);
916
- }, Ye = [], Je = /* @__PURE__ */ i(
917
- Xe,
924
+ }, Je = [], Qe = /* @__PURE__ */ i(
918
925
  He,
919
926
  Ye,
927
+ Je,
920
928
  !1,
921
929
  null,
922
930
  null
923
931
  );
924
- const Qe = Je.exports, Ze = /* @__PURE__ */ o({
932
+ const Ze = Qe.exports, ts = /* @__PURE__ */ o({
925
933
  __name: "CreatorsCol",
926
934
  props: {
927
935
  cols: null,
@@ -943,18 +951,18 @@ const Qe = Je.exports, Ze = /* @__PURE__ */ o({
943
951
  return { __sfc: !0, props: t, classes: e };
944
952
  }
945
953
  });
946
- var ts = function() {
954
+ var es = function() {
947
955
  var t = this, e = t._self._c, s = t._self._setupProxy;
948
956
  return e("div", { class: s.classes }, [t._t("default")], 2);
949
- }, es = [], ss = /* @__PURE__ */ i(
950
- Ze,
957
+ }, ss = [], ls = /* @__PURE__ */ i(
951
958
  ts,
952
959
  es,
960
+ ss,
953
961
  !1,
954
962
  null,
955
963
  null
956
964
  );
957
- const ls = ss.exports, as = /* @__PURE__ */ o({
965
+ const as = ls.exports, rs = /* @__PURE__ */ o({
958
966
  __name: "CreatorsProgress",
959
967
  props: {
960
968
  value: { default: 0 },
@@ -967,18 +975,18 @@ const ls = ss.exports, as = /* @__PURE__ */ o({
967
975
  return { __sfc: !0, props: t, gradId: e, clamped: s, fillWidth: l };
968
976
  }
969
977
  });
970
- var rs = function() {
978
+ var ns = function() {
971
979
  var t = this, e = t._self._c, s = t._self._setupProxy;
972
980
  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)]);
973
- }, ns = [], os = /* @__PURE__ */ i(
974
- as,
981
+ }, os = [], is = /* @__PURE__ */ i(
975
982
  rs,
976
983
  ns,
984
+ os,
977
985
  !1,
978
986
  null,
979
987
  null
980
988
  );
981
- const is = os.exports, cs = {
989
+ const cs = is.exports, _s = {
982
990
  CreatorsButton: j,
983
991
  CreatorsText: O,
984
992
  CreatorsAccordion: q,
@@ -997,19 +1005,19 @@ const is = os.exports, cs = {
997
1005
  CreatorsCardCampaign: te,
998
1006
  CreatorsCardShell: re,
999
1007
  CreatorsModal: _e,
1000
- CreatorsToaster: ge,
1008
+ CreatorsToaster: we,
1001
1009
  CreatorsSkeleton: h,
1002
- CreatorsSkeletonCard: Se,
1003
- CreatorsSkeletonList: Le,
1004
- CreatorsSkeletonSimpleList: Ie,
1005
- CreatorsSkeletonProfile: Ae,
1006
- CreatorsSkeletonTable: Ue,
1007
- CreatorsRow: Qe,
1008
- CreatorsCol: ls,
1009
- CreatorsProgress: is
1010
- }, ds = {
1010
+ CreatorsSkeletonCard: Ve,
1011
+ CreatorsSkeletonList: je,
1012
+ CreatorsSkeletonSimpleList: Oe,
1013
+ CreatorsSkeletonProfile: qe,
1014
+ CreatorsSkeletonTable: Xe,
1015
+ CreatorsRow: Ze,
1016
+ CreatorsCol: as,
1017
+ CreatorsProgress: cs
1018
+ }, us = {
1011
1019
  install(a) {
1012
- for (const [t, e] of Object.entries(cs))
1020
+ for (const [t, e] of Object.entries(_s))
1013
1021
  a.component(t, e);
1014
1022
  }
1015
1023
  };
@@ -1021,27 +1029,27 @@ export {
1021
1029
  te as CreatorsCardCampaign,
1022
1030
  re as CreatorsCardShell,
1023
1031
  ft as CreatorsCheckbox,
1024
- ls as CreatorsCol,
1032
+ as as CreatorsCol,
1025
1033
  Pt as CreatorsDataTable,
1026
1034
  zt as CreatorsDivider,
1027
1035
  X as CreatorsInput,
1028
1036
  Z as CreatorsInputSwitch,
1029
- ds as CreatorsLibPlugin,
1037
+ us as CreatorsLibPlugin,
1030
1038
  _e as CreatorsModal,
1031
- is as CreatorsProgress,
1039
+ cs as CreatorsProgress,
1032
1040
  wt as CreatorsRadio,
1033
1041
  yt as CreatorsRating,
1034
- Qe as CreatorsRow,
1042
+ Ze as CreatorsRow,
1035
1043
  ct as CreatorsSelect,
1036
1044
  h as CreatorsSkeleton,
1037
- Se as CreatorsSkeletonCard,
1038
- Le as CreatorsSkeletonList,
1039
- Ae as CreatorsSkeletonProfile,
1040
- Ie as CreatorsSkeletonSimpleList,
1041
- Ue as CreatorsSkeletonTable,
1045
+ Ve as CreatorsSkeletonCard,
1046
+ je as CreatorsSkeletonList,
1047
+ qe as CreatorsSkeletonProfile,
1048
+ Oe as CreatorsSkeletonSimpleList,
1049
+ Xe as CreatorsSkeletonTable,
1042
1050
  O as CreatorsText,
1043
1051
  at as CreatorsTextarea,
1044
1052
  Dt as CreatorsTimeline,
1045
- ge as CreatorsToaster,
1046
- pe as useToast
1053
+ we as CreatorsToaster,
1054
+ fe as useToast
1047
1055
  };
@@ -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 J=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 Q=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)},Z=[],tt=c(J,Q,Z,!1,null,"2b3665ef");const b=tt.exports,et=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 st=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)},lt=[],at=c(et,st,lt,!1,null,"0956e087");const k=at.exports,nt=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 rt=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)},ot=[],it=c(nt,rt,ot,!1,null,"cdacee19");const y=it.exports,ct=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 _t=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()])},dt=[],ut=c(ct,_t,dt,!1,null,"8c08ffa2");const x=ut.exports,pt=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 ft=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()])},ht=[function(){var a=this,t=a._self._c;return a._self._setupProxy,t("span",{staticClass:"cl-switch__track"},[t("span",{staticClass:"cl-switch__thumb"})])}],vt=c(pt,ft,ht,!1,null,"3fb5090c");const $=vt.exports,mt=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 gt=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()])])},Ct=[],wt=c(mt,gt,Ct,!1,null,"b23cc99a");const S=wt.exports,bt=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 kt=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)},yt=[],xt=c(bt,kt,yt,!1,null,"f07ac917");const B=xt.exports,$t=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 St=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()])},Bt=[],Vt=c($t,St,Bt,!1,null,"d1ad8f2e");const V=Vt.exports,Pt=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 Rt=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()])},Ft=[],Lt=c(Pt,Rt,Ft,!1,null,"242eedd7");const P=Lt.exports,Tt=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 jt=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)},zt=[],Mt=c(Tt,jt,zt,!1,null,"9b711643");const R=Mt.exports,It=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,ns)=>{const C=h[s.value],w=ns[s.value];if(C==null)return 1;if(w==null)return-1;const Y=C<w?-1:C>w?1:0;return l.value==="asc"?Y:-Y}):[...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)),g=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:g}}});var Ot=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()])},Dt=[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...")])])}],Et=c(It,Ot,Dt,!1,null,"917ea8fe");const F=Et.exports,Wt=n.defineComponent({__name:"CreatorsDivider",props:{label:null,align:{default:"center"},orientation:{default:"horizontal"},dashed:{type:Boolean,default:!1}},setup(a){return{__sfc:!0}}});var At=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()])},qt=[],Kt=c(Wt,At,qt,!1,null,"31f5c2f9");const L=Kt.exports,Ut=n.defineComponent({__name:"CreatorsTimeline",props:{items:null,align:{default:"left"},orientation:{default:"vertical"}},setup(a){return{__sfc:!0}}});var Gt=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-timeline",`cl-timeline--${t.align}`,`cl-timeline--${t.orientation}`]},t._l(t.items,function(s,l){return e("div",{key:l,class:["cl-timeline__item",t.align==="alternate"?l%2===0?"cl-timeline__item--left":"cl-timeline__item--right":""]},[t.align==="alternate"?[l%2===0?e("div",{staticClass:"cl-timeline__content cl-timeline__content--left"},[t._t(`item-${l}`,function(){return[e("div",{staticClass:"cl-timeline__card"},[e("div",{staticClass:"cl-timeline__card-header cl-timeline__card-header--reverse"},[e("span",{staticClass:"cl-timeline__title"},[t._v(t._s(s.title))]),s.time?e("span",{staticClass:"cl-timeline__time"},[t._v(t._s(s.time))]):t._e()]),s.description?e("p",{staticClass:"cl-timeline__desc"},[t._v(t._s(s.description))]):t._e(),s.tag?e("div",{staticClass:"cl-timeline__tag cl-timeline__tag--right"},[t._v(t._s(s.tag))]):t._e()])]})],2):e("div",{staticClass:"cl-timeline__spacer"}),e("div",{staticClass:"cl-timeline__dot-wrapper"},[e("div",{staticClass:"cl-timeline__line cl-timeline__line--before"}),e("div",{class:["cl-timeline__dot",`cl-timeline__dot--${s.color??"primary"}`]},[t._t(`dot-${l}`,function(){return[s.icon==="check"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[e("polyline",{attrs:{points:"20 6 9 17 4 12"}})]):s.icon==="star"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"}},[e("path",{attrs:{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"}})]):s.icon==="warning"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}}),e("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"13"}}),e("line",{attrs:{x1:"12",y1:"17",x2:"12.01",y2:"17"}})]):t._e()]})],2),e("div",{staticClass:"cl-timeline__line cl-timeline__line--after"})]),l%2!==0?e("div",{staticClass:"cl-timeline__content cl-timeline__content--right"},[t._t(`item-${l}`,function(){return[e("div",{staticClass:"cl-timeline__card"},[e("div",{staticClass:"cl-timeline__card-header"},[e("span",{staticClass:"cl-timeline__title"},[t._v(t._s(s.title))]),s.time?e("span",{staticClass:"cl-timeline__time"},[t._v(t._s(s.time))]):t._e()]),s.description?e("p",{staticClass:"cl-timeline__desc"},[t._v(t._s(s.description))]):t._e(),s.tag?e("div",{staticClass:"cl-timeline__tag"},[t._v(t._s(s.tag))]):t._e()])]})],2):e("div",{staticClass:"cl-timeline__spacer"})]:[e("div",{staticClass:"cl-timeline__dot-wrapper"},[e("div",{staticClass:"cl-timeline__line cl-timeline__line--before"}),e("div",{class:["cl-timeline__dot",`cl-timeline__dot--${s.color??"primary"}`]},[t._t(`dot-${l}`,function(){return[s.icon==="check"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[e("polyline",{attrs:{points:"20 6 9 17 4 12"}})]):s.icon==="star"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"}},[e("path",{attrs:{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"}})]):s.icon==="warning"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}}),e("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"13"}}),e("line",{attrs:{x1:"12",y1:"17",x2:"12.01",y2:"17"}})]):t._e()]})],2),e("div",{staticClass:"cl-timeline__line cl-timeline__line--after"})]),e("div",{staticClass:"cl-timeline__content"},[t._t(`item-${l}`,function(){return[e("div",{staticClass:"cl-timeline__card"},[e("div",{staticClass:"cl-timeline__card-header"},[e("span",{staticClass:"cl-timeline__title"},[t._v(t._s(s.title))]),s.time?e("span",{staticClass:"cl-timeline__time"},[t._v(t._s(s.time))]):t._e()]),s.description?e("p",{staticClass:"cl-timeline__desc"},[t._v(t._s(s.description))]):t._e(),s.tag?e("div",{staticClass:"cl-timeline__tag"},[t._v(t._s(s.tag))]):t._e()])]})],2)]],2)}),0)},Nt=[],Xt=c(Ut,Gt,Nt,!1,null,"f802dc88");const T=Xt.exports,Ht=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 Yt=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)},Jt=[],Qt=c(Ht,Yt,Jt,!1,null,"36988d61");const j=Qt.exports,Zt=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 te=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()])},ee=[],se=c(Zt,te,ee,!1,null,"9d2598d2");const z=se.exports,le=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 ae=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()])])},ne=[],re=c(le,ae,ne,!1,null,"40bccc0d");const M=re.exports,oe=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 ie=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)},ce=[],_e=c(oe,ie,ce,!1,null,"4e3b4fd5");const I=_e.exports,de=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 ue=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()])},pe=[],fe=c(de,ue,pe,!1,null,null);const O=fe.exports;let he=0;const p=n.reactive({items:[]});function v(a,t="info"){const e=++he,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(()=>D(e),s.duration)),p.items.push(s),e}function D(a){const t=p.items.findIndex(e=>e.id===a);t!==-1&&(clearTimeout(p.items[t]._timer),p.items.splice(t,1))}function ve(){p.items.forEach(a=>clearTimeout(a._timer)),p.items.splice(0)}function E(){return{toasts:p.items,add:v,remove:D,clear:ve,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 me=n.defineComponent({__name:"CreatorsToaster",setup(a){const{toasts:t,remove:e}=E(),s=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"];function l(_){return t.filter(d=>d.position===_)}const r=new Map;function i(_){if(_.duration<=0)return;clearTimeout(_._timer);const d=r.get(_.id),m=d?d.remaining:_.duration;r.set(_.id,{remaining:m,startedAt:Date.now()})}function u(_){const d=r.get(_.id);if(!d)return;const m=Date.now()-d.startedAt,g=Math.max(d.remaining-m,0);r.delete(_.id),_._timer=setTimeout(()=>e(_.id),g)}return{__sfc:!0,toasts:t,remove:e,positions:s,byPosition:l,paused:r,pauseTimer:i,resumeTimer:u}}});var ge=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"cl-toaster"},t._l(s.positions,function(l){return e("transition-group",{key:l,class:["cl-toast-group",`cl-toast-group--${l}`],attrs:{tag:"div",name:"cl-toast"}},t._l(s.byPosition(l),function(r){return e("div",{key:r.id,class:["cl-toast",`cl-toast--${r.type}`],attrs:{role:"alert"},on:{mouseenter:function(i){return s.pauseTimer(r)},mouseleave:function(i){return s.resumeTimer(r)}}},[e("div",{staticClass:"cl-toast__icon"},[r.type==="success"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}}),e("polyline",{attrs:{points:"22 4 12 14.01 9 11.01"}})]):r.type==="error"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("circle",{attrs:{cx:"12",cy:"12",r:"10"}}),e("line",{attrs:{x1:"15",y1:"9",x2:"9",y2:"15"}}),e("line",{attrs:{x1:"9",y1:"9",x2:"15",y2:"15"}})]):r.type==="warning"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}}),e("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"13"}}),e("line",{attrs:{x1:"12",y1:"17",x2:"12.01",y2:"17"}})]):e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("circle",{attrs:{cx:"12",cy:"12",r:"10"}}),e("line",{attrs:{x1:"12",y1:"16",x2:"12",y2:"12"}}),e("line",{attrs:{x1:"12",y1:"8",x2:"12.01",y2:"8"}})])]),e("div",{staticClass:"cl-toast__body"},[e("span",{staticClass:"cl-toast__title"},[t._v(t._s(r.title))]),r.description?e("span",{staticClass:"cl-toast__desc"},[t._v(t._s(r.description))]):t._e()]),e("button",{staticClass:"cl-toast__close",attrs:{"aria-label":"Fechar"},on:{click:function(i){return s.remove(r.id)}}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),e("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])]),r.duration>0?e("div",{staticClass:"cl-toast__progress"},[e("div",{staticClass:"cl-toast__progress-bar",style:{animationDuration:`${r.duration}ms`}})]):t._e()])}),0)}),1)},Ce=[],we=c(me,ge,Ce,!1,null,null);const W=we.exports,be=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 ke=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")},ye=[],xe=c(be,ke,ye,!1,null,"3b626f1f");const f=xe.exports,$e=n.defineComponent({__name:"CreatorsSkeletonCard",setup(a){return{__sfc:!0,CreatorsSkeleton:f}}});var Se=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)},Be=[],Ve=c($e,Se,Be,!1,null,"00fa9654");const A=Ve.exports,Pe=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 Re=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)},Fe=[],Le=c(Pe,Re,Fe,!1,null,"295ec324");const q=Le.exports,Te=n.defineComponent({__name:"CreatorsSkeletonSimpleList",props:{loading:{type:Boolean,default:!0},rows:{default:6},height:{default:"44px"}},setup(a){return{__sfc:!0,CreatorsSkeleton:f}}});var je=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")},ze=[],Me=c(Te,je,ze,!1,null,"f47e1288");const K=Me.exports,Ie=n.defineComponent({__name:"CreatorsSkeletonProfile",props:{avatarSize:{default:"80px"}},setup(a){return{__sfc:!0,CreatorsSkeleton:f}}});var Oe=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)},De=[],Ee=c(Ie,Oe,De,!1,null,"a6635fb6");const U=Ee.exports,We=n.defineComponent({__name:"CreatorsSkeletonTable",props:{rows:{default:5},cols:{default:4}},setup(a){return{__sfc:!0,CreatorsSkeleton:f}}});var Ae=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)},qe=[],Ke=c(We,Ae,qe,!1,null,"175f116d");const G=Ke.exports,Ue=n.defineComponent({__name:"CreatorsRow",props:{align:null,justify:null,noGutter:{type:Boolean,default:!1}},setup(a){return{__sfc:!0}}});var Ge=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)},Ne=[],Xe=c(Ue,Ge,Ne,!1,null,null);const N=Xe.exports,He=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 Ye=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{class:s.classes},[t._t("default")],2)},Je=[],Qe=c(He,Ye,Je,!1,null,null);const X=Qe.exports,Ze=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 ts=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)])},es=[],ss=c(Ze,ts,es,!1,null,null);const H=ss.exports,ls={CreatorsButton:b,CreatorsText:k,CreatorsAccordion:y,CreatorsInput:x,CreatorsInputSwitch:$,CreatorsTextarea:S,CreatorsSelect:B,CreatorsCheckbox:V,CreatorsRadio:P,CreatorsRating:R,CreatorsDataTable:F,CreatorsDivider:L,CreatorsTimeline:T,CreatorsBadge:j,CreatorsCard:z,CreatorsCardCampaign:M,CreatorsCardShell:I,CreatorsModal:O,CreatorsToaster:W,CreatorsSkeleton:f,CreatorsSkeletonCard:A,CreatorsSkeletonList:q,CreatorsSkeletonSimpleList:K,CreatorsSkeletonProfile:U,CreatorsSkeletonTable:G,CreatorsRow:N,CreatorsCol:X,CreatorsProgress:H},as={install(a){for(const[t,e]of Object.entries(ls))a.component(t,e)}};o.CreatorsAccordion=y,o.CreatorsBadge=j,o.CreatorsButton=b,o.CreatorsCard=z,o.CreatorsCardCampaign=M,o.CreatorsCardShell=I,o.CreatorsCheckbox=V,o.CreatorsCol=X,o.CreatorsDataTable=F,o.CreatorsDivider=L,o.CreatorsInput=x,o.CreatorsInputSwitch=$,o.CreatorsLibPlugin=as,o.CreatorsModal=O,o.CreatorsProgress=H,o.CreatorsRadio=P,o.CreatorsRating=R,o.CreatorsRow=N,o.CreatorsSelect=B,o.CreatorsSkeleton=f,o.CreatorsSkeletonCard=A,o.CreatorsSkeletonList=q,o.CreatorsSkeletonProfile=U,o.CreatorsSkeletonSimpleList=K,o.CreatorsSkeletonTable=G,o.CreatorsText=k,o.CreatorsTextarea=S,o.CreatorsTimeline=T,o.CreatorsToaster=W,o.useToast=E,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 J=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 Q=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)},Z=[],tt=c(J,Q,Z,!1,null,"2b3665ef");const b=tt.exports,et=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 st=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)},lt=[],at=c(et,st,lt,!1,null,"0956e087");const k=at.exports,nt=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 rt=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)},ot=[],it=c(nt,rt,ot,!1,null,"cdacee19");const y=it.exports,ct=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 _t=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()])},dt=[],ut=c(ct,_t,dt,!1,null,"8c08ffa2");const x=ut.exports,pt=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 ft=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()])},ht=[function(){var a=this,t=a._self._c;return a._self._setupProxy,t("span",{staticClass:"cl-switch__track"},[t("span",{staticClass:"cl-switch__thumb"})])}],vt=c(pt,ft,ht,!1,null,"3fb5090c");const $=vt.exports,mt=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 gt=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()])])},Ct=[],wt=c(mt,gt,Ct,!1,null,"b23cc99a");const S=wt.exports,bt=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 kt=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)},yt=[],xt=c(bt,kt,yt,!1,null,"f07ac917");const B=xt.exports,$t=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 St=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()])},Bt=[],Vt=c($t,St,Bt,!1,null,"d1ad8f2e");const V=Vt.exports,Pt=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 Rt=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()])},Ft=[],Lt=c(Pt,Rt,Ft,!1,null,"242eedd7");const P=Lt.exports,Tt=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 jt=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)},zt=[],Mt=c(Tt,jt,zt,!1,null,"9b711643");const R=Mt.exports,It=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 C=h[s.value],w=rs[s.value];if(C==null)return 1;if(w==null)return-1;const Y=C<w?-1:C>w?1:0;return l.value==="asc"?Y:-Y}):[...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)),g=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:g}}});var Ot=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()])},Dt=[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...")])])}],Et=c(It,Ot,Dt,!1,null,"917ea8fe");const F=Et.exports,Wt=n.defineComponent({__name:"CreatorsDivider",props:{label:null,align:{default:"center"},orientation:{default:"horizontal"},dashed:{type:Boolean,default:!1}},setup(a){return{__sfc:!0}}});var At=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()])},qt=[],Kt=c(Wt,At,qt,!1,null,"31f5c2f9");const L=Kt.exports,Ut=n.defineComponent({__name:"CreatorsTimeline",props:{items:null,align:{default:"left"},orientation:{default:"vertical"}},setup(a){return{__sfc:!0}}});var Gt=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["cl-timeline",`cl-timeline--${t.align}`,`cl-timeline--${t.orientation}`]},t._l(t.items,function(s,l){return e("div",{key:l,class:["cl-timeline__item",t.align==="alternate"?l%2===0?"cl-timeline__item--left":"cl-timeline__item--right":""]},[t.align==="alternate"?[l%2===0?e("div",{staticClass:"cl-timeline__content cl-timeline__content--left"},[t._t(`item-${l}`,function(){return[e("div",{staticClass:"cl-timeline__card"},[e("div",{staticClass:"cl-timeline__card-header cl-timeline__card-header--reverse"},[e("span",{staticClass:"cl-timeline__title"},[t._v(t._s(s.title))]),s.time?e("span",{staticClass:"cl-timeline__time"},[t._v(t._s(s.time))]):t._e()]),s.description?e("p",{staticClass:"cl-timeline__desc"},[t._v(t._s(s.description))]):t._e(),s.tag?e("div",{staticClass:"cl-timeline__tag cl-timeline__tag--right"},[t._v(t._s(s.tag))]):t._e()])]})],2):e("div",{staticClass:"cl-timeline__spacer"}),e("div",{staticClass:"cl-timeline__dot-wrapper"},[e("div",{staticClass:"cl-timeline__line cl-timeline__line--before"}),e("div",{class:["cl-timeline__dot",`cl-timeline__dot--${s.color??"primary"}`]},[t._t(`dot-${l}`,function(){return[s.icon==="check"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[e("polyline",{attrs:{points:"20 6 9 17 4 12"}})]):s.icon==="star"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"}},[e("path",{attrs:{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"}})]):s.icon==="warning"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}}),e("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"13"}}),e("line",{attrs:{x1:"12",y1:"17",x2:"12.01",y2:"17"}})]):t._e()]})],2),e("div",{staticClass:"cl-timeline__line cl-timeline__line--after"})]),l%2!==0?e("div",{staticClass:"cl-timeline__content cl-timeline__content--right"},[t._t(`item-${l}`,function(){return[e("div",{staticClass:"cl-timeline__card"},[e("div",{staticClass:"cl-timeline__card-header"},[e("span",{staticClass:"cl-timeline__title"},[t._v(t._s(s.title))]),s.time?e("span",{staticClass:"cl-timeline__time"},[t._v(t._s(s.time))]):t._e()]),s.description?e("p",{staticClass:"cl-timeline__desc"},[t._v(t._s(s.description))]):t._e(),s.tag?e("div",{staticClass:"cl-timeline__tag"},[t._v(t._s(s.tag))]):t._e()])]})],2):e("div",{staticClass:"cl-timeline__spacer"})]:[e("div",{staticClass:"cl-timeline__dot-wrapper"},[e("div",{staticClass:"cl-timeline__line cl-timeline__line--before"}),e("div",{class:["cl-timeline__dot",`cl-timeline__dot--${s.color??"primary"}`]},[t._t(`dot-${l}`,function(){return[s.icon==="check"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[e("polyline",{attrs:{points:"20 6 9 17 4 12"}})]):s.icon==="star"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"}},[e("path",{attrs:{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"}})]):s.icon==="warning"?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}}),e("line",{attrs:{x1:"12",y1:"9",x2:"12",y2:"13"}}),e("line",{attrs:{x1:"12",y1:"17",x2:"12.01",y2:"17"}})]):t._e()]})],2),e("div",{staticClass:"cl-timeline__line cl-timeline__line--after"})]),e("div",{staticClass:"cl-timeline__content"},[t._t(`item-${l}`,function(){return[e("div",{staticClass:"cl-timeline__card"},[e("div",{staticClass:"cl-timeline__card-header"},[e("span",{staticClass:"cl-timeline__title"},[t._v(t._s(s.title))]),s.time?e("span",{staticClass:"cl-timeline__time"},[t._v(t._s(s.time))]):t._e()]),s.description?e("p",{staticClass:"cl-timeline__desc"},[t._v(t._s(s.description))]):t._e(),s.tag?e("div",{staticClass:"cl-timeline__tag"},[t._v(t._s(s.tag))]):t._e()])]})],2)]],2)}),0)},Nt=[],Xt=c(Ut,Gt,Nt,!1,null,"f802dc88");const T=Xt.exports,Ht=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 Yt=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)},Jt=[],Qt=c(Ht,Yt,Jt,!1,null,"36988d61");const j=Qt.exports,Zt=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 te=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()])},ee=[],se=c(Zt,te,ee,!1,null,"9d2598d2");const z=se.exports,le=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 ae=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()])])},ne=[],re=c(le,ae,ne,!1,null,"40bccc0d");const M=re.exports,oe=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 ie=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)},ce=[],_e=c(oe,ie,ce,!1,null,"4e3b4fd5");const I=_e.exports,de=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 ue=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()])},pe=[],fe=c(de,ue,pe,!1,null,null);const O=fe.exports;let he=0;function ve(){try{return n.reactive({items:[]})}catch{const a=window.Vue;return a!=null&&a.observable?a.observable({items:[]}):{items:[]}}}const p=ve();function v(a,t="info"){const e=++he,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(()=>D(e),s.duration)),p.items.push(s),e}function D(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 E(){return{toasts:p.items,add:v,remove:D,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}=E(),s=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"];function l(_){return t.filter(d=>d.position===_)}const r=new Map;function i(_){if(_.duration<=0)return;clearTimeout(_._timer);const d=r.get(_.id),m=d?d.remaining:_.duration;r.set(_.id,{remaining:m,startedAt:Date.now()})}function u(_){const d=r.get(_.id);if(!d)return;const m=Date.now()-d.startedAt,g=Math.max(d.remaining-m,0);r.delete(_.id),_._timer=setTimeout(()=>e(_.id),g)}return{__sfc:!0,toasts:t,remove:e,positions:s,byPosition:l,paused:r,pauseTimer:i,resumeTimer:u}}});var 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 W=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 A=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 q=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 K=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 U=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 G=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 N=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 X=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 H=ls.exports,as={CreatorsButton:b,CreatorsText:k,CreatorsAccordion:y,CreatorsInput:x,CreatorsInputSwitch:$,CreatorsTextarea:S,CreatorsSelect:B,CreatorsCheckbox:V,CreatorsRadio:P,CreatorsRating:R,CreatorsDataTable:F,CreatorsDivider:L,CreatorsTimeline:T,CreatorsBadge:j,CreatorsCard:z,CreatorsCardCampaign:M,CreatorsCardShell:I,CreatorsModal:O,CreatorsToaster:W,CreatorsSkeleton:f,CreatorsSkeletonCard:A,CreatorsSkeletonList:q,CreatorsSkeletonSimpleList:K,CreatorsSkeletonProfile:U,CreatorsSkeletonTable:G,CreatorsRow:N,CreatorsCol:X,CreatorsProgress:H},ns={install(a){for(const[t,e]of Object.entries(as))a.component(t,e)}};o.CreatorsAccordion=y,o.CreatorsBadge=j,o.CreatorsButton=b,o.CreatorsCard=z,o.CreatorsCardCampaign=M,o.CreatorsCardShell=I,o.CreatorsCheckbox=V,o.CreatorsCol=X,o.CreatorsDataTable=F,o.CreatorsDivider=L,o.CreatorsInput=x,o.CreatorsInputSwitch=$,o.CreatorsLibPlugin=ns,o.CreatorsModal=O,o.CreatorsProgress=H,o.CreatorsRadio=P,o.CreatorsRating=R,o.CreatorsRow=N,o.CreatorsSelect=B,o.CreatorsSkeleton=f,o.CreatorsSkeletonCard=A,o.CreatorsSkeletonList=q,o.CreatorsSkeletonProfile=U,o.CreatorsSkeletonSimpleList=K,o.CreatorsSkeletonTable=G,o.CreatorsText=k,o.CreatorsTextarea=S,o.CreatorsTimeline=T,o.CreatorsToaster=W,o.useToast=E,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
@@ -13,15 +13,7 @@ declare function add(options: Omit<ToastItem, 'id'> | string, type?: ToastType):
13
13
  declare function remove(id: number): void;
14
14
  declare function clear(): void;
15
15
  export declare function useToast(): {
16
- toasts: {
17
- id: number;
18
- type: ToastType;
19
- title: string;
20
- description?: string | undefined;
21
- duration: number;
22
- position: ToastPosition;
23
- _timer?: ReturnType<typeof setTimeout> | undefined;
24
- }[];
16
+ toasts: any;
25
17
  add: typeof add;
26
18
  remove: typeof remove;
27
19
  clear: typeof clear;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clds-ui",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Vue UI component library",
5
5
  "type": "module",
6
6
  "files": [