@infinilabs/search-results 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  - 支持列表结果(标题、摘要、面包屑、作者/时间、缩略图、文件类型徽标等)
6
6
  - 支持媒体宫格(图片/视频,支持分组、列数、底部动作)
7
- - 支持 `items` 直接渲染,也支持 `records` 自动转换渲染
8
- - 支持 `sections` 进行更高级的分组与布局自定义
7
+ - 组件对外只接收单个 `section`,多分组由业务侧自行组合
9
8
 
10
9
  ## 安装
11
10
 
@@ -20,12 +19,15 @@ pnpm add @infinilabs/search-results
20
19
 
21
20
  ## 使用示例
22
21
 
23
- ### 1) 基础用法(items
22
+ ### 1) 基础用法(单个 section
24
23
 
25
24
  ```tsx
26
- import SearchResults, { type SearchResultsItem } from "@infinilabs/search-results";
25
+ import SearchResults, {
26
+ type SearchResultListItem,
27
+ type SearchResultsSection
28
+ } from "@infinilabs/search-results";
27
29
 
28
- const items: SearchResultsItem[] = [
30
+ const listItems: SearchResultListItem[] = [
29
31
  {
30
32
  type: "result",
31
33
  id: "result-0",
@@ -34,59 +36,48 @@ const items: SearchResultsItem[] = [
34
36
  thumbnailUrl: "https://picsum.photos/seed/ai-summary-thumb/320/180",
35
37
  fileType: "doc",
36
38
  source: "Google",
37
- description: "AI 摘要:本文档介绍如何配置数据源、设置分类与权限...",
38
- },
39
- {
40
- type: "imageGroup",
41
- id: "image-group-1",
42
- title: "图片",
43
- columns: 3,
44
- footerAction: { label: "所有图片 >", href: "#" },
45
- items: [
46
- {
47
- type: "media",
48
- id: "img-1",
49
- mediaType: "image",
50
- title: "云原生技术架构白皮书",
51
- href: "#",
52
- thumbnailUrl: "https://picsum.photos/seed/image-group-1/800/600",
53
- sourceLabel: "Google Drive",
54
- categoryLabel: "素材",
55
- },
56
- ],
57
- },
39
+ description: "AI 摘要:本文档介绍如何配置数据源、设置分类与权限..."
40
+ }
58
41
  ];
59
42
 
43
+ const section: SearchResultsSection = {
44
+ type: "section",
45
+ layout: "list",
46
+ title: "搜索结果",
47
+ items: listItems
48
+ };
49
+
60
50
  export default function Demo() {
61
- return <SearchResults items={items} />;
51
+ return <SearchResults section={section} />;
62
52
  }
63
53
  ```
64
54
 
65
- ### 2) 使用 records(自动转换)
66
-
67
- 当你的数据更接近后端返回结构时,可以直接传 `records`,组件会将其转换为列表结果并渲染。
55
+ ### 2) 多个 section(业务侧自行组合)
68
56
 
69
57
  ```tsx
70
- import SearchResults, { type SearchResultsRecord } from "@infinilabs/search-results";
71
-
72
- const records: SearchResultsRecord[] = [
73
- {
74
- title: "Q3 Business Report",
75
- url: "https://drive.google.com/file/d/abc123/view",
76
- summary: "An overview of the company financial performance for Q3.",
77
- source: { name: "My Hugo Site", id: "e806831dacc3" },
78
- categories: ["business", "quarterly_reports"],
79
- thumbnail: "https://picsum.photos/seed/report-thumb/320/180",
80
- metadata: { file_extension: "pdf" },
81
- last_updated_by: {
82
- user: { username: "editor123" },
83
- timestamp: "2024-11-01T15:30:00Z",
84
- },
85
- },
86
- ];
58
+ import SearchResults, {
59
+ itemsToSections,
60
+ recordsToItems,
61
+ type SearchResultsRecord,
62
+ type SearchResultsItem
63
+ } from "@infinilabs/search-results";
87
64
 
88
- export default function Demo() {
89
- return <SearchResults records={records} />;
65
+ export default function Demo({
66
+ items,
67
+ records
68
+ }: {
69
+ items?: SearchResultsItem[];
70
+ records?: SearchResultsRecord[];
71
+ }) {
72
+ const normalizedItems = items ?? recordsToItems(records ?? []);
73
+ const sections = itemsToSections(normalizedItems, 3);
74
+ return (
75
+ <div className="space-y-10">
76
+ {sections.map((section, index) => (
77
+ <SearchResults key={`${section.title ?? section.layout}-${index}`} section={section} />
78
+ ))}
79
+ </div>
80
+ );
90
81
  }
91
82
  ```
92
83
 
