@semiont/react-ui 0.2.30-build.47 → 0.2.30-build.49
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 +6 -0
- package/dist/index.d.mts +20 -1
- package/dist/index.mjs +552 -489
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/public/favicons/android-chrome-192x192.png +0 -0
- package/public/favicons/android-chrome-512x512.png +0 -0
- package/public/favicons/apple-touch-icon.png +0 -0
- package/public/favicons/favicon-128x128.png +0 -0
- package/public/favicons/favicon-16x16.png +0 -0
- package/public/favicons/favicon-32x32.png +0 -0
- package/public/favicons/favicon-48x48.png +0 -0
- package/public/favicons/favicon-64x64.png +0 -0
- package/public/favicons/favicon-96x96.png +0 -0
- package/public/favicons/favicon.ico +0 -0
- package/public/favicons/favicon.svg +20 -0
- package/public/favicons/site.webmanifest +19 -0
package/dist/index.mjs
CHANGED
|
@@ -32369,11 +32369,11 @@ function addChildren(props, children) {
|
|
|
32369
32369
|
}
|
|
32370
32370
|
}
|
|
32371
32371
|
}
|
|
32372
|
-
function productionCreate(_4,
|
|
32372
|
+
function productionCreate(_4, jsx70, jsxs61) {
|
|
32373
32373
|
return create2;
|
|
32374
32374
|
function create2(_5, type, props, key) {
|
|
32375
32375
|
const isStaticChildren = Array.isArray(props.children);
|
|
32376
|
-
const fn = isStaticChildren ?
|
|
32376
|
+
const fn = isStaticChildren ? jsxs61 : jsx70;
|
|
32377
32377
|
return key ? fn(type, props, key) : fn(type, props);
|
|
32378
32378
|
}
|
|
32379
32379
|
}
|
|
@@ -48095,24 +48095,85 @@ function PageLayout({
|
|
|
48095
48095
|
] });
|
|
48096
48096
|
}
|
|
48097
48097
|
|
|
48098
|
+
// src/assets/favicons/SemiontFavicon.tsx
|
|
48099
|
+
import { jsx as jsx52, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
48100
|
+
function SemiontFavicon({
|
|
48101
|
+
size = 32,
|
|
48102
|
+
className = "",
|
|
48103
|
+
variant = "gradient",
|
|
48104
|
+
background: background2 = true
|
|
48105
|
+
}) {
|
|
48106
|
+
return /* @__PURE__ */ jsxs45(
|
|
48107
|
+
"svg",
|
|
48108
|
+
{
|
|
48109
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
48110
|
+
viewBox: "0 0 512 512",
|
|
48111
|
+
width: size,
|
|
48112
|
+
height: size,
|
|
48113
|
+
className,
|
|
48114
|
+
"aria-label": "Semiont Logo",
|
|
48115
|
+
children: [
|
|
48116
|
+
/* @__PURE__ */ jsxs45("defs", { children: [
|
|
48117
|
+
/* @__PURE__ */ jsxs45("linearGradient", { id: "semiontGradient", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
48118
|
+
/* @__PURE__ */ jsx52("stop", { offset: "0%", style: { stopColor: "#00FFFF", stopOpacity: 1 } }),
|
|
48119
|
+
/* @__PURE__ */ jsx52("stop", { offset: "100%", style: { stopColor: "#0080FF", stopOpacity: 1 } })
|
|
48120
|
+
] }),
|
|
48121
|
+
variant === "outline" && /* @__PURE__ */ jsxs45("linearGradient", { id: "semiontOutline", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
48122
|
+
/* @__PURE__ */ jsx52("stop", { offset: "0%", style: { stopColor: "#00FFFF", stopOpacity: 1 } }),
|
|
48123
|
+
/* @__PURE__ */ jsx52("stop", { offset: "100%", style: { stopColor: "#0080FF", stopOpacity: 1 } })
|
|
48124
|
+
] })
|
|
48125
|
+
] }),
|
|
48126
|
+
background2 && /* @__PURE__ */ jsx52("rect", { width: "512", height: "512", fill: "#1a1a1a" }),
|
|
48127
|
+
/* @__PURE__ */ jsx52(
|
|
48128
|
+
"text",
|
|
48129
|
+
{
|
|
48130
|
+
x: "256",
|
|
48131
|
+
y: "380",
|
|
48132
|
+
fontFamily: "'Orbitron', 'Arial Black', sans-serif",
|
|
48133
|
+
fontWeight: "900",
|
|
48134
|
+
fontSize: "380",
|
|
48135
|
+
textAnchor: "middle",
|
|
48136
|
+
fill: variant === "gradient" ? "url(#semiontGradient)" : variant === "solid" ? "#00FFFF" : "none",
|
|
48137
|
+
stroke: variant === "outline" ? "url(#semiontOutline)" : "none",
|
|
48138
|
+
strokeWidth: variant === "outline" ? "12" : "0",
|
|
48139
|
+
children: "S"
|
|
48140
|
+
}
|
|
48141
|
+
)
|
|
48142
|
+
]
|
|
48143
|
+
}
|
|
48144
|
+
);
|
|
48145
|
+
}
|
|
48146
|
+
|
|
48147
|
+
// src/assets/favicons/index.ts
|
|
48148
|
+
var faviconPaths = {
|
|
48149
|
+
ico: "/favicons/favicon.ico",
|
|
48150
|
+
svg: "/favicons/favicon.svg",
|
|
48151
|
+
appleTouchIcon: "/favicons/apple-touch-icon.png",
|
|
48152
|
+
favicon32: "/favicons/favicon-32x32.png",
|
|
48153
|
+
favicon16: "/favicons/favicon-16x16.png",
|
|
48154
|
+
androidChrome192: "/favicons/android-chrome-192x192.png",
|
|
48155
|
+
androidChrome512: "/favicons/android-chrome-512x512.png",
|
|
48156
|
+
manifest: "/favicons/site.webmanifest"
|
|
48157
|
+
};
|
|
48158
|
+
|
|
48098
48159
|
// src/components/loading-states/ComposeLoadingState.tsx
|
|
48099
|
-
import { jsx as
|
|
48160
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
48100
48161
|
function ComposeLoadingState({ message }) {
|
|
48101
|
-
return /* @__PURE__ */
|
|
48162
|
+
return /* @__PURE__ */ jsx53("div", { className: "px-4 py-8", children: /* @__PURE__ */ jsx53("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsx53("p", { className: "text-gray-600 dark:text-gray-300", children: message }) }) });
|
|
48102
48163
|
}
|
|
48103
48164
|
|
|
48104
48165
|
// src/components/loading-states/ResourceLoadingState.tsx
|
|
48105
|
-
import { jsx as
|
|
48166
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
48106
48167
|
function ResourceLoadingState() {
|
|
48107
|
-
return /* @__PURE__ */
|
|
48168
|
+
return /* @__PURE__ */ jsx54("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsx54("p", { className: "text-gray-600 dark:text-gray-300", children: "Loading resource..." }) });
|
|
48108
48169
|
}
|
|
48109
48170
|
|
|
48110
48171
|
// src/components/error-states/ResourceErrorState.tsx
|
|
48111
|
-
import { jsx as
|
|
48172
|
+
import { jsx as jsx55, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
48112
48173
|
function ResourceErrorState({ error, onRetry }) {
|
|
48113
|
-
return /* @__PURE__ */
|
|
48114
|
-
/* @__PURE__ */
|
|
48115
|
-
/* @__PURE__ */
|
|
48174
|
+
return /* @__PURE__ */ jsxs46("div", { className: "flex flex-col items-center justify-center py-20 space-y-4", children: [
|
|
48175
|
+
/* @__PURE__ */ jsx55("p", { className: "text-red-600 dark:text-red-400", children: error instanceof Error ? error.message : "Failed to load resource" }),
|
|
48176
|
+
/* @__PURE__ */ jsx55(
|
|
48116
48177
|
"button",
|
|
48117
48178
|
{
|
|
48118
48179
|
onClick: onRetry,
|
|
@@ -48604,7 +48665,7 @@ var ForwardRef17 = /* @__PURE__ */ React50.forwardRef(UserCircleIcon);
|
|
|
48604
48665
|
var UserCircleIcon_default = ForwardRef17;
|
|
48605
48666
|
|
|
48606
48667
|
// src/features/admin-devops/components/AdminDevOpsPage.tsx
|
|
48607
|
-
import { jsx as
|
|
48668
|
+
import { jsx as jsx56, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
48608
48669
|
function AdminDevOpsPage({
|
|
48609
48670
|
suggestedFeatures,
|
|
48610
48671
|
theme: theme2,
|
|
@@ -48618,48 +48679,48 @@ function AdminDevOpsPage({
|
|
|
48618
48679
|
ToolbarPanels,
|
|
48619
48680
|
Toolbar: Toolbar2
|
|
48620
48681
|
}) {
|
|
48621
|
-
return /* @__PURE__ */
|
|
48622
|
-
/* @__PURE__ */
|
|
48623
|
-
/* @__PURE__ */
|
|
48624
|
-
/* @__PURE__ */
|
|
48625
|
-
/* @__PURE__ */
|
|
48682
|
+
return /* @__PURE__ */ jsxs47("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
48683
|
+
/* @__PURE__ */ jsxs47("div", { className: "flex-1 overflow-y-auto px-4 py-8", children: [
|
|
48684
|
+
/* @__PURE__ */ jsxs47("div", { className: "mb-8", children: [
|
|
48685
|
+
/* @__PURE__ */ jsx56("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: t12.title }),
|
|
48686
|
+
/* @__PURE__ */ jsx56("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: t12.subtitle })
|
|
48626
48687
|
] }),
|
|
48627
|
-
/* @__PURE__ */
|
|
48628
|
-
/* @__PURE__ */
|
|
48629
|
-
/* @__PURE__ */
|
|
48688
|
+
/* @__PURE__ */ jsxs47("div", { className: "mb-8", children: [
|
|
48689
|
+
/* @__PURE__ */ jsx56("h2", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-4", children: t12.systemStatus }),
|
|
48690
|
+
/* @__PURE__ */ jsx56(StatusDisplay2, {})
|
|
48630
48691
|
] }),
|
|
48631
|
-
/* @__PURE__ */
|
|
48632
|
-
/* @__PURE__ */
|
|
48633
|
-
/* @__PURE__ */
|
|
48634
|
-
/* @__PURE__ */
|
|
48692
|
+
/* @__PURE__ */ jsxs47("div", { className: "mb-8", children: [
|
|
48693
|
+
/* @__PURE__ */ jsx56("h2", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-4", children: t12.cliOperations }),
|
|
48694
|
+
/* @__PURE__ */ jsx56("p", { className: "text-sm text-gray-600 dark:text-gray-400 mb-4", children: t12.cliOperationsDescription }),
|
|
48695
|
+
/* @__PURE__ */ jsx56("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: suggestedFeatures.map((feature) => /* @__PURE__ */ jsx56(
|
|
48635
48696
|
"div",
|
|
48636
48697
|
{
|
|
48637
48698
|
className: "rounded-lg p-6 bg-gray-50 dark:bg-gray-800/50 border border-gray-200 dark:border-gray-700",
|
|
48638
|
-
children: /* @__PURE__ */
|
|
48639
|
-
/* @__PURE__ */
|
|
48640
|
-
/* @__PURE__ */
|
|
48641
|
-
/* @__PURE__ */
|
|
48642
|
-
/* @__PURE__ */
|
|
48643
|
-
/* @__PURE__ */
|
|
48699
|
+
children: /* @__PURE__ */ jsxs47("div", { className: "flex items-start", children: [
|
|
48700
|
+
/* @__PURE__ */ jsx56("div", { className: "flex items-center justify-center w-10 h-10 rounded-lg bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ jsx56(feature.icon, { className: "w-5 h-5 text-gray-600 dark:text-gray-400" }) }),
|
|
48701
|
+
/* @__PURE__ */ jsxs47("div", { className: "ml-3 flex-1", children: [
|
|
48702
|
+
/* @__PURE__ */ jsx56("h3", { className: "text-sm font-medium text-gray-900 dark:text-white", children: feature.title }),
|
|
48703
|
+
/* @__PURE__ */ jsx56("p", { className: "mt-1 text-xs text-gray-600 dark:text-gray-400", children: feature.description }),
|
|
48704
|
+
/* @__PURE__ */ jsx56("p", { className: "mt-2 text-xs font-mono text-blue-600 dark:text-blue-400", children: feature.available })
|
|
48644
48705
|
] })
|
|
48645
48706
|
] })
|
|
48646
48707
|
},
|
|
48647
48708
|
feature.title
|
|
48648
48709
|
)) })
|
|
48649
48710
|
] }),
|
|
48650
|
-
/* @__PURE__ */
|
|
48651
|
-
/* @__PURE__ */
|
|
48652
|
-
/* @__PURE__ */
|
|
48653
|
-
/* @__PURE__ */
|
|
48654
|
-
/* @__PURE__ */
|
|
48655
|
-
/* @__PURE__ */
|
|
48656
|
-
/* @__PURE__ */
|
|
48711
|
+
/* @__PURE__ */ jsx56("div", { className: "bg-blue-50 dark:bg-blue-900/20 rounded-lg p-4 border border-blue-200 dark:border-blue-800", children: /* @__PURE__ */ jsxs47("div", { className: "flex", children: [
|
|
48712
|
+
/* @__PURE__ */ jsx56("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx56(CommandLineIcon_default, { className: "h-5 w-5 text-blue-600 dark:text-blue-400" }) }),
|
|
48713
|
+
/* @__PURE__ */ jsxs47("div", { className: "ml-3", children: [
|
|
48714
|
+
/* @__PURE__ */ jsx56("h3", { className: "text-sm font-medium text-blue-800 dark:text-blue-300", children: t12.cliTitle }),
|
|
48715
|
+
/* @__PURE__ */ jsxs47("div", { className: "mt-2 text-xs text-blue-700 dark:text-blue-400", children: [
|
|
48716
|
+
/* @__PURE__ */ jsx56("p", { children: t12.cliDescription }),
|
|
48717
|
+
/* @__PURE__ */ jsx56("code", { className: "block mt-2 p-2 bg-blue-100 dark:bg-blue-800/50 rounded", children: "semiont --help" })
|
|
48657
48718
|
] })
|
|
48658
48719
|
] })
|
|
48659
48720
|
] }) })
|
|
48660
48721
|
] }),
|
|
48661
|
-
/* @__PURE__ */
|
|
48662
|
-
/* @__PURE__ */
|
|
48722
|
+
/* @__PURE__ */ jsxs47("div", { className: "flex", children: [
|
|
48723
|
+
/* @__PURE__ */ jsx56(
|
|
48663
48724
|
ToolbarPanels,
|
|
48664
48725
|
{
|
|
48665
48726
|
activePanel,
|
|
@@ -48669,7 +48730,7 @@ function AdminDevOpsPage({
|
|
|
48669
48730
|
onLineNumbersToggle
|
|
48670
48731
|
}
|
|
48671
48732
|
),
|
|
48672
|
-
/* @__PURE__ */
|
|
48733
|
+
/* @__PURE__ */ jsx56(
|
|
48673
48734
|
Toolbar2,
|
|
48674
48735
|
{
|
|
48675
48736
|
context: "simple",
|
|
@@ -48682,7 +48743,7 @@ function AdminDevOpsPage({
|
|
|
48682
48743
|
}
|
|
48683
48744
|
|
|
48684
48745
|
// src/features/admin-security/components/AdminSecurityPage.tsx
|
|
48685
|
-
import { jsx as
|
|
48746
|
+
import { jsx as jsx57, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
48686
48747
|
function AdminSecurityPage({
|
|
48687
48748
|
providers,
|
|
48688
48749
|
allowedDomains,
|
|
@@ -48697,70 +48758,70 @@ function AdminSecurityPage({
|
|
|
48697
48758
|
ToolbarPanels,
|
|
48698
48759
|
Toolbar: Toolbar2
|
|
48699
48760
|
}) {
|
|
48700
|
-
return /* @__PURE__ */
|
|
48701
|
-
/* @__PURE__ */
|
|
48702
|
-
/* @__PURE__ */
|
|
48703
|
-
/* @__PURE__ */
|
|
48704
|
-
/* @__PURE__ */
|
|
48761
|
+
return /* @__PURE__ */ jsxs48("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
48762
|
+
/* @__PURE__ */ jsx57("div", { className: "flex-1 overflow-y-auto px-4 py-8", children: /* @__PURE__ */ jsxs48("div", { className: "space-y-6", children: [
|
|
48763
|
+
/* @__PURE__ */ jsxs48("div", { children: [
|
|
48764
|
+
/* @__PURE__ */ jsx57("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: t12.title }),
|
|
48765
|
+
/* @__PURE__ */ jsx57("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: t12.subtitle })
|
|
48705
48766
|
] }),
|
|
48706
|
-
/* @__PURE__ */
|
|
48707
|
-
/* @__PURE__ */
|
|
48708
|
-
/* @__PURE__ */
|
|
48709
|
-
/* @__PURE__ */
|
|
48710
|
-
/* @__PURE__ */
|
|
48711
|
-
/* @__PURE__ */
|
|
48767
|
+
/* @__PURE__ */ jsxs48("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700", children: [
|
|
48768
|
+
/* @__PURE__ */ jsxs48("div", { className: "flex items-center mb-4", children: [
|
|
48769
|
+
/* @__PURE__ */ jsx57(ShieldCheckIcon_default, { className: "h-6 w-6 text-blue-600 dark:text-blue-400 mr-3" }),
|
|
48770
|
+
/* @__PURE__ */ jsxs48("div", { children: [
|
|
48771
|
+
/* @__PURE__ */ jsx57("h3", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: t12.oauthProviders }),
|
|
48772
|
+
/* @__PURE__ */ jsx57("p", { className: "text-sm text-gray-600 dark:text-gray-400", children: t12.oauthProvidersDescription })
|
|
48712
48773
|
] })
|
|
48713
48774
|
] }),
|
|
48714
|
-
isLoading ? /* @__PURE__ */
|
|
48715
|
-
/* @__PURE__ */
|
|
48716
|
-
/* @__PURE__ */
|
|
48717
|
-
/* @__PURE__ */
|
|
48718
|
-
provider.clientId && /* @__PURE__ */
|
|
48775
|
+
isLoading ? /* @__PURE__ */ jsx57("div", { className: "animate-pulse space-y-2", children: /* @__PURE__ */ jsx57("div", { className: "h-12 bg-gray-200 dark:bg-gray-700 rounded" }) }) : providers.length > 0 ? /* @__PURE__ */ jsx57("div", { className: "space-y-2", children: providers.map((provider) => /* @__PURE__ */ jsxs48("div", { className: "flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-700 rounded-lg", children: [
|
|
48776
|
+
/* @__PURE__ */ jsxs48("div", { className: "flex items-center", children: [
|
|
48777
|
+
/* @__PURE__ */ jsx57(CheckCircleIcon_default, { className: "h-5 w-5 text-green-500 mr-2" }),
|
|
48778
|
+
/* @__PURE__ */ jsx57("span", { className: "font-medium text-gray-900 dark:text-white capitalize", children: provider.name }),
|
|
48779
|
+
provider.clientId && /* @__PURE__ */ jsxs48("span", { className: "ml-3 text-xs text-gray-500 dark:text-gray-400 font-mono", children: [
|
|
48719
48780
|
t12.clientId,
|
|
48720
48781
|
": ",
|
|
48721
48782
|
provider.clientId
|
|
48722
48783
|
] })
|
|
48723
48784
|
] }),
|
|
48724
|
-
/* @__PURE__ */
|
|
48725
|
-
] }, provider.name)) }) : /* @__PURE__ */
|
|
48785
|
+
/* @__PURE__ */ jsx57("span", { className: "inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800 dark:bg-green-900/20 dark:text-green-300", children: t12.configured })
|
|
48786
|
+
] }, provider.name)) }) : /* @__PURE__ */ jsx57("div", { className: "text-gray-500 dark:text-gray-400 text-sm", children: t12.noProvidersConfigured })
|
|
48726
48787
|
] }),
|
|
48727
|
-
/* @__PURE__ */
|
|
48728
|
-
/* @__PURE__ */
|
|
48729
|
-
/* @__PURE__ */
|
|
48730
|
-
/* @__PURE__ */
|
|
48731
|
-
/* @__PURE__ */
|
|
48732
|
-
/* @__PURE__ */
|
|
48788
|
+
/* @__PURE__ */ jsxs48("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700", children: [
|
|
48789
|
+
/* @__PURE__ */ jsxs48("div", { className: "flex items-center mb-4", children: [
|
|
48790
|
+
/* @__PURE__ */ jsx57(GlobeAltIcon_default, { className: "h-6 w-6 text-blue-600 dark:text-blue-400 mr-3" }),
|
|
48791
|
+
/* @__PURE__ */ jsxs48("div", { children: [
|
|
48792
|
+
/* @__PURE__ */ jsx57("h3", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: t12.allowedDomains }),
|
|
48793
|
+
/* @__PURE__ */ jsx57("p", { className: "text-sm text-gray-600 dark:text-gray-400", children: t12.allowedDomainsDescription })
|
|
48733
48794
|
] })
|
|
48734
48795
|
] }),
|
|
48735
|
-
isLoading ? /* @__PURE__ */
|
|
48736
|
-
/* @__PURE__ */
|
|
48737
|
-
/* @__PURE__ */
|
|
48738
|
-
] }) : allowedDomains.length > 0 ? /* @__PURE__ */
|
|
48796
|
+
isLoading ? /* @__PURE__ */ jsxs48("div", { className: "animate-pulse space-y-2", children: [
|
|
48797
|
+
/* @__PURE__ */ jsx57("div", { className: "h-8 bg-gray-200 dark:bg-gray-700 rounded w-32" }),
|
|
48798
|
+
/* @__PURE__ */ jsx57("div", { className: "h-8 bg-gray-200 dark:bg-gray-700 rounded w-40" })
|
|
48799
|
+
] }) : allowedDomains.length > 0 ? /* @__PURE__ */ jsx57("div", { className: "space-y-2", children: allowedDomains.map((domain2) => /* @__PURE__ */ jsxs48("div", { className: "inline-flex items-center px-3 py-1 mr-2 mb-2 text-sm font-medium text-blue-700 bg-blue-100 rounded-full dark:bg-blue-900/20 dark:text-blue-300", children: [
|
|
48739
48800
|
"@",
|
|
48740
48801
|
domain2
|
|
48741
|
-
] }, domain2)) }) : /* @__PURE__ */
|
|
48802
|
+
] }, domain2)) }) : /* @__PURE__ */ jsx57("div", { className: "text-gray-500 dark:text-gray-400 text-sm", children: t12.noDomainsConfigured })
|
|
48742
48803
|
] }),
|
|
48743
|
-
/* @__PURE__ */
|
|
48744
|
-
/* @__PURE__ */
|
|
48745
|
-
/* @__PURE__ */
|
|
48746
|
-
/* @__PURE__ */
|
|
48747
|
-
/* @__PURE__ */
|
|
48748
|
-
/* @__PURE__ */
|
|
48749
|
-
/* @__PURE__ */
|
|
48750
|
-
/* @__PURE__ */
|
|
48804
|
+
/* @__PURE__ */ jsx57("div", { className: "bg-blue-50 dark:bg-blue-900/20 rounded-lg p-4 border border-blue-200 dark:border-blue-800", children: /* @__PURE__ */ jsxs48("div", { className: "flex", children: [
|
|
48805
|
+
/* @__PURE__ */ jsx57(InformationCircleIcon_default, { className: "h-5 w-5 text-blue-600 dark:text-blue-400 mt-0.5" }),
|
|
48806
|
+
/* @__PURE__ */ jsxs48("div", { className: "ml-3 text-sm", children: [
|
|
48807
|
+
/* @__PURE__ */ jsx57("p", { className: "text-blue-800 dark:text-blue-300 font-medium", children: t12.configManagementTitle }),
|
|
48808
|
+
/* @__PURE__ */ jsx57("p", { className: "text-blue-700 dark:text-blue-400 mt-1", children: t12.configManagementDescription }),
|
|
48809
|
+
/* @__PURE__ */ jsxs48("ul", { className: "list-disc list-inside text-blue-700 dark:text-blue-400 mt-2 space-y-1", children: [
|
|
48810
|
+
/* @__PURE__ */ jsx57("li", { children: t12.configLocalDev }),
|
|
48811
|
+
/* @__PURE__ */ jsxs48("li", { children: [
|
|
48751
48812
|
t12.configCloudDeploy,
|
|
48752
48813
|
" ",
|
|
48753
|
-
/* @__PURE__ */
|
|
48814
|
+
/* @__PURE__ */ jsx57("code", { className: "px-1 py-0.5 bg-blue-100 dark:bg-blue-800 rounded", children: t12.configCloudDeployCommand }),
|
|
48754
48815
|
" ",
|
|
48755
48816
|
t12.configCloudDeployEnd
|
|
48756
48817
|
] }),
|
|
48757
|
-
/* @__PURE__ */
|
|
48818
|
+
/* @__PURE__ */ jsx57("li", { children: t12.configAWS })
|
|
48758
48819
|
] })
|
|
48759
48820
|
] })
|
|
48760
48821
|
] }) })
|
|
48761
48822
|
] }) }),
|
|
48762
|
-
/* @__PURE__ */
|
|
48763
|
-
/* @__PURE__ */
|
|
48823
|
+
/* @__PURE__ */ jsxs48("div", { className: "flex", children: [
|
|
48824
|
+
/* @__PURE__ */ jsx57(
|
|
48764
48825
|
ToolbarPanels,
|
|
48765
48826
|
{
|
|
48766
48827
|
activePanel,
|
|
@@ -48770,7 +48831,7 @@ function AdminSecurityPage({
|
|
|
48770
48831
|
onLineNumbersToggle
|
|
48771
48832
|
}
|
|
48772
48833
|
),
|
|
48773
|
-
/* @__PURE__ */
|
|
48834
|
+
/* @__PURE__ */ jsx57(
|
|
48774
48835
|
Toolbar2,
|
|
48775
48836
|
{
|
|
48776
48837
|
context: "simple",
|
|
@@ -48784,7 +48845,7 @@ function AdminSecurityPage({
|
|
|
48784
48845
|
|
|
48785
48846
|
// src/features/admin-users/components/AdminUsersPage.tsx
|
|
48786
48847
|
import { useState as useState30 } from "react";
|
|
48787
|
-
import { Fragment as Fragment14, jsx as
|
|
48848
|
+
import { Fragment as Fragment14, jsx as jsx58, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
48788
48849
|
function UserTableRow({
|
|
48789
48850
|
user,
|
|
48790
48851
|
onUpdate,
|
|
@@ -48801,48 +48862,48 @@ function UserTableRow({
|
|
|
48801
48862
|
};
|
|
48802
48863
|
const role = user.isAdmin ? "admin" : "user";
|
|
48803
48864
|
const status = user.isActive ? "active" : "inactive";
|
|
48804
|
-
return /* @__PURE__ */
|
|
48805
|
-
/* @__PURE__ */
|
|
48806
|
-
/* @__PURE__ */
|
|
48807
|
-
/* @__PURE__ */
|
|
48808
|
-
/* @__PURE__ */
|
|
48809
|
-
/* @__PURE__ */
|
|
48865
|
+
return /* @__PURE__ */ jsxs49("tr", { className: "hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors", children: [
|
|
48866
|
+
/* @__PURE__ */ jsx58("td", { className: "px-6 py-4 whitespace-nowrap", children: /* @__PURE__ */ jsxs49("div", { className: "flex items-center", children: [
|
|
48867
|
+
/* @__PURE__ */ jsx58(UserCircleIcon_default, { className: "h-8 w-8 text-gray-600 dark:text-gray-400 mr-3" }),
|
|
48868
|
+
/* @__PURE__ */ jsxs49("div", { children: [
|
|
48869
|
+
/* @__PURE__ */ jsx58("div", { className: "text-sm font-medium text-gray-900 dark:text-white", children: user.name || t12.noName }),
|
|
48870
|
+
/* @__PURE__ */ jsx58("div", { className: "text-sm text-gray-500 dark:text-gray-400", children: user.email })
|
|
48810
48871
|
] })
|
|
48811
48872
|
] }) }),
|
|
48812
|
-
/* @__PURE__ */
|
|
48873
|
+
/* @__PURE__ */ jsx58("td", { className: "px-6 py-4 whitespace-nowrap", children: /* @__PURE__ */ jsxs49("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: [
|
|
48813
48874
|
"@",
|
|
48814
48875
|
user.domain
|
|
48815
48876
|
] }) }),
|
|
48816
|
-
/* @__PURE__ */
|
|
48817
|
-
/* @__PURE__ */
|
|
48818
|
-
/* @__PURE__ */
|
|
48819
|
-
/* @__PURE__ */
|
|
48820
|
-
/* @__PURE__ */
|
|
48821
|
-
/* @__PURE__ */
|
|
48877
|
+
/* @__PURE__ */ jsx58("td", { className: "px-6 py-4 whitespace-nowrap", children: /* @__PURE__ */ jsx58("span", { className: `inline-flex px-2 py-1 text-xs font-semibold rounded-full ${roleColors[role]}`, children: t12[role] }) }),
|
|
48878
|
+
/* @__PURE__ */ jsx58("td", { className: "px-6 py-4 whitespace-nowrap", children: /* @__PURE__ */ jsx58("span", { className: `inline-flex px-2 py-1 text-xs font-semibold rounded-full ${statusColors[status]}`, children: t12[status] }) }),
|
|
48879
|
+
/* @__PURE__ */ jsx58("td", { className: "px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400", children: user.lastLogin ? new Date(user.lastLogin).toLocaleDateString() : t12.never }),
|
|
48880
|
+
/* @__PURE__ */ jsx58("td", { className: "px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400", children: new Date(user.created).toLocaleDateString() }),
|
|
48881
|
+
/* @__PURE__ */ jsx58("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm font-medium", children: /* @__PURE__ */ jsxs49("div", { className: "flex items-center justify-end space-x-2", children: [
|
|
48882
|
+
/* @__PURE__ */ jsx58(
|
|
48822
48883
|
"button",
|
|
48823
48884
|
{
|
|
48824
48885
|
onClick: () => onUpdate(user.id, { isAdmin: !user.isAdmin }),
|
|
48825
48886
|
className: "text-blue-600 hover:text-blue-900 dark:text-blue-400 dark:hover:text-blue-300",
|
|
48826
48887
|
title: user.isAdmin ? t12.removeAdmin : t12.makeAdmin,
|
|
48827
|
-
children: /* @__PURE__ */
|
|
48888
|
+
children: /* @__PURE__ */ jsx58(ShieldCheckIcon_default, { className: "h-4 w-4" })
|
|
48828
48889
|
}
|
|
48829
48890
|
),
|
|
48830
|
-
/* @__PURE__ */
|
|
48891
|
+
/* @__PURE__ */ jsx58(
|
|
48831
48892
|
"button",
|
|
48832
48893
|
{
|
|
48833
48894
|
onClick: () => onUpdate(user.id, { isActive: !user.isActive }),
|
|
48834
48895
|
className: "text-yellow-600 hover:text-yellow-900 dark:text-yellow-400 dark:hover:text-yellow-300",
|
|
48835
48896
|
title: user.isActive ? t12.deactivateUser : t12.activateUser,
|
|
48836
|
-
children: /* @__PURE__ */
|
|
48897
|
+
children: /* @__PURE__ */ jsx58(PencilIcon_default, { className: "h-4 w-4" })
|
|
48837
48898
|
}
|
|
48838
48899
|
),
|
|
48839
|
-
/* @__PURE__ */
|
|
48900
|
+
/* @__PURE__ */ jsx58(
|
|
48840
48901
|
"button",
|
|
48841
48902
|
{
|
|
48842
48903
|
onClick: () => onDelete(user.id),
|
|
48843
48904
|
className: "text-red-600 hover:text-red-900 dark:text-red-400 dark:hover:text-red-300",
|
|
48844
48905
|
title: t12.deleteUser,
|
|
48845
|
-
children: /* @__PURE__ */
|
|
48906
|
+
children: /* @__PURE__ */ jsx58(TrashIcon_default, { className: "h-4 w-4" })
|
|
48846
48907
|
}
|
|
48847
48908
|
)
|
|
48848
48909
|
] }) })
|
|
@@ -48879,60 +48940,60 @@ function AdminUsersPage({
|
|
|
48879
48940
|
const matchesStatus = selectedStatus === "all" || userStatus === selectedStatus;
|
|
48880
48941
|
return matchesSearch && matchesRole && matchesStatus;
|
|
48881
48942
|
});
|
|
48882
|
-
return /* @__PURE__ */
|
|
48883
|
-
/* @__PURE__ */
|
|
48884
|
-
/* @__PURE__ */
|
|
48885
|
-
/* @__PURE__ */
|
|
48886
|
-
/* @__PURE__ */
|
|
48887
|
-
/* @__PURE__ */
|
|
48943
|
+
return /* @__PURE__ */ jsxs49("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
48944
|
+
/* @__PURE__ */ jsx58("div", { className: "flex-1 overflow-y-auto px-4 py-8", children: /* @__PURE__ */ jsxs49("div", { className: "space-y-6", children: [
|
|
48945
|
+
/* @__PURE__ */ jsxs49("div", { className: "flex justify-between items-center", children: [
|
|
48946
|
+
/* @__PURE__ */ jsxs49("div", { children: [
|
|
48947
|
+
/* @__PURE__ */ jsx58("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: t12.title }),
|
|
48948
|
+
/* @__PURE__ */ jsx58("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: t12.subtitle })
|
|
48888
48949
|
] }),
|
|
48889
|
-
/* @__PURE__ */
|
|
48890
|
-
/* @__PURE__ */
|
|
48950
|
+
/* @__PURE__ */ jsxs49("button", { onClick: onAddUser, className: `${buttonStyles2.primary.base} inline-flex items-center`, children: [
|
|
48951
|
+
/* @__PURE__ */ jsx58(PlusIcon_default, { className: "-ml-1 mr-2 h-4 w-4" }),
|
|
48891
48952
|
t12.addUser
|
|
48892
48953
|
] })
|
|
48893
48954
|
] }),
|
|
48894
|
-
/* @__PURE__ */
|
|
48895
|
-
/* @__PURE__ */
|
|
48896
|
-
/* @__PURE__ */
|
|
48897
|
-
/* @__PURE__ */
|
|
48898
|
-
/* @__PURE__ */
|
|
48955
|
+
/* @__PURE__ */ jsx58("div", { className: "grid grid-cols-1 md:grid-cols-4 gap-6", children: isLoadingStats ? Array(4).fill(0).map((_4, i12) => /* @__PURE__ */ jsx58("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700 animate-pulse", children: /* @__PURE__ */ jsxs49("div", { className: "flex items-center", children: [
|
|
48956
|
+
/* @__PURE__ */ jsx58("div", { className: "h-8 w-8 bg-gray-300 dark:bg-gray-600 rounded" }),
|
|
48957
|
+
/* @__PURE__ */ jsxs49("div", { className: "ml-4 flex-1", children: [
|
|
48958
|
+
/* @__PURE__ */ jsx58("div", { className: "h-4 bg-gray-300 dark:bg-gray-600 rounded w-20 mb-2" }),
|
|
48959
|
+
/* @__PURE__ */ jsx58("div", { className: "h-8 bg-gray-300 dark:bg-gray-600 rounded w-12" })
|
|
48899
48960
|
] })
|
|
48900
|
-
] }) }, i12)) : /* @__PURE__ */
|
|
48901
|
-
/* @__PURE__ */
|
|
48902
|
-
/* @__PURE__ */
|
|
48903
|
-
/* @__PURE__ */
|
|
48904
|
-
/* @__PURE__ */
|
|
48905
|
-
/* @__PURE__ */
|
|
48961
|
+
] }) }, i12)) : /* @__PURE__ */ jsxs49(Fragment14, { children: [
|
|
48962
|
+
/* @__PURE__ */ jsx58("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsxs49("div", { className: "flex items-center", children: [
|
|
48963
|
+
/* @__PURE__ */ jsx58("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx58(UserCircleIcon_default, { className: "h-8 w-8 text-blue-600 dark:text-blue-400" }) }),
|
|
48964
|
+
/* @__PURE__ */ jsxs49("div", { className: "ml-4", children: [
|
|
48965
|
+
/* @__PURE__ */ jsx58("p", { className: "text-sm font-medium text-gray-600 dark:text-gray-400", children: t12.totalUsers }),
|
|
48966
|
+
/* @__PURE__ */ jsx58("p", { className: "text-2xl font-semibold text-gray-900 dark:text-white", children: userStats?.totalUsers ?? 0 })
|
|
48906
48967
|
] })
|
|
48907
48968
|
] }) }),
|
|
48908
|
-
/* @__PURE__ */
|
|
48909
|
-
/* @__PURE__ */
|
|
48910
|
-
/* @__PURE__ */
|
|
48911
|
-
/* @__PURE__ */
|
|
48912
|
-
/* @__PURE__ */
|
|
48969
|
+
/* @__PURE__ */ jsx58("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsxs49("div", { className: "flex items-center", children: [
|
|
48970
|
+
/* @__PURE__ */ jsx58("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx58("div", { className: "w-8 h-8 bg-green-100 dark:bg-green-900/20 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ jsx58("div", { className: "w-3 h-3 bg-green-500 rounded-full" }) }) }),
|
|
48971
|
+
/* @__PURE__ */ jsxs49("div", { className: "ml-4", children: [
|
|
48972
|
+
/* @__PURE__ */ jsx58("p", { className: "text-sm font-medium text-gray-600 dark:text-gray-400", children: t12.activeUsers }),
|
|
48973
|
+
/* @__PURE__ */ jsx58("p", { className: "text-2xl font-semibold text-gray-900 dark:text-white", children: userStats?.activeUsers ?? 0 })
|
|
48913
48974
|
] })
|
|
48914
48975
|
] }) }),
|
|
48915
|
-
/* @__PURE__ */
|
|
48916
|
-
/* @__PURE__ */
|
|
48917
|
-
/* @__PURE__ */
|
|
48918
|
-
/* @__PURE__ */
|
|
48919
|
-
/* @__PURE__ */
|
|
48976
|
+
/* @__PURE__ */ jsx58("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsxs49("div", { className: "flex items-center", children: [
|
|
48977
|
+
/* @__PURE__ */ jsx58("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx58(ShieldCheckIcon_default, { className: "h-8 w-8 text-red-600 dark:text-red-400" }) }),
|
|
48978
|
+
/* @__PURE__ */ jsxs49("div", { className: "ml-4", children: [
|
|
48979
|
+
/* @__PURE__ */ jsx58("p", { className: "text-sm font-medium text-gray-600 dark:text-gray-400", children: t12.administrators }),
|
|
48980
|
+
/* @__PURE__ */ jsx58("p", { className: "text-2xl font-semibold text-gray-900 dark:text-white", children: userStats?.adminUsers ?? 0 })
|
|
48920
48981
|
] })
|
|
48921
48982
|
] }) }),
|
|
48922
|
-
/* @__PURE__ */
|
|
48923
|
-
/* @__PURE__ */
|
|
48924
|
-
/* @__PURE__ */
|
|
48925
|
-
/* @__PURE__ */
|
|
48926
|
-
/* @__PURE__ */
|
|
48983
|
+
/* @__PURE__ */ jsx58("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsxs49("div", { className: "flex items-center", children: [
|
|
48984
|
+
/* @__PURE__ */ jsx58("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx58(ExclamationTriangleIcon_default, { className: "h-8 w-8 text-yellow-600 dark:text-yellow-400" }) }),
|
|
48985
|
+
/* @__PURE__ */ jsxs49("div", { className: "ml-4", children: [
|
|
48986
|
+
/* @__PURE__ */ jsx58("p", { className: "text-sm font-medium text-gray-600 dark:text-gray-400", children: t12.recentUsers }),
|
|
48987
|
+
/* @__PURE__ */ jsx58("p", { className: "text-2xl font-semibold text-gray-900 dark:text-white", children: userStats?.recentSignups?.length ?? 0 })
|
|
48927
48988
|
] })
|
|
48928
48989
|
] }) })
|
|
48929
48990
|
] }) }),
|
|
48930
|
-
/* @__PURE__ */
|
|
48931
|
-
/* @__PURE__ */
|
|
48932
|
-
/* @__PURE__ */
|
|
48933
|
-
/* @__PURE__ */
|
|
48934
|
-
/* @__PURE__ */
|
|
48935
|
-
/* @__PURE__ */
|
|
48991
|
+
/* @__PURE__ */ jsx58("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow p-6 border border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsxs49("div", { className: "grid grid-cols-1 md:grid-cols-4 gap-4", children: [
|
|
48992
|
+
/* @__PURE__ */ jsxs49("div", { children: [
|
|
48993
|
+
/* @__PURE__ */ jsx58("label", { htmlFor: "search", className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2", children: t12.searchUsers }),
|
|
48994
|
+
/* @__PURE__ */ jsxs49("div", { className: "relative", children: [
|
|
48995
|
+
/* @__PURE__ */ jsx58("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx58(MagnifyingGlassIcon_default, { className: "h-5 w-5 text-gray-600 dark:text-gray-400" }) }),
|
|
48996
|
+
/* @__PURE__ */ jsx58(
|
|
48936
48997
|
"input",
|
|
48937
48998
|
{
|
|
48938
48999
|
type: "text",
|
|
@@ -48945,9 +49006,9 @@ function AdminUsersPage({
|
|
|
48945
49006
|
)
|
|
48946
49007
|
] })
|
|
48947
49008
|
] }),
|
|
48948
|
-
/* @__PURE__ */
|
|
48949
|
-
/* @__PURE__ */
|
|
48950
|
-
/* @__PURE__ */
|
|
49009
|
+
/* @__PURE__ */ jsxs49("div", { children: [
|
|
49010
|
+
/* @__PURE__ */ jsx58("label", { htmlFor: "role", className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2", children: t12.role }),
|
|
49011
|
+
/* @__PURE__ */ jsxs49(
|
|
48951
49012
|
"select",
|
|
48952
49013
|
{
|
|
48953
49014
|
id: "role",
|
|
@@ -48955,16 +49016,16 @@ function AdminUsersPage({
|
|
|
48955
49016
|
value: selectedRole,
|
|
48956
49017
|
onChange: (e6) => setSelectedRole(e6.target.value),
|
|
48957
49018
|
children: [
|
|
48958
|
-
/* @__PURE__ */
|
|
48959
|
-
/* @__PURE__ */
|
|
48960
|
-
/* @__PURE__ */
|
|
49019
|
+
/* @__PURE__ */ jsx58("option", { value: "all", children: t12.allRoles }),
|
|
49020
|
+
/* @__PURE__ */ jsx58("option", { value: "admin", children: t12.admin }),
|
|
49021
|
+
/* @__PURE__ */ jsx58("option", { value: "user", children: t12.user })
|
|
48961
49022
|
]
|
|
48962
49023
|
}
|
|
48963
49024
|
)
|
|
48964
49025
|
] }),
|
|
48965
|
-
/* @__PURE__ */
|
|
48966
|
-
/* @__PURE__ */
|
|
48967
|
-
/* @__PURE__ */
|
|
49026
|
+
/* @__PURE__ */ jsxs49("div", { children: [
|
|
49027
|
+
/* @__PURE__ */ jsx58("label", { htmlFor: "status", className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2", children: t12.status }),
|
|
49028
|
+
/* @__PURE__ */ jsxs49(
|
|
48968
49029
|
"select",
|
|
48969
49030
|
{
|
|
48970
49031
|
id: "status",
|
|
@@ -48972,30 +49033,30 @@ function AdminUsersPage({
|
|
|
48972
49033
|
value: selectedStatus,
|
|
48973
49034
|
onChange: (e6) => setSelectedStatus(e6.target.value),
|
|
48974
49035
|
children: [
|
|
48975
|
-
/* @__PURE__ */
|
|
48976
|
-
/* @__PURE__ */
|
|
48977
|
-
/* @__PURE__ */
|
|
49036
|
+
/* @__PURE__ */ jsx58("option", { value: "all", children: t12.allStatus }),
|
|
49037
|
+
/* @__PURE__ */ jsx58("option", { value: "active", children: t12.active }),
|
|
49038
|
+
/* @__PURE__ */ jsx58("option", { value: "inactive", children: t12.inactive })
|
|
48978
49039
|
]
|
|
48979
49040
|
}
|
|
48980
49041
|
)
|
|
48981
49042
|
] }),
|
|
48982
|
-
/* @__PURE__ */
|
|
49043
|
+
/* @__PURE__ */ jsx58("div", { className: "flex items-end", children: /* @__PURE__ */ jsx58("button", { onClick: onExportUsers, className: `${buttonStyles2.secondary.base} w-full`, children: t12.exportUsers }) })
|
|
48983
49044
|
] }) }),
|
|
48984
|
-
/* @__PURE__ */
|
|
48985
|
-
/* @__PURE__ */
|
|
48986
|
-
/* @__PURE__ */
|
|
48987
|
-
/* @__PURE__ */
|
|
48988
|
-
] }) : /* @__PURE__ */
|
|
48989
|
-
/* @__PURE__ */
|
|
48990
|
-
/* @__PURE__ */
|
|
48991
|
-
/* @__PURE__ */
|
|
48992
|
-
/* @__PURE__ */
|
|
48993
|
-
/* @__PURE__ */
|
|
48994
|
-
/* @__PURE__ */
|
|
48995
|
-
/* @__PURE__ */
|
|
48996
|
-
/* @__PURE__ */
|
|
49045
|
+
/* @__PURE__ */ jsxs49("div", { className: "bg-white dark:bg-gray-800 shadow rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden", children: [
|
|
49046
|
+
/* @__PURE__ */ jsx58("div", { className: "overflow-x-auto", children: isLoadingUsers ? /* @__PURE__ */ jsxs49("div", { className: "p-6 text-center", children: [
|
|
49047
|
+
/* @__PURE__ */ jsx58("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto" }),
|
|
49048
|
+
/* @__PURE__ */ jsx58("p", { className: "mt-4 text-sm text-gray-500 dark:text-gray-400", children: t12.loadingUsers })
|
|
49049
|
+
] }) : /* @__PURE__ */ jsxs49("table", { className: "min-w-full divide-y divide-gray-200 dark:divide-gray-700", children: [
|
|
49050
|
+
/* @__PURE__ */ jsx58("thead", { className: "bg-gray-50 dark:bg-gray-900", children: /* @__PURE__ */ jsxs49("tr", { children: [
|
|
49051
|
+
/* @__PURE__ */ jsx58("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: t12.userColumn }),
|
|
49052
|
+
/* @__PURE__ */ jsx58("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: t12.domainColumn }),
|
|
49053
|
+
/* @__PURE__ */ jsx58("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: t12.roleColumn }),
|
|
49054
|
+
/* @__PURE__ */ jsx58("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: t12.statusColumn }),
|
|
49055
|
+
/* @__PURE__ */ jsx58("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: t12.lastLoginColumn }),
|
|
49056
|
+
/* @__PURE__ */ jsx58("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: t12.joinedColumn }),
|
|
49057
|
+
/* @__PURE__ */ jsx58("th", { className: "px-6 py-3 text-right text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider", children: t12.actionsColumn })
|
|
48997
49058
|
] }) }),
|
|
48998
|
-
/* @__PURE__ */
|
|
49059
|
+
/* @__PURE__ */ jsx58("tbody", { className: "bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700", children: filteredUsers.map((user) => /* @__PURE__ */ jsx58(
|
|
48999
49060
|
UserTableRow,
|
|
49000
49061
|
{
|
|
49001
49062
|
user,
|
|
@@ -49006,15 +49067,15 @@ function AdminUsersPage({
|
|
|
49006
49067
|
user.id
|
|
49007
49068
|
)) })
|
|
49008
49069
|
] }) }),
|
|
49009
|
-
!isLoadingUsers && filteredUsers.length === 0 && /* @__PURE__ */
|
|
49010
|
-
/* @__PURE__ */
|
|
49011
|
-
/* @__PURE__ */
|
|
49012
|
-
/* @__PURE__ */
|
|
49070
|
+
!isLoadingUsers && filteredUsers.length === 0 && /* @__PURE__ */ jsxs49("div", { className: "p-6 text-center", children: [
|
|
49071
|
+
/* @__PURE__ */ jsx58(UserCircleIcon_default, { className: "mx-auto h-12 w-12 text-gray-600 dark:text-gray-400" }),
|
|
49072
|
+
/* @__PURE__ */ jsx58("h3", { className: "mt-2 text-sm font-medium text-gray-900 dark:text-white", children: t12.noUsersFound }),
|
|
49073
|
+
/* @__PURE__ */ jsx58("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: t12.noUsersFoundDescription })
|
|
49013
49074
|
] })
|
|
49014
49075
|
] })
|
|
49015
49076
|
] }) }),
|
|
49016
|
-
/* @__PURE__ */
|
|
49017
|
-
/* @__PURE__ */
|
|
49077
|
+
/* @__PURE__ */ jsxs49("div", { className: "flex", children: [
|
|
49078
|
+
/* @__PURE__ */ jsx58(
|
|
49018
49079
|
ToolbarPanels,
|
|
49019
49080
|
{
|
|
49020
49081
|
activePanel,
|
|
@@ -49024,7 +49085,7 @@ function AdminUsersPage({
|
|
|
49024
49085
|
onLineNumbersToggle
|
|
49025
49086
|
}
|
|
49026
49087
|
),
|
|
49027
|
-
/* @__PURE__ */
|
|
49088
|
+
/* @__PURE__ */ jsx58(
|
|
49028
49089
|
Toolbar2,
|
|
49029
49090
|
{
|
|
49030
49091
|
context: "simple",
|
|
@@ -49038,31 +49099,31 @@ function AdminUsersPage({
|
|
|
49038
49099
|
|
|
49039
49100
|
// src/features/auth/components/SignInForm.tsx
|
|
49040
49101
|
import React52 from "react";
|
|
49041
|
-
import { Fragment as Fragment15, jsx as
|
|
49102
|
+
import { Fragment as Fragment15, jsx as jsx59, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
49042
49103
|
function GoogleIcon() {
|
|
49043
|
-
return /* @__PURE__ */
|
|
49044
|
-
/* @__PURE__ */
|
|
49104
|
+
return /* @__PURE__ */ jsxs50("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 24 24", children: [
|
|
49105
|
+
/* @__PURE__ */ jsx59(
|
|
49045
49106
|
"path",
|
|
49046
49107
|
{
|
|
49047
49108
|
fill: "currentColor",
|
|
49048
49109
|
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
49049
49110
|
}
|
|
49050
49111
|
),
|
|
49051
|
-
/* @__PURE__ */
|
|
49112
|
+
/* @__PURE__ */ jsx59(
|
|
49052
49113
|
"path",
|
|
49053
49114
|
{
|
|
49054
49115
|
fill: "currentColor",
|
|
49055
49116
|
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
49056
49117
|
}
|
|
49057
49118
|
),
|
|
49058
|
-
/* @__PURE__ */
|
|
49119
|
+
/* @__PURE__ */ jsx59(
|
|
49059
49120
|
"path",
|
|
49060
49121
|
{
|
|
49061
49122
|
fill: "currentColor",
|
|
49062
49123
|
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
49063
49124
|
}
|
|
49064
49125
|
),
|
|
49065
|
-
/* @__PURE__ */
|
|
49126
|
+
/* @__PURE__ */ jsx59(
|
|
49066
49127
|
"path",
|
|
49067
49128
|
{
|
|
49068
49129
|
fill: "currentColor",
|
|
@@ -49091,12 +49152,12 @@ function CredentialsAuthForm({
|
|
|
49091
49152
|
setValidationError(null);
|
|
49092
49153
|
await onSubmit(email, password);
|
|
49093
49154
|
};
|
|
49094
|
-
return /* @__PURE__ */
|
|
49095
|
-
validationError && /* @__PURE__ */
|
|
49096
|
-
/* @__PURE__ */
|
|
49097
|
-
/* @__PURE__ */
|
|
49098
|
-
/* @__PURE__ */
|
|
49099
|
-
/* @__PURE__ */
|
|
49155
|
+
return /* @__PURE__ */ jsxs50(Fragment15, { children: [
|
|
49156
|
+
validationError && /* @__PURE__ */ jsx59("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-md p-4", children: /* @__PURE__ */ jsx59("div", { className: "text-sm text-red-700 dark:text-red-400", children: validationError }) }),
|
|
49157
|
+
/* @__PURE__ */ jsxs50("form", { onSubmit: handleSubmit, className: "space-y-4", children: [
|
|
49158
|
+
/* @__PURE__ */ jsxs50("div", { children: [
|
|
49159
|
+
/* @__PURE__ */ jsx59("label", { htmlFor: "email", className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: t12.emailLabel }),
|
|
49160
|
+
/* @__PURE__ */ jsx59(
|
|
49100
49161
|
"input",
|
|
49101
49162
|
{
|
|
49102
49163
|
id: "email",
|
|
@@ -49109,9 +49170,9 @@ function CredentialsAuthForm({
|
|
|
49109
49170
|
}
|
|
49110
49171
|
)
|
|
49111
49172
|
] }),
|
|
49112
|
-
/* @__PURE__ */
|
|
49113
|
-
/* @__PURE__ */
|
|
49114
|
-
/* @__PURE__ */
|
|
49173
|
+
/* @__PURE__ */ jsxs50("div", { children: [
|
|
49174
|
+
/* @__PURE__ */ jsx59("label", { htmlFor: "password", className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: t12.passwordLabel }),
|
|
49175
|
+
/* @__PURE__ */ jsx59(
|
|
49115
49176
|
"input",
|
|
49116
49177
|
{
|
|
49117
49178
|
id: "password",
|
|
@@ -49124,11 +49185,11 @@ function CredentialsAuthForm({
|
|
|
49124
49185
|
}
|
|
49125
49186
|
)
|
|
49126
49187
|
] }),
|
|
49127
|
-
/* @__PURE__ */
|
|
49188
|
+
/* @__PURE__ */ jsx59("button", { type: "submit", className: `${buttonStyles.primary.base} w-full justify-center`, children: t12.signInWithCredentials })
|
|
49128
49189
|
] }),
|
|
49129
|
-
/* @__PURE__ */
|
|
49130
|
-
/* @__PURE__ */
|
|
49131
|
-
/* @__PURE__ */
|
|
49190
|
+
/* @__PURE__ */ jsxs50("div", { className: "relative", children: [
|
|
49191
|
+
/* @__PURE__ */ jsx59("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx59("div", { className: "w-full border-t border-gray-300 dark:border-gray-600" }) }),
|
|
49192
|
+
/* @__PURE__ */ jsx59("div", { className: "relative flex justify-center text-sm", children: /* @__PURE__ */ jsx59("span", { className: "px-2 bg-white dark:bg-gray-900 text-gray-500 dark:text-gray-400", children: t12.or }) })
|
|
49132
49193
|
] })
|
|
49133
49194
|
] });
|
|
49134
49195
|
}
|
|
@@ -49140,57 +49201,57 @@ function SignInForm({
|
|
|
49140
49201
|
Link,
|
|
49141
49202
|
translations: t12
|
|
49142
49203
|
}) {
|
|
49143
|
-
return /* @__PURE__ */
|
|
49144
|
-
/* @__PURE__ */
|
|
49145
|
-
/* @__PURE__ */
|
|
49146
|
-
/* @__PURE__ */
|
|
49147
|
-
/* @__PURE__ */
|
|
49148
|
-
/* @__PURE__ */
|
|
49204
|
+
return /* @__PURE__ */ jsx59("main", { className: "flex-1 flex flex-col items-center justify-center p-24", role: "main", children: /* @__PURE__ */ jsx59("div", { className: "z-10 w-full max-w-5xl items-center justify-between font-sans text-sm", children: /* @__PURE__ */ jsxs50("div", { className: "text-center space-y-8", children: [
|
|
49205
|
+
/* @__PURE__ */ jsxs50("section", { "aria-labelledby": "signin-heading", className: "py-8", children: [
|
|
49206
|
+
/* @__PURE__ */ jsx59("h1", { id: "signin-heading", className: "sr-only", children: t12.pageTitle }),
|
|
49207
|
+
/* @__PURE__ */ jsx59(SemiontBranding, { t: (key) => t12[key] || key, size: "xl", animated: true, className: "mb-8" }),
|
|
49208
|
+
/* @__PURE__ */ jsx59("p", { className: "text-xl text-gray-600 dark:text-gray-300 font-sans max-w-4xl mx-auto px-4 mb-2", children: t12.welcomeBack }),
|
|
49209
|
+
/* @__PURE__ */ jsx59("p", { className: "text-base text-gray-500 dark:text-gray-400 font-sans max-w-2xl mx-auto px-4", children: t12.signInPrompt })
|
|
49149
49210
|
] }),
|
|
49150
|
-
error && /* @__PURE__ */
|
|
49151
|
-
/* @__PURE__ */
|
|
49152
|
-
showCredentialsAuth && onCredentialsSignIn && /* @__PURE__ */
|
|
49153
|
-
/* @__PURE__ */
|
|
49154
|
-
/* @__PURE__ */
|
|
49211
|
+
error && /* @__PURE__ */ jsx59("div", { className: "max-w-md mx-auto", children: /* @__PURE__ */ jsx59("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-md p-4", children: /* @__PURE__ */ jsx59("div", { className: "text-sm text-red-700 dark:text-red-400", children: error }) }) }),
|
|
49212
|
+
/* @__PURE__ */ jsxs50("div", { className: "max-w-md mx-auto space-y-6", children: [
|
|
49213
|
+
showCredentialsAuth && onCredentialsSignIn && /* @__PURE__ */ jsx59(CredentialsAuthForm, { onSubmit: onCredentialsSignIn, translations: t12 }),
|
|
49214
|
+
/* @__PURE__ */ jsxs50("button", { onClick: onGoogleSignIn, className: `${buttonStyles.primary.base} w-full justify-center`, children: [
|
|
49215
|
+
/* @__PURE__ */ jsx59(GoogleIcon, {}),
|
|
49155
49216
|
t12.continueWithGoogle
|
|
49156
49217
|
] }),
|
|
49157
|
-
/* @__PURE__ */
|
|
49218
|
+
/* @__PURE__ */ jsx59("div", { className: "text-xs text-center text-gray-500 dark:text-gray-400", children: showCredentialsAuth ? t12.credentialsAuthEnabled : t12.approvedDomainsOnly })
|
|
49158
49219
|
] }),
|
|
49159
|
-
/* @__PURE__ */
|
|
49160
|
-
/* @__PURE__ */
|
|
49161
|
-
/* @__PURE__ */
|
|
49162
|
-
/* @__PURE__ */
|
|
49220
|
+
/* @__PURE__ */ jsxs50("div", { className: "flex gap-4 justify-center items-center flex-wrap", children: [
|
|
49221
|
+
/* @__PURE__ */ jsx59(Link, { href: "/", className: buttonStyles.secondary.base, children: t12.backToHome }),
|
|
49222
|
+
/* @__PURE__ */ jsx59(Link, { href: "/about", className: buttonStyles.secondary.base, children: t12.learnMore }),
|
|
49223
|
+
/* @__PURE__ */ jsx59(Link, { href: "/auth/signup", className: buttonStyles.primary.base, children: t12.signUpInstead })
|
|
49163
49224
|
] })
|
|
49164
49225
|
] }) }) });
|
|
49165
49226
|
}
|
|
49166
49227
|
|
|
49167
49228
|
// src/features/auth/components/SignUpForm.tsx
|
|
49168
49229
|
import { useState as useState31 } from "react";
|
|
49169
|
-
import { jsx as
|
|
49230
|
+
import { jsx as jsx60, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
49170
49231
|
function GoogleIcon2() {
|
|
49171
|
-
return /* @__PURE__ */
|
|
49172
|
-
/* @__PURE__ */
|
|
49232
|
+
return /* @__PURE__ */ jsxs51("svg", { className: "w-5 h-5 mr-2", viewBox: "0 0 24 24", children: [
|
|
49233
|
+
/* @__PURE__ */ jsx60(
|
|
49173
49234
|
"path",
|
|
49174
49235
|
{
|
|
49175
49236
|
fill: "currentColor",
|
|
49176
49237
|
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
49177
49238
|
}
|
|
49178
49239
|
),
|
|
49179
|
-
/* @__PURE__ */
|
|
49240
|
+
/* @__PURE__ */ jsx60(
|
|
49180
49241
|
"path",
|
|
49181
49242
|
{
|
|
49182
49243
|
fill: "currentColor",
|
|
49183
49244
|
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
49184
49245
|
}
|
|
49185
49246
|
),
|
|
49186
|
-
/* @__PURE__ */
|
|
49247
|
+
/* @__PURE__ */ jsx60(
|
|
49187
49248
|
"path",
|
|
49188
49249
|
{
|
|
49189
49250
|
fill: "currentColor",
|
|
49190
49251
|
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
49191
49252
|
}
|
|
49192
49253
|
),
|
|
49193
|
-
/* @__PURE__ */
|
|
49254
|
+
/* @__PURE__ */ jsx60(
|
|
49194
49255
|
"path",
|
|
49195
49256
|
{
|
|
49196
49257
|
fill: "currentColor",
|
|
@@ -49210,22 +49271,22 @@ function SignUpForm({ onSignUp, Link, translations: t12 }) {
|
|
|
49210
49271
|
setIsLoading(false);
|
|
49211
49272
|
}
|
|
49212
49273
|
};
|
|
49213
|
-
return /* @__PURE__ */
|
|
49214
|
-
/* @__PURE__ */
|
|
49215
|
-
/* @__PURE__ */
|
|
49216
|
-
/* @__PURE__ */
|
|
49274
|
+
return /* @__PURE__ */ jsx60("div", { className: "flex items-center justify-center py-12 font-sans", children: /* @__PURE__ */ jsxs51("div", { className: "max-w-md w-full space-y-8", children: [
|
|
49275
|
+
/* @__PURE__ */ jsxs51("div", { children: [
|
|
49276
|
+
/* @__PURE__ */ jsx60("h2", { className: "mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-white", children: t12.pageTitle }),
|
|
49277
|
+
/* @__PURE__ */ jsx60("p", { className: "mt-2 text-center text-sm text-gray-600 dark:text-gray-400", children: t12.signUpPrompt })
|
|
49217
49278
|
] }),
|
|
49218
|
-
/* @__PURE__ */
|
|
49219
|
-
/* @__PURE__ */
|
|
49220
|
-
isLoading ? /* @__PURE__ */
|
|
49279
|
+
/* @__PURE__ */ jsxs51("div", { className: "mt-8 space-y-6", children: [
|
|
49280
|
+
/* @__PURE__ */ jsxs51("button", { onClick: handleSignUp, disabled: isLoading, className: buttonStyles.primary.large, children: [
|
|
49281
|
+
isLoading ? /* @__PURE__ */ jsx60("div", { className: "w-5 h-5 mr-2 animate-spin rounded-full border-2 border-white border-t-transparent" }) : /* @__PURE__ */ jsx60(GoogleIcon2, {}),
|
|
49221
49282
|
isLoading ? t12.creatingAccount : t12.signUpWithGoogle
|
|
49222
49283
|
] }),
|
|
49223
|
-
/* @__PURE__ */
|
|
49284
|
+
/* @__PURE__ */ jsxs51("div", { className: "text-xs text-center text-gray-500 dark:text-gray-400", children: [
|
|
49224
49285
|
t12.approvedDomainsInfo,
|
|
49225
|
-
/* @__PURE__ */
|
|
49286
|
+
/* @__PURE__ */ jsx60("br", {}),
|
|
49226
49287
|
t12.termsAgreement
|
|
49227
49288
|
] }),
|
|
49228
|
-
/* @__PURE__ */
|
|
49289
|
+
/* @__PURE__ */ jsx60("div", { className: "text-center", children: /* @__PURE__ */ jsx60(
|
|
49229
49290
|
Link,
|
|
49230
49291
|
{
|
|
49231
49292
|
href: "/auth/signin",
|
|
@@ -49238,7 +49299,7 @@ function SignUpForm({ onSignUp, Link, translations: t12 }) {
|
|
|
49238
49299
|
}
|
|
49239
49300
|
|
|
49240
49301
|
// src/features/auth/components/AuthErrorDisplay.tsx
|
|
49241
|
-
import { jsx as
|
|
49302
|
+
import { jsx as jsx61, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
49242
49303
|
function getErrorMessage(errorType, t12) {
|
|
49243
49304
|
switch (errorType) {
|
|
49244
49305
|
case "Configuration":
|
|
@@ -49253,10 +49314,10 @@ function getErrorMessage(errorType, t12) {
|
|
|
49253
49314
|
}
|
|
49254
49315
|
function AuthErrorDisplay({ errorType, Link, translations: t12 }) {
|
|
49255
49316
|
const errorMessage = getErrorMessage(errorType, t12);
|
|
49256
|
-
return /* @__PURE__ */
|
|
49257
|
-
/* @__PURE__ */
|
|
49258
|
-
/* @__PURE__ */
|
|
49259
|
-
/* @__PURE__ */
|
|
49317
|
+
return /* @__PURE__ */ jsx61("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsxs52("div", { className: "max-w-md w-full space-y-8", children: [
|
|
49318
|
+
/* @__PURE__ */ jsx61("div", { children: /* @__PURE__ */ jsx61("h2", { className: "mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-white", children: t12.pageTitle }) }),
|
|
49319
|
+
/* @__PURE__ */ jsx61("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-md p-4", children: /* @__PURE__ */ jsx61("div", { className: "text-sm text-red-700 dark:text-red-400", children: errorMessage }) }),
|
|
49320
|
+
/* @__PURE__ */ jsx61("div", { className: "text-center", children: /* @__PURE__ */ jsx61(
|
|
49260
49321
|
Link,
|
|
49261
49322
|
{
|
|
49262
49323
|
href: "/auth/signin",
|
|
@@ -49268,7 +49329,7 @@ function AuthErrorDisplay({ errorType, Link, translations: t12 }) {
|
|
|
49268
49329
|
}
|
|
49269
49330
|
|
|
49270
49331
|
// src/features/auth-welcome/components/WelcomePage.tsx
|
|
49271
|
-
import { jsx as
|
|
49332
|
+
import { jsx as jsx62, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
49272
49333
|
function WelcomePage({
|
|
49273
49334
|
userName,
|
|
49274
49335
|
status,
|
|
@@ -49280,53 +49341,53 @@ function WelcomePage({
|
|
|
49280
49341
|
Link
|
|
49281
49342
|
}) {
|
|
49282
49343
|
if (status === "loading") {
|
|
49283
|
-
return /* @__PURE__ */
|
|
49284
|
-
/* @__PURE__ */
|
|
49285
|
-
/* @__PURE__ */
|
|
49344
|
+
return /* @__PURE__ */ jsx62(PageLayout2, { className: "bg-gray-50 dark:bg-gray-900", children: /* @__PURE__ */ jsx62("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsxs53("div", { className: "text-center", children: [
|
|
49345
|
+
/* @__PURE__ */ jsx62("div", { className: "w-8 h-8 mx-auto animate-spin rounded-full border-2 border-blue-600 border-t-transparent" }),
|
|
49346
|
+
/* @__PURE__ */ jsx62("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: t12.loading })
|
|
49286
49347
|
] }) }) });
|
|
49287
49348
|
}
|
|
49288
49349
|
if (status === "accepted") {
|
|
49289
|
-
return /* @__PURE__ */
|
|
49290
|
-
/* @__PURE__ */
|
|
49291
|
-
/* @__PURE__ */
|
|
49292
|
-
/* @__PURE__ */
|
|
49293
|
-
/* @__PURE__ */
|
|
49350
|
+
return /* @__PURE__ */ jsx62(PageLayout2, { className: "bg-gray-50 dark:bg-gray-900", children: /* @__PURE__ */ jsx62("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsxs53("div", { className: "max-w-md w-full text-center space-y-6", children: [
|
|
49351
|
+
/* @__PURE__ */ jsx62("div", { className: "w-16 h-16 mx-auto bg-green-100 dark:bg-green-900 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx62("svg", { className: "w-8 h-8 text-green-600 dark:text-green-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx62("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }) }),
|
|
49352
|
+
/* @__PURE__ */ jsxs53("div", { children: [
|
|
49353
|
+
/* @__PURE__ */ jsx62("h2", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: t12.welcomeTitle }),
|
|
49354
|
+
/* @__PURE__ */ jsx62("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: t12.thanksForAccepting })
|
|
49294
49355
|
] })
|
|
49295
49356
|
] }) }) });
|
|
49296
49357
|
}
|
|
49297
|
-
return /* @__PURE__ */
|
|
49298
|
-
/* @__PURE__ */
|
|
49299
|
-
/* @__PURE__ */
|
|
49300
|
-
/* @__PURE__ */
|
|
49301
|
-
/* @__PURE__ */
|
|
49358
|
+
return /* @__PURE__ */ jsx62(PageLayout2, { className: "bg-gray-50 dark:bg-gray-900", children: /* @__PURE__ */ jsx62("div", { className: "max-w-4xl mx-auto py-12 px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs53("div", { className: "bg-white dark:bg-gray-800 shadow-lg rounded-lg p-8", children: [
|
|
49359
|
+
/* @__PURE__ */ jsxs53("div", { className: "text-center mb-8", children: [
|
|
49360
|
+
/* @__PURE__ */ jsx62("div", { className: "w-16 h-16 mx-auto bg-blue-100 dark:bg-blue-900 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx62("svg", { className: "w-8 h-8 text-blue-600 dark:text-blue-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx62("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" }) }) }),
|
|
49361
|
+
/* @__PURE__ */ jsx62("h1", { className: "text-3xl font-bold text-gray-900 dark:text-white", children: t12.welcomeUser.replace("{firstName}", userName || "") }),
|
|
49362
|
+
/* @__PURE__ */ jsx62("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: t12.reviewTermsPrompt })
|
|
49302
49363
|
] }),
|
|
49303
|
-
/* @__PURE__ */
|
|
49304
|
-
/* @__PURE__ */
|
|
49305
|
-
/* @__PURE__ */
|
|
49306
|
-
/* @__PURE__ */
|
|
49307
|
-
/* @__PURE__ */
|
|
49308
|
-
/* @__PURE__ */
|
|
49309
|
-
/* @__PURE__ */
|
|
49310
|
-
/* @__PURE__ */
|
|
49364
|
+
/* @__PURE__ */ jsx62("div", { className: "max-h-96 overflow-y-auto border border-gray-200 dark:border-gray-700 rounded-lg p-6 mb-6 bg-gray-50 dark:bg-gray-900", children: /* @__PURE__ */ jsxs53("div", { className: "prose dark:prose-invert max-w-none text-sm", children: [
|
|
49365
|
+
/* @__PURE__ */ jsx62("h3", { children: t12.termsSummaryTitle }),
|
|
49366
|
+
/* @__PURE__ */ jsx62("p", { children: t12.termsSummaryIntro }),
|
|
49367
|
+
/* @__PURE__ */ jsx62("h4", { children: t12.acceptableUseTitle }),
|
|
49368
|
+
/* @__PURE__ */ jsxs53("ul", { children: [
|
|
49369
|
+
/* @__PURE__ */ jsx62("li", { children: t12.acceptableUseResponsible }),
|
|
49370
|
+
/* @__PURE__ */ jsx62("li", { children: t12.acceptableUseRespect }),
|
|
49371
|
+
/* @__PURE__ */ jsx62("li", { children: t12.acceptableUseConduct })
|
|
49311
49372
|
] }),
|
|
49312
|
-
/* @__PURE__ */
|
|
49313
|
-
/* @__PURE__ */
|
|
49314
|
-
/* @__PURE__ */
|
|
49315
|
-
/* @__PURE__ */
|
|
49316
|
-
/* @__PURE__ */
|
|
49317
|
-
/* @__PURE__ */
|
|
49318
|
-
/* @__PURE__ */
|
|
49319
|
-
/* @__PURE__ */
|
|
49320
|
-
/* @__PURE__ */
|
|
49321
|
-
/* @__PURE__ */
|
|
49322
|
-
/* @__PURE__ */
|
|
49323
|
-
/* @__PURE__ */
|
|
49373
|
+
/* @__PURE__ */ jsx62("h4", { children: t12.prohibitedContentTitle }),
|
|
49374
|
+
/* @__PURE__ */ jsx62("p", { children: t12.prohibitedContentIntro }),
|
|
49375
|
+
/* @__PURE__ */ jsxs53("ul", { children: [
|
|
49376
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedIllegal }),
|
|
49377
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedAdult }),
|
|
49378
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedHate }),
|
|
49379
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedViolence }),
|
|
49380
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedMisinformation }),
|
|
49381
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedPrivacy }),
|
|
49382
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedCopyright }),
|
|
49383
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedMalware }),
|
|
49384
|
+
/* @__PURE__ */ jsx62("li", { children: t12.prohibitedSpam })
|
|
49324
49385
|
] }),
|
|
49325
|
-
/* @__PURE__ */
|
|
49326
|
-
/* @__PURE__ */
|
|
49386
|
+
/* @__PURE__ */ jsx62("h4", { children: t12.conductTitle }),
|
|
49387
|
+
/* @__PURE__ */ jsxs53("p", { children: [
|
|
49327
49388
|
t12.conductDescription,
|
|
49328
49389
|
" ",
|
|
49329
|
-
/* @__PURE__ */
|
|
49390
|
+
/* @__PURE__ */ jsx62(
|
|
49330
49391
|
"a",
|
|
49331
49392
|
{
|
|
49332
49393
|
href: "https://ai-alliance.cdn.prismic.io/ai-alliance/Zl-MG5m069VX1dgH_AIAllianceCodeofConduct.pdf",
|
|
@@ -49338,20 +49399,20 @@ function WelcomePage({
|
|
|
49338
49399
|
),
|
|
49339
49400
|
t12.conductPromotion
|
|
49340
49401
|
] }),
|
|
49341
|
-
/* @__PURE__ */
|
|
49342
|
-
/* @__PURE__ */
|
|
49343
|
-
/* @__PURE__ */
|
|
49344
|
-
/* @__PURE__ */
|
|
49345
|
-
/* @__PURE__ */
|
|
49346
|
-
/* @__PURE__ */
|
|
49402
|
+
/* @__PURE__ */ jsx62("h4", { children: t12.responsibilitiesTitle }),
|
|
49403
|
+
/* @__PURE__ */ jsxs53("ul", { children: [
|
|
49404
|
+
/* @__PURE__ */ jsx62("li", { children: t12.responsibilitiesSecure }),
|
|
49405
|
+
/* @__PURE__ */ jsx62("li", { children: t12.responsibilitiesReport }),
|
|
49406
|
+
/* @__PURE__ */ jsx62("li", { children: t12.responsibilitiesAccurate }),
|
|
49407
|
+
/* @__PURE__ */ jsx62("li", { children: t12.responsibilitiesComply })
|
|
49347
49408
|
] }),
|
|
49348
|
-
/* @__PURE__ */
|
|
49409
|
+
/* @__PURE__ */ jsx62("p", { className: "mt-4 font-medium", children: t12.violationsWarning })
|
|
49349
49410
|
] }) }),
|
|
49350
|
-
/* @__PURE__ */
|
|
49351
|
-
/* @__PURE__ */
|
|
49411
|
+
/* @__PURE__ */ jsxs53("div", { className: "text-center space-y-4", children: [
|
|
49412
|
+
/* @__PURE__ */ jsxs53("p", { className: "text-sm text-gray-600 dark:text-gray-400", children: [
|
|
49352
49413
|
t12.readFullTerms,
|
|
49353
49414
|
" ",
|
|
49354
|
-
/* @__PURE__ */
|
|
49415
|
+
/* @__PURE__ */ jsx62(
|
|
49355
49416
|
Link,
|
|
49356
49417
|
{
|
|
49357
49418
|
href: "/terms",
|
|
@@ -49363,7 +49424,7 @@ function WelcomePage({
|
|
|
49363
49424
|
" ",
|
|
49364
49425
|
t12.and,
|
|
49365
49426
|
" ",
|
|
49366
|
-
/* @__PURE__ */
|
|
49427
|
+
/* @__PURE__ */ jsx62(
|
|
49367
49428
|
Link,
|
|
49368
49429
|
{
|
|
49369
49430
|
href: "/privacy",
|
|
@@ -49373,8 +49434,8 @@ function WelcomePage({
|
|
|
49373
49434
|
}
|
|
49374
49435
|
)
|
|
49375
49436
|
] }),
|
|
49376
|
-
/* @__PURE__ */
|
|
49377
|
-
/* @__PURE__ */
|
|
49437
|
+
/* @__PURE__ */ jsxs53("div", { className: "flex justify-center gap-4", children: [
|
|
49438
|
+
/* @__PURE__ */ jsx62(
|
|
49378
49439
|
"button",
|
|
49379
49440
|
{
|
|
49380
49441
|
onClick: onDecline,
|
|
@@ -49383,7 +49444,7 @@ function WelcomePage({
|
|
|
49383
49444
|
children: t12.declineAndSignOut
|
|
49384
49445
|
}
|
|
49385
49446
|
),
|
|
49386
|
-
/* @__PURE__ */
|
|
49447
|
+
/* @__PURE__ */ jsx62(
|
|
49387
49448
|
"button",
|
|
49388
49449
|
{
|
|
49389
49450
|
onClick: onAccept,
|
|
@@ -49393,13 +49454,13 @@ function WelcomePage({
|
|
|
49393
49454
|
}
|
|
49394
49455
|
)
|
|
49395
49456
|
] }),
|
|
49396
|
-
/* @__PURE__ */
|
|
49457
|
+
/* @__PURE__ */ jsx62("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: t12.legallyBound })
|
|
49397
49458
|
] })
|
|
49398
49459
|
] }) }) });
|
|
49399
49460
|
}
|
|
49400
49461
|
|
|
49401
49462
|
// src/features/moderate-entity-tags/components/EntityTagsPage.tsx
|
|
49402
|
-
import { Fragment as Fragment16, jsx as
|
|
49463
|
+
import { Fragment as Fragment16, jsx as jsx63, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
49403
49464
|
function EntityTagsPage({
|
|
49404
49465
|
entityTypes,
|
|
49405
49466
|
isLoading,
|
|
@@ -49423,21 +49484,21 @@ function EntityTagsPage({
|
|
|
49423
49484
|
onAddTag();
|
|
49424
49485
|
}
|
|
49425
49486
|
};
|
|
49426
|
-
return /* @__PURE__ */
|
|
49427
|
-
/* @__PURE__ */
|
|
49428
|
-
/* @__PURE__ */
|
|
49429
|
-
/* @__PURE__ */
|
|
49430
|
-
/* @__PURE__ */
|
|
49487
|
+
return /* @__PURE__ */ jsxs54("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
49488
|
+
/* @__PURE__ */ jsxs54("div", { className: "flex-1 overflow-y-auto px-4 py-8", children: [
|
|
49489
|
+
/* @__PURE__ */ jsxs54("div", { className: "mb-8", children: [
|
|
49490
|
+
/* @__PURE__ */ jsx63("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: t12.pageTitle }),
|
|
49491
|
+
/* @__PURE__ */ jsx63("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: t12.pageDescription })
|
|
49431
49492
|
] }),
|
|
49432
|
-
/* @__PURE__ */
|
|
49433
|
-
/* @__PURE__ */
|
|
49434
|
-
/* @__PURE__ */
|
|
49435
|
-
/* @__PURE__ */
|
|
49436
|
-
/* @__PURE__ */
|
|
49437
|
-
/* @__PURE__ */
|
|
49493
|
+
/* @__PURE__ */ jsxs54("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow border border-gray-200 dark:border-gray-700 p-6", children: [
|
|
49494
|
+
/* @__PURE__ */ jsxs54("div", { className: "flex items-start mb-6", children: [
|
|
49495
|
+
/* @__PURE__ */ jsx63("div", { className: "flex items-center justify-center w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-900/20 mr-3", children: /* @__PURE__ */ jsx63(TagIcon_default, { className: "w-6 h-6 text-blue-600 dark:text-blue-400" }) }),
|
|
49496
|
+
/* @__PURE__ */ jsxs54("div", { className: "flex-1", children: [
|
|
49497
|
+
/* @__PURE__ */ jsx63("h3", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: t12.sectionTitle }),
|
|
49498
|
+
/* @__PURE__ */ jsx63("p", { className: "text-sm text-gray-600 dark:text-gray-400 mt-1", children: t12.sectionDescription })
|
|
49438
49499
|
] })
|
|
49439
49500
|
] }),
|
|
49440
|
-
/* @__PURE__ */
|
|
49501
|
+
/* @__PURE__ */ jsx63("div", { className: "mb-6", children: /* @__PURE__ */ jsx63("div", { className: "flex flex-wrap gap-2", children: entityTypes.map((tag) => /* @__PURE__ */ jsx63(
|
|
49441
49502
|
"span",
|
|
49442
49503
|
{
|
|
49443
49504
|
className: "px-3 py-1 rounded-md text-sm border bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 border-blue-200 dark:border-blue-800",
|
|
@@ -49445,8 +49506,8 @@ function EntityTagsPage({
|
|
|
49445
49506
|
},
|
|
49446
49507
|
tag
|
|
49447
49508
|
)) }) }),
|
|
49448
|
-
/* @__PURE__ */
|
|
49449
|
-
/* @__PURE__ */
|
|
49509
|
+
/* @__PURE__ */ jsxs54("div", { className: "flex items-center gap-2", children: [
|
|
49510
|
+
/* @__PURE__ */ jsx63(
|
|
49450
49511
|
"input",
|
|
49451
49512
|
{
|
|
49452
49513
|
type: "text",
|
|
@@ -49458,27 +49519,27 @@ function EntityTagsPage({
|
|
|
49458
49519
|
disabled: isAddingTag
|
|
49459
49520
|
}
|
|
49460
49521
|
),
|
|
49461
|
-
/* @__PURE__ */
|
|
49522
|
+
/* @__PURE__ */ jsx63(
|
|
49462
49523
|
"button",
|
|
49463
49524
|
{
|
|
49464
49525
|
onClick: onAddTag,
|
|
49465
49526
|
disabled: isAddingTag || !newTag.trim(),
|
|
49466
49527
|
className: "px-4 py-2 rounded-md font-medium disabled:opacity-50 disabled:cursor-not-allowed transition-colors bg-blue-600 hover:bg-blue-700 text-white",
|
|
49467
|
-
children: isAddingTag ? t12.adding : /* @__PURE__ */
|
|
49468
|
-
/* @__PURE__ */
|
|
49528
|
+
children: isAddingTag ? t12.adding : /* @__PURE__ */ jsxs54(Fragment16, { children: [
|
|
49529
|
+
/* @__PURE__ */ jsx63(PlusIcon_default, { className: "w-5 h-5 inline-block mr-1" }),
|
|
49469
49530
|
t12.addTag
|
|
49470
49531
|
] })
|
|
49471
49532
|
}
|
|
49472
49533
|
)
|
|
49473
49534
|
] }),
|
|
49474
|
-
error && /* @__PURE__ */
|
|
49475
|
-
/* @__PURE__ */
|
|
49535
|
+
error && /* @__PURE__ */ jsxs54("div", { className: "mt-3 flex items-center text-red-600 dark:text-red-400 text-sm", children: [
|
|
49536
|
+
/* @__PURE__ */ jsx63(ExclamationCircleIcon_default, { className: "w-4 h-4 mr-1" }),
|
|
49476
49537
|
error
|
|
49477
49538
|
] })
|
|
49478
49539
|
] })
|
|
49479
49540
|
] }),
|
|
49480
|
-
/* @__PURE__ */
|
|
49481
|
-
/* @__PURE__ */
|
|
49541
|
+
/* @__PURE__ */ jsxs54("div", { className: "flex", children: [
|
|
49542
|
+
/* @__PURE__ */ jsx63(
|
|
49482
49543
|
ToolbarPanels,
|
|
49483
49544
|
{
|
|
49484
49545
|
activePanel,
|
|
@@ -49488,7 +49549,7 @@ function EntityTagsPage({
|
|
|
49488
49549
|
onLineNumbersToggle
|
|
49489
49550
|
}
|
|
49490
49551
|
),
|
|
49491
|
-
/* @__PURE__ */
|
|
49552
|
+
/* @__PURE__ */ jsx63(
|
|
49492
49553
|
Toolbar2,
|
|
49493
49554
|
{
|
|
49494
49555
|
context: "simple",
|
|
@@ -49501,7 +49562,7 @@ function EntityTagsPage({
|
|
|
49501
49562
|
}
|
|
49502
49563
|
|
|
49503
49564
|
// src/features/moderate-recent/components/RecentDocumentsPage.tsx
|
|
49504
|
-
import { jsx as
|
|
49565
|
+
import { jsx as jsx64, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
49505
49566
|
function RecentDocumentsPage({
|
|
49506
49567
|
hasDocuments,
|
|
49507
49568
|
isLoading,
|
|
@@ -49516,31 +49577,31 @@ function RecentDocumentsPage({
|
|
|
49516
49577
|
Toolbar: Toolbar2
|
|
49517
49578
|
}) {
|
|
49518
49579
|
if (isLoading) {
|
|
49519
|
-
return /* @__PURE__ */
|
|
49580
|
+
return /* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsx64("p", { className: "text-gray-600 dark:text-gray-300", children: t12.loading }) });
|
|
49520
49581
|
}
|
|
49521
|
-
return /* @__PURE__ */
|
|
49522
|
-
/* @__PURE__ */
|
|
49523
|
-
/* @__PURE__ */
|
|
49524
|
-
/* @__PURE__ */
|
|
49525
|
-
/* @__PURE__ */
|
|
49582
|
+
return /* @__PURE__ */ jsxs55("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
49583
|
+
/* @__PURE__ */ jsxs55("div", { className: "flex-1 overflow-y-auto px-4 py-8", children: [
|
|
49584
|
+
/* @__PURE__ */ jsxs55("div", { className: "mb-8", children: [
|
|
49585
|
+
/* @__PURE__ */ jsx64("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: t12.pageTitle }),
|
|
49586
|
+
/* @__PURE__ */ jsx64("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: t12.pageDescription })
|
|
49526
49587
|
] }),
|
|
49527
|
-
/* @__PURE__ */
|
|
49528
|
-
/* @__PURE__ */
|
|
49529
|
-
/* @__PURE__ */
|
|
49530
|
-
/* @__PURE__ */
|
|
49531
|
-
/* @__PURE__ */
|
|
49532
|
-
/* @__PURE__ */
|
|
49588
|
+
/* @__PURE__ */ jsxs55("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow border border-gray-200 dark:border-gray-700 p-6", children: [
|
|
49589
|
+
/* @__PURE__ */ jsxs55("div", { className: "flex items-start mb-4", children: [
|
|
49590
|
+
/* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center w-10 h-10 rounded-lg bg-gray-100 dark:bg-gray-900/20 mr-3", children: /* @__PURE__ */ jsx64(ClockIcon_default, { className: "w-6 h-6 text-gray-600 dark:text-gray-400" }) }),
|
|
49591
|
+
/* @__PURE__ */ jsxs55("div", { className: "flex-1", children: [
|
|
49592
|
+
/* @__PURE__ */ jsx64("h3", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: t12.sectionTitle }),
|
|
49593
|
+
/* @__PURE__ */ jsx64("p", { className: "text-sm text-gray-600 dark:text-gray-400 mt-1", children: t12.sectionDescription })
|
|
49533
49594
|
] })
|
|
49534
49595
|
] }),
|
|
49535
|
-
/* @__PURE__ */
|
|
49536
|
-
/* @__PURE__ */
|
|
49537
|
-
/* @__PURE__ */
|
|
49538
|
-
/* @__PURE__ */
|
|
49596
|
+
/* @__PURE__ */ jsxs55("div", { className: "text-center py-12", children: [
|
|
49597
|
+
/* @__PURE__ */ jsx64("svg", { className: "w-16 h-16 text-gray-300 dark:text-gray-600 mx-auto mb-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx64("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) }),
|
|
49598
|
+
/* @__PURE__ */ jsx64("p", { className: "text-gray-500 dark:text-gray-400", children: t12.noDocuments }),
|
|
49599
|
+
/* @__PURE__ */ jsx64("p", { className: "text-sm text-gray-400 dark:text-gray-500 mt-1", children: t12.activityWillAppear })
|
|
49539
49600
|
] })
|
|
49540
49601
|
] })
|
|
49541
49602
|
] }),
|
|
49542
|
-
/* @__PURE__ */
|
|
49543
|
-
/* @__PURE__ */
|
|
49603
|
+
/* @__PURE__ */ jsxs55("div", { className: "flex", children: [
|
|
49604
|
+
/* @__PURE__ */ jsx64(
|
|
49544
49605
|
ToolbarPanels,
|
|
49545
49606
|
{
|
|
49546
49607
|
activePanel,
|
|
@@ -49550,7 +49611,7 @@ function RecentDocumentsPage({
|
|
|
49550
49611
|
onLineNumbersToggle
|
|
49551
49612
|
}
|
|
49552
49613
|
),
|
|
49553
|
-
/* @__PURE__ */
|
|
49614
|
+
/* @__PURE__ */ jsx64(
|
|
49554
49615
|
Toolbar2,
|
|
49555
49616
|
{
|
|
49556
49617
|
context: "simple",
|
|
@@ -49563,7 +49624,7 @@ function RecentDocumentsPage({
|
|
|
49563
49624
|
}
|
|
49564
49625
|
|
|
49565
49626
|
// src/features/moderate-tag-schemas/components/TagSchemasPage.tsx
|
|
49566
|
-
import { jsx as
|
|
49627
|
+
import { jsx as jsx65, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
49567
49628
|
var domainIcons = {
|
|
49568
49629
|
legal: ScaleIcon_default,
|
|
49569
49630
|
scientific: AcademicCapIcon_default,
|
|
@@ -49600,41 +49661,41 @@ function TagSchemasPage({
|
|
|
49600
49661
|
Toolbar: Toolbar2
|
|
49601
49662
|
}) {
|
|
49602
49663
|
if (isLoading) {
|
|
49603
|
-
return /* @__PURE__ */
|
|
49664
|
+
return /* @__PURE__ */ jsx65("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsx65("p", { className: "text-gray-600 dark:text-gray-300", children: t12.loading }) });
|
|
49604
49665
|
}
|
|
49605
|
-
return /* @__PURE__ */
|
|
49606
|
-
/* @__PURE__ */
|
|
49607
|
-
/* @__PURE__ */
|
|
49608
|
-
/* @__PURE__ */
|
|
49609
|
-
/* @__PURE__ */
|
|
49666
|
+
return /* @__PURE__ */ jsxs56("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
49667
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex-1 overflow-y-auto px-4 py-8", children: [
|
|
49668
|
+
/* @__PURE__ */ jsxs56("div", { className: "mb-8", children: [
|
|
49669
|
+
/* @__PURE__ */ jsx65("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: t12.pageTitle }),
|
|
49670
|
+
/* @__PURE__ */ jsx65("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: t12.pageDescription })
|
|
49610
49671
|
] }),
|
|
49611
|
-
/* @__PURE__ */
|
|
49672
|
+
/* @__PURE__ */ jsx65("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: schemas.map((schema) => {
|
|
49612
49673
|
const Icon = domainIcons[schema.domain] || LightBulbIcon_default;
|
|
49613
49674
|
const colors = domainColors[schema.domain];
|
|
49614
|
-
return /* @__PURE__ */
|
|
49675
|
+
return /* @__PURE__ */ jsxs56(
|
|
49615
49676
|
"div",
|
|
49616
49677
|
{
|
|
49617
49678
|
className: "bg-white dark:bg-gray-800 rounded-lg shadow border border-gray-200 dark:border-gray-700 p-6",
|
|
49618
49679
|
children: [
|
|
49619
|
-
/* @__PURE__ */
|
|
49620
|
-
/* @__PURE__ */
|
|
49621
|
-
/* @__PURE__ */
|
|
49622
|
-
/* @__PURE__ */
|
|
49623
|
-
/* @__PURE__ */
|
|
49624
|
-
/* @__PURE__ */
|
|
49680
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex items-start mb-4", children: [
|
|
49681
|
+
/* @__PURE__ */ jsx65("div", { className: `flex items-center justify-center w-10 h-10 rounded-lg ${colors.bg} mr-3`, children: Icon && /* @__PURE__ */ jsx65(Icon, { className: `w-6 h-6 ${colors.text}` }) }),
|
|
49682
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex-1", children: [
|
|
49683
|
+
/* @__PURE__ */ jsx65("h3", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: schema.name }),
|
|
49684
|
+
/* @__PURE__ */ jsx65("p", { className: "text-sm text-gray-600 dark:text-gray-400 mt-1", children: schema.description }),
|
|
49685
|
+
/* @__PURE__ */ jsx65("span", { className: `inline-block mt-2 px-2 py-1 text-xs rounded-md ${colors.bg} ${colors.text} border ${colors.border}`, children: schema.domain })
|
|
49625
49686
|
] })
|
|
49626
49687
|
] }),
|
|
49627
|
-
/* @__PURE__ */
|
|
49628
|
-
/* @__PURE__ */
|
|
49629
|
-
schema.tags.map((tag) => /* @__PURE__ */
|
|
49688
|
+
/* @__PURE__ */ jsxs56("div", { className: "space-y-3 mt-4", children: [
|
|
49689
|
+
/* @__PURE__ */ jsx65("h4", { className: "text-sm font-semibold text-gray-700 dark:text-gray-300", children: t12.categories }),
|
|
49690
|
+
schema.tags.map((tag) => /* @__PURE__ */ jsxs56(
|
|
49630
49691
|
"div",
|
|
49631
49692
|
{
|
|
49632
49693
|
className: "bg-gray-50 dark:bg-gray-900/50 rounded-lg p-3 border border-gray-200 dark:border-gray-700",
|
|
49633
49694
|
children: [
|
|
49634
|
-
/* @__PURE__ */
|
|
49635
|
-
/* @__PURE__ */
|
|
49636
|
-
/* @__PURE__ */
|
|
49637
|
-
tag.examples.slice(0, 2).map((example, idx) => /* @__PURE__ */
|
|
49695
|
+
/* @__PURE__ */ jsx65("div", { className: "font-medium text-gray-900 dark:text-white text-sm mb-1", children: tag.name }),
|
|
49696
|
+
/* @__PURE__ */ jsx65("div", { className: "text-xs text-gray-600 dark:text-gray-400 mb-2", children: tag.description }),
|
|
49697
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex flex-wrap gap-1", children: [
|
|
49698
|
+
tag.examples.slice(0, 2).map((example, idx) => /* @__PURE__ */ jsx65(
|
|
49638
49699
|
"span",
|
|
49639
49700
|
{
|
|
49640
49701
|
className: "inline-block px-2 py-0.5 text-xs rounded bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300",
|
|
@@ -49642,7 +49703,7 @@ function TagSchemasPage({
|
|
|
49642
49703
|
},
|
|
49643
49704
|
idx
|
|
49644
49705
|
)),
|
|
49645
|
-
tag.examples.length > 2 && /* @__PURE__ */
|
|
49706
|
+
tag.examples.length > 2 && /* @__PURE__ */ jsxs56("span", { className: "inline-block px-2 py-0.5 text-xs text-gray-500 dark:text-gray-400", children: [
|
|
49646
49707
|
"+",
|
|
49647
49708
|
tag.examples.length - 2,
|
|
49648
49709
|
" more"
|
|
@@ -49659,8 +49720,8 @@ function TagSchemasPage({
|
|
|
49659
49720
|
);
|
|
49660
49721
|
}) })
|
|
49661
49722
|
] }),
|
|
49662
|
-
/* @__PURE__ */
|
|
49663
|
-
/* @__PURE__ */
|
|
49723
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex", children: [
|
|
49724
|
+
/* @__PURE__ */ jsx65(
|
|
49664
49725
|
ToolbarPanels,
|
|
49665
49726
|
{
|
|
49666
49727
|
activePanel,
|
|
@@ -49670,7 +49731,7 @@ function TagSchemasPage({
|
|
|
49670
49731
|
onLineNumbersToggle
|
|
49671
49732
|
}
|
|
49672
49733
|
),
|
|
49673
|
-
/* @__PURE__ */
|
|
49734
|
+
/* @__PURE__ */ jsx65(
|
|
49674
49735
|
Toolbar2,
|
|
49675
49736
|
{
|
|
49676
49737
|
context: "simple",
|
|
@@ -49685,7 +49746,7 @@ function TagSchemasPage({
|
|
|
49685
49746
|
// src/features/resource-compose/components/ResourceComposePage.tsx
|
|
49686
49747
|
import { useState as useState32, useEffect as useEffect31 } from "react";
|
|
49687
49748
|
import { isImageMimeType, LOCALES } from "@semiont/api-client";
|
|
49688
|
-
import { jsx as
|
|
49749
|
+
import { jsx as jsx66, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
49689
49750
|
function ResourceComposePage({
|
|
49690
49751
|
mode,
|
|
49691
49752
|
cloneData,
|
|
@@ -49791,17 +49852,17 @@ function ResourceComposePage({
|
|
|
49791
49852
|
};
|
|
49792
49853
|
const isClone = mode === "clone";
|
|
49793
49854
|
const isReferenceCompletion = mode === "reference";
|
|
49794
|
-
return /* @__PURE__ */
|
|
49795
|
-
/* @__PURE__ */
|
|
49796
|
-
/* @__PURE__ */
|
|
49797
|
-
/* @__PURE__ */
|
|
49798
|
-
(isClone || isReferenceCompletion) && /* @__PURE__ */
|
|
49799
|
-
isReferenceCompletion && /* @__PURE__ */
|
|
49855
|
+
return /* @__PURE__ */ jsxs57("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
49856
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex-1 overflow-y-auto px-4 py-8 bg-white dark:bg-gray-900", children: [
|
|
49857
|
+
/* @__PURE__ */ jsxs57("div", { className: "mb-8", children: [
|
|
49858
|
+
/* @__PURE__ */ jsx66("h1", { className: "text-2xl font-bold text-black dark:text-white", children: isClone ? t12.titleEditClone : isReferenceCompletion ? t12.titleCompleteReference : t12.title }),
|
|
49859
|
+
(isClone || isReferenceCompletion) && /* @__PURE__ */ jsx66("p", { className: "mt-2 text-gray-600 dark:text-gray-400", children: isClone ? t12.subtitleClone : t12.subtitleReference }),
|
|
49860
|
+
isReferenceCompletion && /* @__PURE__ */ jsx66("div", { className: "mt-3 p-3 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-700 rounded-lg", children: /* @__PURE__ */ jsx66("p", { className: "text-sm text-blue-700 dark:text-blue-300", children: t12.linkedNoticePrefix }) })
|
|
49800
49861
|
] }),
|
|
49801
|
-
/* @__PURE__ */
|
|
49802
|
-
/* @__PURE__ */
|
|
49803
|
-
/* @__PURE__ */
|
|
49804
|
-
/* @__PURE__ */
|
|
49862
|
+
/* @__PURE__ */ jsx66("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow border border-gray-200 dark:border-gray-700 p-6", children: /* @__PURE__ */ jsxs57("form", { onSubmit: handleSaveResource, className: "space-y-4", children: [
|
|
49863
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex items-center gap-4", children: [
|
|
49864
|
+
/* @__PURE__ */ jsx66("label", { htmlFor: "docName", className: "text-sm font-medium text-gray-700 dark:text-gray-300 w-32 shrink-0", children: t12.resourceName }),
|
|
49865
|
+
/* @__PURE__ */ jsx66(
|
|
49805
49866
|
"input",
|
|
49806
49867
|
{
|
|
49807
49868
|
id: "docName",
|
|
@@ -49815,9 +49876,9 @@ function ResourceComposePage({
|
|
|
49815
49876
|
}
|
|
49816
49877
|
)
|
|
49817
49878
|
] }),
|
|
49818
|
-
(!isReferenceCompletion || selectedEntityTypes.length === 0) && /* @__PURE__ */
|
|
49819
|
-
/* @__PURE__ */
|
|
49820
|
-
/* @__PURE__ */
|
|
49879
|
+
(!isReferenceCompletion || selectedEntityTypes.length === 0) && /* @__PURE__ */ jsxs57("div", { className: "flex gap-4", children: [
|
|
49880
|
+
/* @__PURE__ */ jsx66("div", { className: "text-sm font-medium text-gray-700 dark:text-gray-300 w-32 shrink-0 pt-2", children: t12.entityTypes }),
|
|
49881
|
+
/* @__PURE__ */ jsx66(
|
|
49821
49882
|
"div",
|
|
49822
49883
|
{
|
|
49823
49884
|
className: "flex flex-wrap gap-2 mb-2",
|
|
@@ -49825,7 +49886,7 @@ function ResourceComposePage({
|
|
|
49825
49886
|
"aria-describedby": "entity-types-description",
|
|
49826
49887
|
children: availableEntityTypes.map((type) => {
|
|
49827
49888
|
const isSelected = selectedEntityTypes.includes(type);
|
|
49828
|
-
return /* @__PURE__ */
|
|
49889
|
+
return /* @__PURE__ */ jsx66(
|
|
49829
49890
|
"button",
|
|
49830
49891
|
{
|
|
49831
49892
|
type: "button",
|
|
@@ -49845,7 +49906,7 @@ function ResourceComposePage({
|
|
|
49845
49906
|
})
|
|
49846
49907
|
}
|
|
49847
49908
|
),
|
|
49848
|
-
selectedEntityTypes.length > 0 && /* @__PURE__ */
|
|
49909
|
+
selectedEntityTypes.length > 0 && /* @__PURE__ */ jsxs57(
|
|
49849
49910
|
"div",
|
|
49850
49911
|
{
|
|
49851
49912
|
className: "sr-only",
|
|
@@ -49861,9 +49922,9 @@ function ResourceComposePage({
|
|
|
49861
49922
|
}
|
|
49862
49923
|
)
|
|
49863
49924
|
] }),
|
|
49864
|
-
isReferenceCompletion && selectedEntityTypes.length > 0 && /* @__PURE__ */
|
|
49865
|
-
/* @__PURE__ */
|
|
49866
|
-
/* @__PURE__ */
|
|
49925
|
+
isReferenceCompletion && selectedEntityTypes.length > 0 && /* @__PURE__ */ jsxs57("div", { role: "region", "aria-labelledby": "selected-entity-types-label", children: [
|
|
49926
|
+
/* @__PURE__ */ jsx66("h3", { id: "selected-entity-types-label", className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2", children: t12.entityTypes }),
|
|
49927
|
+
/* @__PURE__ */ jsx66("div", { className: "flex flex-wrap gap-2", role: "list", children: selectedEntityTypes.map((type) => /* @__PURE__ */ jsx66(
|
|
49867
49928
|
"span",
|
|
49868
49929
|
{
|
|
49869
49930
|
role: "listitem",
|
|
@@ -49873,11 +49934,11 @@ function ResourceComposePage({
|
|
|
49873
49934
|
},
|
|
49874
49935
|
type
|
|
49875
49936
|
)) }),
|
|
49876
|
-
/* @__PURE__ */
|
|
49937
|
+
/* @__PURE__ */ jsx66("p", { className: "mt-2 text-xs text-gray-500 dark:text-gray-400", id: "reference-entity-types-description", children: "These entity types were selected when creating the reference" })
|
|
49877
49938
|
] }),
|
|
49878
|
-
/* @__PURE__ */
|
|
49879
|
-
/* @__PURE__ */
|
|
49880
|
-
/* @__PURE__ */
|
|
49939
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex items-center gap-4", children: [
|
|
49940
|
+
/* @__PURE__ */ jsx66("label", { htmlFor: "language-select", className: "text-sm font-medium text-gray-700 dark:text-gray-300 w-32 shrink-0", children: t12.language }),
|
|
49941
|
+
/* @__PURE__ */ jsx66(
|
|
49881
49942
|
"select",
|
|
49882
49943
|
{
|
|
49883
49944
|
id: "language-select",
|
|
@@ -49885,14 +49946,14 @@ function ResourceComposePage({
|
|
|
49885
49946
|
onChange: (e6) => setSelectedLanguage(e6.target.value),
|
|
49886
49947
|
disabled: isCreating,
|
|
49887
49948
|
className: "px-3 py-2 rounded-lg text-sm border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50",
|
|
49888
|
-
children: LOCALES.map((lang) => /* @__PURE__ */
|
|
49949
|
+
children: LOCALES.map((lang) => /* @__PURE__ */ jsx66("option", { value: lang.code, children: lang.nativeName }, lang.code))
|
|
49889
49950
|
}
|
|
49890
49951
|
)
|
|
49891
49952
|
] }),
|
|
49892
|
-
!isClone && !isReferenceCompletion && /* @__PURE__ */
|
|
49893
|
-
/* @__PURE__ */
|
|
49894
|
-
/* @__PURE__ */
|
|
49895
|
-
/* @__PURE__ */
|
|
49953
|
+
!isClone && !isReferenceCompletion && /* @__PURE__ */ jsxs57("div", { children: [
|
|
49954
|
+
/* @__PURE__ */ jsx66("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-3", children: t12.contentSource }),
|
|
49955
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex gap-4", children: [
|
|
49956
|
+
/* @__PURE__ */ jsxs57(
|
|
49896
49957
|
"button",
|
|
49897
49958
|
{
|
|
49898
49959
|
type: "button",
|
|
@@ -49900,15 +49961,15 @@ function ResourceComposePage({
|
|
|
49900
49961
|
disabled: isCreating,
|
|
49901
49962
|
className: `flex-1 p-3 rounded-lg border-2 transition-colors ${inputMethod === "upload" ? "border-blue-500 bg-blue-50 dark:bg-blue-900/20" : "border-gray-300 dark:border-gray-600 hover:border-blue-300 dark:hover:border-blue-700"} ${isCreating ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
49902
49963
|
children: [
|
|
49903
|
-
/* @__PURE__ */
|
|
49904
|
-
/* @__PURE__ */
|
|
49905
|
-
/* @__PURE__ */
|
|
49964
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex items-center justify-center gap-2 mb-1", children: [
|
|
49965
|
+
/* @__PURE__ */ jsx66("span", { className: "text-xl", children: "\u{1F4CE}" }),
|
|
49966
|
+
/* @__PURE__ */ jsx66("span", { className: "font-medium text-gray-900 dark:text-white", children: t12.uploadFile })
|
|
49906
49967
|
] }),
|
|
49907
|
-
/* @__PURE__ */
|
|
49968
|
+
/* @__PURE__ */ jsx66("div", { className: "text-xs text-gray-600 dark:text-gray-400 text-center", children: t12.uploadFileDescription })
|
|
49908
49969
|
]
|
|
49909
49970
|
}
|
|
49910
49971
|
),
|
|
49911
|
-
/* @__PURE__ */
|
|
49972
|
+
/* @__PURE__ */ jsxs57(
|
|
49912
49973
|
"button",
|
|
49913
49974
|
{
|
|
49914
49975
|
type: "button",
|
|
@@ -49916,20 +49977,20 @@ function ResourceComposePage({
|
|
|
49916
49977
|
disabled: isCreating,
|
|
49917
49978
|
className: `flex-1 p-3 rounded-lg border-2 transition-colors ${inputMethod === "write" ? "border-blue-500 bg-blue-50 dark:bg-blue-900/20" : "border-gray-300 dark:border-gray-600 hover:border-blue-300 dark:hover:border-blue-700"} ${isCreating ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
49918
49979
|
children: [
|
|
49919
|
-
/* @__PURE__ */
|
|
49920
|
-
/* @__PURE__ */
|
|
49921
|
-
/* @__PURE__ */
|
|
49980
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex items-center justify-center gap-2 mb-1", children: [
|
|
49981
|
+
/* @__PURE__ */ jsx66("span", { className: "text-xl", children: "\u270D\uFE0F" }),
|
|
49982
|
+
/* @__PURE__ */ jsx66("span", { className: "font-medium text-gray-900 dark:text-white", children: t12.writeContent })
|
|
49922
49983
|
] }),
|
|
49923
|
-
/* @__PURE__ */
|
|
49984
|
+
/* @__PURE__ */ jsx66("div", { className: "text-xs text-gray-600 dark:text-gray-400 text-center", children: t12.writeContentDescription })
|
|
49924
49985
|
]
|
|
49925
49986
|
}
|
|
49926
49987
|
)
|
|
49927
49988
|
] })
|
|
49928
49989
|
] }),
|
|
49929
|
-
!isClone && !isReferenceCompletion && inputMethod === "upload" && /* @__PURE__ */
|
|
49930
|
-
/* @__PURE__ */
|
|
49931
|
-
/* @__PURE__ */
|
|
49932
|
-
/* @__PURE__ */
|
|
49990
|
+
!isClone && !isReferenceCompletion && inputMethod === "upload" && /* @__PURE__ */ jsxs57("div", { className: "space-y-4", children: [
|
|
49991
|
+
/* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsxs57("div", { className: "flex items-center gap-4", children: [
|
|
49992
|
+
/* @__PURE__ */ jsx66("label", { className: "flex-1 cursor-pointer", children: /* @__PURE__ */ jsxs57("div", { className: "border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg p-6 text-center hover:border-blue-500 dark:hover:border-blue-400 transition-colors", children: [
|
|
49993
|
+
/* @__PURE__ */ jsx66(
|
|
49933
49994
|
"input",
|
|
49934
49995
|
{
|
|
49935
49996
|
type: "file",
|
|
@@ -49939,10 +50000,10 @@ function ResourceComposePage({
|
|
|
49939
50000
|
disabled: isCreating
|
|
49940
50001
|
}
|
|
49941
50002
|
),
|
|
49942
|
-
/* @__PURE__ */
|
|
49943
|
-
/* @__PURE__ */
|
|
50003
|
+
/* @__PURE__ */ jsx66("p", { className: "text-sm text-gray-600 dark:text-gray-400", children: uploadedFile ? uploadedFile.name : t12.dropFileOrClick }),
|
|
50004
|
+
/* @__PURE__ */ jsx66("p", { className: "text-xs text-gray-500 dark:text-gray-500 mt-1", children: t12.supportedFormats })
|
|
49944
50005
|
] }) }),
|
|
49945
|
-
uploadedFile && /* @__PURE__ */
|
|
50006
|
+
uploadedFile && /* @__PURE__ */ jsx66(
|
|
49946
50007
|
"button",
|
|
49947
50008
|
{
|
|
49948
50009
|
type: "button",
|
|
@@ -49957,17 +50018,17 @@ function ResourceComposePage({
|
|
|
49957
50018
|
}
|
|
49958
50019
|
)
|
|
49959
50020
|
] }) }),
|
|
49960
|
-
uploadedFile && /* @__PURE__ */
|
|
49961
|
-
/* @__PURE__ */
|
|
50021
|
+
uploadedFile && /* @__PURE__ */ jsxs57("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
50022
|
+
/* @__PURE__ */ jsxs57("span", { className: "text-gray-600 dark:text-gray-400", children: [
|
|
49962
50023
|
t12.mediaType,
|
|
49963
50024
|
":"
|
|
49964
50025
|
] }),
|
|
49965
|
-
/* @__PURE__ */
|
|
49966
|
-
/* @__PURE__ */
|
|
50026
|
+
/* @__PURE__ */ jsx66("code", { className: "px-2 py-1 bg-gray-100 dark:bg-gray-800 rounded text-gray-900 dark:text-gray-100", children: fileMimeType }),
|
|
50027
|
+
/* @__PURE__ */ jsx66("span", { className: "text-gray-500", title: t12.autoDetected, children: "\u{1F512}" })
|
|
49967
50028
|
] }),
|
|
49968
|
-
uploadedFile && filePreviewUrl && isImageMimeType(fileMimeType) && /* @__PURE__ */
|
|
49969
|
-
/* @__PURE__ */
|
|
49970
|
-
/* @__PURE__ */
|
|
50029
|
+
uploadedFile && filePreviewUrl && isImageMimeType(fileMimeType) && /* @__PURE__ */ jsxs57("div", { className: "border border-gray-300 dark:border-gray-600 rounded-lg p-4", children: [
|
|
50030
|
+
/* @__PURE__ */ jsx66("p", { className: "text-sm font-medium text-gray-700 dark:text-gray-300 mb-2", children: "Preview:" }),
|
|
50031
|
+
/* @__PURE__ */ jsx66("div", { className: "max-h-96 overflow-hidden rounded", children: /* @__PURE__ */ jsx66(
|
|
49971
50032
|
"img",
|
|
49972
50033
|
{
|
|
49973
50034
|
src: filePreviewUrl,
|
|
@@ -49977,10 +50038,10 @@ function ResourceComposePage({
|
|
|
49977
50038
|
) })
|
|
49978
50039
|
] })
|
|
49979
50040
|
] }),
|
|
49980
|
-
(isClone || isReferenceCompletion || inputMethod === "write") && /* @__PURE__ */
|
|
49981
|
-
!isClone && !isReferenceCompletion && /* @__PURE__ */
|
|
49982
|
-
/* @__PURE__ */
|
|
49983
|
-
/* @__PURE__ */
|
|
50041
|
+
(isClone || isReferenceCompletion || inputMethod === "write") && /* @__PURE__ */ jsxs57("div", { className: "space-y-4", children: [
|
|
50042
|
+
!isClone && !isReferenceCompletion && /* @__PURE__ */ jsxs57("div", { className: "flex items-center gap-4", children: [
|
|
50043
|
+
/* @__PURE__ */ jsx66("label", { htmlFor: "format-select", className: "text-sm font-medium text-gray-700 dark:text-gray-300 w-32 shrink-0", children: t12.format }),
|
|
50044
|
+
/* @__PURE__ */ jsxs57(
|
|
49984
50045
|
"select",
|
|
49985
50046
|
{
|
|
49986
50047
|
id: "format-select",
|
|
@@ -49989,16 +50050,16 @@ function ResourceComposePage({
|
|
|
49989
50050
|
disabled: isCreating,
|
|
49990
50051
|
className: "px-3 py-2 rounded-lg text-sm border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50",
|
|
49991
50052
|
children: [
|
|
49992
|
-
/* @__PURE__ */
|
|
49993
|
-
/* @__PURE__ */
|
|
49994
|
-
/* @__PURE__ */
|
|
50053
|
+
/* @__PURE__ */ jsx66("option", { value: "text/markdown", children: "Markdown (text/markdown)" }),
|
|
50054
|
+
/* @__PURE__ */ jsx66("option", { value: "text/plain", children: "Plain Text (text/plain)" }),
|
|
50055
|
+
/* @__PURE__ */ jsx66("option", { value: "text/html", children: "HTML (text/html)" })
|
|
49995
50056
|
]
|
|
49996
50057
|
}
|
|
49997
50058
|
)
|
|
49998
50059
|
] }),
|
|
49999
|
-
/* @__PURE__ */
|
|
50000
|
-
/* @__PURE__ */
|
|
50001
|
-
/* @__PURE__ */
|
|
50060
|
+
/* @__PURE__ */ jsxs57("div", { children: [
|
|
50061
|
+
/* @__PURE__ */ jsx66("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2", children: isClone ? t12.resourceContent : t12.content }),
|
|
50062
|
+
/* @__PURE__ */ jsx66("div", { className: "border border-gray-300 dark:border-gray-600 rounded-lg overflow-hidden", children: /* @__PURE__ */ jsx66(
|
|
50002
50063
|
CodeMirrorRenderer,
|
|
50003
50064
|
{
|
|
50004
50065
|
content: newResourceContent,
|
|
@@ -50010,9 +50071,9 @@ function ResourceComposePage({
|
|
|
50010
50071
|
}
|
|
50011
50072
|
) })
|
|
50012
50073
|
] }),
|
|
50013
|
-
!isClone && !isReferenceCompletion && /* @__PURE__ */
|
|
50014
|
-
/* @__PURE__ */
|
|
50015
|
-
/* @__PURE__ */
|
|
50074
|
+
!isClone && !isReferenceCompletion && /* @__PURE__ */ jsxs57("div", { className: "flex items-center gap-4", children: [
|
|
50075
|
+
/* @__PURE__ */ jsx66("label", { htmlFor: "charset-select", className: "text-sm font-medium text-gray-700 dark:text-gray-300 w-32 shrink-0", children: t12.encoding }),
|
|
50076
|
+
/* @__PURE__ */ jsxs57(
|
|
50016
50077
|
"select",
|
|
50017
50078
|
{
|
|
50018
50079
|
id: "charset-select",
|
|
@@ -50021,18 +50082,18 @@ function ResourceComposePage({
|
|
|
50021
50082
|
disabled: isCreating,
|
|
50022
50083
|
className: "px-3 py-2 rounded-lg text-sm border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50",
|
|
50023
50084
|
children: [
|
|
50024
|
-
/* @__PURE__ */
|
|
50025
|
-
/* @__PURE__ */
|
|
50026
|
-
/* @__PURE__ */
|
|
50027
|
-
/* @__PURE__ */
|
|
50028
|
-
/* @__PURE__ */
|
|
50085
|
+
/* @__PURE__ */ jsx66("option", { value: "", children: "UTF-8 (default)" }),
|
|
50086
|
+
/* @__PURE__ */ jsx66("option", { value: "iso-8859-1", children: "ISO-8859-1 (Latin-1)" }),
|
|
50087
|
+
/* @__PURE__ */ jsx66("option", { value: "windows-1252", children: "Windows-1252" }),
|
|
50088
|
+
/* @__PURE__ */ jsx66("option", { value: "ascii", children: "ASCII" }),
|
|
50089
|
+
/* @__PURE__ */ jsx66("option", { value: "utf-16le", children: "UTF-16LE" })
|
|
50029
50090
|
]
|
|
50030
50091
|
}
|
|
50031
50092
|
)
|
|
50032
50093
|
] })
|
|
50033
50094
|
] }),
|
|
50034
|
-
isClone && /* @__PURE__ */
|
|
50035
|
-
/* @__PURE__ */
|
|
50095
|
+
isClone && /* @__PURE__ */ jsxs57("div", { className: "flex items-center", children: [
|
|
50096
|
+
/* @__PURE__ */ jsx66(
|
|
50036
50097
|
"input",
|
|
50037
50098
|
{
|
|
50038
50099
|
id: "archiveOriginal",
|
|
@@ -50043,10 +50104,10 @@ function ResourceComposePage({
|
|
|
50043
50104
|
disabled: isCreating
|
|
50044
50105
|
}
|
|
50045
50106
|
),
|
|
50046
|
-
/* @__PURE__ */
|
|
50107
|
+
/* @__PURE__ */ jsx66("label", { htmlFor: "archiveOriginal", className: "ml-2 text-sm text-gray-700 dark:text-gray-300", children: t12.archiveOriginal })
|
|
50047
50108
|
] }),
|
|
50048
|
-
/* @__PURE__ */
|
|
50049
|
-
/* @__PURE__ */
|
|
50109
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex gap-4 justify-end", children: [
|
|
50110
|
+
/* @__PURE__ */ jsx66(
|
|
50050
50111
|
"button",
|
|
50051
50112
|
{
|
|
50052
50113
|
type: "button",
|
|
@@ -50056,7 +50117,7 @@ function ResourceComposePage({
|
|
|
50056
50117
|
children: t12.cancel
|
|
50057
50118
|
}
|
|
50058
50119
|
),
|
|
50059
|
-
/* @__PURE__ */
|
|
50120
|
+
/* @__PURE__ */ jsx66(
|
|
50060
50121
|
"button",
|
|
50061
50122
|
{
|
|
50062
50123
|
type: "submit",
|
|
@@ -50068,8 +50129,8 @@ function ResourceComposePage({
|
|
|
50068
50129
|
] })
|
|
50069
50130
|
] }) })
|
|
50070
50131
|
] }),
|
|
50071
|
-
/* @__PURE__ */
|
|
50072
|
-
/* @__PURE__ */
|
|
50132
|
+
/* @__PURE__ */ jsxs57("div", { className: "flex", children: [
|
|
50133
|
+
/* @__PURE__ */ jsx66(
|
|
50073
50134
|
ToolbarPanels,
|
|
50074
50135
|
{
|
|
50075
50136
|
activePanel,
|
|
@@ -50079,7 +50140,7 @@ function ResourceComposePage({
|
|
|
50079
50140
|
onLineNumbersToggle
|
|
50080
50141
|
}
|
|
50081
50142
|
),
|
|
50082
|
-
/* @__PURE__ */
|
|
50143
|
+
/* @__PURE__ */ jsx66(
|
|
50083
50144
|
Toolbar2,
|
|
50084
50145
|
{
|
|
50085
50146
|
context: "simple",
|
|
@@ -50097,14 +50158,14 @@ import { getResourceId } from "@semiont/api-client";
|
|
|
50097
50158
|
|
|
50098
50159
|
// src/features/resource-discovery/components/ResourceCard.tsx
|
|
50099
50160
|
import React55 from "react";
|
|
50100
|
-
import { jsx as
|
|
50161
|
+
import { jsx as jsx67, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
50101
50162
|
var ResourceCard = React55.memo(({
|
|
50102
50163
|
resource,
|
|
50103
50164
|
onOpen,
|
|
50104
50165
|
tabIndex = 0,
|
|
50105
50166
|
archivedLabel,
|
|
50106
50167
|
createdLabel
|
|
50107
|
-
}) => /* @__PURE__ */
|
|
50168
|
+
}) => /* @__PURE__ */ jsxs58(
|
|
50108
50169
|
"div",
|
|
50109
50170
|
{
|
|
50110
50171
|
onClick: () => onOpen(resource),
|
|
@@ -50119,18 +50180,18 @@ var ResourceCard = React55.memo(({
|
|
|
50119
50180
|
"aria-label": `Open resource: ${resource.name}`,
|
|
50120
50181
|
className: "p-4 border border-gray-200 dark:border-gray-700 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700/50 cursor-pointer transition-all hover:shadow-md group focus:outline-none focus:ring-2 focus:ring-cyan-500/50 dark:focus:ring-cyan-400/50",
|
|
50121
50182
|
children: [
|
|
50122
|
-
/* @__PURE__ */
|
|
50123
|
-
/* @__PURE__ */
|
|
50124
|
-
resource.archived && /* @__PURE__ */
|
|
50183
|
+
/* @__PURE__ */ jsxs58("div", { className: "flex justify-between items-start mb-2", children: [
|
|
50184
|
+
/* @__PURE__ */ jsx67("h4", { className: "font-medium text-gray-900 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors", children: resource.name }),
|
|
50185
|
+
resource.archived && /* @__PURE__ */ jsx67("span", { className: "px-2 py-1 text-xs bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400 rounded", children: archivedLabel })
|
|
50125
50186
|
] }),
|
|
50126
|
-
/* @__PURE__ */
|
|
50127
|
-
/* @__PURE__ */
|
|
50187
|
+
/* @__PURE__ */ jsxs58("div", { className: "flex items-center justify-between text-xs text-gray-500 dark:text-gray-500", children: [
|
|
50188
|
+
/* @__PURE__ */ jsxs58("span", { children: [
|
|
50128
50189
|
createdLabel,
|
|
50129
50190
|
" ",
|
|
50130
50191
|
resource.dateCreated ? new Date(resource.dateCreated).toLocaleDateString() : "N/A"
|
|
50131
50192
|
] }),
|
|
50132
|
-
resource.entityTypes && resource.entityTypes.length > 0 && /* @__PURE__ */
|
|
50133
|
-
resource.entityTypes.slice(0, 2).map((type) => /* @__PURE__ */
|
|
50193
|
+
resource.entityTypes && resource.entityTypes.length > 0 && /* @__PURE__ */ jsxs58("div", { className: "flex gap-1", children: [
|
|
50194
|
+
resource.entityTypes.slice(0, 2).map((type) => /* @__PURE__ */ jsx67(
|
|
50134
50195
|
"span",
|
|
50135
50196
|
{
|
|
50136
50197
|
className: "px-2 py-0.5 bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded",
|
|
@@ -50138,7 +50199,7 @@ var ResourceCard = React55.memo(({
|
|
|
50138
50199
|
},
|
|
50139
50200
|
type
|
|
50140
50201
|
)),
|
|
50141
|
-
resource.entityTypes.length > 2 && /* @__PURE__ */
|
|
50202
|
+
resource.entityTypes.length > 2 && /* @__PURE__ */ jsxs58("span", { className: "px-2 py-0.5 bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400 rounded", children: [
|
|
50142
50203
|
"+",
|
|
50143
50204
|
resource.entityTypes.length - 2
|
|
50144
50205
|
] })
|
|
@@ -50150,7 +50211,7 @@ var ResourceCard = React55.memo(({
|
|
|
50150
50211
|
ResourceCard.displayName = "ResourceCard";
|
|
50151
50212
|
|
|
50152
50213
|
// src/features/resource-discovery/components/ResourceDiscoveryPage.tsx
|
|
50153
|
-
import { jsx as
|
|
50214
|
+
import { jsx as jsx68, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
50154
50215
|
function ResourceDiscoveryPage({
|
|
50155
50216
|
recentDocuments,
|
|
50156
50217
|
searchDocuments,
|
|
@@ -50203,18 +50264,18 @@ function ResourceDiscoveryPage({
|
|
|
50203
50264
|
e6.preventDefault();
|
|
50204
50265
|
}, []);
|
|
50205
50266
|
if (isLoadingRecent) {
|
|
50206
|
-
return /* @__PURE__ */
|
|
50267
|
+
return /* @__PURE__ */ jsx68("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsx68("p", { className: "text-gray-600 dark:text-gray-300", children: t12.loadingKnowledgeBase }) });
|
|
50207
50268
|
}
|
|
50208
50269
|
const showNoResultsWarning = hasSearchQuery && !hasSearchResults && !isSearching;
|
|
50209
|
-
return /* @__PURE__ */
|
|
50210
|
-
/* @__PURE__ */
|
|
50211
|
-
/* @__PURE__ */
|
|
50212
|
-
/* @__PURE__ */
|
|
50213
|
-
/* @__PURE__ */
|
|
50270
|
+
return /* @__PURE__ */ jsxs59("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
50271
|
+
/* @__PURE__ */ jsxs59("div", { className: "flex-1 overflow-y-auto px-4 py-8 space-y-6", children: [
|
|
50272
|
+
/* @__PURE__ */ jsxs59("div", { className: "mb-8", children: [
|
|
50273
|
+
/* @__PURE__ */ jsx68("h1", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-2", children: t12.title }),
|
|
50274
|
+
/* @__PURE__ */ jsx68("p", { className: "text-gray-600 dark:text-gray-400", children: t12.subtitle })
|
|
50214
50275
|
] }),
|
|
50215
|
-
/* @__PURE__ */
|
|
50216
|
-
/* @__PURE__ */
|
|
50217
|
-
/* @__PURE__ */
|
|
50276
|
+
/* @__PURE__ */ jsxs59("div", { className: "bg-white dark:bg-gray-800 rounded-lg shadow border border-gray-200 dark:border-gray-700 p-6", children: [
|
|
50277
|
+
/* @__PURE__ */ jsx68("form", { onSubmit: handleSearchSubmit, className: "mb-6", children: /* @__PURE__ */ jsxs59("div", { className: "flex gap-3", children: [
|
|
50278
|
+
/* @__PURE__ */ jsx68(
|
|
50218
50279
|
"input",
|
|
50219
50280
|
{
|
|
50220
50281
|
type: "text",
|
|
@@ -50225,7 +50286,7 @@ function ResourceDiscoveryPage({
|
|
|
50225
50286
|
disabled: isSearching
|
|
50226
50287
|
}
|
|
50227
50288
|
),
|
|
50228
|
-
/* @__PURE__ */
|
|
50289
|
+
/* @__PURE__ */ jsx68(
|
|
50229
50290
|
"button",
|
|
50230
50291
|
{
|
|
50231
50292
|
type: "submit",
|
|
@@ -50235,9 +50296,9 @@ function ResourceDiscoveryPage({
|
|
|
50235
50296
|
}
|
|
50236
50297
|
)
|
|
50237
50298
|
] }) }),
|
|
50238
|
-
entityTypes.length > 0 && /* @__PURE__ */
|
|
50239
|
-
/* @__PURE__ */
|
|
50240
|
-
/* @__PURE__ */
|
|
50299
|
+
entityTypes.length > 0 && /* @__PURE__ */ jsxs59("div", { className: "mb-6", children: [
|
|
50300
|
+
/* @__PURE__ */ jsx68("h3", { className: "text-sm font-medium text-gray-700 dark:text-gray-300 mb-3", children: t12.filterByEntityType }),
|
|
50301
|
+
/* @__PURE__ */ jsxs59(
|
|
50241
50302
|
"div",
|
|
50242
50303
|
{
|
|
50243
50304
|
ref: entityFilterRoving.containerRef,
|
|
@@ -50246,7 +50307,7 @@ function ResourceDiscoveryPage({
|
|
|
50246
50307
|
role: "group",
|
|
50247
50308
|
"aria-label": "Entity type filters",
|
|
50248
50309
|
children: [
|
|
50249
|
-
/* @__PURE__ */
|
|
50310
|
+
/* @__PURE__ */ jsx68(
|
|
50250
50311
|
"button",
|
|
50251
50312
|
{
|
|
50252
50313
|
onClick: () => handleEntityTypeFilter(""),
|
|
@@ -50256,7 +50317,7 @@ function ResourceDiscoveryPage({
|
|
|
50256
50317
|
children: t12.all
|
|
50257
50318
|
}
|
|
50258
50319
|
),
|
|
50259
|
-
entityTypes.map((type) => /* @__PURE__ */
|
|
50320
|
+
entityTypes.map((type) => /* @__PURE__ */ jsx68(
|
|
50260
50321
|
"button",
|
|
50261
50322
|
{
|
|
50262
50323
|
onClick: () => handleEntityTypeFilter(type),
|
|
@@ -50271,10 +50332,10 @@ function ResourceDiscoveryPage({
|
|
|
50271
50332
|
}
|
|
50272
50333
|
)
|
|
50273
50334
|
] }),
|
|
50274
|
-
/* @__PURE__ */
|
|
50275
|
-
/* @__PURE__ */
|
|
50276
|
-
showNoResultsWarning && /* @__PURE__ */
|
|
50277
|
-
filteredResources.length > 0 ? /* @__PURE__ */
|
|
50335
|
+
/* @__PURE__ */ jsxs59("div", { children: [
|
|
50336
|
+
/* @__PURE__ */ jsx68("h3", { className: "text-sm font-medium text-gray-700 dark:text-gray-300 mb-3", children: showNoResultsWarning ? t12.recentResources : hasSearchResults ? t12.searchResults(searchDocuments.length) : selectedEntityType ? t12.documentsTaggedWith(selectedEntityType) : t12.recentResources }),
|
|
50337
|
+
showNoResultsWarning && /* @__PURE__ */ jsx68("div", { className: "mb-4 p-3 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg", children: /* @__PURE__ */ jsx68("p", { className: "text-sm text-yellow-800 dark:text-yellow-200", children: t12.noResultsFound(searchQuery2) }) }),
|
|
50338
|
+
filteredResources.length > 0 ? /* @__PURE__ */ jsx68(
|
|
50278
50339
|
"div",
|
|
50279
50340
|
{
|
|
50280
50341
|
ref: documentGridRoving.containerRef,
|
|
@@ -50282,7 +50343,7 @@ function ResourceDiscoveryPage({
|
|
|
50282
50343
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
50283
50344
|
role: "group",
|
|
50284
50345
|
"aria-label": "Document grid",
|
|
50285
|
-
children: filteredResources.map((resource, index2) => /* @__PURE__ */
|
|
50346
|
+
children: filteredResources.map((resource, index2) => /* @__PURE__ */ jsx68(
|
|
50286
50347
|
ResourceCard,
|
|
50287
50348
|
{
|
|
50288
50349
|
resource,
|
|
@@ -50294,9 +50355,9 @@ function ResourceDiscoveryPage({
|
|
|
50294
50355
|
getResourceId(resource)
|
|
50295
50356
|
))
|
|
50296
50357
|
}
|
|
50297
|
-
) : /* @__PURE__ */
|
|
50298
|
-
/* @__PURE__ */
|
|
50299
|
-
!hasSearchQuery && /* @__PURE__ */
|
|
50358
|
+
) : /* @__PURE__ */ jsxs59("div", { className: "text-center py-12", children: [
|
|
50359
|
+
/* @__PURE__ */ jsx68("p", { className: "text-gray-500 dark:text-gray-400", children: t12.noResourcesAvailable }),
|
|
50360
|
+
!hasSearchQuery && /* @__PURE__ */ jsx68(
|
|
50300
50361
|
"button",
|
|
50301
50362
|
{
|
|
50302
50363
|
onClick: onNavigateToCompose,
|
|
@@ -50308,8 +50369,8 @@ function ResourceDiscoveryPage({
|
|
|
50308
50369
|
] })
|
|
50309
50370
|
] })
|
|
50310
50371
|
] }),
|
|
50311
|
-
/* @__PURE__ */
|
|
50312
|
-
/* @__PURE__ */
|
|
50372
|
+
/* @__PURE__ */ jsxs59("div", { className: "flex", children: [
|
|
50373
|
+
/* @__PURE__ */ jsx68(
|
|
50313
50374
|
ToolbarPanels,
|
|
50314
50375
|
{
|
|
50315
50376
|
activePanel,
|
|
@@ -50319,7 +50380,7 @@ function ResourceDiscoveryPage({
|
|
|
50319
50380
|
onLineNumbersToggle
|
|
50320
50381
|
}
|
|
50321
50382
|
),
|
|
50322
|
-
/* @__PURE__ */
|
|
50383
|
+
/* @__PURE__ */ jsx68(
|
|
50323
50384
|
Toolbar,
|
|
50324
50385
|
{
|
|
50325
50386
|
context: "simple",
|
|
@@ -50335,7 +50396,7 @@ function ResourceDiscoveryPage({
|
|
|
50335
50396
|
import React57, { useState as useState34, useCallback as useCallback21 } from "react";
|
|
50336
50397
|
import { useQueryClient as useQueryClient2 } from "@tanstack/react-query";
|
|
50337
50398
|
import { getLanguage, getPrimaryRepresentation, annotationUri, resourceUri as resourceUri2, resourceAnnotationUri as resourceAnnotationUri2 } from "@semiont/api-client";
|
|
50338
|
-
import { jsx as
|
|
50399
|
+
import { jsx as jsx69, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
50339
50400
|
function ResourceViewerPage({
|
|
50340
50401
|
resource,
|
|
50341
50402
|
rUri,
|
|
@@ -50552,17 +50613,17 @@ function ResourceViewerPage({
|
|
|
50552
50613
|
showError("Failed to create tag");
|
|
50553
50614
|
}
|
|
50554
50615
|
}, [onCreateAnnotation, rUri, onRefetchAnnotations, showSuccess, showError]);
|
|
50555
|
-
return /* @__PURE__ */
|
|
50556
|
-
/* @__PURE__ */
|
|
50557
|
-
/* @__PURE__ */
|
|
50558
|
-
/* @__PURE__ */
|
|
50559
|
-
/* @__PURE__ */
|
|
50616
|
+
return /* @__PURE__ */ jsxs60("div", { className: "flex flex-col h-full", children: [
|
|
50617
|
+
/* @__PURE__ */ jsxs60("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
50618
|
+
/* @__PURE__ */ jsxs60("div", { className: "flex-1 min-w-0 flex flex-col overflow-hidden", children: [
|
|
50619
|
+
/* @__PURE__ */ jsx69("div", { className: "flex-none bg-white dark:bg-gray-800 shadow-sm rounded-t-lg", children: /* @__PURE__ */ jsx69("div", { className: "px-6 py-2 flex items-center justify-between gap-4", children: /* @__PURE__ */ jsx69("h2", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: resource.name }) }) }),
|
|
50620
|
+
/* @__PURE__ */ jsx69("div", { className: "flex-1 overflow-y-auto min-h-0", children: /* @__PURE__ */ jsx69(
|
|
50560
50621
|
ErrorBoundary,
|
|
50561
50622
|
{
|
|
50562
|
-
fallback: (error, reset) => /* @__PURE__ */
|
|
50563
|
-
/* @__PURE__ */
|
|
50564
|
-
/* @__PURE__ */
|
|
50565
|
-
/* @__PURE__ */
|
|
50623
|
+
fallback: (error, reset) => /* @__PURE__ */ jsxs60("div", { className: "p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-md", children: [
|
|
50624
|
+
/* @__PURE__ */ jsx69("h3", { className: "text-sm font-semibold text-red-800 dark:text-red-300 mb-1", children: "Error loading document viewer" }),
|
|
50625
|
+
/* @__PURE__ */ jsx69("p", { className: "text-sm text-red-700 dark:text-red-400", children: error.message }),
|
|
50626
|
+
/* @__PURE__ */ jsx69(
|
|
50566
50627
|
"button",
|
|
50567
50628
|
{
|
|
50568
50629
|
onClick: reset,
|
|
@@ -50571,7 +50632,7 @@ function ResourceViewerPage({
|
|
|
50571
50632
|
}
|
|
50572
50633
|
)
|
|
50573
50634
|
] }),
|
|
50574
|
-
children: contentLoading ? /* @__PURE__ */
|
|
50635
|
+
children: contentLoading ? /* @__PURE__ */ jsx69("div", { className: "p-8 flex items-center justify-center text-gray-600 dark:text-gray-300", children: "Loading document content..." }) : /* @__PURE__ */ jsx69(
|
|
50575
50636
|
ResourceViewer,
|
|
50576
50637
|
{
|
|
50577
50638
|
resource: { ...resource, content: content4 },
|
|
@@ -50629,8 +50690,8 @@ function ResourceViewerPage({
|
|
|
50629
50690
|
}
|
|
50630
50691
|
) })
|
|
50631
50692
|
] }),
|
|
50632
|
-
/* @__PURE__ */
|
|
50633
|
-
/* @__PURE__ */
|
|
50693
|
+
/* @__PURE__ */ jsxs60("div", { className: "flex", children: [
|
|
50694
|
+
/* @__PURE__ */ jsxs60(
|
|
50634
50695
|
ToolbarPanels,
|
|
50635
50696
|
{
|
|
50636
50697
|
activePanel,
|
|
@@ -50640,7 +50701,7 @@ function ResourceViewerPage({
|
|
|
50640
50701
|
onLineNumbersToggle,
|
|
50641
50702
|
width: activePanel === "jsonld" ? "w-[600px]" : activePanel === "annotations" ? "w-[400px]" : "w-64",
|
|
50642
50703
|
children: [
|
|
50643
|
-
annotateMode && resource.archived && /* @__PURE__ */
|
|
50704
|
+
annotateMode && resource.archived && /* @__PURE__ */ jsx69("div", { className: "bg-gray-100 dark:bg-gray-700 rounded-lg shadow-sm p-3 mb-3", children: /* @__PURE__ */ jsx69("div", { className: "text-gray-600 dark:text-gray-400 text-sm font-medium text-center", children: "\u{1F4E6} Archived" }) }),
|
|
50644
50705
|
activePanel === "annotations" && !resource.archived && (() => {
|
|
50645
50706
|
const annotators = withHandlers({
|
|
50646
50707
|
highlight: {
|
|
@@ -50737,7 +50798,7 @@ function ResourceViewerPage({
|
|
|
50737
50798
|
...supportsDetection(primaryMediaType) ? { onCreate: handleCreateTag } : {}
|
|
50738
50799
|
}
|
|
50739
50800
|
});
|
|
50740
|
-
return /* @__PURE__ */
|
|
50801
|
+
return /* @__PURE__ */ jsx69(
|
|
50741
50802
|
UnifiedAnnotationsPanel,
|
|
50742
50803
|
{
|
|
50743
50804
|
annotations: [...highlights, ...references, ...assessments, ...comments, ...tags3],
|
|
@@ -50764,7 +50825,7 @@ function ResourceViewerPage({
|
|
|
50764
50825
|
}
|
|
50765
50826
|
);
|
|
50766
50827
|
})(),
|
|
50767
|
-
activePanel === "history" && /* @__PURE__ */
|
|
50828
|
+
activePanel === "history" && /* @__PURE__ */ jsx69(
|
|
50768
50829
|
AnnotationHistory,
|
|
50769
50830
|
{
|
|
50770
50831
|
rUri,
|
|
@@ -50775,7 +50836,7 @@ function ResourceViewerPage({
|
|
|
50775
50836
|
routes
|
|
50776
50837
|
}
|
|
50777
50838
|
),
|
|
50778
|
-
activePanel === "info" && /* @__PURE__ */
|
|
50839
|
+
activePanel === "info" && /* @__PURE__ */ jsx69(
|
|
50779
50840
|
ResourceInfoPanel,
|
|
50780
50841
|
{
|
|
50781
50842
|
documentEntityTypes,
|
|
@@ -50788,18 +50849,18 @@ function ResourceViewerPage({
|
|
|
50788
50849
|
onUnarchive
|
|
50789
50850
|
}
|
|
50790
50851
|
),
|
|
50791
|
-
activePanel === "collaboration" && /* @__PURE__ */
|
|
50852
|
+
activePanel === "collaboration" && /* @__PURE__ */ jsx69(
|
|
50792
50853
|
CollaborationPanel,
|
|
50793
50854
|
{
|
|
50794
50855
|
isConnected: false,
|
|
50795
50856
|
eventCount: 0
|
|
50796
50857
|
}
|
|
50797
50858
|
),
|
|
50798
|
-
activePanel === "jsonld" && /* @__PURE__ */
|
|
50859
|
+
activePanel === "jsonld" && /* @__PURE__ */ jsx69(JsonLdPanel, { resource })
|
|
50799
50860
|
]
|
|
50800
50861
|
}
|
|
50801
50862
|
),
|
|
50802
|
-
/* @__PURE__ */
|
|
50863
|
+
/* @__PURE__ */ jsx69(
|
|
50803
50864
|
Toolbar,
|
|
50804
50865
|
{
|
|
50805
50866
|
context: "document",
|
|
@@ -50810,7 +50871,7 @@ function ResourceViewerPage({
|
|
|
50810
50871
|
)
|
|
50811
50872
|
] })
|
|
50812
50873
|
] }),
|
|
50813
|
-
/* @__PURE__ */
|
|
50874
|
+
/* @__PURE__ */ jsx69(
|
|
50814
50875
|
SearchResourcesModal,
|
|
50815
50876
|
{
|
|
50816
50877
|
isOpen: searchModalOpen,
|
|
@@ -50851,7 +50912,7 @@ function ResourceViewerPage({
|
|
|
50851
50912
|
searchTerm
|
|
50852
50913
|
}
|
|
50853
50914
|
),
|
|
50854
|
-
/* @__PURE__ */
|
|
50915
|
+
/* @__PURE__ */ jsx69(
|
|
50855
50916
|
GenerationConfigModal,
|
|
50856
50917
|
{
|
|
50857
50918
|
isOpen: generationModalOpen,
|
|
@@ -50937,6 +50998,7 @@ export {
|
|
|
50937
50998
|
ResourceViewerPage,
|
|
50938
50999
|
SelectedTextDisplay,
|
|
50939
51000
|
SemiontBranding,
|
|
51001
|
+
SemiontFavicon,
|
|
50940
51002
|
SessionExpiryBanner,
|
|
50941
51003
|
SessionProvider,
|
|
50942
51004
|
SessionTimer,
|
|
@@ -50964,6 +51026,7 @@ export {
|
|
|
50964
51026
|
dispatch401Error,
|
|
50965
51027
|
dispatch403Error,
|
|
50966
51028
|
dispatchAuthEvent,
|
|
51029
|
+
faviconPaths,
|
|
50967
51030
|
getAllTagSchemas,
|
|
50968
51031
|
getAnnotationClassName,
|
|
50969
51032
|
getAnnotationInternalType,
|