pxengine 0.1.72 → 0.1.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -253,6 +253,7 @@ __export(index_exports, {
253
253
  PopoverAtom: () => PopoverAtom,
254
254
  PopoverContent: () => PopoverContent,
255
255
  PopoverTrigger: () => PopoverTrigger,
256
+ PresentationJobCard: () => PresentationJobCard,
256
257
  PriorityActionsCard: () => PriorityActionsCard,
257
258
  Progress: () => Progress,
258
259
  ProgressAtom: () => ProgressAtom,
@@ -348,7 +349,7 @@ __export(index_exports, {
348
349
  module.exports = __toCommonJS(index_exports);
349
350
 
350
351
  // src/render/PXEngineRenderer.tsx
351
- var import_react89 = __toESM(require("react"), 1);
352
+ var import_react90 = __toESM(require("react"), 1);
352
353
 
353
354
  // src/atoms/index.ts
354
355
  var atoms_exports = {};
@@ -33944,6 +33945,7 @@ __export(molecules_exports, {
33944
33945
  PlatformSelectDisplay: () => PlatformSelectDisplay,
33945
33946
  PlatformSelectEdit: () => PlatformSelectEdit,
33946
33947
  PollCard: () => PollCard,
33948
+ PresentationJobCard: () => PresentationJobCard,
33947
33949
  PriorityActionsCard: () => PriorityActionsCard,
33948
33950
  RecommendationCard: () => RecommendationCard,
33949
33951
  ResearchBriefCard: () => ResearchBriefCard,
@@ -38844,8 +38846,350 @@ var NextStepCard = ({
38844
38846
  )
38845
38847
  ] });
38846
38848
 
38849
+ // src/molecules/generic/PresentationJobCard/PresentationJobCard.tsx
38850
+ var import_react74 = require("react");
38851
+ var import_jsx_runtime146 = require("react/jsx-runtime");
38852
+ var DownloadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: [
38853
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
38854
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("polyline", { points: "7 10 12 15 17 10" }),
38855
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
38856
+ ] });
38857
+ var SlidesIcon = () => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
38858
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
38859
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("path", { d: "M8 21h8M12 17v4" })
38860
+ ] });
38861
+ var CloseIcon = () => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: [
38862
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
38863
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
38864
+ ] });
38865
+ var ChevronLeft2 = () => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("polyline", { points: "15 18 9 12 15 6" }) });
38866
+ var ChevronRight2 = () => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("polyline", { points: "9 18 15 12 9 6" }) });
38867
+ var Skel = ({ className, style }) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: cn("animate-pulse rounded-md bg-zinc-800/60", className), style });
38868
+ var FORMATS = [
38869
+ {
38870
+ key: "pptx_url",
38871
+ label: "PowerPoint",
38872
+ ext: ".pptx",
38873
+ emoji: "\u{1F4CA}",
38874
+ desc: "Editable slides \u2014 open in Microsoft PowerPoint or Google Slides",
38875
+ accent: { text: "text-orange-400", bg: "bg-orange-500/10 border-orange-500/20", pill: "bg-orange-500/15 text-orange-400 border-orange-500/25" }
38876
+ },
38877
+ {
38878
+ key: "pdf_url",
38879
+ label: "PDF",
38880
+ ext: ".pdf",
38881
+ emoji: "\u{1F4C4}",
38882
+ desc: "Print-ready, fixed layout \u2014 open in any PDF viewer",
38883
+ accent: { text: "text-red-400", bg: "bg-red-500/10 border-red-500/20", pill: "bg-red-500/15 text-red-400 border-red-500/25" }
38884
+ },
38885
+ {
38886
+ key: "html_url",
38887
+ label: "HTML",
38888
+ ext: ".html",
38889
+ emoji: "\u{1F310}",
38890
+ desc: "Interactive web presentation \u2014 download and open in browser",
38891
+ accent: { text: "text-indigo-400", bg: "bg-indigo-500/10 border-indigo-500/20", pill: "bg-indigo-500/15 text-indigo-400 border-indigo-500/25" }
38892
+ }
38893
+ ];
38894
+ var ExportModal = ({ formats, title, onClose }) => {
38895
+ const available = FORMATS.filter((f) => formats[f.key]);
38896
+ const filename = title.replace(/[^a-z0-9]/gi, "-").toLowerCase();
38897
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
38898
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "absolute inset-0 bg-black/70 backdrop-blur-sm", onClick: onClose }),
38899
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "relative z-10 bg-zinc-900 border border-zinc-800 rounded-2xl w-full max-w-sm p-6 shadow-2xl", children: [
38900
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-start justify-between mb-5", children: [
38901
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "min-w-0 pr-3", children: [
38902
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("h3", { className: "text-sm font-semibold text-zinc-100", children: "Export Presentation" }),
38903
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("p", { className: "text-xs text-zinc-500 mt-0.5 truncate", children: title })
38904
+ ] }),
38905
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
38906
+ "button",
38907
+ {
38908
+ onClick: onClose,
38909
+ className: "text-zinc-500 hover:text-zinc-200 transition-colors flex-shrink-0 mt-0.5",
38910
+ "aria-label": "Close",
38911
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(CloseIcon, {})
38912
+ }
38913
+ )
38914
+ ] }),
38915
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "space-y-2.5", children: [
38916
+ available.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("p", { className: "text-sm text-zinc-500 text-center py-6", children: "No formats available yet" }),
38917
+ available.map((fmt) => {
38918
+ const url = formats[fmt.key];
38919
+ const dlName = `${filename}${fmt.ext}`;
38920
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
38921
+ "a",
38922
+ {
38923
+ href: url,
38924
+ download: dlName,
38925
+ className: cn(
38926
+ "flex items-center gap-3.5 p-3.5 rounded-xl border transition-all",
38927
+ "hover:brightness-110 cursor-pointer no-underline group",
38928
+ fmt.accent.bg
38929
+ ),
38930
+ children: [
38931
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-xl flex-shrink-0", children: fmt.emoji }),
38932
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex-1 min-w-0", children: [
38933
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("p", { className: cn("text-sm font-semibold", fmt.accent.text), children: fmt.label }),
38934
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("p", { className: "text-xs text-zinc-500 mt-0.5 leading-relaxed", children: fmt.desc })
38935
+ ] }),
38936
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: cn("flex-shrink-0 transition-colors", fmt.accent.text), children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DownloadIcon, {}) })
38937
+ ]
38938
+ },
38939
+ fmt.key
38940
+ );
38941
+ })
38942
+ ] }),
38943
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("p", { className: "text-xs text-zinc-600 mt-4 text-center", children: "Download links expire in 7 days" })
38944
+ ] })
38945
+ ] });
38946
+ };
38947
+ var PresentationJobCard = ({
38948
+ job_id: _job_id,
38949
+ title: initialTitle,
38950
+ status: initialStatus,
38951
+ slide_count: initialSlideCount,
38952
+ formats: initialFormats = {},
38953
+ error: initialError,
38954
+ pollUrl,
38955
+ className
38956
+ }) => {
38957
+ const [status, setStatus] = (0, import_react74.useState)(initialStatus);
38958
+ const [title, setTitle] = (0, import_react74.useState)(initialTitle);
38959
+ const [slideCount, setSlideCount] = (0, import_react74.useState)(initialSlideCount ?? 0);
38960
+ const [formats, setFormats] = (0, import_react74.useState)(initialFormats);
38961
+ const [error, setError] = (0, import_react74.useState)(initialError);
38962
+ const [showModal, setShowModal] = (0, import_react74.useState)(false);
38963
+ const [currentSlide, setCurrentSlide] = (0, import_react74.useState)(1);
38964
+ const [previewScale, setPreviewScale] = (0, import_react74.useState)(1);
38965
+ const [iframeReady, setIframeReady] = (0, import_react74.useState)(false);
38966
+ const [pendingSlide, setPendingSlide] = (0, import_react74.useState)(null);
38967
+ const intervalRef = (0, import_react74.useRef)(null);
38968
+ const previewRef = (0, import_react74.useRef)(null);
38969
+ const iframeRef = (0, import_react74.useRef)(null);
38970
+ const updateScale = (0, import_react74.useCallback)(() => {
38971
+ if (previewRef.current) {
38972
+ setPreviewScale(previewRef.current.offsetWidth / 1280);
38973
+ }
38974
+ }, []);
38975
+ (0, import_react74.useEffect)(() => {
38976
+ updateScale();
38977
+ if (typeof ResizeObserver === "undefined") return;
38978
+ const ro = new ResizeObserver(updateScale);
38979
+ if (previewRef.current) ro.observe(previewRef.current);
38980
+ return () => ro.disconnect();
38981
+ }, [updateScale, formats.html_url]);
38982
+ (0, import_react74.useEffect)(() => {
38983
+ setIframeReady(false);
38984
+ setPendingSlide(null);
38985
+ }, [formats.html_url]);
38986
+ (0, import_react74.useEffect)(() => {
38987
+ const handler = (e) => {
38988
+ if (e.data?.type === "slideChanged") {
38989
+ setCurrentSlide(e.data.slide);
38990
+ if (e.data.total && !slideCount) {
38991
+ setSlideCount(e.data.total);
38992
+ }
38993
+ }
38994
+ };
38995
+ window.addEventListener("message", handler);
38996
+ return () => window.removeEventListener("message", handler);
38997
+ }, [slideCount]);
38998
+ (0, import_react74.useEffect)(() => {
38999
+ if (!iframeReady || pendingSlide === null) return;
39000
+ iframeRef.current?.contentWindow?.postMessage({ type: "goToSlide", slide: pendingSlide }, "*");
39001
+ setPendingSlide(null);
39002
+ }, [iframeReady, pendingSlide]);
39003
+ const goToSlide = (n) => {
39004
+ const total2 = slideCount || 1;
39005
+ const target = (n - 1 + total2) % total2 + 1;
39006
+ setCurrentSlide(target);
39007
+ if (iframeReady) {
39008
+ iframeRef.current?.contentWindow?.postMessage({ type: "goToSlide", slide: target }, "*");
39009
+ return;
39010
+ }
39011
+ setPendingSlide(target);
39012
+ };
39013
+ const isTerminal = status === "complete" || status === "failed";
39014
+ (0, import_react74.useEffect)(() => {
39015
+ if (isTerminal || !pollUrl) return;
39016
+ const poll = async () => {
39017
+ try {
39018
+ const res = await fetch(pollUrl);
39019
+ if (!res.ok) return;
39020
+ const data = await res.json();
39021
+ const newStatus = data.status;
39022
+ setStatus(newStatus);
39023
+ if (newStatus === "complete" && data.output) {
39024
+ if (data.output.title) setTitle(data.output.title);
39025
+ if (data.output.slide_count) setSlideCount(data.output.slide_count);
39026
+ if (data.output.formats) setFormats(data.output.formats);
39027
+ }
39028
+ if (newStatus === "failed" && data.error) {
39029
+ setError(data.error);
39030
+ }
39031
+ } catch {
39032
+ }
39033
+ };
39034
+ poll();
39035
+ intervalRef.current = setInterval(poll, 3e3);
39036
+ return () => {
39037
+ if (intervalRef.current) clearInterval(intervalRef.current);
39038
+ };
39039
+ }, [isTerminal, pollUrl]);
39040
+ (0, import_react74.useEffect)(() => {
39041
+ if (isTerminal && intervalRef.current) {
39042
+ clearInterval(intervalRef.current);
39043
+ intervalRef.current = null;
39044
+ }
39045
+ }, [isTerminal]);
39046
+ if (status === "pending" || status === "running") {
39047
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl p-5", children: [
39048
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-center gap-3 mb-5", children: [
39049
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Skel, { className: "w-10 h-10 rounded-xl flex-shrink-0" }),
39050
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex-1 space-y-2", children: [
39051
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Skel, { className: "h-3.5 w-44" }),
39052
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Skel, { className: "h-3 w-28" })
39053
+ ] })
39054
+ ] }),
39055
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "grid grid-cols-3 gap-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Skel, { className: "aspect-video rounded-lg", style: { animationDelay: `${i * 150}ms` } }, i)) }),
39056
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-center gap-2.5 mt-4 pt-4 border-t border-zinc-800/60", children: [
39057
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-pulse flex-shrink-0" }),
39058
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Skel, { className: "h-3 w-36" })
39059
+ ] })
39060
+ ] }) });
39061
+ }
39062
+ if (status === "failed") {
39063
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "bg-red-950/20 border border-red-800/25 rounded-2xl p-5", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-start gap-3", children: [
39064
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-red-400 text-base mt-0.5 flex-shrink-0", children: "\u26A0" }),
39065
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { children: [
39066
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("p", { className: "text-sm font-semibold text-red-300", children: "Presentation generation failed" }),
39067
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("p", { className: "text-xs text-red-400/60 mt-1 leading-relaxed", children: error || "An unexpected error occurred. Please try again." })
39068
+ ] })
39069
+ ] }) }) });
39070
+ }
39071
+ const availablePills = FORMATS.filter((f) => formats[f.key]);
39072
+ const total = slideCount || 1;
39073
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
39074
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
39075
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "h-[3px] bg-gradient-to-r from-indigo-600 via-violet-500 to-purple-600" }),
39076
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "p-5", children: [
39077
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-start gap-3", children: [
39078
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0 text-indigo-400", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(SlidesIcon, {}) }),
39079
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex-1 min-w-0", children: [
39080
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", children: title }),
39081
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("p", { className: "text-xs text-zinc-500 mt-0.5", children: [
39082
+ slideCount ? `${slideCount} slides` : "Presentation",
39083
+ " \xB7 Ready to export"
39084
+ ] })
39085
+ ] }),
39086
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
39087
+ "button",
39088
+ {
39089
+ onClick: () => setShowModal(true),
39090
+ className: "flex items-center gap-1.5 px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 text-white text-xs font-medium rounded-lg transition-colors flex-shrink-0",
39091
+ children: [
39092
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DownloadIcon, {}),
39093
+ "Export"
39094
+ ]
39095
+ }
39096
+ )
39097
+ ] }),
39098
+ formats.html_url && /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "mt-4", children: [
39099
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39100
+ "div",
39101
+ {
39102
+ ref: previewRef,
39103
+ className: "relative overflow-hidden rounded-xl bg-zinc-950 border border-zinc-800/50",
39104
+ style: { height: Math.round(previewScale * 720) },
39105
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39106
+ "iframe",
39107
+ {
39108
+ ref: iframeRef,
39109
+ src: formats.html_url,
39110
+ title,
39111
+ onLoad: () => setIframeReady(true),
39112
+ sandbox: "allow-same-origin allow-scripts",
39113
+ style: {
39114
+ width: 1280,
39115
+ height: 720,
39116
+ transform: `scale(${previewScale})`,
39117
+ transformOrigin: "top left",
39118
+ border: "none",
39119
+ pointerEvents: "none",
39120
+ display: "block"
39121
+ }
39122
+ }
39123
+ )
39124
+ }
39125
+ ),
39126
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-center justify-between mt-3", children: [
39127
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex items-center gap-2", children: availablePills.map((fmt) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39128
+ "span",
39129
+ {
39130
+ className: cn(
39131
+ "text-xs px-2.5 py-0.5 rounded-md border font-medium",
39132
+ fmt.accent.pill
39133
+ ),
39134
+ children: fmt.label
39135
+ },
39136
+ fmt.key
39137
+ )) }),
39138
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-center gap-2", children: [
39139
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39140
+ "button",
39141
+ {
39142
+ onClick: () => goToSlide(currentSlide - 1),
39143
+ disabled: total <= 1,
39144
+ className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed",
39145
+ "aria-label": "Previous slide",
39146
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(ChevronLeft2, {})
39147
+ }
39148
+ ),
39149
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("span", { className: "text-xs text-zinc-500 font-medium tabular-nums min-w-[3rem] text-center", children: [
39150
+ currentSlide,
39151
+ " / ",
39152
+ total
39153
+ ] }),
39154
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39155
+ "button",
39156
+ {
39157
+ onClick: () => goToSlide(currentSlide + 1),
39158
+ disabled: total <= 1,
39159
+ className: "w-7 h-7 rounded-full border border-zinc-700 bg-zinc-800 hover:border-indigo-500 hover:text-indigo-400 text-zinc-400 flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed",
39160
+ "aria-label": "Next slide",
39161
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(ChevronRight2, {})
39162
+ }
39163
+ )
39164
+ ] })
39165
+ ] })
39166
+ ] }),
39167
+ !formats.html_url && availablePills.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex items-center gap-2 mt-4", children: availablePills.map((fmt) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39168
+ "span",
39169
+ {
39170
+ className: cn(
39171
+ "text-xs px-2.5 py-0.5 rounded-md border font-medium",
39172
+ fmt.accent.pill
39173
+ ),
39174
+ children: fmt.label
39175
+ },
39176
+ fmt.key
39177
+ )) })
39178
+ ] })
39179
+ ] }) }),
39180
+ showModal && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39181
+ ExportModal,
39182
+ {
39183
+ formats,
39184
+ title,
39185
+ onClose: () => setShowModal(false)
39186
+ }
39187
+ )
39188
+ ] });
39189
+ };
39190
+
38847
39191
  // src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.tsx
38848
- var import_react75 = __toESM(require("react"), 1);
39192
+ var import_react76 = __toESM(require("react"), 1);
38849
39193
 
38850
39194
  // src/lib/field-utils.ts