@@ -95,12 +86,14 @@ export default function Demo() {
95
86
  组件内部触发点击时,会先调用 item 自身的 `onClick`(如果有),再调用 `onItemClick`。
96
87
 
97
88
  ```tsx
98
- import SearchResults, { type SearchResultsItem } from "@infinilabs/search-results";
89
+ import SearchResults, { type SearchResultListItem, type SearchResultsItem } from "@infinilabs/search-results";
99
90
 
100
91
  export default function Demo({ items }: { items: SearchResultsItem[] }) {
92
+ const listItems = items.filter((i): i is SearchResultListItem => i.type === "result");
93
+
101
94
  return (
102
95
  <SearchResults
103
- items={items}
96
+ section={{ type: "section", layout: "list", items: listItems }}
104
97
  onItemClick={(item) => {
105
98
  console.log("clicked", item);
106
99
  }}
@@ -117,17 +110,10 @@ import type { SearchResultsProps } from "@infinilabs/search-results";
117
110
 
118
111
  | 参数 | 类型 | 说明 |
119
112
  |---|---|---|
120
- | `sections` | `SearchResultsSection[]` | 完全自定义分组与布局;传入后优先使用 |
121
- | `items` | `SearchResultsItem[]` | 直接传入已归一化的结果项;未传 `sections` 时优先使用 |
122
- | `records` | `SearchResultsRecord[]` | 原始记录;组件会转换为列表项(`result`)并渲染 |
123
- | `imageGridColumns` | `2 \| 3 \| 4` | 自动分组时图片/媒体宫格的默认列数 |
113
+ | `section` | `SearchResultsSection` | 单个分组(单个 layout) |
124
114
  | `className` | `string` | 根容器 class |
125
115
  | `onItemClick` | `(item: SearchResultsItem) => void` | 统一点击回调 |
126
116
 
127
- 优先级规则:
128
-
129
- - `sections` > `items` > `records`
130
-
131
117
  ## 类型导出
132
118
 
133
119
  ```ts
@@ -145,4 +131,3 @@ import type {
145
131
  `SearchResultFileType` 支持:
146
132
 
147
133
  - `pdf` `doc` `ppt` `xls` `link` `word` `text` `unknown`
148
-
package/dist/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { default as default_2 } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
 
4
+ export declare function itemsToSections(items: SearchResultsItem[], imageGridColumns?: 2 | 3 | 4): SearchResultsSection[];
5
+
6
+ export declare function recordsToItems(records: SearchResultsRecord[]): SearchResultsItem[];
7
+
4
8
  declare type SearchResultCommon = {
5
9
  id: string;
6
10
  title: string;
@@ -57,7 +61,7 @@ export declare type SearchResultMediaItem = SearchResultCommon & {
57
61
  onClick?: () => void;
58
62
  };
59
63
 
60
- declare function SearchResults({ sections, items, records, imageGridColumns, className, onItemClick }: SearchResultsProps): JSX.Element;
64
+ declare function SearchResults({ section, className, onItemClick }: SearchResultsProps): JSX.Element;
61
65
  export default SearchResults;
62
66
 
63
67
  declare type SearchResultsAction = {
@@ -71,10 +75,7 @@ declare type SearchResultsAction = {
71
75
  export declare type SearchResultsItem = SearchResultListItem | SearchResultImageItem | SearchResultMediaItem | SearchResultImageGroupItem | SearchResultVideoGroupItem;
72
76
 
73
77
  export declare type SearchResultsProps = {
74
- sections?: SearchResultsSection[];
75
- items?: SearchResultsItem[];
76
- records?: SearchResultsRecord[];
77
- imageGridColumns?: 2 | 3 | 4;
78
+ section: SearchResultsSection;
78
79
  className?: string;
79
80
  onItemClick?: (item: SearchResultsItem) => void;
80
81
  };
@@ -1,7 +1,7 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-700:oklch(37.2% .044 257.287);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.aspect-4\\/3{aspect-ratio:4/3}.aspect-video{aspect-ratio:var(--aspect-video)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-\\[90px\\]{height:90px}.h-full{height:100%}.h-px{height:1px}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-\\[160px\\]{width:160px}.w-full{width:100%}.w-px{width:1px}.max-w-3xl{max-width:var(--container-3xl)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-none{flex:none}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[\\#E8E8E8\\]{border-color:#e8e8e8}.border-slate-200{border-color:var(--color-slate-200)}.bg-\\[\\#027FFE\\]{background-color:#027ffe}.bg-\\[\\#666\\]{background-color:#666}.bg-\\[\\#E02E2E\\]{background-color:#e02e2e}.bg-\\[\\#E8E8E8\\]{background-color:#e8e8e8}.bg-black\\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/55{background-color:color-mix(in oklab,var(--color-black)55%,transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-12{padding-inline:calc(var(--spacing)*12)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-\\[\\#1A0CAB\\]{color:#1a0cab}.text-\\[\\#007EFF\\]{color:#007eff}.text-\\[\\#333\\]{color:#333}.text-\\[\\#666\\]{color:#666}.text-slate-700{color:var(--color-slate-700)}.text-white{color:var(--color-white)}.no-underline{text-decoration-line:none}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-slate-200{--tw-ring-color:var(--color-slate-200)}.ring-white\\/30{--tw-ring-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.ring-white\\/30{--tw-ring-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.group-hover\\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\\:underline-offset-2:is(:where(.group):hover *){text-underline-offset:2px}.hover\\:border-\\[\\#E8E8E8\\]:hover{border-color:#e8e8e8}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:text-\\[\\#007EFF\\]:hover{color:#007eff}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:underline-offset-2:hover{text-underline-offset:2px}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-slate-300:focus-visible{--tw-ring-color:var(--color-slate-300)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- "use strict";const V=require("react"),m=require("clsx"),p=require("lucide-react");var _={exports:{}},v={};var z;function oe(){if(z)return v;z=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(s,a,o){var d=null;if(o!==void 0&&(d=""+o),a.key!==void 0&&(d=""+a.key),"key"in a){o={};for(var x in a)x!=="key"&&(o[x]=a[x])}else o=a;return a=o.ref,{$$typeof:e,type:s,key:d,ref:a!==void 0?a:null,props:o}}return v.Fragment=n,v.jsx=l,v.jsxs=l,v}var N={};var q;function ce(){return q||(q=1,process.env.NODE_ENV!=="production"&&(function(){function e(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case A:return"Fragment";case Z:return"Profiler";case H:return"StrictMode";case te:return"Suspense";case re:return"SuspenseList";case se:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case X:return"Portal";case K:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case ee:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ne:return i=t.displayName||null,i!==null?i:e(t.type)||"Memo";case k:i=t._payload,t=t._init;try{return e(t(i))}catch{}}return null}function n(t){return""+t}function l(t){try{n(t);var i=!1}catch{i=!0}if(i){i=console;var c=i.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return c.call(i,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),n(t)}}function s(t){if(t===A)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===k)return"<...>";try{var i=e(t);return i?"<"+i+">":"<...>"}catch{return"<...>"}}function a(){var t=C.A;return t===null?null:t.getOwner()}function o(){return Error("react-stack-top-frame")}function d(t){if(B.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function x(t,i){function c(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",i))}c.isReactWarning=!0,Object.defineProperty(t,"key",{get:c,configurable:!0})}function h(){var t=e(this.type);return Y[t]||(Y[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function b(t,i,c,u,E,I){var f=c.ref;return t={$$typeof:$,type:t,key:i,props:c,_owner:u},(f!==void 0?f:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:h}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function j(t,i,c,u,E,I){var f=i.children;if(f!==void 0)if(u)if(ae(f)){for(u=0;u<f.length;u++)y(f[u]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(f);if(B.call(i,"key")){f=e(t);var g=Object.keys(i).filter(function(ie){return ie!=="key"});u=0<g.length?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}",M[f+u]||(g=0<g.length?"{"+g.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-700:oklch(37.2% .044 257.287);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.aspect-4\\/3{aspect-ratio:4/3}.aspect-video{aspect-ratio:var(--aspect-video)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-\\[90px\\]{height:90px}.h-full{height:100%}.h-px{height:1px}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-\\[160px\\]{width:160px}.w-full{width:100%}.w-px{width:1px}.max-w-3xl{max-width:var(--container-3xl)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-none{flex:none}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*10)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*10)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[\\#E8E8E8\\]{border-color:#e8e8e8}.border-slate-200{border-color:var(--color-slate-200)}.bg-\\[\\#027FFE\\]{background-color:#027ffe}.bg-\\[\\#666\\]{background-color:#666}.bg-\\[\\#E02E2E\\]{background-color:#e02e2e}.bg-\\[\\#E8E8E8\\]{background-color:#e8e8e8}.bg-black\\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/55{background-color:color-mix(in oklab,var(--color-black)55%,transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-12{padding-inline:calc(var(--spacing)*12)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-\\[\\#1A0CAB\\]{color:#1a0cab}.text-\\[\\#007EFF\\]{color:#007eff}.text-\\[\\#333\\]{color:#333}.text-\\[\\#666\\]{color:#666}.text-slate-700{color:var(--color-slate-700)}.text-white{color:var(--color-white)}.no-underline{text-decoration-line:none}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-slate-200{--tw-ring-color:var(--color-slate-200)}.ring-white\\/30{--tw-ring-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.ring-white\\/30{--tw-ring-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.group-hover\\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\\:underline-offset-2:is(:where(.group):hover *){text-underline-offset:2px}.hover\\:border-\\[\\#E8E8E8\\]:hover{border-color:#e8e8e8}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:text-\\[\\#007EFF\\]:hover{color:#007eff}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:underline-offset-2:hover{text-underline-offset:2px}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-slate-300:focus-visible{--tw-ring-color:var(--color-slate-300)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ie=require("react"),m=require("clsx"),x=require("lucide-react");var y={exports:{}},b={};var z;function oe(){if(z)return b;z=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(s,a,c){var d=null;if(c!==void 0&&(d=""+c),a.key!==void 0&&(d=""+a.key),"key"in a){c={};for(var p in a)p!=="key"&&(c[p]=a[p])}else c=a;return a=c.ref,{$$typeof:e,type:s,key:d,ref:a!==void 0?a:null,props:c}}return b.Fragment=n,b.jsx=l,b.jsxs=l,b}var j={};var q;function ce(){return q||(q=1,process.env.NODE_ENV!=="production"&&(function(){function e(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===se?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case A:return"Fragment";case H:return"Profiler";case X:return"StrictMode";case ee:return"Suspense";case te:return"SuspenseList";case ne:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case J:return"Portal";case Q:return t.displayName||"Context";case Z:return(t._context.displayName||"Context")+".Consumer";case K:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case re:return i=t.displayName||null,i!==null?i:e(t.type)||"Memo";case k:i=t._payload,t=t._init;try{return e(t(i))}catch{}}return null}function n(t){return""+t}function l(t){try{n(t);var i=!1}catch{i=!0}if(i){i=console;var o=i.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return o.call(i,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),n(t)}}function s(t){if(t===A)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===k)return"<...>";try{var i=e(t);return i?"<"+i+">":"<...>"}catch{return"<...>"}}function a(){var t=C.A;return t===null?null:t.getOwner()}function c(){return Error("react-stack-top-frame")}function d(t){if(B.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function p(t,i){function o(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",i))}o.isReactWarning=!0,Object.defineProperty(t,"key",{get:o,configurable:!0})}function T(){var t=e(this.type);return Y[t]||(Y[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function R(t,i,o,u,w,I){var f=o.ref;return t={$$typeof:$,type:t,key:i,props:o,_owner:u},(f!==void 0?f:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:T}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:w}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function g(t,i,o,u,w,I){var f=i.children;if(f!==void 0)if(u)if(le(f)){for(u=0;u<f.length;u++)v(f[u]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(f);if(B.call(i,"key")){f=e(t);var h=Object.keys(i).filter(function(ae){return ae!=="key"});u=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",M[f+u]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
3
3
  let props = %s;
4
4
  <%s {...props} />
5
5
  React keys must be passed directly to JSX without using spread:
6
6
  let props = %s;
7
- <%s key={someKey} {...props} />`,u,f,g,f),M[f+u]=!0)}if(f=null,c!==void 0&&(l(c),f=""+c),d(i)&&(l(i.key),f=""+i.key),"key"in i){c={};for(var O in i)O!=="key"&&(c[O]=i[O])}else c=i;return f&&x(c,typeof t=="function"?t.displayName||t.name||"Unknown":t),b(t,f,c,a(),E,I)}function y(t){F(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===k&&(t._payload.status==="fulfilled"?F(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function F(t){return typeof t=="object"&&t!==null&&t.$$typeof===$}var w=V,$=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),le=Symbol.for("react.client.reference"),C=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,ae=Array.isArray,S=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(t){return t()}};var L,Y={},U=w.react_stack_bottom_frame.bind(w,o)(),D=S(s(o)),M={};N.Fragment=A,N.jsx=function(t,i,c){var u=1e4>C.recentlyCreatedOwnerStacks++;return j(t,i,c,!1,u?Error("react-stack-top-frame"):U,u?S(s(t)):D)},N.jsxs=function(t,i,c){var u=1e4>C.recentlyCreatedOwnerStacks++;return j(t,i,c,!0,u?Error("react-stack-top-frame"):U,u?S(s(t)):D)}})()),N}var G;function ue(){return G||(G=1,process.env.NODE_ENV==="production"?_.exports=oe():_.exports=ce()),_.exports}var r=ue();function fe(e,n){const l=[];for(const s of e){const a=l.length?l[l.length-1]:void 0;if(s.type==="imageGroup"){s.items[0]?.type==="media"?l.push({type:"section",title:s.title,titleIcon:r.jsx(p.Image,{className:"h-4 w-4"}),titleIconBgColor:"#FFAF36",titleClassName:"text-[#1A0CAB]",layout:"mediaGrid",items:s.items.filter(d=>d.type==="media"),columns:s.columns??n,footerAction:s.footerAction,className:s.className}):l.push({type:"section",title:s.title,titleIcon:r.jsx(p.Image,{className:"h-4 w-4"}),titleIconBgColor:"#FFAF36",titleClassName:"text-[#1A0CAB]",layout:"imageGrid",items:s.items.filter(d=>d.type==="image"),columns:s.columns??n,footerAction:s.footerAction,className:s.className});continue}if(s.type==="videoGroup"){l.push({type:"section",title:s.title,titleIcon:r.jsx(p.Video,{className:"h-4 w-4"}),titleIconBgColor:"#1784FC",titleClassName:"text-[#1A0CAB]",layout:"mediaGrid",items:s.items,columns:s.columns??n,footerAction:s.footerAction,className:s.className});continue}if(s.type==="result"){if(a?.layout==="list"){a.items.push(s);continue}l.push({type:"section",layout:"list",items:[s]});continue}if(s.type==="media"){if(a?.layout==="mediaGrid"){a.items.push(s);continue}l.push({type:"section",layout:"mediaGrid",...n?{columns:n}:{},items:[s]});continue}if(a?.layout==="imageGrid"){a.items.push(s);continue}l.push({type:"section",layout:"imageGrid",...n?{columns:n}:{},items:[s]})}return l}function de(e){if(!e)return;const n=new Date(e);return Number.isNaN(n.getTime())?e:n.toISOString().slice(0,10)}function me(e){const n=e?.trim().toLowerCase();if(n)return n==="pdf"?"pdf":n==="doc"||n==="docx"||n==="word"?"doc":n==="ppt"||n==="pptx"?"ppt":n==="xls"||n==="xlsx"||n==="excel"?"xls":n==="link"||n==="url"||n==="html"?"link":n==="txt"||n==="text"?"text":"unknown"}function xe(e,n){const l=e.thumbnail??e.cover??e.metadata?.thumbnail_link,s=e.summary??e.content,a=me(e.metadata?.file_extension??e.type),o=e.source?.name,d=e.category??e.categories?.join(" / ")??"Categories",x=[o,d].filter(Boolean),h=e.last_updated_by?.user?.username??e.owner?.username,b=de(e.last_updated_by?.timestamp??e.metadata?.last_reviewed),j=e.metadata?.icon_link??e.icon,y=j?r.jsx("img",{src:j,alt:"",className:"h-5 w-5 rounded-sm object-contain"}):void 0;return{type:"result",id:`${e.source?.id??e.url??e.title}-${n}`,title:e.title,href:e.url,description:s,thumbnailUrl:l,fileType:a,typeIcon:y,breadcrumbs:x.length?x:void 0,author:h,date:b}}function pe(e){return e.map((n,l)=>xe(n,l))}function R(e,n){const l=n==="_blank"?"noreferrer noopener":"";return e?l?[...new Set([...e.split(" "),...l.split(" ")].filter(Boolean))].join(" "):e:l||void 0}function J({href:e,target:n,rel:l,onClick:s,className:a,children:o}){return e?r.jsx("a",{href:e,target:n,rel:R(l,n),className:a,onClick:()=>s?.(),children:o}):r.jsx("button",{type:"button",className:a,onClick:s,children:o})}function he({item:e,onItemClick:n}){return r.jsxs(J,{href:e.href,target:e.target,rel:e.rel,onClick:()=>{e.onClick?.(),n?.(e)},className:m("group w-full rounded-xl bg-white text-left transition","hover:border-slate-300 hover:bg-slate-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-300"),children:[r.jsx("div",{className:"overflow-hidden rounded-lg ring-1 ring-slate-200",children:r.jsx("div",{className:"relative aspect-video bg-slate-100",children:r.jsx("img",{src:e.imageUrl,alt:e.imageAlt??e.title,className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"})})}),r.jsxs("div",{className:"mt-2",children:[r.jsx("div",{className:"truncate text-sm font-semibold text-[#333]",children:e.title}),e.subtitle?r.jsx("div",{className:"mt-1 truncate text-sm text-[#666]",children:e.subtitle}):null]})]})}function ge({author:e,date:n}){return!e&&!n?null:r.jsxs("div",{className:"flex-none truncate text-xs",children:[e?r.jsx("span",{className:"",children:e}):null,e&&n?r.jsx("span",{className:"mx-1",children:"·"}):null,n?r.jsx("span",{className:"",children:n}):null]})}function be({breadcrumbs:e}){return e?.length?r.jsx("div",{className:"min-w-0 truncate text-xs",children:e.map((n,l)=>r.jsxs("span",{children:[l>0?r.jsx("span",{className:"mx-1",children:">"}):null,r.jsx("span",{className:"",children:n})]},`${n}-${l}`))}):null}function je({meta:e}){return e?.length?r.jsx("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-[#333]",children:e.map((n,l)=>r.jsx("span",{className:"inline-flex items-center rounded border border-slate-200 bg-white px-3 py-1",children:n},`${n}-${l}`))}):null}function ve(e){const n=e.trim().toLowerCase();return n?n==="google"?"G":e.trim().slice(0,1).toUpperCase():""}function T({title:e,titleIcon:n,titleIconBgColor:l,source:s,className:a,titleClassName:o}){return!e&&!n&&!s?null:r.jsxs("div",{className:m("mb-2 flex min-w-0 items-center gap-2",a),children:[n?l?r.jsx("span",{className:"inline-flex h-6 w-6 flex-none items-center justify-center rounded-md text-white",style:{backgroundColor:l},children:n}):r.jsx("span",{className:"flex-none",children:n}):null,e?r.jsx("div",{className:m("min-w-0 text-xl font-semibold cursor-pointer hover:underline hover:underline-offset-2 group-hover:underline group-hover:underline-offset-2",o),children:e}):null,s?r.jsx("span",{className:"inline-flex h-6 w-6 flex-none items-center justify-center rounded-md",title:s,children:ve(s)}):null]})}function Ne({href:e,target:n,rel:l,onClick:s,children:a}){return e?r.jsx("a",{href:e,target:n,rel:R(l,n),onClick:()=>s?.(),className:"group flex w-full min-w-0 items-center gap-2",children:a}):s?r.jsx("button",{type:"button",onClick:s,className:"group flex w-full min-w-0 items-center gap-2 text-left",children:a}):r.jsx("div",{className:"flex w-full min-w-0 items-center gap-2",children:a})}function ye(e){switch(e){case"doc":case"word":return"bg-[#027FFE] text-white";case"pdf":return"bg-[#E02E2E] text-white";default:return"bg-slate-100 text-slate-700"}}function we(e){switch(e){case"xls":return r.jsx(p.FileSpreadsheet,{className:"h-5 w-5"});case"ppt":return r.jsx(p.Presentation,{className:"h-5 w-5"});case"pdf":case"doc":case"word":case"text":return r.jsx(p.FileText,{className:"h-5 w-5"});default:return r.jsx(p.File,{className:"h-5 w-5"})}}function W({fileType:e,typeIcon:n}){return n?r.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center",children:n}):e?r.jsx("span",{className:m("inline-flex h-6 w-6 items-center justify-center rounded-md",ye(e)),children:we(e)}):null}function Ee({item:e,onItemClick:n}){const l=e.typeIcon?r.jsx(W,{typeIcon:e.typeIcon}):e.fileType?r.jsx(W,{fileType:e.fileType}):null;return r.jsxs("div",{className:"w-full py-2",children:[r.jsx("div",{className:"flex min-w-0 items-center gap-2",children:r.jsx(Ne,{href:e.href,target:e.target,rel:e.rel,onClick:()=>{e.onClick?.(),n?.(e)},children:r.jsx(T,{className:"mb-0 w-full",title:e.title,titleIcon:l,source:e.source,titleClassName:"truncate text-[#1A0CAB]"})})}),r.jsxs("div",{className:"mt-2 flex gap-3",children:[e.thumbnailUrl?r.jsx("img",{src:e.thumbnailUrl,alt:e.thumbnailAlt??e.title,className:"h-[90px] w-[160px] flex-none rounded-lg object-cover ring-1 ring-slate-200",loading:"lazy"}):r.jsx("div",{className:"h-[90px] w-[160px] flex-none rounded-lg bg-slate-100 ring-1 ring-slate-200"}),r.jsxs("div",{className:"min-w-0 flex-1 flex flex-col justify-between",children:[e.description?r.jsx("div",{className:"line-clamp-2 text-sm text-[#666]",children:e.description}):null,e.breadcrumbs?.length||e.author||e.date?r.jsxs("div",{className:"mt-2 flex min-w-0 items-center gap-3 text-[#666]",children:[r.jsx(be,{breadcrumbs:e.breadcrumbs}),r.jsx("span",{className:"h-3 w-px flex-none bg-[#666]","aria-hidden":"true"}),r.jsxs("div",{className:"flex flex-none items-center gap-2",children:[r.jsx(ge,{author:e.author,date:e.date}),e.href?r.jsx("a",{href:e.href,target:e.target,rel:R(e.rel,e.target),className:"flex-none text-[#007EFF] hover:text-[#007EFF]",children:r.jsx(p.ExternalLink,{className:"h-3 w-3"})}):null]})]}):r.jsx(je,{meta:e.meta})]})]})]})}function _e({text:e}){return r.jsx("span",{className:"inline-flex items-center rounded-md border border-slate-200 bg-white px-2 py-1 text-xs text-slate-700",children:e})}function Te({item:e,onItemClick:n}){const l=[e.sourceLabel,e.categoryLabel].filter(Boolean);return r.jsxs(J,{href:e.href,target:e.target,rel:e.rel,onClick:()=>{e.onClick?.(),n?.(e)},className:m("group w-full rounded-xl bg-white text-left transition","hover:border-slate-300 hover:bg-slate-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-300"),children:[r.jsx("div",{className:"overflow-hidden rounded-lg ring-1 ring-slate-200",children:r.jsxs("div",{className:"relative aspect-4/3 bg-slate-100",children:[r.jsx("img",{src:e.thumbnailUrl,alt:e.thumbnailAlt??e.title,className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"}),e.mediaType==="video"?r.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:r.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-black/55 text-white ring-1 ring-white/30",children:r.jsx(p.Play,{className:"h-5 w-5 translate-x-px"})})}):null]})}),r.jsxs("div",{className:"mt-2",children:[r.jsx("div",{className:"truncate text-sm font-medium",children:e.title}),e.matchCountText?r.jsx("div",{className:"mt-1 truncate text-xs text-[#666]",children:e.matchCountText}):null,l.length?r.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:l.map(s=>r.jsx(_e,{text:s},s))}):null]})]})}function Re({action:e,className:n}){const l=m("flex-none inline-flex items-center justify-center rounded-full border border-slate-200 bg-white","h-9 px-12 text-sm font-medium text-slate-700 no-underline transition","hover:border-slate-300 hover:bg-slate-50 hover:no-underline","focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-300",n);return e.href?r.jsx("a",{className:l,href:e.href,target:e.target,rel:R(e.rel,e.target),onClick:()=>e.onClick?.(),children:e.label}):r.jsx("button",{className:l,type:"button",onClick:e.onClick,children:e.label})}function P({action:e}){return e?r.jsxs("div",{className:"mt-3 flex w-full items-center",children:[r.jsx("span",{className:"h-px flex-1 bg-[#E8E8E8]","aria-hidden":"true"}),r.jsx(Re,{action:e,className:m("rounded-full border border-[#E8E8E8] bg-white px-4 py-2 text-sm font-medium text-[#333] transition","hover:border-[#E8E8E8] hover:bg-[#F5F5F5]")}),r.jsx("span",{className:"h-px flex-1 bg-[#E8E8E8]","aria-hidden":"true"})]}):null}function Ae(e,n){if(e.layout==="list")return r.jsxs("div",{className:m("space-y-6",e.className),children:[r.jsx(T,{title:e.title,titleIcon:e.titleIcon,titleIconBgColor:e.titleIconBgColor,titleClassName:e.titleClassName}),e.items.map(a=>r.jsx(Ee,{item:a,onItemClick:n},a.id)),r.jsx(P,{action:e.footerAction})]});if(e.layout==="mediaGrid"){const a=e.columns??3,o=a===2?"grid-cols-2":a===4?"grid-cols-4":"grid-cols-3";return r.jsxs("div",{className:m(e.className),children:[r.jsx(T,{title:e.title,titleIcon:e.titleIcon,titleIconBgColor:e.titleIconBgColor,titleClassName:e.titleClassName}),r.jsx("div",{className:m("grid gap-3",o),children:e.items.map(d=>r.jsx(Te,{item:d,onItemClick:n},d.id))}),r.jsx(P,{action:e.footerAction})]})}const l=e.columns??3,s=l===2?"grid-cols-2":l===4?"grid-cols-4":"grid-cols-3";return r.jsxs("div",{className:m(e.className),children:[r.jsx(T,{title:e.title,titleIcon:e.titleIcon,titleIconBgColor:e.titleIconBgColor,titleClassName:e.titleClassName}),r.jsx("div",{className:m("grid gap-3",s),children:e.items.map(a=>r.jsx(he,{item:a,onItemClick:n},a.id))}),r.jsx(P,{action:e.footerAction})]})}function ke({sections:e,items:n,records:l,imageGridColumns:s,className:a,onItemClick:o}){const d=n??(l?.length?pe(l):void 0),x=e??(d?.length?fe(d,s):[]);return r.jsx("div",{className:m("space-y-5",a),children:x.map((h,b)=>r.jsx(V.Fragment,{children:Ae(h,o)},`${h.type}-${b}`))})}module.exports=ke;
7
+ <%s key={someKey} {...props} />`,u,f,h,f),M[f+u]=!0)}if(f=null,o!==void 0&&(l(o),f=""+o),d(i)&&(l(i.key),f=""+i.key),"key"in i){o={};for(var O in i)O!=="key"&&(o[O]=i[O])}else o=i;return f&&p(o,typeof t=="function"?t.displayName||t.name||"Unknown":t),R(t,f,o,a(),w,I)}function v(t){F(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===k&&(t._payload.status==="fulfilled"?F(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function F(t){return typeof t=="object"&&t!==null&&t.$$typeof===$}var N=ie,$=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),se=Symbol.for("react.client.reference"),C=N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,le=Array.isArray,S=console.createTask?console.createTask:function(){return null};N={react_stack_bottom_frame:function(t){return t()}};var L,Y={},U=N.react_stack_bottom_frame.bind(N,c)(),D=S(s(c)),M={};j.Fragment=A,j.jsx=function(t,i,o){var u=1e4>C.recentlyCreatedOwnerStacks++;return g(t,i,o,!1,u?Error("react-stack-top-frame"):U,u?S(s(t)):D)},j.jsxs=function(t,i,o){var u=1e4>C.recentlyCreatedOwnerStacks++;return g(t,i,o,!0,u?Error("react-stack-top-frame"):U,u?S(s(t)):D)}})()),j}var G;function ue(){return G||(G=1,process.env.NODE_ENV==="production"?y.exports=oe():y.exports=ce()),y.exports}var r=ue();function _(e,n){const l=n==="_blank"?"noreferrer noopener":"";return e?l?[...new Set([...e.split(" "),...l.split(" ")].filter(Boolean))].join(" "):e:l||void 0}function V({href:e,target:n,rel:l,onClick:s,className:a,children:c}){return e?r.jsx("a",{href:e,target:n,rel:_(l,n),className:a,onClick:()=>s?.(),children:c}):r.jsx("button",{type:"button",className:a,onClick:s,children:c})}function fe({item:e,onItemClick:n}){return r.jsxs(V,{href:e.href,target:e.target,rel:e.rel,onClick:()=>{e.onClick?.(),n?.(e)},className:m("group w-full rounded-xl bg-white text-left transition","hover:border-slate-300 hover:bg-slate-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-300"),children:[r.jsx("div",{className:"overflow-hidden rounded-lg ring-1 ring-slate-200",children:r.jsx("div",{className:"relative aspect-video bg-slate-100",children:r.jsx("img",{src:e.imageUrl,alt:e.imageAlt??e.title,className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"})})}),r.jsxs("div",{className:"mt-2",children:[r.jsx("div",{className:"truncate text-sm font-semibold text-[#333]",children:e.title}),e.subtitle?r.jsx("div",{className:"mt-1 truncate text-sm text-[#666]",children:e.subtitle}):null]})]})}function de({author:e,date:n}){return!e&&!n?null:r.jsxs("div",{className:"flex-none truncate text-xs",children:[e?r.jsx("span",{className:"",children:e}):null,e&&n?r.jsx("span",{className:"mx-1",children:"·"}):null,n?r.jsx("span",{className:"",children:n}):null]})}function me({breadcrumbs:e}){return e?.length?r.jsx("div",{className:"min-w-0 truncate text-xs",children:e.map((n,l)=>r.jsxs("span",{children:[l>0?r.jsx("span",{className:"mx-1",children:">"}):null,r.jsx("span",{className:"",children:n})]},`${n}-${l}`))}):null}function xe({meta:e}){return e?.length?r.jsx("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-[#333]",children:e.map((n,l)=>r.jsx("span",{className:"inline-flex items-center rounded border border-slate-200 bg-white px-3 py-1",children:n},`${n}-${l}`))}):null}function pe(e){const n=e.trim().toLowerCase();return n?n==="google"?"G":e.trim().slice(0,1).toUpperCase():""}function E({title:e,titleIcon:n,titleIconBgColor:l,source:s,className:a,titleClassName:c}){return!e&&!n&&!s?null:r.jsxs("div",{className:m("mb-2 flex min-w-0 items-center gap-2",a),children:[n?l?r.jsx("span",{className:"inline-flex h-6 w-6 flex-none items-center justify-center rounded-md text-white",style:{backgroundColor:l},children:n}):r.jsx("span",{className:"flex-none",children:n}):null,e?r.jsx("div",{className:m("min-w-0 text-xl font-semibold cursor-pointer hover:underline hover:underline-offset-2 group-hover:underline group-hover:underline-offset-2",c),children:e}):null,s?r.jsx("span",{className:"inline-flex h-6 w-6 flex-none items-center justify-center rounded-md",title:s,children:pe(s)}):null]})}function he({href:e,target:n,rel:l,onClick:s,children:a}){return e?r.jsx("a",{href:e,target:n,rel:_(l,n),onClick:()=>s?.(),className:"group flex w-full min-w-0 items-center gap-2",children:a}):s?r.jsx("button",{type:"button",onClick:s,className:"group flex w-full min-w-0 items-center gap-2 text-left",children:a}):r.jsx("div",{className:"flex w-full min-w-0 items-center gap-2",children:a})}function ge(e){switch(e){case"doc":case"word":return"bg-[#027FFE] text-white";case"pdf":return"bg-[#E02E2E] text-white";default:return"bg-slate-100 text-slate-700"}}function be(e){switch(e){case"xls":return r.jsx(x.FileSpreadsheet,{className:"h-5 w-5"});case"ppt":return r.jsx(x.Presentation,{className:"h-5 w-5"});case"pdf":case"doc":case"word":case"text":return r.jsx(x.FileText,{className:"h-5 w-5"});default:return r.jsx(x.File,{className:"h-5 w-5"})}}function W({fileType:e,typeIcon:n}){return n?r.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center",children:n}):e?r.jsx("span",{className:m("inline-flex h-6 w-6 items-center justify-center rounded-md",ge(e)),children:be(e)}):null}function je({item:e,onItemClick:n}){const l=e.typeIcon?r.jsx(W,{typeIcon:e.typeIcon}):e.fileType?r.jsx(W,{fileType:e.fileType}):null;return r.jsxs("div",{className:"w-full py-2",children:[r.jsx("div",{className:"flex min-w-0 items-center gap-2",children:r.jsx(he,{href:e.href,target:e.target,rel:e.rel,onClick:()=>{e.onClick?.(),n?.(e)},children:r.jsx(E,{className:"mb-0 w-full",title:e.title,titleIcon:l,source:e.source,titleClassName:"truncate text-[#1A0CAB]"})})}),r.jsxs("div",{className:"mt-2 flex gap-3",children:[e.thumbnailUrl?r.jsx("img",{src:e.thumbnailUrl,alt:e.thumbnailAlt??e.title,className:"h-[90px] w-[160px] flex-none rounded-lg object-cover ring-1 ring-slate-200",loading:"lazy"}):r.jsx("div",{className:"h-[90px] w-[160px] flex-none rounded-lg bg-slate-100 ring-1 ring-slate-200"}),r.jsxs("div",{className:"min-w-0 flex-1 flex flex-col justify-between",children:[e.description?r.jsx("div",{className:"line-clamp-2 text-sm text-[#666]",children:e.description}):null,e.breadcrumbs?.length||e.author||e.date?r.jsxs("div",{className:"mt-2 flex min-w-0 items-center gap-3 text-[#666]",children:[r.jsx(me,{breadcrumbs:e.breadcrumbs}),r.jsx("span",{className:"h-3 w-px flex-none bg-[#666]","aria-hidden":"true"}),r.jsxs("div",{className:"flex flex-none items-center gap-2",children:[r.jsx(de,{author:e.author,date:e.date}),e.href?r.jsx("a",{href:e.href,target:e.target,rel:_(e.rel,e.target),className:"flex-none text-[#007EFF] hover:text-[#007EFF]",children:r.jsx(x.ExternalLink,{className:"h-3 w-3"})}):null]})]}):r.jsx(xe,{meta:e.meta})]})]})]})}function ve({text:e}){return r.jsx("span",{className:"inline-flex items-center rounded-md border border-slate-200 bg-white px-2 py-1 text-xs text-slate-700",children:e})}function Ne({item:e,onItemClick:n}){const l=[e.sourceLabel,e.categoryLabel].filter(Boolean);return r.jsxs(V,{href:e.href,target:e.target,rel:e.rel,onClick:()=>{e.onClick?.(),n?.(e)},className:m("group w-full rounded-xl bg-white text-left transition","hover:border-slate-300 hover:bg-slate-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-300"),children:[r.jsx("div",{className:"overflow-hidden rounded-lg ring-1 ring-slate-200",children:r.jsxs("div",{className:"relative aspect-4/3 bg-slate-100",children:[r.jsx("img",{src:e.thumbnailUrl,alt:e.thumbnailAlt??e.title,className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"}),e.mediaType==="video"?r.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:r.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-black/55 text-white ring-1 ring-white/30",children:r.jsx(x.Play,{className:"h-5 w-5 translate-x-px"})})}):null]})}),r.jsxs("div",{className:"mt-2",children:[r.jsx("div",{className:"truncate text-sm font-medium",children:e.title}),e.matchCountText?r.jsx("div",{className:"mt-1 truncate text-xs text-[#666]",children:e.matchCountText}):null,l.length?r.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:l.map(s=>r.jsx(ve,{text:s},s))}):null]})]})}function we({action:e,className:n}){const l=m("flex-none inline-flex items-center justify-center rounded-full border border-slate-200 bg-white","h-9 px-12 text-sm font-medium text-slate-700 no-underline transition","hover:border-slate-300 hover:bg-slate-50 hover:no-underline","focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-300",n);return e.href?r.jsx("a",{className:l,href:e.href,target:e.target,rel:_(e.rel,e.target),onClick:()=>e.onClick?.(),children:e.label}):r.jsx("button",{className:l,type:"button",onClick:e.onClick,children:e.label})}function P({action:e}){return e?r.jsxs("div",{className:"mt-3 flex w-full items-center",children:[r.jsx("span",{className:"h-px flex-1 bg-[#E8E8E8]","aria-hidden":"true"}),r.jsx(we,{action:e,className:m("rounded-full border border-[#E8E8E8] bg-white px-4 py-2 text-sm font-medium text-[#333] transition","hover:border-[#E8E8E8] hover:bg-[#F5F5F5]")}),r.jsx("span",{className:"h-px flex-1 bg-[#E8E8E8]","aria-hidden":"true"})]}):null}function ye(e,n){if(e.layout==="list")return r.jsxs("div",{className:m("space-y-6",e.className),children:[r.jsx(E,{title:e.title,titleIcon:e.titleIcon,titleIconBgColor:e.titleIconBgColor,titleClassName:e.titleClassName}),e.items.map(a=>r.jsx(je,{item:a,onItemClick:n},a.id)),r.jsx(P,{action:e.footerAction})]});if(e.layout==="mediaGrid"){const a=e.columns??3,c=a===2?"grid-cols-2":a===4?"grid-cols-4":"grid-cols-3";return r.jsxs("div",{className:m(e.className),children:[r.jsx(E,{title:e.title,titleIcon:e.titleIcon,titleIconBgColor:e.titleIconBgColor,titleClassName:e.titleClassName}),r.jsx("div",{className:m("grid gap-3",c),children:e.items.map(d=>r.jsx(Ne,{item:d,onItemClick:n},d.id))}),r.jsx(P,{action:e.footerAction})]})}const l=e.columns??3,s=l===2?"grid-cols-2":l===4?"grid-cols-4":"grid-cols-3";return r.jsxs("div",{className:m(e.className),children:[r.jsx(E,{title:e.title,titleIcon:e.titleIcon,titleIconBgColor:e.titleIconBgColor,titleClassName:e.titleClassName}),r.jsx("div",{className:m("grid gap-3",s),children:e.items.map(a=>r.jsx(fe,{item:a,onItemClick:n},a.id))}),r.jsx(P,{action:e.footerAction})]})}function Ee({section:e,className:n,onItemClick:l}){return r.jsx("div",{className:m(n),children:ye(e,l)})}function _e(e,n){const l=[];for(const s of e){const a=l.length?l[l.length-1]:void 0;if(s.type==="imageGroup"){s.items[0]?.type==="media"?l.push({type:"section",title:s.title,titleIcon:r.jsx(x.Image,{className:"h-4 w-4"}),titleIconBgColor:"#FFAF36",titleClassName:"text-[#1A0CAB]",layout:"mediaGrid",items:s.items.filter(d=>d.type==="media"),columns:s.columns??n,footerAction:s.footerAction,className:s.className}):l.push({type:"section",title:s.title,titleIcon:r.jsx(x.Image,{className:"h-4 w-4"}),titleIconBgColor:"#FFAF36",titleClassName:"text-[#1A0CAB]",layout:"imageGrid",items:s.items.filter(d=>d.type==="image"),columns:s.columns??n,footerAction:s.footerAction,className:s.className});continue}if(s.type==="videoGroup"){l.push({type:"section",title:s.title,titleIcon:r.jsx(x.Video,{className:"h-4 w-4"}),titleIconBgColor:"#1784FC",titleClassName:"text-[#1A0CAB]",layout:"mediaGrid",items:s.items,columns:s.columns??n,footerAction:s.footerAction,className:s.className});continue}if(s.type==="result"){if(a?.layout==="list"){a.items.push(s);continue}l.push({type:"section",layout:"list",items:[s]});continue}if(s.type==="media"){if(a?.layout==="mediaGrid"){a.items.push(s);continue}l.push({type:"section",layout:"mediaGrid",...n?{columns:n}:{},items:[s]});continue}if(a?.layout==="imageGrid"){a.items.push(s);continue}l.push({type:"section",layout:"imageGrid",...n?{columns:n}:{},items:[s]})}return l}function Te(e){if(!e)return;const n=new Date(e);return Number.isNaN(n.getTime())?e:n.toISOString().slice(0,10)}function Re(e){const n=e?.trim().toLowerCase();if(n)return n==="pdf"?"pdf":n==="doc"||n==="docx"||n==="word"?"doc":n==="ppt"||n==="pptx"?"ppt":n==="xls"||n==="xlsx"||n==="excel"?"xls":n==="link"||n==="url"||n==="html"?"link":n==="txt"||n==="text"?"text":"unknown"}function Ae(e,n){const l=e.thumbnail??e.cover??e.metadata?.thumbnail_link,s=e.summary??e.content,a=Re(e.metadata?.file_extension??e.type),c=e.source?.name,d=e.category??e.categories?.join(" / ")??"Categories",p=[c,d].filter(Boolean),T=e.last_updated_by?.user?.username??e.owner?.username,R=Te(e.last_updated_by?.timestamp??e.metadata?.last_reviewed),g=e.metadata?.icon_link??e.icon,v=g?r.jsx("img",{src:g,alt:"",className:"h-5 w-5 rounded-sm object-contain"}):void 0;return{type:"result",id:`${e.source?.id??e.url??e.title}-${n}`,title:e.title,href:e.url,description:s,thumbnailUrl:l,fileType:a,typeIcon:v,breadcrumbs:p.length?p:void 0,author:T,date:R}}function ke(e){return e.map((n,l)=>Ae(n,l))}exports.default=Ee;exports.itemsToSections=_e;exports.recordsToItems=ke;
@@ -1,67 +1,67 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-700:oklch(37.2% .044 257.287);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.aspect-4\\/3{aspect-ratio:4/3}.aspect-video{aspect-ratio:var(--aspect-video)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-\\[90px\\]{height:90px}.h-full{height:100%}.h-px{height:1px}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-\\[160px\\]{width:160px}.w-full{width:100%}.w-px{width:1px}.max-w-3xl{max-width:var(--container-3xl)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-none{flex:none}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[\\#E8E8E8\\]{border-color:#e8e8e8}.border-slate-200{border-color:var(--color-slate-200)}.bg-\\[\\#027FFE\\]{background-color:#027ffe}.bg-\\[\\#666\\]{background-color:#666}.bg-\\[\\#E02E2E\\]{background-color:#e02e2e}.bg-\\[\\#E8E8E8\\]{background-color:#e8e8e8}.bg-black\\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/55{background-color:color-mix(in oklab,var(--color-black)55%,transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-12{padding-inline:calc(var(--spacing)*12)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-\\[\\#1A0CAB\\]{color:#1a0cab}.text-\\[\\#007EFF\\]{color:#007eff}.text-\\[\\#333\\]{color:#333}.text-\\[\\#666\\]{color:#666}.text-slate-700{color:var(--color-slate-700)}.text-white{color:var(--color-white)}.no-underline{text-decoration-line:none}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-slate-200{--tw-ring-color:var(--color-slate-200)}.ring-white\\/30{--tw-ring-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.ring-white\\/30{--tw-ring-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.group-hover\\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\\:underline-offset-2:is(:where(.group):hover *){text-underline-offset:2px}.hover\\:border-\\[\\#E8E8E8\\]:hover{border-color:#e8e8e8}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:text-\\[\\#007EFF\\]:hover{color:#007eff}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:underline-offset-2:hover{text-underline-offset:2px}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-slate-300:focus-visible{--tw-ring-color:var(--color-slate-300)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import q from "react";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-700:oklch(37.2% .044 257.287);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.aspect-4\\/3{aspect-ratio:4/3}.aspect-video{aspect-ratio:var(--aspect-video)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-\\[90px\\]{height:90px}.h-full{height:100%}.h-px{height:1px}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-\\[160px\\]{width:160px}.w-full{width:100%}.w-px{width:1px}.max-w-3xl{max-width:var(--container-3xl)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-none{flex:none}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*10)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*10)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[\\#E8E8E8\\]{border-color:#e8e8e8}.border-slate-200{border-color:var(--color-slate-200)}.bg-\\[\\#027FFE\\]{background-color:#027ffe}.bg-\\[\\#666\\]{background-color:#666}.bg-\\[\\#E02E2E\\]{background-color:#e02e2e}.bg-\\[\\#E8E8E8\\]{background-color:#e8e8e8}.bg-black\\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/55{background-color:color-mix(in oklab,var(--color-black)55%,transparent)}}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-12{padding-inline:calc(var(--spacing)*12)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-\\[\\#1A0CAB\\]{color:#1a0cab}.text-\\[\\#007EFF\\]{color:#007eff}.text-\\[\\#333\\]{color:#333}.text-\\[\\#666\\]{color:#666}.text-slate-700{color:var(--color-slate-700)}.text-white{color:var(--color-white)}.no-underline{text-decoration-line:none}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-slate-200{--tw-ring-color:var(--color-slate-200)}.ring-white\\/30{--tw-ring-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.ring-white\\/30{--tw-ring-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.group-hover\\:underline:is(:where(.group):hover *){text-decoration-line:underline}.group-hover\\:underline-offset-2:is(:where(.group):hover *){text-underline-offset:2px}.hover\\:border-\\[\\#E8E8E8\\]:hover{border-color:#e8e8e8}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:text-\\[\\#007EFF\\]:hover{color:#007eff}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:underline-offset-2:hover{text-underline-offset:2px}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-slate-300:focus-visible{--tw-ring-color:var(--color-slate-300)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import ie from "react";
3
3
  import m from "clsx";
4
- import { Image as M, Video as oe, File as ce, FileText as ue, Presentation as fe, FileSpreadsheet as de, ExternalLink as me, Play as xe } from "lucide-react";
5
- var E = { exports: {} }, j = {};
4
+ import { File as oe, FileText as ce, Presentation as ue, FileSpreadsheet as fe, ExternalLink as de, Play as me, Image as M, Video as xe } from "lucide-react";
5
+ var w = { exports: {} }, g = {};
6
6
  var z;
7
7
  function pe() {
8
- if (z) return j;
8
+ if (z) return g;
9
9
  z = 1;
10
10
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
11
- function l(s, a, o) {
11
+ function l(s, a, c) {
12
12
  var d = null;
13
- if (o !== void 0 && (d = "" + o), a.key !== void 0 && (d = "" + a.key), "key" in a) {
14
- o = {};
13
+ if (c !== void 0 && (d = "" + c), a.key !== void 0 && (d = "" + a.key), "key" in a) {
14
+ c = {};
15
15
  for (var x in a)
16
- x !== "key" && (o[x] = a[x]);
17
- } else o = a;
18
- return a = o.ref, {
16
+ x !== "key" && (c[x] = a[x]);
17
+ } else c = a;
18
+ return a = c.ref, {
19
19
  $$typeof: e,
20
20
  type: s,
21
21
  key: d,
22
22
  ref: a !== void 0 ? a : null,
23
- props: o
23
+ props: c
24
24
  };
25
25
  }
26
- return j.Fragment = n, j.jsx = l, j.jsxs = l, j;
26
+ return g.Fragment = n, g.jsx = l, g.jsxs = l, g;
27
27
  }
28
- var v = {};
28
+ var b = {};
29
29
  var G;
30
30
  function he() {
31
31
  return G || (G = 1, process.env.NODE_ENV !== "production" && (function() {
32
32
  function e(t) {
33
33
  if (t == null) return null;
34
34
  if (typeof t == "function")
35
- return t.$$typeof === le ? null : t.displayName || t.name || null;
35
+ return t.$$typeof === se ? null : t.displayName || t.name || null;
36
36
  if (typeof t == "string") return t;
37
37
  switch (t) {
38
38
  case R:
39
39
  return "Fragment";
40
- case Z:
41
- return "Profiler";
42
40
  case H:
41
+ return "Profiler";
42
+ case X:
43
43
  return "StrictMode";
44
- case te:
44
+ case ee:
45
45
  return "Suspense";
46
- case re:
46
+ case te:
47
47
  return "SuspenseList";
48
- case se:
48
+ case ne:
49
49
  return "Activity";
50
50
  }
51
51
  if (typeof t == "object")
52
52
  switch (typeof t.tag == "number" && console.error(
53
53
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
54
54
  ), t.$$typeof) {
55
- case X:
55
+ case J:
56
56
  return "Portal";
57
- case K:
58
- return t.displayName || "Context";
59
57
  case Q:
58
+ return t.displayName || "Context";
59
+ case Z:
60
60
  return (t._context.displayName || "Context") + ".Consumer";
61
- case ee:
61
+ case K:
62
62
  var i = t.render;
63
63
  return t = t.displayName, t || (t = i.displayName || i.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
64
- case ne:
64
+ case re:
65
65
  return i = t.displayName || null, i !== null ? i : e(t.type) || "Memo";
66
66
  case A:
67
67
  i = t._payload, t = t._init;
@@ -84,8 +84,8 @@ function he() {
84
84
  }
85
85
  if (i) {
86
86
  i = console;
87
- var c = i.error, u = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
88
- return c.call(
87
+ var o = i.error, u = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
88
+ return o.call(
89
89
  i,
90
90
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
91
91
  u
@@ -107,7 +107,7 @@ function he() {
107
107
  var t = k.A;
108
108
  return t === null ? null : t.getOwner();
109
109
  }
110
- function o() {
110
+ function c() {
111
111
  return Error("react-stack-top-frame");
112
112
  }
113
113
  function d(t) {
@@ -118,34 +118,34 @@ function he() {
118
118
  return t.key !== void 0;
119
119
  }
120
120
  function x(t, i) {
121
- function c() {
121
+ function o() {
122
122
  B || (B = !0, console.error(
123
123
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
124
124
  i
125
125
  ));
126
126
  }
127
- c.isReactWarning = !0, Object.defineProperty(t, "key", {
128
- get: c,
127
+ o.isReactWarning = !0, Object.defineProperty(t, "key", {
128
+ get: o,
129
129
  configurable: !0
130
130
  });
131
131
  }
132
- function p() {
132
+ function _() {
133
133
  var t = e(this.type);
134
134
  return L[t] || (L[t] = !0, console.error(
135
135
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
136
136
  )), t = this.props.ref, t !== void 0 ? t : null;
137
137
  }
138
- function g(t, i, c, u, w, S) {
139
- var f = c.ref;
138
+ function T(t, i, o, u, N, S) {
139
+ var f = o.ref;
140
140
  return t = {
141
141
  $$typeof: F,
142
142
  type: t,
143
143
  key: i,
144
- props: c,
144
+ props: o,
145
145
  _owner: u
146
146
  }, (f !== void 0 ? f : null) !== null ? Object.defineProperty(t, "ref", {
147
147
  enumerable: !1,
148
- get: p
148
+ get: _
149
149
  }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
150
150
  configurable: !1,
151
151
  enumerable: !1,
@@ -160,7 +160,7 @@ function he() {
160
160
  configurable: !1,
161
161
  enumerable: !1,
162
162
  writable: !0,
163
- value: w
163
+ value: N
164
164
  }), Object.defineProperty(t, "_debugTask", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
@@ -168,25 +168,25 @@ function he() {
168
168
  value: S
169
169
  }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
170
170
  }
171
- function b(t, i, c, u, w, S) {
171
+ function h(t, i, o, u, N, S) {
172
172
  var f = i.children;
173
173
  if (f !== void 0)
174
174
  if (u)
175
- if (ae(f)) {
175
+ if (le(f)) {
176
176
  for (u = 0; u < f.length; u++)
177
- N(f[u]);
177
+ j(f[u]);
178
178
  Object.freeze && Object.freeze(f);
179
179
  } else
180
180
  console.error(
181
181
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
182
182
  );
183
- else N(f);
183
+ else j(f);
184
184
  if ($.call(i, "key")) {
185
185
  f = e(t);
186
- var h = Object.keys(i).filter(function(ie) {
187
- return ie !== "key";
186
+ var p = Object.keys(i).filter(function(ae) {
187
+ return ae !== "key";
188
188
  });
189
- u = 0 < h.length ? "{key: someKey, " + h.join(": ..., ") + ": ...}" : "{key: someKey}", D[f + u] || (h = 0 < h.length ? "{" + h.join(": ..., ") + ": ...}" : "{}", console.error(
189
+ u = 0 < p.length ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}", D[f + u] || (p = 0 < p.length ? "{" + p.join(": ..., ") + ": ...}" : "{}", console.error(
190
190
  `A props object containing a "key" prop is being spread into JSX:
191
191
  let props = %s;
192
192
  <%s {...props} />
@@ -195,215 +195,103 @@ React keys must be passed directly to JSX without using spread:
195
195
  <%s key={someKey} {...props} />`,
196
196
  u,
197
197
  f,
198
- h,
198
+ p,
199
199
  f
200
200
  ), D[f + u] = !0);
201
201
  }
202
- if (f = null, c !== void 0 && (l(c), f = "" + c), d(i) && (l(i.key), f = "" + i.key), "key" in i) {
203
- c = {};
202
+ if (f = null, o !== void 0 && (l(o), f = "" + o), d(i) && (l(i.key), f = "" + i.key), "key" in i) {
203
+ o = {};
204
204
  for (var I in i)
205
- I !== "key" && (c[I] = i[I]);
206
- } else c = i;
205
+ I !== "key" && (o[I] = i[I]);
206
+ } else o = i;
207
207
  return f && x(
208
- c,
208
+ o,
209
209
  typeof t == "function" ? t.displayName || t.name || "Unknown" : t
210
- ), g(
210
+ ), T(
211
211
  t,
212
212
  f,
213
- c,
213
+ o,
214
214
  a(),
215
- w,
215
+ N,
216
216
  S
217
217
  );
218
218
  }
219
- function N(t) {
219
+ function j(t) {
220
220
  P(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === A && (t._payload.status === "fulfilled" ? P(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
221
221
  }
222
222
  function P(t) {
223
223
  return typeof t == "object" && t !== null && t.$$typeof === F;
224
224
  }
225
- var y = q, F = /* @__PURE__ */ Symbol.for("react.transitional.element"), X = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), H = /* @__PURE__ */ Symbol.for("react.strict_mode"), Z = /* @__PURE__ */ Symbol.for("react.profiler"), Q = /* @__PURE__ */ Symbol.for("react.consumer"), K = /* @__PURE__ */ Symbol.for("react.context"), ee = /* @__PURE__ */ Symbol.for("react.forward_ref"), te = /* @__PURE__ */ Symbol.for("react.suspense"), re = /* @__PURE__ */ Symbol.for("react.suspense_list"), ne = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), se = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), k = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, ae = Array.isArray, C = console.createTask ? console.createTask : function() {
225
+ var v = ie, F = /* @__PURE__ */ Symbol.for("react.transitional.element"), J = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), X = /* @__PURE__ */ Symbol.for("react.strict_mode"), H = /* @__PURE__ */ Symbol.for("react.profiler"), Z = /* @__PURE__ */ Symbol.for("react.consumer"), Q = /* @__PURE__ */ Symbol.for("react.context"), K = /* @__PURE__ */ Symbol.for("react.forward_ref"), ee = /* @__PURE__ */ Symbol.for("react.suspense"), te = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), se = /* @__PURE__ */ Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, le = Array.isArray, C = console.createTask ? console.createTask : function() {
226
226
  return null;
227
227
  };
228
- y = {
228
+ v = {
229
229
  react_stack_bottom_frame: function(t) {
230
230
  return t();
231
231
  }
232
232
  };
233
- var B, L = {}, Y = y.react_stack_bottom_frame.bind(
234
- y,
235
- o
236
- )(), U = C(s(o)), D = {};
237
- v.Fragment = R, v.jsx = function(t, i, c) {
233
+ var B, L = {}, Y = v.react_stack_bottom_frame.bind(
234
+ v,
235
+ c
236
+ )(), U = C(s(c)), D = {};
237
+ b.Fragment = R, b.jsx = function(t, i, o) {
238
238
  var u = 1e4 > k.recentlyCreatedOwnerStacks++;
239
- return b(
239
+ return h(
240
240
  t,
241
241
  i,
242
- c,
242
+ o,
243
243
  !1,
244
244
  u ? Error("react-stack-top-frame") : Y,
245
245
  u ? C(s(t)) : U
246
246
  );
247
- }, v.jsxs = function(t, i, c) {
247
+ }, b.jsxs = function(t, i, o) {
248
248
  var u = 1e4 > k.recentlyCreatedOwnerStacks++;
249
- return b(
249
+ return h(
250
250
  t,
251
251
  i,
252
- c,
252
+ o,
253
253
  !0,
254
254
  u ? Error("react-stack-top-frame") : Y,
255
255
  u ? C(s(t)) : U
256
256
  );
257
257
  };
258
- })()), v;
258
+ })()), b;
259
259
  }
260
260
  var W;
261
261
  function ge() {
262
- return W || (W = 1, process.env.NODE_ENV === "production" ? E.exports = pe() : E.exports = he()), E.exports;
262
+ return W || (W = 1, process.env.NODE_ENV === "production" ? w.exports = pe() : w.exports = he()), w.exports;
263
263
  }
264
264
  var r = ge();
265
- function be(e, n) {
266
- const l = [];
267
- for (const s of e) {
268
- const a = l.length ? l[l.length - 1] : void 0;
269
- if (s.type === "imageGroup") {
270
- s.items[0]?.type === "media" ? l.push({
271
- type: "section",
272
- title: s.title,
273
- titleIcon: /* @__PURE__ */ r.jsx(M, { className: "h-4 w-4" }),
274
- titleIconBgColor: "#FFAF36",
275
- titleClassName: "text-[#1A0CAB]",
276
- layout: "mediaGrid",
277
- items: s.items.filter((d) => d.type === "media"),
278
- columns: s.columns ?? n,
279
- footerAction: s.footerAction,
280
- className: s.className
281
- }) : l.push({
282
- type: "section",
283
- title: s.title,
284
- titleIcon: /* @__PURE__ */ r.jsx(M, { className: "h-4 w-4" }),
285
- titleIconBgColor: "#FFAF36",
286
- titleClassName: "text-[#1A0CAB]",
287
- layout: "imageGrid",
288
- items: s.items.filter((d) => d.type === "image"),
289
- columns: s.columns ?? n,
290
- footerAction: s.footerAction,
291
- className: s.className
292
- });
293
- continue;
294
- }
295
- if (s.type === "videoGroup") {
296
- l.push({
297
- type: "section",
298
- title: s.title,
299
- titleIcon: /* @__PURE__ */ r.jsx(oe, { className: "h-4 w-4" }),
300
- titleIconBgColor: "#1784FC",
301
- titleClassName: "text-[#1A0CAB]",
302
- layout: "mediaGrid",
303
- items: s.items,
304
- columns: s.columns ?? n,
305
- footerAction: s.footerAction,
306
- className: s.className
307
- });
308
- continue;
309
- }
310
- if (s.type === "result") {
311
- if (a?.layout === "list") {
312
- a.items.push(s);
313
- continue;
314
- }
315
- l.push({
316
- type: "section",
317
- layout: "list",
318
- items: [s]
319
- });
320
- continue;
321
- }
322
- if (s.type === "media") {
323
- if (a?.layout === "mediaGrid") {
324
- a.items.push(s);
325
- continue;
326
- }
327
- l.push({
328
- type: "section",
329
- layout: "mediaGrid",
330
- ...n ? { columns: n } : {},
331
- items: [s]
332
- });
333
- continue;
334
- }
335
- if (a?.layout === "imageGrid") {
336
- a.items.push(s);
337
- continue;
338
- }
339
- l.push({
340
- type: "section",
341
- layout: "imageGrid",
342
- ...n ? { columns: n } : {},
343
- items: [s]
344
- });
345
- }
346
- return l;
347
- }
348
- function je(e) {
349
- if (!e) return;
350
- const n = new Date(e);
351
- return Number.isNaN(n.getTime()) ? e : n.toISOString().slice(0, 10);
352
- }
353
- function ve(e) {
354
- const n = e?.trim().toLowerCase();
355
- if (n)
356
- return n === "pdf" ? "pdf" : n === "doc" || n === "docx" || n === "word" ? "doc" : n === "ppt" || n === "pptx" ? "ppt" : n === "xls" || n === "xlsx" || n === "excel" ? "xls" : n === "link" || n === "url" || n === "html" ? "link" : n === "txt" || n === "text" ? "text" : "unknown";
357
- }
358
- function Ne(e, n) {
359
- const l = e.thumbnail ?? e.cover ?? e.metadata?.thumbnail_link, s = e.summary ?? e.content, a = ve(e.metadata?.file_extension ?? e.type), o = e.source?.name, d = e.category ?? e.categories?.join(" / ") ?? "Categories", x = [o, d].filter(Boolean), p = e.last_updated_by?.user?.username ?? e.owner?.username, g = je(e.last_updated_by?.timestamp ?? e.metadata?.last_reviewed), b = e.metadata?.icon_link ?? e.icon, N = b ? /* @__PURE__ */ r.jsx("img", { src: b, alt: "", className: "h-5 w-5 rounded-sm object-contain" }) : void 0;
360
- return {
361
- type: "result",
362
- id: `${e.source?.id ?? e.url ?? e.title}-${n}`,
363
- title: e.title,
364
- href: e.url,
365
- description: s,
366
- thumbnailUrl: l,
367
- fileType: a,
368
- typeIcon: N,
369
- breadcrumbs: x.length ? x : void 0,
370
- author: p,
371
- date: g
372
- };
373
- }
374
- function ye(e) {
375
- return e.map((n, l) => Ne(n, l));
376
- }
377
- function T(e, n) {
265
+ function E(e, n) {
378
266
  const l = n === "_blank" ? "noreferrer noopener" : "";
379
267
  return e ? l ? [...new Set([...e.split(" "), ...l.split(" ")].filter(Boolean))].join(" ") : e : l || void 0;
380
268
  }
381
- function J({
269
+ function q({
382
270
  href: e,
383
271
  target: n,
384
272
  rel: l,
385
273
  onClick: s,
386
274
  className: a,
387
- children: o
275
+ children: c
388
276
  }) {
389
277
  return e ? /* @__PURE__ */ r.jsx(
390
278
  "a",
391
279
  {
392
280
  href: e,
393
281
  target: n,
394
- rel: T(l, n),
282
+ rel: E(l, n),
395
283
  className: a,
396
284
  onClick: () => s?.(),
397
- children: o
285
+ children: c
398
286
  }
399
- ) : /* @__PURE__ */ r.jsx("button", { type: "button", className: a, onClick: s, children: o });
287
+ ) : /* @__PURE__ */ r.jsx("button", { type: "button", className: a, onClick: s, children: c });
400
288
  }
401
- function we({
289
+ function be({
402
290
  item: e,
403
291
  onItemClick: n
404
292
  }) {
405
293
  return /* @__PURE__ */ r.jsxs(
406
- J,
294
+ q,
407
295
  {
408
296
  href: e.href,
409
297
  target: e.target,
@@ -433,20 +321,20 @@ function we({
433
321
  }
434
322
  );
435
323
  }
436
- function Ee({ author: e, date: n }) {
324
+ function je({ author: e, date: n }) {
437
325
  return !e && !n ? null : /* @__PURE__ */ r.jsxs("div", { className: "flex-none truncate text-xs", children: [
438
326
  e ? /* @__PURE__ */ r.jsx("span", { className: "", children: e }) : null,
439
327
  e && n ? /* @__PURE__ */ r.jsx("span", { className: "mx-1", children: "·" }) : null,
440
328
  n ? /* @__PURE__ */ r.jsx("span", { className: "", children: n }) : null
441
329
  ] });
442
330
  }
443
- function _e({ breadcrumbs: e }) {
331
+ function ve({ breadcrumbs: e }) {
444
332
  return e?.length ? /* @__PURE__ */ r.jsx("div", { className: "min-w-0 truncate text-xs", children: e.map((n, l) => /* @__PURE__ */ r.jsxs("span", { children: [
445
333
  l > 0 ? /* @__PURE__ */ r.jsx("span", { className: "mx-1", children: ">" }) : null,
446
334
  /* @__PURE__ */ r.jsx("span", { className: "", children: n })
447
335
  ] }, `${n}-${l}`)) }) : null;
448
336
  }
449
- function Te({ meta: e }) {
337
+ function Ne({ meta: e }) {
450
338
  return e?.length ? /* @__PURE__ */ r.jsx("div", { className: "mt-2 flex flex-wrap gap-2 text-xs text-[#333]", children: e.map((n, l) => /* @__PURE__ */ r.jsx(
451
339
  "span",
452
340
  {
@@ -456,17 +344,17 @@ function Te({ meta: e }) {
456
344
  `${n}-${l}`
457
345
  )) }) : null;
458
346
  }
459
- function Re(e) {
347
+ function we(e) {
460
348
  const n = e.trim().toLowerCase();
461
349
  return n ? n === "google" ? "G" : e.trim().slice(0, 1).toUpperCase() : "";
462
350
  }
463
- function _({
351
+ function y({
464
352
  title: e,
465
353
  titleIcon: n,
466
354
  titleIconBgColor: l,
467
355
  source: s,
468
356
  className: a,
469
- titleClassName: o
357
+ titleClassName: c
470
358
  }) {
471
359
  return !e && !n && !s ? null : /* @__PURE__ */ r.jsxs("div", { className: m("mb-2 flex min-w-0 items-center gap-2", a), children: [
472
360
  n ? l ? /* @__PURE__ */ r.jsx(
@@ -482,7 +370,7 @@ function _({
482
370
  {
483
371
  className: m(
484
372
  "min-w-0 text-xl font-semibold cursor-pointer hover:underline hover:underline-offset-2 group-hover:underline group-hover:underline-offset-2",
485
- o
373
+ c
486
374
  ),
487
375
  children: e
488
376
  }
@@ -492,12 +380,12 @@ function _({
492
380
  {
493
381
  className: "inline-flex h-6 w-6 flex-none items-center justify-center rounded-md",
494
382
  title: s,
495
- children: Re(s)
383
+ children: we(s)
496
384
  }
497
385
  ) : null
498
386
  ] });
499
387
  }
500
- function Ae({
388
+ function ye({
501
389
  href: e,
502
390
  target: n,
503
391
  rel: l,
@@ -509,7 +397,7 @@ function Ae({
509
397
  {
510
398
  href: e,
511
399
  target: n,
512
- rel: T(l, n),
400
+ rel: E(l, n),
513
401
  onClick: () => s?.(),
514
402
  className: "group flex w-full min-w-0 items-center gap-2",
515
403
  children: a
@@ -524,7 +412,7 @@ function Ae({
524
412
  }
525
413
  ) : /* @__PURE__ */ r.jsx("div", { className: "flex w-full min-w-0 items-center gap-2", children: a });
526
414
  }
527
- function ke(e) {
415
+ function Ee(e) {
528
416
  switch (e) {
529
417
  case "doc":
530
418
  case "word":
@@ -535,19 +423,19 @@ function ke(e) {
535
423
  return "bg-slate-100 text-slate-700";
536
424
  }
537
425
  }
538
- function Ce(e) {
426
+ function _e(e) {
539
427
  switch (e) {
540
428
  case "xls":
541
- return /* @__PURE__ */ r.jsx(de, { className: "h-5 w-5" });
542
- case "ppt":
543
429
  return /* @__PURE__ */ r.jsx(fe, { className: "h-5 w-5" });
430
+ case "ppt":
431
+ return /* @__PURE__ */ r.jsx(ue, { className: "h-5 w-5" });
544
432
  case "pdf":
545
433
  case "doc":
546
434
  case "word":
547
435
  case "text":
548
- return /* @__PURE__ */ r.jsx(ue, { className: "h-5 w-5" });
549
- default:
550
436
  return /* @__PURE__ */ r.jsx(ce, { className: "h-5 w-5" });
437
+ default:
438
+ return /* @__PURE__ */ r.jsx(oe, { className: "h-5 w-5" });
551
439
  }
552
440
  }
553
441
  function V({
@@ -559,20 +447,20 @@ function V({
559
447
  {
560
448
  className: m(
561
449
  "inline-flex h-6 w-6 items-center justify-center rounded-md",
562
- ke(e)
450
+ Ee(e)
563
451
  ),
564
- children: Ce(e)
452
+ children: _e(e)
565
453
  }
566
454
  ) : null;
567
455
  }
568
- function Se({
456
+ function Te({
569
457
  item: e,
570
458
  onItemClick: n
571
459
  }) {
572
460
  const l = e.typeIcon ? /* @__PURE__ */ r.jsx(V, { typeIcon: e.typeIcon }) : e.fileType ? /* @__PURE__ */ r.jsx(V, { fileType: e.fileType }) : null;
573
461
  return /* @__PURE__ */ r.jsxs("div", { className: "w-full py-2", children: [
574
462
  /* @__PURE__ */ r.jsx("div", { className: "flex min-w-0 items-center gap-2", children: /* @__PURE__ */ r.jsx(
575
- Ae,
463
+ ye,
576
464
  {
577
465
  href: e.href,
578
466
  target: e.target,
@@ -581,7 +469,7 @@ function Se({
581
469
  e.onClick?.(), n?.(e);
582
470
  },
583
471
  children: /* @__PURE__ */ r.jsx(
584
- _,
472
+ y,
585
473
  {
586
474
  className: "mb-0 w-full",
587
475
  title: e.title,
@@ -605,36 +493,36 @@ function Se({
605
493
  /* @__PURE__ */ r.jsxs("div", { className: "min-w-0 flex-1 flex flex-col justify-between", children: [
606
494
  e.description ? /* @__PURE__ */ r.jsx("div", { className: "line-clamp-2 text-sm text-[#666]", children: e.description }) : null,
607
495
  e.breadcrumbs?.length || e.author || e.date ? /* @__PURE__ */ r.jsxs("div", { className: "mt-2 flex min-w-0 items-center gap-3 text-[#666]", children: [
608
- /* @__PURE__ */ r.jsx(_e, { breadcrumbs: e.breadcrumbs }),
496
+ /* @__PURE__ */ r.jsx(ve, { breadcrumbs: e.breadcrumbs }),
609
497
  /* @__PURE__ */ r.jsx("span", { className: "h-3 w-px flex-none bg-[#666]", "aria-hidden": "true" }),
610
498
  /* @__PURE__ */ r.jsxs("div", { className: "flex flex-none items-center gap-2", children: [
611
- /* @__PURE__ */ r.jsx(Ee, { author: e.author, date: e.date }),
499
+ /* @__PURE__ */ r.jsx(je, { author: e.author, date: e.date }),
612
500
  e.href ? /* @__PURE__ */ r.jsx(
613
501
  "a",
614
502
  {
615
503
  href: e.href,
616
504
  target: e.target,
617
- rel: T(e.rel, e.target),
505
+ rel: E(e.rel, e.target),
618
506
  className: "flex-none text-[#007EFF] hover:text-[#007EFF]",
619
- children: /* @__PURE__ */ r.jsx(me, { className: "h-3 w-3" })
507
+ children: /* @__PURE__ */ r.jsx(de, { className: "h-3 w-3" })
620
508
  }
621
509
  ) : null
622
510
  ] })
623
- ] }) : /* @__PURE__ */ r.jsx(Te, { meta: e.meta })
511
+ ] }) : /* @__PURE__ */ r.jsx(Ne, { meta: e.meta })
624
512
  ] })
625
513
  ] })
626
514
  ] });
627
515
  }
628
- function Ie({ text: e }) {
516
+ function Re({ text: e }) {
629
517
  return /* @__PURE__ */ r.jsx("span", { className: "inline-flex items-center rounded-md border border-slate-200 bg-white px-2 py-1 text-xs text-slate-700", children: e });
630
518
  }
631
- function Oe({
519
+ function Ae({
632
520
  item: e,
633
521
  onItemClick: n
634
522
  }) {
635
523
  const l = [e.sourceLabel, e.categoryLabel].filter(Boolean);
636
524
  return /* @__PURE__ */ r.jsxs(
637
- J,
525
+ q,
638
526
  {
639
527
  href: e.href,
640
528
  target: e.target,
@@ -657,18 +545,18 @@ function Oe({
657
545
  loading: "lazy"
658
546
  }
659
547
  ),
660
- e.mediaType === "video" ? /* @__PURE__ */ r.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r.jsx("span", { className: "inline-flex h-10 w-10 items-center justify-center rounded-full bg-black/55 text-white ring-1 ring-white/30", children: /* @__PURE__ */ r.jsx(xe, { className: "h-5 w-5 translate-x-px" }) }) }) : null
548
+ e.mediaType === "video" ? /* @__PURE__ */ r.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r.jsx("span", { className: "inline-flex h-10 w-10 items-center justify-center rounded-full bg-black/55 text-white ring-1 ring-white/30", children: /* @__PURE__ */ r.jsx(me, { className: "h-5 w-5 translate-x-px" }) }) }) : null
661
549
  ] }) }),
662
550
  /* @__PURE__ */ r.jsxs("div", { className: "mt-2", children: [
663
551
  /* @__PURE__ */ r.jsx("div", { className: "truncate text-sm font-medium", children: e.title }),
664
552
  e.matchCountText ? /* @__PURE__ */ r.jsx("div", { className: "mt-1 truncate text-xs text-[#666]", children: e.matchCountText }) : null,
665
- l.length ? /* @__PURE__ */ r.jsx("div", { className: "mt-2 flex flex-wrap gap-2", children: l.map((s) => /* @__PURE__ */ r.jsx(Ie, { text: s }, s)) }) : null
553
+ l.length ? /* @__PURE__ */ r.jsx("div", { className: "mt-2 flex flex-wrap gap-2", children: l.map((s) => /* @__PURE__ */ r.jsx(Re, { text: s }, s)) }) : null
666
554
  ] })
667
555
  ]
668
556
  }
669
557
  );
670
558
  }
671
- function Pe({
559
+ function ke({
672
560
  action: e,
673
561
  className: n
674
562
  }) {
@@ -685,7 +573,7 @@ function Pe({
685
573
  className: l,
686
574
  href: e.href,
687
575
  target: e.target,
688
- rel: T(e.rel, e.target),
576
+ rel: E(e.rel, e.target),
689
577
  onClick: () => e.onClick?.(),
690
578
  children: e.label
691
579
  }
@@ -695,7 +583,7 @@ function O({ action: e }) {
695
583
  return e ? /* @__PURE__ */ r.jsxs("div", { className: "mt-3 flex w-full items-center", children: [
696
584
  /* @__PURE__ */ r.jsx("span", { className: "h-px flex-1 bg-[#E8E8E8]", "aria-hidden": "true" }),
697
585
  /* @__PURE__ */ r.jsx(
698
- Pe,
586
+ ke,
699
587
  {
700
588
  action: e,
701
589
  className: m(
@@ -707,11 +595,11 @@ function O({ action: e }) {
707
595
  /* @__PURE__ */ r.jsx("span", { className: "h-px flex-1 bg-[#E8E8E8]", "aria-hidden": "true" })
708
596
  ] }) : null;
709
597
  }
710
- function Fe(e, n) {
598
+ function Ce(e, n) {
711
599
  if (e.layout === "list")
712
600
  return /* @__PURE__ */ r.jsxs("div", { className: m("space-y-6", e.className), children: [
713
601
  /* @__PURE__ */ r.jsx(
714
- _,
602
+ y,
715
603
  {
716
604
  title: e.title,
717
605
  titleIcon: e.titleIcon,
@@ -719,14 +607,14 @@ function Fe(e, n) {
719
607
  titleClassName: e.titleClassName
720
608
  }
721
609
  ),
722
- e.items.map((a) => /* @__PURE__ */ r.jsx(Se, { item: a, onItemClick: n }, a.id)),
610
+ e.items.map((a) => /* @__PURE__ */ r.jsx(Te, { item: a, onItemClick: n }, a.id)),
723
611
  /* @__PURE__ */ r.jsx(O, { action: e.footerAction })
724
612
  ] });
725
613
  if (e.layout === "mediaGrid") {
726
- const a = e.columns ?? 3, o = a === 2 ? "grid-cols-2" : a === 4 ? "grid-cols-4" : "grid-cols-3";
614
+ const a = e.columns ?? 3, c = a === 2 ? "grid-cols-2" : a === 4 ? "grid-cols-4" : "grid-cols-3";
727
615
  return /* @__PURE__ */ r.jsxs("div", { className: m(e.className), children: [
728
616
  /* @__PURE__ */ r.jsx(
729
- _,
617
+ y,
730
618
  {
731
619
  title: e.title,
732
620
  titleIcon: e.titleIcon,
@@ -734,14 +622,14 @@ function Fe(e, n) {
734
622
  titleClassName: e.titleClassName
735
623
  }
736
624
  ),
737
- /* @__PURE__ */ r.jsx("div", { className: m("grid gap-3", o), children: e.items.map((d) => /* @__PURE__ */ r.jsx(Oe, { item: d, onItemClick: n }, d.id)) }),
625
+ /* @__PURE__ */ r.jsx("div", { className: m("grid gap-3", c), children: e.items.map((d) => /* @__PURE__ */ r.jsx(Ae, { item: d, onItemClick: n }, d.id)) }),
738
626
  /* @__PURE__ */ r.jsx(O, { action: e.footerAction })
739
627
  ] });
740
628
  }
741
629
  const l = e.columns ?? 3, s = l === 2 ? "grid-cols-2" : l === 4 ? "grid-cols-4" : "grid-cols-3";
742
630
  return /* @__PURE__ */ r.jsxs("div", { className: m(e.className), children: [
743
631
  /* @__PURE__ */ r.jsx(
744
- _,
632
+ y,
745
633
  {
746
634
  title: e.title,
747
635
  titleIcon: e.titleIcon,
@@ -749,21 +637,127 @@ function Fe(e, n) {
749
637
  titleClassName: e.titleClassName
750
638
  }
751
639
  ),
752
- /* @__PURE__ */ r.jsx("div", { className: m("grid gap-3", s), children: e.items.map((a) => /* @__PURE__ */ r.jsx(we, { item: a, onItemClick: n }, a.id)) }),
640
+ /* @__PURE__ */ r.jsx("div", { className: m("grid gap-3", s), children: e.items.map((a) => /* @__PURE__ */ r.jsx(be, { item: a, onItemClick: n }, a.id)) }),
753
641
  /* @__PURE__ */ r.jsx(O, { action: e.footerAction })
754
642
  ] });
755
643
  }
756
- function Ye({
757
- sections: e,
758
- items: n,
759
- records: l,
760
- imageGridColumns: s,
761
- className: a,
762
- onItemClick: o
763
- }) {
764
- const d = n ?? (l?.length ? ye(l) : void 0), x = e ?? (d?.length ? be(d, s) : []);
765
- return /* @__PURE__ */ r.jsx("div", { className: m("space-y-5", a), children: x.map((p, g) => /* @__PURE__ */ r.jsx(q.Fragment, { children: Fe(p, o) }, `${p.type}-${g}`)) });
644
+ function Be({ section: e, className: n, onItemClick: l }) {
645
+ return /* @__PURE__ */ r.jsx("div", { className: m(n), children: Ce(e, l) });
646
+ }
647
+ function Le(e, n) {
648
+ const l = [];
649
+ for (const s of e) {
650
+ const a = l.length ? l[l.length - 1] : void 0;
651
+ if (s.type === "imageGroup") {
652
+ s.items[0]?.type === "media" ? l.push({
653
+ type: "section",
654
+ title: s.title,
655
+ titleIcon: /* @__PURE__ */ r.jsx(M, { className: "h-4 w-4" }),
656
+ titleIconBgColor: "#FFAF36",
657
+ titleClassName: "text-[#1A0CAB]",
658
+ layout: "mediaGrid",
659
+ items: s.items.filter((d) => d.type === "media"),
660
+ columns: s.columns ?? n,
661
+ footerAction: s.footerAction,
662
+ className: s.className
663
+ }) : l.push({
664
+ type: "section",
665
+ title: s.title,
666
+ titleIcon: /* @__PURE__ */ r.jsx(M, { className: "h-4 w-4" }),
667
+ titleIconBgColor: "#FFAF36",
668
+ titleClassName: "text-[#1A0CAB]",
669
+ layout: "imageGrid",
670
+ items: s.items.filter((d) => d.type === "image"),
671
+ columns: s.columns ?? n,
672
+ footerAction: s.footerAction,
673
+ className: s.className
674
+ });
675
+ continue;
676
+ }
677
+ if (s.type === "videoGroup") {
678
+ l.push({
679
+ type: "section",
680
+ title: s.title,
681
+ titleIcon: /* @__PURE__ */ r.jsx(xe, { className: "h-4 w-4" }),
682
+ titleIconBgColor: "#1784FC",
683
+ titleClassName: "text-[#1A0CAB]",
684
+ layout: "mediaGrid",
685
+ items: s.items,
686
+ columns: s.columns ?? n,
687
+ footerAction: s.footerAction,
688
+ className: s.className
689
+ });
690
+ continue;
691
+ }
692
+ if (s.type === "result") {
693
+ if (a?.layout === "list") {
694
+ a.items.push(s);
695
+ continue;
696
+ }
697
+ l.push({
698
+ type: "section",
699
+ layout: "list",
700
+ items: [s]
701
+ });
702
+ continue;
703
+ }
704
+ if (s.type === "media") {
705
+ if (a?.layout === "mediaGrid") {
706
+ a.items.push(s);
707
+ continue;
708
+ }
709
+ l.push({
710
+ type: "section",
711
+ layout: "mediaGrid",
712
+ ...n ? { columns: n } : {},
713
+ items: [s]
714
+ });
715
+ continue;
716
+ }
717
+ if (a?.layout === "imageGrid") {
718
+ a.items.push(s);
719
+ continue;
720
+ }
721
+ l.push({
722
+ type: "section",
723
+ layout: "imageGrid",
724
+ ...n ? { columns: n } : {},
725
+ items: [s]
726
+ });
727
+ }
728
+ return l;
729
+ }
730
+ function Se(e) {
731
+ if (!e) return;
732
+ const n = new Date(e);
733
+ return Number.isNaN(n.getTime()) ? e : n.toISOString().slice(0, 10);
734
+ }
735
+ function Ie(e) {
736
+ const n = e?.trim().toLowerCase();
737
+ if (n)
738
+ return n === "pdf" ? "pdf" : n === "doc" || n === "docx" || n === "word" ? "doc" : n === "ppt" || n === "pptx" ? "ppt" : n === "xls" || n === "xlsx" || n === "excel" ? "xls" : n === "link" || n === "url" || n === "html" ? "link" : n === "txt" || n === "text" ? "text" : "unknown";
739
+ }
740
+ function Oe(e, n) {
741
+ const l = e.thumbnail ?? e.cover ?? e.metadata?.thumbnail_link, s = e.summary ?? e.content, a = Ie(e.metadata?.file_extension ?? e.type), c = e.source?.name, d = e.category ?? e.categories?.join(" / ") ?? "Categories", x = [c, d].filter(Boolean), _ = e.last_updated_by?.user?.username ?? e.owner?.username, T = Se(e.last_updated_by?.timestamp ?? e.metadata?.last_reviewed), h = e.metadata?.icon_link ?? e.icon, j = h ? /* @__PURE__ */ r.jsx("img", { src: h, alt: "", className: "h-5 w-5 rounded-sm object-contain" }) : void 0;
742
+ return {
743
+ type: "result",
744
+ id: `${e.source?.id ?? e.url ?? e.title}-${n}`,
745
+ title: e.title,
746
+ href: e.url,
747
+ description: s,
748
+ thumbnailUrl: l,
749
+ fileType: a,
750
+ typeIcon: j,
751
+ breadcrumbs: x.length ? x : void 0,
752
+ author: _,
753
+ date: T
754
+ };
755
+ }
756
+ function Ye(e) {
757
+ return e.map((n, l) => Oe(n, l));
766
758
  }
767
759
  export {
768
- Ye as default
760
+ Be as default,
761
+ Le as itemsToSections,
762
+ Ye as recordsToItems
769
763
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinilabs/search-results",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },