@flamingo-stack/openframe-frontend-core 0.0.234 → 0.0.235

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.
Files changed (90) hide show
  1. package/dist/{chunk-DHCGJW3G.js → chunk-2MHQE5ET.js} +8 -6
  2. package/dist/chunk-2MHQE5ET.js.map +1 -0
  3. package/dist/{chunk-E6B4B7GM.cjs → chunk-4Y7427BF.cjs} +49 -49
  4. package/dist/{chunk-E6B4B7GM.cjs.map → chunk-4Y7427BF.cjs.map} +1 -1
  5. package/dist/chunk-76NMNINV.js +162 -0
  6. package/dist/chunk-76NMNINV.js.map +1 -0
  7. package/dist/{chunk-Z46NRJWW.js → chunk-ABSGXVGP.js} +2 -2
  8. package/dist/chunk-CG6AZ2MC.cjs +162 -0
  9. package/dist/chunk-CG6AZ2MC.cjs.map +1 -0
  10. package/dist/{chunk-GSD52WAS.js → chunk-EI36Q3EC.js} +4 -4
  11. package/dist/{chunk-UYWJM2LS.cjs → chunk-ETFVD7QU.cjs} +12 -12
  12. package/dist/{chunk-UYWJM2LS.cjs.map → chunk-ETFVD7QU.cjs.map} +1 -1
  13. package/dist/{chunk-YZDUOUMB.js → chunk-FWYMYXL7.js} +2 -2
  14. package/dist/{chunk-F6F525T7.js → chunk-GW6J7IPD.js} +2 -2
  15. package/dist/{chunk-52PRKXK4.cjs → chunk-HJRWBA7M.cjs} +32 -32
  16. package/dist/{chunk-52PRKXK4.cjs.map → chunk-HJRWBA7M.cjs.map} +1 -1
  17. package/dist/{chunk-IBSZ27Y7.cjs → chunk-M4CWPAIB.cjs} +7 -7
  18. package/dist/{chunk-IBSZ27Y7.cjs.map → chunk-M4CWPAIB.cjs.map} +1 -1
  19. package/dist/{chunk-EO3RG6II.cjs → chunk-MDWFPCHN.cjs} +16 -16
  20. package/dist/{chunk-EO3RG6II.cjs.map → chunk-MDWFPCHN.cjs.map} +1 -1
  21. package/dist/{chunk-BOF5MSRY.js → chunk-VO3K4EEG.js} +3 -3
  22. package/dist/{chunk-MWW7LKDN.cjs → chunk-W4NBBPQL.cjs} +8 -8
  23. package/dist/{chunk-MWW7LKDN.cjs.map → chunk-W4NBBPQL.cjs.map} +1 -1
  24. package/dist/{chunk-W7P7RH2X.cjs → chunk-X4SQ2S7Z.cjs} +1275 -1273
  25. package/dist/chunk-X4SQ2S7Z.cjs.map +1 -0
  26. package/dist/{chunk-GYRRSOTR.cjs → chunk-X6WUWOL5.cjs} +38 -38
  27. package/dist/{chunk-GYRRSOTR.cjs.map → chunk-X6WUWOL5.cjs.map} +1 -1
  28. package/dist/{chunk-LLTUSEHF.js → chunk-Z6FT2JDQ.js} +3 -3
  29. package/dist/{chunk-D3S2ODUI.js → chunk-ZLQT3T4F.js} +4 -4
  30. package/dist/components/chat/index.cjs +6 -6
  31. package/dist/components/chat/index.js +5 -5
  32. package/dist/components/contact/index.cjs +7 -7
  33. package/dist/components/contact/index.js +6 -6
  34. package/dist/components/features/index.cjs +6 -6
  35. package/dist/components/features/index.js +5 -5
  36. package/dist/components/icons/index.cjs +3 -3
  37. package/dist/components/icons/index.js +2 -2
  38. package/dist/components/index.cjs +236 -236
  39. package/dist/components/index.js +8 -8
  40. package/dist/components/navigation/index.cjs +6 -6
  41. package/dist/components/navigation/index.js +5 -5
  42. package/dist/components/onboarding-guides/index.cjs +30 -30
  43. package/dist/components/onboarding-guides/index.js +7 -7
  44. package/dist/components/resizable.d.ts +1 -1
  45. package/dist/components/tickets/index.cjs +89 -89
  46. package/dist/components/tickets/index.js +8 -8
  47. package/dist/components/ui/file-manager/index.cjs +69 -69
  48. package/dist/components/ui/file-manager/index.js +2 -2
  49. package/dist/components/ui/index.cjs +6 -6
  50. package/dist/components/ui/index.js +5 -5
  51. package/dist/hooks/index.cjs +4 -4
  52. package/dist/hooks/index.js +3 -3
  53. package/dist/index.cjs +6 -6
  54. package/dist/index.js +5 -5
  55. package/dist/platform-domains.cjs +127 -0
  56. package/dist/platform-domains.cjs.map +1 -0
  57. package/dist/platform-domains.d.ts +75 -0
  58. package/dist/platform-domains.d.ts.map +1 -0
  59. package/dist/platform-domains.js +115 -0
  60. package/dist/platform-domains.js.map +1 -0
  61. package/dist/types/index.cjs +80 -0
  62. package/dist/types/index.cjs.map +1 -1
  63. package/dist/types/index.js +80 -0
  64. package/dist/types/index.js.map +1 -1
  65. package/dist/utils/cn.d.ts +8 -43
  66. package/dist/utils/cn.d.ts.map +1 -1
  67. package/dist/utils/index.cjs +106 -72
  68. package/dist/utils/index.cjs.map +1 -1
  69. package/dist/utils/index.d.ts +3 -2
  70. package/dist/utils/index.d.ts.map +1 -1
  71. package/dist/utils/index.js +106 -72
  72. package/dist/utils/index.js.map +1 -1
  73. package/package.json +7 -1
  74. package/src/__tests__/platform-domains.test.ts +137 -0
  75. package/src/platform-domains.ts +238 -0
  76. package/src/utils/cn.ts +18 -134
  77. package/src/utils/index.ts +7 -2
  78. package/dist/chunk-2TBN53KY.cjs +0 -122
  79. package/dist/chunk-2TBN53KY.cjs.map +0 -1
  80. package/dist/chunk-DHCGJW3G.js.map +0 -1
  81. package/dist/chunk-W7P7RH2X.cjs.map +0 -1
  82. package/dist/chunk-YICWWZ3Z.js +0 -122
  83. package/dist/chunk-YICWWZ3Z.js.map +0 -1
  84. /package/dist/{chunk-Z46NRJWW.js.map → chunk-ABSGXVGP.js.map} +0 -0
  85. /package/dist/{chunk-GSD52WAS.js.map → chunk-EI36Q3EC.js.map} +0 -0
  86. /package/dist/{chunk-YZDUOUMB.js.map → chunk-FWYMYXL7.js.map} +0 -0
  87. /package/dist/{chunk-F6F525T7.js.map → chunk-GW6J7IPD.js.map} +0 -0
  88. /package/dist/{chunk-BOF5MSRY.js.map → chunk-VO3K4EEG.js.map} +0 -0
  89. /package/dist/{chunk-LLTUSEHF.js.map → chunk-Z6FT2JDQ.js.map} +0 -0
  90. /package/dist/{chunk-D3S2ODUI.js.map → chunk-ZLQT3T4F.js.map} +0 -0