38851
39195
  function normalizeLabel(key) {
@@ -38920,7 +39264,7 @@ function generateFieldsFromPropDefinitions(propDefs, data) {
38920
39264
  }
38921
39265
 
38922
39266
  // src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx
38923
- var import_react74 = require("react");
39267
+ var import_react75 = require("react");
38924
39268
 
38925
39269
  // src/lib/countries.ts
38926
39270
  var countries = [
@@ -39127,15 +39471,15 @@ var countriesWithFlags = Object.fromEntries(
39127
39471
  );
39128
39472
 
39129
39473
  // src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx
39130
- var import_jsx_runtime146 = require("react/jsx-runtime");
39474
+ var import_jsx_runtime147 = require("react/jsx-runtime");
39131
39475
  var CountrySelectEdit = ({
39132
39476
  value,
39133
39477
  onChange
39134
39478
  }) => {
39135
- const [isDropdownOpen, setIsDropdownOpen] = (0, import_react74.useState)(false);
39136
- const [searchTerm, setSearchTerm] = (0, import_react74.useState)("");
39137
- const dropdownRef = (0, import_react74.useRef)(null);
39138
- (0, import_react74.useEffect)(() => {
39479
+ const [isDropdownOpen, setIsDropdownOpen] = (0, import_react75.useState)(false);
39480
+ const [searchTerm, setSearchTerm] = (0, import_react75.useState)("");
39481
+ const dropdownRef = (0, import_react75.useRef)(null);
39482
+ (0, import_react75.useEffect)(() => {
39139
39483
  const handleClickOutside = (event) => {
39140
39484
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
39141
39485
  setIsDropdownOpen(false);
@@ -39144,7 +39488,7 @@ var CountrySelectEdit = ({
39144
39488
  document.addEventListener("mousedown", handleClickOutside);
39145
39489
  return () => document.removeEventListener("mousedown", handleClickOutside);
39146
39490
  }, []);
39147
- const inputValue = (0, import_react74.useMemo)(() => {
39491
+ const inputValue = (0, import_react75.useMemo)(() => {
39148
39492
  if (Array.isArray(value)) return value;
39149
39493
  if (typeof value === "string" && value.trim() !== "") {
39150
39494
  const foundCountry = countries.find(
@@ -39154,16 +39498,16 @@ var CountrySelectEdit = ({
39154
39498
  }
39155
39499
  return [];
39156
39500
  }, [value]);
39157
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "space-y-3", children: [
39158
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "relative", ref: dropdownRef, children: [
39159
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
39501
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "space-y-3", children: [
39502
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "relative", ref: dropdownRef, children: [
39503
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
39160
39504
  "div",
39161
39505
  {
39162
39506
  className: "flex-1 bg-background border border-border rounded-md px-3 py-2 text-sm cursor-pointer flex items-center justify-between font-medium hover:border-purple500 transition-colors",
39163
39507
  onClick: () => setIsDropdownOpen(!isDropdownOpen),
39164
39508
  children: [
39165
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-foreground", children: inputValue.length > 0 ? `${inputValue.length} ${inputValue.length === 1 ? "country" : "countries"} selected` : "Select countries..." }),
39166
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39509
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-foreground", children: inputValue.length > 0 ? `${inputValue.length} ${inputValue.length === 1 ? "country" : "countries"} selected` : "Select countries..." }),
39510
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39167
39511
  ChevronDown,
39168
39512
  {
39169
39513
  className: cn(
@@ -39175,8 +39519,8 @@ var CountrySelectEdit = ({
39175
39519
  ]
39176
39520
  }
39177
39521
  ),
39178
- isDropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "relative z-10 top-full left-0 right-0 mt-1 bg-background border border-border rounded-lg shadow-xl z-50 max-h-60 overflow-hidden animate-in fade-in slide-in-from-top-1", children: [
39179
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39522
+ isDropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "relative z-10 top-full left-0 right-0 mt-1 bg-background border border-border rounded-lg shadow-xl z-50 max-h-60 overflow-hidden animate-in fade-in slide-in-from-top-1", children: [
39523
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39180
39524
  "input",
39181
39525
  {
39182
39526
  type: "text",
@@ -39187,9 +39531,9 @@ var CountrySelectEdit = ({
39187
39531
  onClick: (e) => e.stopPropagation()
39188
39532
  }
39189
39533
  ) }),
39190
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "max-h-40 overflow-y-auto p-1", children: countries.filter(
39534
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "max-h-40 overflow-y-auto p-1", children: countries.filter(
39191
39535
  (country) => country.name.toLowerCase().includes(searchTerm.toLowerCase()) || country.code.toLowerCase().includes(searchTerm.toLowerCase())
39192
- ).map((country) => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
39536
+ ).map((country) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
39193
39537
  "div",
39194
39538
  {
39195
39539
  className: cn(
@@ -39210,30 +39554,30 @@ var CountrySelectEdit = ({
39210
39554
  }
39211
39555
  },
39212
39556
  children: [
39213
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-center gap-2", children: [
39214
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-sm text-foreground", children: country.name }),
39215
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-xs text-muted-foreground font-mono", children: country.code })
39557
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex items-center gap-2", children: [
39558
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-sm text-foreground", children: country.name }),
39559
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-xs text-muted-foreground font-mono", children: country.code })
39216
39560
  ] }),
39217
- inputValue.includes(country.code) && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Check, { className: "h-4 w-4 text-purple500" })
39561
+ inputValue.includes(country.code) && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Check, { className: "h-4 w-4 text-purple500" })
39218
39562
  ]
39219
39563
  },
39220
39564
  country.code
39221
39565
  )) })
39222
39566
  ] })
39223
39567
  ] }),
39224
- inputValue.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex flex-wrap gap-1.5", children: inputValue.map((countryCode) => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
39568
+ inputValue.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-wrap gap-1.5", children: inputValue.map((countryCode) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
39225
39569
  Badge2,
39226
39570
  {
39227
39571
  className: "flex items-center gap-1 px-2 py-0.5 bg-grayPill border border-gray400 rounded-md text-white text-xs font-medium",
39228
39572
  children: [
39229
39573
  countryCode,
39230
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
39574
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
39231
39575
  "button",
39232
39576
  {
39233
39577
  onClick: () => onChange(inputValue.filter((c) => c !== countryCode)),
39234
39578
  className: "hover:bg-purple200 rounded-full p-0.5 transition-colors",
39235
39579
  children: [
39236
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(X, { className: "h-3 w-3" }),
39580
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(X, { className: "h-3 w-3" }),
39237
39581
  " "
39238
39582
  ]
39239
39583
  }
@@ -39245,19 +39589,19 @@ var CountrySelectEdit = ({
39245
39589
  ] });
39246
39590
  };
39247
39591
  var CountrySelectDisplay = ({ value }) => {
39248
- const displayValues = (0, import_react74.useMemo)(() => {
39592
+ const displayValues = (0, import_react75.useMemo)(() => {
39249
39593
  if (Array.isArray(value)) return value;
39250
39594
  if (typeof value === "string" && value.trim() !== "") return [value];
39251
39595
  return [];
39252
39596
  }, [value]);
39253
39597
  if (displayValues.length === 0) {
39254
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
39598
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
39255
39599
  }
39256
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: displayValues.map((item) => {
39600
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: displayValues.map((item) => {
39257
39601
  const country = countries.find(
39258
39602
  (c) => c.code.toLowerCase() === item.toLowerCase() || c.name.toLowerCase() === item.toLowerCase()
39259
39603
  );
39260
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39604
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39261
39605
  "div",
39262
39606
  {
39263
39607
  className: "flex items-center gap-1.5 px-2 py-0.5 bg-grayPill border border-gray400 rounded-md text-foreground text-xs font-medium",
@@ -39291,22 +39635,22 @@ var KeywordBundlesEdit = ({
39291
39635
  });
39292
39636
  });
39293
39637
  const sortedPriorities = Object.keys(groups).map((n) => parseInt(n)).sort((a, b) => a - b);
39294
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "space-y-6 pt-2", children: sortedPriorities.map((priority) => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "space-y-3", children: [
39295
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-center gap-2", children: [
39296
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "inline-block px-3 py-1 bg-purple200 hover:bg-purple200 text-purpleText text-sm font-medium rounded-md uppercase", children: [
39638
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "space-y-6 pt-2", children: sortedPriorities.map((priority) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "space-y-3", children: [
39639
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex items-center gap-2", children: [
39640
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "inline-block px-3 py-1 bg-purple200 hover:bg-purple200 text-purpleText text-sm font-medium rounded-md uppercase", children: [
39297
39641
  "Priority ",
39298
39642
  priority
39299
39643
  ] }),
39300
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "h-px flex-1 bg-white/10" })
39644
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "h-px flex-1 bg-white/10" })
39301
39645
  ] }),
39302
- groups[priority].map(({ bundle, index: bundleIndex }) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39646
+ groups[priority].map(({ bundle, index: bundleIndex }) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39303
39647
  "div",
39304
39648
  {
39305
39649
  className: "bg-gray-50/50 border border-gray-100 rounded-xl p-4 transition-all hover:bg-gray-50 hover:border-gray-200 shadow-sm",
39306
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex flex-col gap-3", children: [
39307
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("label", { className: "text-[10px] font-bold text-gray-400 uppercase tracking-widest pl-1", children: "Keywords" }),
39308
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "space-y-3", children: [
39309
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex flex-wrap gap-1.5", children: Array.isArray(bundle.keywords) && bundle.keywords.map((keyword, kIndex) => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
39650
+ children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex flex-col gap-3", children: [
39651
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("label", { className: "text-[10px] font-bold text-gray-400 uppercase tracking-widest pl-1", children: "Keywords" }),
39652
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "space-y-3", children: [
39653
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-wrap gap-1.5", children: Array.isArray(bundle.keywords) && bundle.keywords.map((keyword, kIndex) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
39310
39654
  "div",
39311
39655
  {
39312
39656
  className: "flex items-center gap-1.5 px-2 py-0.5 bg-grayPill border border-gray400 rounded-md text-white text-xs font-medium hover:bg-red-900/40 hover:border-red-500 transition-all cursor-pointer group",
@@ -39323,12 +39667,12 @@ var KeywordBundlesEdit = ({
39323
39667
  },
39324
39668
  children: [
39325
39669
  keyword,
39326
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "ml-1 opacity-60 group-hover:opacity-100 transition-opacity", children: "\xD7" })
39670
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "ml-1 opacity-60 group-hover:opacity-100 transition-opacity", children: "\xD7" })
39327
39671
  ]
39328
39672
  },
39329
39673
  kIndex
39330
39674
  )) }),
39331
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39675
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39332
39676
  "input",
39333
39677
  {
39334
39678
  type: "text",
@@ -39352,9 +39696,9 @@ var KeywordBundlesEdit = ({
39352
39696
  }
39353
39697
  ) })
39354
39698
  ] }),
39355
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex flex-col gap-1.5 mt-1", children: [
39356
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("label", { className: "text-[10px] font-bold text-gray-400 uppercase tracking-widest pl-1", children: "Priority Level (1-5)" }),
39357
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39699
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex flex-col gap-1.5 mt-1", children: [
39700
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("label", { className: "text-[10px] font-bold text-gray-400 uppercase tracking-widest pl-1", children: "Priority Level (1-5)" }),
39701
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39358
39702
  "input",
39359
39703
  {
39360
39704
  type: "number",
@@ -39382,7 +39726,7 @@ var KeywordBundlesEdit = ({
39382
39726
  var KeywordBundlesDisplay = ({ value }) => {
39383
39727
  const bundles = Array.isArray(value) ? value : [];
39384
39728
  if (bundles.length === 0)
39385
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-gray-500 italic text-sm", children: "Not specified" });
39729
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-gray-500 italic text-sm", children: "Not specified" });
39386
39730
  const groups = {};
39387
39731
  bundles.forEach((b, idx) => {
39388
39732
  const p = Number(b?.priority) || idx + 1;
@@ -39395,17 +39739,17 @@ var KeywordBundlesDisplay = ({ value }) => {
39395
39739
  groups[p].push(...keywords);
39396
39740
  });
39397
39741
  const sortedPriorities = Object.keys(groups).map((n) => parseInt(n)).sort((a, b) => a - b);
39398
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "space-y-4 pt-2", children: sortedPriorities.map((priority) => {
39742
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "space-y-4 pt-2", children: sortedPriorities.map((priority) => {
39399
39743
  const deduped = Array.from(new Set(groups[priority]));
39400
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "space-y-3", children: [
39401
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "flex items-center gap-2", children: [
39402
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", { className: "inline-block px-3 py-1 bg-purple200 hover:bg-purple200 text-purpleText text-sm font-medium rounded-md uppercase", children: [
39744
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "space-y-3", children: [
39745
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex items-center gap-2", children: [
39746
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "inline-block px-3 py-1 bg-purple200 hover:bg-purple200 text-purpleText text-sm font-medium rounded-md uppercase", children: [
39403
39747
  "Priority ",
39404
39748
  priority
39405
39749
  ] }),
39406
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "h-px flex-1 bg-white/10" })
39750
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "h-px flex-1 bg-white/10" })
39407
39751
  ] }),
39408
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: deduped.map((keyword) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39752
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: deduped.map((keyword) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39409
39753
  "div",
39410
39754
  {
39411
39755
  className: "flex items-center gap-1.5 px-2 py-0.5 bg-grayPill border border-gray400 rounded-md text-white text-xs font-medium",
@@ -39421,7 +39765,7 @@ var PlatformSelectEdit = ({
39421
39765
  value,
39422
39766
  onChange
39423
39767
  }) => {
39424
- const selectedPlatforms = (0, import_react74.useMemo)(() => {
39768
+ const selectedPlatforms = (0, import_react75.useMemo)(() => {
39425
39769
  if (Array.isArray(value)) return value;
39426
39770
  if (typeof value === "string" && value.trim() !== "") {
39427
39771
  return value.split(",").map((s) => s.trim()).filter(Boolean);
@@ -39440,15 +39784,15 @@ var PlatformSelectEdit = ({
39440
39784
  onChange([...selectedPlatforms, platform]);
39441
39785
  }
39442
39786
  };
39443
- const options = (0, import_react74.useMemo)(() => {
39787
+ const options = (0, import_react75.useMemo)(() => {
39444
39788
  return DEFAULT_PLATFORMS;
39445
39789
  }, []);
39446
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex flex-wrap gap-4 py-2", children: options.map((platform) => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
39790
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-wrap gap-4 py-2", children: options.map((platform) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
39447
39791
  "label",
39448
39792
  {
39449
39793
  className: "flex items-center gap-2 cursor-pointer group",
39450
39794
  children: [
39451
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39795
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39452
39796
  "div",
39453
39797
  {
39454
39798
  className: cn(
@@ -39456,17 +39800,17 @@ var PlatformSelectEdit = ({
39456
39800
  isSelected(platform) ? "bg-purple-600 border-purple-600" : "border-gray-300 group-hover:border-purple-400"
39457
39801
  ),
39458
39802
  onClick: () => togglePlatform(platform),
39459
- children: isSelected(platform) && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Check, { className: "h-3.5 w-3.5 text-white stroke-[3]" })
39803
+ children: isSelected(platform) && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Check, { className: "h-3.5 w-3.5 text-white stroke-[3]" })
39460
39804
  }
39461
39805
  ),
39462
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-sm font-medium text-foreground select-none", children: platform })
39806
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-sm font-medium text-foreground select-none", children: platform })
39463
39807
  ]
39464
39808
  },
39465
39809
  platform
39466
39810
  )) });
39467
39811
  };
39468
39812
  var PlatformSelectDisplay = ({ value }) => {
39469
- const displayValues = (0, import_react74.useMemo)(() => {
39813
+ const displayValues = (0, import_react75.useMemo)(() => {
39470
39814
  if (Array.isArray(value)) return value;
39471
39815
  if (typeof value === "string" && value.trim() !== "") {
39472
39816
  return value.split(",").map((s) => s.trim()).filter(Boolean);
@@ -39474,9 +39818,9 @@ var PlatformSelectDisplay = ({ value }) => {
39474
39818
  return [];
39475
39819
  }, [value]);
39476
39820
  if (displayValues.length === 0) {
39477
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
39821
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
39478
39822
  }
39479
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: displayValues.map((platform) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
39823
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: displayValues.map((platform) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39480
39824
  "div",
39481
39825
  {
39482
39826
  className: "flex items-center gap-1.5 px-2 py-0.5 bg-grayPill border border-gray400 rounded-md text-foreground text-xs font-medium",
@@ -39487,21 +39831,21 @@ var PlatformSelectDisplay = ({ value }) => {
39487
39831
  };
39488
39832
 
39489
39833
  // src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.tsx
39490
- var import_jsx_runtime147 = require("react/jsx-runtime");
39834
+ var import_jsx_runtime148 = require("react/jsx-runtime");
39491
39835
  var ObjectDisplay = ({ value }) => {
39492
39836
  if (!value || typeof value !== "object") return null;
39493
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "space-y-1 pt-1", children: Object.entries(value).map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex gap-2 text-sm", children: [
39494
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("span", { className: "text-muted-foreground capitalize min-w-[120px]", children: [
39837
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "space-y-1 pt-1", children: Object.entries(value).map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { className: "flex gap-2 text-sm", children: [
39838
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("span", { className: "text-muted-foreground capitalize min-w-[120px]", children: [
39495
39839
  k.replace(/_/g, " "),
39496
39840
  ":"
39497
39841
  ] }),
39498
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-foreground font-medium", children: Array.isArray(v) ? v.join(", ") : String(v) })
39842
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { className: "text-foreground font-medium", children: Array.isArray(v) ? v.join(", ") : String(v) })
39499
39843
  ] }, k)) });
39500
39844
  };
39501
39845
  var StringArrayDisplay = ({ value }) => {
39502
39846
  if (!Array.isArray(value) || value.length === 0)
39503
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
39504
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: value.map((item) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39847
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
39848
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: value.map((item) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
39505
39849
  "div",
39506
39850
  {
39507
39851
  className: "flex items-center gap-1.5 px-2 py-0.5 bg-grayPill border border-gray400 rounded-md text-foreground text-xs font-medium",
@@ -39519,8 +39863,8 @@ function buildCampaignSeedFields(data) {
39519
39863
  key,
39520
39864
  label: "Keyword Bundles",
39521
39865
  type: "custom",
39522
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(KeywordBundlesDisplay, { value: v }),
39523
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39866
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(KeywordBundlesDisplay, { value: v }),
39867
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
39524
39868
  Textarea,
39525
39869
  {
39526
39870
  value: Array.isArray(v) ? v.map((b) => `${(b.keywords || []).join(", ")} (Priority: ${b.priority || 1})`).join("\n") : String(v || ""),
@@ -39552,8 +39896,8 @@ function buildCampaignSeedFields(data) {
39552
39896
  key,
39553
39897
  label: "Geography",
39554
39898
  type: "custom",
39555
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(CountrySelectDisplay, { value: v }),
39556
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(CountrySelectEdit, { value: v, onChange })
39899
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CountrySelectDisplay, { value: v }),
39900
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CountrySelectEdit, { value: v, onChange })
39557
39901
  };
39558
39902
  }
39559
39903
  if (key === "platforms" || key === "target_platforms" || key === "targetPlatforms") {
@@ -39561,8 +39905,8 @@ function buildCampaignSeedFields(data) {
39561
39905
  key,
39562
39906
  label: "Platforms",
39563
39907
  type: "custom",
39564
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(PlatformSelectDisplay, { value: v }),
39565
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39908
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(PlatformSelectDisplay, { value: v }),
39909
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
39566
39910
  PlatformSelectEdit,
39567
39911
  {
39568
39912
  value: v,
@@ -39577,7 +39921,7 @@ function buildCampaignSeedFields(data) {
39577
39921
  key,
39578
39922
  label,
39579
39923
  type: "custom",
39580
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(StringArrayDisplay, { value: v })
39924
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(StringArrayDisplay, { value: v })
39581
39925
  };
39582
39926
  }
39583
39927
  if (typeof value === "object" && value !== null && !Array.isArray(value) && "min" in value && "max" in value) {
@@ -39588,9 +39932,9 @@ function buildCampaignSeedFields(data) {
39588
39932
  type: "custom",
39589
39933
  renderDisplay: (v) => {
39590
39934
  if (typeof v === "object" && v !== null) {
39591
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-foreground font-medium", children: `${v.min?.toLocaleString()} - ${v.max?.toLocaleString()}` });
39935
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { className: "text-foreground font-medium", children: `${v.min?.toLocaleString()} - ${v.max?.toLocaleString()}` });
39592
39936
  }
39593
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-foreground font-medium", children: v });
39937
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { className: "text-foreground font-medium", children: v });
39594
39938
  }
39595
39939
  };
39596
39940
  }
@@ -39600,8 +39944,8 @@ function buildCampaignSeedFields(data) {
39600
39944
  key,
39601
39945
  label,
39602
39946
  type: "custom",
39603
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ObjectDisplay, { value: v }),
39604
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39947
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(ObjectDisplay, { value: v }),
39948
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
39605
39949
  Textarea,
39606
39950
  {
39607
39951
  value: Object.entries(v || {}).map(([k, val]) => `${k.replace(/_/g, " ")}: ${val}`).join("\n"),
@@ -39626,7 +39970,7 @@ function buildCampaignSeedFields(data) {
39626
39970
  return generated;
39627
39971
  });
39628
39972
  }
39629
- var CampaignSeedCard = import_react75.default.memo(
39973
+ var CampaignSeedCard = import_react76.default.memo(
39630
39974
  ({
39631
39975
  selectionStatus,
39632
39976
  isLatestMessage = true,
@@ -39638,7 +39982,7 @@ var CampaignSeedCard = import_react75.default.memo(
39638
39982
  sendMessage,
39639
39983
  ...formCardProps
39640
39984
  }) => {
39641
- const fields = (0, import_react75.useMemo)(() => {
39985
+ const fields = (0, import_react76.useMemo)(() => {
39642
39986
  return providedFields || buildCampaignSeedFields(data);
39643
39987
  }, [providedFields, data]);
39644
39988
  const handleProceed = () => {
@@ -39649,7 +39993,7 @@ var CampaignSeedCard = import_react75.default.memo(
39649
39993
  });
39650
39994
  };
39651
39995
  const effectiveIsLatest = isLatestMessage && !hasUserResponded;
39652
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
39996
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
39653
39997
  FormCard,
39654
39998
  {
39655
39999
  ...formCardProps,
@@ -39661,9 +40005,9 @@ var CampaignSeedCard = import_react75.default.memo(
39661
40005
  showTimeline: true,
39662
40006
  isLatestMessage: effectiveIsLatest,
39663
40007
  className,
39664
- footer: !effectiveIsLatest && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex justify-end items-center gap-1 text-green-600 text-[10px] font-semibold py-2 pr-4", children: [
39665
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(CircleCheck, { className: "h-3 w-3" }),
39666
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { children: selectionStatus === "agent" ? "Suggested by Agent" : "Selected by you" })
40008
+ footer: !effectiveIsLatest && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { className: "flex justify-end items-center gap-1 text-green-600 text-[10px] font-semibold py-2 pr-4", children: [
40009
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CircleCheck, { className: "h-3 w-3" }),
40010
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { children: selectionStatus === "agent" ? "Suggested by Agent" : "Selected by you" })
39667
40011
  ] }) : formCardProps.footer
39668
40012
  }
39669
40013
  ) });
@@ -39672,22 +40016,22 @@ var CampaignSeedCard = import_react75.default.memo(
39672
40016
  CampaignSeedCard.displayName = "CampaignSeedCard";
39673
40017
 
39674
40018
  // src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.tsx
39675
- var import_react76 = __toESM(require("react"), 1);
39676
- var import_jsx_runtime148 = require("react/jsx-runtime");
40019
+ var import_react77 = __toESM(require("react"), 1);
40020
+ var import_jsx_runtime149 = require("react/jsx-runtime");
39677
40021
  var ObjectDisplay2 = ({ value }) => {
39678
40022
  if (!value || typeof value !== "object") return null;
39679
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "space-y-1 pt-1", children: Object.entries(value).map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { className: "flex gap-2 text-sm", children: [
39680
- /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("span", { className: "text-muted-foreground capitalize min-w-[120px]", children: [
40023
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "space-y-1 pt-1", children: Object.entries(value).map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", { className: "flex gap-2 text-sm", children: [
40024
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("span", { className: "text-muted-foreground capitalize min-w-[120px]", children: [
39681
40025
  k.replace(/_/g, " "),
39682
40026
  ":"
39683
40027
  ] }),
39684
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { className: "text-foreground font-medium", children: Array.isArray(v) ? v.join(", ") : String(v) })
40028
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", { className: "text-foreground font-medium", children: Array.isArray(v) ? v.join(", ") : String(v) })
39685
40029
  ] }, k)) });
39686
40030
  };
39687
40031
  var StringArrayDisplay2 = ({ value }) => {
39688
40032
  if (!Array.isArray(value) || value.length === 0)
39689
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
39690
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: value.map((item) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
40033
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", { className: "text-muted-foreground italic text-sm", children: "Not specified" });
40034
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: value.map((item) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
39691
40035
  "div",
39692
40036
  {
39693
40037
  className: "flex items-center gap-2 px-3 py-1 bg-grayPill border border-foreground rounded-md text-foreground text-sm font-grotesk font-medium",
@@ -39705,8 +40049,8 @@ function buildSearchSpecFields(data) {
39705
40049
  key,
39706
40050
  label: "Keyword Bundles",
39707
40051
  type: "custom",
39708
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(KeywordBundlesDisplay, { value: v }),
39709
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(KeywordBundlesEdit, { value: v, onChange })
40052
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(KeywordBundlesDisplay, { value: v }),
40053
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(KeywordBundlesEdit, { value: v, onChange })
39710
40054
  };
39711
40055
  }
39712
40056
  if (key === "geography") {
@@ -39714,8 +40058,8 @@ function buildSearchSpecFields(data) {
39714
40058
  key,
39715
40059
  label: "Geography",
39716
40060
  type: "custom",
39717
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CountrySelectDisplay, { value: v }),
39718
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CountrySelectEdit, { value: v, onChange })
40061
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(CountrySelectDisplay, { value: v }),
40062
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(CountrySelectEdit, { value: v, onChange })
39719
40063
  };
39720
40064
  }
39721
40065
  if (key === "platforms" && Array.isArray(value)) {
@@ -39726,8 +40070,8 @@ function buildSearchSpecFields(data) {
39726
40070
  config: {
39727
40071
  options: data.platform_options || data.available_platforms || data.platforms_list || []
39728
40072
  },
39729
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(PlatformSelectDisplay, { value: v }),
39730
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
40073
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(PlatformSelectDisplay, { value: v }),
40074
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
39731
40075
  PlatformSelectEdit,
39732
40076
  {
39733
40077
  value: v,
@@ -39741,8 +40085,8 @@ function buildSearchSpecFields(data) {
39741
40085
  key,
39742
40086
  label: "Exclude Keywords",
39743
40087
  type: "custom",
39744
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(StringArrayDisplay2, { value: v }),
39745
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
40088
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(StringArrayDisplay2, { value: v }),
40089
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
39746
40090
  Textarea,
39747
40091
  {
39748
40092
  value: Array.isArray(v) ? v.join(", ") : String(v || ""),
@@ -39762,8 +40106,8 @@ function buildSearchSpecFields(data) {
39762
40106
  key,
39763
40107
  label,
39764
40108
  type: "custom",
39765
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(ObjectDisplay2, { value: v }),
39766
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
40109
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(ObjectDisplay2, { value: v }),
40110
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
39767
40111
  Textarea,
39768
40112
  {
39769
40113
  value: Object.entries(v || {}).map(([k, val]) => `${k.replace(/_/g, " ")}: ${val}`).join("\n"),
@@ -39788,7 +40132,7 @@ function buildSearchSpecFields(data) {
39788
40132
  return generated;
39789
40133
  });
39790
40134
  }
39791
- var SearchSpecCard = import_react76.default.memo(
40135
+ var SearchSpecCard = import_react77.default.memo(
39792
40136
  ({
39793
40137
  selectionStatus,
39794
40138
  isLatestMessage = true,
@@ -39802,7 +40146,7 @@ var SearchSpecCard = import_react76.default.memo(
39802
40146
  ...formCardProps
39803
40147
  }) => {
39804
40148
  const resolvedData = data || specData;
39805
- const fields = (0, import_react76.useMemo)(() => {
40149
+ const fields = (0, import_react77.useMemo)(() => {
39806
40150
  return providedFields || buildSearchSpecFields(resolvedData ?? {});
39807
40151
  }, [providedFields, resolvedData]);
39808
40152
  const handleProceed = () => {
@@ -39816,7 +40160,7 @@ var SearchSpecCard = import_react76.default.memo(
39816
40160
  });
39817
40161
  };
39818
40162
  const effectiveIsLatest = isLatestMessage && !hasUserResponded;
39819
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
40163
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
39820
40164
  FormCard,
39821
40165
  {
39822
40166
  ...formCardProps,
@@ -39827,9 +40171,9 @@ var SearchSpecCard = import_react76.default.memo(
39827
40171
  onProceed: handleProceed,
39828
40172
  isLatestMessage: effectiveIsLatest,
39829
40173
  className,
39830
- footer: !effectiveIsLatest && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { className: "flex justify-end items-center gap-1 text-green-600 text-[10px] font-semibold py-1", children: [
39831
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CircleCheck, { className: "h-3 w-3" }),
39832
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", { children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by User" })
40174
+ footer: !effectiveIsLatest && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", { className: "flex justify-end items-center gap-1 text-green-600 text-[10px] font-semibold py-1", children: [
40175
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(CircleCheck, { className: "h-3 w-3" }),
40176
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", { children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by User" })
39833
40177
  ] }) : formCardProps.footer
39834
40178
  }
39835
40179
  ) });
@@ -39838,7 +40182,7 @@ var SearchSpecCard = import_react76.default.memo(
39838
40182
  SearchSpecCard.displayName = "SearchSpecCard";
39839
40183
 
39840
40184
  // src/molecules/creator-discovery/MCQCard/MCQCard.tsx
39841
- var import_react77 = __toESM(require("react"), 1);
40185
+ var import_react78 = __toESM(require("react"), 1);
39842
40186
 
39843
40187
  // src/molecules/creator-discovery/MCQCard/defaultFetchers.ts
39844
40188
  function getBackendOrigin() {
@@ -39938,8 +40282,8 @@ async function defaultPersistSelection(sessionId, questionKey, value) {
39938
40282
  }
39939
40283
 
39940
40284
  // src/molecules/creator-discovery/MCQCard/MCQCard.tsx
39941
- var import_jsx_runtime149 = require("react/jsx-runtime");
39942
- var MCQCard = import_react77.default.memo(
40285
+ var import_jsx_runtime150 = require("react/jsx-runtime");
40286
+ var MCQCard = import_react78.default.memo(
39943
40287
  ({
39944
40288
  question,
39945
40289
  options,
@@ -39964,16 +40308,16 @@ var MCQCard = import_react77.default.memo(
39964
40308
  const resolvedOptions = options || allProps.Options || allProps.opts || {};
39965
40309
  const resolvedRecommended = recommended || allProps.Recommended || allProps.rec;
39966
40310
  console.log("[MCQCard] FULL PROPS:", { allProps, resolvedQuestion, resolvedOptions: Object.keys(resolvedOptions || {}), resolvedRecommended });
39967
- const [selectedOption, setSelectedOption] = import_react77.default.useState(propsSelectedOption);
39968
- const [isProceeded, setIsProceeded] = import_react77.default.useState(false);
39969
- const fetchedSessionRef = import_react77.default.useRef("");
39970
- import_react77.default.useEffect(() => {
40311
+ const [selectedOption, setSelectedOption] = import_react78.default.useState(propsSelectedOption);
40312
+ const [isProceeded, setIsProceeded] = import_react78.default.useState(false);
40313
+ const fetchedSessionRef = import_react78.default.useRef("");
40314
+ import_react78.default.useEffect(() => {
39971
40315
  if (propsSelectedOption) {
39972
40316
  setSelectedOption(propsSelectedOption);
39973
40317
  setIsProceeded(true);
39974
40318
  }
39975
40319
  }, [propsSelectedOption]);
39976
- const buildQuestionKey = import_react77.default.useCallback((sid, question2) => {
40320
+ const buildQuestionKey = import_react78.default.useCallback((sid, question2) => {
39977
40321
  let hash = 2166136261;
39978
40322
  for (let i = 0; i < question2.length; i++) {
39979
40323
  hash ^= question2.charCodeAt(i);
@@ -39981,7 +40325,7 @@ var MCQCard = import_react77.default.memo(
39981
40325
  }
39982
40326
  return `mcq_${sid}_${hash.toString(36)}`;
39983
40327
  }, []);
39984
- import_react77.default.useEffect(() => {
40328
+ import_react78.default.useEffect(() => {
39985
40329
  if (!sessionId || !resolvedQuestion) return;
39986
40330
  const fetchKey = `${sessionId}::${resolvedQuestion}`;
39987
40331
  if (fetchedSessionRef.current === fetchKey) return;
@@ -40044,7 +40388,7 @@ A: ${label}`);
40044
40388
  key,
40045
40389
  typeof val === "string" ? val : typeof val === "object" && val !== null ? val.label || val.description || val.id || JSON.stringify(val) : String(val ?? "")
40046
40390
  ]) : [];
40047
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
40391
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
40048
40392
  "div",
40049
40393
  {
40050
40394
  className: cn(
@@ -40052,11 +40396,11 @@ A: ${label}`);
40052
40396
  className
40053
40397
  ),
40054
40398
  children: [
40055
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("p", { className: "text-sm text-cardText", children: resolvedQuestion || "Select an option:" }) }),
40056
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "space-y-2.5 mb-4", children: optionsEntries.map(([key, label]) => {
40399
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("p", { className: "text-sm text-cardText", children: resolvedQuestion || "Select an option:" }) }),
40400
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "space-y-2.5 mb-4", children: optionsEntries.map(([key, label]) => {
40057
40401
  const isSelected = selectedOption === key;
40058
40402
  const isRecommended = key === recommended;
40059
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
40403
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
40060
40404
  "div",
40061
40405
  {
40062
40406
  onClick: (e) => handleOptionClick(key, e),
@@ -40067,8 +40411,8 @@ A: ${label}`);
40067
40411
  !selectedOption && !isOptionsDisabled && "hover:border-gray500",
40068
40412
  (isLoading || isOptionsDisabled) && "opacity-50 cursor-not-allowed"
40069
40413
  ),
40070
- children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", { className: "flex items-start gap-3", children: [
40071
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "mt-0.5 flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
40414
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: "flex items-start gap-3", children: [
40415
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "mt-0.5 flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
40072
40416
  "div",
40073
40417
  {
40074
40418
  className: cn(
@@ -40078,19 +40422,19 @@ A: ${label}`);
40078
40422
  !selectedOption && !isOptionsDisabled && "hover:border-gold"
40079
40423
  )
40080
40424
  ),
40081
- children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "w-2 h-2 rounded-full bg-gold" })
40425
+ children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "w-2 h-2 rounded-full bg-gold" })
40082
40426
  }
40083
40427
  ) }),
40084
- /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", { className: "flex-1 min-w-0", children: [
40085
- isRecommended && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("p", { className: "text-xs font-semibold text-gold mb-1", children: "Recommended" }),
40086
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("p", { className: "text-sm text-cardText", children: label })
40428
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: "flex-1 min-w-0", children: [
40429
+ isRecommended && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("p", { className: "text-xs font-semibold text-gold mb-1", children: "Recommended" }),
40430
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("p", { className: "text-sm text-cardText", children: label })
40087
40431
  ] })
40088
40432
  ] })
40089
40433
  },
40090
40434
  key
40091
40435
  );
40092
40436
  }) }),
40093
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
40437
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
40094
40438
  "button",
40095
40439
  {
40096
40440
  onClick: handleProceed,
@@ -40111,8 +40455,8 @@ A: ${label}`);
40111
40455
  MCQCard.displayName = "MCQCard";
40112
40456
 
40113
40457
  // src/molecules/creator-discovery/PlatformIconGroup/PlatformIconGroup.tsx
40114
- var import_jsx_runtime150 = require("react/jsx-runtime");
40115
- var TikTokIcon = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Video, { className });
40458
+ var import_jsx_runtime151 = require("react/jsx-runtime");
40459
+ var TikTokIcon = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(Video, { className });
40116
40460
  var PlatformIconGroup = ({
40117
40461
  platforms,
40118
40462
  className
@@ -40145,10 +40489,10 @@ var PlatformIconGroup = ({
40145
40489
  return "text-gray-500 bg-gray-50 border-gray-100";
40146
40490
  }
40147
40491
  };
40148
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: cn("flex gap-2", className), children: platforms.map((p, i) => {
40492
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { className: cn("flex gap-2", className), children: platforms.map((p, i) => {
40149
40493
  const Icon3 = getIcon(p.platform);
40150
40494
  if (!Icon3) return null;
40151
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
40495
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
40152
40496
  "a",
40153
40497
  {
40154
40498
  href: p.url || "#",
@@ -40159,7 +40503,7 @@ var PlatformIconGroup = ({
40159
40503
  "p-1.5 rounded-lg border transition-colors flex items-center justify-center",
40160
40504
  getColors(p.platform)
40161
40505
  ),
40162
- children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Icon3, { className: "w-4 h-4" })
40506
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(Icon3, { className: "w-4 h-4" })
40163
40507
  },
40164
40508
  i
40165
40509
  );
@@ -40167,7 +40511,7 @@ var PlatformIconGroup = ({
40167
40511
  };
40168
40512
 
40169
40513
  // src/molecules/creator-discovery/CreatorProfileSummary/CreatorProfileSummary.tsx
40170
- var import_jsx_runtime151 = require("react/jsx-runtime");
40514
+ var import_jsx_runtime152 = require("react/jsx-runtime");
40171
40515
  var CreatorProfileSummary = ({
40172
40516
  avatarSrc,
40173
40517
  name,
@@ -40175,7 +40519,7 @@ var CreatorProfileSummary = ({
40175
40519
  engagementRate,
40176
40520
  className
40177
40521
  }) => {
40178
- return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(
40522
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
40179
40523
  "div",
40180
40524
  {
40181
40525
  className: cn(
@@ -40183,7 +40527,7 @@ var CreatorProfileSummary = ({
40183
40527
  className
40184
40528
  ),
40185
40529
  children: [
40186
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
40530
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
40187
40531
  AvatarAtom,
40188
40532
  {
40189
40533
  id: `avatar-${name}`,
@@ -40193,8 +40537,8 @@ var CreatorProfileSummary = ({
40193
40537
  className: "w-12 h-12 ring-2 ring-purple-100"
40194
40538
  }
40195
40539
  ),
40196
- /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { className: "flex flex-col flex-1", children: [
40197
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
40540
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: "flex flex-col flex-1", children: [
40541
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
40198
40542
  TextAtom,
40199
40543
  {
40200
40544
  id: `name-${name}`,
@@ -40204,14 +40548,14 @@ var CreatorProfileSummary = ({
40204
40548
  className: "text-gray-900 leading-tight"
40205
40549
  }
40206
40550
  ),
40207
- /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { className: "flex gap-3 mt-1", children: [
40208
- followerCount && /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { className: "flex flex-col", children: [
40209
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "text-[10px] uppercase tracking-wider text-muted-foreground font-bold", children: "Followers" }),
40210
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "text-xs font-semibold text-purple-700", children: followerCount })
40551
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: "flex gap-3 mt-1", children: [
40552
+ followerCount && /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: "flex flex-col", children: [
40553
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "text-[10px] uppercase tracking-wider text-muted-foreground font-bold", children: "Followers" }),
40554
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "text-xs font-semibold text-purple-700", children: followerCount })
40211
40555
  ] }),
40212
- engagementRate && /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { className: "flex flex-col border-l border-purple-100 pl-3", children: [
40213
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "text-[10px] uppercase tracking-wider text-muted-foreground font-bold", children: "Engagement" }),
40214
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "text-xs font-semibold text-indigo-600", children: engagementRate })
40556
+ engagementRate && /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: "flex flex-col border-l border-purple-100 pl-3", children: [
40557
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "text-[10px] uppercase tracking-wider text-muted-foreground font-bold", children: "Engagement" }),
40558
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "text-xs font-semibold text-indigo-600", children: engagementRate })
40215
40559
  ] })
40216
40560
  ] })
40217
40561
  ] })
@@ -40221,13 +40565,13 @@ var CreatorProfileSummary = ({
40221
40565
  };
40222
40566
 
40223
40567
  // src/molecules/creator-discovery/AudienceMetricCard/AudienceMetricCard.tsx
40224
- var import_jsx_runtime152 = require("react/jsx-runtime");
40568
+ var import_jsx_runtime153 = require("react/jsx-runtime");
40225
40569
  var AudienceMetricCard = ({
40226
40570
  title,
40227
40571
  metrics,
40228
40572
  className
40229
40573
  }) => {
40230
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
40574
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
40231
40575
  Card,
40232
40576
  {
40233
40577
  className: cn(
@@ -40235,13 +40579,13 @@ var AudienceMetricCard = ({
40235
40579
  className
40236
40580
  ),
40237
40581
  children: [
40238
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(CardHeader, { className: "pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(CardTitle, { className: "text-lg font-bold text-gray-900", children: title }) }),
40239
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(CardContent, { className: "space-y-4", children: metrics.map((metric, i) => /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: "space-y-1.5", children: [
40240
- /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: "flex justify-between items-center text-sm", children: [
40241
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "font-medium text-gray-700", children: metric.label }),
40242
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "font-bold text-gray-900", children: metric.value })
40582
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(CardHeader, { className: "pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(CardTitle, { className: "text-lg font-bold text-gray-900", children: title }) }),
40583
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(CardContent, { className: "space-y-4", children: metrics.map((metric, i) => /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "space-y-1.5", children: [
40584
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "flex justify-between items-center text-sm", children: [
40585
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("span", { className: "font-medium text-gray-700", children: metric.label }),
40586
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("span", { className: "font-bold text-gray-900", children: metric.value })
40243
40587
  ] }),
40244
- metric.percentage !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
40588
+ metric.percentage !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
40245
40589
  ProgressAtom,
40246
40590
  {
40247
40591
  id: `progress-${i}`,
@@ -40258,8 +40602,8 @@ var AudienceMetricCard = ({
40258
40602
  };
40259
40603
 
40260
40604
  // src/molecules/creator-discovery/CreatorGridCard/CreatorGridCard.tsx
40261
- var import_jsx_runtime153 = require("react/jsx-runtime");
40262
- var TikTokIcon2 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(Video, { className });
40605
+ var import_jsx_runtime154 = require("react/jsx-runtime");
40606
+ var TikTokIcon2 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(Video, { className });
40263
40607
  var CreatorGridCard = ({
40264
40608
  bannerSrc,
40265
40609
  avatarSrc,
@@ -40287,7 +40631,7 @@ var CreatorGridCard = ({
40287
40631
  const safePlatforms = Array.isArray(platforms) ? platforms : [];
40288
40632
  const safeMetrics = Array.isArray(metrics) ? metrics : [];
40289
40633
  const displayName = typeof name === "string" ? name : String(name || "");
40290
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
40634
+ return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
40291
40635
  Card,
40292
40636
  {
40293
40637
  className: cn(
@@ -40295,43 +40639,43 @@ var CreatorGridCard = ({
40295
40639
  className
40296
40640
  ),
40297
40641
  children: [
40298
- /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "relative h-32 w-full overflow-hidden", children: [
40299
- bannerSrc ? /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
40642
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: "relative h-32 w-full overflow-hidden", children: [
40643
+ bannerSrc ? /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
40300
40644
  "img",
40301
40645
  {
40302
40646
  src: bannerSrc,
40303
40647
  alt: displayName,
40304
40648
  className: "h-full w-full object-cover transition-transform duration-500 group-hover:scale-110"
40305
40649
  }
40306
- ) : /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "h-full w-full bg-gradient-to-br from-purple-500 to-indigo-600" }),
40307
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "absolute inset-x-0 bottom-0 h-1/2 bg-gradient-to-t from-black/20 to-transparent" })
40650
+ ) : /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "h-full w-full bg-gradient-to-br from-purple-500 to-indigo-600" }),
40651
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "absolute inset-x-0 bottom-0 h-1/2 bg-gradient-to-t from-black/20 to-transparent" })
40308
40652
  ] }),
40309
- /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(CardContent, { className: "relative pt-0 px-5 pb-6", children: [
40310
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "absolute -top-10 left-5", children: /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(Avatar, { className: "h-20 w-20 border-4 border-[var(--card-background)] shadow-lg ring-2 ring-purple-100/20", children: [
40311
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(AvatarImage, { src: avatarSrc, alt: displayName }),
40312
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(AvatarFallback, { className: "bg-purple-500/10 text-purple-500 font-bold text-xl", children: displayName.charAt(0) || "?" })
40653
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(CardContent, { className: "relative pt-0 px-5 pb-6", children: [
40654
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "absolute -top-10 left-5", children: /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(Avatar, { className: "h-20 w-20 border-4 border-[var(--card-background)] shadow-lg ring-2 ring-purple-100/20", children: [
40655
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(AvatarImage, { src: avatarSrc, alt: displayName }),
40656
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(AvatarFallback, { className: "bg-purple-500/10 text-purple-500 font-bold text-xl", children: displayName.charAt(0) || "?" })
40313
40657
  ] }) }),
40314
- /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "mt-12 flex flex-col gap-1", children: [
40315
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("h3", { className: "text-xl font-bold text-[var(--foreground)] truncate", children: displayName }),
40316
- /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("p", { className: "text-sm text-[var(--foreground)]/60 font-medium", children: [
40658
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: "mt-12 flex flex-col gap-1", children: [
40659
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("h3", { className: "text-xl font-bold text-[var(--foreground)] truncate", children: displayName }),
40660
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("p", { className: "text-sm text-[var(--foreground)]/60 font-medium", children: [
40317
40661
  "@",
40318
40662
  handle
40319
40663
  ] })
40320
40664
  ] }),
40321
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "mt-4 flex gap-2", children: safePlatforms.map((p, i) => {
40665
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "mt-4 flex gap-2", children: safePlatforms.map((p, i) => {
40322
40666
  const Icon3 = getIcon(p);
40323
- return Icon3 ? /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
40667
+ return Icon3 ? /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
40324
40668
  "div",
40325
40669
  {
40326
40670
  className: "p-1.5 rounded-lg bg-[var(--foreground)]/5 text-[var(--foreground)]/60 hover:text-purple-500 hover:bg-purple-500/10 transition-colors",
40327
- children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(Icon3, { className: "h-4 w-4" })
40671
+ children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(Icon3, { className: "h-4 w-4" })
40328
40672
  },
40329
40673
  typeof p === "string" ? p : i
40330
40674
  ) : null;
40331
40675
  }) }),
40332
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "mt-6 grid grid-cols-2 gap-4 border-t border-[var(--border-color)] pt-4", children: safeMetrics.map((m, i) => /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "flex flex-col", children: [
40333
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-wider text-[var(--foreground)]/40", children: m.label }),
40334
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("span", { className: "text-sm font-bold text-[var(--primary-color)]", children: m.value })
40676
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "mt-6 grid grid-cols-2 gap-4 border-t border-[var(--border-color)] pt-4", children: safeMetrics.map((m, i) => /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: "flex flex-col", children: [
40677
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "text-[10px] font-bold uppercase tracking-wider text-[var(--foreground)]/40", children: m.label }),
40678
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "text-sm font-bold text-[var(--primary-color)]", children: m.value })
40335
40679
  ] }, i)) })
40336
40680
  ] })
40337
40681
  ]
@@ -40340,15 +40684,15 @@ var CreatorGridCard = ({
40340
40684
  };
40341
40685
 
40342
40686
  // src/molecules/creator-discovery/BrandAffinityGroup/BrandAffinityGroup.tsx
40343
- var import_jsx_runtime154 = require("react/jsx-runtime");
40687
+ var import_jsx_runtime155 = require("react/jsx-runtime");
40344
40688
  var BrandAffinityGroup = ({
40345
40689
  brands,
40346
40690
  className
40347
40691
  }) => {
40348
- return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: cn("flex flex-col gap-3", className), children: [
40349
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("h5", { className: "text-[10px] font-bold uppercase tracking-widest text-muted-foreground", children: "Recent Collaborations" }),
40350
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "flex flex-wrap gap-4 items-center", children: brands.map((brand, i) => /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: "group relative", children: [
40351
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "h-10 w-10 overflow-hidden rounded-xl bg-white border border-gray-100 p-1.5 flex items-center justify-center grayscale hover:grayscale-0 transition-all duration-300 hover:scale-110 shadow-sm hover:shadow-md", children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
40692
+ return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { className: cn("flex flex-col gap-3", className), children: [
40693
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("h5", { className: "text-[10px] font-bold uppercase tracking-widest text-muted-foreground", children: "Recent Collaborations" }),
40694
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { className: "flex flex-wrap gap-4 items-center", children: brands.map((brand, i) => /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { className: "group relative", children: [
40695
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { className: "h-10 w-10 overflow-hidden rounded-xl bg-white border border-gray-100 p-1.5 flex items-center justify-center grayscale hover:grayscale-0 transition-all duration-300 hover:scale-110 shadow-sm hover:shadow-md", children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
40352
40696
  "img",
40353
40697
  {
40354
40698
  src: brand.logoSrc,
@@ -40356,18 +40700,18 @@ var BrandAffinityGroup = ({
40356
40700
  className: "max-h-full max-w-full object-contain"
40357
40701
  }
40358
40702
  ) }),
40359
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "absolute -bottom-6 left-1/2 -translate-x-1/2 px-2 py-0.5 bg-gray-900 text-white text-[10px] rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-50 pointer-events-none", children: brand.name })
40703
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { className: "absolute -bottom-6 left-1/2 -translate-x-1/2 px-2 py-0.5 bg-gray-900 text-white text-[10px] rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-50 pointer-events-none", children: brand.name })
40360
40704
  ] }, i)) })
40361
40705
  ] });
40362
40706
  };
40363
40707
 
40364
40708
  // src/molecules/creator-discovery/ContentPreviewGallery/ContentPreviewGallery.tsx
40365
- var import_jsx_runtime155 = require("react/jsx-runtime");
40709
+ var import_jsx_runtime156 = require("react/jsx-runtime");
40366
40710
  var ContentPreviewGallery = ({
40367
40711
  items,
40368
40712
  className
40369
40713
  }) => {
40370
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { className: cn("grid grid-cols-2 gap-2", className), children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(
40714
+ return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: cn("grid grid-cols-2 gap-2", className), children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(
40371
40715
  "a",
40372
40716
  {
40373
40717
  href: item.url || "#",
@@ -40375,7 +40719,7 @@ var ContentPreviewGallery = ({
40375
40719
  rel: "noopener noreferrer",
40376
40720
  className: "group relative aspect-square overflow-hidden rounded-2xl bg-gray-100",
40377
40721
  children: [
40378
- /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
40722
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
40379
40723
  "img",
40380
40724
  {
40381
40725
  src: item.thumbnail,
@@ -40383,8 +40727,8 @@ var ContentPreviewGallery = ({
40383
40727
  className: "h-full w-full object-cover transition-transform duration-500 group-hover:scale-110"
40384
40728
  }
40385
40729
  ),
40386
- item.type === "video" && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/10 group-hover:bg-black/20 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { className: "rounded-full bg-white/30 backdrop-blur-md p-3 text-white ring-1 ring-white/50", children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Play, { className: "h-6 w-6 fill-white" }) }) }),
40387
- /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("div", { className: "absolute inset-0 ring-1 ring-inset ring-black/10 rounded-2xl" })
40730
+ item.type === "video" && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/10 group-hover:bg-black/20 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "rounded-full bg-white/30 backdrop-blur-md p-3 text-white ring-1 ring-white/50", children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(Play, { className: "h-6 w-6 fill-white" }) }) }),
40731
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "absolute inset-0 ring-1 ring-inset ring-black/10 rounded-2xl" })
40388
40732
  ]
40389
40733
  },
40390
40734
  i
@@ -40392,10 +40736,10 @@ var ContentPreviewGallery = ({
40392
40736
  };
40393
40737
 
40394
40738
  // src/molecules/creator-discovery/AudienceDemographicsCard/AudienceDemographicsCard.tsx
40395
- var import_jsx_runtime156 = require("react/jsx-runtime");
40739
+ var import_jsx_runtime157 = require("react/jsx-runtime");
40396
40740
  var AudienceDemographicsCard = ({ title, data, config, demographicType, className }) => {
40397
40741
  const chartType = demographicType === "location" ? "bar" : "pie";
40398
- return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(
40742
+ return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(
40399
40743
  Card,
40400
40744
  {
40401
40745
  className: cn(
@@ -40403,8 +40747,8 @@ var AudienceDemographicsCard = ({ title, data, config, demographicType, classNam
40403
40747
  className
40404
40748
  ),
40405
40749
  children: [
40406
- /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(CardHeader, { className: "pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(CardTitle, { className: "text-lg font-bold text-gray-900", children: title }) }),
40407
- /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
40750
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(CardHeader, { className: "pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(CardTitle, { className: "text-lg font-bold text-gray-900", children: title }) }),
40751
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
40408
40752
  ChartAtom,
40409
40753
  {
40410
40754
  type: "chart",
@@ -40423,7 +40767,7 @@ var AudienceDemographicsCard = ({ title, data, config, demographicType, classNam
40423
40767
  };
40424
40768
 
40425
40769
  // src/molecules/creator-discovery/GrowthChartCard/GrowthChartCard.tsx
40426
- var import_jsx_runtime157 = require("react/jsx-runtime");
40770
+ var import_jsx_runtime158 = require("react/jsx-runtime");
40427
40771
  var GrowthChartCard = ({
40428
40772
  title,
40429
40773
  data,
@@ -40432,7 +40776,7 @@ var GrowthChartCard = ({
40432
40776
  period,
40433
40777
  className
40434
40778
  }) => {
40435
- return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(
40779
+ return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
40436
40780
  Card,
40437
40781
  {
40438
40782
  className: cn(
@@ -40440,15 +40784,15 @@ var GrowthChartCard = ({
40440
40784
  className
40441
40785
  ),
40442
40786
  children: [
40443
- /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between pb-2 space-y-0", children: [
40444
- /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("div", { children: [
40445
- /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(CardTitle, { className: "text-lg font-bold text-gray-900", children: title }),
40446
- /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("p", { className: "text-xs text-muted-foreground", children: period })
40787
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between pb-2 space-y-0", children: [
40788
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { children: [
40789
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(CardTitle, { className: "text-lg font-bold text-gray-900", children: title }),
40790
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("p", { className: "text-xs text-muted-foreground", children: period })
40447
40791
  ] }),
40448
- /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "bg-green-50 p-2 rounded-xl", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(TrendingUp, { className: "w-4 h-4 text-green-600" }) })
40792
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { className: "bg-green-50 p-2 rounded-xl", children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(TrendingUp, { className: "w-4 h-4 text-green-600" }) })
40449
40793
  ] }),
40450
- /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(CardContent, { children: [
40451
- /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "h-[200px] w-full mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
40794
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(CardContent, { children: [
40795
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { className: "h-[200px] w-full mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
40452
40796
  ChartAtom,
40453
40797
  {
40454
40798
  type: "chart",
@@ -40461,9 +40805,9 @@ var GrowthChartCard = ({
40461
40805
  showLegend: false
40462
40806
  }
40463
40807
  ) }),
40464
- /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("div", { className: "mt-4 flex items-center justify-between", children: [
40465
- /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { className: "text-sm font-medium text-gray-500", children: metric }),
40466
- /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { className: "text-sm font-bold text-purple-600", children: "+12.5%" })
40808
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { className: "mt-4 flex items-center justify-between", children: [
40809
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: "text-sm font-medium text-gray-500", children: metric }),
40810
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: "text-sm font-bold text-purple-600", children: "+12.5%" })
40467
40811
  ] })
40468
40812
  ] })
40469
40813
  ]
@@ -40472,24 +40816,24 @@ var GrowthChartCard = ({
40472
40816
  };
40473
40817
 
40474
40818
  // src/molecules/creator-discovery/TopPostsGrid/TopPostsGrid.tsx
40475
- var import_jsx_runtime158 = require("react/jsx-runtime");
40819
+ var import_jsx_runtime159 = require("react/jsx-runtime");
40476
40820
  var TopPostsGrid = ({
40477
40821
  posts,
40478
40822
  className
40479
40823
  }) => {
40480
- return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
40824
+ return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
40481
40825
  "div",
40482
40826
  {
40483
40827
  className: cn(
40484
40828
  "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
40485
40829
  className
40486
40830
  ),
40487
- children: posts.map((post, i) => /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
40831
+ children: posts.map((post, i) => /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(
40488
40832
  "div",
40489
40833
  {
40490
40834
  className: "group relative aspect-square overflow-hidden rounded-2xl bg-gray-100 border border-purple-50",
40491
40835
  children: [
40492
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
40836
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
40493
40837
  "img",
40494
40838
  {
40495
40839
  src: post.thumbnail,
@@ -40497,25 +40841,25 @@ var TopPostsGrid = ({
40497
40841
  className: "h-full w-full object-cover transition-transform duration-500 group-hover:scale-110"
40498
40842
  }
40499
40843
  ),
40500
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { className: "absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity p-4 flex flex-col justify-end", children: [
40501
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { className: "flex items-center gap-4 text-white text-xs font-bold", children: [
40502
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { className: "flex items-center gap-1", children: [
40503
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Heart, { className: "w-3 h-3 fill-white" }),
40844
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity p-4 flex flex-col justify-end", children: [
40845
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "flex items-center gap-4 text-white text-xs font-bold", children: [
40846
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("span", { className: "flex items-center gap-1", children: [
40847
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(Heart, { className: "w-3 h-3 fill-white" }),
40504
40848
  " ",
40505
40849
  post.likes
40506
40850
  ] }),
40507
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { className: "flex items-center gap-1", children: [
40508
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(MessageCircle, { className: "w-3 h-3 fill-white" }),
40851
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("span", { className: "flex items-center gap-1", children: [
40852
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(MessageCircle, { className: "w-3 h-3 fill-white" }),
40509
40853
  " ",
40510
40854
  post.comments
40511
40855
  ] }),
40512
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { className: "flex items-center gap-1", children: [
40513
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(ChartColumn, { className: "w-3 h-3" }),
40856
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("span", { className: "flex items-center gap-1", children: [
40857
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(ChartColumn, { className: "w-3 h-3" }),
40514
40858
  " ",
40515
40859
  post.engagement
40516
40860
  ] })
40517
40861
  ] }),
40518
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: "text-[10px] text-gray-300 mt-2", children: post.date })
40862
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("span", { className: "text-[10px] text-gray-300 mt-2", children: post.date })
40519
40863
  ] })
40520
40864
  ]
40521
40865
  },
@@ -40526,7 +40870,7 @@ var TopPostsGrid = ({
40526
40870
  };
40527
40871
 
40528
40872
  // src/molecules/creator-discovery/CreatorActionHeader/CreatorActionHeader.tsx
40529
- var import_jsx_runtime159 = require("react/jsx-runtime");
40873
+ var import_jsx_runtime160 = require("react/jsx-runtime");
40530
40874
  var CreatorActionHeader = ({
40531
40875
  bannerSrc,
40532
40876
  avatarSrc,
@@ -40535,7 +40879,7 @@ var CreatorActionHeader = ({
40535
40879
  actions,
40536
40880
  className
40537
40881
  }) => {
40538
- return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(
40882
+ return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
40539
40883
  "div",
40540
40884
  {
40541
40885
  className: cn(
@@ -40543,8 +40887,8 @@ var CreatorActionHeader = ({
40543
40887
  className
40544
40888
  ),
40545
40889
  children: [
40546
- /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "h-48 w-full bg-gradient-to-r from-purple-100 to-indigo-100 relative", children: [
40547
- bannerSrc && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
40890
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: "h-48 w-full bg-gradient-to-r from-purple-100 to-indigo-100 relative", children: [
40891
+ bannerSrc && /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
40548
40892
  "img",
40549
40893
  {
40550
40894
  src: bannerSrc,
@@ -40552,23 +40896,23 @@ var CreatorActionHeader = ({
40552
40896
  alt: "Banner"
40553
40897
  }
40554
40898
  ),
40555
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: "absolute inset-0 bg-black/5" })
40899
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { className: "absolute inset-0 bg-black/5" })
40556
40900
  ] }),
40557
- /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "px-8 pb-8 flex flex-col md:flex-row md:items-end justify-between gap-6 -mt-12 relative z-10", children: [
40558
- /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "flex flex-col md:flex-row items-start md:items-end gap-6", children: [
40559
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: "p-2 bg-white rounded-[32px] shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(Avatar, { className: "h-32 w-32 rounded-[24px] border-4 border-white", children: [
40560
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(AvatarImage, { src: avatarSrc, className: "rounded-[24px]" }),
40561
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(AvatarFallback, { className: "rounded-[24px] bg-purple-50 text-purple-600 text-3xl font-bold", children: name.charAt(0) })
40901
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: "px-8 pb-8 flex flex-col md:flex-row md:items-end justify-between gap-6 -mt-12 relative z-10", children: [
40902
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: "flex flex-col md:flex-row items-start md:items-end gap-6", children: [
40903
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { className: "p-2 bg-white rounded-[32px] shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(Avatar, { className: "h-32 w-32 rounded-[24px] border-4 border-white", children: [
40904
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(AvatarImage, { src: avatarSrc, className: "rounded-[24px]" }),
40905
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(AvatarFallback, { className: "rounded-[24px] bg-purple-50 text-purple-600 text-3xl font-bold", children: name.charAt(0) })
40562
40906
  ] }) }),
40563
- /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "mb-2", children: [
40564
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("h1", { className: "text-3xl font-bold text-gray-900 tracking-tight", children: name }),
40565
- /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("p", { className: "text-purple-600 font-medium tracking-wide", children: [
40907
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: "mb-2", children: [
40908
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("h1", { className: "text-3xl font-bold text-gray-900 tracking-tight", children: name }),
40909
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("p", { className: "text-purple-600 font-medium tracking-wide", children: [
40566
40910
  "@",
40567
40911
  handle
40568
40912
  ] })
40569
40913
  ] })
40570
40914
  ] }),
40571
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: "flex items-center gap-3 mb-2", children: actions.map((action, i) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
40915
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { className: "flex items-center gap-3 mb-2", children: actions.map((action, i) => /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
40572
40916
  Button,
40573
40917
  {
40574
40918
  variant: action.variant || "default",
@@ -40587,9 +40931,9 @@ var CreatorActionHeader = ({
40587
40931
  };
40588
40932
 
40589
40933
  // src/molecules/creator-discovery/CreatorSearchBox/CreatorSearch.tsx
40590
- var import_react78 = __toESM(require("react"), 1);
40591
- var import_jsx_runtime160 = require("react/jsx-runtime");
40592
- var CreatorSearch = import_react78.default.memo(
40934
+ var import_react79 = __toESM(require("react"), 1);
40935
+ var import_jsx_runtime161 = require("react/jsx-runtime");
40936
+ var CreatorSearch = import_react79.default.memo(
40593
40937
  ({
40594
40938
  selectionStatus,
40595
40939
  isLatestMessage = true,
@@ -40598,7 +40942,7 @@ var CreatorSearch = import_react78.default.memo(
40598
40942
  data,
40599
40943
  ...formCardProps
40600
40944
  }) => {
40601
- const fields = (0, import_react78.useMemo)(() => {
40945
+ const fields = (0, import_react79.useMemo)(() => {
40602
40946
  const baseFields = providedFields || generateFieldsFromData(data);
40603
40947
  return baseFields.map((field) => {
40604
40948
  if (field.key === "platforms") {
@@ -40606,7 +40950,7 @@ var CreatorSearch = import_react78.default.memo(
40606
40950
  ...field,
40607
40951
  renderDisplay: (val) => {
40608
40952
  const platforms = Array.isArray(val) ? val : [val];
40609
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { className: "flex flex-wrap gap-2", children: platforms.map((p) => /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
40953
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { className: "flex flex-wrap gap-2", children: platforms.map((p) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
40610
40954
  BadgeAtom,
40611
40955
  {
40612
40956
  id: `platform-${p}`,
@@ -40623,13 +40967,13 @@ var CreatorSearch = import_react78.default.memo(
40623
40967
  if (field.key === "geography") {
40624
40968
  return {
40625
40969
  ...field,
40626
- renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(CountrySelectDisplay, { value: val })
40970
+ renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(CountrySelectDisplay, { value: val })
40627
40971
  };
40628
40972
  }
40629
40973
  if (field.key === "keywordBundles") {
40630
40974
  return {
40631
40975
  ...field,
40632
- renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(KeywordBundlesDisplay, { value: val })
40976
+ renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(KeywordBundlesDisplay, { value: val })
40633
40977
  };
40634
40978
  }
40635
40979
  if (field.key === "followerRange") {
@@ -40637,9 +40981,9 @@ var CreatorSearch = import_react78.default.memo(
40637
40981
  ...field,
40638
40982
  renderDisplay: (val) => {
40639
40983
  if (typeof val === "object" && val !== null) {
40640
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: "text-white font-medium", children: `${val.min?.toLocaleString()} - ${val.max?.toLocaleString()} followers` });
40984
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-white font-medium", children: `${val.min?.toLocaleString()} - ${val.max?.toLocaleString()} followers` });
40641
40985
  }
40642
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("span", { className: "text-white font-medium", children: [
40986
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("span", { className: "text-white font-medium", children: [
40643
40987
  val,
40644
40988
  " followers"
40645
40989
  ] });
@@ -40649,7 +40993,7 @@ var CreatorSearch = import_react78.default.memo(
40649
40993
  if (field.key === "initialCreators") {
40650
40994
  return {
40651
40995
  ...field,
40652
- renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("span", { className: "text-white font-medium", children: [
40996
+ renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("span", { className: "text-white font-medium", children: [
40653
40997
  val,
40654
40998
  " creators"
40655
40999
  ] })
@@ -40658,7 +41002,7 @@ var CreatorSearch = import_react78.default.memo(
40658
41002
  return field;
40659
41003
  });
40660
41004
  }, [providedFields, data]);
40661
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
41005
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
40662
41006
  FormCard,
40663
41007
  {
40664
41008
  ...formCardProps,
@@ -40667,9 +41011,9 @@ var CreatorSearch = import_react78.default.memo(
40667
41011
  fields,
40668
41012
  showTimeline: true,
40669
41013
  className: cn("font-noto", className),
40670
- footer: !isLatestMessage && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: "flex justify-end items-center gap-1.5 text-green-600 text-[10px] font-semibold py-4 pr-6", children: [
40671
- /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(CircleCheck, { className: "h-3.5 w-3.5" }),
40672
- /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { children: selectionStatus === "agent" ? "Suggested by Agent" : "Selected by you" })
41014
+ footer: !isLatestMessage && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { className: "flex justify-end items-center gap-1.5 text-green-600 text-[10px] font-semibold py-4 pr-6", children: [
41015
+ /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(CircleCheck, { className: "h-3.5 w-3.5" }),
41016
+ /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { children: selectionStatus === "agent" ? "Suggested by Agent" : "Selected by you" })
40673
41017
  ] }) : formCardProps.footer
40674
41018
  }
40675
41019
  ) });
@@ -40678,10 +41022,10 @@ var CreatorSearch = import_react78.default.memo(
40678
41022
  CreatorSearch.displayName = "CreatorSearch";
40679
41023
 
40680
41024
  // src/molecules/creator-discovery/CampaignConceptCard/CampaignConceptCard.tsx
40681
- var import_react79 = __toESM(require("react"), 1);
41025
+ var import_react80 = __toESM(require("react"), 1);
40682
41026
  var import_framer_motion = require("framer-motion");
40683
- var import_jsx_runtime161 = require("react/jsx-runtime");
40684
- var CampaignConceptCard = import_react79.default.memo(
41027
+ var import_jsx_runtime162 = require("react/jsx-runtime");
41028
+ var CampaignConceptCard = import_react80.default.memo(
40685
41029
  ({
40686
41030
  index,
40687
41031
  isRecommended,
@@ -40697,7 +41041,7 @@ var CampaignConceptCard = import_react79.default.memo(
40697
41041
  onAction,
40698
41042
  ...formCardProps
40699
41043
  }) => {
40700
- const [internalIsOpen, setInternalIsOpen] = (0, import_react79.useState)(false);
41044
+ const [internalIsOpen, setInternalIsOpen] = (0, import_react80.useState)(false);
40701
41045
  const isOpen = controlledIsOpen !== void 0 ? controlledIsOpen : internalIsOpen;
40702
41046
  const handleToggle = () => {
40703
41047
  if (onToggle) {
@@ -40716,7 +41060,7 @@ var CampaignConceptCard = import_react79.default.memo(
40716
41060
  });
40717
41061
  };
40718
41062
  const effectiveIsLatest = isLatestMessage && !hasUserResponded;
40719
- const fields = (0, import_react79.useMemo)(() => {
41063
+ const fields = (0, import_react80.useMemo)(() => {
40720
41064
  const baseFields = providedFields || generateFieldsFromData(data);
40721
41065
  const FIELD_ORDER = [
40722
41066
  "description",
@@ -40753,39 +41097,39 @@ var CampaignConceptCard = import_react79.default.memo(
40753
41097
  label: "Budget Allocation",
40754
41098
  renderDisplay: (val) => {
40755
41099
  if (!val)
40756
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
41100
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
40757
41101
  if (Array.isArray(val)) {
40758
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { className: "space-y-2", children: val.map((item, idx) => {
41102
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "space-y-2", children: val.map((item, idx) => {
40759
41103
  const label = item?.label ?? item?.key ?? `Item ${idx + 1}`;
40760
41104
  const value = item?.value ?? item;
40761
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { className: "flex items-center gap-2", children: [
40762
- /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("span", { className: "text-muted-foreground font-medium", children: [
41105
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "flex items-center gap-2", children: [
41106
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("span", { className: "text-muted-foreground font-medium", children: [
40763
41107
  idx + 1,
40764
41108
  "."
40765
41109
  ] }),
40766
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-0.5 text-cardText text-xs font-medium rounded-md", children: String(label) }),
40767
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-cardText", children: "=" }),
40768
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-1 text-cardText text-sm rounded-md font-grotesk font-medium", children: formatVal(value) })
41110
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-0.5 text-cardText text-xs font-medium rounded-md", children: String(label) }),
41111
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-cardText", children: "=" }),
41112
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-1 text-cardText text-sm rounded-md font-grotesk font-medium", children: formatVal(value) })
40769
41113
  ] }, idx);
40770
41114
  }) });
40771
41115
  }
40772
41116
  if (typeof val === "object") {
40773
41117
  const entries = Object.entries(val);
40774
41118
  if (entries.length === 0)
40775
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
40776
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { className: "space-y-2", children: entries.map(([k, v], idx) => /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { className: "flex items-center gap-2", children: [
40777
- /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("span", { className: "text-muted-foreground font-medium", children: [
41119
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
41120
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "space-y-2", children: entries.map(([k, v], idx) => /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "flex items-center gap-2", children: [
41121
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("span", { className: "text-muted-foreground font-medium", children: [
40778
41122
  idx + 1,
40779
41123
  "."
40780
41124
  ] }),
40781
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-0.5 text-cardText text-xs font-medium rounded-md", children: formatKey(k) }),
40782
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-cardText", children: "=" }),
40783
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-1 text-cardText text-sm rounded-md font-grotesk font-medium", children: formatVal(v) })
41125
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-0.5 text-cardText text-xs font-medium rounded-md", children: formatKey(k) }),
41126
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-cardText", children: "=" }),
41127
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "inline-flex items-center bg-black border border-cardBorder px-2 py-1 text-cardText text-sm rounded-md font-grotesk font-medium", children: formatVal(v) })
40784
41128
  ] }, k)) });
40785
41129
  }
40786
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-muted-foreground text-sm", children: String(val) });
41130
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-muted-foreground text-sm", children: String(val) });
40787
41131
  },
40788
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41132
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40789
41133
  Textarea,
40790
41134
  {
40791
41135
  value: typeof v === "object" ? Object.entries(v || {}).map(([k, val]) => `${k.replace(/_/g, " ")}: ${val}`).join("\n") : String(v || ""),
@@ -40810,8 +41154,8 @@ var CampaignConceptCard = import_react79.default.memo(
40810
41154
  return {
40811
41155
  ...field,
40812
41156
  label: "Geography",
40813
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(CountrySelectDisplay, { value: v }),
40814
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(CountrySelectEdit, { value: v, onChange })
41157
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(CountrySelectDisplay, { value: v }),
41158
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(CountrySelectEdit, { value: v, onChange })
40815
41159
  };
40816
41160
  }
40817
41161
  if (field.key === "estimatedCreators" || field.key === "estimated_creators") {
@@ -40820,11 +41164,11 @@ var CampaignConceptCard = import_react79.default.memo(
40820
41164
  label: "Estimated Creators",
40821
41165
  renderDisplay: (val) => {
40822
41166
  if (!val)
40823
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
41167
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
40824
41168
  const displayValue = typeof val === "object" && !Array.isArray(val) ? `${val.min ?? 0}-${val.max ?? 0}` : String(val);
40825
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-cardText text-sm", children: displayValue });
41169
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-cardText text-sm", children: displayValue });
40826
41170
  },
40827
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41171
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40828
41172
  Input,
40829
41173
  {
40830
41174
  value: typeof v === "object" ? `${v.min ?? 0}-${v.max ?? 0}` : String(v || ""),
@@ -40847,8 +41191,8 @@ var CampaignConceptCard = import_react79.default.memo(
40847
41191
  return {
40848
41192
  ...field,
40849
41193
  label: field.label || "Primary KPI",
40850
- renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-cardText text-sm", children: val ? String(val) : "-" }),
40851
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41194
+ renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-cardText text-sm", children: val ? String(val) : "-" }),
41195
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40852
41196
  Input,
40853
41197
  {
40854
41198
  value: String(v || ""),
@@ -40865,9 +41209,9 @@ var CampaignConceptCard = import_react79.default.memo(
40865
41209
  label: field.label || "Secondary KPIs",
40866
41210
  renderDisplay: (val) => {
40867
41211
  const display = Array.isArray(val) ? val.map(String).join(", ") : val ? String(val) : "-";
40868
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-cardText text-sm", children: display });
41212
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-cardText text-sm", children: display });
40869
41213
  },
40870
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41214
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40871
41215
  Textarea,
40872
41216
  {
40873
41217
  value: Array.isArray(v) ? v.join(", ") : String(v || ""),
@@ -40884,15 +41228,15 @@ var CampaignConceptCard = import_react79.default.memo(
40884
41228
  if (field.key === "platforms" || field.key === "target_platforms" || field.key === "targetPlatforms") {
40885
41229
  return {
40886
41230
  ...field,
40887
- renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(PlatformSelectDisplay, { value: v }),
40888
- renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(PlatformSelectEdit, { value: v, onChange })
41231
+ renderDisplay: (v) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(PlatformSelectDisplay, { value: v }),
41232
+ renderEdit: (v, onChange) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(PlatformSelectEdit, { value: v, onChange })
40889
41233
  };
40890
41234
  }
40891
41235
  if (field.key === "description" || field.key === "creator_strategy" || field.key === "creatorStrategy") {
40892
41236
  return {
40893
41237
  ...field,
40894
41238
  type: "textarea",
40895
- renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-cardText text-sm leading-relaxed", children: val ? String(val) : "-" })
41239
+ renderDisplay: (val) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-cardText text-sm leading-relaxed", children: val ? String(val) : "-" })
40896
41240
  };
40897
41241
  }
40898
41242
  return {
@@ -40900,10 +41244,10 @@ var CampaignConceptCard = import_react79.default.memo(
40900
41244
  renderDisplay: (val) => {
40901
41245
  if (Array.isArray(val)) {
40902
41246
  if (val.length === 0)
40903
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
40904
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: val.map((item, idx) => {
41247
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-muted-foreground text-sm", children: "-" });
41248
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "flex flex-wrap gap-2 pt-1", children: val.map((item, idx) => {
40905
41249
  const label = typeof item === "object" && item !== null ? item.label || item.value || item.name || JSON.stringify(item) : String(item);
40906
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41250
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40907
41251
  "span",
40908
41252
  {
40909
41253
  className: "inline-flex items-center bg-black border border-cardBorder px-2 py-0.5 text-cardText text-xs font-medium rounded-md",
@@ -40914,14 +41258,14 @@ var CampaignConceptCard = import_react79.default.memo(
40914
41258
  }) });
40915
41259
  }
40916
41260
  if (typeof val === "object" && val !== null) {
40917
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { className: "text-muted-foreground text-xs font-mono bg-paperBackground p-2 rounded mt-1 overflow-auto max-h-24", children: Object.entries(val).map(([k, v]) => `${k.replace(/_/g, " ")}: ${v}`).join("\n") });
41261
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "text-muted-foreground text-xs font-mono bg-paperBackground p-2 rounded mt-1 overflow-auto max-h-24", children: Object.entries(val).map(([k, v]) => `${k.replace(/_/g, " ")}: ${v}`).join("\n") });
40918
41262
  }
40919
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-cardText text-sm", children: val !== void 0 && val !== null ? String(val) : "-" });
41263
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-cardText text-sm", children: val !== void 0 && val !== null ? String(val) : "-" });
40920
41264
  }
40921
41265
  };
40922
41266
  });
40923
41267
  }, [providedFields, data]);
40924
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)(
41268
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(
40925
41269
  "div",
40926
41270
  {
40927
41271
  className: cn(
@@ -40930,31 +41274,31 @@ var CampaignConceptCard = import_react79.default.memo(
40930
41274
  className
40931
41275
  ),
40932
41276
  children: [
40933
- /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)(
41277
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(
40934
41278
  "div",
40935
41279
  {
40936
41280
  className: "px-4 py-2.5 relative flex items-center justify-between cursor-pointer select-none",
40937
41281
  onClick: handleToggle,
40938
41282
  children: [
40939
- /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { className: "flex-1", children: [
40940
- /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("h3", { className: "text-cardText font-semibold text-sm", children: [
41283
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "flex-1", children: [
41284
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("h3", { className: "text-cardText font-semibold text-sm", children: [
40941
41285
  "Concept ",
40942
41286
  index !== void 0 ? index : "",
40943
41287
  " :",
40944
41288
  " ",
40945
41289
  typeof cardTitle === "object" ? JSON.stringify(cardTitle) : String(cardTitle)
40946
41290
  ] }),
40947
- /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { className: "flex flex-wrap gap-2", children: [
40948
- isRecommended && /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-[10px] font-semibold uppercase tracking-widest text-gold", children: "Recommended" }),
40949
- !effectiveIsLatest && selectionStatus && /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { className: "text-[10px] font-semibold uppercase tracking-widest text-gold", children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by You" })
41291
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "flex flex-wrap gap-2", children: [
41292
+ isRecommended && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-[10px] font-semibold uppercase tracking-widest text-gold", children: "Recommended" }),
41293
+ !effectiveIsLatest && selectionStatus && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: "text-[10px] font-semibold uppercase tracking-widest text-gold", children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by You" })
40950
41294
  ] })
40951
41295
  ] }),
40952
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41296
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40953
41297
  "div",
40954
41298
  {
40955
41299
  className: "flex items-center gap-2 ml-3",
40956
41300
  onClick: (e) => e.stopPropagation(),
40957
- children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41301
+ children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40958
41302
  "button",
40959
41303
  {
40960
41304
  onClick: (e) => {
@@ -40965,7 +41309,7 @@ var CampaignConceptCard = import_react79.default.memo(
40965
41309
  className: "p-2 bg-cardSurface hover:bg-gray200 text-cardText rounded-lg",
40966
41310
  "aria-label": isOpen ? "Collapse" : "Expand",
40967
41311
  title: isOpen ? "Collapse" : "Expand",
40968
- children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41312
+ children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40969
41313
  ChevronDown,
40970
41314
  {
40971
41315
  className: `h-4 w-4 transition-transform ${isOpen ? "rotate-0" : "-rotate-90"}`
@@ -40978,7 +41322,7 @@ var CampaignConceptCard = import_react79.default.memo(
40978
41322
  ]
40979
41323
  }
40980
41324
  ),
40981
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(import_framer_motion.AnimatePresence, { initial: false, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41325
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_framer_motion.AnimatePresence, { initial: false, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40982
41326
  import_framer_motion.motion.div,
40983
41327
  {
40984
41328
  initial: { height: 0, opacity: 0 },
@@ -40986,8 +41330,8 @@ var CampaignConceptCard = import_react79.default.memo(
40986
41330
  exit: { height: 0, opacity: 0 },
40987
41331
  transition: { duration: 0.2, ease: "easeIn" },
40988
41332
  className: "overflow-hidden",
40989
- children: /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { className: "px-3 py-2 w-full relative", children: [
40990
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41333
+ children: /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "px-3 py-2 w-full relative", children: [
41334
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
40991
41335
  "div",
40992
41336
  {
40993
41337
  className: "absolute left-[48px] top-[70px] bottom-[40px] w-[2px]",
@@ -40996,7 +41340,7 @@ var CampaignConceptCard = import_react79.default.memo(
40996
41340
  }
40997
41341
  }
40998
41342
  ),
40999
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
41343
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
41000
41344
  FormCard,
41001
41345
  {
41002
41346
  ...formCardProps,
@@ -41010,9 +41354,9 @@ var CampaignConceptCard = import_react79.default.memo(
41010
41354
  hideTitle: true,
41011
41355
  hideCopyButton: true,
41012
41356
  className: "bg-transparent border-none shadow-none mb-0 p-0",
41013
- footer: !effectiveIsLatest && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)("div", { className: "flex justify-end items-center gap-1 text-green-600 text-[10px] font-semibold py-2 pr-4", children: [
41014
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(CircleCheck, { className: "h-3.5 w-3.5" }),
41015
- /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("span", { children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by You" })
41357
+ footer: !effectiveIsLatest && selectionStatus ? /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "flex justify-end items-center gap-1 text-green-600 text-[10px] font-semibold py-2 pr-4", children: [
41358
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(CircleCheck, { className: "h-3.5 w-3.5" }),
41359
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by You" })
41016
41360
  ] }) : formCardProps.footer
41017
41361
  }
41018
41362
  )
@@ -41028,14 +41372,14 @@ var CampaignConceptCard = import_react79.default.memo(
41028
41372
  CampaignConceptCard.displayName = "CampaignConceptCard";
41029
41373
 
41030
41374
  // src/molecules/creator-discovery/CreatorWidget/CreatorWidget.tsx
41031
- var import_react87 = require("react");
41375
+ var import_react88 = require("react");
41032
41376
 
41033
41377
  // src/molecules/creator-discovery/CreatorWidget/CreatorImageList.tsx
41034
- var import_react80 = require("react");
41035
- var import_jsx_runtime162 = require("react/jsx-runtime");
41378
+ var import_react81 = require("react");
41379
+ var import_jsx_runtime163 = require("react/jsx-runtime");
41036
41380
  function useMediaQuery(query) {
41037
- const [matches, setMatches] = (0, import_react80.useState)(false);
41038
- (0, import_react80.useEffect)(() => {
41381
+ const [matches, setMatches] = (0, import_react81.useState)(false);
41382
+ (0, import_react81.useEffect)(() => {
41039
41383
  const media = window.matchMedia(query);
41040
41384
  const listener = () => setMatches(media.matches);
41041
41385
  listener();
@@ -41053,8 +41397,8 @@ function CreatorImage({
41053
41397
  const processedCount = Math.floor(creatorsPercentage / 100 * totalCreators);
41054
41398
  const isProcessed = idx < processedCount;
41055
41399
  const isCurrentlyProcessing = idx === processedCount;
41056
- return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "relative w-8 h-8", children: [
41057
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
41400
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { className: "relative w-8 h-8", children: [
41401
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
41058
41402
  "img",
41059
41403
  {
41060
41404
  src: img,
@@ -41062,9 +41406,9 @@ function CreatorImage({
41062
41406
  className: `w-8 h-8 rounded-full border-2 ${isProcessed ? "border-green-600" : "border-foreground"} object-cover transition-all duration-300`
41063
41407
  }
41064
41408
  ),
41065
- !isProcessed && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "absolute inset-0 bg-black/50 rounded-full pointer-events-none" }),
41066
- isCurrentlyProcessing && /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_jsx_runtime162.Fragment, { children: [
41067
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
41409
+ !isProcessed && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "absolute inset-0 bg-black/50 rounded-full pointer-events-none" }),
41410
+ isCurrentlyProcessing && /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(import_jsx_runtime163.Fragment, { children: [
41411
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
41068
41412
  "div",
41069
41413
  {
41070
41414
  className: "absolute inset-0 bg-black/50 rounded-full pointer-events-none",
@@ -41080,7 +41424,7 @@ function CreatorImage({
41080
41424
  }
41081
41425
  }
41082
41426
  ),
41083
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "absolute inset-0 rounded-full border-2 border-[#9CA3AF]/30 pointer-events-none" })
41427
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "absolute inset-0 rounded-full border-2 border-[#9CA3AF]/30 pointer-events-none" })
41084
41428
  ] })
41085
41429
  ] });
41086
41430
  }
@@ -41093,8 +41437,8 @@ function CreatorImageList({
41093
41437
  const isMobile = useMediaQuery("(max-width: 640px)");
41094
41438
  const isTablet = useMediaQuery("(min-width: 641px) and (max-width: 1024px)");
41095
41439
  const visibleCount = isMobile ? 7 : isTablet ? 10 : isAgentOutput ? 6 : 15;
41096
- return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: "flex flex-nowrap sm:flex-wrap -space-x-2 w-fit", children: [
41097
- creatorImages.slice(0, visibleCount).map((img, idx) => /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
41440
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { className: "flex flex-nowrap sm:flex-wrap -space-x-2 w-fit", children: [
41441
+ creatorImages.slice(0, visibleCount).map((img, idx) => /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
41098
41442
  CreatorImage,
41099
41443
  {
41100
41444
  img,
@@ -41104,7 +41448,7 @@ function CreatorImageList({
41104
41448
  },
41105
41449
  idx
41106
41450
  )),
41107
- creatorLength > visibleCount && /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(
41451
+ creatorLength > visibleCount && /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(
41108
41452
  "div",
41109
41453
  {
41110
41454
  className: `relative w-8 h-8 rounded-full text-white flex items-center justify-center text-sm font-medium border-2 ${initialCreatorsPercentage === 100 ? "border-green-600 bg-sliderFill" : "border-foreground bg-black/50"}`,
@@ -41118,28 +41462,28 @@ function CreatorImageList({
41118
41462
  }
41119
41463
 
41120
41464
  // src/molecules/creator-discovery/CreatorWidget/CreatorProgressBar.tsx
41121
- var import_react81 = require("react");
41465
+ var import_react82 = require("react");
41122
41466
  var import_framer_motion2 = require("framer-motion");
41123
- var import_jsx_runtime163 = require("react/jsx-runtime");
41467
+ var import_jsx_runtime164 = require("react/jsx-runtime");
41124
41468
  function truncateName(name, maxLength) {
41125
41469
  if (!name || name.length <= maxLength) return name || "";
41126
41470
  return name.substring(0, maxLength) + "...";
41127
41471
  }
41128
41472
  function ProgressBar({ overallPercentage }) {
41129
- const [showTooltip, setShowTooltip] = (0, import_react81.useState)(true);
41130
- (0, import_react81.useEffect)(() => {
41473
+ const [showTooltip, setShowTooltip] = (0, import_react82.useState)(true);
41474
+ (0, import_react82.useEffect)(() => {
41131
41475
  if (overallPercentage && overallPercentage >= 100) {
41132
41476
  setShowTooltip(false);
41133
41477
  }
41134
41478
  }, [overallPercentage]);
41135
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "relative w-full", children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "md:w-full dark:bg-purple500 bg-gray-200 rounded-full h-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
41479
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "relative w-full", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "md:w-full dark:bg-purple500 bg-gray-200 rounded-full h-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
41136
41480
  import_framer_motion2.motion.div,
41137
41481
  {
41138
41482
  className: "bg-purple100 h-[6px] rounded-full relative",
41139
41483
  initial: { width: 0 },
41140
41484
  animate: { width: `${overallPercentage}%` },
41141
41485
  transition: { duration: 0.5, ease: "easeOut" },
41142
- children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_framer_motion2.AnimatePresence, { children: showTooltip && /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(
41486
+ children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_framer_motion2.AnimatePresence, { children: showTooltip && /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)(
41143
41487
  import_framer_motion2.motion.div,
41144
41488
  {
41145
41489
  initial: { opacity: 0, y: 5 },
@@ -41149,9 +41493,9 @@ function ProgressBar({ overallPercentage }) {
41149
41493
  children: [
41150
41494
  overallPercentage ? Math.round(overallPercentage) : 0,
41151
41495
  "%",
41152
- /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { className: "absolute left-1/2 top-full -translate-x-1/2", children: [
41153
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-transparent border-t-gray300" }),
41154
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "absolute left-1/2 top-[-1px] -translate-x-1/2 w-0 h-0 border-l-[5px] border-r-[5px] border-t-[5px] border-transparent border-t-gray50" })
41496
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "absolute left-1/2 top-full -translate-x-1/2", children: [
41497
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-transparent border-t-gray300" }),
41498
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "absolute left-1/2 top-[-1px] -translate-x-1/2 w-0 h-0 border-l-[5px] border-r-[5px] border-t-[5px] border-transparent border-t-gray50" })
41155
41499
  ] })
41156
41500
  ]
41157
41501
  }
@@ -41163,38 +41507,38 @@ function CreatorProgressBar({
41163
41507
  statusDetails,
41164
41508
  timeRemaining: _timeRemaining
41165
41509
  }) {
41166
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { children: [
41167
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ProgressBar, { overallPercentage: statusDetails?.overall_percentage }),
41168
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "dark:text-gray400 text-gray-500 text-xs mt-2", children: (statusDetails?.overall_percentage ?? 0) < 100 && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("span", { children: statusDetails?.thinking_message ? truncateName(statusDetails.thinking_message, 200) : "Processing..." }) })
41510
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { children: [
41511
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(ProgressBar, { overallPercentage: statusDetails?.overall_percentage }),
41512
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "dark:text-gray400 text-gray-500 text-xs mt-2", children: (statusDetails?.overall_percentage ?? 0) < 100 && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("span", { children: statusDetails?.thinking_message ? truncateName(statusDetails.thinking_message, 200) : "Processing..." }) })
41169
41513
  ] });
41170
41514
  }
41171
41515
 
41172
41516
  // src/molecules/creator-discovery/CreatorWidget/CreatorWidgetSkeleton.tsx
41173
- var import_jsx_runtime164 = require("react/jsx-runtime");
41517
+ var import_jsx_runtime165 = require("react/jsx-runtime");
41174
41518
  function CreatorWidgetSkeleton() {
41175
- return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "bg-background dark:bg-gray50 rounded-[25px] border border-gray300 overflow-hidden shadow-sm w-full relative", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "p-4 md:p-6 space-y-4", children: [
41176
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "flex flex-col md:flex-row md:items-center md:justify-between gap-4 relative", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "flex flex-col gap-2 md:gap-4", children: [
41177
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "w-40 h-6 bg-purple200 rounded-md animate-pulse" }),
41178
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "w-64 h-7 bg-gray200 dark:bg-gray300 rounded animate-pulse" })
41519
+ return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "bg-background dark:bg-gray50 rounded-[25px] border border-gray300 overflow-hidden shadow-sm w-full relative", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "p-4 md:p-6 space-y-4", children: [
41520
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "flex flex-col md:flex-row md:items-center md:justify-between gap-4 relative", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col gap-2 md:gap-4", children: [
41521
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "w-40 h-6 bg-purple200 rounded-md animate-pulse" }),
41522
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "w-64 h-7 bg-gray200 dark:bg-gray300 rounded animate-pulse" })
41179
41523
  ] }) }),
41180
- /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "bg-paperBackground rounded-lg px-3 md:px-4 py-4 md:py-5 flex flex-col md:flex-row md:items-center md:justify-between gap-4 md:gap-0", children: [
41181
- /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "flex flex-col gap-4 md:gap-6 min-w-0", children: [
41182
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "flex -space-x-2", children: Array.from({ length: 10 }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
41524
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "bg-paperBackground rounded-lg px-3 md:px-4 py-4 md:py-5 flex flex-col md:flex-row md:items-center md:justify-between gap-4 md:gap-0", children: [
41525
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col gap-4 md:gap-6 min-w-0", children: [
41526
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "flex -space-x-2", children: Array.from({ length: 10 }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
41183
41527
  "div",
41184
41528
  {
41185
41529
  className: "w-8 h-8 md:w-10 md:h-10 rounded-full border-2 border-gray300 bg-gray200 animate-pulse"
41186
41530
  },
41187
41531
  idx
41188
41532
  )) }),
41189
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "space-y-2", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "w-full max-w-xs bg-gray200 rounded-full h-2 animate-pulse" }) })
41533
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "space-y-2", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "w-full max-w-xs bg-gray200 rounded-full h-2 animate-pulse" }) })
41190
41534
  ] }),
41191
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "px-6 py-2 bg-gray200 rounded-[30px] animate-pulse h-10 w-48" })
41535
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "px-6 py-2 bg-gray200 rounded-[30px] animate-pulse h-10 w-48" })
41192
41536
  ] })
41193
41537
  ] }) });
41194
41538
  }
41195
41539
 
41196
41540
  // src/molecules/creator-discovery/CreatorWidget/CreatorCompactView.tsx
41197
- var import_jsx_runtime165 = require("react/jsx-runtime");
41541
+ var import_jsx_runtime166 = require("react/jsx-runtime");
41198
41542
  function CreatorCompactView({
41199
41543
  versions,
41200
41544
  selectedVersion,
@@ -41211,16 +41555,16 @@ function CreatorCompactView({
41211
41555
  const isComplete = versionStatus === "completed" || versionStatus === "complete";
41212
41556
  const statusTitle = isComplete ? "Creator Search Complete" : versionStatus === "failed" ? "Creator Search Failed" : "Creator Search Processing";
41213
41557
  if (isLoading) {
41214
- return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(CreatorWidgetSkeleton, {});
41558
+ return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(CreatorWidgetSkeleton, {});
41215
41559
  }
41216
- return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "bg-background dark:bg-gray100 rounded-[25px] border border-gray300 overflow-hidden shadow-sm w-full relative", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "p-4 md:p-6 space-y-4", children: [
41217
- /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col md:flex-row md:items-center md:justify-between gap-4 relative", children: [
41218
- /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col gap-2 md:gap-4", children: [
41219
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("h4", { className: "w-fit rounded-md bg-purple200 px-2 py-[4px] text-xs font-medium text-purpleText", children: "VERIFIED CREATORS LIST" }),
41220
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("h3", { className: "text-gray900 md:text-lg font-bold", children: statusTitle })
41560
+ return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "bg-background dark:bg-gray100 rounded-[25px] border border-gray300 overflow-hidden shadow-sm w-full relative", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "p-4 md:p-6 space-y-4", children: [
41561
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "flex flex-col md:flex-row md:items-center md:justify-between gap-4 relative", children: [
41562
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "flex flex-col gap-2 md:gap-4", children: [
41563
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("h4", { className: "w-fit rounded-md bg-purple200 px-2 py-[4px] text-xs font-medium text-purpleText", children: "VERIFIED CREATORS LIST" }),
41564
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("h3", { className: "text-gray900 md:text-lg font-bold", children: statusTitle })
41221
41565
  ] }),
41222
- versions.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "relative md:self-start", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(DropdownMenu, { children: [
41223
- /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
41566
+ versions.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "relative md:self-start", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(DropdownMenu, { children: [
41567
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
41224
41568
  DropdownMenuTrigger,
41225
41569
  {
41226
41570
  disabled: !isComplete,
@@ -41228,11 +41572,11 @@ function CreatorCompactView({
41228
41572
  children: [
41229
41573
  "Version ",
41230
41574
  selectedVersion ?? "-",
41231
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(ChevronDown, { className: "w-3 h-3 md:w-4 md:h-4 transition-transform" })
41575
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(ChevronDown, { className: "w-3 h-3 md:w-4 md:h-4 transition-transform" })
41232
41576
  ]
41233
41577
  }
41234
41578
  ),
41235
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(DropdownMenuContent, { className: "bg-gray25 border-2 border-gray400 min-w-[120px] max-h-[150px] overflow-y-auto", children: versions.map((v) => /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
41579
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(DropdownMenuContent, { className: "bg-gray25 border-2 border-gray400 min-w-[120px] max-h-[150px] overflow-y-auto", children: versions.map((v) => /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
41236
41580
  DropdownMenuItem,
41237
41581
  {
41238
41582
  onClick: () => onVersionSelect(v),
@@ -41246,12 +41590,12 @@ function CreatorCompactView({
41246
41590
  )) })
41247
41591
  ] }) })
41248
41592
  ] }),
41249
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("div", { className: "bg-paperBackground rounded-lg px-3 md:px-4 py-4 md:py-5 flex flex-col md:flex-row md:items-center md:justify-between gap-4 md:gap-0", children: versionStatus === "failed" ? /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col items-center justify-center w-full py-6 md:py-8 text-center text-red-500", children: [
41250
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("p", { className: "text-base md:text-lg font-semibold mb-2", children: "Creator Search Failed" }),
41251
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("p", { className: "text-xs md:text-sm text-gray600 px-2", children: "Something went wrong while fetching creators. Please try again later or regenerate a new version." })
41252
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(import_jsx_runtime165.Fragment, { children: [
41253
- /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col gap-4 md:gap-6 min-w-0", children: [
41254
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
41593
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "bg-paperBackground rounded-lg px-3 md:px-4 py-4 md:py-5 flex flex-col md:flex-row md:items-center md:justify-between gap-4 md:gap-0", children: versionStatus === "failed" ? /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "flex flex-col items-center justify-center w-full py-6 md:py-8 text-center text-red-500", children: [
41594
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("p", { className: "text-base md:text-lg font-semibold mb-2", children: "Creator Search Failed" }),
41595
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("p", { className: "text-xs md:text-sm text-gray600 px-2", children: "Something went wrong while fetching creators. Please try again later or regenerate a new version." })
41596
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(import_jsx_runtime166.Fragment, { children: [
41597
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "flex flex-col gap-4 md:gap-6 min-w-0", children: [
41598
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
41255
41599
  CreatorImageList,
41256
41600
  {
41257
41601
  creatorImages,
@@ -41260,7 +41604,7 @@ function CreatorCompactView({
41260
41604
  initialCreatorsPercentage: statusDetails?.social_fetch_percentage
41261
41605
  }
41262
41606
  ),
41263
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
41607
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
41264
41608
  CreatorProgressBar,
41265
41609
  {
41266
41610
  statusDetails,
@@ -41268,7 +41612,7 @@ function CreatorCompactView({
41268
41612
  }
41269
41613
  )
41270
41614
  ] }),
41271
- /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
41615
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
41272
41616
  "button",
41273
41617
  {
41274
41618
  className: `px-4 py-2 text-xs md:text-sm rounded-[30px] shadow flex items-center justify-center gap-2 w-full md:w-auto md:flex-shrink-0 whitespace-nowrap ${!isComplete ? "bg-gray300 text-gray500 border-2 border-gray300 cursor-not-allowed" : "bg-purpleLight dark:bg-purple200 text-purpleText2 dark:text-purpleText border-2 border-purple100 cursor-pointer hover:bg-purpleText1 dark:hover:bg-purple100 dark:hover:text-background"}`,
@@ -41278,7 +41622,7 @@ function CreatorCompactView({
41278
41622
  "View ",
41279
41623
  creatorLength,
41280
41624
  " Verified Creators",
41281
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(Triangle, { className: "w-3 h-3 md:w-4 md:h-4 rotate-90 font-bold" })
41625
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Triangle, { className: "w-3 h-3 md:w-4 md:h-4 rotate-90 font-bold" })
41282
41626
  ]
41283
41627
  }
41284
41628
  )
@@ -41287,7 +41631,7 @@ function CreatorCompactView({
41287
41631
  }
41288
41632
 
41289
41633
  // src/molecules/creator-discovery/CreatorWidget/CreatorExpandedPanel.tsx
41290
- var import_react85 = require("react");
41634
+ var import_react86 = require("react");
41291
41635
  var import_react_dom2 = __toESM(require("react-dom"), 1);
41292
41636
  var import_framer_motion5 = require("framer-motion");
41293
41637
 
@@ -41569,7 +41913,7 @@ var normalizeToIso2 = (input) => {
41569
41913
  };
41570
41914
 
41571
41915
  // src/molecules/creator-discovery/CreatorWidget/EngagedAudienceDemographics.tsx
41572
- var import_jsx_runtime166 = require("react/jsx-runtime");
41916
+ var import_jsx_runtime167 = require("react/jsx-runtime");
41573
41917
  function EngagedAudienceDemographics({
41574
41918
  audienceDemographics
41575
41919
  }) {
@@ -41587,31 +41931,31 @@ function EngagedAudienceDemographics({
41587
41931
  if (hasAges) columns.push("1fr");
41588
41932
  if (hasGenders) columns.push("0.4fr");
41589
41933
  const gridTemplate = columns.join(" ");
41590
- return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "flex flex-col gap-4", children: [
41591
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "text-purpleText text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: "ENGAGED AUDIENCE" }) }),
41592
- /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
41934
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { className: "flex flex-col gap-4", children: [
41935
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "text-purpleText text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: "ENGAGED AUDIENCE" }) }),
41936
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
41593
41937
  "div",
41594
41938
  {
41595
41939
  className: "flex flex-col sm:col-span-3 sm:grid gap-6",
41596
41940
  style: { gridTemplateColumns: gridTemplate },
41597
41941
  children: [
41598
- hasCities && /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { children: [
41599
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("h4", { className: "text-xs text-gray700 mb-3", children: "Cities" }),
41600
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex flex-col gap-3", children: Object.entries(audienceDemographics?.cities || {}).map(
41601
- ([code, value]) => /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
41942
+ hasCities && /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { children: [
41943
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("h4", { className: "text-xs text-gray700 mb-3", children: "Cities" }),
41944
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex flex-col gap-3", children: Object.entries(audienceDemographics?.cities || {}).map(
41945
+ ([code, value]) => /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
41602
41946
  "div",
41603
41947
  {
41604
41948
  className: "flex items-center gap-3 text-sm text-gray700",
41605
41949
  children: [
41606
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "w-[90px]", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex gap-1 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { children: code.split(",")[0] }) }) }),
41607
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex-1 bg-gray200 h-[6px] rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
41950
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "w-[90px]", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex gap-1 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { children: code.split(",")[0] }) }) }),
41951
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex-1 bg-gray200 h-[6px] rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
41608
41952
  "div",
41609
41953
  {
41610
41954
  className: "h-[6px] bg-purple100 rounded-full",
41611
41955
  style: { width: `${value}%` }
41612
41956
  }
41613
41957
  ) }),
41614
- /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("span", { className: "w-10 text-right font-medium", children: [
41958
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("span", { className: "w-10 text-right font-medium", children: [
41615
41959
  value,
41616
41960
  "%"
41617
41961
  ] })
@@ -41621,29 +41965,29 @@ function EngagedAudienceDemographics({
41621
41965
  )
41622
41966
  ) })
41623
41967
  ] }),
41624
- hasCountries && /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { children: [
41625
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("h4", { className: "text-xs text-gray700 mb-3", children: "Countries" }),
41626
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex flex-col gap-3", children: Object.entries(audienceDemographics?.countries || {}).map(
41968
+ hasCountries && /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { children: [
41969
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("h4", { className: "text-xs text-gray700 mb-3", children: "Countries" }),
41970
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex flex-col gap-3", children: Object.entries(audienceDemographics?.countries || {}).map(
41627
41971
  ([code, value]) => {
41628
41972
  const iso2 = normalizeToIso2(code);
41629
41973
  const meta = codeToMeta[iso2];
41630
- return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
41974
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
41631
41975
  "div",
41632
41976
  {
41633
41977
  className: "flex items-center gap-3 text-sm text-gray700",
41634
41978
  children: [
41635
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "w-10", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "flex gap-1 items-center", children: [
41636
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "text-base", children: meta?.flag }),
41637
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { children: code })
41979
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "w-10", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { className: "flex gap-1 items-center", children: [
41980
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "text-base", children: meta?.flag }),
41981
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { children: code })
41638
41982
  ] }) }),
41639
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex-1 bg-gray200 h-[6px] rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
41983
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex-1 bg-gray200 h-[6px] rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
41640
41984
  "div",
41641
41985
  {
41642
41986
  className: "h-[6px] bg-purple100 rounded-full",
41643
41987
  style: { width: `${value}%` }
41644
41988
  }
41645
41989
  ) }),
41646
- /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("span", { className: "w-10 text-right font-medium", children: [
41990
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("span", { className: "w-10 text-right font-medium", children: [
41647
41991
  value,
41648
41992
  "%"
41649
41993
  ] })
@@ -41654,23 +41998,23 @@ function EngagedAudienceDemographics({
41654
41998
  }
41655
41999
  ) })
41656
42000
  ] }),
41657
- hasAges && /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { children: [
41658
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("h4", { className: "text-xs text-gray700 mb-3", children: "Ages" }),
41659
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex flex-col gap-3", children: Object.entries(audienceDemographics?.ages || {}).map(
41660
- ([ageRange, value]) => /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
42001
+ hasAges && /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { children: [
42002
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("h4", { className: "text-xs text-gray700 mb-3", children: "Ages" }),
42003
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex flex-col gap-3", children: Object.entries(audienceDemographics?.ages || {}).map(
42004
+ ([ageRange, value]) => /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
41661
42005
  "div",
41662
42006
  {
41663
42007
  className: "flex items-center gap-3 text-sm text-gray700",
41664
42008
  children: [
41665
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "w-12", children: ageRange }),
41666
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex-1 bg-gray200 h-[6px] rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
42009
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "w-12", children: ageRange }),
42010
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex-1 bg-gray200 h-[6px] rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
41667
42011
  "div",
41668
42012
  {
41669
42013
  className: "h-[6px] bg-purple100 rounded-full",
41670
42014
  style: { width: `${value}%` }
41671
42015
  }
41672
42016
  ) }),
41673
- /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("span", { className: "w-10 text-right font-medium", children: [
42017
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("span", { className: "w-10 text-right font-medium", children: [
41674
42018
  value,
41675
42019
  "%"
41676
42020
  ] })
@@ -41680,20 +42024,20 @@ function EngagedAudienceDemographics({
41680
42024
  )
41681
42025
  ) })
41682
42026
  ] }),
41683
- hasGenders && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex flex-col justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "flex sm:flex-col gap-3", children: Object.entries(audienceDemographics?.genders || {}).map(
41684
- ([gender, value]) => /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
42027
+ hasGenders && /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex flex-col justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "flex sm:flex-col gap-3", children: Object.entries(audienceDemographics?.genders || {}).map(
42028
+ ([gender, value]) => /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
41685
42029
  "div",
41686
42030
  {
41687
42031
  className: "flex flex-col justify-center text-sm",
41688
42032
  children: [
41689
- /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
41690
- gender === "female" ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Venus, { className: "text-red-500", strokeWidth: 3 }) : /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Mars, { className: "text-blue-500", strokeWidth: 3 }),
41691
- /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("span", { className: "capitalize text-gray800 text-xl", children: [
42033
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
42034
+ gender === "female" ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Venus, { className: "text-red-500", strokeWidth: 3 }) : /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Mars, { className: "text-blue-500", strokeWidth: 3 }),
42035
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("span", { className: "capitalize text-gray800 text-xl", children: [
41692
42036
  value,
41693
42037
  "%"
41694
42038
  ] })
41695
42039
  ] }),
41696
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "text-lg text-gray700", children: gender.charAt(0).toUpperCase() + gender.slice(1) })
42040
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "text-lg text-gray700", children: gender.charAt(0).toUpperCase() + gender.slice(1) })
41697
42041
  ]
41698
42042
  },
41699
42043
  gender
@@ -41706,40 +42050,40 @@ function EngagedAudienceDemographics({
41706
42050
  }
41707
42051
 
41708
42052
  // src/molecules/creator-discovery/CreatorWidget/PlatformIcons.tsx
41709
- var import_jsx_runtime167 = require("react/jsx-runtime");
42053
+ var import_jsx_runtime168 = require("react/jsx-runtime");
41710
42054
  function InstagramIcon({ className }) {
41711
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
42055
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
41712
42056
  "svg",
41713
42057
  {
41714
42058
  className,
41715
42059
  viewBox: "0 0 24 24",
41716
42060
  fill: "currentColor",
41717
42061
  xmlns: "http://www.w3.org/2000/svg",
41718
- children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z" })
42062
+ children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z" })
41719
42063
  }
41720
42064
  );
41721
42065
  }
41722
42066
  function YouTubeIcon({ className }) {
41723
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
42067
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
41724
42068
  "svg",
41725
42069
  {
41726
42070
  className,
41727
42071
  viewBox: "0 0 24 24",
41728
42072
  fill: "currentColor",
41729
42073
  xmlns: "http://www.w3.org/2000/svg",
41730
- children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" })
42074
+ children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("path", { d: "M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" })
41731
42075
  }
41732
42076
  );
41733
42077
  }
41734
42078
  function TikTokIcon3({ className }) {
41735
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
42079
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
41736
42080
  "svg",
41737
42081
  {
41738
42082
  className,
41739
42083
  viewBox: "0 0 24 24",
41740
42084
  fill: "currentColor",
41741
42085
  xmlns: "http://www.w3.org/2000/svg",
41742
- children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z" })
42086
+ children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("path", { d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z" })
41743
42087
  }
41744
42088
  );
41745
42089
  }
@@ -41773,8 +42117,8 @@ function getPlatformIconColor(platform) {
41773
42117
  }
41774
42118
 
41775
42119
  // src/molecules/creator-discovery/CreatorWidget/PostCard.tsx
41776
- var import_react82 = require("react");
41777
- var import_jsx_runtime168 = require("react/jsx-runtime");
42120
+ var import_react83 = require("react");
42121
+ var import_jsx_runtime169 = require("react/jsx-runtime");
41778
42122
  var formatFollowerCount = (count) => {
41779
42123
  if (count >= 1e6) {
41780
42124
  const millions = count / 1e6;
@@ -41787,15 +42131,15 @@ var formatFollowerCount = (count) => {
41787
42131
  return Math.floor(count).toString();
41788
42132
  };
41789
42133
  function PostCard({ post, platformUsername }) {
41790
- const [expanded, setExpanded] = (0, import_react82.useState)(false);
41791
- const [errored, setErrored] = (0, import_react82.useState)(false);
42134
+ const [expanded, setExpanded] = (0, import_react83.useState)(false);
42135
+ const [errored, setErrored] = (0, import_react83.useState)(false);
41792
42136
  const thumbnail = post.thumbnail_url || post.thumbnail || post.image || "";
41793
42137
  const likes = post.engagement?.likes ?? post.likes ?? null;
41794
42138
  const comments = post.engagement?.comments ?? post.comments ?? null;
41795
42139
  const views = post.engagement?.views ?? post.engagement?.plays ?? post.views ?? post.plays ?? null;
41796
42140
  const impressions = post.impressions ?? null;
41797
42141
  const reach = post.reach ?? null;
41798
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(
42142
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(
41799
42143
  "div",
41800
42144
  {
41801
42145
  className: "rounded-xl overflow-hidden border border-gray500 bg-transparent shadow-sm cursor-pointer",
@@ -41804,7 +42148,7 @@ function PostCard({ post, platformUsername }) {
41804
42148
  window.open(post.url, "_blank", "noopener,noreferrer");
41805
42149
  },
41806
42150
  children: [
41807
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: "w-full aspect-square relative bg-gray25", children: thumbnail && !errored ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
42151
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "w-full aspect-square relative bg-gray25", children: thumbnail && !errored ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
41808
42152
  "img",
41809
42153
  {
41810
42154
  src: thumbnail,
@@ -41812,55 +42156,55 @@ function PostCard({ post, platformUsername }) {
41812
42156
  className: "w-full h-full object-cover",
41813
42157
  onError: () => setErrored(true)
41814
42158
  }
41815
- ) : /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: "w-full h-full flex items-center justify-center text-gray500 text-sm", children: "No preview" }) }),
41816
- /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "p-3", children: [
41817
- /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "flex items-center gap-4 text-sm text-gray600 mb-2", children: [
41818
- likes !== null && /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "flex items-center gap-1", children: [
41819
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { children: formatFollowerCount(likes) }),
42159
+ ) : /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "w-full h-full flex items-center justify-center text-gray500 text-sm", children: "No preview" }) }),
42160
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "p-3", children: [
42161
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex items-center gap-4 text-sm text-gray600 mb-2", children: [
42162
+ likes !== null && /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex items-center gap-1", children: [
42163
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { children: formatFollowerCount(likes) }),
41820
42164
  " ",
41821
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Heart, { size: 14 })
42165
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(Heart, { size: 14 })
41822
42166
  ] }),
41823
- comments !== null && /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "flex items-center gap-1", children: [
41824
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { children: formatFollowerCount(comments) }),
42167
+ comments !== null && /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex items-center gap-1", children: [
42168
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { children: formatFollowerCount(comments) }),
41825
42169
  " ",
41826
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(MessageCircle, { size: 14 })
42170
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(MessageCircle, { size: 14 })
41827
42171
  ] }),
41828
- views !== null && /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "flex items-center gap-1", children: [
41829
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { children: formatFollowerCount(views) }),
42172
+ views !== null && /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex items-center gap-1", children: [
42173
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { children: formatFollowerCount(views) }),
41830
42174
  " ",
41831
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Eye, { size: 14 })
42175
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(Eye, { size: 14 })
41832
42176
  ] })
41833
42177
  ] }),
41834
- /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "flex gap-4 text-sm text-gray800 mb-2", children: [
41835
- impressions !== null && /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { children: [
41836
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "text-gray500 font-bold", children: formatFollowerCount(impressions) }),
42178
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex gap-4 text-sm text-gray800 mb-2", children: [
42179
+ impressions !== null && /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { children: [
42180
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-gray500 font-bold", children: formatFollowerCount(impressions) }),
41837
42181
  " ",
41838
42182
  "est.Impressions"
41839
42183
  ] }),
41840
- reach !== null && /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { children: [
41841
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "text-gray500 font-bold", children: formatFollowerCount(reach) }),
42184
+ reach !== null && /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { children: [
42185
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-gray500 font-bold", children: formatFollowerCount(reach) }),
41842
42186
  " ",
41843
42187
  "est.Reach"
41844
42188
  ] })
41845
42189
  ] }),
41846
- /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "text-sm mb-1", children: [
41847
- platformUsername && /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "text-md font-semibold text-gray500", children: [
42190
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "text-sm mb-1", children: [
42191
+ platformUsername && /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "text-md font-semibold text-gray500", children: [
41848
42192
  "@",
41849
42193
  platformUsername
41850
42194
  ] }),
41851
42195
  ["instagram", "tiktok"].includes(
41852
42196
  post.platform?.toLowerCase() || ""
41853
- ) ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_jsx_runtime168.Fragment, { children: (() => {
42197
+ ) ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_jsx_runtime169.Fragment, { children: (() => {
41854
42198
  const text = post.title || post.description || "";
41855
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(import_jsx_runtime168.Fragment, { children: [
41856
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
42199
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(import_jsx_runtime169.Fragment, { children: [
42200
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
41857
42201
  "div",
41858
42202
  {
41859
42203
  className: `text-gray900 font-light mt-2 text-sm ${!expanded ? "line-clamp-3" : ""}`,
41860
42204
  children: text
41861
42205
  }
41862
42206
  ),
41863
- text.length > 100 && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
42207
+ text.length > 100 && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
41864
42208
  "button",
41865
42209
  {
41866
42210
  onClick: (e) => {
@@ -41872,9 +42216,9 @@ function PostCard({ post, platformUsername }) {
41872
42216
  }
41873
42217
  )
41874
42218
  ] });
41875
- })() }) : /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(import_jsx_runtime168.Fragment, { children: [
41876
- post.title && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: "text-gray900 font-light", children: post.title }),
41877
- post.description && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
42219
+ })() }) : /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(import_jsx_runtime169.Fragment, { children: [
42220
+ post.title && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "text-gray900 font-light", children: post.title }),
42221
+ post.description && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
41878
42222
  "div",
41879
42223
  {
41880
42224
  className: "mt-2 text-sm text-gray900 overflow-hidden font-light",
@@ -41882,7 +42226,7 @@ function PostCard({ post, platformUsername }) {
41882
42226
  children: post.description
41883
42227
  }
41884
42228
  ),
41885
- post.description && post.description.length > 200 && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
42229
+ post.description && post.description.length > 200 && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
41886
42230
  "button",
41887
42231
  {
41888
42232
  onClick: (e) => {
@@ -41902,7 +42246,7 @@ function PostCard({ post, platformUsername }) {
41902
42246
  }
41903
42247
 
41904
42248
  // src/molecules/creator-discovery/CreatorWidget/PlatformPostsSection.tsx
41905
- var import_jsx_runtime169 = require("react/jsx-runtime");
42249
+ var import_jsx_runtime170 = require("react/jsx-runtime");
41906
42250
  var formatFollowerCount2 = (count) => {
41907
42251
  if (count >= 1e6) {
41908
42252
  const millions = count / 1e6;
@@ -41926,18 +42270,18 @@ function PlatformMetricsBanner({
41926
42270
  const platformName = getPlatformName(platform);
41927
42271
  const bgColor = getPlatformBgColor(platform);
41928
42272
  const IconComponent = getPlatformIcon(platform);
41929
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(
42273
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(
41930
42274
  "div",
41931
42275
  {
41932
42276
  className: "\n flex overflow-x-auto gap-6 rounded-l-xl py-4 px-4 shadow-sm\n md:grid md:grid-cols-[0.5fr_1fr_1fr_1fr_1fr] md:items-center md:gap-0 md:px-0 md:ml-8\n ",
41933
42277
  style: { backgroundColor: bgColor },
41934
42278
  children: [
41935
- /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex flex-col items-center min-w-[90px] md:min-w-0", children: [
41936
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(IconComponent, { className: "w-5 h-5 md:w-6 md:h-6 text-gray900" }),
41937
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-lg md:text-xl font-bold text-gray900", children: platform === "youtubeMetrics" ? formatFollowerCount2(metrics.subscribers || 0) : formatFollowerCount2(metrics.followers || 0) })
42279
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex flex-col items-center min-w-[90px] md:min-w-0", children: [
42280
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(IconComponent, { className: "w-5 h-5 md:w-6 md:h-6 text-gray900" }),
42281
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-lg md:text-xl font-bold text-gray900", children: platform === "youtubeMetrics" ? formatFollowerCount2(metrics.subscribers || 0) : formatFollowerCount2(metrics.followers || 0) })
41938
42282
  ] }),
41939
- /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex flex-col items-start min-w-[130px] md:min-w-0", children: [
41940
- /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(
42283
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex flex-col items-start min-w-[130px] md:min-w-0", children: [
42284
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(
41941
42285
  "span",
41942
42286
  {
41943
42287
  className: "text-base md:text-lg dark:text-white max-w-[90%] truncate cursor-default",
@@ -41948,22 +42292,22 @@ function PlatformMetricsBanner({
41948
42292
  ]
41949
42293
  }
41950
42294
  ),
41951
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-xs md:text-sm text-gray900 opacity-90", children: platformName })
42295
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-xs md:text-sm text-gray900 opacity-90", children: platformName })
41952
42296
  ] }),
41953
- /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex flex-col items-start min-w-[100px] md:min-w-0", children: [
41954
- /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("span", { className: "text-sm md:text-md font-semibold text-gray900", children: [
42297
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex flex-col items-start min-w-[100px] md:min-w-0", children: [
42298
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("span", { className: "text-sm md:text-md font-semibold text-gray900", children: [
41955
42299
  (metrics.engagementRate * 100).toFixed(2),
41956
42300
  "%"
41957
42301
  ] }),
41958
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-xs text-gray900 opacity-80", children: "Engagement Rate" })
42302
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-xs text-gray900 opacity-80", children: "Engagement Rate" })
41959
42303
  ] }),
41960
- /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex flex-col items-start min-w-[100px] md:min-w-0", children: [
41961
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-sm md:text-md font-semibold text-gray900", children: Math.round(metrics.avgLikes)?.toLocaleString() }),
41962
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-xs text-gray900 opacity-80", children: "Avg Likes" })
42304
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex flex-col items-start min-w-[100px] md:min-w-0", children: [
42305
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-sm md:text-md font-semibold text-gray900", children: Math.round(metrics.avgLikes)?.toLocaleString() }),
42306
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-xs text-gray900 opacity-80", children: "Avg Likes" })
41963
42307
  ] }),
41964
- /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex flex-col items-start min-w-[100px] md:min-w-0", children: [
41965
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-sm md:text-md font-semibold text-gray900", children: Math.round(metrics.avgComments)?.toLocaleString() }),
41966
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-xs text-gray900 opacity-80", children: "Avg Comments" })
42308
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex flex-col items-start min-w-[100px] md:min-w-0", children: [
42309
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-sm md:text-md font-semibold text-gray900", children: Math.round(metrics.avgComments)?.toLocaleString() }),
42310
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-xs text-gray900 opacity-80", children: "Avg Comments" })
41967
42311
  ] })
41968
42312
  ]
41969
42313
  }
@@ -41974,16 +42318,16 @@ function PlatformPostsSection({
41974
42318
  posts = []
41975
42319
  }) {
41976
42320
  if (!platformMetrics) return null;
41977
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "flex flex-col gap-8", children: Object.entries(platformMetrics || {}).map(
42321
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "flex flex-col gap-8", children: Object.entries(platformMetrics || {}).map(
41978
42322
  ([platform, metrics]) => {
41979
42323
  if (!metrics) return null;
41980
42324
  if (metrics.followers === 0 && metrics.subscribers === 0)
41981
42325
  return null;
41982
42326
  const platformPosts = filterPostsByPlatform(posts, platform);
41983
42327
  const platformUsername = metrics.username ?? metrics.channelName ?? "";
41984
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "w-full flex flex-col gap-8", children: [
41985
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(PlatformMetricsBanner, { platform, metrics }),
41986
- platformPosts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "pr-6 sm:ml-8 sm:pr-7", children: /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: platformPosts.map((post, idx) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
42328
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "w-full flex flex-col gap-8", children: [
42329
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(PlatformMetricsBanner, { platform, metrics }),
42330
+ platformPosts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "pr-6 sm:ml-8 sm:pr-7", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: platformPosts.map((post, idx) => /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
41987
42331
  PostCard,
41988
42332
  {
41989
42333
  post,
@@ -41997,10 +42341,10 @@ function PlatformPostsSection({
41997
42341
  }
41998
42342
 
41999
42343
  // src/molecules/creator-discovery/CreatorWidget/BrandCollaborationsList.tsx
42000
- var import_react83 = require("react");
42344
+ var import_react84 = require("react");
42001
42345
  var import_react_dom = __toESM(require("react-dom"), 1);
42002
42346
  var import_framer_motion3 = require("framer-motion");
42003
- var import_jsx_runtime170 = require("react/jsx-runtime");
42347
+ var import_jsx_runtime171 = require("react/jsx-runtime");
42004
42348
  var getSentimentRank = (score) => {
42005
42349
  if (score >= 80) {
42006
42350
  return {
@@ -42045,8 +42389,8 @@ function BrandMentionDetails({
42045
42389
  ) || [];
42046
42390
  if (typeof window === "undefined") return null;
42047
42391
  return import_react_dom.default.createPortal(
42048
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(import_framer_motion3.AnimatePresence, { mode: "sync", children: open && /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(import_jsx_runtime170.Fragment, { children: [
42049
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
42392
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_framer_motion3.AnimatePresence, { mode: "sync", children: open && /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(import_jsx_runtime171.Fragment, { children: [
42393
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42050
42394
  import_framer_motion3.motion.div,
42051
42395
  {
42052
42396
  initial: { opacity: 0 },
@@ -42061,7 +42405,7 @@ function BrandMentionDetails({
42061
42405
  },
42062
42406
  "brand-overlay"
42063
42407
  ),
42064
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(
42408
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42065
42409
  import_framer_motion3.motion.div,
42066
42410
  {
42067
42411
  initial: { opacity: 0, scale: 0.95 },
@@ -42071,42 +42415,42 @@ function BrandMentionDetails({
42071
42415
  className: "fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-[90] w-full max-w-lg bg-background rounded-xl border border-gray300 shadow-2xl",
42072
42416
  onClick: (e) => e.stopPropagation(),
42073
42417
  children: [
42074
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex justify-between items-center p-4 border-b border-gray300", children: [
42075
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("h3", { className: "text-lg font-bold text-gray900", children: [
42418
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex justify-between items-center p-4 border-b border-gray300", children: [
42419
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("h3", { className: "text-lg font-bold text-gray900", children: [
42076
42420
  "Brand Mention Details: ",
42077
42421
  selectedBrand
42078
42422
  ] }),
42079
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
42423
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42080
42424
  "button",
42081
42425
  {
42082
42426
  onClick: onClose,
42083
42427
  className: "p-1 rounded-full hover:bg-gray200 transition-colors",
42084
- children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(X, { className: "w-4 h-4" })
42428
+ children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(X, { className: "w-4 h-4" })
42085
42429
  }
42086
42430
  )
42087
42431
  ] }),
42088
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex flex-col gap-6 max-h-[70vh] overflow-y-auto p-4", children: [
42089
- brandStats && /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "bg-gray25 border-2 border-gray200 rounded-xl p-4", children: [
42090
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("h3", { className: "text-lg font-bold text-gray900 mb-4", children: "Overview" }),
42091
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "grid grid-cols-2 gap-4", children: [
42092
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42093
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-xs text-gray600", children: "Total Mentions" }),
42094
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-2xl font-bold text-gray900", children: brandStats.mentions })
42432
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex flex-col gap-6 max-h-[70vh] overflow-y-auto p-4", children: [
42433
+ brandStats && /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "bg-gray25 border-2 border-gray200 rounded-xl p-4", children: [
42434
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("h3", { className: "text-lg font-bold text-gray900 mb-4", children: "Overview" }),
42435
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "grid grid-cols-2 gap-4", children: [
42436
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42437
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-xs text-gray600", children: "Total Mentions" }),
42438
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-2xl font-bold text-gray900", children: brandStats.mentions })
42095
42439
  ] }),
42096
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42097
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-xs text-gray600", children: "Posts Count" }),
42098
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-2xl font-bold text-gray900", children: brandStats.postCount })
42440
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42441
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-xs text-gray600", children: "Posts Count" }),
42442
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-2xl font-bold text-gray900", children: brandStats.postCount })
42099
42443
  ] }),
42100
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42101
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-xs text-gray600", children: "Avg Engagement" }),
42102
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "text-2xl font-bold text-gray900", children: [
42444
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42445
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-xs text-gray600", children: "Avg Engagement" }),
42446
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "text-2xl font-bold text-gray900", children: [
42103
42447
  brandStats.averageEngagementRate?.toFixed(2),
42104
42448
  "%"
42105
42449
  ] })
42106
42450
  ] }),
42107
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42108
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-xs text-gray600", children: "Effectiveness" }),
42109
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(
42451
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "bg-background rounded-lg p-3", children: [
42452
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-xs text-gray600", children: "Effectiveness" }),
42453
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42110
42454
  "div",
42111
42455
  {
42112
42456
  className: `text-2xl font-bold ${getSentimentRank(brandStats.effectivenessPercent).scoreColor}`,
@@ -42118,8 +42462,8 @@ function BrandMentionDetails({
42118
42462
  )
42119
42463
  ] })
42120
42464
  ] }),
42121
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "mt-3 flex gap-2 flex-wrap", children: brandStats.collaborationTypes?.map(
42122
- (type, idx) => /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
42465
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "mt-3 flex gap-2 flex-wrap", children: brandStats.collaborationTypes?.map(
42466
+ (type, idx) => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42123
42467
  "span",
42124
42468
  {
42125
42469
  className: "px-3 py-1 rounded-md text-xs font-medium bg-[#1D4324] text-[#72E285]",
@@ -42129,55 +42473,55 @@ function BrandMentionDetails({
42129
42473
  )
42130
42474
  ) })
42131
42475
  ] }),
42132
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { children: [
42133
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("h3", { className: "text-lg font-bold text-gray900 mb-3", children: [
42476
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { children: [
42477
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("h3", { className: "text-lg font-bold text-gray900 mb-3", children: [
42134
42478
  "Individual Mentions (",
42135
42479
  brandMentions.length,
42136
42480
  ")"
42137
42481
  ] }),
42138
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "flex flex-col gap-3", children: brandMentions.map((mention, index) => {
42482
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "flex flex-col gap-3", children: brandMentions.map((mention, index) => {
42139
42483
  const IconComponent = getPlatformIcon(mention?.platform);
42140
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(
42484
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42141
42485
  "div",
42142
42486
  {
42143
42487
  className: "bg-gray50 border-2 border-gray200 rounded-xl p-4 hover:border-purple100 transition-colors",
42144
42488
  children: [
42145
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex items-center justify-between mb-3", children: [
42146
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex items-center gap-2", children: [
42147
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(IconComponent, { className: "w-5 h-5 text-gray900" }),
42148
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-sm font-medium text-gray700 capitalize", children: mention.platform })
42489
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex items-center justify-between mb-3", children: [
42490
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex items-center gap-2", children: [
42491
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(IconComponent, { className: "w-5 h-5 text-gray900" }),
42492
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-sm font-medium text-gray700 capitalize", children: mention.platform })
42149
42493
  ] }),
42150
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex items-center gap-2", children: [
42151
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "px-2 py-1 rounded-md text-xs font-medium bg-[#1D4324] text-[#72E285]", children: mention.collaborationType }),
42152
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("span", { className: "text-xs text-gray600", children: [
42494
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex items-center gap-2", children: [
42495
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "px-2 py-1 rounded-md text-xs font-medium bg-[#1D4324] text-[#72E285]", children: mention.collaborationType }),
42496
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("span", { className: "text-xs text-gray600", children: [
42153
42497
  Math.round(mention.confidence * 100),
42154
42498
  "% confidence"
42155
42499
  ] })
42156
42500
  ] })
42157
42501
  ] }),
42158
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "mb-2", children: [
42159
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("span", { className: "text-xs text-gray500", children: [
42502
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "mb-2", children: [
42503
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("span", { className: "text-xs text-gray500", children: [
42160
42504
  "Post ID:",
42161
42505
  " "
42162
42506
  ] }),
42163
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-xs font-mono text-gray700", children: mention.post_id })
42507
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-xs font-mono text-gray700", children: mention.post_id })
42164
42508
  ] }),
42165
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "bg-background rounded-lg p-3 border border-gray300", children: [
42166
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-xs text-gray600 mb-1", children: "Evidence:" }),
42167
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("p", { className: "text-sm text-gray800 italic", children: [
42509
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "bg-background rounded-lg p-3 border border-gray300", children: [
42510
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-xs text-gray600 mb-1", children: "Evidence:" }),
42511
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("p", { className: "text-sm text-gray800 italic", children: [
42168
42512
  "\u201C",
42169
42513
  mention.evidence,
42170
42514
  "\u201D"
42171
42515
  ] })
42172
42516
  ] }),
42173
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "mt-2 text-xs text-gray500", children: [
42517
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "mt-2 text-xs text-gray500", children: [
42174
42518
  "Source:",
42175
42519
  " ",
42176
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "font-medium", children: mention.source }),
42177
- mention.handle && /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("span", { className: "ml-2", children: [
42520
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "font-medium", children: mention.source }),
42521
+ mention.handle && /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("span", { className: "ml-2", children: [
42178
42522
  "Handle:",
42179
42523
  " ",
42180
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "font-medium", children: mention.handle })
42524
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "font-medium", children: mention.handle })
42181
42525
  ] })
42182
42526
  ] })
42183
42527
  ]
@@ -42186,7 +42530,7 @@ function BrandMentionDetails({
42186
42530
  );
42187
42531
  }) })
42188
42532
  ] }),
42189
- brandMentions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-center py-8 text-gray500", children: "No mentions found for this brand" })
42533
+ brandMentions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-center py-8 text-gray500", children: "No mentions found for this brand" })
42190
42534
  ] })
42191
42535
  ]
42192
42536
  },
@@ -42199,16 +42543,16 @@ function BrandMentionDetails({
42199
42543
  function BrandCollaborationsList({
42200
42544
  brandBreakdown
42201
42545
  }) {
42202
- const [openDetails, setOpenDetails] = (0, import_react83.useState)(false);
42203
- const [selectedBrand, setSelectedBrand] = (0, import_react83.useState)("");
42546
+ const [openDetails, setOpenDetails] = (0, import_react84.useState)(false);
42547
+ const [selectedBrand, setSelectedBrand] = (0, import_react84.useState)("");
42204
42548
  if (!brandBreakdown?.insights?.brandBreakdown || brandBreakdown.insights.brandBreakdown.length === 0) {
42205
42549
  return null;
42206
42550
  }
42207
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(import_jsx_runtime170.Fragment, { children: [
42208
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { children: [
42209
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-purpleText text-xs mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: "BRAND MENTIONS" }) }),
42210
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "flex flex-col gap-2 max-h-[220px] overflow-y-auto", children: brandBreakdown.insights.brandBreakdown.map(
42211
- (item, index) => /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(
42551
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(import_jsx_runtime171.Fragment, { children: [
42552
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { children: [
42553
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-purpleText text-xs mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: "BRAND MENTIONS" }) }),
42554
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "flex flex-col gap-2 max-h-[220px] overflow-y-auto", children: brandBreakdown.insights.brandBreakdown.map(
42555
+ (item, index) => /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42212
42556
  "div",
42213
42557
  {
42214
42558
  className: "flex gap-4 bg-gray50 border-2 border-gray25 rounded-xl px-3 py-3 shadow-sm cursor-pointer hover:border-purple100 transition-colors",
@@ -42218,17 +42562,17 @@ function BrandCollaborationsList({
42218
42562
  setOpenDetails(true);
42219
42563
  },
42220
42564
  children: [
42221
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "w-10 h-10 rounded-full bg-gray200 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-sm font-bold text-gray700", children: item.brand?.charAt(0)?.toUpperCase() || "?" }) }),
42222
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex flex-col gap-1", children: [
42223
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "text-gray900 text-sm", children: item.brand }),
42224
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "flex gap-2 text-xs text-gray600", children: [
42225
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { children: [
42226
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-gray900", children: item?.mentions }),
42565
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "w-10 h-10 rounded-full bg-gray200 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-sm font-bold text-gray700", children: item.brand?.charAt(0)?.toUpperCase() || "?" }) }),
42566
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex flex-col gap-1", children: [
42567
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "text-gray900 text-sm", children: item.brand }),
42568
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex gap-2 text-xs text-gray600", children: [
42569
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { children: [
42570
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-gray900", children: item?.mentions }),
42227
42571
  " ",
42228
42572
  "Mention"
42229
42573
  ] }),
42230
- /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { children: [
42231
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
42574
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { children: [
42575
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42232
42576
  "span",
42233
42577
  {
42234
42578
  className: `${getSentimentRank(item.effectivenessPercent).scoreColor} font-bold`,
@@ -42246,7 +42590,7 @@ function BrandCollaborationsList({
42246
42590
  )
42247
42591
  ) })
42248
42592
  ] }),
42249
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
42593
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42250
42594
  BrandMentionDetails,
42251
42595
  {
42252
42596
  open: openDetails,
@@ -42259,9 +42603,9 @@ function BrandCollaborationsList({
42259
42603
  }
42260
42604
 
42261
42605
  // src/molecules/creator-discovery/CreatorWidget/CreatorGridView.tsx
42262
- var import_react84 = require("react");
42606
+ var import_react85 = require("react");
42263
42607
  var import_framer_motion4 = require("framer-motion");
42264
- var import_jsx_runtime171 = require("react/jsx-runtime");
42608
+ var import_jsx_runtime172 = require("react/jsx-runtime");
42265
42609
  var formatFollowerCount3 = (count) => {
42266
42610
  if (count >= 1e6) {
42267
42611
  const millions = count / 1e6;
@@ -42308,25 +42652,25 @@ var itemsExplanation = [
42308
42652
  { key: "brandSafety", label: "Brand Safety" }
42309
42653
  ];
42310
42654
  function CreatorGridViewCard({ creator }) {
42311
- const [isExpanded, setIsExpanded] = (0, import_react84.useState)(false);
42312
- const [showFullDescription, setShowFullDescription] = (0, import_react84.useState)(false);
42313
- const [isDescriptionOverflowing, setIsDescriptionOverflowing] = (0, import_react84.useState)(false);
42314
- const descriptionRef = (0, import_react84.useRef)(null);
42315
- const cardRef = (0, import_react84.useRef)(null);
42316
- const checkDescriptionOverflow = (0, import_react84.useCallback)(() => {
42655
+ const [isExpanded, setIsExpanded] = (0, import_react85.useState)(false);
42656
+ const [showFullDescription, setShowFullDescription] = (0, import_react85.useState)(false);
42657
+ const [isDescriptionOverflowing, setIsDescriptionOverflowing] = (0, import_react85.useState)(false);
42658
+ const descriptionRef = (0, import_react85.useRef)(null);
42659
+ const cardRef = (0, import_react85.useRef)(null);
42660
+ const checkDescriptionOverflow = (0, import_react85.useCallback)(() => {
42317
42661
  const el = descriptionRef.current;
42318
42662
  if (!el) return;
42319
42663
  setIsDescriptionOverflowing(el.scrollHeight > el.clientHeight + 1);
42320
42664
  }, []);
42321
- (0, import_react84.useEffect)(() => {
42665
+ (0, import_react85.useEffect)(() => {
42322
42666
  checkDescriptionOverflow();
42323
42667
  }, [checkDescriptionOverflow, isExpanded, showFullDescription]);
42324
- (0, import_react84.useEffect)(() => {
42668
+ (0, import_react85.useEffect)(() => {
42325
42669
  const onResize = () => checkDescriptionOverflow();
42326
42670
  window.addEventListener("resize", onResize);
42327
42671
  return () => window.removeEventListener("resize", onResize);
42328
42672
  }, [checkDescriptionOverflow]);
42329
- const platformStats = (0, import_react84.useMemo)(() => {
42673
+ const platformStats = (0, import_react85.useMemo)(() => {
42330
42674
  return [
42331
42675
  {
42332
42676
  platform: "instagram",
@@ -42362,7 +42706,7 @@ function CreatorGridViewCard({ creator }) {
42362
42706
  };
42363
42707
  const iso2 = normalizeToIso2(creator.country);
42364
42708
  const meta = codeToMeta[iso2];
42365
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42709
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42366
42710
  import_framer_motion4.motion.div,
42367
42711
  {
42368
42712
  ref: cardRef,
@@ -42373,10 +42717,10 @@ function CreatorGridViewCard({ creator }) {
42373
42717
  className: `bg-paperBackground dark:bg-gray50 rounded-[10px] border border-gray300 hover:border-purple100 shadow-sm cursor-pointer transition-all duration-300 ease-in-out ${isExpanded ? "col-span-full border-purple100" : ""}`,
42374
42718
  style: isExpanded ? { gridColumn: "1 / -1" } : {},
42375
42719
  onClick: toggleExpanded,
42376
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex", children: [
42377
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: `${isExpanded ? "w-1/3" : "w-full"}`, children: [
42378
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "relative w-full aspect-square mb-2", children: [
42379
- creator.profile_pic ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42720
+ children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex", children: [
42721
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: `${isExpanded ? "w-1/3" : "w-full"}`, children: [
42722
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "relative w-full aspect-square mb-2", children: [
42723
+ creator.profile_pic ? /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42380
42724
  "img",
42381
42725
  {
42382
42726
  src: creator.profile_pic,
@@ -42384,15 +42728,15 @@ function CreatorGridViewCard({ creator }) {
42384
42728
  className: "w-full h-full object-cover bg-primary/10",
42385
42729
  style: { borderRadius: "10px 10px 0 0" }
42386
42730
  }
42387
- ) : /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42731
+ ) : /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42388
42732
  "div",
42389
42733
  {
42390
42734
  className: "w-full h-full bg-primary/10 flex items-center justify-center",
42391
42735
  style: { borderRadius: "10px 10px 0 0" },
42392
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-2xl text-primary", children: creator.name?.charAt(0) || "?" })
42736
+ children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "text-2xl text-primary", children: creator.name?.charAt(0) || "?" })
42393
42737
  }
42394
42738
  ),
42395
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42739
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42396
42740
  "div",
42397
42741
  {
42398
42742
  className: `absolute bottom-2 right-2 ${getSentimentRank2(creator.sentiment?.matchScore || 0).bgColor} ${getSentimentRank2(creator.sentiment?.matchScore || 0).textColor} px-2 py-1 rounded-md text-md font-medium`,
@@ -42400,34 +42744,34 @@ function CreatorGridViewCard({ creator }) {
42400
42744
  }
42401
42745
  )
42402
42746
  ] }),
42403
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "px-3 pb-1", children: [
42404
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { children: [
42405
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42747
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "px-3 pb-1", children: [
42748
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { children: [
42749
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42406
42750
  "h3",
42407
42751
  {
42408
42752
  className: `${isExpanded ? "text-md" : "text-sm"} font-normal text-gray900 mb-1 line-clamp-2 text-start`,
42409
42753
  children: creator.name || "Unnamed"
42410
42754
  }
42411
42755
  ),
42412
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42756
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
42413
42757
  "div",
42414
42758
  {
42415
42759
  className: `${isExpanded ? "text-sm" : "text-xs"} text-gray700 mb-1 text-start flex items-center gap-1`,
42416
42760
  children: [
42417
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-base", children: meta?.flag }),
42418
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { children: meta?.name || creator.country || "Unknown" })
42761
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "text-base", children: meta?.flag }),
42762
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { children: meta?.name || creator.country || "Unknown" })
42419
42763
  ]
42420
42764
  }
42421
42765
  ),
42422
- isExpanded && creator?.sentiment?.detailedScores && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "mt-2 w-[150px] flex gap-2", children: Object.entries(creator.sentiment.detailedScores).map(
42766
+ isExpanded && creator?.sentiment?.detailedScores && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "mt-2 w-[150px] flex gap-2", children: Object.entries(creator.sentiment.detailedScores).map(
42423
42767
  ([key, value]) => {
42424
42768
  const itemRank = getSentimentRank2(value);
42425
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42769
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
42426
42770
  "div",
42427
42771
  {
42428
42772
  className: "flex flex-col items-center w-[100px]",
42429
42773
  children: [
42430
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42774
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
42431
42775
  "span",
42432
42776
  {
42433
42777
  className: `text-[14px] font-bold ${itemRank.scoreColor}`,
@@ -42437,7 +42781,7 @@ function CreatorGridViewCard({ creator }) {
42437
42781
  ]
42438
42782
  }
42439
42783
  ),
42440
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "flex items-center justify-center gap-1 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-xs dark:text-gray500 text-center px-1", children: itemsExplanation.find(
42784
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex items-center justify-center gap-1 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "text-xs dark:text-gray500 text-center px-1", children: itemsExplanation.find(
42441
42785
  (item) => item.key === key
42442
42786
  )?.label }) })
42443
42787
  ]
@@ -42447,20 +42791,20 @@ function CreatorGridViewCard({ creator }) {
42447
42791
  }
42448
42792
  ) }) })
42449
42793
  ] }),
42450
- !isExpanded && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "flex gap-2 justify-between", children: platformStats.map(
42451
- ({ platform, icon: Icon3, followers }) => /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42794
+ !isExpanded && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex gap-2 justify-between", children: platformStats.map(
42795
+ ({ platform, icon: Icon3, followers }) => /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
42452
42796
  "div",
42453
42797
  {
42454
42798
  className: "flex flex-col items-center gap-1",
42455
42799
  title: `${formatFollowerCount3(followers)} followers`,
42456
42800
  children: [
42457
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42801
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42458
42802
  Icon3,
42459
42803
  {
42460
42804
  className: `w-5 h-5 ${getPlatformIconColor(platform)}`
42461
42805
  }
42462
42806
  ),
42463
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-xs dark:text-gray500", children: followers > 0 && formatFollowerCount3(followers) })
42807
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "text-xs dark:text-gray500", children: followers > 0 && formatFollowerCount3(followers) })
42464
42808
  ]
42465
42809
  },
42466
42810
  platform
@@ -42468,20 +42812,20 @@ function CreatorGridViewCard({ creator }) {
42468
42812
  ) })
42469
42813
  ] })
42470
42814
  ] }),
42471
- isExpanded && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "flex-1 border-l border-gray300 p-6 overflow-hidden transition-all duration-300 ease-in-out", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "space-y-4", children: [
42472
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { children: [
42473
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42815
+ isExpanded && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex-1 border-l border-gray300 p-6 overflow-hidden transition-all duration-300 ease-in-out", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "space-y-4", children: [
42816
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { children: [
42817
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
42474
42818
  "div",
42475
42819
  {
42476
42820
  ref: descriptionRef,
42477
42821
  className: `${showFullDescription ? "" : "max-h-[80px] overflow-hidden"} relative`,
42478
42822
  children: [
42479
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("p", { className: "text-sm text-gray700 leading-relaxed", children: creator.description || "No description provided." }),
42480
- !showFullDescription && isDescriptionOverflowing && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "pointer-events-none absolute bottom-0 left-0 right-0 h-10 bg-gradient-to-t from-gray25 to-transparent" })
42823
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("p", { className: "text-sm text-gray700 leading-relaxed", children: creator.description || "No description provided." }),
42824
+ !showFullDescription && isDescriptionOverflowing && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "pointer-events-none absolute bottom-0 left-0 right-0 h-10 bg-gradient-to-t from-gray25 to-transparent" })
42481
42825
  ]
42482
42826
  }
42483
42827
  ),
42484
- (isDescriptionOverflowing || showFullDescription) && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42828
+ (isDescriptionOverflowing || showFullDescription) && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42485
42829
  "button",
42486
42830
  {
42487
42831
  onClick: (e) => {
@@ -42493,38 +42837,38 @@ function CreatorGridViewCard({ creator }) {
42493
42837
  }
42494
42838
  )
42495
42839
  ] }),
42496
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "flex gap-6 justify-start items-center", children: platformStats.map(
42497
- ({ platform, icon: Icon3, followers, engagement }) => /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex items-center gap-3", children: [
42498
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
42840
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex gap-6 justify-start items-center", children: platformStats.map(
42841
+ ({ platform, icon: Icon3, followers, engagement }) => /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex items-center gap-3", children: [
42842
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
42499
42843
  "div",
42500
42844
  {
42501
42845
  className: "flex items-center gap-1",
42502
42846
  title: `${formatFollowerCount3(followers)} followers`,
42503
42847
  children: [
42504
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42848
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42505
42849
  Icon3,
42506
42850
  {
42507
42851
  className: `w-5 h-5 ${getPlatformIconColor(platform)}`
42508
42852
  }
42509
42853
  ),
42510
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: "text-xs dark:text-gray500", children: followers > 0 ? formatFollowerCount3(followers) : "0" })
42854
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "text-xs dark:text-gray500", children: followers > 0 ? formatFollowerCount3(followers) : "0" })
42511
42855
  ]
42512
42856
  }
42513
42857
  ),
42514
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "flex items-center gap-1", children: [
42515
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(ChartColumn, { className: "w-5 h-5 dark:text-gray500" }),
42516
- /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("span", { className: "text-sm dark:text-gray500 w-[40px]", children: [
42858
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex items-center gap-1", children: [
42859
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(ChartColumn, { className: "w-5 h-5 dark:text-gray500" }),
42860
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("span", { className: "text-sm dark:text-gray500 w-[40px]", children: [
42517
42861
  (engagement * 100).toFixed(1),
42518
42862
  "%"
42519
42863
  ] })
42520
42864
  ] })
42521
42865
  ] }, platform)
42522
42866
  ) }),
42523
- creator.posts?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "w-full overflow-hidden", children: [
42524
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("h3", { className: "mb-2 text-sm font-medium text-gray900", children: "Recent Posts" }),
42525
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "flex gap-3 overflow-x-auto", children: creator.posts.filter(
42867
+ creator.posts?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "w-full overflow-hidden", children: [
42868
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("h3", { className: "mb-2 text-sm font-medium text-gray900", children: "Recent Posts" }),
42869
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex gap-3 overflow-x-auto", children: creator.posts.filter(
42526
42870
  (post) => post.thumbnail || post.thumbnail_url
42527
- ).slice(0, 8).map((post, idx) => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42871
+ ).slice(0, 8).map((post, idx) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42528
42872
  "a",
42529
42873
  {
42530
42874
  href: post.url || "#",
@@ -42532,7 +42876,7 @@ function CreatorGridViewCard({ creator }) {
42532
42876
  rel: "noopener noreferrer",
42533
42877
  className: "block flex-shrink-0",
42534
42878
  onClick: (e) => e.stopPropagation(),
42535
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
42879
+ children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
42536
42880
  "img",
42537
42881
  {
42538
42882
  src: post.thumbnail_url || post.thumbnail,
@@ -42544,9 +42888,9 @@ function CreatorGridViewCard({ creator }) {
42544
42888
  idx
42545
42889
  )) })
42546
42890
  ] }),
42547
- creator?.sentiment?.aiReasoning && /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: "text-gray700 max-h-[200px] overflow-auto", children: [
42548
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("h4", { className: "font-semibold text-sm", children: "AI Analysis" }),
42549
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("p", { className: "text-sm", children: creator.sentiment.aiReasoning })
42891
+ creator?.sentiment?.aiReasoning && /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "text-gray700 max-h-[200px] overflow-auto", children: [
42892
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("h4", { className: "font-semibold text-sm", children: "AI Analysis" }),
42893
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("p", { className: "text-sm", children: creator.sentiment.aiReasoning })
42550
42894
  ] })
42551
42895
  ] }) })
42552
42896
  ] })
@@ -42556,11 +42900,11 @@ function CreatorGridViewCard({ creator }) {
42556
42900
  function CreatorGridView({
42557
42901
  creatorData
42558
42902
  }) {
42559
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "grid grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 [&>*]:transition-all [&>*]:duration-300 auto-rows-min relative grid-flow-dense", children: creatorData.map((creator) => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(CreatorGridViewCard, { creator }, creator._id)) });
42903
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "grid grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 [&>*]:transition-all [&>*]:duration-300 auto-rows-min relative grid-flow-dense", children: creatorData.map((creator) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorGridViewCard, { creator }, creator._id)) });
42560
42904
  }
42561
42905
 
42562
42906
  // src/molecules/creator-discovery/CreatorWidget/CreatorExpandedPanel.tsx
42563
- var import_jsx_runtime172 = require("react/jsx-runtime");
42907
+ var import_jsx_runtime173 = require("react/jsx-runtime");
42564
42908
  var formatFollowerCount4 = (count) => {
42565
42909
  if (count >= 1e6) {
42566
42910
  const millions = count / 1e6;
@@ -42654,12 +42998,12 @@ function SearchSpecDisplay({ spec }) {
42654
42998
  {
42655
42999
  key: "platforms",
42656
43000
  title: "Platforms",
42657
- content: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex flex-wrap gap-2", children: (spec.platforms || []).filter((p) => ["instagram", "youtube", "tiktok"].includes(p.toLowerCase())).map((p, idx) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: `${tagClass} flex items-center justify-center`, children: p.charAt(0).toUpperCase() + p.slice(1).toLowerCase() }, idx)) })
43001
+ content: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex flex-wrap gap-2", children: (spec.platforms || []).filter((p) => ["instagram", "youtube", "tiktok"].includes(p.toLowerCase())).map((p, idx) => /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: `${tagClass} flex items-center justify-center`, children: p.charAt(0).toUpperCase() + p.slice(1).toLowerCase() }, idx)) })
42658
43002
  },
42659
43003
  {
42660
43004
  key: "follower_range",
42661
43005
  title: "Follower Range",
42662
- content: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: `inline-block ${tagClass} font-grotesk`, children: [
43006
+ content: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: `inline-block ${tagClass} font-grotesk`, children: [
42663
43007
  formatFollowerCount4(spec?.follower_range?.min ?? 0),
42664
43008
  " -",
42665
43009
  " ",
@@ -42669,7 +43013,7 @@ function SearchSpecDisplay({ spec }) {
42669
43013
  {
42670
43014
  key: "geography",
42671
43015
  title: "Geography",
42672
- content: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: `inline-block ${tagClass} font-grotesk`, children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43016
+ content: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: `inline-block ${tagClass} font-grotesk`, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42673
43017
  "div",
42674
43018
  {
42675
43019
  className: "max-w-[200px] overflow-x-auto whitespace-nowrap",
@@ -42683,7 +43027,7 @@ function SearchSpecDisplay({ spec }) {
42683
43027
  e.currentTarget.style.overflow = "hidden";
42684
43028
  e.currentTarget.scrollLeft = 0;
42685
43029
  },
42686
- children: (spec.geography || []).map((g, idx) => /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("span", { children: [
43030
+ children: (spec.geography || []).map((g, idx) => /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("span", { children: [
42687
43031
  g,
42688
43032
  idx < spec.geography.length - 1 ? ", " : ""
42689
43033
  ] }, idx))
@@ -42693,13 +43037,13 @@ function SearchSpecDisplay({ spec }) {
42693
43037
  {
42694
43038
  key: "keyword_bundles",
42695
43039
  title: "Keyword",
42696
- content: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex gap-2 font-grotesk font-medium max-w-[500px] overflow-x-auto whitespace-nowrap", style: { scrollbarWidth: "none" }, children: priorityOneBundles.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: `${textClass} text-white/70`, children: "No priority 1 keywords" }) : priorityOneBundles.map((kw, idx) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: tagClass, children: kw }, idx)) })
43040
+ content: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex gap-2 font-grotesk font-medium max-w-[500px] overflow-x-auto whitespace-nowrap", style: { scrollbarWidth: "none" }, children: priorityOneBundles.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: `${textClass} text-white/70`, children: "No priority 1 keywords" }) : priorityOneBundles.map((kw, idx) => /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: tagClass, children: kw }, idx)) })
42697
43041
  }
42698
43042
  ];
42699
43043
  const itemsToShow = ["platforms", "follower_range", "geography", "keyword_bundles"];
42700
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "mt-3", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex gap-4 pr-[30px] overflow-x-auto", style: { scrollbarWidth: "none" }, children: items.filter(({ key }) => itemsToShow.includes(key) && spec?.[key] !== void 0 && spec?.[key] !== null).map(({ key, title, content }) => /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex-none p-5 bg-paperBackground rounded-lg", children: [
42701
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "text-purpleText text-sm mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: title.toUpperCase() }) }),
42702
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: `flex text-gray900 ${textClass}`, children: content })
43044
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "mt-3", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex gap-4 pr-[30px] overflow-x-auto", style: { scrollbarWidth: "none" }, children: items.filter(({ key }) => itemsToShow.includes(key) && spec?.[key] !== void 0 && spec?.[key] !== null).map(({ key, title, content }) => /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex-none p-5 bg-paperBackground rounded-lg", children: [
43045
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "text-purpleText text-sm mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: title.toUpperCase() }) }),
43046
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: `flex text-gray900 ${textClass}`, children: content })
42703
43047
  ] }, key)) }) });
42704
43048
  }
42705
43049
  function SentimentScoreRank({
@@ -42708,16 +43052,16 @@ function SentimentScoreRank({
42708
43052
  showMinialView = false
42709
43053
  }) {
42710
43054
  const sentimentScoreRank = getSentimentRank3(score);
42711
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: `flex flex-col justify-end ${showMinialView ? "w-[120px]" : "w-[150px]"} text-sm`, children: [
42712
- score !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex justify-center items-center mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43055
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: `flex flex-col justify-end ${showMinialView ? "w-[120px]" : "w-[150px]"} text-sm`, children: [
43056
+ score !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex justify-center items-center mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42713
43057
  "span",
42714
43058
  {
42715
43059
  className: `${isValidationComplete ? sentimentScoreRank.bgColor : "bg-gray500"} ${isValidationComplete ? sentimentScoreRank.textColor : "text-gray200"} text-center rounded-md ${showMinialView ? "text-xs px-[6px] py-[2px]" : "text-sm px-2 py-[2px]"}`,
42716
43060
  children: isValidationComplete ? sentimentScoreRank.rank : "Unranked"
42717
43061
  }
42718
43062
  ) }),
42719
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: `flex justify-center ${showMinialView ? "text-[24px]" : "text-[28px]"} font-bold mb-3 ${sentimentScoreRank.scoreColor}`, children: isValidationComplete ? score >= 0 ? `${score}%` : "0%" : /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex items-center justify-center py-2", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "w-6 h-6 border-2 border-purple100 border-t-transparent rounded-full animate-spin" }) }) }),
42720
- !showMinialView && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("p", { className: "text-gray600 dark:text-gray500 text-center", children: "Match Score" })
43063
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: `flex justify-center ${showMinialView ? "text-[24px]" : "text-[28px]"} font-bold mb-3 ${sentimentScoreRank.scoreColor}`, children: isValidationComplete ? score >= 0 ? `${score}%` : "0%" : /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex items-center justify-center py-2", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "w-6 h-6 border-2 border-purple100 border-t-transparent rounded-full animate-spin" }) }) }),
43064
+ !showMinialView && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("p", { className: "text-gray600 dark:text-gray500 text-center", children: "Match Score" })
42721
43065
  ] }) });
42722
43066
  }
42723
43067
  function BrandMentionPerformance({ creator }) {
@@ -42732,14 +43076,14 @@ function BrandMentionPerformance({ creator }) {
42732
43076
  { title: "Effectiveness", subtitle: "compared to all posts", value: `${insights?.effectivenessPercent || 0} %` },
42733
43077
  { title: "Saturation Rate", subtitle: "on brand mention", value: `${insights?.saturationRate || 0} %` }
42734
43078
  ];
42735
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { children: [
42736
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "text-purpleText text-xs mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: "BRAND MENTION PERFORMANCE" }) }),
42737
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex flex-col gap-3", children: metrics.map((item) => /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex justify-between items-center text-gray700 text-sm", children: [
42738
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex flex-col gap-1", children: [
42739
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("h5", { children: item.title }),
42740
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("p", { className: "text-xs", children: item.subtitle })
43079
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { children: [
43080
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "text-purpleText text-xs mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: "BRAND MENTION PERFORMANCE" }) }),
43081
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex flex-col gap-3", children: metrics.map((item) => /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex justify-between items-center text-gray700 text-sm", children: [
43082
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex flex-col gap-1", children: [
43083
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("h5", { children: item.title }),
43084
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("p", { className: "text-xs", children: item.subtitle })
42741
43085
  ] }),
42742
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("p", { className: "text-purpleText text-lg", children: item.value })
43086
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("p", { className: "text-purpleText text-lg", children: item.value })
42743
43087
  ] }, item.title)) })
42744
43088
  ] });
42745
43089
  }
@@ -42747,19 +43091,19 @@ function CreatorFitSummary({ creator, showBrandPerformance }) {
42747
43091
  const hasDeepAnalysis = creator?.sentiment?.deepAnalysis?.deepAnalysis;
42748
43092
  const title = hasDeepAnalysis ? "CREATOR DEEP ANALYSIS" : "CREATOR FIT SUMMARY";
42749
43093
  const content = hasDeepAnalysis ? creator.sentiment.deepAnalysis.deepAnalysis : creator?.sentiment?.aiReasoning || "No data available.";
42750
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: showBrandPerformance ? "col-span-1" : "col-span-2", children: [
42751
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "text-purpleText text-xs mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: title }) }),
42752
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "max-h-[140px] overflow-y-auto slim-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("p", { className: "text-gray700 text-sm", children: content }) })
43094
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: showBrandPerformance ? "col-span-1" : "col-span-2", children: [
43095
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "text-purpleText text-xs mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: "rounded-md bg-purple200 px-2 py-[4px] font-sans", children: title }) }),
43096
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "max-h-[140px] overflow-y-auto slim-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("p", { className: "text-gray700 text-sm", children: content }) })
42753
43097
  ] });
42754
43098
  }
42755
43099
  function ProfileSection({ creator, isValidationComplete }) {
42756
43100
  const username = creator.platformMetrics?.instagramMetrics?.username ? `@${creator.platformMetrics.instagramMetrics.username}` : creator.platformMetrics?.youtubeMetrics?.channelName ? `@${creator.platformMetrics.youtubeMetrics.channelName}` : creator.platformMetrics?.tiktokMetrics?.username ? `@${creator.platformMetrics.tiktokMetrics.username}` : "";
42757
43101
  const iso2 = normalizeToIso2(creator.country);
42758
43102
  const meta = codeToMeta[iso2];
42759
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex items-start gap-1 md:gap-6", children: [
42760
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex flex-col items-center gap-6", children: [
42761
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "w-[5rem] h-[5rem] rounded-[10px] bg-primary/10 flex items-center justify-center flex-shrink-0 relative overflow-hidden", children: creator.profile_pic ? /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(import_jsx_runtime172.Fragment, { children: [
42762
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43103
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex items-start gap-1 md:gap-6", children: [
43104
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex flex-col items-center gap-6", children: [
43105
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "w-[5rem] h-[5rem] rounded-[10px] bg-primary/10 flex items-center justify-center flex-shrink-0 relative overflow-hidden", children: creator.profile_pic ? /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_jsx_runtime173.Fragment, { children: [
43106
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42763
43107
  "img",
42764
43108
  {
42765
43109
  src: creator.profile_pic,
@@ -42767,24 +43111,24 @@ function ProfileSection({ creator, isValidationComplete }) {
42767
43111
  className: "object-cover w-[5rem] h-[5rem] rounded-[15px]"
42768
43112
  }
42769
43113
  ),
42770
- creator?.profile?.isVerified && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43114
+ creator?.profile?.isVerified && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42771
43115
  BadgeCheck,
42772
43116
  {
42773
43117
  size: 35,
42774
43118
  className: "absolute -top-2 -right-2 text-blue-500 drop-shadow-sm fill-blue-300"
42775
43119
  }
42776
43120
  )
42777
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "text-2xl text-primary", children: creator.name?.charAt(0) || "?" }) }),
42778
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "block sm:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(SentimentScoreRank, { score: creator?.sentiment?.matchScore || -1, isValidationComplete, showMinialView: true }) })
43121
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: "text-2xl text-primary", children: creator.name?.charAt(0) || "?" }) }),
43122
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "block sm:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(SentimentScoreRank, { score: creator?.sentiment?.matchScore || -1, isValidationComplete, showMinialView: true }) })
42779
43123
  ] }),
42780
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex flex-col gap-3 truncate", children: [
42781
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("h4", { className: "text-lg text-gray900 max-w-[150px]", title: creator.name, children: truncateName2(creator.name, 100) }) }),
42782
- username && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "text-xs text-gray700", children: username }),
42783
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "text-sm text-gray700 flex items-center gap-2", children: [
42784
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "text-base", children: meta?.flag }),
42785
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { children: meta?.name || creator.country || "Unknown" })
43124
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex flex-col gap-3 truncate", children: [
43125
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("h4", { className: "text-lg text-gray900 max-w-[150px]", title: creator.name, children: truncateName2(creator.name, 100) }) }),
43126
+ username && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "text-xs text-gray700", children: username }),
43127
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "text-sm text-gray700 flex items-center gap-2", children: [
43128
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: "text-base", children: meta?.flag }),
43129
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { children: meta?.name || creator.country || "Unknown" })
42786
43130
  ] }),
42787
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "text-xs text-gray700 text-wrap", children: truncateName2(creator.description, 100) })
43131
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "text-xs text-gray700 text-wrap", children: truncateName2(creator.description, 100) })
42788
43132
  ] })
42789
43133
  ] });
42790
43134
  }
@@ -42792,7 +43136,7 @@ function CreatorCardExpandedSection({
42792
43136
  creator
42793
43137
  }) {
42794
43138
  const hasBrandBreakdown = creator?.brandCollaborations?.insights?.brandBreakdown && creator?.sentiment?.deepAnalysis;
42795
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
43139
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(
42796
43140
  import_framer_motion5.motion.div,
42797
43141
  {
42798
43142
  initial: { y: 20, opacity: 0 },
@@ -42800,21 +43144,21 @@ function CreatorCardExpandedSection({
42800
43144
  transition: { duration: 0.3, delay: 0.1 },
42801
43145
  className: "md:mt-6 space-y-5",
42802
43146
  children: [
42803
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "md:grid md:grid-cols-[1.3fr_1fr_2fr_120px] gap-8 py-4 pr-7", children: [
42804
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "col-span-4 sm:col-span-1", children: hasBrandBreakdown ? /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43147
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "md:grid md:grid-cols-[1.3fr_1fr_2fr_120px] gap-8 py-4 pr-7", children: [
43148
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "col-span-4 sm:col-span-1", children: hasBrandBreakdown ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42805
43149
  BrandCollaborationsList,
42806
43150
  {
42807
43151
  brandBreakdown: creator?.brandCollaborations
42808
43152
  }
42809
- ) : /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "hidden sm:block" }) }),
42810
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "col-span-4 sm:col-span-3", children: creator?.audienceDemographics ? /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43153
+ ) : /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "hidden sm:block" }) }),
43154
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "col-span-4 sm:col-span-3", children: creator?.audienceDemographics ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42811
43155
  EngagedAudienceDemographics,
42812
43156
  {
42813
43157
  audienceDemographics: creator.audienceDemographics
42814
43158
  }
42815
43159
  ) : null })
42816
43160
  ] }),
42817
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43161
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42818
43162
  PlatformPostsSection,
42819
43163
  {
42820
43164
  platformMetrics: creator.platformMetrics,
@@ -42829,14 +43173,14 @@ function CreatorCard({
42829
43173
  creator,
42830
43174
  isValidationComplete
42831
43175
  }) {
42832
- const [detailsExpanded, setDetailsExpanded] = (0, import_react85.useState)(false);
43176
+ const [detailsExpanded, setDetailsExpanded] = (0, import_react86.useState)(false);
42833
43177
  const hasValidBrandMention = (() => {
42834
43178
  const insights = creator?.brandCollaborations?.insights;
42835
43179
  if (!insights) return false;
42836
43180
  const isValid2 = (val) => val !== null && val !== void 0 && val !== 0 && val !== "0" && val !== "" && !Number.isNaN(val);
42837
43181
  return isValid2(insights.averageBrandEngagementRate) || isValid2(insights.effectivenessPercent) || isValid2(insights.saturationRate);
42838
43182
  })();
42839
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(
43183
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(
42840
43184
  import_framer_motion5.motion.div,
42841
43185
  {
42842
43186
  layout: true,
@@ -42847,20 +43191,20 @@ function CreatorCard({
42847
43191
  className: `flex flex-col bg-paperBackground rounded-[25px] py-5 pl-7 border-2 shadow-sm cursor-pointer transition-all ${detailsExpanded ? "border-purple100" : "border-gray300"}`,
42848
43192
  onClick: () => setDetailsExpanded((prev) => !prev),
42849
43193
  children: [
42850
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex flex-col gap-4 sm:grid sm:grid-cols-[1.3fr_1fr_2fr_120px] gap-8 items-start w-full pr-7", children: [
42851
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(ProfileSection, { creator, isValidationComplete }),
42852
- hasValidBrandMention && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(BrandMentionPerformance, { creator }),
42853
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorFitSummary, { creator, showBrandPerformance: hasValidBrandMention }),
42854
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(SentimentScoreRank, { score: creator?.sentiment?.matchScore || -1, isValidationComplete }) })
43194
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex flex-col gap-4 sm:grid sm:grid-cols-[1.3fr_1fr_2fr_120px] gap-8 items-start w-full pr-7", children: [
43195
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(ProfileSection, { creator, isValidationComplete }),
43196
+ hasValidBrandMention && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(BrandMentionPerformance, { creator }),
43197
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CreatorFitSummary, { creator, showBrandPerformance: hasValidBrandMention }),
43198
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(SentimentScoreRank, { score: creator?.sentiment?.matchScore || -1, isValidationComplete }) })
42855
43199
  ] }),
42856
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(import_framer_motion5.AnimatePresence, { children: detailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43200
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_framer_motion5.AnimatePresence, { children: detailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42857
43201
  import_framer_motion5.motion.div,
42858
43202
  {
42859
43203
  initial: { height: 0, opacity: 0 },
42860
43204
  animate: { height: "auto", opacity: 1, transition: { height: { duration: 0.4, ease: [0.04, 0.62, 0.23, 0.98] }, opacity: { duration: 0.3, delay: 0.1 } } },
42861
43205
  exit: { height: 0, opacity: 0, transition: { height: { duration: 0.3, ease: [0.04, 0.62, 0.23, 0.98] }, opacity: { duration: 0.2 } } },
42862
43206
  className: "overflow-hidden mt-4",
42863
- children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorCardExpandedSection, { creator })
43207
+ children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CreatorCardExpandedSection, { creator })
42864
43208
  }
42865
43209
  ) })
42866
43210
  ]
@@ -42871,19 +43215,19 @@ function CreatorDisplay({
42871
43215
  creators,
42872
43216
  isValidationComplete
42873
43217
  }) {
42874
- const [viewMode, setViewMode] = (0, import_react85.useState)("list");
42875
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "px-4", children: [
42876
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex justify-end items-center my-3 gap-1", children: [
42877
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("span", { className: "text-xs text-gray600 mr-2", children: [
43218
+ const [viewMode, setViewMode] = (0, import_react86.useState)("list");
43219
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "px-4", children: [
43220
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex justify-end items-center my-3 gap-1", children: [
43221
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("span", { className: "text-xs text-gray600 mr-2", children: [
42878
43222
  creators.length,
42879
43223
  " creators"
42880
43224
  ] }),
42881
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43225
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42882
43226
  "button",
42883
43227
  {
42884
43228
  className: `h-7 w-7 flex items-center justify-center rounded ${viewMode === "list" ? "bg-gray200" : ""}`,
42885
43229
  onClick: () => setViewMode("list"),
42886
- children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43230
+ children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42887
43231
  AlignJustify,
42888
43232
  {
42889
43233
  className: `h-5 w-5 ${viewMode === "list" ? "text-gray900 dark:text-white" : "text-gray500"}`
@@ -42891,12 +43235,12 @@ function CreatorDisplay({
42891
43235
  )
42892
43236
  }
42893
43237
  ),
42894
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43238
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42895
43239
  "button",
42896
43240
  {
42897
43241
  className: `h-7 w-7 flex items-center justify-center rounded ${viewMode === "grid" ? "bg-gray200" : ""}`,
42898
43242
  onClick: () => setViewMode("grid"),
42899
- children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43243
+ children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42900
43244
  LayoutGrid,
42901
43245
  {
42902
43246
  className: `h-5 w-5 ${viewMode === "grid" ? "text-gray900 dark:text-white" : "text-gray500"}`
@@ -42905,43 +43249,43 @@ function CreatorDisplay({
42905
43249
  }
42906
43250
  )
42907
43251
  ] }),
42908
- creators.length > 0 ? viewMode === "list" ? /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "space-y-4", children: creators.map((creator) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorCard, { creator, isValidationComplete }, creator._id)) }) : /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorGridView, { creatorData: creators }) : /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "text-center py-8 bg-gray100 rounded-lg border border-gray300", children: [
42909
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(Users, { className: "w-6 h-6 text-primary" }) }),
42910
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("h3", { className: "text-base font-medium text-gray900", children: "No creators found" }),
42911
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("p", { className: "mt-1 text-sm text-gray600", children: "Try adjusting your search criteria" })
43252
+ creators.length > 0 ? viewMode === "list" ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "space-y-4", children: creators.map((creator) => /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CreatorCard, { creator, isValidationComplete }, creator._id)) }) : /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CreatorGridView, { creatorData: creators }) : /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "text-center py-8 bg-gray100 rounded-lg border border-gray300", children: [
43253
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Users, { className: "w-6 h-6 text-primary" }) }),
43254
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("h3", { className: "text-base font-medium text-gray900", children: "No creators found" }),
43255
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("p", { className: "mt-1 text-sm text-gray600", children: "Try adjusting your search criteria" })
42912
43256
  ] })
42913
43257
  ] });
42914
43258
  }
42915
43259
  function CreatorCardSkeleton() {
42916
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "bg-paperBackground rounded-[25px] py-5 pl-7 pr-7 border-2 border-gray300 shadow-sm", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex flex-col gap-4 sm:grid sm:grid-cols-[1.3fr_1fr_2fr_120px] gap-8 items-start w-full", children: [
42917
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex items-start gap-1 md:gap-6", children: [
42918
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "w-[5rem] h-[5rem] rounded-[10px] bg-gray200 animate-pulse" }),
42919
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex flex-col gap-3", children: [
42920
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-5 w-36 rounded bg-gray200 animate-pulse" }),
42921
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-3 w-24 rounded bg-gray200 animate-pulse" }),
42922
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-3 w-32 rounded bg-gray200 animate-pulse" }),
42923
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-3 w-44 rounded bg-gray200 animate-pulse" })
43260
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "bg-paperBackground rounded-[25px] py-5 pl-7 pr-7 border-2 border-gray300 shadow-sm", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex flex-col gap-4 sm:grid sm:grid-cols-[1.3fr_1fr_2fr_120px] gap-8 items-start w-full", children: [
43261
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex items-start gap-1 md:gap-6", children: [
43262
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "w-[5rem] h-[5rem] rounded-[10px] bg-gray200 animate-pulse" }),
43263
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex flex-col gap-3", children: [
43264
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-5 w-36 rounded bg-gray200 animate-pulse" }),
43265
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-3 w-24 rounded bg-gray200 animate-pulse" }),
43266
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-3 w-32 rounded bg-gray200 animate-pulse" }),
43267
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-3 w-44 rounded bg-gray200 animate-pulse" })
42924
43268
  ] })
42925
43269
  ] }),
42926
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "space-y-3 w-full", children: [
42927
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-4 w-32 rounded bg-gray200 animate-pulse" }),
42928
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-4 w-28 rounded bg-gray200 animate-pulse" }),
42929
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-4 w-24 rounded bg-gray200 animate-pulse" })
43270
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "space-y-3 w-full", children: [
43271
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-4 w-32 rounded bg-gray200 animate-pulse" }),
43272
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-4 w-28 rounded bg-gray200 animate-pulse" }),
43273
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-4 w-24 rounded bg-gray200 animate-pulse" })
42930
43274
  ] }),
42931
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "space-y-3 w-full", children: [
42932
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-4 w-40 rounded bg-gray200 animate-pulse" }),
42933
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-3 w-full rounded bg-gray200 animate-pulse" }),
42934
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-3 w-[90%] rounded bg-gray200 animate-pulse" }),
42935
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-3 w-[75%] rounded bg-gray200 animate-pulse" })
43275
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "space-y-3 w-full", children: [
43276
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-4 w-40 rounded bg-gray200 animate-pulse" }),
43277
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-3 w-full rounded bg-gray200 animate-pulse" }),
43278
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-3 w-[90%] rounded bg-gray200 animate-pulse" }),
43279
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-3 w-[75%] rounded bg-gray200 animate-pulse" })
42936
43280
  ] }),
42937
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "hidden md:flex flex-col items-center justify-center gap-3", children: [
42938
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-6 w-16 rounded bg-gray200 animate-pulse" }),
42939
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "h-4 w-20 rounded bg-gray200 animate-pulse" })
43281
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "hidden md:flex flex-col items-center justify-center gap-3", children: [
43282
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-6 w-16 rounded bg-gray200 animate-pulse" }),
43283
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "h-4 w-20 rounded bg-gray200 animate-pulse" })
42940
43284
  ] })
42941
43285
  ] }) });
42942
43286
  }
42943
43287
  function CreatorDisplaySkeleton() {
42944
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "px-4 py-4 space-y-4", children: Array.from({ length: 3 }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorCardSkeleton, {}, idx)) });
43288
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "px-4 py-4 space-y-4", children: Array.from({ length: 3 }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CreatorCardSkeleton, {}, idx)) });
42945
43289
  }
42946
43290
  function CreatorExpandedPanel({
42947
43291
  isOpen,
@@ -42952,10 +43296,10 @@ function CreatorExpandedPanel({
42952
43296
  searchSpec,
42953
43297
  fetchCreatorDetails
42954
43298
  }) {
42955
- const [creators, setCreators] = (0, import_react85.useState)([]);
42956
- const [loading, setLoading] = (0, import_react85.useState)(false);
43299
+ const [creators, setCreators] = (0, import_react86.useState)([]);
43300
+ const [loading, setLoading] = (0, import_react86.useState)(false);
42957
43301
  const fetcher = fetchCreatorDetails ?? defaultFetchCreatorDetails;
42958
- const loadCreators = (0, import_react85.useCallback)(async () => {
43302
+ const loadCreators = (0, import_react86.useCallback)(async () => {
42959
43303
  if (!creatorIds.length) return;
42960
43304
  setLoading(true);
42961
43305
  try {
@@ -42967,15 +43311,15 @@ function CreatorExpandedPanel({
42967
43311
  setLoading(false);
42968
43312
  }
42969
43313
  }, [creatorIds, sessionId, version, fetcher]);
42970
- (0, import_react85.useEffect)(() => {
43314
+ (0, import_react86.useEffect)(() => {
42971
43315
  if (isOpen && creatorIds.length > 0) {
42972
43316
  loadCreators();
42973
43317
  }
42974
43318
  }, [isOpen, loadCreators]);
42975
43319
  if (typeof window === "undefined") return null;
42976
43320
  return import_react_dom2.default.createPortal(
42977
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(import_framer_motion5.AnimatePresence, { mode: "sync", children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(import_jsx_runtime172.Fragment, { children: [
42978
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43321
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_framer_motion5.AnimatePresence, { mode: "sync", children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_jsx_runtime173.Fragment, { children: [
43322
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42979
43323
  import_framer_motion5.motion.div,
42980
43324
  {
42981
43325
  initial: { opacity: 0 },
@@ -42990,7 +43334,7 @@ function CreatorExpandedPanel({
42990
43334
  },
42991
43335
  "overlay"
42992
43336
  ),
42993
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
43337
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
42994
43338
  import_framer_motion5.motion.div,
42995
43339
  {
42996
43340
  initial: { x: "100%" },
@@ -42998,19 +43342,19 @@ function CreatorExpandedPanel({
42998
43342
  exit: { x: "100%" },
42999
43343
  transition: { type: "spring", damping: 30, stiffness: 400 },
43000
43344
  className: "fixed top-0 right-0 h-full w-full max-w-7xl bg-background dark:bg-gray25 z-[70] shadow-2xl overflow-y-auto border border-gray300",
43001
- children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "py-4 font-noto", children: [
43002
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex justify-between items-center w-full mb-4 pl-2", children: [
43003
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("button", { onClick: onClose, className: "p-2 rounded-full transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(X, { className: "w-5 h-5" }) }),
43004
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex-1 flex flex-col w-[80%]", children: [
43005
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "flex flex-col md:flex-row justify-between gap-2 md:gap-0 md:items-center pr-16", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "flex flex-col", children: [
43006
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "w-fit rounded-md bg-purple200 px-2 py-[4px] mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("h4", { className: "text-xs font-medium text-purpleText", children: "VERIFIED SEARCH RESULTS" }) }),
43007
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("h2", { className: "text-xl font-bold mb-1", children: "Creators Search Results" })
43345
+ children: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "py-4 font-noto", children: [
43346
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex justify-between items-center w-full mb-4 pl-2", children: [
43347
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("button", { onClick: onClose, className: "p-2 rounded-full transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(X, { className: "w-5 h-5" }) }),
43348
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex-1 flex flex-col w-[80%]", children: [
43349
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "flex flex-col md:flex-row justify-between gap-2 md:gap-0 md:items-center pr-16", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "flex flex-col", children: [
43350
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "w-fit rounded-md bg-purple200 px-2 py-[4px] mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("h4", { className: "text-xs font-medium text-purpleText", children: "VERIFIED SEARCH RESULTS" }) }),
43351
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("h2", { className: "text-xl font-bold mb-1", children: "Creators Search Results" })
43008
43352
  ] }) }),
43009
- searchSpec && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(SearchSpecDisplay, { spec: searchSpec })
43353
+ searchSpec && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(SearchSpecDisplay, { spec: searchSpec })
43010
43354
  ] })
43011
43355
  ] }),
43012
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { className: "border-b border-gray300" }),
43013
- loading ? /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorDisplaySkeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(CreatorDisplay, { creators, isValidationComplete: version !== void 0 })
43356
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "border-b border-gray300" }),
43357
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CreatorDisplaySkeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CreatorDisplay, { creators, isValidationComplete: version !== void 0 })
43014
43358
  ] })
43015
43359
  },
43016
43360
  "creator-panel"
@@ -43021,7 +43365,7 @@ function CreatorExpandedPanel({
43021
43365
  }
43022
43366
 
43023
43367
  // src/molecules/creator-discovery/CreatorWidget/useCreatorWidgetPolling.ts
43024
- var import_react86 = require("react");
43368
+ var import_react87 = require("react");
43025
43369
  var DEFAULT_POLLING_CONFIG = {
43026
43370
  pollInterval: 5e3,
43027
43371
  maxDuration: 15 * 60 * 1e3,
@@ -43038,22 +43382,22 @@ function useCreatorWidgetPolling({
43038
43382
  }) {
43039
43383
  const fetchVersions = fetchVersionsProp ?? defaultFetchVersions;
43040
43384
  const fetchStatus = fetchStatusProp ?? defaultFetchStatus;
43041
- const config = (0, import_react86.useMemo)(
43385
+ const config = (0, import_react87.useMemo)(
43042
43386
  () => ({ ...DEFAULT_POLLING_CONFIG, ...pollingConfig }),
43043
43387
  [pollingConfig]
43044
43388
  );
43045
- const [versionData, setVersionData] = (0, import_react86.useState)(null);
43046
- const [totalVersions, setTotalVersions] = (0, import_react86.useState)(0);
43047
- const [selectedVersion, setSelectedVersion] = (0, import_react86.useState)();
43048
- const [isLoadingVersion, setIsLoadingVersion] = (0, import_react86.useState)(false);
43049
- const [isValidationComplete, setIsValidationComplete] = (0, import_react86.useState)(false);
43050
- const [versionStatus, setVersionStatus] = (0, import_react86.useState)("checking");
43051
- const [statusDetails, setStatusDetails] = (0, import_react86.useState)();
43052
- const [timeDisplay, setTimeDisplay] = (0, import_react86.useState)("");
43053
- const [loadingStatus, setLoadingStatus] = (0, import_react86.useState)(true);
43054
- const remainingTimeRef = (0, import_react86.useRef)(0);
43389
+ const [versionData, setVersionData] = (0, import_react87.useState)(null);
43390
+ const [totalVersions, setTotalVersions] = (0, import_react87.useState)(0);
43391
+ const [selectedVersion, setSelectedVersion] = (0, import_react87.useState)();
43392
+ const [isLoadingVersion, setIsLoadingVersion] = (0, import_react87.useState)(false);
43393
+ const [isValidationComplete, setIsValidationComplete] = (0, import_react87.useState)(false);
43394
+ const [versionStatus, setVersionStatus] = (0, import_react87.useState)("checking");
43395
+ const [statusDetails, setStatusDetails] = (0, import_react87.useState)();
43396
+ const [timeDisplay, setTimeDisplay] = (0, import_react87.useState)("");
43397
+ const [loadingStatus, setLoadingStatus] = (0, import_react87.useState)(true);
43398
+ const remainingTimeRef = (0, import_react87.useRef)(0);
43055
43399
  const requestedVersion = selectedVersion ?? currentVersion ?? versionData?.currentVersion;
43056
- const fetchVersionData = (0, import_react86.useCallback)(async () => {
43400
+ const fetchVersionData = (0, import_react87.useCallback)(async () => {
43057
43401
  if (!sessionId) return;
43058
43402
  if (!versionData) setIsLoadingVersion(true);
43059
43403
  try {
@@ -43074,17 +43418,17 @@ function useCreatorWidgetPolling({
43074
43418
  setIsLoadingVersion(false);
43075
43419
  }
43076
43420
  }, [sessionId, requestedVersion, isValidationComplete, fetchVersions, versionData]);
43077
- (0, import_react86.useEffect)(() => {
43421
+ (0, import_react87.useEffect)(() => {
43078
43422
  fetchVersionData();
43079
43423
  }, [sessionId, requestedVersion, isValidationComplete]);
43080
- (0, import_react86.useEffect)(() => {
43424
+ (0, import_react87.useEffect)(() => {
43081
43425
  if (totalVersions > 0 || !sessionId) return;
43082
43426
  const interval = setInterval(() => {
43083
43427
  if (totalVersions === 0) fetchVersionData();
43084
43428
  }, config.pollInterval);
43085
43429
  return () => clearInterval(interval);
43086
43430
  }, [totalVersions, sessionId, fetchVersionData, config.pollInterval]);
43087
- (0, import_react86.useEffect)(() => {
43431
+ (0, import_react87.useEffect)(() => {
43088
43432
  if (!selectedVersion && !requestedVersion) return;
43089
43433
  const activeVersion = selectedVersion ?? requestedVersion;
43090
43434
  let isMounted = true;
@@ -43167,7 +43511,7 @@ function useCreatorWidgetPolling({
43167
43511
  stopPolling();
43168
43512
  };
43169
43513
  }, [selectedVersion, requestedVersion, sessionId]);
43170
- const versionNumbers = (0, import_react86.useMemo)(() => {
43514
+ const versionNumbers = (0, import_react87.useMemo)(() => {
43171
43515
  if (!totalVersions) return [];
43172
43516
  return Array.from({ length: totalVersions }, (_, i) => i + 1);
43173
43517
  }, [totalVersions]);
@@ -43194,7 +43538,7 @@ function useCreatorWidgetPolling({
43194
43538
  }
43195
43539
 
43196
43540
  // src/molecules/creator-discovery/CreatorWidget/CreatorWidget.tsx
43197
- var import_jsx_runtime173 = require("react/jsx-runtime");
43541
+ var import_jsx_runtime174 = require("react/jsx-runtime");
43198
43542
  function CreatorWidgetInner({
43199
43543
  sessionId,
43200
43544
  currentVersion,
@@ -43207,7 +43551,7 @@ function CreatorWidgetInner({
43207
43551
  onAction,
43208
43552
  className
43209
43553
  }) {
43210
- const [isExpanded, setIsExpanded] = (0, import_react87.useState)(false);
43554
+ const [isExpanded, setIsExpanded] = (0, import_react88.useState)(false);
43211
43555
  const {
43212
43556
  versionNumbers,
43213
43557
  selectedVersion,
@@ -43228,11 +43572,11 @@ function CreatorWidgetInner({
43228
43572
  pollingConfig,
43229
43573
  onStatusChange
43230
43574
  });
43231
- const handleVersionSelect = (0, import_react87.useCallback)(
43575
+ const handleVersionSelect = (0, import_react88.useCallback)(
43232
43576
  (version) => setSelectedVersion(version),
43233
43577
  [setSelectedVersion]
43234
43578
  );
43235
- const handleViewCreators = (0, import_react87.useCallback)(() => {
43579
+ const handleViewCreators = (0, import_react88.useCallback)(() => {
43236
43580
  setIsExpanded(true);
43237
43581
  onAction?.({
43238
43582
  type: "view-creators",
@@ -43242,8 +43586,8 @@ function CreatorWidgetInner({
43242
43586
  searchSpec
43243
43587
  });
43244
43588
  }, [onAction, sessionId, creatorIds, selectedVersion, searchSpec]);
43245
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className, children: [
43246
- /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
43589
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className, children: [
43590
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
43247
43591
  CreatorCompactView,
43248
43592
  {
43249
43593
  versions: versionNumbers,
@@ -43259,7 +43603,7 @@ function CreatorWidgetInner({
43259
43603
  isLoading
43260
43604
  }
43261
43605
  ),
43262
- /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
43606
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
43263
43607
  CreatorExpandedPanel,
43264
43608
  {
43265
43609
  isOpen: isExpanded,
@@ -43273,7 +43617,7 @@ function CreatorWidgetInner({
43273
43617
  )
43274
43618
  ] });
43275
43619
  }
43276
- var CreatorWidget = (0, import_react87.memo)(CreatorWidgetInner);
43620
+ var CreatorWidget = (0, import_react88.memo)(CreatorWidgetInner);
43277
43621
 
43278
43622
  // src/components/ui/index.ts
43279
43623
  var ui_exports = {};
@@ -43567,7 +43911,7 @@ __export(ui_exports, {
43567
43911
  // src/components/ui/button-group.tsx
43568
43912
  var import_react_slot4 = require("@radix-ui/react-slot");
43569
43913
  var import_class_variance_authority8 = require("class-variance-authority");
43570
- var import_jsx_runtime174 = require("react/jsx-runtime");
43914
+ var import_jsx_runtime175 = require("react/jsx-runtime");
43571
43915
  var buttonGroupVariants = (0, import_class_variance_authority8.cva)(
43572
43916
  "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
43573
43917
  {
@@ -43587,7 +43931,7 @@ function ButtonGroup({
43587
43931
  orientation,
43588
43932
  ...props
43589
43933
  }) {
43590
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
43934
+ return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
43591
43935
  "div",
43592
43936
  {
43593
43937
  role: "group",
@@ -43604,7 +43948,7 @@ function ButtonGroupText({
43604
43948
  ...props
43605
43949
  }) {
43606
43950
  const Comp = asChild ? import_react_slot4.Slot : "div";
43607
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
43951
+ return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
43608
43952
  Comp,
43609
43953
  {
43610
43954
  className: cn(
@@ -43620,7 +43964,7 @@ function ButtonGroupSeparator({
43620
43964
  orientation = "vertical",
43621
43965
  ...props
43622
43966
  }) {
43623
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
43967
+ return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
43624
43968
  Separator2,
43625
43969
  {
43626
43970
  "data-slot": "button-group-separator",
@@ -43636,9 +43980,9 @@ function ButtonGroupSeparator({
43636
43980
 
43637
43981
  // src/components/ui/empty.tsx
43638
43982
  var import_class_variance_authority9 = require("class-variance-authority");
43639
- var import_jsx_runtime175 = require("react/jsx-runtime");
43983
+ var import_jsx_runtime176 = require("react/jsx-runtime");
43640
43984
  function Empty({ className, ...props }) {
43641
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
43985
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
43642
43986
  "div",
43643
43987
  {
43644
43988
  "data-slot": "empty",
@@ -43651,7 +43995,7 @@ function Empty({ className, ...props }) {
43651
43995
  );
43652
43996
  }
43653
43997
  function EmptyHeader({ className, ...props }) {
43654
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
43998
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
43655
43999
  "div",
43656
44000
  {
43657
44001
  "data-slot": "empty-header",
@@ -43682,7 +44026,7 @@ function EmptyMedia({
43682
44026
  variant = "default",
43683
44027
  ...props
43684
44028
  }) {
43685
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
44029
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
43686
44030
  "div",
43687
44031
  {
43688
44032
  "data-slot": "empty-icon",
@@ -43693,7 +44037,7 @@ function EmptyMedia({
43693
44037
  );
43694
44038
  }
43695
44039
  function EmptyTitle({ className, ...props }) {
43696
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
44040
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
43697
44041
  "div",
43698
44042
  {
43699
44043
  "data-slot": "empty-title",
@@ -43703,7 +44047,7 @@ function EmptyTitle({ className, ...props }) {
43703
44047
  );
43704
44048
  }
43705
44049
  function EmptyDescription({ className, ...props }) {
43706
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
44050
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
43707
44051
  "div",
43708
44052
  {
43709
44053
  "data-slot": "empty-description",
@@ -43716,7 +44060,7 @@ function EmptyDescription({ className, ...props }) {
43716
44060
  );
43717
44061
  }
43718
44062
  function EmptyContent({ className, ...props }) {
43719
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
44063
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
43720
44064
  "div",
43721
44065
  {
43722
44066
  "data-slot": "empty-content",
@@ -43730,11 +44074,11 @@ function EmptyContent({ className, ...props }) {
43730
44074
  }
43731
44075
 
43732
44076
  // src/components/ui/field.tsx
43733
- var import_react88 = require("react");
44077
+ var import_react89 = require("react");
43734
44078
  var import_class_variance_authority10 = require("class-variance-authority");
43735
- var import_jsx_runtime176 = require("react/jsx-runtime");
44079
+ var import_jsx_runtime177 = require("react/jsx-runtime");
43736
44080
  function FieldSet({ className, ...props }) {
43737
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44081
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43738
44082
  "fieldset",
43739
44083
  {
43740
44084
  "data-slot": "field-set",
@@ -43752,7 +44096,7 @@ function FieldLegend({
43752
44096
  variant = "legend",
43753
44097
  ...props
43754
44098
  }) {
43755
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44099
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43756
44100
  "legend",
43757
44101
  {
43758
44102
  "data-slot": "field-legend",
@@ -43768,7 +44112,7 @@ function FieldLegend({
43768
44112
  );
43769
44113
  }
43770
44114
  function FieldGroup({ className, ...props }) {
43771
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44115
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43772
44116
  "div",
43773
44117
  {
43774
44118
  "data-slot": "field-group",
@@ -43808,7 +44152,7 @@ function Field({
43808
44152
  orientation = "vertical",
43809
44153
  ...props
43810
44154
  }) {
43811
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44155
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43812
44156
  "div",
43813
44157
  {
43814
44158
  role: "group",
@@ -43820,7 +44164,7 @@ function Field({
43820
44164
  );
43821
44165
  }
43822
44166
  function FieldContent({ className, ...props }) {
43823
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44167
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43824
44168
  "div",
43825
44169
  {
43826
44170
  "data-slot": "field-content",
@@ -43836,7 +44180,7 @@ function FieldLabel({
43836
44180
  className,
43837
44181
  ...props
43838
44182
  }) {
43839
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44183
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43840
44184
  Label,
43841
44185
  {
43842
44186
  "data-slot": "field-label",
@@ -43851,7 +44195,7 @@ function FieldLabel({
43851
44195
  );
43852
44196
  }
43853
44197
  function FieldTitle({ className, ...props }) {
43854
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44198
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43855
44199
  "div",
43856
44200
  {
43857
44201
  "data-slot": "field-label",
@@ -43864,7 +44208,7 @@ function FieldTitle({ className, ...props }) {
43864
44208
  );
43865
44209
  }
43866
44210
  function FieldDescription({ className, ...props }) {
43867
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44211
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43868
44212
  "p",
43869
44213
  {
43870
44214
  "data-slot": "field-description",
@@ -43883,7 +44227,7 @@ function FieldSeparator({
43883
44227
  className,
43884
44228
  ...props
43885
44229
  }) {
43886
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)(
44230
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)(
43887
44231
  "div",
43888
44232
  {
43889
44233
  "data-slot": "field-separator",
@@ -43894,8 +44238,8 @@ function FieldSeparator({
43894
44238
  ),
43895
44239
  ...props,
43896
44240
  children: [
43897
- /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
43898
- children && /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44241
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
44242
+ children && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43899
44243
  "span",
43900
44244
  {
43901
44245
  className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
@@ -43913,7 +44257,7 @@ function FieldError({
43913
44257
  errors,
43914
44258
  ...props
43915
44259
  }) {
43916
- const content = (0, import_react88.useMemo)(() => {
44260
+ const content = (0, import_react89.useMemo)(() => {
43917
44261
  if (children) {
43918
44262
  return children;
43919
44263
  }
@@ -43923,14 +44267,14 @@ function FieldError({
43923
44267
  if (errors?.length === 1 && errors[0]?.message) {
43924
44268
  return errors[0].message;
43925
44269
  }
43926
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
43927
- (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("li", { children: error.message }, index)
44270
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map(
44271
+ (error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("li", { children: error.message }, index)
43928
44272
  ) });
43929
44273
  }, [children, errors]);
43930
44274
  if (!content) {
43931
44275
  return null;
43932
44276
  }
43933
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
44277
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
43934
44278
  "div",
43935
44279
  {
43936
44280
  role: "alert",
@@ -43944,9 +44288,9 @@ function FieldError({
43944
44288
 
43945
44289
  // src/components/ui/input-group.tsx
43946
44290
  var import_class_variance_authority11 = require("class-variance-authority");
43947
- var import_jsx_runtime177 = require("react/jsx-runtime");
44291
+ var import_jsx_runtime178 = require("react/jsx-runtime");
43948
44292
  function InputGroup({ className, ...props }) {
43949
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
44293
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
43950
44294
  "div",
43951
44295
  {
43952
44296
  "data-slot": "input-group",
@@ -43990,7 +44334,7 @@ function InputGroupAddon({
43990
44334
  align = "inline-start",
43991
44335
  ...props
43992
44336
  }) {
43993
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
44337
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
43994
44338
  "div",
43995
44339
  {
43996
44340
  role: "group",
@@ -44030,7 +44374,7 @@ function InputGroupButton({
44030
44374
  size = "xs",
44031
44375
  ...props
44032
44376
  }) {
44033
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
44377
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44034
44378
  Button,
44035
44379
  {
44036
44380
  type,
@@ -44042,7 +44386,7 @@ function InputGroupButton({
44042
44386
  );
44043
44387
  }
44044
44388
  function InputGroupText({ className, ...props }) {
44045
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
44389
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44046
44390
  "span",
44047
44391
  {
44048
44392
  className: cn(
@@ -44057,7 +44401,7 @@ function InputGroupInput({
44057
44401
  className,
44058
44402
  ...props
44059
44403
  }) {
44060
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
44404
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44061
44405
  Input,
44062
44406
  {
44063
44407
  "data-slot": "input-group-control",
@@ -44073,7 +44417,7 @@ function InputGroupTextarea({
44073
44417
  className,
44074
44418
  ...props
44075
44419
  }) {
44076
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
44420
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44077
44421
  Textarea,
44078
44422
  {
44079
44423
  "data-slot": "input-group-control",
@@ -44089,9 +44433,9 @@ function InputGroupTextarea({
44089
44433
  // src/components/ui/item.tsx
44090
44434
  var import_react_slot5 = require("@radix-ui/react-slot");
44091
44435
  var import_class_variance_authority12 = require("class-variance-authority");
44092
- var import_jsx_runtime178 = require("react/jsx-runtime");
44436
+ var import_jsx_runtime179 = require("react/jsx-runtime");
44093
44437
  function ItemGroup({ className, ...props }) {
44094
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44438
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44095
44439
  "div",
44096
44440
  {
44097
44441
  role: "list",
@@ -44105,7 +44449,7 @@ function ItemSeparator({
44105
44449
  className,
44106
44450
  ...props
44107
44451
  }) {
44108
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44452
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44109
44453
  Separator2,
44110
44454
  {
44111
44455
  "data-slot": "item-separator",
@@ -44143,7 +44487,7 @@ function Item8({
44143
44487
  ...props
44144
44488
  }) {
44145
44489
  const Comp = asChild ? import_react_slot5.Slot : "div";
44146
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44490
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44147
44491
  Comp,
44148
44492
  {
44149
44493
  "data-slot": "item",
@@ -44174,7 +44518,7 @@ function ItemMedia({
44174
44518
  variant = "default",
44175
44519
  ...props
44176
44520
  }) {
44177
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44521
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44178
44522
  "div",
44179
44523
  {
44180
44524
  "data-slot": "item-media",
@@ -44185,7 +44529,7 @@ function ItemMedia({
44185
44529
  );
44186
44530
  }
44187
44531
  function ItemContent({ className, ...props }) {
44188
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44532
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44189
44533
  "div",
44190
44534
  {
44191
44535
  "data-slot": "item-content",
@@ -44198,7 +44542,7 @@ function ItemContent({ className, ...props }) {
44198
44542
  );
44199
44543
  }
44200
44544
  function ItemTitle({ className, ...props }) {
44201
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44545
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44202
44546
  "div",
44203
44547
  {
44204
44548
  "data-slot": "item-title",
@@ -44211,7 +44555,7 @@ function ItemTitle({ className, ...props }) {
44211
44555
  );
44212
44556
  }
44213
44557
  function ItemDescription({ className, ...props }) {
44214
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44558
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44215
44559
  "p",
44216
44560
  {
44217
44561
  "data-slot": "item-description",
@@ -44225,7 +44569,7 @@ function ItemDescription({ className, ...props }) {
44225
44569
  );
44226
44570
  }
44227
44571
  function ItemActions({ className, ...props }) {
44228
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44572
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44229
44573
  "div",
44230
44574
  {
44231
44575
  "data-slot": "item-actions",
@@ -44235,7 +44579,7 @@ function ItemActions({ className, ...props }) {
44235
44579
  );
44236
44580
  }
44237
44581
  function ItemHeader({ className, ...props }) {
44238
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44582
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44239
44583
  "div",
44240
44584
  {
44241
44585
  "data-slot": "item-header",
@@ -44248,7 +44592,7 @@ function ItemHeader({ className, ...props }) {
44248
44592
  );
44249
44593
  }
44250
44594
  function ItemFooter({ className, ...props }) {
44251
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
44595
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44252
44596
  "div",
44253
44597
  {
44254
44598
  "data-slot": "item-footer",
@@ -44262,9 +44606,9 @@ function ItemFooter({ className, ...props }) {
44262
44606
  }
44263
44607
 
44264
44608
  // src/components/ui/kbd.tsx
44265
- var import_jsx_runtime179 = require("react/jsx-runtime");
44609
+ var import_jsx_runtime180 = require("react/jsx-runtime");
44266
44610
  function Kbd({ className, ...props }) {
44267
- return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44611
+ return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44268
44612
  "kbd",
44269
44613
  {
44270
44614
  "data-slot": "kbd",
@@ -44279,7 +44623,7 @@ function Kbd({ className, ...props }) {
44279
44623
  );
44280
44624
  }
44281
44625
  function KbdGroup({ className, ...props }) {
44282
- return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
44626
+ return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44283
44627
  "kbd",
44284
44628
  {
44285
44629
  "data-slot": "kbd-group",
@@ -44290,16 +44634,16 @@ function KbdGroup({ className, ...props }) {
44290
44634
  }
44291
44635
 
44292
44636
  // src/components/ui/sidebar.tsx
44293
- var React111 = __toESM(require("react"), 1);
44637
+ var React112 = __toESM(require("react"), 1);
44294
44638
  var import_react_slot6 = require("@radix-ui/react-slot");
44295
44639
  var import_class_variance_authority13 = require("class-variance-authority");
44296
44640
 
44297
44641
  // src/hooks/use-mobile.tsx
44298
- var React110 = __toESM(require("react"), 1);
44642
+ var React111 = __toESM(require("react"), 1);
44299
44643
  var MOBILE_BREAKPOINT = 768;
44300
44644
  function useIsMobile() {
44301
- const [isMobile, setIsMobile] = React110.useState(void 0);
44302
- React110.useEffect(() => {
44645
+ const [isMobile, setIsMobile] = React111.useState(void 0);
44646
+ React111.useEffect(() => {
44303
44647
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
44304
44648
  const onChange = () => {
44305
44649
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -44312,22 +44656,22 @@ function useIsMobile() {
44312
44656
  }
44313
44657
 
44314
44658
  // src/components/ui/sidebar.tsx
44315
- var import_jsx_runtime180 = require("react/jsx-runtime");
44659
+ var import_jsx_runtime181 = require("react/jsx-runtime");
44316
44660
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
44317
44661
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
44318
44662
  var SIDEBAR_WIDTH = "16rem";
44319
44663
  var SIDEBAR_WIDTH_MOBILE = "18rem";
44320
44664
  var SIDEBAR_WIDTH_ICON = "3rem";
44321
44665
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
44322
- var SidebarContext = React111.createContext(null);
44666
+ var SidebarContext = React112.createContext(null);
44323
44667
  function useSidebar() {
44324
- const context = React111.useContext(SidebarContext);
44668
+ const context = React112.useContext(SidebarContext);
44325
44669
  if (!context) {
44326
44670
  throw new Error("useSidebar must be used within a SidebarProvider.");
44327
44671
  }
44328
44672
  return context;
44329
44673
  }
44330
- var SidebarProvider = React111.forwardRef(
44674
+ var SidebarProvider = React112.forwardRef(
44331
44675
  ({
44332
44676
  defaultOpen = true,
44333
44677
  open: openProp,
@@ -44338,10 +44682,10 @@ var SidebarProvider = React111.forwardRef(
44338
44682
  ...props
44339
44683
  }, ref) => {
44340
44684
  const isMobile = useIsMobile();
44341
- const [openMobile, setOpenMobile] = React111.useState(false);
44342
- const [_open, _setOpen] = React111.useState(defaultOpen);
44685
+ const [openMobile, setOpenMobile] = React112.useState(false);
44686
+ const [_open, _setOpen] = React112.useState(defaultOpen);
44343
44687
  const open = openProp ?? _open;
44344
- const setOpen = React111.useCallback(
44688
+ const setOpen = React112.useCallback(
44345
44689
  (value) => {
44346
44690
  const openState = typeof value === "function" ? value(open) : value;
44347
44691
  if (setOpenProp) {
@@ -44353,10 +44697,10 @@ var SidebarProvider = React111.forwardRef(
44353
44697
  },
44354
44698
  [setOpenProp, open]
44355
44699
  );
44356
- const toggleSidebar = React111.useCallback(() => {
44700
+ const toggleSidebar = React112.useCallback(() => {
44357
44701
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
44358
44702
  }, [isMobile, setOpen, setOpenMobile]);
44359
- React111.useEffect(() => {
44703
+ React112.useEffect(() => {
44360
44704
  const handleKeyDown = (event) => {
44361
44705
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
44362
44706
  event.preventDefault();
@@ -44367,7 +44711,7 @@ var SidebarProvider = React111.forwardRef(
44367
44711
  return () => window.removeEventListener("keydown", handleKeyDown);
44368
44712
  }, [toggleSidebar]);
44369
44713
  const state = open ? "expanded" : "collapsed";
44370
- const contextValue = React111.useMemo(
44714
+ const contextValue = React112.useMemo(
44371
44715
  () => ({
44372
44716
  state,
44373
44717
  open,
@@ -44379,7 +44723,7 @@ var SidebarProvider = React111.forwardRef(
44379
44723
  }),
44380
44724
  [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
44381
44725
  );
44382
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44726
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44383
44727
  "div",
44384
44728
  {
44385
44729
  style: {
@@ -44399,7 +44743,7 @@ var SidebarProvider = React111.forwardRef(
44399
44743
  }
44400
44744
  );
44401
44745
  SidebarProvider.displayName = "SidebarProvider";
44402
- var Sidebar = React111.forwardRef(
44746
+ var Sidebar = React112.forwardRef(
44403
44747
  ({
44404
44748
  side = "left",
44405
44749
  variant = "sidebar",
@@ -44410,7 +44754,7 @@ var Sidebar = React111.forwardRef(
44410
44754
  }, ref) => {
44411
44755
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
44412
44756
  if (collapsible === "none") {
44413
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44757
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44414
44758
  "div",
44415
44759
  {
44416
44760
  className: cn(
@@ -44424,7 +44768,7 @@ var Sidebar = React111.forwardRef(
44424
44768
  );
44425
44769
  }
44426
44770
  if (isMobile) {
44427
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(Sheet2, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(
44771
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(Sheet2, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(
44428
44772
  SheetContent,
44429
44773
  {
44430
44774
  "data-sidebar": "sidebar",
@@ -44435,16 +44779,16 @@ var Sidebar = React111.forwardRef(
44435
44779
  },
44436
44780
  side,
44437
44781
  children: [
44438
- /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(SheetHeader, { className: "sr-only", children: [
44439
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SheetTitle, { children: "Sidebar" }),
44440
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
44782
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(SheetHeader, { className: "sr-only", children: [
44783
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(SheetTitle, { children: "Sidebar" }),
44784
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
44441
44785
  ] }),
44442
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: "flex h-full w-full flex-col", children })
44786
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: "flex h-full w-full flex-col", children })
44443
44787
  ]
44444
44788
  }
44445
44789
  ) });
44446
44790
  }
44447
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(
44791
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(
44448
44792
  "div",
44449
44793
  {
44450
44794
  ref,
@@ -44454,7 +44798,7 @@ var Sidebar = React111.forwardRef(
44454
44798
  "data-variant": variant,
44455
44799
  "data-side": side,
44456
44800
  children: [
44457
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44801
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44458
44802
  "div",
44459
44803
  {
44460
44804
  className: cn(
@@ -44465,7 +44809,7 @@ var Sidebar = React111.forwardRef(
44465
44809
  )
44466
44810
  }
44467
44811
  ),
44468
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44812
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44469
44813
  "div",
44470
44814
  {
44471
44815
  className: cn(
@@ -44476,7 +44820,7 @@ var Sidebar = React111.forwardRef(
44476
44820
  className
44477
44821
  ),
44478
44822
  ...props,
44479
- children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44823
+ children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44480
44824
  "div",
44481
44825
  {
44482
44826
  "data-sidebar": "sidebar",
@@ -44492,9 +44836,9 @@ var Sidebar = React111.forwardRef(
44492
44836
  }
44493
44837
  );
44494
44838
  Sidebar.displayName = "Sidebar";
44495
- var SidebarTrigger = React111.forwardRef(({ className, onClick, ...props }, ref) => {
44839
+ var SidebarTrigger = React112.forwardRef(({ className, onClick, ...props }, ref) => {
44496
44840
  const { toggleSidebar } = useSidebar();
44497
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(
44841
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(
44498
44842
  Button,
44499
44843
  {
44500
44844
  ref,
@@ -44508,16 +44852,16 @@ var SidebarTrigger = React111.forwardRef(({ className, onClick, ...props }, ref)
44508
44852
  },
44509
44853
  ...props,
44510
44854
  children: [
44511
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(PanelLeft, {}),
44512
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
44855
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(PanelLeft, {}),
44856
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
44513
44857
  ]
44514
44858
  }
44515
44859
  );
44516
44860
  });
44517
44861
  SidebarTrigger.displayName = "SidebarTrigger";
44518
- var SidebarRail = React111.forwardRef(({ className, ...props }, ref) => {
44862
+ var SidebarRail = React112.forwardRef(({ className, ...props }, ref) => {
44519
44863
  const { toggleSidebar } = useSidebar();
44520
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44864
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44521
44865
  "button",
44522
44866
  {
44523
44867
  ref,
@@ -44540,8 +44884,8 @@ var SidebarRail = React111.forwardRef(({ className, ...props }, ref) => {
44540
44884
  );
44541
44885
  });
44542
44886
  SidebarRail.displayName = "SidebarRail";
44543
- var SidebarInset = React111.forwardRef(({ className, ...props }, ref) => {
44544
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44887
+ var SidebarInset = React112.forwardRef(({ className, ...props }, ref) => {
44888
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44545
44889
  "main",
44546
44890
  {
44547
44891
  ref,
@@ -44555,8 +44899,8 @@ var SidebarInset = React111.forwardRef(({ className, ...props }, ref) => {
44555
44899
  );
44556
44900
  });
44557
44901
  SidebarInset.displayName = "SidebarInset";
44558
- var SidebarInput = React111.forwardRef(({ className, ...props }, ref) => {
44559
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44902
+ var SidebarInput = React112.forwardRef(({ className, ...props }, ref) => {
44903
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44560
44904
  Input,
44561
44905
  {
44562
44906
  ref,
@@ -44570,8 +44914,8 @@ var SidebarInput = React111.forwardRef(({ className, ...props }, ref) => {
44570
44914
  );
44571
44915
  });
44572
44916
  SidebarInput.displayName = "SidebarInput";
44573
- var SidebarHeader = React111.forwardRef(({ className, ...props }, ref) => {
44574
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44917
+ var SidebarHeader = React112.forwardRef(({ className, ...props }, ref) => {
44918
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44575
44919
  "div",
44576
44920
  {
44577
44921
  ref,
@@ -44582,8 +44926,8 @@ var SidebarHeader = React111.forwardRef(({ className, ...props }, ref) => {
44582
44926
  );
44583
44927
  });
44584
44928
  SidebarHeader.displayName = "SidebarHeader";
44585
- var SidebarFooter = React111.forwardRef(({ className, ...props }, ref) => {
44586
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44929
+ var SidebarFooter = React112.forwardRef(({ className, ...props }, ref) => {
44930
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44587
44931
  "div",
44588
44932
  {
44589
44933
  ref,
@@ -44594,8 +44938,8 @@ var SidebarFooter = React111.forwardRef(({ className, ...props }, ref) => {
44594
44938
  );
44595
44939
  });
44596
44940
  SidebarFooter.displayName = "SidebarFooter";
44597
- var SidebarSeparator = React111.forwardRef(({ className, ...props }, ref) => {
44598
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44941
+ var SidebarSeparator = React112.forwardRef(({ className, ...props }, ref) => {
44942
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44599
44943
  Separator2,
44600
44944
  {
44601
44945
  ref,
@@ -44606,8 +44950,8 @@ var SidebarSeparator = React111.forwardRef(({ className, ...props }, ref) => {
44606
44950
  );
44607
44951
  });
44608
44952
  SidebarSeparator.displayName = "SidebarSeparator";
44609
- var SidebarContent = React111.forwardRef(({ className, ...props }, ref) => {
44610
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44953
+ var SidebarContent = React112.forwardRef(({ className, ...props }, ref) => {
44954
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44611
44955
  "div",
44612
44956
  {
44613
44957
  ref,
@@ -44621,8 +44965,8 @@ var SidebarContent = React111.forwardRef(({ className, ...props }, ref) => {
44621
44965
  );
44622
44966
  });
44623
44967
  SidebarContent.displayName = "SidebarContent";
44624
- var SidebarGroup = React111.forwardRef(({ className, ...props }, ref) => {
44625
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44968
+ var SidebarGroup = React112.forwardRef(({ className, ...props }, ref) => {
44969
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44626
44970
  "div",
44627
44971
  {
44628
44972
  ref,
@@ -44633,9 +44977,9 @@ var SidebarGroup = React111.forwardRef(({ className, ...props }, ref) => {
44633
44977
  );
44634
44978
  });
44635
44979
  SidebarGroup.displayName = "SidebarGroup";
44636
- var SidebarGroupLabel = React111.forwardRef(({ className, asChild = false, ...props }, ref) => {
44980
+ var SidebarGroupLabel = React112.forwardRef(({ className, asChild = false, ...props }, ref) => {
44637
44981
  const Comp = asChild ? import_react_slot6.Slot : "div";
44638
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44982
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44639
44983
  Comp,
44640
44984
  {
44641
44985
  ref,
@@ -44650,9 +44994,9 @@ var SidebarGroupLabel = React111.forwardRef(({ className, asChild = false, ...pr
44650
44994
  );
44651
44995
  });
44652
44996
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
44653
- var SidebarGroupAction = React111.forwardRef(({ className, asChild = false, ...props }, ref) => {
44997
+ var SidebarGroupAction = React112.forwardRef(({ className, asChild = false, ...props }, ref) => {
44654
44998
  const Comp = asChild ? import_react_slot6.Slot : "button";
44655
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
44999
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44656
45000
  Comp,
44657
45001
  {
44658
45002
  ref,
@@ -44669,7 +45013,7 @@ var SidebarGroupAction = React111.forwardRef(({ className, asChild = false, ...p
44669
45013
  );
44670
45014
  });
44671
45015
  SidebarGroupAction.displayName = "SidebarGroupAction";
44672
- var SidebarGroupContent = React111.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45016
+ var SidebarGroupContent = React112.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44673
45017
  "div",
44674
45018
  {
44675
45019
  ref,
@@ -44679,7 +45023,7 @@ var SidebarGroupContent = React111.forwardRef(({ className, ...props }, ref) =>
44679
45023
  }
44680
45024
  ));
44681
45025
  SidebarGroupContent.displayName = "SidebarGroupContent";
44682
- var SidebarMenu = React111.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45026
+ var SidebarMenu = React112.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44683
45027
  "ul",
44684
45028
  {
44685
45029
  ref,
@@ -44689,7 +45033,7 @@ var SidebarMenu = React111.forwardRef(({ className, ...props }, ref) => /* @__PU
44689
45033
  }
44690
45034
  ));
44691
45035
  SidebarMenu.displayName = "SidebarMenu";
44692
- var SidebarMenuItem = React111.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45036
+ var SidebarMenuItem = React112.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44693
45037
  "li",
44694
45038
  {
44695
45039
  ref,
@@ -44719,7 +45063,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority13.cva)(
44719
45063
  }
44720
45064
  }
44721
45065
  );
44722
- var SidebarMenuButton = React111.forwardRef(
45066
+ var SidebarMenuButton = React112.forwardRef(
44723
45067
  ({
44724
45068
  asChild = false,
44725
45069
  isActive = false,
@@ -44731,7 +45075,7 @@ var SidebarMenuButton = React111.forwardRef(
44731
45075
  }, ref) => {
44732
45076
  const Comp = asChild ? import_react_slot6.Slot : "button";
44733
45077
  const { isMobile, state } = useSidebar();
44734
- const button = /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45078
+ const button = /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44735
45079
  Comp,
44736
45080
  {
44737
45081
  ref,
@@ -44750,9 +45094,9 @@ var SidebarMenuButton = React111.forwardRef(
44750
45094
  children: tooltip
44751
45095
  };
44752
45096
  }
44753
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(Tooltip, { children: [
44754
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(TooltipTrigger, { asChild: true, children: button }),
44755
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45097
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(Tooltip, { children: [
45098
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(TooltipTrigger, { asChild: true, children: button }),
45099
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44756
45100
  TooltipContent,
44757
45101
  {
44758
45102
  side: "right",
@@ -44765,9 +45109,9 @@ var SidebarMenuButton = React111.forwardRef(
44765
45109
  }
44766
45110
  );
44767
45111
  SidebarMenuButton.displayName = "SidebarMenuButton";
44768
- var SidebarMenuAction = React111.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
45112
+ var SidebarMenuAction = React112.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
44769
45113
  const Comp = asChild ? import_react_slot6.Slot : "button";
44770
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45114
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44771
45115
  Comp,
44772
45116
  {
44773
45117
  ref,
@@ -44788,7 +45132,7 @@ var SidebarMenuAction = React111.forwardRef(({ className, asChild = false, showO
44788
45132
  );
44789
45133
  });
44790
45134
  SidebarMenuAction.displayName = "SidebarMenuAction";
44791
- var SidebarMenuBadge = React111.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45135
+ var SidebarMenuBadge = React112.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44792
45136
  "div",
44793
45137
  {
44794
45138
  ref,
@@ -44806,11 +45150,11 @@ var SidebarMenuBadge = React111.forwardRef(({ className, ...props }, ref) => /*
44806
45150
  }
44807
45151
  ));
44808
45152
  SidebarMenuBadge.displayName = "SidebarMenuBadge";
44809
- var SidebarMenuSkeleton = React111.forwardRef(({ className, showIcon = false, ...props }, ref) => {
44810
- const width = React111.useMemo(() => {
45153
+ var SidebarMenuSkeleton = React112.forwardRef(({ className, showIcon = false, ...props }, ref) => {
45154
+ const width = React112.useMemo(() => {
44811
45155
  return `${Math.floor(Math.random() * 40) + 50}%`;
44812
45156
  }, []);
44813
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(
45157
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(
44814
45158
  "div",
44815
45159
  {
44816
45160
  ref,
@@ -44818,14 +45162,14 @@ var SidebarMenuSkeleton = React111.forwardRef(({ className, showIcon = false, ..
44818
45162
  className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
44819
45163
  ...props,
44820
45164
  children: [
44821
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45165
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44822
45166
  Skeleton,
44823
45167
  {
44824
45168
  className: "size-4 rounded-md",
44825
45169
  "data-sidebar": "menu-skeleton-icon"
44826
45170
  }
44827
45171
  ),
44828
- /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45172
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44829
45173
  Skeleton,
44830
45174
  {
44831
45175
  className: "h-4 max-w-[--skeleton-width] flex-1",
@@ -44840,7 +45184,7 @@ var SidebarMenuSkeleton = React111.forwardRef(({ className, showIcon = false, ..
44840
45184
  );
44841
45185
  });
44842
45186
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
44843
- var SidebarMenuSub = React111.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45187
+ var SidebarMenuSub = React112.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44844
45188
  "ul",
44845
45189
  {
44846
45190
  ref,
@@ -44854,11 +45198,11 @@ var SidebarMenuSub = React111.forwardRef(({ className, ...props }, ref) => /* @_
44854
45198
  }
44855
45199
  ));
44856
45200
  SidebarMenuSub.displayName = "SidebarMenuSub";
44857
- var SidebarMenuSubItem = React111.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("li", { ref, ...props }));
45201
+ var SidebarMenuSubItem = React112.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("li", { ref, ...props }));
44858
45202
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
44859
- var SidebarMenuSubButton = React111.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
45203
+ var SidebarMenuSubButton = React112.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
44860
45204
  const Comp = asChild ? import_react_slot6.Slot : "a";
44861
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
45205
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
44862
45206
  Comp,
44863
45207
  {
44864
45208
  ref,
@@ -44882,20 +45226,20 @@ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
44882
45226
  // src/components/ui/sonner.tsx
44883
45227
  var import_next_themes = require("next-themes");
44884
45228
  var import_sonner = require("sonner");
44885
- var import_jsx_runtime181 = require("react/jsx-runtime");
45229
+ var import_jsx_runtime182 = require("react/jsx-runtime");
44886
45230
  var Toaster = ({ ...props }) => {
44887
45231
  const { theme = "system" } = (0, import_next_themes.useTheme)();
44888
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
45232
+ return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
44889
45233
  import_sonner.Toaster,
44890
45234
  {
44891
45235
  theme,
44892
45236
  className: "toaster group",
44893
45237
  icons: {
44894
- success: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(CircleCheck, { className: "h-4 w-4" }),
44895
- info: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(Info, { className: "h-4 w-4" }),
44896
- warning: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(TriangleAlert, { className: "h-4 w-4" }),
44897
- error: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(OctagonX, { className: "h-4 w-4" }),
44898
- loading: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(LoaderCircle, { className: "h-4 w-4 animate-spin" })
45238
+ success: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(CircleCheck, { className: "h-4 w-4" }),
45239
+ info: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Info, { className: "h-4 w-4" }),
45240
+ warning: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(TriangleAlert, { className: "h-4 w-4" }),
45241
+ error: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(OctagonX, { className: "h-4 w-4" }),
45242
+ loading: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(LoaderCircle, { className: "h-4 w-4 animate-spin" })
44899
45243
  },
44900
45244
  toastOptions: {
44901
45245
  classNames: {
@@ -44911,26 +45255,26 @@ var Toaster = ({ ...props }) => {
44911
45255
  };
44912
45256
 
44913
45257
  // src/components/ui/toggle-group.tsx
44914
- var React112 = __toESM(require("react"), 1);
45258
+ var React113 = __toESM(require("react"), 1);
44915
45259
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
44916
- var import_jsx_runtime182 = require("react/jsx-runtime");
44917
- var ToggleGroupContext = React112.createContext({
45260
+ var import_jsx_runtime183 = require("react/jsx-runtime");
45261
+ var ToggleGroupContext = React113.createContext({
44918
45262
  size: "default",
44919
45263
  variant: "default"
44920
45264
  });
44921
- var ToggleGroup = React112.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
45265
+ var ToggleGroup = React113.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
44922
45266
  ToggleGroupPrimitive.Root,
44923
45267
  {
44924
45268
  ref,
44925
45269
  className: cn("flex items-center justify-center gap-1", className),
44926
45270
  ...props,
44927
- children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
45271
+ children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
44928
45272
  }
44929
45273
  ));
44930
45274
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
44931
- var ToggleGroupItem = React112.forwardRef(({ className, children, variant, size, ...props }, ref) => {
44932
- const context = React112.useContext(ToggleGroupContext);
44933
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
45275
+ var ToggleGroupItem = React113.forwardRef(({ className, children, variant, size, ...props }, ref) => {
45276
+ const context = React113.useContext(ToggleGroupContext);
45277
+ return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
44934
45278
  ToggleGroupPrimitive.Item,
44935
45279
  {
44936
45280
  ref,
@@ -44949,7 +45293,7 @@ var ToggleGroupItem = React112.forwardRef(({ className, children, variant, size,
44949
45293
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
44950
45294
 
44951
45295
  // src/render/PXEngineRenderer.tsx
44952
- var import_jsx_runtime183 = require("react/jsx-runtime");
45296
+ var import_jsx_runtime184 = require("react/jsx-runtime");
44953
45297
  var CONTEXT_DEPENDENT_COMPONENTS = /* @__PURE__ */ new Set([
44954
45298
  // Form components - require FormField + FormItem context
44955
45299
  "FormLabel",
@@ -45054,24 +45398,24 @@ var REGISTERED_COMPONENTS = /* @__PURE__ */ new Set([
45054
45398
  ]);
45055
45399
  var renderContextDependentError = (componentName, normalizedName, key) => {
45056
45400
  const suggestion = COMPONENT_SUGGESTIONS[normalizedName] || `${componentName}Atom (if available)`;
45057
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)(
45401
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(
45058
45402
  "div",
45059
45403
  {
45060
45404
  className: "p-4 border-2 border-amber-500/50 rounded-lg bg-amber-50/80 space-y-2 my-2",
45061
45405
  children: [
45062
- /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { className: "flex items-start gap-2", children: [
45063
- /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("span", { className: "text-amber-600 font-bold text-lg", children: "\u26A0\uFE0F" }),
45064
- /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { className: "flex-1", children: [
45065
- /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("p", { className: "text-sm font-semibold text-amber-900", children: [
45406
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)("div", { className: "flex items-start gap-2", children: [
45407
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("span", { className: "text-amber-600 font-bold text-lg", children: "\u26A0\uFE0F" }),
45408
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)("div", { className: "flex-1", children: [
45409
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)("p", { className: "text-sm font-semibold text-amber-900", children: [
45066
45410
  "Invalid Component: ",
45067
45411
  componentName
45068
45412
  ] }),
45069
- /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("p", { className: "text-xs text-amber-700 mt-1", children: "This component requires React Context and cannot be rendered directly in schemas." })
45413
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("p", { className: "text-xs text-amber-700 mt-1", children: "This component requires React Context and cannot be rendered directly in schemas." })
45070
45414
  ] })
45071
45415
  ] }),
45072
- /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { className: "bg-white/60 p-3 rounded border border-amber-200", children: [
45073
- /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("p", { className: "text-xs font-semibold text-gray-700 mb-1.5", children: "\u2713 Use instead:" }),
45074
- /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("code", { className: "text-xs text-blue-700 bg-blue-50 px-2 py-1 rounded", children: suggestion })
45416
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)("div", { className: "bg-white/60 p-3 rounded border border-amber-200", children: [
45417
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("p", { className: "text-xs font-semibold text-gray-700 mb-1.5", children: "\u2713 Use instead:" }),
45418
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("code", { className: "text-xs text-blue-700 bg-blue-50 px-2 py-1 rounded", children: suggestion })
45075
45419
  ] })
45076
45420
  ]
45077
45421
  },
@@ -45149,12 +45493,12 @@ var PXEngineRenderer = ({
45149
45493
  const root = schema.root || schema;
45150
45494
  const renderRecursive = (component, index) => {
45151
45495
  if (Array.isArray(component)) {
45152
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_react89.default.Fragment, { children: component.map((child, idx) => renderRecursive(child, idx)) }, index !== void 0 ? `array-${index}` : "array-root");
45496
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(import_react90.default.Fragment, { children: component.map((child, idx) => renderRecursive(child, idx)) }, index !== void 0 ? `array-${index}` : "array-root");
45153
45497
  }
45154
45498
  if (typeof component === "string" || typeof component === "number") {
45155
45499
  return component;
45156
45500
  }
45157
- if (import_react89.default.isValidElement(component)) {
45501
+ if (import_react90.default.isValidElement(component)) {
45158
45502
  return component;
45159
45503
  }
45160
45504
  if (!component || typeof component !== "object") return null;
@@ -45233,7 +45577,7 @@ var PXEngineRenderer = ({
45233
45577
  const isAtomWithRenderProp = ATOMS_WITH_RENDER.has(atomName);
45234
45578
  const finalStyle = { ...dynamicStyle, ...finalProps.style || {} };
45235
45579
  if (isAtomWithRenderProp) {
45236
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
45580
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
45237
45581
  TargetComponent,
45238
45582
  {
45239
45583
  ...finalProps,
@@ -45245,7 +45589,7 @@ var PXEngineRenderer = ({
45245
45589
  uniqueKey
45246
45590
  );
45247
45591
  } else {
45248
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
45592
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
45249
45593
  TargetComponent,
45250
45594
  {
45251
45595
  ...finalProps,
@@ -45257,7 +45601,7 @@ var PXEngineRenderer = ({
45257
45601
  );
45258
45602
  }
45259
45603
  };
45260
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("div", { className: "px-engine-root relative w-full h-full", children: renderRecursive(root) });
45604
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("div", { className: "px-engine-root relative w-full h-full", children: renderRecursive(root) });
45261
45605
  };
45262
45606
  // Annotate the CommonJS export names for ESM import in node:
45263
45607
  0 && (module.exports = {
@@ -45484,6 +45828,7 @@ var PXEngineRenderer = ({
45484
45828
  PopoverAtom,
45485
45829
  PopoverContent,
45486
45830
  PopoverTrigger,
45831
+ PresentationJobCard,
45487
45832
  PriorityActionsCard,
45488
45833
  Progress,
45489
45834
  ProgressAtom,