@semiont/frontend 0.2.36 → 0.2.38
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/package.json +1 -1
- package/standalone/apps/frontend/.next/BUILD_ID +1 -1
- package/standalone/apps/frontend/.next/app-build-manifest.json +116 -116
- package/standalone/apps/frontend/.next/app-path-routes-manifest.json +5 -5
- package/standalone/apps/frontend/.next/build-manifest.json +6 -6
- package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
- package/standalone/apps/frontend/.next/required-server-files.json +4 -4
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +35 -35
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +49 -49
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +69 -69
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +158 -158
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +121 -121
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +440 -440
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +62 -62
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +25 -25
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +270 -270
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +250 -250
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +46 -46
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +18 -18
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +135 -135
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +1454 -1454
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +1440 -1440
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +632 -632
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +79 -79
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +1613 -1613
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js +262 -262
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +125 -125
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +604 -604
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js +358 -358
- package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.rsc +3 -3
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +113 -113
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +64 -64
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +42 -42
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +111 -111
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app-paths-manifest.json +5 -5
- package/standalone/apps/frontend/.next/server/chunks/1037.js +4 -4
- package/standalone/apps/frontend/.next/server/chunks/1854.js +55 -55
- package/standalone/apps/frontend/.next/server/chunks/1940.js +388 -388
- package/standalone/apps/frontend/.next/server/chunks/{5137.js → 5015.js} +20 -20
- package/standalone/apps/frontend/.next/server/chunks/{4331.js → 5919.js} +12 -12
- package/standalone/apps/frontend/.next/server/chunks/7912.js +195 -195
- package/standalone/apps/frontend/.next/server/chunks/{255.js → 8387.js} +127 -127
- package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware-manifest.json +5 -5
- package/standalone/apps/frontend/.next/server/next-font-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/next-font-manifest.json +1 -1
- package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
- package/standalone/apps/frontend/.next/server/pages/500.html +1 -1
- package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
- package/standalone/apps/frontend/.next/server/src/middleware.js +10636 -10636
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/page-28023b5ae5e22ad9.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/devops/{page-a9093490466b2b37.js → page-da9614b9f1606d7b.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/{layout-5af3f431ec0b3338.js → layout-62ef934e6bcc18b1.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/page-fc5e1da86912c64f.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/security/page-8031d11e8dccef6c.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/users/{page-1952f839f1e5aec3.js → page-a978206777229291.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/error/{page-c72ec26a8cc98e35.js → page-4e5ee1553c6d8ebe.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/mcp-setup/route-e1d196e7f8d38edd.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signin/{page-180f998c19826597.js → page-c878d25b0ae5069c.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signup/{page-f1ccc995126a89a8.js → page-1292f2664ce93b63.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/welcome/{page-f57e39b176753cc4.js → page-7e79cf1f705618db.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/compose/{page-9b4223dae15c8d0c.js → page-7c16ece328eb4a91.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/discover/{page-926f8f5f5569695e.js → page-f9d0032f45241437.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{layout-5ab3b200e60ffd91.js → layout-83fe577a1460d915.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{page-55d3c0928a59e55f.js → page-5349aaee3976e1bb.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/resource/[id]/page-4cb67f9bf8be8f1a.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{layout-a298c8dc1488a191.js → layout-2f6c82f89ff0fb38.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/entity-tags/page-f76e2312764ebe0c.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{layout-fceb080211969ed7.js → layout-63abc0b7153c03d3.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{page-3d971aeb0ca1324a.js → page-7bc1b2215ffcdde0.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/recent/{page-3a7a7a375c4338f5.js → page-a00695b21e364495.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/tag-schemas/{page-47f0c2c1cfb3e969.js → page-874ddff1c67dd96a.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{not-found-cd4d3962209aaa67.js → not-found-9338290efe925a85.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{page-e6857bdeef2ade5e.js → page-46fad01f54cffcaf.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/privacy/{page-2018e48e55ecea79.js → page-7034c8af05b702cd.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/terms/{page-87dc1af32b067913.js → page-fbfecd018ce6acdd.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/auth/[...nextauth]/route-24502971e8577474.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/consent/route-680f8e085df19751.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/export/route-5c5bd56c39187fd1.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/api/resources/[id]/{route-41d8347af9354a15.js → route-e5f4f3f1353c7a86.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/{error-092a0e51a706052b.js → error-4ec2f52abc66bc6c.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/global-error-c894441824fc03d1.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{common-cafbbd01b1c3775d.js → common-d8e3aad4ef182cd5.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/main-app-4616290e0bdaf4ae.js +1 -0
- package/standalone/apps/frontend/package.json +3 -3
- package/standalone/apps/frontend/server.js +1 -1
- package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib → sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3} +0 -0
- package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/package.json +11 -5
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
- package/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/standalone/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/package.json +13 -7
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/LICENSE +191 -0
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
- package/standalone/package.json +4 -2
- package/standalone/packages/core/package.json +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/page-d8aed1a2b6034adb.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/page-b8a11ecf0fc92f87.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/security/page-d36785d6e4d45d3a.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/mcp-setup/route-d3c1c9e26edf790a.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/resource/[id]/page-0de67bf833ae4a3f.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/entity-tags/page-a245859e2ddd4e05.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/auth/[...nextauth]/route-7469fd42a9044d71.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/consent/route-b6458d3daaa96918.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/export/route-78e35b60a682d097.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/global-error-6d117072fb9faa75.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/main-app-49c62e2894aa25dd.js +0 -1
- package/standalone/apps/frontend/public/android-chrome-192x192.png +0 -0
- package/standalone/apps/frontend/public/android-chrome-512x512.png +0 -0
- package/standalone/apps/frontend/public/apple-touch-icon.png +0 -0
- package/standalone/apps/frontend/public/favicon-128x128.png +0 -0
- package/standalone/apps/frontend/public/favicon-16x16.png +0 -0
- package/standalone/apps/frontend/public/favicon-32x32.png +0 -0
- package/standalone/apps/frontend/public/favicon-48x48.png +0 -0
- package/standalone/apps/frontend/public/favicon-64x64.png +0 -0
- package/standalone/apps/frontend/public/favicon-96x96.png +0 -0
- package/standalone/apps/frontend/public/favicon.ico +0 -0
- package/standalone/apps/frontend/public/favicon.svg +0 -47
- package/standalone/apps/frontend/public/site.webmanifest +0 -19
- package/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
- /package/standalone/apps/frontend/.next/static/{OpFkYY-cw7w7h5hHBfiKG → nYub3Py8_Y-ne6bUw3IFQ}/_buildManifest.js +0 -0
- /package/standalone/apps/frontend/.next/static/{OpFkYY-cw7w7h5hHBfiKG → nYub3Py8_Y-ne6bUw3IFQ}/_ssgManifest.js +0 -0
- /package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/lib/index.js +0 -0
- /package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/versions.json +0 -0
- /package/standalone/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/LICENSE +0 -0
package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/page-28023b5ae5e22ad9.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8111],{43739:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var i=t(54568),n=t(7620),a=t(97066),c=t(47001),l=t(68167),r=t(53630),o=t(75956),d=t(19664),h=t.n(d),m=t(96006);function u(){let e=(0,a.c)("About"),s=(0,a.c)("Footer"),t=(0,a.c)("Navigation"),d=(0,a.c)("Home"),u=(0,n.useContext)(r.GZ);return(0,i.jsx)(c.PageLayout,{Link:o.N,routes:o.J,t:s,tNav:t,tHome:d,showAuthLinks:!1,CookiePreferences:l.f,...(null==u?void 0:u.openKeyboardHelp)&&{onOpenKeyboardHelp:u.openKeyboardHelp},className:"semiont-static-page",children:(0,i.jsx)("div",{className:"semiont-static-container",children:(0,i.jsxs)("div",{className:"semiont-static-content",children:[(0,i.jsxs)("header",{className:"semiont-static-header",children:[(0,i.jsx)("h1",{className:"semiont-static-title",children:e("pageTitle")}),(0,i.jsx)("p",{className:"semiont-static-subtitle",children:e("tagline")})]}),(0,i.jsxs)("div",{className:"semiont-static-action-buttons",children:[(0,i.jsx)(h(),{href:"/auth/signup",className:c.buttonStyles.primary.base,children:e("signUp")}),(0,i.jsx)("button",{onClick:()=>(0,m.signIn)(void 0,{callbackUrl:"/know"}),className:c.buttonStyles.primary.base,type:"button",children:e("signIn")})]}),(0,i.jsxs)("article",{className:"semiont-static-article",children:[(0,i.jsxs)("section",{children:[(0,i.jsx)("h2",{children:e("missionTitle")}),(0,i.jsx)("p",{children:e("mission")})]}),(0,i.jsxs)("section",{children:[(0,i.jsx)("h2",{children:e("coreFeaturesTitle")}),(0,i.jsxs)("div",{className:"semiont-static-feature-grid",children:[(0,i.jsxs)("div",{className:"semiont-static-feature-card",children:[(0,i.jsx)("span",{className:"semiont-static-feature-icon",children:"\uD83D\uDCCA"}),(0,i.jsx)("h3",{children:e("semanticContentTitle")}),(0,i.jsx)("p",{className:"semiont-static-feature-subtitle",children:e("semanticContentSubtitle")}),e("semanticContent").split("\n\n").map((e,s)=>(0,i.jsx)("p",{children:e},s)),(0,i.jsx)("span",{className:"semiont-static-badge semiont-static-badge-planned",children:e("planned")})]}),(0,i.jsxs)("div",{className:"semiont-static-feature-card",children:[(0,i.jsx)("span",{className:"semiont-static-feature-icon",children:"\uD83E\uDD1D"}),(0,i.jsx)("h3",{children:e("collaborationTitle")}),(0,i.jsx)("p",{className:"semiont-static-feature-subtitle",children:e("collaborationSubtitle")}),e("collaboration").split("\n\n").map((e,s)=>(0,i.jsx)("p",{children:e},s)),(0,i.jsx)("span",{className:"semiont-static-badge semiont-static-badge-planned",children:e("planned")})]}),(0,i.jsxs)("div",{className:"semiont-static-feature-card",children:[(0,i.jsx)("span",{className:"semiont-static-feature-icon",children:"\uD83D\uDD10"}),(0,i.jsx)("h3",{children:e("rbacTitle")}),(0,i.jsx)("p",{className:"semiont-static-feature-subtitle",children:e("rbacSubtitle")}),e("rbac").split("\n\n").map((e,s)=>(0,i.jsx)("p",{children:e},s)),(0,i.jsx)("span",{className:"semiont-static-badge semiont-static-badge-planned",children:e("planned")})]})]})]}),(0,i.jsxs)("section",{className:"semiont-static-highlight",children:[(0,i.jsx)("h2",{children:e("openSourceTitle")}),(0,i.jsx)("p",{children:e("openSource")}),(0,i.jsx)("div",{className:"semiont-static-action-buttons",children:(0,i.jsx)("a",{href:"https://github.com/The-AI-Alliance/semiont",target:"_blank",rel:"noopener noreferrer",className:c.buttonStyles.secondary.base,children:e("viewOnGitHub")})})]}),(0,i.jsxs)("section",{children:[(0,i.jsx)("h2",{children:e("futureVisionTitle")}),(0,i.jsx)("p",{children:e("futureVision")})]})]})]})})})}},98961:(e,s,t)=>{Promise.resolve().then(t.bind(t,43739))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=98961)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6043],{20108:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(54568),n=i(97066),l=i(7620),a=i(37286),o=i(7164),r=i(14740),c=i(47001),p=i(27849),u=i(6942),d=i(34805);function m(){let{isFullyAuthenticated:e,isAuthenticated:t,hasValidBackendToken:i}=(0,d.As)();return(0,s.jsx)(c.StatusDisplay,{isFullyAuthenticated:e,isAuthenticated:t,hasValidBackendToken:i})}function b(){let e=(0,n.c)("AdminDevOps"),{activePanel:t}=(0,u.ySJ)(),{theme:i,setTheme:d}=(0,u.DPo)(),{showLineNumbers:b,toggleLineNumbers:g}=(0,u.cvF)(),v=(0,l.useCallback)(e=>{let{theme:t}=e;d(t)},[d]),y=(0,l.useCallback)(()=>{g()},[g]);(0,u.C$z)({"settings:theme-changed":v,"settings:line-numbers-toggled":y});let D=[{title:e("systemMonitoring"),description:e("systemMonitoringDescription"),icon:a.A,available:e("systemMonitoringCLI")},{title:e("serviceManagement"),description:e("serviceManagementDescription"),icon:o.A,available:e("serviceManagementCLI")},{title:e("deploymentControl"),description:e("deploymentControlDescription"),icon:r.A,available:e("deploymentControlCLI")}];return(0,s.jsx)(c.AdminDevOpsPage,{suggestedFeatures:D,theme:i,showLineNumbers:b,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),systemStatus:e("systemStatus"),cliOperations:e("cliOperations"),cliOperationsDescription:e("cliOperationsDescription"),cliTitle:e("cliTitle"),cliDescription:e("cliDescription")},StatusDisplay:m,ToolbarPanels:p.t,Toolbar:c.Toolbar})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6043],{20108:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(54568),n=i(97066),l=i(7620),a=i(37286),o=i(7164),r=i(14740),c=i(47001),p=i(27849),u=i(6942),d=i(34805);function m(){let{isFullyAuthenticated:e,isAuthenticated:t,hasValidBackendToken:i}=(0,d.As)();return(0,s.jsx)(c.StatusDisplay,{isFullyAuthenticated:e,isAuthenticated:t,hasValidBackendToken:i})}function b(){let e=(0,n.c)("AdminDevOps"),{activePanel:t}=(0,u.ySJ)(),{theme:i,setTheme:d}=(0,u.DPo)(),{showLineNumbers:b,toggleLineNumbers:g}=(0,u.cvF)(),v=(0,l.useCallback)(e=>{let{theme:t}=e;d(t)},[d]),y=(0,l.useCallback)(()=>{g()},[g]);(0,u.C$z)({"settings:theme-changed":v,"settings:line-numbers-toggled":y});let D=[{title:e("systemMonitoring"),description:e("systemMonitoringDescription"),icon:a.A,available:e("systemMonitoringCLI")},{title:e("serviceManagement"),description:e("serviceManagementDescription"),icon:o.A,available:e("serviceManagementCLI")},{title:e("deploymentControl"),description:e("deploymentControlDescription"),icon:r.A,available:e("deploymentControlCLI")}];return(0,s.jsx)(c.AdminDevOpsPage,{suggestedFeatures:D,theme:i,showLineNumbers:b,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),systemStatus:e("systemStatus"),cliOperations:e("cliOperations"),cliOperationsDescription:e("cliOperationsDescription"),cliTitle:e("cliTitle"),cliDescription:e("cliDescription")},StatusDisplay:m,ToolbarPanels:p.t,Toolbar:c.Toolbar})}},80287:(e,t,i)=>{Promise.resolve().then(i.bind(i,20108))}},e=>{e.O(0,[2076,8096,587,7358],()=>e(e.s=80287)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4490],{26349:(e,s,i)=>{"use strict";i.r(s),i.d(s,{default:()=>v});var n=i(54568),a=i(7620),l=i(97066),o=i(96006),r=i(26720),t=i(24334),d=i(7147),c=i(91004),p=i(14740),u=i(48037),x=i(7444);function b(e){let{isCollapsed:s,toggleCollapsed:i,navigationMenu:o}=e,b=(0,l.c)("Administration"),f=(0,l.c)("Sidebar"),m=(0,r.a8)(),h=(0,a.useCallback)(()=>{i()},[i]);(0,t.C$z)({"browse:sidebar-toggle":h});let g=[{name:b("users"),href:"/admin/users",icon:d.A,description:b("usersDescription")},{name:b("oauthSettings"),href:"/admin/security",icon:c.A,description:b("oauthSettingsDescription")},{name:b("devops"),href:"/admin/devops",icon:p.A,description:b("devopsDescription")}];return(0,n.jsx)(t.TbX,{title:b("title"),items:g,currentPath:m,LinkComponent:r.N_,...o&&{dropdownContent:o},isCollapsed:s,icons:{chevronLeft:u.A,bars:x.A},collapseSidebarLabel:f("collapseSidebar"),expandSidebarLabel:f("expandSidebar")})}var f=i(11835),m=i(68167),h=i(53630),g=i(75956),k=i(34805);function v(e){let{children:s}=e,i=(0,l.c)("Footer"),r=(0,l.c)("Navigation"),t=(0,l.c)("Home"),d=(0,a.useContext)(h.GZ),{isAuthenticated:c,isAdmin:p,isModerator:u}=(0,k.As)(),{data:x}=(0,o.useSession)(),v=(null==x?void 0:x.backendToken)||null;return(0,n.jsx)(f.ffs,{token:v,children:(0,n.jsx)(f.pqI,{baseUrl:"",children:(0,n.jsxs)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col",children:[(0,n.jsxs)("div",{className:"flex flex-1",children:[(0,n.jsx)(f.Ef3,{Link:g.N,routes:g.J,t:r,tHome:t,brandingLink:"/",collapsible:!0,storageKey:"admin-sidebar-collapsed",isAuthenticated:c,isAdmin:p,isModerator:u,children:(e,s,i)=>(0,n.jsx)(b,{isCollapsed:e,toggleCollapsed:s,navigationMenu:i})}),(0,n.jsx)("main",{className:"flex-1 p-6 flex flex-col",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto flex-1 flex flex-col w-full",children:s})})]}),(0,n.jsx)(f.wi6,{Link:g.N,routes:g.J,t:i,CookiePreferences:m.f,...(null==d?void 0:d.openKeyboardHelp)&&{onOpenKeyboardHelp:d.openKeyboardHelp}})]})})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4490],{26349:(e,s,i)=>{"use strict";i.r(s),i.d(s,{default:()=>v});var n=i(54568),a=i(7620),l=i(97066),o=i(96006),r=i(26720),t=i(24334),d=i(7147),c=i(91004),p=i(14740),u=i(48037),x=i(7444);function b(e){let{isCollapsed:s,toggleCollapsed:i,navigationMenu:o}=e,b=(0,l.c)("Administration"),f=(0,l.c)("Sidebar"),m=(0,r.a8)(),h=(0,a.useCallback)(()=>{i()},[i]);(0,t.C$z)({"browse:sidebar-toggle":h});let g=[{name:b("users"),href:"/admin/users",icon:d.A,description:b("usersDescription")},{name:b("oauthSettings"),href:"/admin/security",icon:c.A,description:b("oauthSettingsDescription")},{name:b("devops"),href:"/admin/devops",icon:p.A,description:b("devopsDescription")}];return(0,n.jsx)(t.TbX,{title:b("title"),items:g,currentPath:m,LinkComponent:r.N_,...o&&{dropdownContent:o},isCollapsed:s,icons:{chevronLeft:u.A,bars:x.A},collapseSidebarLabel:f("collapseSidebar"),expandSidebarLabel:f("expandSidebar")})}var f=i(11835),m=i(68167),h=i(53630),g=i(75956),k=i(34805);function v(e){let{children:s}=e,i=(0,l.c)("Footer"),r=(0,l.c)("Navigation"),t=(0,l.c)("Home"),d=(0,a.useContext)(h.GZ),{isAuthenticated:c,isAdmin:p,isModerator:u}=(0,k.As)(),{data:x}=(0,o.useSession)(),v=(null==x?void 0:x.backendToken)||null;return(0,n.jsx)(f.ffs,{token:v,children:(0,n.jsx)(f.pqI,{baseUrl:"",children:(0,n.jsxs)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col",children:[(0,n.jsxs)("div",{className:"flex flex-1",children:[(0,n.jsx)(f.Ef3,{Link:g.N,routes:g.J,t:r,tHome:t,brandingLink:"/",collapsible:!0,storageKey:"admin-sidebar-collapsed",isAuthenticated:c,isAdmin:p,isModerator:u,children:(e,s,i)=>(0,n.jsx)(b,{isCollapsed:e,toggleCollapsed:s,navigationMenu:i})}),(0,n.jsx)("main",{className:"flex-1 p-6 flex flex-col",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto flex-1 flex flex-col w-full",children:s})})]}),(0,n.jsx)(f.wi6,{Link:g.N,routes:g.J,t:i,CookiePreferences:m.f,...(null==d?void 0:d.openKeyboardHelp)&&{onOpenKeyboardHelp:d.openKeyboardHelp}})]})})})}},71818:(e,s,i)=>{Promise.resolve().then(i.bind(i,26349))}},e=>{e.O(0,[2076,8096,587,7358],()=>e(e.s=71818)),_N_E=e.O()}]);
|
package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/page-fc5e1da86912c64f.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6089],{9881:(e,s,_)=>{Promise.resolve().then(_.bind(_,30634))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=9881)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4424],{32561:(o,e,n)=>{Promise.resolve().then(n.bind(n,33747))},33747:(o,e,n)=>{"use strict";n.d(e,{default:()=>r});var i=n(54568),l=n(7620),a=n(97066),t=n(47001),s=n(27849),d=n(6942);function r(){var o,e;let n=(0,a.c)("AdminSecurity"),{activePanel:r}=(0,d.ySJ)(),{theme:c,setTheme:u}=(0,d.DPo)(),{showLineNumbers:g,toggleLineNumbers:f}=(0,d.cvF)(),m=(0,l.useCallback)(o=>{let{theme:e}=o;u(e)},[u]),D=(0,l.useCallback)(()=>{f()},[f]);(0,d.C$z)({"settings:theme-changed":m,"settings:line-numbers-toggled":D});let{data:p,isLoading:v}=(0,t.useAdmin)().oauth.config.useQuery(),C=null!=(o=null==p?void 0:p.allowedDomains)?o:[],h=null!=(e=null==p?void 0:p.providers)?e:[];return(0,i.jsx)(t.AdminSecurityPage,{providers:h,allowedDomains:C,isLoading:v,theme:c,showLineNumbers:g,activePanel:r,translations:{title:n("title"),subtitle:n("subtitle"),oauthProviders:n("oauthProviders"),oauthProvidersDescription:n("oauthProvidersDescription"),clientId:n("clientId"),configured:n("configured"),noProvidersConfigured:n("noProvidersConfigured"),allowedDomains:n("allowedDomains"),allowedDomainsDescription:n("allowedDomainsDescription"),noDomainsConfigured:n("noDomainsConfigured"),configManagementTitle:n("configManagementTitle"),configManagementDescription:n("configManagementDescription"),configLocalDev:n("configLocalDev"),configCloudDeploy:n("configCloudDeploy"),configCloudDeployCommand:n("configCloudDeployCommand"),configCloudDeployEnd:n("configCloudDeployEnd"),configAWS:n("configAWS")},ToolbarPanels:s.t,Toolbar:t.Toolbar})}}},o=>{o.O(0,[2076,587,8096,7358],()=>o(o.s=32561)),_N_E=o.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5090],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5090],{76227:(e,s,t)=>{Promise.resolve().then(t.bind(t,89992))},89992:(e,s,t)=>{"use strict";t.d(s,{default:()=>d});var a=t(54568),n=t(7620),r=t(97066),l=t(47001),o=t(4869),i=t(27849),u=t(6942);function d(){var e,s;let t=(0,r.c)("AdminUsers"),d=(0,o.jE)(),{activePanel:c}=(0,u.ySJ)(),{theme:m,setTheme:U}=(0,u.DPo)(),{showLineNumbers:v,toggleLineNumbers:C}=(0,u.cvF)(),g=(0,n.useCallback)(e=>{let{theme:s}=e;U(s)},[U]),b=(0,n.useCallback)(()=>{C()},[C]);(0,u.C$z)({"settings:theme-changed":g,"settings:line-numbers-toggled":b});let h=(0,l.useAdmin)(),{data:y,isLoading:p}=h.users.list.useQuery(),{data:k,isLoading:A}=h.users.stats.useQuery(),L=h.users.update.useMutation(),P=null!=(e=null==y?void 0:y.users)?e:[],S=null!=(s=null==k?void 0:k.stats)?s:null,D=async(e,s)=>{try{await L.mutateAsync({id:e,data:s}),d.invalidateQueries({queryKey:["admin.users.list"]}),d.invalidateQueries({queryKey:["admin.users.stats"]})}catch(e){console.error("Failed to update user:",e)}},E=async e=>{console.warn("Delete user not implemented:",e),alert("Delete user functionality is not currently available")};return(0,a.jsx)(l.AdminUsersPage,{users:P,userStats:S,isLoadingUsers:p,isLoadingStats:A,onUpdateUser:D,onDeleteUser:E,onAddUser:()=>{console.log("Add user clicked")},onExportUsers:()=>{console.log("Export users clicked")},theme:m,showLineNumbers:v,activePanel:c,translations:{title:t("title"),subtitle:t("subtitle"),addUser:t("addUser"),totalUsers:t("totalUsers"),activeUsers:t("activeUsers"),administrators:t("administrators"),recentUsers:t("recentUsers"),searchUsers:t("searchUsers"),searchPlaceholder:t("searchPlaceholder"),role:t("role"),allRoles:t("allRoles"),admin:t("admin"),user:t("user"),status:t("status"),allStatus:t("allStatus"),active:t("active"),inactive:t("inactive"),exportUsers:t("exportUsers"),loadingUsers:t("loadingUsers"),userColumn:t("userColumn"),domainColumn:t("domainColumn"),roleColumn:t("roleColumn"),statusColumn:t("statusColumn"),lastLoginColumn:t("lastLoginColumn"),joinedColumn:t("joinedColumn"),actionsColumn:t("actionsColumn"),noUsersFound:t("noUsersFound"),noUsersFoundDescription:t("noUsersFoundDescription"),noName:t("noName"),never:t("never"),removeAdmin:t("removeAdmin"),makeAdmin:t("makeAdmin"),deactivateUser:t("deactivateUser"),activateUser:t("activateUser"),deleteUser:t("deleteUser")},ToolbarPanels:i.t,Toolbar:l.Toolbar,buttonStyles:l.buttonStyles})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=76227)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[741],{32033:(r,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var o=n(54568),i=n(7620),a=n(27541),t=n(97066),s=n(47001),l=n(68167),c=n(53630),u=n(75956),d=n(19664),g=n.n(d);function p(){var r;let e=(0,t.c)("AuthError"),n=(0,t.c)("Footer"),d=(0,t.c)("Navigation"),p=(0,t.c)("Home"),f=(0,a.useSearchParams)(),h=(0,i.useContext)(c.GZ),y=null!=(r=null==f?void 0:f.get("error"))?r:null,b={pageTitle:e("pageTitle"),tryAgain:e("tryAgain"),errorConfiguration:e("errorConfiguration"),errorAccessDenied:e("errorAccessDenied"),errorVerification:e("errorVerification"),errorGeneric:e("errorGeneric")};return(0,o.jsx)(s.PageLayout,{Link:u.N,routes:u.J,t:n,tNav:d,tHome:p,CookiePreferences:l.f,...(null==h?void 0:h.openKeyboardHelp)&&{onOpenKeyboardHelp:h.openKeyboardHelp},className:"bg-gray-50 dark:bg-gray-900",children:(0,o.jsx)(s.AuthErrorDisplay,{errorType:y,Link:g(),translations:b})})}function f(){let r=(0,t.c)("AuthError");return(0,o.jsx)("div",{children:r("loading")})}function h(){return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(f,{}),children:(0,o.jsx)(p,{})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[741],{32033:(r,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var o=n(54568),i=n(7620),a=n(27541),t=n(97066),s=n(47001),l=n(68167),c=n(53630),u=n(75956),d=n(19664),g=n.n(d);function p(){var r;let e=(0,t.c)("AuthError"),n=(0,t.c)("Footer"),d=(0,t.c)("Navigation"),p=(0,t.c)("Home"),f=(0,a.useSearchParams)(),h=(0,i.useContext)(c.GZ),y=null!=(r=null==f?void 0:f.get("error"))?r:null,b={pageTitle:e("pageTitle"),tryAgain:e("tryAgain"),errorConfiguration:e("errorConfiguration"),errorAccessDenied:e("errorAccessDenied"),errorVerification:e("errorVerification"),errorGeneric:e("errorGeneric")};return(0,o.jsx)(s.PageLayout,{Link:u.N,routes:u.J,t:n,tNav:d,tHome:p,CookiePreferences:l.f,...(null==h?void 0:h.openKeyboardHelp)&&{onOpenKeyboardHelp:h.openKeyboardHelp},className:"bg-gray-50 dark:bg-gray-900",children:(0,o.jsx)(s.AuthErrorDisplay,{errorType:y,Link:g(),translations:b})})}function f(){let r=(0,t.c)("AuthError");return(0,o.jsx)("div",{children:r("loading")})}function h(){return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(f,{}),children:(0,o.jsx)(p,{})})}},57689:(r,e,n)=>{Promise.resolve().then(n.bind(n,32033))}},r=>{r.O(0,[2076,587,8096,7358],()=>r(r.s=57689)),_N_E=r.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9217],{},_=>{_.O(0,[2076,587,8096,7358],()=>_(_.s=69235)),_N_E=_.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4867],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4867],{6875:(e,r,n)=>{Promise.resolve().then(n.bind(n,76122))},76122:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>k});var o=n(54568),a=n(7620),l=n(96006),i=n(27541),t=n(26720),s=n(97066),c=n(47001),d=n(68167),u=n(53630),h=n(75956),g=n(19664),p=n.n(g);function b(){let e=(0,s.c)("AuthSignIn"),r=(0,s.c)("Home"),n=(0,s.c)("Footer"),g=(0,i.useSearchParams)(),b=(0,t.rd)(),m=(0,a.useContext)(u.GZ),[k,w]=(0,a.useState)(null),[I,f]=(0,a.useState)(!1),[v,S]=(0,a.useState)(!0),C=(null==g?void 0:g.get("callbackUrl"))||"/know";(0,a.useEffect)(()=>{fetch("/api/auth/providers").then(e=>e.json()).then(e=>{e.credentials&&f(!0),S(!1)}).catch(()=>{f(!0),S(!1)});let r=null==g?void 0:g.get("error");if(r)switch(r){case"Signin":w(e("errorAuthFailed"));break;case"OAuthSignin":w(e("errorGoogleConnect"));break;case"OAuthCallback":w(e("errorDomainNotAllowed"));break;case"OAuthCreateAccount":w(e("errorCreateAccount"));break;default:w(e("errorGeneric"))}},[g,e]);let A=async()=>{try{await (0,l.signIn)("google",{callbackUrl:C})}catch(r){w(e("errorGoogleSignIn"))}},P=async(r,n)=>{try{let o=await (0,l.signIn)("credentials",{email:r,password:n,redirect:!1,callbackUrl:C});(null==o?void 0:o.error)?w(e("errorInvalidCredentials")):(null==o?void 0:o.ok)&&b.push(C)}catch(r){w(e("errorSignInFailed"))}},y={pageTitle:e("pageTitle"),welcomeBack:e("welcomeBack"),signInPrompt:e("signInPrompt"),continueWithGoogle:e("continueWithGoogle"),emailLabel:e("emailLabel"),emailPlaceholder:e("emailPlaceholder"),passwordLabel:e("passwordLabel"),passwordPlaceholder:e("passwordPlaceholder"),signInWithCredentials:e("signInWithCredentials"),or:e("or"),credentialsAuthEnabled:e("credentialsAuthEnabled"),approvedDomainsOnly:e("approvedDomainsOnly"),backToHome:e("backToHome"),learnMore:e("learnMore"),signUpInstead:e("signUpInstead"),errorEmailRequired:e("errorEmailRequired"),errorPasswordRequired:e("errorPasswordRequired"),tagline:r("tagline")};return(0,o.jsxs)("div",{className:"semiont-page-wrapper",children:[(0,o.jsx)(c.SignInForm,{onGoogleSignIn:A,onCredentialsSignIn:I?P:void 0,error:k,showCredentialsAuth:I,isLoading:v,Link:p(),translations:y}),(0,o.jsx)(c.Footer,{Link:h.N,routes:h.J,t:n,CookiePreferences:d.f,...(null==m?void 0:m.openKeyboardHelp)&&{onOpenKeyboardHelp:m.openKeyboardHelp}})]})}function m(){let e=(0,s.c)("AuthSignIn");return(0,o.jsx)("div",{children:e("loading")})}function k(){return(0,o.jsx)(a.Suspense,{fallback:(0,o.jsx)(m,{}),children:(0,o.jsx)(b,{})})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=6875)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1389],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1389],{46801:(e,n,o)=>{Promise.resolve().then(o.bind(o,98173))},98173:(e,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>k});var t=o(54568),a=o(7620),i=o(96006),r=o(27541),s=o(97066),l=o(47001),c=o(68167),u=o(53630),p=o(75956),g=o(19664),m=o.n(g);function d(){let e=(0,s.c)("AuthSignUp"),n=(0,s.c)("Footer"),o=(0,s.c)("Navigation"),g=(0,s.c)("Home"),d=(0,r.useSearchParams)(),h=(0,a.useContext)(u.GZ),k=(null==d?void 0:d.get("callbackUrl"))||"/auth/welcome",f=async()=>{await (0,i.signIn)("google",{callbackUrl:k})},v={pageTitle:e("pageTitle"),signUpPrompt:e("signUpPrompt"),signUpWithGoogle:e("signUpWithGoogle"),creatingAccount:e("creatingAccount"),approvedDomainsInfo:e("approvedDomainsInfo"),termsAgreement:e("termsAgreement"),alreadyHaveAccount:e("alreadyHaveAccount"),tagline:g("tagline"),backToHome:e("backToHome")};return(0,t.jsx)(l.PageLayout,{Link:p.N,routes:p.J,t:n,tNav:o,tHome:g,CookiePreferences:c.f,...(null==h?void 0:h.openKeyboardHelp)&&{onOpenKeyboardHelp:h.openKeyboardHelp},className:"semiont-page-layout--auth",showAuthLinks:!1,children:(0,t.jsx)(l.SignUpForm,{onSignUp:f,Link:m(),translations:v})})}function h(){let e=(0,s.c)("AuthSignUp");return(0,t.jsx)("div",{children:e("loading")})}function k(){return(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)(h,{}),children:(0,t.jsx)(d,{})})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=46801)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3219],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3219],{16059:(e,i,t)=>{Promise.resolve().then(t.bind(t,57182))},57182:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>a});var r=t(54568),o=t(7620),n=t(96006),s=t(26720),l=t(97066),c=t(47001);function a(){var e,i,a,p,u,d,m,b;let h=(0,l.c)("AuthWelcome"),{data:g,status:y}=(0,n.useSession)(),A=(0,s.rd)(),[v,T]=(0,o.useState)(!1),w=(0,c.useToast)(),f=(0,c.useAuthApi)(),{data:P}=f.me.useQuery(),C=f.acceptTerms.useMutation();(0,o.useEffect)(()=>{if("loading"!==y){if("unauthenticated"===y)return void A.push("/auth/signin");if((null==P?void 0:P.termsAcceptedAt)||g&&!g.isNewUser)return void A.push("/")}},[y,g,A,P]);let S=async e=>{if(!e){let{signOut:e}=await Promise.resolve().then(t.t.bind(t,96006,23));await e({callbackUrl:"/"});return}try{await C.mutateAsync(),T(!0),setTimeout(()=>{A.push("/")},1e3)}catch(e){console.error("Terms acceptance error:",e),w.showError(h("errorAcceptingTerms"))}};return(0,r.jsx)(c.WelcomePage,{userName:null!=(u=null==g||null==(i=g.user)||null==(e=i.name)?void 0:e.split(" ")[0])?u:"",termsAcceptedAt:null!=(d=null==P?void 0:P.termsAcceptedAt)?d:null,isNewUser:null!=(m=null==g?void 0:g.isNewUser)&&m,status:"loading"===y?"loading":v?"accepted":"form",isProcessing:C.isPending,onAccept:()=>S(!0),onDecline:()=>S(!1),translations:{loading:h("loading"),welcomeTitle:h("welcomeTitle"),thanksForAccepting:h("thanksForAccepting"),welcomeUser:h("welcomeUser",{firstName:null!=(b=null==g||null==(p=g.user)||null==(a=p.name)?void 0:a.split(" ")[0])?b:""}),reviewTermsPrompt:h("reviewTermsPrompt"),termsSummaryTitle:h("termsSummaryTitle"),termsSummaryIntro:h("termsSummaryIntro"),acceptableUseTitle:h("acceptableUseTitle"),acceptableUseResponsible:h("acceptableUseResponsible"),acceptableUseRespect:h("acceptableUseRespect"),acceptableUseConduct:h("acceptableUseConduct"),prohibitedContentTitle:h("prohibitedContentTitle"),prohibitedContentIntro:h("prohibitedContentIntro"),prohibitedIllegal:h("prohibitedIllegal"),prohibitedAdult:h("prohibitedAdult"),prohibitedHate:h("prohibitedHate"),prohibitedViolence:h("prohibitedViolence"),prohibitedMisinformation:h("prohibitedMisinformation"),prohibitedPrivacy:h("prohibitedPrivacy"),prohibitedCopyright:h("prohibitedCopyright"),prohibitedMalware:h("prohibitedMalware"),prohibitedSpam:h("prohibitedSpam"),conductTitle:h("conductTitle"),conductDescription:h("conductDescription"),conductLink:h("conductLink"),conductPromotion:h("conductPromotion"),responsibilitiesTitle:h("responsibilitiesTitle"),responsibilitiesSecure:h("responsibilitiesSecure"),responsibilitiesReport:h("responsibilitiesReport"),responsibilitiesAccurate:h("responsibilitiesAccurate"),responsibilitiesComply:h("responsibilitiesComply"),violationsWarning:h("violationsWarning"),readFullTerms:h("readFullTerms"),termsOfService:h("termsOfService"),and:h("and"),privacyPolicy:h("privacyPolicy"),declineAndSignOut:h("declineAndSignOut"),acceptAndContinue:h("acceptAndContinue"),processing:h("processing"),legallyBound:h("legallyBound")},PageLayout:c.PageLayout,Link:s.N_})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=16059)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4082],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4082],{19200:(e,t,o)=>{Promise.resolve().then(o.bind(o,85931))},85931:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>R});var n=o(54568),r=o(7620),a=o(97066),i=o(78525),c=o(26720),s=o(27541),l=o(96006),u=o(47001),d=o(29383),p=o(18450),m=o(28302),f=o(88808),g=o(6922),y=o(27849),h=o(72382),v=o(37030),k=o(22038);function C(){let e=(0,a.c)("Compose"),t=(0,i.Ym)(),o=(0,c.rd)(),C=(0,s.useSearchParams)(),{data:R,status:w}=(0,l.useSession)(),{showError:T,showSuccess:b}=(0,u.useToast)(),D=null==C?void 0:C.get("mode"),F=null==C?void 0:C.get("token");(0,r.useEffect)(()=>{"loading"!==w&&((null==R?void 0:R.backendToken)||o.push("/"))},[R,w,o]);let N=null==C?void 0:C.get("annotationUri"),E=null==C?void 0:C.get("sourceDocumentId"),x=null==C?void 0:C.get("name"),S=null==C?void 0:C.get("entityTypes"),[I,P]=(0,r.useState)(!0),[U,A]=(0,r.useState)(null),[L,O]=(0,r.useState)(null),{activePanel:M}=(0,p.ySJ)(),{theme:_,setTheme:j,resolvedTheme:B}=(0,d.DPo)(),{showLineNumbers:Q,toggleLineNumbers:Y}=(0,m.cvF)(),{hoverDelayMs:z}=(0,u.useHoverDelay)();(0,f.C$z)({"settings:theme-changed":e=>{let{theme:t}=e;return j(t)},"settings:line-numbers-toggled":()=>Y()});let H=(0,u.useResources)(),J=(0,u.useAnnotations)(),$=(0,u.useEntityTypes)(),q=(0,u.useApiClient)(),G=(0,u.useAuthToken)(),{data:K}=$.list.useQuery(),V=(null==K?void 0:K.entityTypes)||[],W=H.create.useMutation(),X=J.updateBody.useMutation(),{data:Z}=H.getByToken.useQuery(F||""),ee=H.createFromToken.useMutation(),et=!!(N&&E&&x),eo="clone"===D&&!!F;(0,r.useEffect)(()=>{(async()=>{if(et){O({annotationUri:N,sourceDocumentId:E,name:x,entityTypes:S?S.split(","):[]}),P(!1);return}if(eo&&Z){if(Z.sourceResource&&q&&G)try{let e=(0,h.N)(Z.sourceResource["@id"]),t=(0,v.f9)(Z.sourceResource)||"text/plain",{data:o}=await q.getResourceRepresentation(e,{accept:t,auth:G}),n=(0,k.rv)(o,t);A({sourceResource:Z.sourceResource,sourceContent:n})}catch(e){console.error("Failed to fetch representation:",e),T("Failed to load resource representation")}else T("Invalid or expired clone token"),o.push("/know/discover");P(!1)}else eo&&!F?(T("Clone token not found. Please try cloning again."),o.push("/know/discover")):P(!1)})()},[D,F,Z,N,E,x,S,null==R?void 0:R.backendToken]);let en=async e=>{try{var t,n,r,a,i,c,s;let l;if("clone"===e.mode){let o=await ee.mutateAsync({token:F,name:e.name,content:e.content,archiveOriginal:null==(n=e.archiveOriginal)||n});if(!(null==(t=o.resource)?void 0:t["@id"]))throw Error("No resource URI returned from server");l=(0,h.N)(o.resource["@id"])}else{let t,o;if(e.file)t=e.file,o=null!=(a=e.format)?a:"application/octet-stream";else{let n=new Blob([e.content||""],{type:null!=(i=e.format)?i:"application/octet-stream"}),r="text/plain"===e.format?".txt":"text/html"===e.format?".html":".md";t=new File([n],e.name+r,{type:null!=(c=e.format)?c:"application/octet-stream"}),o=null!=(s=e.format)?s:"application/octet-stream"}let n=e.charset&&!e.file?"".concat(o,"; charset=").concat(e.charset):o,u=await W.mutateAsync({name:e.name,file:t,format:n,entityTypes:e.entityTypes||[],language:e.language,creationMethod:"ui"});if(!(null==(r=u.resource)?void 0:r["@id"]))throw Error("No resource URI returned from server");if(l=(0,h.N)(u.resource["@id"]),"reference"===e.mode&&e.annotationUri&&e.sourceDocumentId)try{let t=(0,h.U5)(e.annotationUri),o=new URL(e.annotationUri).origin,n=(0,h.Ch)("".concat(o,"/resources/").concat(e.sourceDocumentId,"/annotations/").concat(t));await X.mutateAsync({annotationUri:n,data:{resourceId:e.sourceDocumentId,operations:[{op:"add",item:{type:"SpecificResource",source:l,purpose:"linking"}}]}}),b("Reference successfully linked to the new resource")}catch(e){console.error("Failed to update reference:",e),T("Resource created but failed to update reference. You may need to manually link it.")}}let u=(0,v.mv)({"@id":l});if(!u)throw Error("Failed to extract resource ID from URI");o.push("/know/resource/".concat(encodeURIComponent(u)))}catch(e){throw console.error("Failed to save resource:",e),T(e instanceof Error?e.message:"Failed to save resource. Please try again."),e}};return"loading"===w||I?(0,n.jsx)(u.ComposeLoadingState,{message:"loading"===w?"Checking authentication...":"Loading cloned resource..."}):(null==R?void 0:R.backendToken)?(0,n.jsx)(u.ResourceComposePage,{mode:eo?"clone":et?"reference":"new",cloneData:U,referenceData:L,availableEntityTypes:V,initialLocale:t,theme:B,showLineNumbers:Q,hoverDelayMs:z,activePanel:M,onSaveResource:en,onCancel:()=>o.push("/know/discover"),translations:{title:e("title"),titleEditClone:e("titleEditClone"),titleCompleteReference:e("titleCompleteReference"),subtitleClone:e("subtitleClone"),subtitleReference:e("subtitleReference"),linkedNoticePrefix:e("linkedNoticePrefix"),resourceName:e("resourceName"),resourceNamePlaceholder:e("resourceNamePlaceholder"),entityTypes:e("entityTypes"),language:e("language"),contentSource:e("contentSource"),uploadFile:e("uploadFile"),uploadFileDescription:e("uploadFileDescription"),writeContent:e("writeContent"),writeContentDescription:e("writeContentDescription"),dropFileOrClick:e("dropFileOrClick"),supportedFormats:e("supportedFormats"),mediaType:e("mediaType"),autoDetected:e("autoDetected"),format:e("format"),content:e("content"),resourceContent:e("resourceContent"),encoding:e("encoding"),archiveOriginal:e("archiveOriginal"),cancel:e("cancel"),saving:e("saving"),creating:e("creating"),creatingAndLinking:e("creatingAndLinking"),saveClonedResource:e("saveClonedResource"),createAndLinkResource:e("createAndLinkResource"),createResource:e("createResource")},ToolbarPanels:y.t,Toolbar:g.M7E}):null}function R(){let e=(0,a.c)("Compose");return(0,n.jsx)(r.Suspense,{fallback:(0,n.jsx)(u.ComposeLoadingState,{message:e("loading")}),children:(0,n.jsx)(C,{})})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=19200)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6973],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6973],{9501:(e,s,t)=>{Promise.resolve().then(t.bind(t,15317))},15317:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var o=t(54568),n=t(7620),a=t(97066),r=t(26720),c=t(47001),i=t(27849);function u(){let e=(0,a.c)("Discover"),s=(0,r.rd)(),{activePanel:t}=(0,c.usePanelBrowse)(),{theme:u,setTheme:l,resolvedTheme:d}=(0,c.useTheme)(),{showLineNumbers:h,toggleLineNumbers:g}=(0,c.useLineNumbers)(),m=(0,n.useCallback)(e=>{let{theme:s}=e;l(s)},[l]),p=(0,n.useCallback)(()=>{g()},[g]);(0,c.useEventSubscriptions)({"settings:theme-changed":m,"settings:line-numbers-toggled":p});let v=(0,c.useResources)(),y=(0,c.useEntityTypes)(),{data:R,isLoading:b}=v.list.useQuery({limit:10,archived:!1}),{data:T}=y.list.useQuery(),{data:k,isFetching:w}=v.search.useQuery("",20),B=(null==R?void 0:R.resources)||[],E=(null==k?void 0:k.resources)||[],N=(null==T?void 0:T.entityTypes)||[];return(0,o.jsx)(c.ResourceDiscoveryPage,{recentDocuments:B,searchDocuments:E,entityTypes:N,isLoadingRecent:b,isSearching:w,theme:d,showLineNumbers:h,activePanel:t,onNavigateToResource:e=>{s.push("/know/resource/".concat(encodeURIComponent(e)))},onNavigateToCompose:()=>{s.push("/know/compose")},translations:{title:e("title"),subtitle:e("subtitle"),searchPlaceholder:e("searchPlaceholder"),searchButton:e("searchButton"),searching:e("searching"),filterByEntityType:e("filterByEntityType"),all:e("all"),recentResources:e("recentResources"),searchResults:s=>e("searchResults",{count:s}),documentsTaggedWith:s=>e("documentsTaggedWith",{entityType:s}),noResultsFound:s=>e("noResultsFound",{query:s}),noResourcesAvailable:e("noResourcesAvailable"),composeFirstResource:e("composeFirstResource"),archived:e("archived"),created:e("created"),loadingKnowledgeBase:e("loadingKnowledgeBase")},ToolbarPanels:i.t})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=9501)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4686],{14922:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>j});var s=o(54568),n=o(7620),t=o(97066),l=o(96006),a=o(47001),i=o(26720),d=o(46139),c=o(48037),u=o(7444),h=o(5530);let x=e=>{let{className:r}=e;return(0,s.jsx)("span",{className:r,style:{fontSize:"1.25rem",lineHeight:"1"},children:"\uD83D\uDD2D"})};function m(e){let{isCollapsed:r,toggleCollapsed:o,navigationMenu:l}=e,m=(0,t.c)("Sidebar"),f=(0,i.a8)(),p=(0,i.rd)(),{openResources:v,removeResource:b,reorderResources:g}=(0,a.useOpenResources)(),k=[{name:m("discover"),href:"/know/discover",icon:x,description:m("searchAndBrowse")},{name:m("compose"),href:"/know/compose",icon:d.A,description:m("composeNewResource")}],w=(0,n.useCallback)(()=>{o()},[o]),j=(0,n.useCallback)(e=>{let{resourceId:r}=e;b(r),f==="/know/resource/".concat(r)&&p.push("/know/discover")},[b,f,p]),N=(0,n.useCallback)(e=>{let{oldIndex:r,newIndex:o}=e;g(r,o)},[g]);return(0,a.useEventSubscriptions)({"browse:sidebar-toggle":w,"browse:resource-close":j,"browse:resource-reorder":N}),(0,s.jsx)(a.CollapsibleResourceNavigation,{fixedItems:k,resources:v,isCollapsed:r,currentPath:f,LinkComponent:i.N_,onNavigate:e=>{p.push(e)},getResourceHref:e=>"/know/resource/".concat(e),className:"knowledge-navigation",translations:{title:m("title")},icons:{chevronLeft:c.A,bars:u.A,close:h.A},navigationMenu:l})}var f=o(75956),p=o(34805);function v(){let e=(0,t.c)("Navigation"),r=(0,t.c)("Home"),{isAuthenticated:o,isAdmin:n,isModerator:l}=(0,p.As)();return(0,s.jsx)(a.LeftSidebar,{Link:f.N,routes:f.J,t:e,tHome:r,brandingLink:"/",collapsible:!0,storageKey:"knowledgeNavCollapsed",isAuthenticated:o,isAdmin:n,isModerator:l,children:(e,r,o)=>(0,s.jsx)(m,{isCollapsed:e,toggleCollapsed:r,navigationMenu:o})})}var b=o(68167),g=o(53630),k=o(33777),w=o(4869);function j(e){let{children:r}=e,o=(0,t.c)("Footer"),i=(0,n.useContext)(g.GZ),d=function(){let[e,r]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=localStorage.getItem("openDocuments");if(e)try{let o=JSON.parse(e);r(o.sort((e,r)=>void 0!==e.order&&void 0!==r.order?e.order-r.order:e.openedAt-r.openedAt))}catch(e){console.error("Failed to parse open resources:",e)}s(!0)},[]),(0,n.useEffect)(()=>{o&&localStorage.setItem("openDocuments",JSON.stringify(e))},[e,o]),(0,n.useEffect)(()=>{let e=e=>{if("openDocuments"===e.key&&e.newValue)try{let o=JSON.parse(e.newValue);r(o.sort((e,r)=>void 0!==e.order&&void 0!==r.order?e.order-r.order:e.openedAt-r.openedAt))}catch(e){console.error("Failed to parse open resources from storage event:",e)}};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]);let t=(0,n.useCallback)((e,o,s)=>{r(r=>{if(r.find(r=>r.id===e))return r.map(r=>r.id===e?{...r,name:o,...s&&{mediaType:s}}:r);let n=r.length>0?Math.max(...r.map(e=>{var r;return null!=(r=e.order)?r:e.openedAt})):0;return[...r,{id:e,name:o,openedAt:Date.now(),order:n+1,...s&&{mediaType:s}}]})},[]),l=(0,n.useCallback)(e=>{r(r=>r.filter(r=>r.id!==e))},[]),a=(0,n.useCallback)((e,o)=>{r(r=>r.map(r=>r.id===e?{...r,name:o}:r))},[]),i=(0,n.useCallback)((e,o)=>{r(r=>(0,k.be)(r,e,o).map((e,r)=>({...e,order:r})))},[]);return(0,n.useMemo)(()=>({openResources:e,addResource:t,removeResource:l,updateResourceName:a,reorderResources:i}),[e,t,l,a,i])}(),c=function(){let e=(0,w.jE)();return(0,n.useMemo)(()=>({invalidateAnnotations:r=>{e.invalidateQueries({queryKey:["resources",r,"annotations"]})},invalidateEvents:r=>{e.invalidateQueries({queryKey:["resources",r,"events"]})}}),[e])}(),{data:u,status:h}=(0,l.useSession)(),x=(null==u?void 0:u.backendToken)||null;return"loading"===h?(0,s.jsx)("div",{className:"h-screen flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Loading..."})]})}):"unauthenticated"!==h&&(null==u?void 0:u.backendToken)?(0,s.jsx)(a.AuthTokenProvider,{token:x,children:(0,s.jsx)(a.ApiClientProvider,{baseUrl:"",children:(0,s.jsx)(a.CacheProvider,{cacheManager:c,children:(0,s.jsx)(a.OpenResourcesProvider,{openResourcesManager:d,children:(0,s.jsx)(a.ResourceAnnotationsProvider,{children:(0,s.jsxs)("div",{className:"h-screen semiont-knowledge-layout semiont-layout-with-footer flex flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,s.jsx)(v,{}),(0,s.jsx)("main",{className:"flex-1 w-full px-2 pb-6 flex flex-col overflow-hidden",children:(0,s.jsx)("div",{className:"w-full mx-auto flex-1 flex flex-col h-full overflow-hidden",children:r})})]}),(0,s.jsx)(a.Footer,{Link:f.N,routes:f.J,t:o,CookiePreferences:b.f,...(null==i?void 0:i.openKeyboardHelp)&&{onOpenKeyboardHelp:i.openKeyboardHelp}})]})})})})})}):(0,s.jsx)("div",{className:"h-screen flex items-center justify-center p-4",children:(0,s.jsxs)("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-blue-100 dark:bg-blue-900/30 rounded-full flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Authentication Required"})]}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:"You need to be signed in to access the knowledge base."}),(0,s.jsx)("button",{onClick:()=>(0,l.signIn)(void 0,{callbackUrl:window.location.pathname}),className:"w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Sign In"})]})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4686],{14922:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>j});var s=o(54568),n=o(7620),t=o(97066),l=o(96006),a=o(47001),i=o(26720),d=o(46139),c=o(48037),u=o(7444),h=o(5530);let x=e=>{let{className:r}=e;return(0,s.jsx)("span",{className:r,style:{fontSize:"1.25rem",lineHeight:"1"},children:"\uD83D\uDD2D"})};function m(e){let{isCollapsed:r,toggleCollapsed:o,navigationMenu:l}=e,m=(0,t.c)("Sidebar"),f=(0,i.a8)(),p=(0,i.rd)(),{openResources:v,removeResource:b,reorderResources:g}=(0,a.useOpenResources)(),k=[{name:m("discover"),href:"/know/discover",icon:x,description:m("searchAndBrowse")},{name:m("compose"),href:"/know/compose",icon:d.A,description:m("composeNewResource")}],w=(0,n.useCallback)(()=>{o()},[o]),j=(0,n.useCallback)(e=>{let{resourceId:r}=e;b(r),f==="/know/resource/".concat(r)&&p.push("/know/discover")},[b,f,p]),N=(0,n.useCallback)(e=>{let{oldIndex:r,newIndex:o}=e;g(r,o)},[g]);return(0,a.useEventSubscriptions)({"browse:sidebar-toggle":w,"browse:resource-close":j,"browse:resource-reorder":N}),(0,s.jsx)(a.CollapsibleResourceNavigation,{fixedItems:k,resources:v,isCollapsed:r,currentPath:f,LinkComponent:i.N_,onNavigate:e=>{p.push(e)},getResourceHref:e=>"/know/resource/".concat(e),className:"knowledge-navigation",translations:{title:m("title")},icons:{chevronLeft:c.A,bars:u.A,close:h.A},navigationMenu:l})}var f=o(75956),p=o(34805);function v(){let e=(0,t.c)("Navigation"),r=(0,t.c)("Home"),{isAuthenticated:o,isAdmin:n,isModerator:l}=(0,p.As)();return(0,s.jsx)(a.LeftSidebar,{Link:f.N,routes:f.J,t:e,tHome:r,brandingLink:"/",collapsible:!0,storageKey:"knowledgeNavCollapsed",isAuthenticated:o,isAdmin:n,isModerator:l,children:(e,r,o)=>(0,s.jsx)(m,{isCollapsed:e,toggleCollapsed:r,navigationMenu:o})})}var b=o(68167),g=o(53630),k=o(33777),w=o(4869);function j(e){let{children:r}=e,o=(0,t.c)("Footer"),i=(0,n.useContext)(g.GZ),d=function(){let[e,r]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=localStorage.getItem("openDocuments");if(e)try{let o=JSON.parse(e);r(o.sort((e,r)=>void 0!==e.order&&void 0!==r.order?e.order-r.order:e.openedAt-r.openedAt))}catch(e){console.error("Failed to parse open resources:",e)}s(!0)},[]),(0,n.useEffect)(()=>{o&&localStorage.setItem("openDocuments",JSON.stringify(e))},[e,o]),(0,n.useEffect)(()=>{let e=e=>{if("openDocuments"===e.key&&e.newValue)try{let o=JSON.parse(e.newValue);r(o.sort((e,r)=>void 0!==e.order&&void 0!==r.order?e.order-r.order:e.openedAt-r.openedAt))}catch(e){console.error("Failed to parse open resources from storage event:",e)}};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]);let t=(0,n.useCallback)((e,o,s)=>{r(r=>{if(r.find(r=>r.id===e))return r.map(r=>r.id===e?{...r,name:o,...s&&{mediaType:s}}:r);let n=r.length>0?Math.max(...r.map(e=>{var r;return null!=(r=e.order)?r:e.openedAt})):0;return[...r,{id:e,name:o,openedAt:Date.now(),order:n+1,...s&&{mediaType:s}}]})},[]),l=(0,n.useCallback)(e=>{r(r=>r.filter(r=>r.id!==e))},[]),a=(0,n.useCallback)((e,o)=>{r(r=>r.map(r=>r.id===e?{...r,name:o}:r))},[]),i=(0,n.useCallback)((e,o)=>{r(r=>(0,k.be)(r,e,o).map((e,r)=>({...e,order:r})))},[]);return(0,n.useMemo)(()=>({openResources:e,addResource:t,removeResource:l,updateResourceName:a,reorderResources:i}),[e,t,l,a,i])}(),c=function(){let e=(0,w.jE)();return(0,n.useMemo)(()=>({invalidateAnnotations:r=>{e.invalidateQueries({queryKey:["resources",r,"annotations"]})},invalidateEvents:r=>{e.invalidateQueries({queryKey:["resources",r,"events"]})}}),[e])}(),{data:u,status:h}=(0,l.useSession)(),x=(null==u?void 0:u.backendToken)||null;return"loading"===h?(0,s.jsx)("div",{className:"h-screen flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Loading..."})]})}):"unauthenticated"!==h&&(null==u?void 0:u.backendToken)?(0,s.jsx)(a.AuthTokenProvider,{token:x,children:(0,s.jsx)(a.ApiClientProvider,{baseUrl:"",children:(0,s.jsx)(a.CacheProvider,{cacheManager:c,children:(0,s.jsx)(a.OpenResourcesProvider,{openResourcesManager:d,children:(0,s.jsx)(a.ResourceAnnotationsProvider,{children:(0,s.jsxs)("div",{className:"h-screen semiont-knowledge-layout semiont-layout-with-footer flex flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,s.jsx)(v,{}),(0,s.jsx)("main",{className:"flex-1 w-full px-2 pb-6 flex flex-col overflow-hidden",children:(0,s.jsx)("div",{className:"w-full mx-auto flex-1 flex flex-col h-full overflow-hidden",children:r})})]}),(0,s.jsx)(a.Footer,{Link:f.N,routes:f.J,t:o,CookiePreferences:b.f,...(null==i?void 0:i.openKeyboardHelp)&&{onOpenKeyboardHelp:i.openKeyboardHelp}})]})})})})})}):(0,s.jsx)("div",{className:"h-screen flex items-center justify-center p-4",children:(0,s.jsxs)("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-blue-100 dark:bg-blue-900/30 rounded-full flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Authentication Required"})]}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:"You need to be signed in to access the knowledge base."}),(0,s.jsx)("button",{onClick:()=>(0,l.signIn)(void 0,{callbackUrl:window.location.pathname}),className:"w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Sign In"})]})})}},92294:(e,r,o)=>{Promise.resolve().then(o.bind(o,14922))}},e=>{e.O(0,[2076,8096,587,7358],()=>e(e.s=92294)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2509],{27246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(54568),a=r(7620),c=r(26720),l=r(97066);function n(){let e=(0,l.c)("Sidebar"),t=(0,c.rd)(),[r,n]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{let e=localStorage.getItem("lastViewedDocumentId");e?t.replace("/know/resource/".concat(e)):t.replace("/know/discover"),n(!1)},[t]),r)?(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:e("loading")})}):(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:e("redirecting")})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2509],{27246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(54568),a=r(7620),c=r(26720),l=r(97066);function n(){let e=(0,l.c)("Sidebar"),t=(0,c.rd)(),[r,n]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{let e=localStorage.getItem("lastViewedDocumentId");e?t.replace("/know/resource/".concat(e)):t.replace("/know/discover"),n(!1)},[t]),r)?(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:e("loading")})}):(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:e("redirecting")})})}},93087:(e,t,r)=>{Promise.resolve().then(r.bind(r,27246))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=93087)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9864],{1810:(e,r,t)=>{Promise.resolve().then(t.bind(t,94244))},94244:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>b});var a=t(54568),s=t(7620),l=t(27541),o=t(78525),n=t(47001),d=t(72382),i=t(75956),c=t(27849),x=t(97066);function u(e){let{isOpen:r,onClose:t,onSelect:s,searchTerm:l=""}=e,o=(0,x.c)("SearchResources");return(0,a.jsx)(n.ResourceSearchModal,{isOpen:r,onClose:t,onSelect:s,searchTerm:l,translations:{title:o("title"),placeholder:o("placeholder"),searching:o("searching"),noResults:o("noResults"),close:o("close")}})}var m=t(21848),g=t(97235),y=t(32717);function h(e){let{isOpen:r,onClose:t,onGenerate:l,defaultTitle:n,context:d,contextLoading:i,contextError:c}=e,u=(0,x.c)("GenerationConfigModal"),h=(0,o.Ym)(),[b,p]=(0,s.useState)(n),[f,v]=(0,s.useState)(""),[j,k]=(0,s.useState)(h),[N,w]=(0,s.useState)(.7),[C,F]=(0,s.useState)(500);(0,s.useEffect)(()=>{r&&(p(n),v(""),k(h),w(.7),F(500))},[r,n,h]);let R=null==d?void 0:d.sourceContext,S=R&&(R.before||R.after);return(0,a.jsx)(m.e,{appear:!0,show:r,as:s.Fragment,children:(0,a.jsxs)(g.lG,{as:"div",className:"relative z-[1001]",onClose:t,children:[(0,a.jsx)(m._,{as:s.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm"})}),(0,a.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,a.jsx)(m._,{as:s.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(g.Lj,{className:"w-full max-w-[700px] transform overflow-hidden rounded-lg bg-white dark:bg-gray-800 shadow-xl border border-gray-200 dark:border-gray-700 p-6 transition-all",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)(g.L3,{className:"text-lg font-semibold text-gray-900 dark:text-white",children:u("title")}),(0,a.jsx)("button",{onClick:t,className:"text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300",children:"✕"})]}),(0,a.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!d)return void console.error("Cannot generate without context");let r=f.trim();l({title:b,...r?{prompt:r}:{},language:j,temperature:N,maxTokens:C,context:d}),t()},className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:u("sourceContext")}),i&&(0,a.jsx)("div",{className:"text-center py-4 text-gray-600 dark:text-gray-400",children:u("loadingContext")}),!!c&&(0,a.jsx)("div",{className:"text-center py-4 text-red-600 dark:text-red-400",children:u("failedContext")}),S&&(0,a.jsx)("div",{className:"p-3 bg-gray-50 dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-700 max-h-[200px] overflow-y-auto",children:(0,a.jsxs)("div",{className:"text-sm font-mono whitespace-pre-wrap text-gray-600 dark:text-gray-400",children:[R.before&&(0,a.jsx)("span",{children:R.before}),(0,a.jsx)("span",{className:"bg-blue-100 dark:bg-blue-900/40 px-1 font-semibold text-blue-900 dark:text-blue-200",children:R.selected}),R.after&&(0,a.jsx)("span",{children:R.after})]})}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:u("contextHelp")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"title",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:u("resourceTitle")}),(0,a.jsx)("input",{id:"title",type:"text",value:b,onChange:e=>p(e.target.value),required:!0,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg dark:bg-gray-700 text-gray-900 dark:text-white",placeholder:u("resourceTitlePlaceholder")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"prompt",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:u("additionalInstructions")}),(0,a.jsx)("textarea",{id:"prompt",value:f,onChange:e=>v(e.target.value),rows:3,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg dark:bg-gray-700 text-gray-900 dark:text-white",placeholder:u("additionalInstructionsPlaceholder")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"language",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:u("language")}),(0,a.jsx)("select",{id:"language",value:j,onChange:e=>k(e.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg dark:bg-gray-700 text-gray-900 dark:text-white",children:y.YZ.map(e=>(0,a.jsx)("option",{value:e.code,children:e.nativeName},e.code))}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:u("languageHelp")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"temperature",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:u("creativity",{value:N.toFixed(1)})}),(0,a.jsx)("input",{id:"temperature",type:"range",min:"0",max:"1",step:"0.1",value:N,onChange:e=>w(parseFloat(e.target.value)),className:"w-full"}),(0,a.jsxs)("div",{className:"flex justify-between text-xs text-gray-500 dark:text-gray-400 mt-1",children:[(0,a.jsx)("span",{children:u("creativityFocused")}),(0,a.jsx)("span",{children:u("creativityCreative")})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"maxTokens",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:u("maxLength")}),(0,a.jsx)("input",{id:"maxTokens",type:"number",min:"100",max:"4000",step:"100",value:C,onChange:e=>F(parseInt(e.target.value)),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg dark:bg-gray-700 text-gray-900 dark:text-white"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:u("maxLengthHelp")})]}),(0,a.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,a.jsx)("button",{type:"button",onClick:t,className:"flex-1 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:u("cancel")}),(0,a.jsx)("button",{type:"submit",disabled:i||!d,className:"flex-1 px-4 py-2 bg-gradient-to-r from-blue-600 to-cyan-600 hover:from-blue-700 hover:to-cyan-700 text-white rounded-lg font-medium transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:u("generate")})]})]})]})})})})]})})}function b(){let e=(0,l.useParams)(),r=(0,o.Ym)(),t=(0,d.N)("".concat(window.location.origin,"/resources/").concat(null==e?void 0:e.id)),{data:x,isLoading:m,isError:g,error:y,refetch:b}=(0,n.useResources)().get.useQuery(t);if((0,s.useEffect)(()=>{g&&!m&&console.error("[Document] Failed to load resource ".concat(t,":"),y)},[g,m,t,y]),m||!x)return(0,a.jsx)(n.ResourceLoadingState,{});if(g)return(0,a.jsx)(n.ResourceErrorState,{error:y,onRetry:()=>b()});if(!x.resource)return(0,a.jsx)(n.ResourceErrorState,{error:Error("Resource not found"),onRetry:()=>b()});let p=x.resource,f=(0,d.N)(p["@id"]);return f!==t&&console.warn("[Document] URI mismatch:\n"+" Constructed: ".concat(t,"\n")+" Canonical: ".concat(f,"\n")+"This may indicate environment misconfiguration."),(0,a.jsx)(n.ResourceViewerPage,{resource:p,rUri:f,locale:r,Link:i.N,routes:i.J,ToolbarPanels:c.t,SearchResourcesModal:u,GenerationConfigModal:h,refetchDocument:b})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=1810)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{7394:(e,r,s)=>{"use strict";s.d(r,{Providers:()=>y});var t=s(54568),a=s(7620),n=s(96980),i=s(66159),o=s(50536),l=s(4869),c=s(96006),d=s(47001),u=s(53630),x=s(26720),h=s(88808);function m(){let e=(0,x.rd)(),r=(0,a.useCallback)(r=>{let{url:s,cancelFallback:t}=r;t(),e.push(s)},[e]),s=(0,a.useCallback)(r=>{let{path:s}=r;e.push(s)},[e]);return(0,h.C$z)({"browse:external-navigate":r,"browse:router-push":s}),null}class g extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){}render(){if(this.state.hasError){var e,r,s,a,n,i;let o=(null==(r=this.state.error)||null==(e=r.message)?void 0:e.toLowerCase().includes("auth"))||(null==(a=this.state.error)||null==(s=a.message)?void 0:s.toLowerCase().includes("session"))||(null==(i=this.state.error)||null==(n=i.message)?void 0:n.toLowerCase().includes("token"));return(0,t.jsx)("div",{className:"min-h-[400px] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-red-600 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:o?"Authentication Error":"Something went wrong"})]}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:o?"There was a problem with your authentication. Please try signing in again.":"An unexpected error occurred. Please try refreshing the page."}),!1,(0,t.jsx)("div",{className:"flex gap-3",children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:this.handleReset,className:"flex-1 px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 transition-colors",children:"Try Again"}),(0,t.jsx)("button",{onClick:this.handleSignIn,className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Sign In"})]}):(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Refresh Page"})})]})})}return this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:null})},this.handleSignIn=()=>{(0,c.signIn)(void 0,{callbackUrl:window.location.pathname})},this.state={hasError:!1,error:null}}}var p=s(37030),f=s(78525);function b(e){let{children:r,queryClient:s}=e,n=function(){let{data:e}=(0,c.useSession)(),[r,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(null==e?void 0:e.backendToken)try{let r=e.backendToken.split(".");if(3===r.length&&r[1]){let e=JSON.parse(atob(r[1]));e.exp&&s(new Date(1e3*e.exp))}}catch(e){console.error("Failed to parse token expiration:",e),s(null)}else s(null)},[e]),(0,a.useMemo)(()=>{let s=Date.now(),t=r?r.getTime()-s:null;return{isAuthenticated:!!(null==e?void 0:e.backendToken),expiresAt:r,timeUntilExpiry:t,isExpiringSoon:null!==t&&t<3e5&&t>0}},[e,r])}(),i=function(){let e=(0,f.ot)(),r=(0,f.Ym)();return(0,a.useMemo)(()=>({t:(r,s,t)=>{var a;let n=null==(a=e[r])?void 0:a[s];if(!n)return"".concat(r,".").concat(s);if(t&&"string"==typeof n){let e=n;return Object.entries(t).forEach(r=>{let[s,t]=r;e=e.replace(RegExp("\\{".concat(s,"\\}"),"g"),String(t))}),e}return n}}),[e,r])}();return(0,t.jsx)(g,{children:(0,t.jsx)(d.SessionProvider,{sessionManager:n,children:(0,t.jsx)(d.TranslationProvider,{translationManager:i,children:(0,t.jsx)(l.Ht,{client:s,children:(0,t.jsx)(d.ToastProvider,{children:(0,t.jsx)(d.LiveRegionProvider,{children:(0,t.jsx)(u.Sv,{children:(0,t.jsx)(d.ThemeProvider,{children:(0,t.jsxs)(d.EventBusProvider,{children:[(0,t.jsx)(m,{}),r]})})})})})})})})})}function y(e){let{children:r}=e,[s]=(0,a.useState)(()=>new n.E({queryCache:new i.$({onError:e=>{e instanceof p.LG&&(401===e.status?(0,d.dispatch401Error)("Your session has expired. Please sign in again."):403===e.status&&(0,d.dispatch403Error)("You do not have permission to access this resource."))}}),mutationCache:new o.q({onError:e=>{e instanceof p.LG&&(401===e.status?(0,d.dispatch401Error)("Your session has expired. Please sign in again."):403===e.status&&(0,d.dispatch403Error)("You do not have permission to perform this action."))}}),defaultOptions:{queries:{retry:(e,r)=>(!(r instanceof p.LG)||401!==r.status&&403!==r.status&&(!(r.status>=400)||!(r.status<500)))&&e<3,retryDelay:e=>Math.min(1e3*2**e,3e4),staleTime:3e5,refetchOnWindowFocus:!1}}}));return(0,t.jsx)(c.SessionProvider,{children:(0,t.jsx)(b,{queryClient:s,children:r})})}},8761:()=>{},13395:(e,r,s)=>{"use strict";s.d(r,{CookieBanner:()=>c});var t=s(54568),a=s(7620),n=s(97066),i=s(95814),o=s(47305),l=s(59880);function c(e){let{className:r=""}=e,s=(0,n.c)("CookieBanner"),[c,d]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1),[h,m]=(0,a.useState)(!1),[g,p]=(0,a.useState)("GENERAL"),[f,b]=(0,a.useState)({necessary:!0,analytics:!1,marketing:!1,preferences:!1});(0,a.useEffect)(()=>{(async()=>{if((0,i.Tn)()){d(!0);try{let[e,r]=await Promise.all([(0,i.xS)(),(0,i.xO)()]);e?p("GDPR"):r?p("CCPA"):p("GENERAL")}catch(e){console.error("Failed to detect region:",e),p("GENERAL")}}})()},[]);let y=async()=>{m(!0);try{await Promise.resolve((0,i.Jk)({necessary:!0,analytics:!0,marketing:!0,preferences:!0})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{m(!1)}},v=async()=>{m(!0);try{await Promise.resolve((0,i.Jk)({necessary:!0,analytics:!1,marketing:!1,preferences:!1})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{m(!1)}},j=async()=>{m(!0);try{await Promise.resolve((0,i.Jk)(f)),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{m(!1)}};if(!c)return null;let k=(()=>{switch(g){case"GDPR":return{title:s("gdprTitle"),description:s("gdprDescription"),learnMore:s("gdprLearnMore")};case"CCPA":return{title:s("ccpaTitle"),description:s("ccpaDescription"),learnMore:s("ccpaLearnMore")};default:return{title:s("generalTitle"),description:s("generalDescription"),learnMore:s("generalLearnMore")}}})();return(0,t.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-white border-t border-gray-200 shadow-lg ".concat(r),children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto p-4 sm:p-6",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between space-y-4 lg:space-y-0",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:k.title}),(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-2",children:k.description}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:k.learnMore})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-3 lg:ml-6",children:[(0,t.jsx)("button",{type:"button",onClick:()=>x(!u),className:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors",children:(0,t.jsxs)("span",{className:"flex items-center",children:[s("customize"),u?(0,t.jsx)(o.A,{className:"w-4 h-4 ml-1"}):(0,t.jsx)(l.A,{className:"w-4 h-4 ml-1"})]})}),"GDPR"!==g&&(0,t.jsx)("button",{type:"button",onClick:v,disabled:h,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 transition-colors",children:h?s("saving"):s("rejectAll")}),(0,t.jsx)("button",{type:"button",onClick:y,disabled:h,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 transition-colors",children:h?s("saving"):s("acceptAll")})]})]}),u&&(0,t.jsx)("div",{className:"border-t border-gray-200 pt-4",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h4",{className:"text-base font-medium text-gray-900",children:s("cookiePreferences")}),(0,t.jsx)("div",{className:"space-y-3",children:i.wD.map(e=>(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"flex items-center h-5",children:(0,t.jsx)("input",{id:"cookie-".concat(e.id),type:"checkbox",checked:f[e.id]||!1,onChange:()=>{var r;"necessary"!==(r=e.id)&&b(e=>({...e,[r]:!e[r]}))},disabled:e.required||h,className:"h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded disabled:opacity-50"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("label",{htmlFor:"cookie-".concat(e.id),className:"text-sm font-medium text-gray-900 cursor-pointer",children:[e.name,e.required&&(0,t.jsx)("span",{className:"text-xs text-gray-500 ml-1",children:s("required")})]}),(0,t.jsx)("p",{className:"text-xs text-gray-600 mt-1",children:e.description}),(0,t.jsxs)("details",{className:"mt-1",children:[(0,t.jsx)("summary",{className:"text-xs text-blue-600 cursor-pointer hover:text-blue-800",children:s("viewCookies")}),(0,t.jsx)("div",{className:"mt-1 text-xs text-gray-500",children:e.cookies.join(", ")})]})]})]},e.id))}),(0,t.jsxs)("div",{className:"flex justify-end space-x-3 pt-4",children:[(0,t.jsx)("button",{type:"button",onClick:()=>x(!1),className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:s("cancel")}),(0,t.jsx)("button",{type:"button",onClick:j,disabled:h,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50",children:h?s("saving"):s("savePreferences")})]})]})})]})})})}},13540:(e,r,s)=>{Promise.resolve().then(s.t.bind(s,8761,23)),Promise.resolve().then(s.bind(s,7394)),Promise.resolve().then(s.bind(s,74687)),Promise.resolve().then(s.bind(s,13395)),Promise.resolve().then(s.t.bind(s,51885,23)),Promise.resolve().then(s.bind(s,30634)),Promise.resolve().then(s.bind(s,60174)),Promise.resolve().then(s.t.bind(s,91790,23)),Promise.resolve().then(s.t.bind(s,29719,23)),Promise.resolve().then(s.bind(s,47001))},51885:()=>{},74687:(e,r,s)=>{"use strict";s.d(r,{ClientModals:()=>x});var t=s(54568),a=s(47001),n=s(7620),i=s(21848),o=s(97235),l=s(96006);function c(){let{isAuthenticated:e}=(0,a.useSessionContext)(),[r,s]=(0,n.useState)(e),[c,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{r&&!e&&d(!0),s(e)},[e,r]),(0,n.useEffect)(()=>(0,a.onAuthEvent)(a.AUTH_EVENTS.UNAUTHORIZED,()=>{d(!0)}),[]);let u=()=>{d(!1),window.location.href="/"};return(0,t.jsx)(i.e,{appear:!0,show:c,as:n.Fragment,children:(0,t.jsxs)(o.lG,{as:"div",className:"relative z-[10000]",onClose:u,children:[(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"})}),(0,t.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(o.Lj,{className:"w-full max-w-md transform overflow-hidden rounded-lg bg-white dark:bg-gray-800 shadow-xl transition-all",children:[(0,t.jsxs)("div",{className:"p-6 pb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-red-600 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,t.jsx)(o.L3,{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Session Expired"})]}),(0,t.jsx)(o.rr,{className:"text-gray-600 dark:text-gray-300",children:"Your session has expired for security reasons. Please sign in again to continue working."})]}),(0,t.jsxs)("div",{className:"px-6 pb-6 flex gap-3 justify-end",children:[(0,t.jsx)("button",{onClick:u,className:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 transition-colors",children:"Go to Home"}),(0,t.jsx)("button",{onClick:()=>{(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition-colors",children:"Sign In Again"})]})]})})})})]})})}var d=s(26720);function u(){var e;let[r,s]=(0,n.useState)(!1),[c,u]=(0,n.useState)(""),x=(0,d.rd)(),{data:h}=(0,l.useSession)();(0,n.useEffect)(()=>(0,a.onAuthEvent)(a.AUTH_EVENTS.FORBIDDEN,e=>{u(e.detail.message||"You do not have permission to perform this action."),s(!0)}),[]);let m=()=>{s(!1),x.back()};return(0,t.jsx)(i.e,{appear:!0,show:r,as:n.Fragment,children:(0,t.jsxs)(o.lG,{as:"div",className:"relative z-[10000]",onClose:m,children:[(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"})}),(0,t.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(o.Lj,{className:"w-full max-w-md transform overflow-hidden rounded-lg bg-white dark:bg-gray-800 shadow-xl transition-all",children:[(0,t.jsxs)("div",{className:"p-6 pb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-amber-100 dark:bg-amber-900/30 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,t.jsx)(o.L3,{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Access Denied"})]}),(0,t.jsx)(o.rr,{className:"text-gray-600 dark:text-gray-300 mb-4",children:c}),(0,t.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-900/50 rounded-lg p-3 text-sm",children:[(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400 mb-2",children:"This could be because:"}),(0,t.jsxs)("ul",{className:"list-disc list-inside text-gray-500 dark:text-gray-500 space-y-1",children:[(0,t.jsx)("li",{children:"You don't have the required permissions"}),(0,t.jsx)("li",{children:"The resource is restricted to specific users or teams"}),(0,t.jsx)("li",{children:"Your account type doesn't include this feature"})]})]}),(null==h||null==(e=h.user)?void 0:e.email)&&(0,t.jsxs)("div",{className:"mt-4 text-xs text-gray-500 dark:text-gray-400",children:["Currently signed in as: ",(0,t.jsx)("span",{className:"font-medium",children:h.user.email})]})]}),(0,t.jsx)("div",{className:"px-6 pb-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{onClick:m,className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition-colors",children:"Go Back"}),(0,t.jsx)("button",{onClick:()=>{s(!1),x.push("/")},className:"flex-1 px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 border border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors",children:"Go to Home"})]}),(0,t.jsxs)("div",{className:"flex gap-2 pt-2 border-t border-gray-200 dark:border-gray-700",children:[(0,t.jsx)("button",{onClick:()=>{s(!1),(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"flex-1 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 transition-colors",children:"Switch Account"}),(0,t.jsx)("button",{onClick:()=>{s(!1),alert("Access request feature coming soon. Please contact your administrator.")},className:"flex-1 px-3 py-1.5 text-sm text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors",children:"Request Access"})]})]})})]})})})})]})})}function x(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.SessionExpiryBanner,{}),(0,t.jsx)(c,{}),(0,t.jsx)(u,{})]})}}},e=>{e.O(0,[181,2210,9243,4626,6667,8096,6937,2076,587,7358],()=>e(e.s=13540)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{7394:(e,r,s)=>{"use strict";s.d(r,{Providers:()=>y});var t=s(54568),a=s(7620),n=s(96980),i=s(66159),o=s(50536),l=s(4869),c=s(96006),d=s(47001),u=s(53630),x=s(26720),h=s(88808);function m(){let e=(0,x.rd)(),r=(0,a.useCallback)(r=>{let{url:s,cancelFallback:t}=r;t(),e.push(s)},[e]),s=(0,a.useCallback)(r=>{let{path:s}=r;e.push(s)},[e]);return(0,h.C$z)({"browse:external-navigate":r,"browse:router-push":s}),null}class g extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){}render(){if(this.state.hasError){var e,r,s,a,n,i;let o=(null==(r=this.state.error)||null==(e=r.message)?void 0:e.toLowerCase().includes("auth"))||(null==(a=this.state.error)||null==(s=a.message)?void 0:s.toLowerCase().includes("session"))||(null==(i=this.state.error)||null==(n=i.message)?void 0:n.toLowerCase().includes("token"));return(0,t.jsx)("div",{className:"min-h-[400px] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-red-600 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:o?"Authentication Error":"Something went wrong"})]}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:o?"There was a problem with your authentication. Please try signing in again.":"An unexpected error occurred. Please try refreshing the page."}),!1,(0,t.jsx)("div",{className:"flex gap-3",children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:this.handleReset,className:"flex-1 px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 transition-colors",children:"Try Again"}),(0,t.jsx)("button",{onClick:this.handleSignIn,className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Sign In"})]}):(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Refresh Page"})})]})})}return this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:null})},this.handleSignIn=()=>{(0,c.signIn)(void 0,{callbackUrl:window.location.pathname})},this.state={hasError:!1,error:null}}}var p=s(37030),f=s(78525);function b(e){let{children:r,queryClient:s}=e,n=function(){let{data:e}=(0,c.useSession)(),[r,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(null==e?void 0:e.backendToken)try{let r=e.backendToken.split(".");if(3===r.length&&r[1]){let e=JSON.parse(atob(r[1]));e.exp&&s(new Date(1e3*e.exp))}}catch(e){console.error("Failed to parse token expiration:",e),s(null)}else s(null)},[e]),(0,a.useMemo)(()=>{let s=Date.now(),t=r?r.getTime()-s:null;return{isAuthenticated:!!(null==e?void 0:e.backendToken),expiresAt:r,timeUntilExpiry:t,isExpiringSoon:null!==t&&t<3e5&&t>0}},[e,r])}(),i=function(){let e=(0,f.ot)(),r=(0,f.Ym)();return(0,a.useMemo)(()=>({t:(r,s,t)=>{var a;let n=null==(a=e[r])?void 0:a[s];if(!n)return"".concat(r,".").concat(s);if(t&&"string"==typeof n){let e=n;return Object.entries(t).forEach(r=>{let[s,t]=r;e=e.replace(RegExp("\\{".concat(s,"\\}"),"g"),String(t))}),e}return n}}),[e,r])}();return(0,t.jsx)(g,{children:(0,t.jsx)(d.SessionProvider,{sessionManager:n,children:(0,t.jsx)(d.TranslationProvider,{translationManager:i,children:(0,t.jsx)(l.Ht,{client:s,children:(0,t.jsx)(d.ToastProvider,{children:(0,t.jsx)(d.LiveRegionProvider,{children:(0,t.jsx)(u.Sv,{children:(0,t.jsx)(d.ThemeProvider,{children:(0,t.jsxs)(d.EventBusProvider,{children:[(0,t.jsx)(m,{}),r]})})})})})})})})})}function y(e){let{children:r}=e,[s]=(0,a.useState)(()=>new n.E({queryCache:new i.$({onError:e=>{e instanceof p.LG&&(401===e.status?(0,d.dispatch401Error)("Your session has expired. Please sign in again."):403===e.status&&(0,d.dispatch403Error)("You do not have permission to access this resource."))}}),mutationCache:new o.q({onError:e=>{e instanceof p.LG&&(401===e.status?(0,d.dispatch401Error)("Your session has expired. Please sign in again."):403===e.status&&(0,d.dispatch403Error)("You do not have permission to perform this action."))}}),defaultOptions:{queries:{retry:(e,r)=>(!(r instanceof p.LG)||401!==r.status&&403!==r.status&&(!(r.status>=400)||!(r.status<500)))&&e<3,retryDelay:e=>Math.min(1e3*2**e,3e4),staleTime:3e5,refetchOnWindowFocus:!1}}}));return(0,t.jsx)(c.SessionProvider,{children:(0,t.jsx)(b,{queryClient:s,children:r})})}},8761:()=>{},13395:(e,r,s)=>{"use strict";s.d(r,{CookieBanner:()=>c});var t=s(54568),a=s(7620),n=s(97066),i=s(95814),o=s(47305),l=s(59880);function c(e){let{className:r=""}=e,s=(0,n.c)("CookieBanner"),[c,d]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1),[h,m]=(0,a.useState)(!1),[g,p]=(0,a.useState)("GENERAL"),[f,b]=(0,a.useState)({necessary:!0,analytics:!1,marketing:!1,preferences:!1});(0,a.useEffect)(()=>{(async()=>{if((0,i.Tn)()){d(!0);try{let[e,r]=await Promise.all([(0,i.xS)(),(0,i.xO)()]);e?p("GDPR"):r?p("CCPA"):p("GENERAL")}catch(e){console.error("Failed to detect region:",e),p("GENERAL")}}})()},[]);let y=async()=>{m(!0);try{await Promise.resolve((0,i.Jk)({necessary:!0,analytics:!0,marketing:!0,preferences:!0})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{m(!1)}},v=async()=>{m(!0);try{await Promise.resolve((0,i.Jk)({necessary:!0,analytics:!1,marketing:!1,preferences:!1})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{m(!1)}},j=async()=>{m(!0);try{await Promise.resolve((0,i.Jk)(f)),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{m(!1)}};if(!c)return null;let k=(()=>{switch(g){case"GDPR":return{title:s("gdprTitle"),description:s("gdprDescription"),learnMore:s("gdprLearnMore")};case"CCPA":return{title:s("ccpaTitle"),description:s("ccpaDescription"),learnMore:s("ccpaLearnMore")};default:return{title:s("generalTitle"),description:s("generalDescription"),learnMore:s("generalLearnMore")}}})();return(0,t.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-white border-t border-gray-200 shadow-lg ".concat(r),children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto p-4 sm:p-6",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between space-y-4 lg:space-y-0",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:k.title}),(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-2",children:k.description}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:k.learnMore})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-3 lg:ml-6",children:[(0,t.jsx)("button",{type:"button",onClick:()=>x(!u),className:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors",children:(0,t.jsxs)("span",{className:"flex items-center",children:[s("customize"),u?(0,t.jsx)(o.A,{className:"w-4 h-4 ml-1"}):(0,t.jsx)(l.A,{className:"w-4 h-4 ml-1"})]})}),"GDPR"!==g&&(0,t.jsx)("button",{type:"button",onClick:v,disabled:h,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 transition-colors",children:h?s("saving"):s("rejectAll")}),(0,t.jsx)("button",{type:"button",onClick:y,disabled:h,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 transition-colors",children:h?s("saving"):s("acceptAll")})]})]}),u&&(0,t.jsx)("div",{className:"border-t border-gray-200 pt-4",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h4",{className:"text-base font-medium text-gray-900",children:s("cookiePreferences")}),(0,t.jsx)("div",{className:"space-y-3",children:i.wD.map(e=>(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"flex items-center h-5",children:(0,t.jsx)("input",{id:"cookie-".concat(e.id),type:"checkbox",checked:f[e.id]||!1,onChange:()=>{var r;"necessary"!==(r=e.id)&&b(e=>({...e,[r]:!e[r]}))},disabled:e.required||h,className:"h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded disabled:opacity-50"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("label",{htmlFor:"cookie-".concat(e.id),className:"text-sm font-medium text-gray-900 cursor-pointer",children:[e.name,e.required&&(0,t.jsx)("span",{className:"text-xs text-gray-500 ml-1",children:s("required")})]}),(0,t.jsx)("p",{className:"text-xs text-gray-600 mt-1",children:e.description}),(0,t.jsxs)("details",{className:"mt-1",children:[(0,t.jsx)("summary",{className:"text-xs text-blue-600 cursor-pointer hover:text-blue-800",children:s("viewCookies")}),(0,t.jsx)("div",{className:"mt-1 text-xs text-gray-500",children:e.cookies.join(", ")})]})]})]},e.id))}),(0,t.jsxs)("div",{className:"flex justify-end space-x-3 pt-4",children:[(0,t.jsx)("button",{type:"button",onClick:()=>x(!1),className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:s("cancel")}),(0,t.jsx)("button",{type:"button",onClick:j,disabled:h,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50",children:h?s("saving"):s("savePreferences")})]})]})})]})})})}},51885:()=>{},67578:(e,r,s)=>{Promise.resolve().then(s.t.bind(s,8761,23)),Promise.resolve().then(s.bind(s,7394)),Promise.resolve().then(s.bind(s,74687)),Promise.resolve().then(s.bind(s,13395)),Promise.resolve().then(s.t.bind(s,51885,23)),Promise.resolve().then(s.bind(s,30634)),Promise.resolve().then(s.bind(s,60174)),Promise.resolve().then(s.t.bind(s,91790,23)),Promise.resolve().then(s.t.bind(s,29719,23)),Promise.resolve().then(s.bind(s,47001))},74687:(e,r,s)=>{"use strict";s.d(r,{ClientModals:()=>x});var t=s(54568),a=s(47001),n=s(7620),i=s(21848),o=s(97235),l=s(96006);function c(){let{isAuthenticated:e}=(0,a.useSessionContext)(),[r,s]=(0,n.useState)(e),[c,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{r&&!e&&d(!0),s(e)},[e,r]),(0,n.useEffect)(()=>(0,a.onAuthEvent)(a.AUTH_EVENTS.UNAUTHORIZED,()=>{d(!0)}),[]);let u=()=>{d(!1),window.location.href="/"};return(0,t.jsx)(i.e,{appear:!0,show:c,as:n.Fragment,children:(0,t.jsxs)(o.lG,{as:"div",className:"relative z-[10000]",onClose:u,children:[(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"})}),(0,t.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(o.Lj,{className:"w-full max-w-md transform overflow-hidden rounded-lg bg-white dark:bg-gray-800 shadow-xl transition-all",children:[(0,t.jsxs)("div",{className:"p-6 pb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-red-600 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,t.jsx)(o.L3,{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Session Expired"})]}),(0,t.jsx)(o.rr,{className:"text-gray-600 dark:text-gray-300",children:"Your session has expired for security reasons. Please sign in again to continue working."})]}),(0,t.jsxs)("div",{className:"px-6 pb-6 flex gap-3 justify-end",children:[(0,t.jsx)("button",{onClick:u,className:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 transition-colors",children:"Go to Home"}),(0,t.jsx)("button",{onClick:()=>{(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition-colors",children:"Sign In Again"})]})]})})})})]})})}var d=s(26720);function u(){var e;let[r,s]=(0,n.useState)(!1),[c,u]=(0,n.useState)(""),x=(0,d.rd)(),{data:h}=(0,l.useSession)();(0,n.useEffect)(()=>(0,a.onAuthEvent)(a.AUTH_EVENTS.FORBIDDEN,e=>{u(e.detail.message||"You do not have permission to perform this action."),s(!0)}),[]);let m=()=>{s(!1),x.back()};return(0,t.jsx)(i.e,{appear:!0,show:r,as:n.Fragment,children:(0,t.jsxs)(o.lG,{as:"div",className:"relative z-[10000]",onClose:m,children:[(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"})}),(0,t.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(o.Lj,{className:"w-full max-w-md transform overflow-hidden rounded-lg bg-white dark:bg-gray-800 shadow-xl transition-all",children:[(0,t.jsxs)("div",{className:"p-6 pb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-amber-100 dark:bg-amber-900/30 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,t.jsx)(o.L3,{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Access Denied"})]}),(0,t.jsx)(o.rr,{className:"text-gray-600 dark:text-gray-300 mb-4",children:c}),(0,t.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-900/50 rounded-lg p-3 text-sm",children:[(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400 mb-2",children:"This could be because:"}),(0,t.jsxs)("ul",{className:"list-disc list-inside text-gray-500 dark:text-gray-500 space-y-1",children:[(0,t.jsx)("li",{children:"You don't have the required permissions"}),(0,t.jsx)("li",{children:"The resource is restricted to specific users or teams"}),(0,t.jsx)("li",{children:"Your account type doesn't include this feature"})]})]}),(null==h||null==(e=h.user)?void 0:e.email)&&(0,t.jsxs)("div",{className:"mt-4 text-xs text-gray-500 dark:text-gray-400",children:["Currently signed in as: ",(0,t.jsx)("span",{className:"font-medium",children:h.user.email})]})]}),(0,t.jsx)("div",{className:"px-6 pb-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{onClick:m,className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition-colors",children:"Go Back"}),(0,t.jsx)("button",{onClick:()=>{s(!1),x.push("/")},className:"flex-1 px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 border border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors",children:"Go to Home"})]}),(0,t.jsxs)("div",{className:"flex gap-2 pt-2 border-t border-gray-200 dark:border-gray-700",children:[(0,t.jsx)("button",{onClick:()=>{s(!1),(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"flex-1 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 transition-colors",children:"Switch Account"}),(0,t.jsx)("button",{onClick:()=>{s(!1),alert("Access request feature coming soon. Please contact your administrator.")},className:"flex-1 px-3 py-1.5 text-sm text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 transition-colors",children:"Request Access"})]})]})})]})})})})]})})}function x(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.SessionExpiryBanner,{}),(0,t.jsx)(c,{}),(0,t.jsx)(u,{})]})}}},e=>{e.O(0,[181,2210,9243,4626,6667,8096,6937,2076,587,7358],()=>e(e.s=67578)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5911],{74902:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var a=n(54568),i=n(27541),s=n(96006),l=n(7620),r=n(97066),d=n(47001),o=n(4869),u=n(27849),c=n(6942);function g(){var e,t;let n=(0,r.c)("ModerateEntityTags"),{data:g,status:y}=(0,s.useSession)(),[p,T]=(0,l.useState)(""),[h,v]=(0,l.useState)(""),b=(0,o.jE)(),{activePanel:m}=(0,c.ySJ)(),{theme:f,setTheme:k}=(0,c.DPo)(),{showLineNumbers:E,toggleLineNumbers:P}=(0,c.cvF)(),N=(0,l.useCallback)(e=>{let{theme:t}=e;k(t)},[k]),w=(0,l.useCallback)(()=>{P()},[P]);(0,c.C$z)({"settings:theme-changed":N,"settings:line-numbers-toggled":w});let x=(0,d.useEntityTypes)(),{data:A,isLoading:C}=x.list.useQuery({refetchInterval:3e4,refetchIntervalInBackground:!0}),_=(null==A?void 0:A.entityTypes)||[],j=x.add.useMutation();(0,l.useEffect)(()=>{var e,t;"loading"!==y&&("unauthenticated"===y&&(0,i.notFound)(),(null==g||null==(e=g.backendUser)?void 0:e.isModerator)||(null==g||null==(t=g.backendUser)?void 0:t.isAdmin)||(0,i.notFound)())},[y,g]);let D=async()=>{if(p.trim()){v("");try{await j.mutateAsync(p.trim()),b.invalidateQueries({queryKey:["/api/entity-types"]}),T("")}catch(e){v(e instanceof Error?e.message:n("errorFailedToAdd"))}}};return"loading"===y||C?(0,a.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,a.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:n("loading")})}):(null==g||null==(e=g.backendUser)?void 0:e.isModerator)||(null==g||null==(t=g.backendUser)?void 0:t.isAdmin)?(0,a.jsx)(d.EntityTagsPage,{entityTypes:_,isLoading:C,error:h,newTag:p,onNewTagChange:T,onAddTag:D,isAddingTag:j.isPending,theme:f,showLineNumbers:E,activePanel:m,translations:{pageTitle:n("pageTitle"),pageDescription:n("pageDescription"),sectionTitle:n("sectionTitle"),sectionDescription:n("sectionDescription"),inputPlaceholder:n("inputPlaceholder"),addTag:n("addTag"),adding:n("adding")},ToolbarPanels:u.t,Toolbar:d.Toolbar}):null}},76767:(e,t,n)=>{Promise.resolve().then(n.bind(n,74902))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=76767)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6068],{64357:(e,s,n)=>{"use strict";n.r(s),n.d(s,{default:()=>v});var a=n(54568),i=n(7620),o=n(97066),l=n(96006),r=n(11835),t=n(26720),c=n(24334),d=n(88985),p=n(83867),x=n(36314),b=n(48037),f=n(7444);function m(e){let{isCollapsed:s,toggleCollapsed:n,navigationMenu:l}=e,r=(0,o.c)("Moderation"),m=(0,o.c)("Sidebar"),u=(0,t.a8)(),h=(0,i.useCallback)(()=>{n()},[n]);(0,c.C$z)({"browse:sidebar-toggle":h});let g=[{name:r("recentResources"),href:"/moderate/recent",icon:d.A,description:r("recentResourcesDescription")},{name:r("entityTags"),href:"/moderate/entity-tags",icon:p.A,description:r("entityTagsDescription")},{name:r("tagSchemas"),href:"/moderate/tag-schemas",icon:x.A,description:r("tagSchemasDescription")}];return(0,a.jsx)(c.TbX,{title:r("title"),items:g,currentPath:u,LinkComponent:t.N_,...l&&{dropdownContent:l},isCollapsed:s,icons:{chevronLeft:b.A,bars:f.A},collapseSidebarLabel:m("collapseSidebar"),expandSidebarLabel:m("expandSidebar")})}var u=n(68167),h=n(53630),g=n(75956),k=n(34805);function v(e){let{children:s}=e,n=(0,o.c)("Footer"),t=(0,o.c)("Navigation"),c=(0,o.c)("Home"),d=(0,i.useContext)(h.GZ),{isAuthenticated:p,isAdmin:x,isModerator:b}=(0,k.As)(),{data:f}=(0,l.useSession)(),v=(null==f?void 0:f.backendToken)||null;return(0,a.jsx)(r.ffs,{token:v,children:(0,a.jsx)(r.pqI,{baseUrl:"",children:(0,a.jsxs)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col",children:[(0,a.jsxs)("div",{className:"flex flex-1",children:[(0,a.jsx)(r.Ef3,{Link:g.N,routes:g.J,t:t,tHome:c,brandingLink:"/",collapsible:!0,storageKey:"moderation-sidebar-collapsed",isAuthenticated:p,isAdmin:x,isModerator:b,children:(e,s,n)=>(0,a.jsx)(m,{isCollapsed:e,toggleCollapsed:s,navigationMenu:n})}),(0,a.jsx)("main",{className:"flex-1 p-6 flex flex-col",children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto flex-1 flex flex-col w-full",children:s})})]}),(0,a.jsx)(r.wi6,{Link:g.N,routes:g.J,t:n,CookiePreferences:u.f,...(null==d?void 0:d.openKeyboardHelp)&&{onOpenKeyboardHelp:d.openKeyboardHelp}})]})})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6068],{64357:(e,s,n)=>{"use strict";n.r(s),n.d(s,{default:()=>v});var a=n(54568),i=n(7620),o=n(97066),l=n(96006),r=n(11835),t=n(26720),c=n(24334),d=n(88985),p=n(83867),x=n(36314),b=n(48037),f=n(7444);function m(e){let{isCollapsed:s,toggleCollapsed:n,navigationMenu:l}=e,r=(0,o.c)("Moderation"),m=(0,o.c)("Sidebar"),u=(0,t.a8)(),h=(0,i.useCallback)(()=>{n()},[n]);(0,c.C$z)({"browse:sidebar-toggle":h});let g=[{name:r("recentResources"),href:"/moderate/recent",icon:d.A,description:r("recentResourcesDescription")},{name:r("entityTags"),href:"/moderate/entity-tags",icon:p.A,description:r("entityTagsDescription")},{name:r("tagSchemas"),href:"/moderate/tag-schemas",icon:x.A,description:r("tagSchemasDescription")}];return(0,a.jsx)(c.TbX,{title:r("title"),items:g,currentPath:u,LinkComponent:t.N_,...l&&{dropdownContent:l},isCollapsed:s,icons:{chevronLeft:b.A,bars:f.A},collapseSidebarLabel:m("collapseSidebar"),expandSidebarLabel:m("expandSidebar")})}var u=n(68167),h=n(53630),g=n(75956),k=n(34805);function v(e){let{children:s}=e,n=(0,o.c)("Footer"),t=(0,o.c)("Navigation"),c=(0,o.c)("Home"),d=(0,i.useContext)(h.GZ),{isAuthenticated:p,isAdmin:x,isModerator:b}=(0,k.As)(),{data:f}=(0,l.useSession)(),v=(null==f?void 0:f.backendToken)||null;return(0,a.jsx)(r.ffs,{token:v,children:(0,a.jsx)(r.pqI,{baseUrl:"",children:(0,a.jsxs)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col",children:[(0,a.jsxs)("div",{className:"flex flex-1",children:[(0,a.jsx)(r.Ef3,{Link:g.N,routes:g.J,t:t,tHome:c,brandingLink:"/",collapsible:!0,storageKey:"moderation-sidebar-collapsed",isAuthenticated:p,isAdmin:x,isModerator:b,children:(e,s,n)=>(0,a.jsx)(m,{isCollapsed:e,toggleCollapsed:s,navigationMenu:n})}),(0,a.jsx)("main",{className:"flex-1 p-6 flex flex-col",children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto flex-1 flex flex-col w-full",children:s})})]}),(0,a.jsx)(r.wi6,{Link:g.N,routes:g.J,t:n,CookiePreferences:u.f,...(null==d?void 0:d.openKeyboardHelp)&&{onOpenKeyboardHelp:d.openKeyboardHelp}})]})})})}},88296:(e,s,n)=>{Promise.resolve().then(n.bind(n,64357))}},e=>{e.O(0,[2076,8096,587,7358],()=>e(e.s=88296)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3035],{23772:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>i});var s=t(54568),c=t(7620),a=t(97066),n=t(26720);function i(){let e=(0,a.c)("Moderation"),r=(0,n.rd)();return(0,c.useEffect)(()=>{r.replace("/moderate/recent")},[r]),(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:e("redirecting")})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3035],{23772:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>i});var s=t(54568),c=t(7620),a=t(97066),n=t(26720);function i(){let e=(0,a.c)("Moderation"),r=(0,n.rd)();return(0,c.useEffect)(()=>{r.replace("/moderate/recent")},[r]),(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:e("redirecting")})})}},38801:(e,r,t)=>{Promise.resolve().then(t.bind(t,23772))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=38801)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5931],{41424:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>b});var i=t(54568),s=t(27541),l=t(96006),a=t(7620),o=t(97066),c=t(6922),r=t(27849),d=t(29383),u=t(18450),g=t(28302),p=t(88808),m=t(47001);function b(){var e,n;let t=(0,o.c)("ModerateRecent"),{data:b,status:v}=(0,l.useSession)(),{activePanel:h}=(0,u.ySJ)(),{theme:k,setTheme:D}=(0,d.DPo)(),{showLineNumbers:f,toggleLineNumbers:y}=(0,g.cvF)(),x=(0,a.useCallback)(e=>{let{theme:n}=e;D(n)},[D]),N=(0,a.useCallback)(()=>{y()},[y]);return((0,p.C$z)({"settings:theme-changed":x,"settings:line-numbers-toggled":N}),(0,a.useEffect)(()=>{var e,n;"loading"!==v&&("unauthenticated"===v&&(0,s.notFound)(),(null==b||null==(e=b.backendUser)?void 0:e.isModerator)||(null==b||null==(n=b.backendUser)?void 0:n.isAdmin)||(0,s.notFound)())},[v,b]),"loading"===v)?(0,i.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,i.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:t("loading")})}):(null==b||null==(e=b.backendUser)?void 0:e.isModerator)||(null==b||null==(n=b.backendUser)?void 0:n.isAdmin)?(0,i.jsx)(m.RecentDocumentsPage,{hasDocuments:!1,isLoading:!1,theme:k,showLineNumbers:f,activePanel:h,translations:{pageTitle:t("pageTitle"),pageDescription:t("pageDescription"),sectionTitle:t("sectionTitle"),sectionDescription:t("sectionDescription"),noDocuments:t("noDocuments"),activityWillAppear:t("activityWillAppear"),loading:t("loading")},ToolbarPanels:r.t,Toolbar:c.M7E}):null}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5931],{41424:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>b});var i=t(54568),s=t(27541),l=t(96006),a=t(7620),o=t(97066),c=t(6922),r=t(27849),d=t(29383),u=t(18450),g=t(28302),p=t(88808),m=t(47001);function b(){var e,n;let t=(0,o.c)("ModerateRecent"),{data:b,status:v}=(0,l.useSession)(),{activePanel:h}=(0,u.ySJ)(),{theme:k,setTheme:D}=(0,d.DPo)(),{showLineNumbers:f,toggleLineNumbers:y}=(0,g.cvF)(),x=(0,a.useCallback)(e=>{let{theme:n}=e;D(n)},[D]),N=(0,a.useCallback)(()=>{y()},[y]);return((0,p.C$z)({"settings:theme-changed":x,"settings:line-numbers-toggled":N}),(0,a.useEffect)(()=>{var e,n;"loading"!==v&&("unauthenticated"===v&&(0,s.notFound)(),(null==b||null==(e=b.backendUser)?void 0:e.isModerator)||(null==b||null==(n=b.backendUser)?void 0:n.isAdmin)||(0,s.notFound)())},[v,b]),"loading"===v)?(0,i.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,i.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:t("loading")})}):(null==b||null==(e=b.backendUser)?void 0:e.isModerator)||(null==b||null==(n=b.backendUser)?void 0:n.isAdmin)?(0,i.jsx)(m.RecentDocumentsPage,{hasDocuments:!1,isLoading:!1,theme:k,showLineNumbers:f,activePanel:h,translations:{pageTitle:t("pageTitle"),pageDescription:t("pageDescription"),sectionTitle:t("sectionTitle"),sectionDescription:t("sectionDescription"),noDocuments:t("noDocuments"),activityWillAppear:t("activityWillAppear"),loading:t("loading")},ToolbarPanels:r.t,Toolbar:c.M7E}):null}},84003:(e,n,t)=>{Promise.resolve().then(t.bind(t,41424))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=84003)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7505],{14833:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>W});var s=a(54568),i=a(27541),n=a(96006),o=a(7620),r=a(97066),l=a(6922),c=a(27849),d=a(29383),h=a(18450),u=a(28302),m=a(88808),p={"legal-irac":{id:"legal-irac",name:"Legal Analysis (IRAC)",description:"Issue, Rule, Application, Conclusion framework for legal reasoning",domain:"legal",tags:[{name:"Issue",description:"The legal question or problem to be resolved",examples:["What is the central legal question?","What must the court decide?","What is the dispute about?"]},{name:"Rule",description:"The relevant law, statute, or legal principle",examples:["What law applies?","What is the legal standard?","What statute governs this case?"]},{name:"Application",description:"How the rule applies to the specific facts",examples:["How does the law apply to these facts?","Analysis of the case","How do the facts satisfy the legal standard?"]},{name:"Conclusion",description:"The resolution or outcome based on the analysis",examples:["What is the court's decision?","What is the final judgment?","What is the holding?"]}]},"scientific-imrad":{id:"scientific-imrad",name:"Scientific Paper (IMRAD)",description:"Introduction, Methods, Results, Discussion structure for research papers",domain:"scientific",tags:[{name:"Introduction",description:"Background, context, and research question",examples:["What is the research question?","Why is this important?","What is the hypothesis?"]},{name:"Methods",description:"Experimental design and procedures",examples:["How was the study conducted?","What methods were used?","What was the experimental design?"]},{name:"Results",description:"Findings and observations",examples:["What did the study find?","What are the data?","What were the observations?"]},{name:"Discussion",description:"Interpretation and implications of results",examples:["What do the results mean?","What are the implications?","How do these findings relate to prior work?"]}]},"argument-toulmin":{id:"argument-toulmin",name:"Argument Structure (Toulmin)",description:"Claim, Evidence, Warrant, Counterargument, Rebuttal framework for argumentation",domain:"general",tags:[{name:"Claim",description:"The main assertion or thesis",examples:["What is being argued?","What is the main point?","What position is being taken?"]},{name:"Evidence",description:"Data or facts supporting the claim",examples:["What supports this claim?","What are the facts?","What data is provided?"]},{name:"Warrant",description:"Reasoning connecting evidence to claim",examples:["Why does this evidence support the claim?","What is the logic?","How does this reasoning work?"]},{name:"Counterargument",description:"Opposing viewpoints or objections",examples:["What are the objections?","What do critics say?","What are alternative views?"]},{name:"Rebuttal",description:"Response to counterarguments",examples:["How is the objection addressed?","Why is the counterargument wrong?","How is the criticism answered?"]}]}},g=a(47001);function W(){var e,t;let a=(0,r.c)("ModerateTagSchemas"),{data:W,status:f}=(0,n.useSession)(),{activePanel:b}=(0,h.ySJ)(),{theme:w,setTheme:v}=(0,d.DPo)(),{showLineNumbers:x,toggleLineNumbers:k}=(0,u.cvF)(),y=(0,o.useCallback)(e=>{let{theme:t}=e;v(t)},[v]),C=(0,o.useCallback)(()=>{k()},[k]);(0,m.C$z)({"settings:theme-changed":y,"settings:line-numbers-toggled":C});let T=Object.values(p);return((0,o.useEffect)(()=>{var e,t;"loading"!==f&&("unauthenticated"===f&&(0,i.notFound)(),(null==W||null==(e=W.backendUser)?void 0:e.isModerator)||(null==W||null==(t=W.backendUser)?void 0:t.isAdmin)||(0,i.notFound)())},[f,W]),"loading"===f)?(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:a("loading")})}):(null==W||null==(e=W.backendUser)?void 0:e.isModerator)||(null==W||null==(t=W.backendUser)?void 0:t.isAdmin)?(0,s.jsx)(g.TagSchemasPage,{schemas:T,isLoading:!1,theme:w,showLineNumbers:x,activePanel:b,translations:{pageTitle:a("pageTitle"),pageDescription:a("pageDescription"),categories:a("categories"),loading:a("loading")},ToolbarPanels:c.t,Toolbar:l.M7E}):null}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7505],{14833:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>W});var s=a(54568),i=a(27541),n=a(96006),o=a(7620),r=a(97066),l=a(6922),c=a(27849),d=a(29383),h=a(18450),u=a(28302),m=a(88808),p={"legal-irac":{id:"legal-irac",name:"Legal Analysis (IRAC)",description:"Issue, Rule, Application, Conclusion framework for legal reasoning",domain:"legal",tags:[{name:"Issue",description:"The legal question or problem to be resolved",examples:["What is the central legal question?","What must the court decide?","What is the dispute about?"]},{name:"Rule",description:"The relevant law, statute, or legal principle",examples:["What law applies?","What is the legal standard?","What statute governs this case?"]},{name:"Application",description:"How the rule applies to the specific facts",examples:["How does the law apply to these facts?","Analysis of the case","How do the facts satisfy the legal standard?"]},{name:"Conclusion",description:"The resolution or outcome based on the analysis",examples:["What is the court's decision?","What is the final judgment?","What is the holding?"]}]},"scientific-imrad":{id:"scientific-imrad",name:"Scientific Paper (IMRAD)",description:"Introduction, Methods, Results, Discussion structure for research papers",domain:"scientific",tags:[{name:"Introduction",description:"Background, context, and research question",examples:["What is the research question?","Why is this important?","What is the hypothesis?"]},{name:"Methods",description:"Experimental design and procedures",examples:["How was the study conducted?","What methods were used?","What was the experimental design?"]},{name:"Results",description:"Findings and observations",examples:["What did the study find?","What are the data?","What were the observations?"]},{name:"Discussion",description:"Interpretation and implications of results",examples:["What do the results mean?","What are the implications?","How do these findings relate to prior work?"]}]},"argument-toulmin":{id:"argument-toulmin",name:"Argument Structure (Toulmin)",description:"Claim, Evidence, Warrant, Counterargument, Rebuttal framework for argumentation",domain:"general",tags:[{name:"Claim",description:"The main assertion or thesis",examples:["What is being argued?","What is the main point?","What position is being taken?"]},{name:"Evidence",description:"Data or facts supporting the claim",examples:["What supports this claim?","What are the facts?","What data is provided?"]},{name:"Warrant",description:"Reasoning connecting evidence to claim",examples:["Why does this evidence support the claim?","What is the logic?","How does this reasoning work?"]},{name:"Counterargument",description:"Opposing viewpoints or objections",examples:["What are the objections?","What do critics say?","What are alternative views?"]},{name:"Rebuttal",description:"Response to counterarguments",examples:["How is the objection addressed?","Why is the counterargument wrong?","How is the criticism answered?"]}]}},g=a(47001);function W(){var e,t;let a=(0,r.c)("ModerateTagSchemas"),{data:W,status:f}=(0,n.useSession)(),{activePanel:b}=(0,h.ySJ)(),{theme:w,setTheme:v}=(0,d.DPo)(),{showLineNumbers:x,toggleLineNumbers:k}=(0,u.cvF)(),y=(0,o.useCallback)(e=>{let{theme:t}=e;v(t)},[v]),C=(0,o.useCallback)(()=>{k()},[k]);(0,m.C$z)({"settings:theme-changed":y,"settings:line-numbers-toggled":C});let T=Object.values(p);return((0,o.useEffect)(()=>{var e,t;"loading"!==f&&("unauthenticated"===f&&(0,i.notFound)(),(null==W||null==(e=W.backendUser)?void 0:e.isModerator)||(null==W||null==(t=W.backendUser)?void 0:t.isAdmin)||(0,i.notFound)())},[f,W]),"loading"===f)?(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:a("loading")})}):(null==W||null==(e=W.backendUser)?void 0:e.isModerator)||(null==W||null==(t=W.backendUser)?void 0:t.isAdmin)?(0,s.jsx)(g.TagSchemasPage,{schemas:T,isLoading:!1,theme:w,showLineNumbers:x,activePanel:b,translations:{pageTitle:a("pageTitle"),pageDescription:a("pageDescription"),categories:a("categories"),loading:a("loading")},ToolbarPanels:c.t,Toolbar:l.M7E}):null}},76469:(e,t,a)=>{Promise.resolve().then(a.bind(a,14833))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=76469)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3224],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3224],{90434:(e,t,s)=>{Promise.resolve().then(s.bind(s,98235))},98235:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>i});var r=s(54568);s(7620);var a=s(19664),l=s.n(a),n=s(97066),c=s(78525);function i(){let e=(0,n.c)("NotFound"),t=(0,c.Ym)();return(0,r.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-gray-50 dark:bg-gray-900",children:(0,r.jsxs)("div",{className:"text-center px-4",children:[(0,r.jsx)("h1",{className:"text-6xl font-bold text-gray-900 dark:text-white mb-4",children:e("title")}),(0,r.jsx)("h2",{className:"text-2xl font-semibold text-gray-700 dark:text-gray-300 mb-4",children:e("heading")}),(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400 mb-8",children:e("message")}),(0,r.jsx)(l(),{href:"/".concat(t),className:"inline-block px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:e("goHome")})]})})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=90434)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{80025:(e,s,a)=>{Promise.resolve().then(a.bind(a,90357))},90357:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>h});var n=a(54568),l=a(7620),t=a(96006),r=a(19664),i=a.n(r),c=a(97066),o=a(47001),d=a(68167),x=a(53630),m=a(75956);function h(){let{data:e,status:s}=(0,t.useSession)(),a=(0,c.c)("Home"),r=(0,c.c)("Footer"),h=(0,l.useContext)(x.GZ);return(0,n.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,n.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-24",role:"main",children:(0,n.jsx)("div",{className:"z-10 w-full max-w-5xl items-center justify-between font-sans text-sm",children:"loading"===s?(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)("p",{className:"text-gray-600 dark:text-gray-300",children:a("loading")})}):(0,n.jsxs)("div",{className:"text-center space-y-8",children:[(0,n.jsxs)("section",{"aria-labelledby":"hero-heading",className:"py-8",children:[(0,n.jsx)("h1",{id:"hero-heading",className:"sr-only",children:"Semiont - AI-Powered Research Platform"}),(0,n.jsx)(o.SemiontBranding,{t:a,size:"xl",animated:!0,className:"mb-8"}),(0,n.jsx)("p",{className:"text-xl text-gray-600 dark:text-gray-300 font-sans max-w-4xl mx-auto px-4",children:a("description")})]}),(0,n.jsx)("div",{className:"flex gap-4 justify-center items-center flex-wrap",children:(null==e?void 0:e.backendToken)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{href:"/know",className:o.buttonStyles.primary.base,children:a("continueToKnowledgeBase")}),(0,n.jsx)(i(),{href:"/about",className:o.buttonStyles.secondary.base,children:a("learnMore")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{href:"/about",className:o.buttonStyles.secondary.base,children:a("learnMore")}),(0,n.jsx)(i(),{href:"/auth/signup",className:o.buttonStyles.primary.base,children:a("signUp")}),(0,n.jsx)("button",{onClick:()=>(0,t.signIn)(void 0,{callbackUrl:"/know"}),className:o.buttonStyles.primary.base,type:"button",children:a("signIn")})]})})]})})}),(0,n.jsx)(o.Footer,{Link:m.N,routes:m.J,t:r,CookiePreferences:d.f,...(null==h?void 0:h.openKeyboardHelp)&&{onOpenKeyboardHelp:h.openKeyboardHelp}})]})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=80025)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[810],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[810],{32786:(e,s,i)=>{Promise.resolve().then(i.bind(i,90663))},90663:(e,s,i)=>{"use strict";i.r(s),i.d(s,{default:()=>d});var n=i(54568),c=i(7620),t=i(97066),l=i(19590),r=i(68167),o=i(53630),a=i(75956);function d(){let e=(0,t.c)("Privacy"),s=(0,t.c)("Footer"),i=(0,t.c)("Navigation"),d=(0,t.c)("Home"),h=(0,c.useContext)(o.GZ);return(0,n.jsx)(l.Mxu,{Link:a.N,routes:a.J,t:s,tNav:i,tHome:d,CookiePreferences:r.f,...(null==h?void 0:h.openKeyboardHelp)&&{onOpenKeyboardHelp:h.openKeyboardHelp},className:"semiont-static-page",children:(0,n.jsx)("div",{className:"semiont-static-container",children:(0,n.jsxs)("div",{className:"semiont-static-content",children:[(0,n.jsx)("header",{className:"semiont-static-header",children:(0,n.jsx)("h1",{className:"semiont-static-title",children:e("pageTitle")})}),(0,n.jsxs)("article",{className:"semiont-static-article",children:[(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("introTitle")}),e("intro").split("\n\n").map((e,s)=>(0,n.jsx)("p",{children:e},s))]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("infoCollectTitle")}),(0,n.jsx)("h3",{children:e("personalInfoTitle")}),(0,n.jsx)("ul",{children:e("personalInfo").split("\n").map((e,s)=>(0,n.jsx)("li",{children:e},s))}),(0,n.jsx)("h3",{children:e("autoCollectTitle")}),(0,n.jsx)("ul",{children:e("autoCollect").split("\n").map((e,s)=>(0,n.jsx)("li",{children:e},s))})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("howWeUseTitle")}),(0,n.jsx)("ul",{children:e("howWeUse").split("\n").map((e,s)=>(0,n.jsx)("li",{children:e},s))})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("cookiePolicyTitle")}),(0,n.jsx)("p",{children:e("cookiePolicyIntro")}),(0,n.jsx)("h3",{children:e("cookieCategoriesTitle")}),(0,n.jsxs)("div",{className:"semiont-static-cookie-grid",children:[(0,n.jsxs)("div",{className:"semiont-static-cookie-card",children:[(0,n.jsx)("h4",{children:e("necessaryCookiesTitle")}),e("necessaryCookies").split("\n\n").map((e,s)=>(0,n.jsx)("p",{children:e},s))]}),(0,n.jsxs)("div",{className:"semiont-static-cookie-card",children:[(0,n.jsx)("h4",{children:e("analyticsCookiesTitle")}),e("analyticsCookies").split("\n\n").map((e,s)=>(0,n.jsx)("p",{children:e},s))]}),(0,n.jsxs)("div",{className:"semiont-static-cookie-card",children:[(0,n.jsx)("h4",{children:e("marketingCookiesTitle")}),e("marketingCookies").split("\n\n").map((e,s)=>(0,n.jsx)("p",{children:e},s))]}),(0,n.jsxs)("div",{className:"semiont-static-cookie-card",children:[(0,n.jsx)("h4",{children:e("preferenceCookiesTitle")}),e("preferenceCookies").split("\n\n").map((e,s)=>(0,n.jsx)("p",{children:e},s))]})]})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("yourRightsTitle")}),(0,n.jsx)("h3",{children:e("gdprRightsTitle")}),(0,n.jsx)("ul",{children:e("gdprRights").split("\n").map((e,s)=>(0,n.jsx)("li",{children:e},s))}),(0,n.jsx)("h3",{children:e("ccpaRightsTitle")}),(0,n.jsx)("ul",{children:e("ccpaRights").split("\n").map((e,s)=>(0,n.jsx)("li",{children:e},s))})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("dataSecurityTitle")}),e("dataSecurity").split("\n\n").map((e,s)=>0===s?(0,n.jsx)("p",{children:e},s):(0,n.jsx)("ul",{children:e.split("\n").map((e,s)=>(0,n.jsx)("li",{children:e},s))},s))]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("dataRetentionTitle")}),(0,n.jsx)("p",{children:e("dataRetention")})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("internationalTransfersTitle")}),(0,n.jsx)("p",{children:e("internationalTransfers")})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("contactTitle")}),(0,n.jsx)("p",{children:e("contactIntro")}),(0,n.jsx)("div",{className:"semiont-static-info-box",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:e("contactEmail")})," privacy@semiont.com",(0,n.jsx)("br",{}),(0,n.jsx)("strong",{children:e("contactAddress")})," [Your Company Address]"]})})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{children:e("updatesTitle")}),(0,n.jsx)("p",{children:e("updates")}),(0,n.jsx)("footer",{className:"semiont-static-footer",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:e("lastUpdated",{date:new Date().toLocaleDateString()})})})})]})]})]})})})}}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=32786)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4477],{25984:(e,i,l)=>{"use strict";l.r(i),l.d(i,{default:()=>x});var s=l(54568),n=l(7620),t=l(19664),c=l.n(t),a=l(97066),r=l(78525),d=l(19590),h=l(68167),o=l(53630),p=l(75956);function x(){let e=(0,a.c)("Terms"),i=(0,a.c)("Footer"),l=(0,a.c)("Navigation"),t=(0,a.c)("Home"),x=(0,r.Ym)(),j=(0,n.useContext)(o.GZ);return(0,s.jsx)(d.Mxu,{Link:p.N,routes:p.J,t:i,tNav:l,tHome:t,CookiePreferences:h.f,...(null==j?void 0:j.openKeyboardHelp)&&{onOpenKeyboardHelp:j.openKeyboardHelp},className:"semiont-static-page",children:(0,s.jsx)("div",{className:"semiont-static-container",children:(0,s.jsxs)("div",{className:"semiont-static-content",children:[(0,s.jsxs)("header",{className:"semiont-static-header",children:[(0,s.jsx)("h1",{className:"semiont-static-title",children:e("pageTitle")}),(0,s.jsx)("p",{className:"semiont-static-subtitle",children:e("pageSubtitle")})]}),(0,s.jsxs)("article",{className:"semiont-static-article",children:[(0,s.jsx)("h2",{children:e("aupTitle")}),(0,s.jsx)("p",{children:e("aup")}),(0,s.jsx)("h3",{children:e("prohibitedTitle")}),(0,s.jsx)("p",{children:e("prohibitedIntro")}),(0,s.jsx)("ul",{children:e("prohibited").split("\n").map((e,i)=>(0,s.jsx)("li",{children:e},i))}),(0,s.jsx)("h3",{children:e("aiAllianceTitle")}),(0,s.jsxs)("p",{children:[e("aiAllianceIntro")," ",(0,s.jsx)("a",{href:"https://ai-alliance.cdn.prismic.io/ai-alliance/Zl-MG5m069VX1dgH_AIAllianceCodeofConduct.pdf",target:"_blank",rel:"noopener noreferrer",className:"semiont-static-link",children:e("aiAllianceLink")}),e("aiAllianceIncludes")]}),(0,s.jsx)("ul",{children:e("aiAlliance").split("\n").map((e,i)=>(0,s.jsx)("li",{children:e},i))}),(0,s.jsx)("h3",{children:e("responsibilitiesTitle")}),(0,s.jsx)("p",{children:e("responsibilitiesIntro")}),(0,s.jsx)("ul",{children:e("responsibilities").split("\n").map((e,i)=>(0,s.jsx)("li",{children:e},i))}),(0,s.jsx)("h3",{children:e("moderationTitle")}),(0,s.jsx)("p",{children:e("moderation")}),(0,s.jsx)("h3",{children:e("privacyTitle")}),(0,s.jsxs)("p",{children:[e("privacy").split(e("privacyLink"))[0],(0,s.jsx)(c(),{href:"/".concat(x,"/privacy"),className:"semiont-static-link",children:e("privacyLink")}),e("privacy").split(e("privacyLink"))[1]]}),(0,s.jsx)("h3",{children:e("ipTitle")}),(0,s.jsx)("p",{children:e("ip")}),(0,s.jsx)("h3",{children:e("liabilityTitle")}),(0,s.jsx)("p",{children:e("liability")}),(0,s.jsx)("h3",{children:e("changesTitle")}),(0,s.jsx)("p",{children:e("changes")}),(0,s.jsx)("h3",{children:e("contactTitle")}),(0,s.jsx)("p",{children:e("contact")}),(0,s.jsx)("footer",{className:"semiont-static-footer",children:(0,s.jsx)("p",{children:e("lastUpdated",{date:new Date().toLocaleDateString()})})})]})]})})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4477],{25984:(e,i,l)=>{"use strict";l.r(i),l.d(i,{default:()=>x});var s=l(54568),n=l(7620),t=l(19664),c=l.n(t),a=l(97066),r=l(78525),d=l(19590),h=l(68167),o=l(53630),p=l(75956);function x(){let e=(0,a.c)("Terms"),i=(0,a.c)("Footer"),l=(0,a.c)("Navigation"),t=(0,a.c)("Home"),x=(0,r.Ym)(),j=(0,n.useContext)(o.GZ);return(0,s.jsx)(d.Mxu,{Link:p.N,routes:p.J,t:i,tNav:l,tHome:t,CookiePreferences:h.f,...(null==j?void 0:j.openKeyboardHelp)&&{onOpenKeyboardHelp:j.openKeyboardHelp},className:"semiont-static-page",children:(0,s.jsx)("div",{className:"semiont-static-container",children:(0,s.jsxs)("div",{className:"semiont-static-content",children:[(0,s.jsxs)("header",{className:"semiont-static-header",children:[(0,s.jsx)("h1",{className:"semiont-static-title",children:e("pageTitle")}),(0,s.jsx)("p",{className:"semiont-static-subtitle",children:e("pageSubtitle")})]}),(0,s.jsxs)("article",{className:"semiont-static-article",children:[(0,s.jsx)("h2",{children:e("aupTitle")}),(0,s.jsx)("p",{children:e("aup")}),(0,s.jsx)("h3",{children:e("prohibitedTitle")}),(0,s.jsx)("p",{children:e("prohibitedIntro")}),(0,s.jsx)("ul",{children:e("prohibited").split("\n").map((e,i)=>(0,s.jsx)("li",{children:e},i))}),(0,s.jsx)("h3",{children:e("aiAllianceTitle")}),(0,s.jsxs)("p",{children:[e("aiAllianceIntro")," ",(0,s.jsx)("a",{href:"https://ai-alliance.cdn.prismic.io/ai-alliance/Zl-MG5m069VX1dgH_AIAllianceCodeofConduct.pdf",target:"_blank",rel:"noopener noreferrer",className:"semiont-static-link",children:e("aiAllianceLink")}),e("aiAllianceIncludes")]}),(0,s.jsx)("ul",{children:e("aiAlliance").split("\n").map((e,i)=>(0,s.jsx)("li",{children:e},i))}),(0,s.jsx)("h3",{children:e("responsibilitiesTitle")}),(0,s.jsx)("p",{children:e("responsibilitiesIntro")}),(0,s.jsx)("ul",{children:e("responsibilities").split("\n").map((e,i)=>(0,s.jsx)("li",{children:e},i))}),(0,s.jsx)("h3",{children:e("moderationTitle")}),(0,s.jsx)("p",{children:e("moderation")}),(0,s.jsx)("h3",{children:e("privacyTitle")}),(0,s.jsxs)("p",{children:[e("privacy").split(e("privacyLink"))[0],(0,s.jsx)(c(),{href:"/".concat(x,"/privacy"),className:"semiont-static-link",children:e("privacyLink")}),e("privacy").split(e("privacyLink"))[1]]}),(0,s.jsx)("h3",{children:e("ipTitle")}),(0,s.jsx)("p",{children:e("ip")}),(0,s.jsx)("h3",{children:e("liabilityTitle")}),(0,s.jsx)("p",{children:e("liability")}),(0,s.jsx)("h3",{children:e("changesTitle")}),(0,s.jsx)("p",{children:e("changes")}),(0,s.jsx)("h3",{children:e("contactTitle")}),(0,s.jsx)("p",{children:e("contact")}),(0,s.jsx)("footer",{className:"semiont-static-footer",children:(0,s.jsx)("p",{children:e("lastUpdated",{date:new Date().toLocaleDateString()})})})]})]})})})}},98131:(e,i,l)=>{Promise.resolve().then(l.bind(l,25984))}},e=>{e.O(0,[2076,587,8096,7358],()=>e(e.s=98131)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1014],{},_=>{_.O(0,[2076,587,8096,7358],()=>_(_.s=69235)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8672],{},_=>{_.O(0,[2076,587,8096,7358],()=>_(_.s=69235)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7508],{},_=>{_.O(0,[2076,587,8096,7358],()=>_(_.s=69235)),_N_E=_.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[889],{},_=>{_.O(0,[2076,587,8096,7358],()=>_(_.s=
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[889],{},_=>{_.O(0,[2076,587,8096,7358],()=>_(_.s=69235)),_N_E=_.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8039],{2510:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>a});var t=n(54568),s=n(7620);function a(e){let{error:r,reset:n}=e;return(0,s.useEffect)(()=>{console.error("Global error handler:",r)},[r]),(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:(0,t.jsxs)("div",{className:"max-w-lg w-full space-y-6 text-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-4xl font-bold text-gray-900 dark:text-white mb-2",children:"500"}),(0,t.jsx)("h2",{className:"text-2xl font-semibold text-gray-700 dark:text-gray-300",children:"Internal Server Error"})]}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Something went wrong on our end. We've been notified and are working to fix it."}),!1,(0,t.jsxs)("div",{className:"flex gap-4 justify-center",children:[(0,t.jsx)("button",{onClick:n,className:"px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors",children:"Try Again"}),(0,t.jsx)("a",{href:"/",className:"px-6 py-3 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-md hover:bg-gray-300 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 transition-colors inline-block",children:"Go Home"})]})]})})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8039],{2510:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>a});var t=n(54568),s=n(7620);function a(e){let{error:r,reset:n}=e;return(0,s.useEffect)(()=>{console.error("Global error handler:",r)},[r]),(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:(0,t.jsxs)("div",{className:"max-w-lg w-full space-y-6 text-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-4xl font-bold text-gray-900 dark:text-white mb-2",children:"500"}),(0,t.jsx)("h2",{className:"text-2xl font-semibold text-gray-700 dark:text-gray-300",children:"Internal Server Error"})]}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Something went wrong on our end. We've been notified and are working to fix it."}),!1,(0,t.jsxs)("div",{className:"flex gap-4 justify-center",children:[(0,t.jsx)("button",{onClick:n,className:"px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors",children:"Try Again"}),(0,t.jsx)("a",{href:"/",className:"px-6 py-3 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-md hover:bg-gray-300 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 transition-colors inline-block",children:"Go Home"})]})]})})}},19979:(e,r,n)=>{Promise.resolve().then(n.bind(n,2510))}},e=>{e.O(0,[587,2076,8096,7358],()=>e(e.s=19979)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4219],{66636:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>t});var s=r(54568);function t(e){let{error:n,reset:r}=e;return(0,s.jsx)("html",{children:(0,s.jsxs)("body",{children:[(0,s.jsx)("h2",{children:"Something went wrong!"}),(0,s.jsx)("button",{onClick:()=>r(),children:"Try again"})]})})}},81071:(e,n,r)=>{Promise.resolve().then(r.bind(r,66636))}},e=>{e.O(0,[587,2076,8096,7358],()=>e(e.s=81071)),_N_E=e.O()}]);
|