@@ -6,11 +6,11 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkW7P7RH2Xcjs = require('./chunk-W7P7RH2X.cjs');
9
+ var _chunkX4SQ2S7Zcjs = require('./chunk-X4SQ2S7Z.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkE6B4B7GMcjs = require('./chunk-E6B4B7GM.cjs');
13
+ var _chunk4Y7427BFcjs = require('./chunk-4Y7427BF.cjs');
14
14
 
15
15
 
16
16
 
@@ -24,7 +24,7 @@ var _chunkG7UE6RKVcjs = require('./chunk-G7UE6RKV.cjs');
24
24
 
25
25
 
26
26
 
27
- var _chunk2TBN53KYcjs = require('./chunk-2TBN53KY.cjs');
27
+ var _chunkCG6AZ2MCcjs = require('./chunk-CG6AZ2MC.cjs');
28
28
 
29
29
 
30
30
 
@@ -64,7 +64,7 @@ function UnifiedPagination({
64
64
  };
65
65
  if (totalPages <= 1) return null;
66
66
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
67
- _chunkW7P7RH2Xcjs.Pagination,
67
+ _chunkX4SQ2S7Zcjs.Pagination,
68
68
  {
69
69
  currentPage,
70
70
  totalPages,
@@ -77,12 +77,12 @@ var init_unified_pagination = _chunkVRHGVLSLcjs.__esm.call(void 0, {
77
77
  "use strict";
78
78
  "use client";
79
79
  _chunkG7UE6RKVcjs.init_next_navigation.call(void 0, );
80
- _chunkW7P7RH2Xcjs.init_pagination.call(void 0, );
80
+ _chunkX4SQ2S7Zcjs.init_pagination.call(void 0, );
81
81
  }
82
82
  });
83
83
 
84
84
  // src/components/empty-state.tsx
85
- _chunkE6B4B7GMcjs.init_button2.call(void 0, );
85
+ _chunk4Y7427BFcjs.init_button2.call(void 0, );
86
86
  _chunkG7UE6RKVcjs.init_next_navigation.call(void 0, );
87
87
  var _lucidereact = require('lucide-react');
88
88
 
@@ -208,7 +208,7 @@ function EmptyState({
208
208
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 md:mb-3 text-lg md:text-xl font-semibold font-['DM_Sans'] text-ods-text-primary tracking-[-0.02em]", children: displayTitle }),
209
209
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-4 md:mb-8 max-w-md text-sm font-medium font-['DM_Sans'] text-ods-text-secondary leading-[1.43em]", children: displayDescription }),
210
210
  showCTA && smartCTA && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full max-w-xs mb-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
211
- _chunkE6B4B7GMcjs.Button,
211
+ _chunk4Y7427BFcjs.Button,
212
212
  {
213
213
  onClick: smartCTA.action,
214
214
  className: ctaVariant === "primary" ? "w-full bg-ods-accent text-ods-text-on-accent hover:bg-ods-accent-hover transition-all duration-150 font-['DM_Sans'] font-medium" : "w-full bg-transparent border border-ods-border text-ods-text-primary hover:border-ods-accent hover:text-ods-accent transition-all duration-150 font-['DM_Sans'] font-medium",
@@ -216,7 +216,7 @@ function EmptyState({
216
216
  }
217
217
  ) }),
218
218
  showBackButton && onGoBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full max-w-xs", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
219
- _chunkE6B4B7GMcjs.Button,
219
+ _chunk4Y7427BFcjs.Button,
220
220
  {
221
221
  onClick: onGoBack,
222
222
  variant: "outline",
@@ -229,7 +229,7 @@ function EmptyState({
229
229
 
230
230
  // src/components/shared/delivery/delivery-row.tsx
231
231
  _chunkWBR7H6E3cjs.init_next_link.call(void 0, );
232
- _chunk2TBN53KYcjs.init_cn.call(void 0, );
232
+ _chunkCG6AZ2MCcjs.init_cn.call(void 0, );
233
233
 
234
234
  function getRelativeTime(timestamp) {
235
235
  const now = Date.now();
@@ -249,9 +249,9 @@ function DeliveryRow({
249
249
  className
250
250
  }) {
251
251
  const taskType = item.taskType;
252
- const typeBadgeLabel = _chunkW7P7RH2Xcjs.TASK_TYPE_LABELS[taskType] || "TASK";
253
- const typeBadgeTextColor = _chunkW7P7RH2Xcjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
254
- const statusBadgeScheme = _chunkW7P7RH2Xcjs.getStatusColorScheme.call(void 0, item.status);
252
+ const typeBadgeLabel = _chunkX4SQ2S7Zcjs.TASK_TYPE_LABELS[taskType] || "TASK";
253
+ const typeBadgeTextColor = _chunkX4SQ2S7Zcjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
254
+ const statusBadgeScheme = _chunkX4SQ2S7Zcjs.getStatusColorScheme.call(void 0, item.status);
255
255
  const relativeTime = getRelativeTime(item.dateUpdated);
256
256
  const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(", ")}` : ""}, ${item.id}`;
257
257
  const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col md:flex-row items-start justify-between gap-[12px] md:gap-[16px] w-full", children: [
@@ -263,7 +263,7 @@ function DeliveryRow({
263
263
  ] }),
264
264
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-shrink-0 self-start flex flex-col gap-2", children: [
265
265
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
266
- _chunkW7P7RH2Xcjs.StatusBadge,
266
+ _chunkX4SQ2S7Zcjs.StatusBadge,
267
267
  {
268
268
  text: item.status.toUpperCase(),
269
269
  colorScheme: statusBadgeScheme,
@@ -272,7 +272,7 @@ function DeliveryRow({
272
272
  }
273
273
  ),
274
274
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
275
- _chunkW7P7RH2Xcjs.StatusBadge,
275
+ _chunkX4SQ2S7Zcjs.StatusBadge,
276
276
  {
277
277
  text: typeBadgeLabel,
278
278
  variant: "card",
@@ -281,7 +281,7 @@ function DeliveryRow({
281
281
  )
282
282
  ] })
283
283
  ] });
284
- const baseClass = _chunk2TBN53KYcjs.cn.call(void 0,
284
+ const baseClass = _chunkCG6AZ2MCcjs.cn.call(void 0,
285
285
  "block p-[12px] md:p-[16px] no-underline text-inherit transition-colors duration-150",
286
286
  href && "hover:bg-ods-bg-hover cursor-pointer",
287
287
  className
@@ -299,4 +299,4 @@ function DeliveryRow({
299
299
 
300
300
 
301
301
  exports.EmptyState = EmptyState; exports.UnifiedPagination = UnifiedPagination; exports.unified_pagination_exports = unified_pagination_exports; exports.init_unified_pagination = init_unified_pagination; exports.DeliveryRow = DeliveryRow;
302
- //# sourceMappingURL=chunk-EO3RG6II.cjs.map
302
+ //# sourceMappingURL=chunk-MDWFPCHN.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-EO3RG6II.cjs","../src/components/unified-pagination.tsx","../src/components/empty-state.tsx","../src/components/shared/delivery/delivery-row.tsx"],"names":["jsx","jsxs"],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;AChCA,IAAA,2BAAA,EAAA,CAAA,CAAA;AAAA,wCAAA,0BAAA,EAAA;AAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,GAAA;AAAA,CAAA,CAAA;AAqDM,+CAAA;AAzCC,SAAS,iBAAA,CAAkB;AAAA,EAChC,WAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA,EAAY;AACd,CAAA,EAA2B;AACzB,EAAA,MAAM,OAAA,EAAS,yCAAA,CAAU;AACzB,EAAA,MAAM,aAAA,EAAe,+CAAA,CAAgB;AACrC,EAAA,MAAM,SAAA,EAAW,2CAAA,CAAY;AAE7B,EAAA,MAAM,iBAAA,EAAmB,CAAC,IAAA,EAAA,GAAiB;AAEzC,IAAA,MAAM,eAAA,EAAiB,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EAAA;AACW,EAAA;AAGf,EAAA;AAEEC,oBAAAA;AAEI,MAAA;AAIF,sBAAA;AAKA,sBAAA;AAKA,sBAAA;AAKF,IAAA;AAGAA,oBAAAA;AACE,sBAAA;AAAC,QAAA;AAAA,QAAA;AACO,UAAA;AACN,UAAA;AACQ,UAAA;AACR,UAAA;AAAU,QAAA;AACZ,MAAA;AACA,sBAAA;AAAC,QAAA;AAAA,QAAA;AACO,UAAA;AACE,UAAA;AACR,UAAA;AAAyD,QAAA;AAC3D,MAAA;AACF,IAAA;AACF,EAAA;AAGgB,EAAA;AAChB,IAAA;AACQ,IAAA;AACR,IAAA;AACF,EAAA;AAEU,EAAA;AAQN,IAAA;AAIJ,EAAA;AAEO,EAAA;AACT;AHuJoB;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-EO3RG6II.cjs","sourcesContent":[null,"\"use client\"\n\nimport { useRouter, useSearchParams, usePathname } from \"../embed-shims/next-navigation\"\nimport { Pagination } from \"./pagination\"\n\ninterface UnifiedPaginationProps {\n currentPage: number\n totalPages: number\n onPageChange?: (page: number) => void\n className?: string\n}\n\nexport function UnifiedPagination({ \n currentPage, \n totalPages, \n onPageChange,\n className = \"mt-8 flex justify-center w-full\"\n}: UnifiedPaginationProps) {\n const router = useRouter()\n const searchParams = useSearchParams()\n const pathname = usePathname()\n\n const handlePageChange = (page: number) => {\n // Preserve current scroll position\n const currentScrollY = window.scrollY\n \n // Call the callback to update local state (prevents reload)\n if (onPageChange) {\n onPageChange(page)\n }\n \n // Update URL for bookmarking without navigation\n const params = new URLSearchParams(searchParams.toString())\n params.set(\"page\", page.toString())\n \n // Update URL without navigation (for bookmarking support)\n const newUrl = `${pathname}?${params.toString()}`\n window.history.replaceState(null, '', newUrl)\n \n // Restore scroll position after a brief delay to allow content to render\n setTimeout(() => {\n window.scrollTo({\n top: currentScrollY,\n behavior: 'instant' // Instant to prevent any scroll animation\n })\n }, 0)\n }\n\n // Don't render pagination if there's only one page\n if (totalPages <= 1) return null\n\n return (\n <div className={className}>\n <Pagination\n currentPage={currentPage}\n totalPages={totalPages}\n onPageChange={handlePageChange}\n />\n </div>\n )\n} ","\"use client\";\n\nimport { Search, FileText, Package } from \"lucide-react\"\nimport { Button } from \"./ui/button\"\nimport { useRouter } from \"../embed-shims/next-navigation\"\n\nexport interface EmptyStateProps {\n type: 'vendors' | 'posts' | 'search' | 'generic'\n title?: string\n description?: string\n showBackButton?: boolean\n onGoBack?: () => void\n backButtonText?: string\n // New CTA properties\n showCTA?: boolean\n ctaText?: string\n onCtaClick?: () => void\n ctaVariant?: 'primary' | 'secondary'\n}\n\nexport function EmptyState({\n type,\n title,\n description,\n showBackButton = false,\n onGoBack,\n backButtonText = \"Go Back\",\n showCTA = true,\n ctaText,\n onCtaClick,\n ctaVariant = 'primary'\n}: EmptyStateProps) {\n const router = useRouter()\n\n // Default content based on type\n const getDefaultContent = () => {\n switch (type) {\n case 'vendors':\n return {\n icon: <Package className=\"w-full h-full\" />,\n title: \"No vendors found\",\n description: \"We couldn't find any vendors matching your criteria. Try adjusting your filters or search terms.\"\n }\n case 'posts':\n return {\n icon: <FileText className=\"w-full h-full\" />,\n title: \"No articles found\",\n description: \"We couldn't find any articles matching your criteria. Try different categories, tags, or search terms.\"\n }\n case 'search':\n return {\n icon: <Search className=\"w-full h-full\" />,\n title: \"No results found\",\n description: \"Your search didn't return any results. Try different keywords or browse our categories.\"\n }\n default:\n return {\n icon: <Search className=\"w-full h-full\" />,\n title: \"Nothing found\",\n description: \"We couldn't find what you're looking for. Try adjusting your search or filters.\"\n }\n }\n }\n\n // Smart CTA logic based on context\n const getSmartCTA = () => {\n // If custom CTA is provided, use it\n if (ctaText && onCtaClick) {\n return {\n text: ctaText,\n action: onCtaClick\n }\n }\n\n // Check if we're on the client side\n const isClient = typeof window !== 'undefined'\n const currentPath = isClient ? window.location.pathname : ''\n\n // Smart defaults based on type and context\n switch (type) {\n case 'search':\n return {\n text: \"Reset Filters\",\n action: () => {\n if (isClient) {\n // Try to reset search by clearing URL params and refreshing\n const url = new URL(window.location.href)\n url.search = ''\n router.push(url.pathname)\n }\n }\n }\n case 'posts':\n // If we're on blog/community pages, reset blog filters\n if (currentPath.includes('/blog')) {\n return {\n text: \"Reset Filters\",\n action: () => {\n if (isClient) {\n // Reset blog search and filters by clearing URL params\n const url = new URL(window.location.href)\n url.search = ''\n router.push(url.pathname)\n }\n }\n }\n } else if (currentPath.includes('/profile')) {\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n }\n return {\n text: \"View All Posts\",\n action: () => router.push('/blog')\n }\n case 'vendors':\n // If we're in profile or other pages, direct to main content\n if (currentPath.includes('/profile')) {\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n } else if (currentPath.includes('/vendors') || currentPath.includes('/margin-increase/compare')) {\n return {\n text: \"Reset Filters\",\n action: () => {\n if (isClient) {\n // Reset vendor search and filters by clearing URL params\n const url = new URL(window.location.href)\n url.search = ''\n router.push(url.pathname)\n }\n }\n }\n }\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n default:\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n }\n }\n\n const defaultContent = getDefaultContent()\n const displayTitle = title || defaultContent.title\n const displayDescription = description || defaultContent.description\n const smartCTA = getSmartCTA()\n\n return (\n <div className=\"flex flex-col items-center justify-center py-6 md:py-16 px-6 text-center\">\n {/* Icon */}\n <div className=\"mb-3 md:mb-6 flex items-center justify-center\">\n <div className=\"rounded-full bg-ods-card p-3 md:p-6 border border-ods-border\">\n <div className=\"w-8 h-8 md:w-16 md:h-16 text-ods-text-secondary flex items-center justify-center\">\n {defaultContent.icon}\n </div>\n </div>\n </div>\n\n {/* Title */}\n <h2 className=\"mb-2 md:mb-3 text-lg md:text-xl font-semibold font-['DM_Sans'] text-ods-text-primary tracking-[-0.02em]\">\n {displayTitle}\n </h2>\n\n {/* Description */}\n <p className=\"mb-4 md:mb-8 max-w-md text-sm font-medium font-['DM_Sans'] text-ods-text-secondary leading-[1.43em]\">\n {displayDescription}\n </p>\n\n {/* Smart CTA Button */}\n {showCTA && smartCTA && (\n <div className=\"w-full max-w-xs mb-3\">\n <Button\n onClick={smartCTA.action}\n className={ctaVariant === 'primary'\n ? \"w-full bg-ods-accent text-ods-text-on-accent hover:bg-ods-accent-hover transition-all duration-150 font-['DM_Sans'] font-medium\"\n : \"w-full bg-transparent border border-ods-border text-ods-text-primary hover:border-ods-accent hover:text-ods-accent transition-all duration-150 font-['DM_Sans'] font-medium\"\n }\n >\n {smartCTA.text}\n </Button>\n </div>\n )}\n\n {/* Optional Back Button */}\n {showBackButton && onGoBack && (\n <div className=\"w-full max-w-xs\">\n <Button\n onClick={onGoBack}\n variant=\"outline\"\n className=\"w-full transition-all duration-150 font-['DM_Sans'] font-medium\"\n >\n {backButtonText}\n </Button>\n </div>\n )}\n </div>\n )\n} ","'use client'\n\n/**\n * `<DeliveryRow />` — canonical single-row presentation for a ClickUp\n * delivery item.\n *\n * Single source of truth: both the `/bug-fixes-and-enhancements` page\n * (via `DeliveryTable`) AND the linked-delivery card on a HubSpot ticket\n * (via `TicketLinkedDeliveryCard`) compose this primitive. Visual parity\n * across those two surfaces is the design goal — the user reads the\n * card on their ticket and recognises it as a row from the public\n * delivery list.\n *\n * Behaviors:\n * - `href` set → outer element is an `<a>`, the whole row becomes\n * clickable (used by the linked-card surface to deep-link into\n * `/bug-fixes-and-enhancements?focus=<id>`).\n * - `id` set → outer element gets that DOM id so the consuming page\n * can `scrollIntoView` to it when the URL carries `?focus=<id>`.\n * - `highlighted` true → brief accent border + background pulse\n * (`animate-flash-focus` keyframe defined in `tailwind.config.ts`).\n * - `caption` set → small uppercase label rendered above the title\n * (\"LINKED DELIVERY\" on the ticket-side variant). Omitted on the\n * standard list rendering.\n */\n\nimport * as React from 'react'\nimport Link from '../../../embed-shims/next-link'\nimport { StatusBadge } from '../../ui/status-badge'\nimport { getStatusColorScheme } from '../../../utils'\nimport {\n type DeliveryItem,\n TASK_TYPE_LABELS,\n TASK_TYPE_TEXT_COLORS,\n} from '../../../types/delivery'\nimport { cn } from '../../../utils/cn'\n\n/** Same heuristic as DeliveryTable's local helper. Inlined so the row\n * primitive owns its complete rendering contract. */\nfunction getRelativeTime(timestamp: number): string {\n const now = Date.now()\n const diff = now - timestamp\n const days = Math.floor(diff / (1000 * 60 * 60 * 24))\n const weeks = Math.floor(days / 7)\n const months = Math.floor(days / 30)\n if (months > 0) return months === 1 ? 'last month' : `${months} months ago`\n if (weeks > 0) return weeks === 1 ? 'last week' : `${weeks} weeks ago`\n if (days > 0) return days === 1 ? 'yesterday' : `${days} days ago`\n return 'today'\n}\n\nexport interface DeliveryRowProps {\n item: DeliveryItem\n /** When set, the row becomes a clickable anchor. The ticket-side\n * linked-card composes this from `buildDevSectionUrl('delivery', id)`\n * which carries `?search=<id>` — the delivery list filters to that\n * exact task on landing (canonical deep-link mechanism, same one\n * the chat-inline delivery card uses). */\n href?: string\n /** Small uppercase caption rendered above the title. Used by the\n * linked-delivery card variant (\"LINKED DELIVERY\"). */\n caption?: string\n className?: string\n}\n\nexport function DeliveryRow({\n item,\n href,\n caption,\n className,\n}: DeliveryRowProps) {\n const taskType = item.taskType as keyof typeof TASK_TYPE_LABELS\n const typeBadgeLabel = TASK_TYPE_LABELS[taskType] || 'TASK'\n const typeBadgeTextColor = TASK_TYPE_TEXT_COLORS[taskType] || ''\n const statusBadgeScheme = getStatusColorScheme(item.status)\n const relativeTime = getRelativeTime(item.dateUpdated)\n const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(', ')}` : ''}, ${item.id}`\n\n const inner = (\n <div className=\"flex flex-col md:flex-row items-start justify-between gap-[12px] md:gap-[16px] w-full\">\n {/* Left: caption (optional) + title + subtitle + description */}\n <div className=\"flex-1 min-w-0 w-full md:w-auto flex flex-col gap-[12px] md:gap-[16px]\">\n {caption && (\n <p className=\"text-xs font-medium uppercase tracking-wider text-ods-text-secondary\">\n {caption}\n </p>\n )}\n <div className=\"min-h-[24px] md:min-h-[24px] flex items-center\">\n <h3 className=\"text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2 md:truncate break-words\">\n {item.title}\n </h3>\n </div>\n <div className=\"min-h-[20px] flex items-center\">\n <p className=\"text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate\">\n {subtitle}\n </p>\n </div>\n <div className=\"min-h-[72px] flex items-center\">\n <p className=\"text-h4 text-ods-text-secondary line-clamp-3 break-words\">\n {item.description || 'No description provided'}\n </p>\n </div>\n </div>\n\n {/* Right: status + task-type badges */}\n <div className=\"flex-shrink-0 self-start flex flex-col gap-2\">\n <StatusBadge\n text={item.status.toUpperCase()}\n colorScheme={statusBadgeScheme}\n variant=\"card\"\n className=\"border border-ods-border\"\n />\n <StatusBadge\n text={typeBadgeLabel}\n variant=\"card\"\n className={`border border-ods-border ${typeBadgeTextColor}`}\n />\n </div>\n </div>\n )\n\n const baseClass = cn(\n 'block p-[12px] md:p-[16px] no-underline text-inherit transition-colors duration-150',\n href && 'hover:bg-ods-bg-hover cursor-pointer',\n className,\n )\n\n if (href) {\n // `Link` is the env-aware embed-shim — delegates to `next/link` on\n // a Next.js host (soft RSC nav, back-button restores the previous\n // page's React state intact), falls back to a plain `<a>` on\n // non-Next embedders. A raw `<a href>` was hard-navigating +\n // losing TanStack-Query state on back, leaving /tickets stuck on\n // its skeleton.\n return (\n <Link href={href} className={baseClass} prefetch={false}>\n {inner}\n </Link>\n )\n }\n\n return <div className={baseClass}>{inner}</div>\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-MDWFPCHN.cjs","../src/components/unified-pagination.tsx","../src/components/empty-state.tsx","../src/components/shared/delivery/delivery-row.tsx"],"names":["jsx","jsxs"],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;A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-core/dist/chunk-MDWFPCHN.cjs","sourcesContent":[null,"\"use client\"\n\nimport { useRouter, useSearchParams, usePathname } from \"../embed-shims/next-navigation\"\nimport { Pagination } from \"./pagination\"\n\ninterface UnifiedPaginationProps {\n currentPage: number\n totalPages: number\n onPageChange?: (page: number) => void\n className?: string\n}\n\nexport function UnifiedPagination({ \n currentPage, \n totalPages, \n onPageChange,\n className = \"mt-8 flex justify-center w-full\"\n}: UnifiedPaginationProps) {\n const router = useRouter()\n const searchParams = useSearchParams()\n const pathname = usePathname()\n\n const handlePageChange = (page: number) => {\n // Preserve current scroll position\n const currentScrollY = window.scrollY\n \n // Call the callback to update local state (prevents reload)\n if (onPageChange) {\n onPageChange(page)\n }\n \n // Update URL for bookmarking without navigation\n const params = new URLSearchParams(searchParams.toString())\n params.set(\"page\", page.toString())\n \n // Update URL without navigation (for bookmarking support)\n const newUrl = `${pathname}?${params.toString()}`\n window.history.replaceState(null, '', newUrl)\n \n // Restore scroll position after a brief delay to allow content to render\n setTimeout(() => {\n window.scrollTo({\n top: currentScrollY,\n behavior: 'instant' // Instant to prevent any scroll animation\n })\n }, 0)\n }\n\n // Don't render pagination if there's only one page\n if (totalPages <= 1) return null\n\n return (\n <div className={className}>\n <Pagination\n currentPage={currentPage}\n totalPages={totalPages}\n onPageChange={handlePageChange}\n />\n </div>\n )\n} ","\"use client\";\n\nimport { Search, FileText, Package } from \"lucide-react\"\nimport { Button } from \"./ui/button\"\nimport { useRouter } from \"../embed-shims/next-navigation\"\n\nexport interface EmptyStateProps {\n type: 'vendors' | 'posts' | 'search' | 'generic'\n title?: string\n description?: string\n showBackButton?: boolean\n onGoBack?: () => void\n backButtonText?: string\n // New CTA properties\n showCTA?: boolean\n ctaText?: string\n onCtaClick?: () => void\n ctaVariant?: 'primary' | 'secondary'\n}\n\nexport function EmptyState({\n type,\n title,\n description,\n showBackButton = false,\n onGoBack,\n backButtonText = \"Go Back\",\n showCTA = true,\n ctaText,\n onCtaClick,\n ctaVariant = 'primary'\n}: EmptyStateProps) {\n const router = useRouter()\n\n // Default content based on type\n const getDefaultContent = () => {\n switch (type) {\n case 'vendors':\n return {\n icon: <Package className=\"w-full h-full\" />,\n title: \"No vendors found\",\n description: \"We couldn't find any vendors matching your criteria. Try adjusting your filters or search terms.\"\n }\n case 'posts':\n return {\n icon: <FileText className=\"w-full h-full\" />,\n title: \"No articles found\",\n description: \"We couldn't find any articles matching your criteria. Try different categories, tags, or search terms.\"\n }\n case 'search':\n return {\n icon: <Search className=\"w-full h-full\" />,\n title: \"No results found\",\n description: \"Your search didn't return any results. Try different keywords or browse our categories.\"\n }\n default:\n return {\n icon: <Search className=\"w-full h-full\" />,\n title: \"Nothing found\",\n description: \"We couldn't find what you're looking for. Try adjusting your search or filters.\"\n }\n }\n }\n\n // Smart CTA logic based on context\n const getSmartCTA = () => {\n // If custom CTA is provided, use it\n if (ctaText && onCtaClick) {\n return {\n text: ctaText,\n action: onCtaClick\n }\n }\n\n // Check if we're on the client side\n const isClient = typeof window !== 'undefined'\n const currentPath = isClient ? window.location.pathname : ''\n\n // Smart defaults based on type and context\n switch (type) {\n case 'search':\n return {\n text: \"Reset Filters\",\n action: () => {\n if (isClient) {\n // Try to reset search by clearing URL params and refreshing\n const url = new URL(window.location.href)\n url.search = ''\n router.push(url.pathname)\n }\n }\n }\n case 'posts':\n // If we're on blog/community pages, reset blog filters\n if (currentPath.includes('/blog')) {\n return {\n text: \"Reset Filters\",\n action: () => {\n if (isClient) {\n // Reset blog search and filters by clearing URL params\n const url = new URL(window.location.href)\n url.search = ''\n router.push(url.pathname)\n }\n }\n }\n } else if (currentPath.includes('/profile')) {\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n }\n return {\n text: \"View All Posts\",\n action: () => router.push('/blog')\n }\n case 'vendors':\n // If we're in profile or other pages, direct to main content\n if (currentPath.includes('/profile')) {\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n } else if (currentPath.includes('/vendors') || currentPath.includes('/margin-increase/compare')) {\n return {\n text: \"Reset Filters\",\n action: () => {\n if (isClient) {\n // Reset vendor search and filters by clearing URL params\n const url = new URL(window.location.href)\n url.search = ''\n router.push(url.pathname)\n }\n }\n }\n }\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n default:\n return {\n text: \"Browse Vendors\",\n action: () => router.push('/vendors')\n }\n }\n }\n\n const defaultContent = getDefaultContent()\n const displayTitle = title || defaultContent.title\n const displayDescription = description || defaultContent.description\n const smartCTA = getSmartCTA()\n\n return (\n <div className=\"flex flex-col items-center justify-center py-6 md:py-16 px-6 text-center\">\n {/* Icon */}\n <div className=\"mb-3 md:mb-6 flex items-center justify-center\">\n <div className=\"rounded-full bg-ods-card p-3 md:p-6 border border-ods-border\">\n <div className=\"w-8 h-8 md:w-16 md:h-16 text-ods-text-secondary flex items-center justify-center\">\n {defaultContent.icon}\n </div>\n </div>\n </div>\n\n {/* Title */}\n <h2 className=\"mb-2 md:mb-3 text-lg md:text-xl font-semibold font-['DM_Sans'] text-ods-text-primary tracking-[-0.02em]\">\n {displayTitle}\n </h2>\n\n {/* Description */}\n <p className=\"mb-4 md:mb-8 max-w-md text-sm font-medium font-['DM_Sans'] text-ods-text-secondary leading-[1.43em]\">\n {displayDescription}\n </p>\n\n {/* Smart CTA Button */}\n {showCTA && smartCTA && (\n <div className=\"w-full max-w-xs mb-3\">\n <Button\n onClick={smartCTA.action}\n className={ctaVariant === 'primary'\n ? \"w-full bg-ods-accent text-ods-text-on-accent hover:bg-ods-accent-hover transition-all duration-150 font-['DM_Sans'] font-medium\"\n : \"w-full bg-transparent border border-ods-border text-ods-text-primary hover:border-ods-accent hover:text-ods-accent transition-all duration-150 font-['DM_Sans'] font-medium\"\n }\n >\n {smartCTA.text}\n </Button>\n </div>\n )}\n\n {/* Optional Back Button */}\n {showBackButton && onGoBack && (\n <div className=\"w-full max-w-xs\">\n <Button\n onClick={onGoBack}\n variant=\"outline\"\n className=\"w-full transition-all duration-150 font-['DM_Sans'] font-medium\"\n >\n {backButtonText}\n </Button>\n </div>\n )}\n </div>\n )\n} ","'use client'\n\n/**\n * `<DeliveryRow />` — canonical single-row presentation for a ClickUp\n * delivery item.\n *\n * Single source of truth: both the `/bug-fixes-and-enhancements` page\n * (via `DeliveryTable`) AND the linked-delivery card on a HubSpot ticket\n * (via `TicketLinkedDeliveryCard`) compose this primitive. Visual parity\n * across those two surfaces is the design goal — the user reads the\n * card on their ticket and recognises it as a row from the public\n * delivery list.\n *\n * Behaviors:\n * - `href` set → outer element is an `<a>`, the whole row becomes\n * clickable (used by the linked-card surface to deep-link into\n * `/bug-fixes-and-enhancements?focus=<id>`).\n * - `id` set → outer element gets that DOM id so the consuming page\n * can `scrollIntoView` to it when the URL carries `?focus=<id>`.\n * - `highlighted` true → brief accent border + background pulse\n * (`animate-flash-focus` keyframe defined in `tailwind.config.ts`).\n * - `caption` set → small uppercase label rendered above the title\n * (\"LINKED DELIVERY\" on the ticket-side variant). Omitted on the\n * standard list rendering.\n */\n\nimport * as React from 'react'\nimport Link from '../../../embed-shims/next-link'\nimport { StatusBadge } from '../../ui/status-badge'\nimport { getStatusColorScheme } from '../../../utils'\nimport {\n type DeliveryItem,\n TASK_TYPE_LABELS,\n TASK_TYPE_TEXT_COLORS,\n} from '../../../types/delivery'\nimport { cn } from '../../../utils/cn'\n\n/** Same heuristic as DeliveryTable's local helper. Inlined so the row\n * primitive owns its complete rendering contract. */\nfunction getRelativeTime(timestamp: number): string {\n const now = Date.now()\n const diff = now - timestamp\n const days = Math.floor(diff / (1000 * 60 * 60 * 24))\n const weeks = Math.floor(days / 7)\n const months = Math.floor(days / 30)\n if (months > 0) return months === 1 ? 'last month' : `${months} months ago`\n if (weeks > 0) return weeks === 1 ? 'last week' : `${weeks} weeks ago`\n if (days > 0) return days === 1 ? 'yesterday' : `${days} days ago`\n return 'today'\n}\n\nexport interface DeliveryRowProps {\n item: DeliveryItem\n /** When set, the row becomes a clickable anchor. The ticket-side\n * linked-card composes this from `buildDevSectionUrl('delivery', id)`\n * which carries `?search=<id>` — the delivery list filters to that\n * exact task on landing (canonical deep-link mechanism, same one\n * the chat-inline delivery card uses). */\n href?: string\n /** Small uppercase caption rendered above the title. Used by the\n * linked-delivery card variant (\"LINKED DELIVERY\"). */\n caption?: string\n className?: string\n}\n\nexport function DeliveryRow({\n item,\n href,\n caption,\n className,\n}: DeliveryRowProps) {\n const taskType = item.taskType as keyof typeof TASK_TYPE_LABELS\n const typeBadgeLabel = TASK_TYPE_LABELS[taskType] || 'TASK'\n const typeBadgeTextColor = TASK_TYPE_TEXT_COLORS[taskType] || ''\n const statusBadgeScheme = getStatusColorScheme(item.status)\n const relativeTime = getRelativeTime(item.dateUpdated)\n const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(', ')}` : ''}, ${item.id}`\n\n const inner = (\n <div className=\"flex flex-col md:flex-row items-start justify-between gap-[12px] md:gap-[16px] w-full\">\n {/* Left: caption (optional) + title + subtitle + description */}\n <div className=\"flex-1 min-w-0 w-full md:w-auto flex flex-col gap-[12px] md:gap-[16px]\">\n {caption && (\n <p className=\"text-xs font-medium uppercase tracking-wider text-ods-text-secondary\">\n {caption}\n </p>\n )}\n <div className=\"min-h-[24px] md:min-h-[24px] flex items-center\">\n <h3 className=\"text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2 md:truncate break-words\">\n {item.title}\n </h3>\n </div>\n <div className=\"min-h-[20px] flex items-center\">\n <p className=\"text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate\">\n {subtitle}\n </p>\n </div>\n <div className=\"min-h-[72px] flex items-center\">\n <p className=\"text-h4 text-ods-text-secondary line-clamp-3 break-words\">\n {item.description || 'No description provided'}\n </p>\n </div>\n </div>\n\n {/* Right: status + task-type badges */}\n <div className=\"flex-shrink-0 self-start flex flex-col gap-2\">\n <StatusBadge\n text={item.status.toUpperCase()}\n colorScheme={statusBadgeScheme}\n variant=\"card\"\n className=\"border border-ods-border\"\n />\n <StatusBadge\n text={typeBadgeLabel}\n variant=\"card\"\n className={`border border-ods-border ${typeBadgeTextColor}`}\n />\n </div>\n </div>\n )\n\n const baseClass = cn(\n 'block p-[12px] md:p-[16px] no-underline text-inherit transition-colors duration-150',\n href && 'hover:bg-ods-bg-hover cursor-pointer',\n className,\n )\n\n if (href) {\n // `Link` is the env-aware embed-shim — delegates to `next/link` on\n // a Next.js host (soft RSC nav, back-button restores the previous\n // page's React state intact), falls back to a plain `<a>` on\n // non-Next embedders. A raw `<a href>` was hard-navigating +\n // losing TanStack-Query state on back, leaving /tickets stuck on\n // its skeleton.\n return (\n <Link href={href} className={baseClass} prefetch={false}>\n {inner}\n </Link>\n )\n }\n\n return <div className={baseClass}>{inner}</div>\n}\n"]}
@@ -7,10 +7,10 @@ import {
7
7
  resolveExternalNavigation,
8
8
  resolveSourceIcon,
9
9
  stripSameOriginToPath
10
- } from "./chunk-DHCGJW3G.js";
10
+ } from "./chunk-2MHQE5ET.js";
11
11
  import {
12
12
  useDebounce
13
- } from "./chunk-LLTUSEHF.js";
13
+ } from "./chunk-Z6FT2JDQ.js";
14
14
  import {
15
15
  useRouter
16
16
  } from "./chunk-PLJLE4A4.js";
@@ -446,4 +446,4 @@ export {
446
446
  useSelfFetch,
447
447
  DetailPageSkeleton
448
448
  };
449
- //# sourceMappingURL=chunk-BOF5MSRY.js.map
449
+ //# sourceMappingURL=chunk-VO3K4EEG.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2TBN53KYcjs = require('./chunk-2TBN53KY.cjs');
5
+ var _chunkCG6AZ2MCcjs = require('./chunk-CG6AZ2MC.cjs');
6
6
 
7
7
 
8
8
 
@@ -1557,7 +1557,7 @@ function EmptyVendorIcon({ className }) {
1557
1557
  }
1558
1558
 
1559
1559
  // src/components/icons/error-icon.tsx
1560
- _chunk2TBN53KYcjs.init_cn.call(void 0, );
1560
+ _chunkCG6AZ2MCcjs.init_cn.call(void 0, );
1561
1561
 
1562
1562
  function ErrorIcon({ className, fill = "#FF6B6B", ...props }) {
1563
1563
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -1570,7 +1570,7 @@ function ErrorIcon({ className, fill = "#FF6B6B", ...props }) {
1570
1570
  strokeWidth: "2",
1571
1571
  strokeLinecap: "round",
1572
1572
  strokeLinejoin: "round",
1573
- className: _chunk2TBN53KYcjs.cn.call(void 0, "inline-block", className),
1573
+ className: _chunkCG6AZ2MCcjs.cn.call(void 0, "inline-block", className),
1574
1574
  ...props,
1575
1575
  children: [
1576
1576
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "circle", { cx: "12", cy: "12", r: "10" }),
@@ -1986,7 +1986,7 @@ function XLogo({ className = "", color = "white", ...props }) {
1986
1986
  }
1987
1987
 
1988
1988
  // src/components/icons/hubspot-icon.tsx
1989
- _chunk2TBN53KYcjs.init_cn.call(void 0, );
1989
+ _chunkCG6AZ2MCcjs.init_cn.call(void 0, );
1990
1990
 
1991
1991
  function HubspotIcon({ className, fill = "#FF7A59", ...props }) {
1992
1992
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1995,7 +1995,7 @@ function HubspotIcon({ className, fill = "#FF7A59", ...props }) {
1995
1995
  xmlns: "http://www.w3.org/2000/svg",
1996
1996
  viewBox: "0 0 512 512",
1997
1997
  fill,
1998
- className: _chunk2TBN53KYcjs.cn.call(void 0, "inline-block", className),
1998
+ className: _chunkCG6AZ2MCcjs.cn.call(void 0, "inline-block", className),
1999
1999
  ...props,
2000
2000
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M266.197 216.109c-22.551 21.293-36.655 51.48-36.655 84.991 0 26.326 8.714 50.582 23.359 70.08l-44.473 44.74c-3.953-1.438-8.176-2.245-12.579-2.245-9.702 0-18.776 3.774-25.605 10.602-6.828 6.827-10.602 15.989-10.602 25.696 0 9.701 3.773 18.775 10.602 25.605 6.829 6.826 15.993 10.42 25.605 10.42 9.703 0 18.777-3.505 25.695-10.42 6.829-6.83 10.602-15.994 10.602-25.605 0-3.774-.538-7.369-1.707-10.873l44.923-45.102c19.765 15.183 44.381 24.169 71.244 24.169 64.599 0 116.797-52.38 116.797-116.977 0-58.578-42.854-107.093-99.007-115.628v-55.343c15.723-6.65 25.335-21.384 25.335-38.545 0-23.449-18.777-43.034-42.227-43.034-23.448 0-41.956 19.585-41.956 43.034 0 17.161 9.613 31.895 25.335 38.545v54.983c-13.655 1.887-26.593 6.019-38.362 12.219-24.796-18.778-105.565-76.997-151.746-112.126 1.078-3.953 1.798-8.085 1.798-12.397 0-25.875-21.113-46.898-47.078-46.898-25.875 0-46.898 21.023-46.898 46.898 0 25.965 21.023 46.988 46.898 46.988 8.805 0 16.98-2.606 24.078-6.828L266.197 216.109zM346.606 363.095c-34.229 0-61.991-27.763-61.991-61.994 0-34.229 27.762-61.99 61.991-61.99 34.23 0 61.992 27.761 61.992 61.99 0 34.231-27.762 61.994-61.992 61.994z" })
2001
2001
  }
@@ -3726,7 +3726,7 @@ function LinuxIcon({ className, color = "white", ...props }) {
3726
3726
  }
3727
3727
 
3728
3728
  // src/components/icons/double-chevron-icon.tsx
3729
- _chunk2TBN53KYcjs.init_cn.call(void 0, );
3729
+ _chunkCG6AZ2MCcjs.init_cn.call(void 0, );
3730
3730
 
3731
3731
  var rotationMap = {
3732
3732
  left: "rotate-0",
@@ -3748,7 +3748,7 @@ function DoubleChevronIcon({
3748
3748
  viewBox: "0 0 24 24",
3749
3749
  fill: "none",
3750
3750
  xmlns: "http://www.w3.org/2000/svg",
3751
- className: _chunk2TBN53KYcjs.cn.call(void 0,
3751
+ className: _chunkCG6AZ2MCcjs.cn.call(void 0,
3752
3752
  "transition-transform duration-200",
3753
3753
  rotationMap[direction],
3754
3754
  className
@@ -4696,4 +4696,4 @@ var PilotIcon = ({ className = "w-6 h-6", color = "var(--ods-system-greys-white)
4696
4696
 
4697
4697
 
4698
4698
  exports.OpenmspLogo = OpenmspLogo; exports.OpenFrameLogo = OpenFrameLogo; exports.OpenFrameText = OpenFrameText; exports.FLAMINGO_LOGO_SVG_PATH = FLAMINGO_LOGO_SVG_PATH; exports.FLAMINGO_LOGO_VIEWBOX = FLAMINGO_LOGO_VIEWBOX; exports.FlamingoLogo = FlamingoLogo; exports.ElestioLogo = ElestioLogo; exports.MlgLogo = MlgLogo; exports.MiamiCyberGangLogo = MiamiCyberGangLogo; exports.MiamiCyberGangLogoFaceOnly = MiamiCyberGangLogoFaceOnly; exports.VendorsIcon = VendorsIcon; exports.CompareIcon = CompareIcon; exports.CommunityIcon = CommunityIcon; exports.VendorDirectoryIcon = VendorDirectoryIcon; exports.OpenSourceIcon = OpenSourceIcon; exports.CommunityHubIcon = CommunityHubIcon; exports.AboutIcon = AboutIcon; exports.UserIcon = UserIcon; exports.HamburgerIcon = HamburgerIcon; exports.MenuIcon = MenuIcon; exports.ExploreCategoriesIcon = ExploreCategoriesIcon; exports.FilterIcon = FilterIcon; exports.SearchIcon = SearchIcon; exports.ScriptIcon = ScriptIcon; exports.RemoteControlIcon = RemoteControlIcon; exports.ShellIcon = ShellIcon; exports.MingoIcon = MingoIcon; exports.PoliciesIcon = PoliciesIcon; exports.QueriesIcon = QueriesIcon; exports.DocumentIcon = DocumentIcon; exports.SlidersIcon = SlidersIcon; exports.CheckCircleIcon = CheckCircleIcon; exports.PlusCircleIcon = PlusCircleIcon; exports.MinusCircleIcon = MinusCircleIcon; exports.InfoCircleIcon = InfoCircleIcon; exports.ThumbsUpIcon = ThumbsUpIcon; exports.ThumbsDownIcon = ThumbsDownIcon; exports.SunIcon = SunIcon; exports.MoonIcon = MoonIcon; exports.CoinsIcon = CoinsIcon; exports.DonutIcon = DonutIcon; exports.HandDollarIcon = HandDollarIcon; exports.SendIcon = SendIcon; exports.EditProfileIcon = EditProfileIcon; exports.EmptyVendorIcon = EmptyVendorIcon; exports.ErrorIcon = ErrorIcon; exports.MarginCrisisIcon = MarginCrisisIcon; exports.CopyIcon = CopyIcon; exports.CutVendorCostsIcon = CutVendorCostsIcon; exports.AutomateEverythingIcon = AutomateEverythingIcon; exports.ReclaimProfitsIcon = ReclaimProfitsIcon; exports.GitHubIcon = GitHubIcon; exports.SlackIcon = SlackIcon; exports.ClickUpIcon = ClickUpIcon; exports.MicrosoftIcon = MicrosoftIcon; exports.GoogleLogo = GoogleLogo; exports.RedditIcon = RedditIcon; exports.XLogo = XLogo; exports.HubspotIcon = HubspotIcon; exports.ClaudeIcon = ClaudeIcon; exports.LinkedInIcon = LinkedInIcon; exports.LumaIcon = LumaIcon; exports.LivestormIcon = LivestormIcon; exports.PodbeanIcon = PodbeanIcon; exports.WhatsAppIcon = WhatsAppIcon; exports.FigmaIcon = FigmaIcon; exports.ImageIcon = ImageIcon; exports.OpenAiIcon = OpenAiIcon; exports.GoogleGeminiIcon = GoogleGeminiIcon; exports.GlobeIcon = GlobeIcon; exports.MessageCircleIcon = MessageCircleIcon; exports.TelegramIcon = TelegramIcon; exports.YouTubeIcon = YouTubeIcon; exports.InstagramIcon = InstagramIcon; exports.FacebookIcon = FacebookIcon; exports.ArchiveIcon = ArchiveIcon; exports.CpuIcon = CpuIcon; exports.NetworkIcon = NetworkIcon; exports.ShieldIcon = ShieldIcon; exports.FileCheckIcon = FileCheckIcon; exports.BotIcon = BotIcon; exports.UsersIcon = UsersIcon; exports.PackageIcon = PackageIcon; exports.AlertTriangleIcon = AlertTriangleIcon; exports.FileTextIcon = FileTextIcon; exports.SSOConfigurationIcon = SSOConfigurationIcon; exports.XIcon = XIcon; exports.CustomStarIcon = CustomStarIcon; exports.CustomForkIcon = CustomForkIcon; exports.CustomLicenseIcon = CustomLicenseIcon; exports.CustomTimeIcon = CustomTimeIcon; exports.CustomExternalLinkIcon = CustomExternalLinkIcon; exports.VendorShowcaseMainIcon = VendorShowcaseMainIcon; exports.TransparentTrustedIcon = TransparentTrustedIcon; exports.ModularHellIcon = ModularHellIcon; exports.RapidInnovationIcon = RapidInnovationIcon; exports.LowerTCOIcon = LowerTCOIcon; exports.AiRobotIcon = AiRobotIcon; exports.SparklesIcon = SparklesIcon; exports.NaturalLanguageIcon = NaturalLanguageIcon; exports.AutomatedDiagnosticsIcon = AutomatedDiagnosticsIcon; exports.StatusUpdatesIcon = StatusUpdatesIcon; exports.SmartEscalationIcon = SmartEscalationIcon; exports.ScriptGenerationIcon = ScriptGenerationIcon; exports.PatchPolicyIcon = PatchPolicyIcon; exports.BulkOperationsIcon = BulkOperationsIcon; exports.AuditLoggingIcon = AuditLoggingIcon; exports.SOCIcon = SOCIcon; exports.NOCIcon = NOCIcon; exports.ITIcon = ITIcon; exports.OPSIcon = OPSIcon; exports.DashboardIcon = DashboardIcon; exports.DevicesIcon = DevicesIcon; exports.LogsIcon = LogsIcon; exports.OrganizationsIcon = OrganizationsIcon; exports.SettingsIcon = SettingsIcon; exports.LogOutIcon = LogOutIcon; exports.WindowsIcon = WindowsIcon; exports.MacOSIcon = MacOSIcon; exports.LinuxIcon = LinuxIcon; exports.DoubleChevronIcon = DoubleChevronIcon; exports.GridViewIcon = GridViewIcon; exports.TableViewIcon = TableViewIcon; exports.ShieldLockIcon = ShieldLockIcon; exports.ShieldKeyIcon = ShieldKeyIcon; exports.EyeIcon = EyeIcon; exports.ShapeCircleDashIcon = ShapeCircleDashIcon; exports.BuildingsIcon = BuildingsIcon; exports.UsersGroupIcon = UsersGroupIcon; exports.FolderShieldIcon = FolderShieldIcon; exports.ShieldCheckIcon = ShieldCheckIcon; exports.HotelIcon = HotelIcon; exports.JumpInIcon = JumpInIcon; exports.renderSvgIcon = renderSvgIcon; exports.PowerShellIcon = PowerShellIcon; exports.CmdIcon = CmdIcon; exports.BashIcon = BashIcon; exports.PythonIcon = PythonIcon; exports.NushellIcon = NushellIcon; exports.DenoIcon = DenoIcon; exports.DesktopIcon = DesktopIcon; exports.LaptopIcon = LaptopIcon2; exports.ServerIcon = ServerIcon; exports.getDeviceTypeIcon = getDeviceTypeIcon; exports.G2Icon = G2Icon; exports.CapterraIcon = CapterraIcon; exports.TrustpilotIcon = TrustpilotIcon; exports.GetAppIcon = GetAppIcon; exports.CartaIcon = CartaIcon; exports.PilotIcon = PilotIcon;
4699
- //# sourceMappingURL=chunk-MWW7LKDN.cjs.map
4699
+ //# sourceMappingURL=chunk-W4NBBPQL.cjs.map