@semiont/frontend 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/package.json +1 -1
  2. package/standalone/apps/frontend/.next/BUILD_ID +1 -1
  3. package/standalone/apps/frontend/.next/app-path-routes-manifest.json +3 -3
  4. package/standalone/apps/frontend/.next/build-manifest.json +4 -4
  5. package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
  6. package/standalone/apps/frontend/.next/react-loadable-manifest.json +32 -32
  7. package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +3 -3
  8. package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
  9. package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
  10. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +8 -8
  11. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
  12. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
  13. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js +3 -3
  14. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js.nft.json +1 -1
  15. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page_client-reference-manifest.js +1 -1
  16. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +3 -3
  17. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
  18. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
  19. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +3 -3
  20. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
  21. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
  22. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +8 -8
  23. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
  24. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
  25. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +3 -3
  26. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
  27. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
  28. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +1 -1
  29. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
  30. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
  31. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +3 -3
  32. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
  33. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
  34. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +3 -3
  35. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
  36. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
  37. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +3 -3
  38. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
  39. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
  40. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +6 -6
  41. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
  42. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
  43. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +5 -5
  44. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
  45. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
  46. package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +1 -1
  47. package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
  48. package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
  49. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +5 -5
  50. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
  51. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
  52. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +8 -8
  53. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
  54. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
  55. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js +8 -8
  56. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js.nft.json +1 -1
  57. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page_client-reference-manifest.js +1 -1
  58. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +3 -3
  59. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
  60. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
  61. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +9 -9
  62. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
  63. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
  64. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +9 -9
  65. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
  66. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
  67. package/standalone/apps/frontend/.next/server/app/[locale]/page.js +3 -3
  68. package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
  69. package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  70. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +2 -2
  71. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
  72. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
  73. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +2 -2
  74. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
  75. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
  76. package/standalone/apps/frontend/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  77. package/standalone/apps/frontend/.next/server/app/_global-error.html +1 -1
  78. package/standalone/apps/frontend/.next/server/app/_global-error.rsc +1 -1
  79. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  80. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  81. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  82. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  83. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  84. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  85. package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  86. package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
  87. package/standalone/apps/frontend/.next/server/app/_not-found.rsc +1 -1
  88. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  89. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  90. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  91. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  92. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  93. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  94. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +1 -1
  95. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
  96. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
  97. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +1 -1
  98. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
  99. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
  100. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +1 -1
  101. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
  102. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
  103. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +1 -1
  104. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
  105. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
  106. package/standalone/apps/frontend/.next/server/app-paths-manifest.json +3 -3
  107. package/standalone/apps/frontend/.next/server/chunks/{6327.js → 355.js} +10 -10
  108. package/standalone/apps/frontend/.next/server/chunks/5015.js +10 -5
  109. package/standalone/apps/frontend/.next/server/chunks/{3144.js → 5440.js} +717 -522
  110. package/standalone/apps/frontend/.next/server/chunks/730.js +144 -33
  111. package/standalone/apps/frontend/.next/server/chunks/8255.js +8 -8
  112. package/standalone/apps/frontend/.next/server/chunks/8394.js +6 -6
  113. package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
  114. package/standalone/apps/frontend/.next/server/middleware-react-loadable-manifest.js +1 -1
  115. package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
  116. package/standalone/apps/frontend/.next/server/pages/500.html +1 -1
  117. package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
  118. package/standalone/apps/frontend/.next/static/chunks/7249.90de9d0b8e58d1fd.js +1 -0
  119. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/{page-f448fe2c22a946c1.js → page-36a8caa614bb409b.js} +1 -1
  120. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/devops/{page-759a2993a0616e7c.js → page-1ca7ed50ccf09110.js} +1 -1
  121. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/exchange/{page-fceacbb4457e1c03.js → page-88da3ee9c5f3e55c.js} +1 -1
  122. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/security/{page-487c30984759b949.js → page-c0c358dc5a31b239.js} +1 -1
  123. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/users/{page-82a4b872efcab6b8.js → page-242c5ca40d8cfdad.js} +1 -1
  124. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/error/{page-fc22ea61f4a00e6c.js → page-2a3580ff60f5cf8a.js} +1 -1
  125. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signin/{page-e12ce5271ba819c5.js → page-3103f17b15f4a29f.js} +1 -1
  126. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signup/{page-3a5e7d3f22fc1d14.js → page-f4ee887c37f6c7a1.js} +1 -1
  127. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/welcome/{page-a8f482436dcd92cb.js → page-17b751308fcc346c.js} +1 -1
  128. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/compose/{page-b4e3b18b2e3563e6.js → page-d377d7773b34d2b6.js} +1 -1
  129. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/discover/{page-45f5b3b1e8c8ed2b.js → page-7546934ec25d0e54.js} +1 -1
  130. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/layout-8da5f1382c82517a.js +1 -0
  131. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/resource/[id]/{page-78dff169b8aa5aff.js → page-880c1814b7e76270.js} +1 -1
  132. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{layout-c072ce8c7aeaa92e.js → layout-b1a244782c4e0bd5.js} +1 -1
  133. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/entity-tags/{page-4979a2b203414acb.js → page-27daa3fe9c00977c.js} +1 -1
  134. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/linked-data/{page-082f47c5d22192bb.js → page-aa3d5c362260d076.js} +1 -1
  135. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/recent/{page-c1f29e875e929262.js → page-b1695fc503599d6f.js} +1 -1
  136. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/tag-schemas/{page-55ddad6874ae7011.js → page-35187d6da8884290.js} +1 -1
  137. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{page-88c8b5ca4fe882a8.js → page-1fb566c126836253.js} +1 -1
  138. package/standalone/apps/frontend/.next/static/chunks/common-755716aba1c6723a.js +63 -0
  139. package/standalone/apps/frontend/.next/static/chunks/{webpack-a0284d55d288650f.js → webpack-5c05c98a53141f15.js} +1 -1
  140. package/standalone/apps/frontend/package.json +3 -4
  141. package/standalone/package.json +1 -1
  142. package/standalone/packages/core/package.json +2 -4
  143. package/standalone/apps/frontend/.next/static/chunks/1315.3f76aa23520d903e.js +0 -1
  144. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/layout-47d133bae7c3824a.js +0 -1
  145. package/standalone/apps/frontend/.next/static/chunks/common-1cf094fd8459017a.js +0 -63
  146. /package/standalone/apps/frontend/.next/static/{Mu3aayrKh7TvJ0Olmpr0T → 7fwzlNjbcq2vtnM6QhHnm}/_buildManifest.js +0 -0
  147. /package/standalone/apps/frontend/.next/static/{Mu3aayrKh7TvJ0Olmpr0T → 7fwzlNjbcq2vtnM6QhHnm}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7249],{37249:(t,e,n)=>{n.r(e),n.d(e,{PdfAnnotationCanvas:()=>g});var r=n(85585);n(21882),n(55914);var a=n(7620),i=n(34364),o=n(54568);function s(t,e,n=1){let r=t.x*n,a=t.width*n;return{x:r,y:(e-t.y-t.height)*n,width:a,height:t.height*n}}function l(t){try{let e=t.match(/page=(\d+)/);if(!e)return null;let n=parseInt(e[1],10),r=t.match(/viewrect=([\d.]+),([\d.]+),([\d.]+),([\d.]+)/);if(!r)return null;return{page:n,x:parseFloat(r[1]),y:parseFloat(r[2]),width:parseFloat(r[3]),height:parseFloat(r[4])}}catch{return null}}async function d(){return window.pdfjsLib?window.pdfjsLib:new Promise((t,e)=>{let n=document.createElement("script");n.src="/pdfjs/pdf.min.mjs",n.type="module",n.onload=()=>{let n=window.pdfjsLib;n?(n.GlobalWorkerOptions.workerSrc="/pdfjs/pdf.worker.min.mjs",t(n)):e(Error("PDF.js loaded but pdfjsLib not available"))},n.onerror=()=>{e(Error("Failed to load PDF.js from /pdfjs/pdf.min.mjs"))},document.head.appendChild(n)})}async function c(t){let e=await d();if("string"!=typeof t)return e.getDocument({data:t}).promise;{let n=await fetch(t,{credentials:"include",headers:{Accept:"application/pdf"}});if(!n.ok)throw Error(`Failed to fetch PDF: ${n.status} ${n.statusText}`);let r=await n.arrayBuffer();return e.getDocument({data:r}).promise}}async function u(t,e=1){let n=t.getViewport({scale:e}),r=document.createElement("canvas"),a=r.getContext("2d");if(!a)throw Error("Failed to get 2D context");r.width=n.width,r.height=n.height;let i=t.render({canvasContext:a,viewport:n});return await i.promise,{dataUrl:r.toDataURL("image/png"),width:n.width,height:n.height}}function h(t){if(!t)return{stroke:"rgb(156, 163, 175)",fill:"rgba(156, 163, 175, 0.2)"};switch(t){case"highlighting":return{stroke:"rgb(250, 204, 21)",fill:"rgba(250, 204, 21, 0.3)"};case"linking":return{stroke:"rgb(59, 130, 246)",fill:"rgba(59, 130, 246, 0.2)"};case"assessing":return{stroke:"rgb(239, 68, 68)",fill:"rgba(239, 68, 68, 0.2)"};case"commenting":return{stroke:"rgb(255, 255, 255)",fill:"rgba(255, 255, 255, 0.2)"};default:return{stroke:"rgb(156, 163, 175)",fill:"rgba(156, 163, 175, 0.2)"}}}function g({resourceUri:t,existingAnnotations:e=[],drawingMode:n,selectedMotivation:d,eventBus:f,hoveredAnnotationId:m,selectedAnnotationId:p,hoverDelayMs:w=150}){let v,b,x,y,k=(0,a.useMemo)(()=>`/api/resources/${t}`,[t]),[j,_]=(0,a.useState)(null),[M,F]=(0,a.useState)(0),[X,Y]=(0,a.useState)(1),[E,N]=(0,a.useState)(null),[S,C]=(0,a.useState)(!0),[D,P]=(0,a.useState)(null),[L,$]=(0,a.useState)(null),[R,A]=(0,a.useState)(null),[z]=(0,a.useState)(1.5),[W,q]=(0,a.useState)(!1),[I,B]=(0,a.useState)(null),H=(0,a.useRef)(null),O=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t=!1;return async function(){try{C(!0),P(null);let e=await c(k);if(t)return;_(e),F(e.numPages),C(!1)}catch(e){if(t)return;console.error("Error loading PDF:",e),P("Failed to load PDF"),C(!1)}}(),()=>{t=!0}},[k]),(0,a.useEffect)(()=>{if(!j)return;let t=!1;return async function(){try{let e=await j.getPage(X);if(t)return;let n=e.getViewport({scale:1});$({width:n.width,height:n.height});let{dataUrl:r}=await u(e,z);if(t)return;N(r)}catch(e){if(t)return;console.error("Error loading page:",e),P("Failed to load page")}}(),()=>{t=!0}},[j,X,z]),(0,a.useEffect)(()=>{let t=()=>{O.current&&A({width:O.current.clientWidth,height:O.current.clientHeight})};t();let e=null;try{e=new ResizeObserver(t),O.current&&e.observe(O.current)}catch(e){console.warn("ResizeObserver not supported, falling back to window resize listener"),window.addEventListener("resize",t)}return()=>{e?e.disconnect():window.removeEventListener("resize",t)}},[E]);let U=(0,a.useCallback)(t=>{if(!n||!O.current)return;let e=O.current.getBoundingClientRect(),r=t.clientX-e.left,a=t.clientY-e.top;q(!0),B({startX:r,startY:a,endX:r,endY:a})},[n]),T=(0,a.useCallback)(t=>{if(!W||!I||!O.current)return;let e=O.current.getBoundingClientRect();B({...I,endX:t.clientX-e.left,endY:t.clientY-e.top})},[W,I]),V=(0,a.useCallback)(()=>{var t;if(!W||!I||!L||!R||!f){q(!1),B(null);return}if(10>Math.sqrt(Math.pow(I.endX-I.startX,2)+Math.pow(I.endY-I.startY,2))){if(e.length>0){let t=J.find(t=>{let e=G(t.target);if(!e)return!1;let n=l(e.value);if(!n)return!1;let r=s(n,L.height,1),a=R.width/L.width,i=R.height/L.height,o=r.x*a,d=r.y*i,c=r.width*a,u=r.height*i;return I.endX>=o&&I.endX<=o+c&&I.endY>=d&&I.endY<=d+u});if(t){f?.get("browse:click").next({annotationId:t.id,motivation:t.motivation}),q(!1),B(null);return}}q(!1),B(null);return}let n=L.width/R.width,r=L.height/R.height,a=(t=function(t,e,n,r,a=1){let i=Math.min(t.startX,t.endX),o=Math.min(t.startY,t.endY),s=Math.max(t.startX,t.endX),l=Math.max(t.startY,t.endY);return{page:e,x:Math.round(i/a),y:Math.round(r-l/a),width:Math.round((s-i)/a),height:Math.round((l-o)/a)}}({startX:I.startX*n,startY:I.startY*r,endX:I.endX*n,endY:I.endY*r},X,L.width,L.height,1),`page=${t.page}&viewrect=${t.x},${t.y},${t.width},${t.height}`);d&&f.get("mark:requested").next({selector:{type:"FragmentSelector",conformsTo:"http://tools.ietf.org/rfc/rfc3778",value:a},motivation:d}),q(!1)},[W,I,X,L,R,d,e]),G=t=>{let e=(0,i.hH)(t);if(!e)return null;let n=(Array.isArray(e)?e:[e]).find(t=>"FragmentSelector"===t.type);return n&&"FragmentSelector"===n.type?n:null},J=e.filter(t=>{let e,n=G(t.target);return!!n&&((e=n.value.match(/page=(\d+)/))?parseInt(e[1],10):null)===X}),{handleMouseEnter:K,handleMouseLeave:Q}=(0,a.useMemo)(()=>(0,r.i0)(t=>f?.get("beckon:hover").next({annotationId:t}),w),[f,w]),{stroke:Z,fill:tt}=h(d??null);return D?(0,o.jsx)("div",{className:"semiont-pdf-annotation-canvas__error",children:D}):(0,o.jsxs)("div",{className:"semiont-pdf-annotation-canvas",children:[S&&(0,o.jsx)("div",{className:"semiont-pdf-annotation-canvas__loading",children:"Loading PDF..."}),(0,o.jsxs)("div",{ref:H,className:"semiont-pdf-annotation-canvas__container",style:{display:S?"none":void 0},onMouseDown:U,onMouseMove:T,onMouseUp:V,onMouseLeave:()=>{W&&(q(!1),B(null))},"data-drawing-mode":n||"none",children:[E&&(0,o.jsx)("img",{ref:O,src:E,alt:`PDF page ${X}`,className:"semiont-pdf-annotation-canvas__image",draggable:!1,style:{pointerEvents:"none"},onLoad:()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.current&&A({width:O.current.clientWidth,height:O.current.clientHeight})})})}}),R&&L&&(0,o.jsx)("div",{className:"semiont-pdf-annotation-canvas__overlay-container",children:(0,o.jsx)("div",{className:"semiont-pdf-annotation-canvas__overlay",children:(0,o.jsxs)("svg",{className:"semiont-pdf-annotation-canvas__svg",width:R.width,height:R.height,children:[J.map(t=>{let e=G(t.target);if(!e)return null;let n=l(e.value);if(!n)return null;let r=s(n,L.height,1),a=R.width/L.width,i=R.height/L.height,d=t.id===m,c=t.id===p,{stroke:u,fill:g}=h(t.motivation);return(0,o.jsx)("rect",{x:r.x*a,y:r.y*i,width:r.width*a,height:r.height*i,stroke:u,strokeWidth:c?4:d?3:2,fill:g,style:{pointerEvents:"auto",cursor:"pointer",opacity:c?1:d?.9:.7},onClick:()=>f?.get("browse:click").next({annotationId:t.id,motivation:t.motivation}),onMouseEnter:()=>K(t.id),onMouseLeave:Q},t.id)}),I&&(v=Math.min(I.startX,I.endX),b=Math.min(I.startY,I.endY),x=Math.abs(I.endX-I.startX),y=Math.abs(I.endY-I.startY),(0,o.jsx)("rect",{x:v,y:b,width:x,height:y,stroke:Z,strokeWidth:2,strokeDasharray:"5,5",fill:tt,pointerEvents:"none"}))]})})})]}),M>0&&(0,o.jsxs)("div",{className:"semiont-pdf-annotation-canvas__controls",children:[(0,o.jsx)("button",{disabled:X<=1,onClick:()=>Y(X-1),className:"semiont-pdf-annotation-canvas__button",children:"Previous"}),(0,o.jsxs)("span",{className:"semiont-pdf-annotation-canvas__page-info",children:["Page ",X," of ",M]}),(0,o.jsx)("button",{disabled:X>=M,onClick:()=>Y(X+1),className:"semiont-pdf-annotation-canvas__button",children:"Next"})]})]})}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8111],{28596:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>p});var i=t(54568),n=t(7620),a=t(33971),c=t(67373),l=t(11753),r=t(14822),o=t(80889),d=t(65587),h=t.n(d),m=t(21153);function p(){let e=(0,a.c)("About"),s=(0,a.c)("Footer"),t=(0,a.c)("Navigation"),d=(0,a.c)("Home"),p=(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,...p?.openKeyboardHelp&&{onOpenKeyboardHelp:p.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,28596))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=98961)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8111],{28596:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>p});var i=t(54568),n=t(7620),a=t(33971),c=t(55048),l=t(11753),r=t(14822),o=t(80889),d=t(65587),h=t.n(d),m=t(21153);function p(){let e=(0,a.c)("About"),s=(0,a.c)("Footer"),t=(0,a.c)("Navigation"),d=(0,a.c)("Home"),p=(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,...p?.openKeyboardHelp&&{onOpenKeyboardHelp:p.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,28596))}},e=>{e.O(0,[3473,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],{62381:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(54568),n=i(33971),l=i(7620),a=i(4571),o=i(42689),r=i(37311),c=i(67373),p=i(10078),u=i(60509),d=i(23537);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)(({theme:e})=>{d(e)},[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,62381))}},e=>{e.O(0,[3473,2076,8096,587,7358],()=>e(e.s=80287)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6043],{62381:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(54568),n=i(33971),l=i(7620),a=i(4571),o=i(42689),r=i(37311),c=i(55048),p=i(10078),u=i(60509),d=i(23537);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)(({theme:e})=>{d(e)},[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,62381))}},e=>{e.O(0,[3473,2076,8096,587,7358],()=>e(e.s=80287)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1247],{32321:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var o=s(54568),i=s(7620),n=s(33971),a=s(54603),r=s(10078),l=s(60509),p=s(67373);function u(){let e=(0,n.c)("AdminExchange"),{activePanel:t}=(0,l.ySJ)(),{theme:s,setTheme:u}=(0,l.DPo)(),{showLineNumbers:m,toggleLineNumbers:c}=(0,l.cvF)(),h=(0,i.useCallback)(({theme:e})=>{u(e)},[u]),d=(0,i.useCallback)(()=>{c()},[c]);(0,l.C$z)({"settings:theme-changed":h,"settings:line-numbers-toggled":d});let g=(0,a.z8G)(),b=g.exchange.backup.useMutation(),v=g.exchange.restore.useMutation(),[C,x]=(0,i.useState)(null),[k,f]=(0,i.useState)(null),[E,P]=(0,i.useState)(null),[I,S]=(0,i.useState)(),[z,T]=(0,i.useState)(),w=(0,i.useCallback)(()=>{b.mutate()},[b]),y=(0,i.useCallback)(async e=>{x(e),P(null),S(void 0),T(void 0),f({format:e.name.endsWith(".tar.gz")||e.name.endsWith(".gz")?"semiont-backup":"unknown",version:1,sourceUrl:"",stats:{}})},[]),A=(0,i.useCallback)(()=>{C&&(P("started"),S(void 0),T(void 0),v.mutate({file:C,onProgress:e=>{P(e.phase),S(e.message),e.result&&T(e.result)}}))},[C,v]),M=(0,i.useCallback)(()=>{x(null),f(null),P(null),S(void 0),T(void 0)},[]);return(0,o.jsx)(p.AdminExchangePage,{onExport:w,isExporting:b.isPending,onFileSelected:y,onImport:A,onCancelImport:M,selectedFile:C,preview:k,isImporting:v.isPending,importPhase:E,importMessage:I,importResult:z,theme:s,showLineNumbers:m,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),export:{title:e("exportTitle"),description:e("exportDescription"),exportButton:e("exportButton"),exporting:e("exporting")},import:{title:e("importTitle"),description:e("importDescription"),dropzoneLabel:e("dropzoneLabel"),dropzoneActive:e("dropzoneActive"),detectedFormat:e("detectedFormat"),statsPreview:e("statsPreview"),importButton:e("importButton"),importing:e("importing"),importConfirmTitle:e("importConfirmTitle"),importConfirmMessage:e("importConfirmMessage"),confirmImport:e("confirmImport"),cancelImport:e("cancelImport")},progress:{phaseStarted:e("phaseStarted"),phaseEntityTypes:e("phaseEntityTypes"),phaseResources:e("phaseResources"),phaseAnnotations:e("phaseAnnotations"),phaseComplete:e("phaseComplete"),phaseError:e("phaseError"),hashChainValid:e("hashChainValid"),hashChainInvalid:e("hashChainInvalid"),streams:e("streams"),events:e("events"),blobs:e("blobs")}},ToolbarPanels:r.t,Toolbar:a.M7E})}},52038:(e,t,s)=>{Promise.resolve().then(s.bind(s,32321))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=52038)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1247],{32321:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var o=s(54568),i=s(7620),n=s(33971),a=s(54603),r=s(10078),l=s(60509),p=s(55048);function u(){let e=(0,n.c)("AdminExchange"),{activePanel:t}=(0,l.ySJ)(),{theme:s,setTheme:u}=(0,l.DPo)(),{showLineNumbers:m,toggleLineNumbers:c}=(0,l.cvF)(),h=(0,i.useCallback)(({theme:e})=>{u(e)},[u]),d=(0,i.useCallback)(()=>{c()},[c]);(0,l.C$z)({"settings:theme-changed":h,"settings:line-numbers-toggled":d});let g=(0,a.z8G)(),b=g.exchange.backup.useMutation(),v=g.exchange.restore.useMutation(),[C,x]=(0,i.useState)(null),[k,f]=(0,i.useState)(null),[E,P]=(0,i.useState)(null),[I,S]=(0,i.useState)(),[z,T]=(0,i.useState)(),w=(0,i.useCallback)(()=>{b.mutate()},[b]),y=(0,i.useCallback)(async e=>{x(e),P(null),S(void 0),T(void 0),f({format:e.name.endsWith(".tar.gz")||e.name.endsWith(".gz")?"semiont-backup":"unknown",version:1,sourceUrl:"",stats:{}})},[]),A=(0,i.useCallback)(()=>{C&&(P("started"),S(void 0),T(void 0),v.mutate({file:C,onProgress:e=>{P(e.phase),S(e.message),e.result&&T(e.result)}}))},[C,v]),M=(0,i.useCallback)(()=>{x(null),f(null),P(null),S(void 0),T(void 0)},[]);return(0,o.jsx)(p.AdminExchangePage,{onExport:w,isExporting:b.isPending,onFileSelected:y,onImport:A,onCancelImport:M,selectedFile:C,preview:k,isImporting:v.isPending,importPhase:E,importMessage:I,importResult:z,theme:s,showLineNumbers:m,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),export:{title:e("exportTitle"),description:e("exportDescription"),exportButton:e("exportButton"),exporting:e("exporting")},import:{title:e("importTitle"),description:e("importDescription"),dropzoneLabel:e("dropzoneLabel"),dropzoneActive:e("dropzoneActive"),detectedFormat:e("detectedFormat"),statsPreview:e("statsPreview"),importButton:e("importButton"),importing:e("importing"),importConfirmTitle:e("importConfirmTitle"),importConfirmMessage:e("importConfirmMessage"),confirmImport:e("confirmImport"),cancelImport:e("cancelImport")},progress:{phaseStarted:e("phaseStarted"),phaseEntityTypes:e("phaseEntityTypes"),phaseResources:e("phaseResources"),phaseAnnotations:e("phaseAnnotations"),phaseComplete:e("phaseComplete"),phaseError:e("phaseError"),hashChainValid:e("hashChainValid"),hashChainInvalid:e("hashChainInvalid"),streams:e("streams"),events:e("events"),blobs:e("blobs")}},ToolbarPanels:r.t,Toolbar:a.M7E})}},52038:(e,t,s)=>{Promise.resolve().then(s.bind(s,32321))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=52038)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4424],{32561:(o,e,i)=>{Promise.resolve().then(i.bind(i,53265))},53265:(o,e,i)=>{"use strict";i.d(e,{default:()=>c});var n=i(54568),a=i(7620),l=i(33971),t=i(54603),s=i(10078),d=i(60509),r=i(67373);function c(){let o=(0,l.c)("AdminSecurity"),{activePanel:e}=(0,d.ySJ)(),{theme:i,setTheme:c}=(0,d.DPo)(),{showLineNumbers:u,toggleLineNumbers:g}=(0,d.cvF)(),f=(0,a.useCallback)(({theme:o})=>{c(o)},[c]),m=(0,a.useCallback)(()=>{g()},[g]);(0,d.C$z)({"settings:theme-changed":f,"settings:line-numbers-toggled":m});let{data:D,isLoading:p}=(0,t.z8G)().oauth.config.useQuery(),C=D?.allowedDomains??[],v=D?.providers??[];return(0,n.jsx)(r.AdminSecurityPage,{providers:v,allowedDomains:C,isLoading:p,theme:i,showLineNumbers:u,activePanel:e,translations:{title:o("title"),subtitle:o("subtitle"),oauthProviders:o("oauthProviders"),oauthProvidersDescription:o("oauthProvidersDescription"),clientId:o("clientId"),configured:o("configured"),noProvidersConfigured:o("noProvidersConfigured"),allowedDomains:o("allowedDomains"),allowedDomainsDescription:o("allowedDomainsDescription"),noDomainsConfigured:o("noDomainsConfigured"),configManagementTitle:o("configManagementTitle"),configManagementDescription:o("configManagementDescription"),configLocalDev:o("configLocalDev"),configCloudDeploy:o("configCloudDeploy"),configCloudDeployCommand:o("configCloudDeployCommand"),configCloudDeployEnd:o("configCloudDeployEnd"),configAWS:o("configAWS")},ToolbarPanels:s.t,Toolbar:t.M7E})}}},o=>{o.O(0,[3473,2076,587,8096,7358],()=>o(o.s=32561)),_N_E=o.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4424],{32561:(o,e,i)=>{Promise.resolve().then(i.bind(i,53265))},53265:(o,e,i)=>{"use strict";i.d(e,{default:()=>c});var n=i(54568),a=i(7620),l=i(33971),t=i(54603),s=i(10078),d=i(60509),r=i(55048);function c(){let o=(0,l.c)("AdminSecurity"),{activePanel:e}=(0,d.ySJ)(),{theme:i,setTheme:c}=(0,d.DPo)(),{showLineNumbers:u,toggleLineNumbers:g}=(0,d.cvF)(),f=(0,a.useCallback)(({theme:o})=>{c(o)},[c]),m=(0,a.useCallback)(()=>{g()},[g]);(0,d.C$z)({"settings:theme-changed":f,"settings:line-numbers-toggled":m});let{data:D,isLoading:p}=(0,t.z8G)().oauth.config.useQuery(),C=D?.allowedDomains??[],v=D?.providers??[];return(0,n.jsx)(r.AdminSecurityPage,{providers:v,allowedDomains:C,isLoading:p,theme:i,showLineNumbers:u,activePanel:e,translations:{title:o("title"),subtitle:o("subtitle"),oauthProviders:o("oauthProviders"),oauthProvidersDescription:o("oauthProvidersDescription"),clientId:o("clientId"),configured:o("configured"),noProvidersConfigured:o("noProvidersConfigured"),allowedDomains:o("allowedDomains"),allowedDomainsDescription:o("allowedDomainsDescription"),noDomainsConfigured:o("noDomainsConfigured"),configManagementTitle:o("configManagementTitle"),configManagementDescription:o("configManagementDescription"),configLocalDev:o("configLocalDev"),configCloudDeploy:o("configCloudDeploy"),configCloudDeployCommand:o("configCloudDeployCommand"),configCloudDeployEnd:o("configCloudDeployEnd"),configAWS:o("configAWS")},ToolbarPanels:s.t,Toolbar:t.M7E})}}},o=>{o.O(0,[3473,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],{76227:(e,s,t)=>{Promise.resolve().then(t.bind(t,76623))},76623:(e,s,t)=>{"use strict";t.d(s,{default:()=>d});var a=t(54568),r=t(7620),n=t(33971),o=t(67373),l=t(68728),i=t(10078),u=t(60509);function d(){let e=(0,n.c)("AdminUsers"),s=(0,l.jE)(),{activePanel:t}=(0,u.ySJ)(),{theme:d,setTheme:c}=(0,u.DPo)(),{showLineNumbers:m,toggleLineNumbers:U}=(0,u.cvF)(),v=(0,r.useCallback)(({theme:e})=>{c(e)},[c]),C=(0,r.useCallback)(()=>{U()},[U]);(0,u.C$z)({"settings:theme-changed":v,"settings:line-numbers-toggled":C});let g=(0,o.useAdmin)(),{data:b,isLoading:h}=g.users.list.useQuery(),{data:y,isLoading:p}=g.users.stats.useQuery(),k=g.users.update.useMutation(),A=b?.users??[],L=y?.stats??null,P=async(e,t)=>{try{await k.mutateAsync({id:e,data:t}),s.invalidateQueries({queryKey:["admin.users.list"]}),s.invalidateQueries({queryKey:["admin.users.stats"]})}catch(e){console.error("Failed to update user:",e)}},S=async e=>{console.warn("Delete user not implemented:",e),alert("Delete user functionality is not currently available")};return(0,a.jsx)(o.AdminUsersPage,{users:A,userStats:L,isLoadingUsers:h,isLoadingStats:p,onUpdateUser:P,onDeleteUser:S,onAddUser:()=>{console.log("Add user clicked")},onExportUsers:()=>{console.log("Export users clicked")},theme:d,showLineNumbers:m,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),addUser:e("addUser"),totalUsers:e("totalUsers"),activeUsers:e("activeUsers"),administrators:e("administrators"),recentUsers:e("recentUsers"),searchUsers:e("searchUsers"),searchPlaceholder:e("searchPlaceholder"),role:e("role"),allRoles:e("allRoles"),admin:e("admin"),user:e("user"),status:e("status"),allStatus:e("allStatus"),active:e("active"),inactive:e("inactive"),exportUsers:e("exportUsers"),loadingUsers:e("loadingUsers"),userColumn:e("userColumn"),domainColumn:e("domainColumn"),roleColumn:e("roleColumn"),statusColumn:e("statusColumn"),lastLoginColumn:e("lastLoginColumn"),joinedColumn:e("joinedColumn"),actionsColumn:e("actionsColumn"),noUsersFound:e("noUsersFound"),noUsersFoundDescription:e("noUsersFoundDescription"),noName:e("noName"),never:e("never"),removeAdmin:e("removeAdmin"),makeAdmin:e("makeAdmin"),deactivateUser:e("deactivateUser"),activateUser:e("activateUser"),deleteUser:e("deleteUser")},ToolbarPanels:i.t,Toolbar:o.Toolbar,buttonStyles:o.buttonStyles})}}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=76227)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5090],{76227:(e,s,t)=>{Promise.resolve().then(t.bind(t,76623))},76623:(e,s,t)=>{"use strict";t.d(s,{default:()=>d});var a=t(54568),r=t(7620),n=t(33971),o=t(55048),l=t(68728),i=t(10078),u=t(60509);function d(){let e=(0,n.c)("AdminUsers"),s=(0,l.jE)(),{activePanel:t}=(0,u.ySJ)(),{theme:d,setTheme:c}=(0,u.DPo)(),{showLineNumbers:m,toggleLineNumbers:U}=(0,u.cvF)(),v=(0,r.useCallback)(({theme:e})=>{c(e)},[c]),C=(0,r.useCallback)(()=>{U()},[U]);(0,u.C$z)({"settings:theme-changed":v,"settings:line-numbers-toggled":C});let g=(0,o.useAdmin)(),{data:b,isLoading:h}=g.users.list.useQuery(),{data:y,isLoading:p}=g.users.stats.useQuery(),k=g.users.update.useMutation(),A=b?.users??[],L=y?.stats??null,P=async(e,t)=>{try{await k.mutateAsync({id:e,data:t}),s.invalidateQueries({queryKey:["admin.users.list"]}),s.invalidateQueries({queryKey:["admin.users.stats"]})}catch(e){console.error("Failed to update user:",e)}},S=async e=>{console.warn("Delete user not implemented:",e),alert("Delete user functionality is not currently available")};return(0,a.jsx)(o.AdminUsersPage,{users:A,userStats:L,isLoadingUsers:h,isLoadingStats:p,onUpdateUser:P,onDeleteUser:S,onAddUser:()=>{console.log("Add user clicked")},onExportUsers:()=>{console.log("Export users clicked")},theme:d,showLineNumbers:m,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),addUser:e("addUser"),totalUsers:e("totalUsers"),activeUsers:e("activeUsers"),administrators:e("administrators"),recentUsers:e("recentUsers"),searchUsers:e("searchUsers"),searchPlaceholder:e("searchPlaceholder"),role:e("role"),allRoles:e("allRoles"),admin:e("admin"),user:e("user"),status:e("status"),allStatus:e("allStatus"),active:e("active"),inactive:e("inactive"),exportUsers:e("exportUsers"),loadingUsers:e("loadingUsers"),userColumn:e("userColumn"),domainColumn:e("domainColumn"),roleColumn:e("roleColumn"),statusColumn:e("statusColumn"),lastLoginColumn:e("lastLoginColumn"),joinedColumn:e("joinedColumn"),actionsColumn:e("actionsColumn"),noUsersFound:e("noUsersFound"),noUsersFoundDescription:e("noUsersFoundDescription"),noName:e("noName"),never:e("never"),removeAdmin:e("removeAdmin"),makeAdmin:e("makeAdmin"),deactivateUser:e("deactivateUser"),activateUser:e("activateUser"),deleteUser:e("deleteUser")},ToolbarPanels:i.t,Toolbar:o.Toolbar,buttonStyles:o.buttonStyles})}}},e=>{e.O(0,[3473,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],{8990:(r,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var o=n(54568),i=n(7620),t=n(79748),a=n(33971),s=n(67373),c=n(11753),l=n(14822),u=n(80889),d=n(65587),g=n.n(d);function p(){let r=(0,a.c)("AuthError"),e=(0,a.c)("Footer"),n=(0,a.c)("Navigation"),d=(0,a.c)("Home"),p=(0,t.useSearchParams)(),f=(0,i.useContext)(l.GZ),h=p?.get("error")??null,y={pageTitle:r("pageTitle"),tryAgain:r("tryAgain"),errorConfiguration:r("errorConfiguration"),errorAccessDenied:r("errorAccessDenied"),errorVerification:r("errorVerification"),errorGeneric:r("errorGeneric")};return(0,o.jsx)(s.PageLayout,{Link:u.N,routes:u.J,t:e,tNav:n,tHome:d,CookiePreferences:c.f,...f?.openKeyboardHelp&&{onOpenKeyboardHelp:f.openKeyboardHelp},className:"bg-gray-50 dark:bg-gray-900",children:(0,o.jsx)(s.AuthErrorDisplay,{errorType:h,Link:g(),translations:y})})}function f(){let r=(0,a.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,8990))}},r=>{r.O(0,[3473,2076,587,8096,7358],()=>r(r.s=57689)),_N_E=r.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[741],{8990:(r,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var o=n(54568),i=n(7620),t=n(79748),a=n(33971),s=n(55048),c=n(11753),l=n(14822),u=n(80889),d=n(65587),g=n.n(d);function p(){let r=(0,a.c)("AuthError"),e=(0,a.c)("Footer"),n=(0,a.c)("Navigation"),d=(0,a.c)("Home"),p=(0,t.useSearchParams)(),f=(0,i.useContext)(l.GZ),h=p?.get("error")??null,y={pageTitle:r("pageTitle"),tryAgain:r("tryAgain"),errorConfiguration:r("errorConfiguration"),errorAccessDenied:r("errorAccessDenied"),errorVerification:r("errorVerification"),errorGeneric:r("errorGeneric")};return(0,o.jsx)(s.PageLayout,{Link:u.N,routes:u.J,t:e,tNav:n,tHome:d,CookiePreferences:c.f,...f?.openKeyboardHelp&&{onOpenKeyboardHelp:f.openKeyboardHelp},className:"bg-gray-50 dark:bg-gray-900",children:(0,o.jsx)(s.AuthErrorDisplay,{errorType:h,Link:g(),translations:y})})}function f(){let r=(0,a.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,8990))}},r=>{r.O(0,[3473,2076,587,8096,7358],()=>r(r.s=57689)),_N_E=r.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4867],{6875:(e,r,n)=>{Promise.resolve().then(n.bind(n,32283))},32283:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>k});var a=n(54568),o=n(7620),t=n(21153),i=n(79748),l=n(31517),s=n(33971),c=n(67373),d=n(11753),u=n(14822),h=n(80889),g=n(65587),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,l.rd)(),m=(0,o.useContext)(u.GZ),[k,w]=(0,o.useState)(null),[I,f]=(0,o.useState)(!1),[S,C]=(0,o.useState)(!0),A=g?.get("callbackUrl")||"/know";(0,o.useEffect)(()=>{fetch("/api/auth/providers").then(e=>e.json()).then(e=>{e.credentials&&f(!0),C(!1)}).catch(()=>{f(!0),C(!1)});let r=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 P=async()=>{try{await (0,t.signIn)("google",{callbackUrl:A})}catch(r){w(e("errorGoogleSignIn"))}},v=async(r,n)=>{try{let a=await (0,t.signIn)("credentials",{email:r,password:n,redirect:!1,callbackUrl:A});a?.error?w(e("errorInvalidCredentials")):a?.ok&&b.push(A)}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,a.jsxs)("div",{className:"semiont-page-wrapper",children:[(0,a.jsx)(c.SignInForm,{onGoogleSignIn:P,onCredentialsSignIn:I?v:void 0,error:k,showCredentialsAuth:I,isLoading:S,Link:p(),translations:y}),(0,a.jsx)(c.Footer,{Link:h.N,routes:h.J,t:n,CookiePreferences:d.f,...m?.openKeyboardHelp&&{onOpenKeyboardHelp:m.openKeyboardHelp}})]})}function m(){let e=(0,s.c)("AuthSignIn");return(0,a.jsx)("div",{children:e("loading")})}function k(){return(0,a.jsx)(o.Suspense,{fallback:(0,a.jsx)(m,{}),children:(0,a.jsx)(b,{})})}}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=6875)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4867],{6875:(e,r,n)=>{Promise.resolve().then(n.bind(n,32283))},32283:(e,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>k});var a=n(54568),o=n(7620),t=n(21153),i=n(79748),l=n(31517),s=n(33971),c=n(55048),d=n(11753),u=n(14822),h=n(80889),g=n(65587),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,l.rd)(),m=(0,o.useContext)(u.GZ),[k,w]=(0,o.useState)(null),[I,f]=(0,o.useState)(!1),[S,C]=(0,o.useState)(!0),A=g?.get("callbackUrl")||"/know";(0,o.useEffect)(()=>{fetch("/api/auth/providers").then(e=>e.json()).then(e=>{e.credentials&&f(!0),C(!1)}).catch(()=>{f(!0),C(!1)});let r=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 P=async()=>{try{await (0,t.signIn)("google",{callbackUrl:A})}catch(r){w(e("errorGoogleSignIn"))}},v=async(r,n)=>{try{let a=await (0,t.signIn)("credentials",{email:r,password:n,redirect:!1,callbackUrl:A});a?.error?w(e("errorInvalidCredentials")):a?.ok&&b.push(A)}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,a.jsxs)("div",{className:"semiont-page-wrapper",children:[(0,a.jsx)(c.SignInForm,{onGoogleSignIn:P,onCredentialsSignIn:I?v:void 0,error:k,showCredentialsAuth:I,isLoading:S,Link:p(),translations:y}),(0,a.jsx)(c.Footer,{Link:h.N,routes:h.J,t:n,CookiePreferences:d.f,...m?.openKeyboardHelp&&{onOpenKeyboardHelp:m.openKeyboardHelp}})]})}function m(){let e=(0,s.c)("AuthSignIn");return(0,a.jsx)("div",{children:e("loading")})}function k(){return(0,a.jsx)(o.Suspense,{fallback:(0,a.jsx)(m,{}),children:(0,a.jsx)(b,{})})}}},e=>{e.O(0,[3473,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],{46105:(e,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>k});var t=o(54568),a=o(7620),i=o(21153),r=o(79748),s=o(33971),c=o(67373),l=o(11753),p=o(14822),g=o(80889),u=o(65587),m=o.n(u);function h(){let e=(0,s.c)("AuthSignUp"),n=(0,s.c)("Footer"),o=(0,s.c)("Navigation"),u=(0,s.c)("Home"),h=(0,r.useSearchParams)(),d=(0,a.useContext)(p.GZ),k=h?.get("callbackUrl")||"/auth/welcome",f=async()=>{await (0,i.signIn)("google",{callbackUrl:k})},b={pageTitle:e("pageTitle"),signUpPrompt:e("signUpPrompt"),signUpWithGoogle:e("signUpWithGoogle"),creatingAccount:e("creatingAccount"),approvedDomainsInfo:e("approvedDomainsInfo"),termsAgreement:e("termsAgreement"),alreadyHaveAccount:e("alreadyHaveAccount"),tagline:u("tagline"),backToHome:e("backToHome")};return(0,t.jsx)(c.PageLayout,{Link:g.N,routes:g.J,t:n,tNav:o,tHome:u,CookiePreferences:l.f,...d?.openKeyboardHelp&&{onOpenKeyboardHelp:d.openKeyboardHelp},className:"semiont-page-layout--auth",showAuthLinks:!1,children:(0,t.jsx)(c.SignUpForm,{onSignUp:f,Link:m(),translations:b})})}function d(){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)(d,{}),children:(0,t.jsx)(h,{})})}},46801:(e,n,o)=>{Promise.resolve().then(o.bind(o,46105))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=46801)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1389],{46105:(e,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>k});var t=o(54568),a=o(7620),i=o(21153),r=o(79748),s=o(33971),c=o(55048),l=o(11753),p=o(14822),g=o(80889),u=o(65587),m=o.n(u);function h(){let e=(0,s.c)("AuthSignUp"),n=(0,s.c)("Footer"),o=(0,s.c)("Navigation"),u=(0,s.c)("Home"),h=(0,r.useSearchParams)(),d=(0,a.useContext)(p.GZ),k=h?.get("callbackUrl")||"/auth/welcome",f=async()=>{await (0,i.signIn)("google",{callbackUrl:k})},b={pageTitle:e("pageTitle"),signUpPrompt:e("signUpPrompt"),signUpWithGoogle:e("signUpWithGoogle"),creatingAccount:e("creatingAccount"),approvedDomainsInfo:e("approvedDomainsInfo"),termsAgreement:e("termsAgreement"),alreadyHaveAccount:e("alreadyHaveAccount"),tagline:u("tagline"),backToHome:e("backToHome")};return(0,t.jsx)(c.PageLayout,{Link:g.N,routes:g.J,t:n,tNav:o,tHome:u,CookiePreferences:l.f,...d?.openKeyboardHelp&&{onOpenKeyboardHelp:d.openKeyboardHelp},className:"semiont-page-layout--auth",showAuthLinks:!1,children:(0,t.jsx)(c.SignUpForm,{onSignUp:f,Link:m(),translations:b})})}function d(){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)(d,{}),children:(0,t.jsx)(h,{})})}},46801:(e,n,o)=>{Promise.resolve().then(o.bind(o,46105))}},e=>{e.O(0,[3473,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],{16059:(e,i,t)=>{Promise.resolve().then(t.bind(t,58574))},58574:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>l});var r=t(54568),o=t(7620),s=t(21153),n=t(31517),c=t(33971),a=t(67373);function l(){let e=(0,c.c)("AuthWelcome"),{data:i,status:l}=(0,s.useSession)(),p=(0,n.rd)(),[d,u]=(0,o.useState)(!1),m=(0,a.useToast)(),b=(0,a.useAuthApi)(),{data:h}=b.me.useQuery(),g=b.acceptTerms.useMutation();(0,o.useEffect)(()=>{if("loading"!==l){if("unauthenticated"===l)return void p.push("/auth/signin");if(h?.termsAcceptedAt||i&&!i.isNewUser)return void p.push("/")}},[l,i,p,h]);let y=async i=>{if(!i){let{signOut:e}=await Promise.resolve().then(t.t.bind(t,21153,23));await e({callbackUrl:"/"});return}try{await g.mutateAsync(),u(!0),setTimeout(()=>{p.push("/")},1e3)}catch(i){console.error("Terms acceptance error:",i),m.showError(e("errorAcceptingTerms"))}};return(0,r.jsx)(a.WelcomePage,{userName:i?.user?.name?.split(" ")[0]??"",termsAcceptedAt:h?.termsAcceptedAt??null,isNewUser:i?.isNewUser??!1,status:"loading"===l?"loading":d?"accepted":"form",isProcessing:g.isPending,onAccept:()=>y(!0),onDecline:()=>y(!1),translations:{loading:e("loading"),welcomeTitle:e("welcomeTitle"),thanksForAccepting:e("thanksForAccepting"),welcomeUser:e("welcomeUser",{firstName:i?.user?.name?.split(" ")[0]??""}),reviewTermsPrompt:e("reviewTermsPrompt"),termsSummaryTitle:e("termsSummaryTitle"),termsSummaryIntro:e("termsSummaryIntro"),acceptableUseTitle:e("acceptableUseTitle"),acceptableUseResponsible:e("acceptableUseResponsible"),acceptableUseRespect:e("acceptableUseRespect"),acceptableUseConduct:e("acceptableUseConduct"),prohibitedContentTitle:e("prohibitedContentTitle"),prohibitedContentIntro:e("prohibitedContentIntro"),prohibitedIllegal:e("prohibitedIllegal"),prohibitedAdult:e("prohibitedAdult"),prohibitedHate:e("prohibitedHate"),prohibitedViolence:e("prohibitedViolence"),prohibitedMisinformation:e("prohibitedMisinformation"),prohibitedPrivacy:e("prohibitedPrivacy"),prohibitedCopyright:e("prohibitedCopyright"),prohibitedMalware:e("prohibitedMalware"),prohibitedSpam:e("prohibitedSpam"),conductTitle:e("conductTitle"),conductDescription:e("conductDescription"),conductLink:e("conductLink"),conductPromotion:e("conductPromotion"),responsibilitiesTitle:e("responsibilitiesTitle"),responsibilitiesSecure:e("responsibilitiesSecure"),responsibilitiesReport:e("responsibilitiesReport"),responsibilitiesAccurate:e("responsibilitiesAccurate"),responsibilitiesComply:e("responsibilitiesComply"),violationsWarning:e("violationsWarning"),readFullTerms:e("readFullTerms"),termsOfService:e("termsOfService"),and:e("and"),privacyPolicy:e("privacyPolicy"),declineAndSignOut:e("declineAndSignOut"),acceptAndContinue:e("acceptAndContinue"),processing:e("processing"),legallyBound:e("legallyBound")},PageLayout:a.PageLayout,Link:n.N_})}}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=16059)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3219],{16059:(e,i,t)=>{Promise.resolve().then(t.bind(t,58574))},58574:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>l});var r=t(54568),o=t(7620),s=t(21153),n=t(31517),c=t(33971),a=t(55048);function l(){let e=(0,c.c)("AuthWelcome"),{data:i,status:l}=(0,s.useSession)(),p=(0,n.rd)(),[d,u]=(0,o.useState)(!1),m=(0,a.useToast)(),b=(0,a.useAuthApi)(),{data:h}=b.me.useQuery(),g=b.acceptTerms.useMutation();(0,o.useEffect)(()=>{if("loading"!==l){if("unauthenticated"===l)return void p.push("/auth/signin");if(h?.termsAcceptedAt||i&&!i.isNewUser)return void p.push("/")}},[l,i,p,h]);let y=async i=>{if(!i){let{signOut:e}=await Promise.resolve().then(t.t.bind(t,21153,23));await e({callbackUrl:"/"});return}try{await g.mutateAsync(),u(!0),setTimeout(()=>{p.push("/")},1e3)}catch(i){console.error("Terms acceptance error:",i),m.showError(e("errorAcceptingTerms"))}};return(0,r.jsx)(a.WelcomePage,{userName:i?.user?.name?.split(" ")[0]??"",termsAcceptedAt:h?.termsAcceptedAt??null,isNewUser:i?.isNewUser??!1,status:"loading"===l?"loading":d?"accepted":"form",isProcessing:g.isPending,onAccept:()=>y(!0),onDecline:()=>y(!1),translations:{loading:e("loading"),welcomeTitle:e("welcomeTitle"),thanksForAccepting:e("thanksForAccepting"),welcomeUser:e("welcomeUser",{firstName:i?.user?.name?.split(" ")[0]??""}),reviewTermsPrompt:e("reviewTermsPrompt"),termsSummaryTitle:e("termsSummaryTitle"),termsSummaryIntro:e("termsSummaryIntro"),acceptableUseTitle:e("acceptableUseTitle"),acceptableUseResponsible:e("acceptableUseResponsible"),acceptableUseRespect:e("acceptableUseRespect"),acceptableUseConduct:e("acceptableUseConduct"),prohibitedContentTitle:e("prohibitedContentTitle"),prohibitedContentIntro:e("prohibitedContentIntro"),prohibitedIllegal:e("prohibitedIllegal"),prohibitedAdult:e("prohibitedAdult"),prohibitedHate:e("prohibitedHate"),prohibitedViolence:e("prohibitedViolence"),prohibitedMisinformation:e("prohibitedMisinformation"),prohibitedPrivacy:e("prohibitedPrivacy"),prohibitedCopyright:e("prohibitedCopyright"),prohibitedMalware:e("prohibitedMalware"),prohibitedSpam:e("prohibitedSpam"),conductTitle:e("conductTitle"),conductDescription:e("conductDescription"),conductLink:e("conductLink"),conductPromotion:e("conductPromotion"),responsibilitiesTitle:e("responsibilitiesTitle"),responsibilitiesSecure:e("responsibilitiesSecure"),responsibilitiesReport:e("responsibilitiesReport"),responsibilitiesAccurate:e("responsibilitiesAccurate"),responsibilitiesComply:e("responsibilitiesComply"),violationsWarning:e("violationsWarning"),readFullTerms:e("readFullTerms"),termsOfService:e("termsOfService"),and:e("and"),privacyPolicy:e("privacyPolicy"),declineAndSignOut:e("declineAndSignOut"),acceptAndContinue:e("acceptAndContinue"),processing:e("processing"),legallyBound:e("legallyBound")},PageLayout:a.PageLayout,Link:n.N_})}}},e=>{e.O(0,[3473,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],{19200:(e,t,o)=>{Promise.resolve().then(o.bind(o,82812))},82812:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>k});var n=o(54568),r=o(7620),a=o(33971),s=o(47213),i=o(31517),c=o(79748),l=o(21153),u=o(67373),d=o(42065),p=o(29315),m=o(10078),g=o(43077),f=o(74601),y=o(99281);function h(){let e=(0,a.c)("Compose"),t=(0,s.Ym)(),o=(0,i.rd)(),h=(0,c.useSearchParams)(),{data:k,status:C}=(0,l.useSession)(),{showError:R,showSuccess:v}=(0,u.useToast)(),w=h?.get("mode"),T=h?.get("token");(0,r.useEffect)(()=>{"loading"!==C&&(k?.backendToken||o.push("/"))},[k,C,o]);let b=h?.get("annotationUri"),S=h?.get("sourceDocumentId"),D=h?.get("name"),F=h?.get("entityTypes"),[x,I]=(0,r.useState)(!0),[N,P]=(0,r.useState)(null),[E,A]=(0,r.useState)(null),[L,O]=(0,r.useState)(null),{activePanel:U}=(0,u.usePanelBrowse)(),{theme:M,setTheme:_,resolvedTheme:j}=(0,u.useTheme)(),{showLineNumbers:$,toggleLineNumbers:B}=(0,u.useLineNumbers)(),{hoverDelayMs:H}=(0,u.useHoverDelay)();(0,d.C$z)({"settings:theme-changed":({theme:e})=>_(e),"settings:line-numbers-toggled":()=>B()});let Q=(0,u.useResources)(),Y=(0,u.useAnnotations)(),z=(0,u.useEntityTypes)(),J=(0,u.useApiClient)(),q=(0,u.useAuthToken)(),{data:G}=z.list.useQuery(),K=G?.entityTypes||[],V=Q.create.useMutation(),W=Y.updateBody.useMutation(),{data:X}=Q.getByToken.useQuery(T||""),Z=Q.createFromToken.useMutation(),ee=!!(b&&S&&D),et="clone"===w&&!!T;(0,r.useEffect)(()=>{(async()=>{if(ee){A({annotationUri:b,sourceDocumentId:S,name:D,entityTypes:F?F.split(","):[]});let e=`gather-context:${b}`,t=sessionStorage.getItem(e);if(t){try{O(JSON.parse(t))}catch{}sessionStorage.removeItem(e)}I(!1);return}if(et&&X){if(X.sourceResource&&J&&q)try{let e=(0,g.a)(X.sourceResource["@id"]),t=(0,f.f9)(X.sourceResource)||"text/plain",{data:o}=await J.getResourceRepresentation(e,{accept:t,auth:q}),n=(0,y.rv)(o,t);P({sourceResource:X.sourceResource,sourceContent:n})}catch(e){console.error("Failed to fetch representation:",e),R("Failed to load resource representation")}else R("Invalid or expired clone token"),o.push("/know/discover");I(!1)}else et&&!T?(R("Clone token not found. Please try cloning again."),o.push("/know/discover")):I(!1)})()},[w,T,X,b,S,D,F,k?.backendToken]);let eo=async e=>{try{let t;if("clone"===e.mode)t=(await Z.mutateAsync({token:T,name:e.name,content:e.content,archiveOriginal:e.archiveOriginal??!0})).resourceId;else{let o,n;if(e.file)o=e.file,n=e.format??"application/octet-stream";else{let t=new Blob([e.content||""],{type:e.format??"application/octet-stream"}),r="text/plain"===e.format?".txt":"text/html"===e.format?".html":".md";o=new File([t],e.name+r,{type:e.format??"application/octet-stream"}),n=e.format??"application/octet-stream"}let r=e.charset&&!e.file?`${n}; charset=${e.charset}`:n;if(t=(await V.mutateAsync({name:e.name,file:o,format:r,entityTypes:e.entityTypes||[],language:e.language,creationMethod:"ui",storageUri:e.storageUri})).resourceId,"reference"===e.mode&&e.annotationUri&&e.sourceDocumentId)try{await W.mutateAsync({resourceId:(0,g.a)(e.sourceDocumentId),annotationId:(0,g.Hn)(e.annotationUri),data:{resourceId:e.sourceDocumentId,operations:[{op:"add",item:{type:"SpecificResource",source:t,purpose:"linking"}}]}}),v("Reference successfully linked to the new resource")}catch(e){console.error("Failed to update reference:",e),R("Resource created but failed to update reference. You may need to manually link it.")}}o.push(`/know/resource/${encodeURIComponent(t)}`)}catch(e){throw console.error("Failed to save resource:",e),R(e instanceof Error?e.message:"Failed to save resource. Please try again."),e}};return"loading"===C||x?(0,n.jsx)(u.ComposeLoadingState,{message:"loading"===C?"Checking authentication...":"Loading cloned resource..."}):k?.backendToken?(0,n.jsx)(u.ResourceComposePage,{mode:et?"clone":ee?"reference":"new",cloneData:N,referenceData:E,gatheredContext:L,availableEntityTypes:K,initialLocale:t,theme:j,showLineNumbers:$,hoverDelayMs:H,activePanel:U,onSaveResource:eo,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:m.t,Toolbar:p.M7E}):null}function k(){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)(h,{})})}}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=19200)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4082],{19200:(e,t,o)=>{Promise.resolve().then(o.bind(o,82812))},82812:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>k});var n=o(54568),r=o(7620),a=o(33971),s=o(47213),i=o(31517),c=o(79748),l=o(21153),u=o(55048),d=o(42065),p=o(29315),m=o(10078),g=o(43077),f=o(74601),y=o(99281);function h(){let e=(0,a.c)("Compose"),t=(0,s.Ym)(),o=(0,i.rd)(),h=(0,c.useSearchParams)(),{data:k,status:C}=(0,l.useSession)(),{showError:R,showSuccess:v}=(0,u.useToast)(),w=h?.get("mode"),T=h?.get("token");(0,r.useEffect)(()=>{"loading"!==C&&(k?.backendToken||o.push("/"))},[k,C,o]);let b=h?.get("annotationUri"),S=h?.get("sourceDocumentId"),D=h?.get("name"),F=h?.get("entityTypes"),[x,I]=(0,r.useState)(!0),[N,P]=(0,r.useState)(null),[E,A]=(0,r.useState)(null),[L,O]=(0,r.useState)(null),{activePanel:U}=(0,u.usePanelBrowse)(),{theme:M,setTheme:_,resolvedTheme:j}=(0,u.useTheme)(),{showLineNumbers:$,toggleLineNumbers:B}=(0,u.useLineNumbers)(),{hoverDelayMs:H}=(0,u.useHoverDelay)();(0,d.C$z)({"settings:theme-changed":({theme:e})=>_(e),"settings:line-numbers-toggled":()=>B()});let Q=(0,u.useResources)(),Y=(0,u.useAnnotations)(),z=(0,u.useEntityTypes)(),J=(0,u.useApiClient)(),q=(0,u.useAuthToken)(),{data:G}=z.list.useQuery(),K=G?.entityTypes||[],V=Q.create.useMutation(),W=Y.updateBody.useMutation(),{data:X}=Q.getByToken.useQuery(T||""),Z=Q.createFromToken.useMutation(),ee=!!(b&&S&&D),et="clone"===w&&!!T;(0,r.useEffect)(()=>{(async()=>{if(ee){A({annotationUri:b,sourceDocumentId:S,name:D,entityTypes:F?F.split(","):[]});let e=`gather-context:${b}`,t=sessionStorage.getItem(e);if(t){try{O(JSON.parse(t))}catch{}sessionStorage.removeItem(e)}I(!1);return}if(et&&X){if(X.sourceResource&&J&&q)try{let e=(0,g.a)(X.sourceResource["@id"]),t=(0,f.f9)(X.sourceResource)||"text/plain",{data:o}=await J.getResourceRepresentation(e,{accept:t,auth:q}),n=(0,y.rv)(o,t);P({sourceResource:X.sourceResource,sourceContent:n})}catch(e){console.error("Failed to fetch representation:",e),R("Failed to load resource representation")}else R("Invalid or expired clone token"),o.push("/know/discover");I(!1)}else et&&!T?(R("Clone token not found. Please try cloning again."),o.push("/know/discover")):I(!1)})()},[w,T,X,b,S,D,F,k?.backendToken]);let eo=async e=>{try{let t;if("clone"===e.mode)t=(await Z.mutateAsync({token:T,name:e.name,content:e.content,archiveOriginal:e.archiveOriginal??!0})).resourceId;else{let o,n;if(e.file)o=e.file,n=e.format??"application/octet-stream";else{let t=new Blob([e.content||""],{type:e.format??"application/octet-stream"}),r="text/plain"===e.format?".txt":"text/html"===e.format?".html":".md";o=new File([t],e.name+r,{type:e.format??"application/octet-stream"}),n=e.format??"application/octet-stream"}let r=e.charset&&!e.file?`${n}; charset=${e.charset}`:n;if(t=(await V.mutateAsync({name:e.name,file:o,format:r,entityTypes:e.entityTypes||[],language:e.language,creationMethod:"ui",storageUri:e.storageUri})).resourceId,"reference"===e.mode&&e.annotationUri&&e.sourceDocumentId)try{await W.mutateAsync({resourceId:(0,g.a)(e.sourceDocumentId),annotationId:(0,g.Hn)(e.annotationUri),data:{resourceId:e.sourceDocumentId,operations:[{op:"add",item:{type:"SpecificResource",source:t,purpose:"linking"}}]}}),v("Reference successfully linked to the new resource")}catch(e){console.error("Failed to update reference:",e),R("Resource created but failed to update reference. You may need to manually link it.")}}o.push(`/know/resource/${encodeURIComponent(t)}`)}catch(e){throw console.error("Failed to save resource:",e),R(e instanceof Error?e.message:"Failed to save resource. Please try again."),e}};return"loading"===C||x?(0,n.jsx)(u.ComposeLoadingState,{message:"loading"===C?"Checking authentication...":"Loading cloned resource..."}):k?.backendToken?(0,n.jsx)(u.ResourceComposePage,{mode:et?"clone":ee?"reference":"new",cloneData:N,referenceData:E,gatheredContext:L,availableEntityTypes:K,initialLocale:t,theme:j,showLineNumbers:$,hoverDelayMs:H,activePanel:U,onSaveResource:eo,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:m.t,Toolbar:p.M7E}):null}function k(){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)(h,{})})}}},e=>{e.O(0,[3473,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],{9501:(e,s,t)=>{Promise.resolve().then(t.bind(t,14208))},14208:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var o=t(54568),r=t(7620),a=t(33971),n=t(31517),c=t(67373),i=t(10078);function u(){let e=(0,a.c)("Discover"),s=(0,n.rd)(),{activePanel:t}=(0,c.usePanelBrowse)(),{theme:u,setTheme:l,resolvedTheme:h}=(0,c.useTheme)(),{showLineNumbers:d,toggleLineNumbers:g}=(0,c.useLineNumbers)(),m=(0,r.useCallback)(({theme:e})=>{l(e)},[l]),p=(0,r.useCallback)(()=>{g()},[g]);(0,c.useEventSubscriptions)({"settings:theme-changed":m,"settings:line-numbers-toggled":p});let y=(0,c.useResources)(),R=(0,c.useEntityTypes)(),{data:b,isLoading:v}=y.list.useQuery({limit:10,archived:!1}),{data:T}=R.list.useQuery(),{data:k,isFetching:w}=y.search.useQuery("",20),B=b?.resources||[],E=k?.resources||[],N=T?.entityTypes||[];return(0,o.jsx)(c.ResourceDiscoveryPage,{recentDocuments:B,searchDocuments:E,entityTypes:N,isLoadingRecent:v,isSearching:w,theme:h,showLineNumbers:d,activePanel:t,onNavigateToResource:e=>{s.push(`/know/resource/${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,[3473,2076,587,8096,7358],()=>e(e.s=9501)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6973],{9501:(e,s,t)=>{Promise.resolve().then(t.bind(t,14208))},14208:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var o=t(54568),r=t(7620),a=t(33971),n=t(31517),c=t(55048),i=t(10078);function u(){let e=(0,a.c)("Discover"),s=(0,n.rd)(),{activePanel:t}=(0,c.usePanelBrowse)(),{theme:u,setTheme:l,resolvedTheme:h}=(0,c.useTheme)(),{showLineNumbers:d,toggleLineNumbers:g}=(0,c.useLineNumbers)(),m=(0,r.useCallback)(({theme:e})=>{l(e)},[l]),p=(0,r.useCallback)(()=>{g()},[g]);(0,c.useEventSubscriptions)({"settings:theme-changed":m,"settings:line-numbers-toggled":p});let y=(0,c.useResources)(),R=(0,c.useEntityTypes)(),{data:b,isLoading:v}=y.list.useQuery({limit:10,archived:!1}),{data:T}=R.list.useQuery(),{data:k,isFetching:w}=y.search.useQuery("",20),B=b?.resources||[],E=k?.resources||[],N=T?.entityTypes||[];return(0,o.jsx)(c.ResourceDiscoveryPage,{recentDocuments:B,searchDocuments:E,entityTypes:N,isLoadingRecent:v,isSearching:w,theme:h,showLineNumbers:d,activePanel:t,onNavigateToResource:e=>{s.push(`/know/resource/${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,[3473,2076,587,8096,7358],()=>e(e.s=9501)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4686],{47059:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>y});var o=s(54568),n=s(7620),t=s(33971),a=s(21153),l=s(55048),i=s(31517),d=s(42362),c=s(83878),u=s(21911),h=s(61849);let x=({className:e})=>(0,o.jsx)("span",{className:e,style:{fontSize:"1.25rem",lineHeight:"1"},children:"\uD83D\uDD2D"});function m({isCollapsed:e,toggleCollapsed:r,navigationMenu:s}){let a=(0,t.c)("Sidebar"),f=(0,i.a8)(),p=(0,i.rd)(),{openResources:v,removeResource:b,reorderResources:g}=(0,l.useOpenResources)(),k=[{name:a("discover"),href:"/know/discover",icon:x,description:a("searchAndBrowse")},{name:a("compose"),href:"/know/compose",icon:d.A,description:a("composeNewResource")}],w=(0,n.useCallback)(()=>{r()},[r]),j=(0,n.useCallback)(({resourceId:e})=>{b(e),f===`/know/resource/${e}`&&p.push("/know/discover")},[b,f,p]),N=(0,n.useCallback)(({oldIndex:e,newIndex:r})=>{g(e,r)},[g]);return(0,l.useEventSubscriptions)({"browse:sidebar-toggle":w,"browse:resource-close":j,"browse:resource-reorder":N}),(0,o.jsx)(l.CollapsibleResourceNavigation,{fixedItems:k,resources:v,isCollapsed:e,currentPath:f,LinkComponent:i.N_,onNavigate:e=>{p.push(e)},getResourceHref:e=>`/know/resource/${e}`,className:"knowledge-navigation",translations:{title:a("title")},icons:{chevronLeft:c.A,bars:u.A,close:h.A},navigationMenu:s})}var f=s(80889),p=s(23537);function v(){let e=(0,t.c)("Navigation"),r=(0,t.c)("Home"),{isAuthenticated:s,isAdmin:n,isModerator:a}=(0,p.As)();return(0,o.jsx)(l.LeftSidebar,{Link:f.N,routes:f.J,t:e,tHome:r,brandingLink:"/",collapsible:!0,storageKey:"knowledgeNavCollapsed",isAuthenticated:s,isAdmin:n,isModerator:a,children:(e,r,s)=>(0,o.jsx)(m,{isCollapsed:e,toggleCollapsed:r,navigationMenu:s})})}var b=s(11753),g=s(14822),k=s(91143),w=s(68728);function j(){return(0,l.useGlobalEvents)(),null}function N(){return(0,l.useAttentionStream)(),null}function y({children:e}){let r,s=(0,t.c)("Footer"),i=(0,n.useContext)(g.GZ),d=function(){let[e,r]=(0,n.useState)([]),[s,o]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=localStorage.getItem("openDocuments");if(e)try{let s=JSON.parse(e);r(s.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)}o(!0)},[]),(0,n.useEffect)(()=>{s&&localStorage.setItem("openDocuments",JSON.stringify(e))},[e,s]),(0,n.useEffect)(()=>{let e=e=>{if("openDocuments"===e.key&&e.newValue)try{let s=JSON.parse(e.newValue);r(s.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,s,o,n)=>{r(r=>{if(r.find(r=>r.id===e))return r.map(r=>r.id===e?{...r,name:s,...o&&{mediaType:o},...n&&{storageUri:n}}:r);let t=r.length>0?Math.max(...r.map(e=>e.order??e.openedAt)):0;return[...r,{id:e,name:s,openedAt:Date.now(),order:t+1,...o&&{mediaType:o},...n&&{storageUri:n}}]})},[]),a=(0,n.useCallback)(e=>{r(r=>r.filter(r=>r.id!==e))},[]),l=(0,n.useCallback)((e,s)=>{r(r=>r.map(r=>r.id===e?{...r,name:s}:r))},[]),i=(0,n.useCallback)((e,s)=>{r(r=>(0,k.be)(r,e,s).map((e,r)=>({...e,order:r})))},[]);return(0,n.useMemo)(()=>({openResources:e,addResource:t,removeResource:a,updateResourceName:l,reorderResources:i}),[e,t,a,l,i])}(),c=(r=(0,w.jE)(),(0,n.useMemo)(()=>({invalidateAnnotations:e=>{r.invalidateQueries({queryKey:["resources",e,"annotations"]})},invalidateEvents:e=>{r.invalidateQueries({queryKey:["resources",e,"events"]})}}),[r])),{data:u,status:h}=(0,a.useSession)(),x=u?.backendToken||null;return"loading"===h?(0,o.jsx)("div",{className:"h-screen flex items-center justify-center",children:(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),(0,o.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"Loading..."})]})}):"unauthenticated"!==h&&u?.backendToken?(0,o.jsx)(l.AuthTokenProvider,{token:x,children:(0,o.jsx)(l.ApiClientProvider,{baseUrl:"",children:(0,o.jsx)(l.CacheProvider,{cacheManager:c,children:(0,o.jsx)(l.OpenResourcesProvider,{openResourcesManager:d,children:(0,o.jsxs)(l.ResourceAnnotationsProvider,{children:[(0,o.jsx)(j,{}),(0,o.jsx)(N,{}),(0,o.jsxs)("div",{className:"h-screen semiont-knowledge-layout semiont-layout-with-footer flex flex-col overflow-hidden",children:[(0,o.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,o.jsx)(v,{}),(0,o.jsx)("main",{className:"flex-1 w-full px-2 pb-6 flex flex-col overflow-hidden",children:(0,o.jsx)("div",{className:"w-full mx-auto flex-1 flex flex-col h-full overflow-hidden",children:e})})]}),(0,o.jsx)(l.Footer,{Link:f.N,routes:f.J,t:s,CookiePreferences:b.f,...i?.openKeyboardHelp&&{onOpenKeyboardHelp:i.openKeyboardHelp}})]})]})})})})}):(0,o.jsx)("div",{className:"h-screen flex items-center justify-center p-4",children:(0,o.jsxs)("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6",children:[(0,o.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,o.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,o.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,o.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,o.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Authentication Required"})]}),(0,o.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,o.jsx)("button",{onClick:()=>(0,a.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,s)=>{Promise.resolve().then(s.bind(s,47059))}},e=>{e.O(0,[3473,2076,8096,587,7358],()=>e(e.s=92294)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9864],{1810:(e,r,o)=>{Promise.resolve().then(o.bind(o,86981))},86981:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>f});var s=o(54568),t=o(7620),u=o(79748),c=o(47213),a=o(67373),n=o(43077),i=o(80889),l=o(10078);function f(){let e=(0,u.useParams)(),r=(0,c.Ym)(),o=(0,n.a)(e?.id),{data:f,isLoading:d,isError:R,error:E,refetch:h}=(0,a.useResources)().get.useQuery(o);if((0,t.useEffect)(()=>{R&&!d&&console.error(`[Document] Failed to load resource ${o}:`,E)},[R,d,o,E]),d||!f)return(0,s.jsx)(a.ResourceLoadingState,{});if(R)return(0,s.jsx)(a.ResourceErrorState,{error:E,onRetry:()=>h()});if(!f.resource)return(0,s.jsx)(a.ResourceErrorState,{error:Error("Resource not found"),onRetry:()=>h()});let _=f.resource,k=(0,n.a)(_["@id"]);return(0,s.jsx)(a.ResourceViewerPage,{resource:_,rUri:k,locale:r,Link:i.N,routes:i.J,ToolbarPanels:l.t,refetchDocument:h})}}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=1810)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9864],{1810:(e,r,o)=>{Promise.resolve().then(o.bind(o,86981))},86981:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>f});var s=o(54568),t=o(7620),u=o(79748),c=o(47213),a=o(55048),n=o(43077),i=o(80889),l=o(10078);function f(){let e=(0,u.useParams)(),r=(0,c.Ym)(),o=(0,n.a)(e?.id),{data:f,isLoading:d,isError:R,error:E,refetch:h}=(0,a.useResources)().get.useQuery(o);if((0,t.useEffect)(()=>{R&&!d&&console.error(`[Document] Failed to load resource ${o}:`,E)},[R,d,o,E]),d||!f)return(0,s.jsx)(a.ResourceLoadingState,{});if(R)return(0,s.jsx)(a.ResourceErrorState,{error:E,onRetry:()=>h()});if(!f.resource)return(0,s.jsx)(a.ResourceErrorState,{error:Error("Resource not found"),onRetry:()=>h()});let _=f.resource,k=(0,n.a)(_["@id"]);return(0,s.jsx)(a.ResourceViewerPage,{resource:_,rUri:k,locale:r,Link:i.N,routes:i.J,ToolbarPanels:l.t,refetchDocument:h})}}},e=>{e.O(0,[3473,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],{2704:(e,t,r)=>{"use strict";r.d(t,{CookieBanner:()=>c});var s=r(54568),n=r(7620),i=r(33971),o=r(80027),a=r(73778),l=r(57507);function c({className:e=""}){let t=(0,i.c)("CookieBanner"),[r,d]=(0,n.useState)(!1),[m,h]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),[p,y]=(0,n.useState)("GENERAL"),[v,g]=(0,n.useState)({necessary:!0,analytics:!1,marketing:!1,preferences:!1});(0,n.useEffect)(()=>{(async()=>{if((0,o.Tn)()){d(!0);try{let[e,t]=await Promise.all([(0,o.xS)(),(0,o.xO)()]);e?y("GDPR"):t?y("CCPA"):y("GENERAL")}catch(e){console.error("Failed to detect region:",e),y("GENERAL")}}})()},[]);let j=async()=>{x(!0);try{await Promise.resolve((0,o.Jk)({necessary:!0,analytics:!0,marketing:!0,preferences:!0})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{x(!1)}},f=async()=>{x(!0);try{await Promise.resolve((0,o.Jk)({necessary:!0,analytics:!1,marketing:!1,preferences:!1})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{x(!1)}},b=async()=>{x(!0);try{await Promise.resolve((0,o.Jk)(v)),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{x(!1)}};if(!r)return null;let k=(()=>{switch(p){case"GDPR":return{title:t("gdprTitle"),description:t("gdprDescription"),learnMore:t("gdprLearnMore")};case"CCPA":return{title:t("ccpaTitle"),description:t("ccpaDescription"),learnMore:t("ccpaLearnMore")};default:return{title:t("generalTitle"),description:t("generalDescription"),learnMore:t("generalLearnMore")}}})();return(0,s.jsx)("div",{className:e,style:{position:"fixed",bottom:0,left:0,right:0,zIndex:50,backgroundColor:"var(--semiont-bg-primary)",borderTop:"1px solid var(--semiont-border-primary)",boxShadow:"var(--semiont-shadow-lg)"},children:(0,s.jsx)("div",{style:{maxWidth:"80rem",margin:"0 auto",padding:"1rem 1.5rem"},children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1.5rem",flexWrap:"wrap"},children:[(0,s.jsxs)("div",{style:{flex:1,minWidth:"300px"},children:[(0,s.jsx)("h3",{style:{fontSize:"1.125rem",fontWeight:600,color:"var(--semiont-text-primary)",marginBottom:"0.5rem"},children:k.title}),(0,s.jsx)("p",{style:{fontSize:"var(--semiont-text-sm, 0.875rem)",color:"var(--semiont-text-secondary)",marginBottom:"0.25rem"},children:k.description}),(0,s.jsx)("p",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)"},children:k.learnMore})]}),(0,s.jsxs)("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center",flexWrap:"wrap"},children:[(0,s.jsxs)("button",{type:"button",onClick:()=>h(!m),className:"semiont-button--secondary",style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[t("customize"),m?(0,s.jsx)(a.A,{style:{width:"1rem",height:"1rem"}}):(0,s.jsx)(l.A,{style:{width:"1rem",height:"1rem"}})]}),"GDPR"!==p&&(0,s.jsx)("button",{type:"button",onClick:f,disabled:u,className:"semiont-button--secondary",children:u?t("saving"):t("rejectAll")}),(0,s.jsx)("button",{type:"button",onClick:j,disabled:u,className:"semiont-button--primary",children:u?t("saving"):t("acceptAll")})]})]}),m&&(0,s.jsx)("div",{style:{borderTop:"1px solid var(--semiont-border-primary)",paddingTop:"1rem"},children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[(0,s.jsx)("h4",{style:{fontSize:"1rem",fontWeight:500,color:"var(--semiont-text-primary)"},children:t("cookiePreferences")}),(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:o.wD.map(e=>(0,s.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",height:"1.25rem"},children:(0,s.jsx)("input",{id:`cookie-${e.id}`,type:"checkbox",checked:v[e.id]||!1,onChange:()=>{var t;"necessary"!==(t=e.id)&&g(e=>({...e,[t]:!e[t]}))},disabled:e.required||u,style:{accentColor:"var(--semiont-color-primary-600, #2563eb)"}})}),(0,s.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,s.jsxs)("label",{htmlFor:`cookie-${e.id}`,style:{fontSize:"var(--semiont-text-sm, 0.875rem)",fontWeight:500,color:"var(--semiont-text-primary)",cursor:"pointer"},children:[e.name,e.required&&(0,s.jsx)("span",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)",marginLeft:"0.25rem"},children:t("required")})]}),(0,s.jsx)("p",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-secondary)",marginTop:"0.25rem"},children:e.description}),(0,s.jsxs)("details",{style:{marginTop:"0.25rem"},children:[(0,s.jsx)("summary",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-color-primary-600, #2563eb)",cursor:"pointer"},children:t("viewCookies")}),(0,s.jsx)("div",{style:{marginTop:"0.25rem",fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)"},children:e.cookies.join(", ")})]})]})]},e.id))}),(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.75rem",paddingTop:"1rem"},children:[(0,s.jsx)("button",{type:"button",onClick:()=>h(!1),className:"semiont-button--secondary",children:t("cancel")}),(0,s.jsx)("button",{type:"button",onClick:b,disabled:u,className:"semiont-button--primary",children:u?t("saving"):t("savePreferences")})]})]})})]})})})}},40386:(e,t,r)=>{"use strict";r.d(t,{Providers:()=>j});var s=r(54568),n=r(7620),i=r(46577),o=r(43430),a=r(57927),l=r(68728),c=r(21153),d=r(67373),m=r(14822),h=r(31517),u=r(42065);function x(){let e=(0,h.rd)(),t=(0,n.useCallback)(({url:t,cancelFallback:r})=>{r(),e.push(t)},[e]),r=(0,n.useCallback)(({path:t})=>{e.push(t)},[e]);return(0,u.C$z)({"browse:external-navigate":t,"browse:router-push":r}),null}class p extends n.Component{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}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){}render(){if(this.state.hasError){let e=this.state.error?.message?.toLowerCase().includes("auth")||this.state.error?.message?.toLowerCase().includes("session")||this.state.error?.message?.toLowerCase().includes("token");return(0,s.jsx)("div",{className:"min-h-[400px] 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-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center",children:(0,s.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,s.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,s.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:e?"Authentication Error":"Something went wrong"})]}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:e?"There was a problem with your authentication. Please try signing in again.":"An unexpected error occurred. Please try refreshing the page."}),!1,(0,s.jsx)("div",{className:"flex gap-3",children:e?(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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}}var y=r(34364),v=r(47213);function g({children:e,queryClient:t}){let r,i,o=function(){let{data:e}=(0,c.useSession)(),[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e?.backendToken)try{let t=e.backendToken.split(".");if(3===t.length&&t[1]){let e=JSON.parse(atob(t[1]));e.exp&&r(new Date(1e3*e.exp))}}catch(e){console.error("Failed to parse token expiration:",e),r(null)}else r(null)},[e]),(0,n.useMemo)(()=>{let r=Date.now(),s=t?t.getTime()-r:null;return{isAuthenticated:!!e?.backendToken,expiresAt:t,timeUntilExpiry:s,isExpiringSoon:null!==s&&s<3e5&&s>0}},[e,t])}(),a=(r=(0,v.ot)(),i=(0,v.Ym)(),(0,n.useMemo)(()=>({t:(e,t,s)=>{let n=r[e]?.[t];if(!n)return`${e}.${t}`;if(s&&"string"==typeof n){let e=n;return Object.entries(s).forEach(([t,r])=>{e=e.replace(RegExp(`\\{${t}\\}`,"g"),String(r))}),e}return n}}),[r,i]));return(0,s.jsx)(p,{children:(0,s.jsx)(d.SessionProvider,{sessionManager:o,children:(0,s.jsx)(d.TranslationProvider,{translationManager:a,children:(0,s.jsx)(l.Ht,{client:t,children:(0,s.jsx)(d.ToastProvider,{children:(0,s.jsx)(d.LiveRegionProvider,{children:(0,s.jsx)(m.Sv,{children:(0,s.jsx)(d.ThemeProvider,{children:(0,s.jsxs)(d.EventBusProvider,{children:[(0,s.jsx)(x,{}),e]})})})})})})})})})}function j({children:e}){let[t]=(0,n.useState)(()=>new i.E({queryCache:new o.$({onError:e=>{e instanceof y.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 a.q({onError:e=>{e instanceof y.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,t)=>(!(t instanceof y.LG)||401!==t.status&&403!==t.status&&(!(t.status>=400)||!(t.status<500)))&&e<3,retryDelay:e=>Math.min(1e3*2**e,3e4),staleTime:3e5,refetchOnWindowFocus:!1}}}));return(0,s.jsx)(c.SessionProvider,{children:(0,s.jsx)(g,{queryClient:t,children:e})})}},55003:()=>{},67578:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,74471,23)),Promise.resolve().then(r.bind(r,40386)),Promise.resolve().then(r.bind(r,83829)),Promise.resolve().then(r.bind(r,2704)),Promise.resolve().then(r.t.bind(r,55003,23)),Promise.resolve().then(r.bind(r,29035)),Promise.resolve().then(r.bind(r,41145)),Promise.resolve().then(r.t.bind(r,11359,23)),Promise.resolve().then(r.t.bind(r,83580,23)),Promise.resolve().then(r.bind(r,67373))},74471:()=>{},83829:(e,t,r)=>{"use strict";r.d(t,{ClientModals:()=>h});var s=r(54568),n=r(67373),i=r(7620),o=r(56947),a=r(98755),l=r(21153);function c(){let{isAuthenticated:e}=(0,n.useSessionContext)(),[t,r]=(0,i.useState)(e),[c,d]=(0,i.useState)(!1);(0,i.useEffect)(()=>{t&&!e&&d(!0),r(e)},[e,t]),(0,i.useEffect)(()=>(0,n.onAuthEvent)(n.AUTH_EVENTS.UNAUTHORIZED,()=>{d(!0)}),[]);let m=()=>{d(!1),window.location.href="/"};return(0,s.jsx)(o.e,{appear:!0,show:c,children:(0,s.jsxs)(a.lG,{as:"div",className:"semiont-modal",onClose:m,children:[(0,s.jsx)(o._,{enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"semiont-modal__backdrop"})}),(0,s.jsx)("div",{className:"semiont-modal__container",children:(0,s.jsx)("div",{className:"semiont-modal__wrapper",children:(0,s.jsx)(o._,{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,s.jsxs)(a.Lj,{className:"semiont-modal__panel semiont-modal__panel--medium",children:[(0,s.jsx)("div",{className:"semiont-modal__icon-wrapper",children:(0,s.jsx)("div",{className:"semiont-modal__icon",style:{background:"linear-gradient(to bottom right, var(--semiont-color-red-100, #fee2e2), var(--semiont-color-red-300, #fca5a5))"},children:(0,s.jsx)("svg",{style:{width:"1.5rem",height:"1.5rem",color:"var(--semiont-color-red-600, #dc2626)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),(0,s.jsxs)("div",{className:"semiont-modal__content",children:[(0,s.jsx)(a.L3,{className:"semiont-modal__title semiont-modal__title--centered",children:"Session Expired"}),(0,s.jsx)("p",{className:"semiont-modal__description",children:"Your session has expired for security reasons. Please sign in again to continue working."})]}),(0,s.jsxs)("div",{className:"semiont-modal__actions",children:[(0,s.jsx)("button",{type:"button",onClick:m,className:"semiont-button--secondary semiont-button--flex",children:"Go to Home"}),(0,s.jsx)("button",{type:"button",onClick:()=>{(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"semiont-button--primary semiont-button--flex",children:"Sign In Again"})]})]})})})})]})})}var d=r(31517);function m(){let[e,t]=(0,i.useState)(!1),[r,c]=(0,i.useState)(""),m=(0,d.rd)(),{data:h}=(0,l.useSession)();(0,i.useEffect)(()=>(0,n.onAuthEvent)(n.AUTH_EVENTS.FORBIDDEN,e=>{c(e.detail.message||"You do not have permission to perform this action."),t(!0)}),[]);let u=()=>{t(!1),m.back()};return(0,s.jsx)(o.e,{appear:!0,show:e,children:(0,s.jsxs)(a.lG,{as:"div",className:"semiont-modal",onClose:u,children:[(0,s.jsx)(o._,{enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"semiont-modal__backdrop"})}),(0,s.jsx)("div",{className:"semiont-modal__container",children:(0,s.jsx)("div",{className:"semiont-modal__wrapper",children:(0,s.jsx)(o._,{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,s.jsxs)(a.Lj,{className:"semiont-modal__panel semiont-modal__panel--medium",children:[(0,s.jsx)("div",{className:"semiont-modal__icon-wrapper",children:(0,s.jsx)("div",{className:"semiont-modal__icon",children:(0,s.jsx)("svg",{style:{width:"1.5rem",height:"1.5rem",color:"var(--semiont-color-amber-600, #d97706)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",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.jsxs)("div",{className:"semiont-modal__content",children:[(0,s.jsx)(a.L3,{className:"semiont-modal__title semiont-modal__title--centered",children:"Access Denied"}),(0,s.jsx)("p",{className:"semiont-modal__description",children:r})]}),(0,s.jsxs)("div",{style:{padding:"0.75rem",backgroundColor:"var(--semiont-bg-secondary)",borderRadius:"var(--semiont-radius-md, 0.375rem)",border:"1px solid var(--semiont-border-primary)",fontSize:"var(--semiont-text-sm, 0.875rem)",marginBottom:"1rem"},children:[(0,s.jsx)("p",{style:{color:"var(--semiont-text-secondary)",marginBottom:"0.5rem"},children:"This could be because:"}),(0,s.jsxs)("ul",{style:{listStyle:"disc",listStylePosition:"inside",color:"var(--semiont-text-tertiary)",display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,s.jsx)("li",{children:"You don't have the required permissions"}),(0,s.jsx)("li",{children:"The resource is restricted to specific users or teams"}),(0,s.jsx)("li",{children:"Your account type doesn't include this feature"})]})]}),h?.user?.email&&(0,s.jsxs)("p",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)",marginBottom:"1rem"},children:["Currently signed in as: ",(0,s.jsx)("span",{style:{fontWeight:500},children:h.user.email})]}),(0,s.jsxs)("div",{className:"semiont-modal__actions",children:[(0,s.jsx)("button",{type:"button",onClick:u,className:"semiont-button--primary semiont-button--flex",children:"Go Back"}),(0,s.jsx)("button",{type:"button",onClick:()=>{t(!1),m.push("/")},className:"semiont-button--secondary semiont-button--flex",children:"Go to Home"})]}),(0,s.jsx)("div",{className:"semiont-modal__actions",style:{marginTop:"0.5rem",paddingTop:"0.5rem",borderTop:"1px solid var(--semiont-border-primary)"},children:(0,s.jsx)("button",{type:"button",onClick:()=>{t(!1),(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"semiont-button--secondary semiont-button--flex",style:{fontSize:"var(--semiont-text-sm, 0.875rem)"},children:"Switch Account"})})]})})})})]})})}function h(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.SessionExpiryBanner,{}),(0,s.jsx)(c,{}),(0,s.jsx)(m,{})]})}}},e=>{e.O(0,[9306,8096,5494,3473,2076,587,7358],()=>e(e.s=67578)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{2704:(e,t,r)=>{"use strict";r.d(t,{CookieBanner:()=>c});var s=r(54568),n=r(7620),i=r(33971),o=r(80027),a=r(73778),l=r(57507);function c({className:e=""}){let t=(0,i.c)("CookieBanner"),[r,d]=(0,n.useState)(!1),[m,h]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),[p,y]=(0,n.useState)("GENERAL"),[v,g]=(0,n.useState)({necessary:!0,analytics:!1,marketing:!1,preferences:!1});(0,n.useEffect)(()=>{(async()=>{if((0,o.Tn)()){d(!0);try{let[e,t]=await Promise.all([(0,o.xS)(),(0,o.xO)()]);e?y("GDPR"):t?y("CCPA"):y("GENERAL")}catch(e){console.error("Failed to detect region:",e),y("GENERAL")}}})()},[]);let j=async()=>{x(!0);try{await Promise.resolve((0,o.Jk)({necessary:!0,analytics:!0,marketing:!0,preferences:!0})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{x(!1)}},f=async()=>{x(!0);try{await Promise.resolve((0,o.Jk)({necessary:!0,analytics:!1,marketing:!1,preferences:!1})),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{x(!1)}},b=async()=>{x(!0);try{await Promise.resolve((0,o.Jk)(v)),d(!1)}catch(e){console.error("Failed to save cookie consent:",e)}finally{x(!1)}};if(!r)return null;let k=(()=>{switch(p){case"GDPR":return{title:t("gdprTitle"),description:t("gdprDescription"),learnMore:t("gdprLearnMore")};case"CCPA":return{title:t("ccpaTitle"),description:t("ccpaDescription"),learnMore:t("ccpaLearnMore")};default:return{title:t("generalTitle"),description:t("generalDescription"),learnMore:t("generalLearnMore")}}})();return(0,s.jsx)("div",{className:e,style:{position:"fixed",bottom:0,left:0,right:0,zIndex:50,backgroundColor:"var(--semiont-bg-primary)",borderTop:"1px solid var(--semiont-border-primary)",boxShadow:"var(--semiont-shadow-lg)"},children:(0,s.jsx)("div",{style:{maxWidth:"80rem",margin:"0 auto",padding:"1rem 1.5rem"},children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1.5rem",flexWrap:"wrap"},children:[(0,s.jsxs)("div",{style:{flex:1,minWidth:"300px"},children:[(0,s.jsx)("h3",{style:{fontSize:"1.125rem",fontWeight:600,color:"var(--semiont-text-primary)",marginBottom:"0.5rem"},children:k.title}),(0,s.jsx)("p",{style:{fontSize:"var(--semiont-text-sm, 0.875rem)",color:"var(--semiont-text-secondary)",marginBottom:"0.25rem"},children:k.description}),(0,s.jsx)("p",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)"},children:k.learnMore})]}),(0,s.jsxs)("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center",flexWrap:"wrap"},children:[(0,s.jsxs)("button",{type:"button",onClick:()=>h(!m),className:"semiont-button--secondary",style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[t("customize"),m?(0,s.jsx)(a.A,{style:{width:"1rem",height:"1rem"}}):(0,s.jsx)(l.A,{style:{width:"1rem",height:"1rem"}})]}),"GDPR"!==p&&(0,s.jsx)("button",{type:"button",onClick:f,disabled:u,className:"semiont-button--secondary",children:u?t("saving"):t("rejectAll")}),(0,s.jsx)("button",{type:"button",onClick:j,disabled:u,className:"semiont-button--primary",children:u?t("saving"):t("acceptAll")})]})]}),m&&(0,s.jsx)("div",{style:{borderTop:"1px solid var(--semiont-border-primary)",paddingTop:"1rem"},children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[(0,s.jsx)("h4",{style:{fontSize:"1rem",fontWeight:500,color:"var(--semiont-text-primary)"},children:t("cookiePreferences")}),(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:o.wD.map(e=>(0,s.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",height:"1.25rem"},children:(0,s.jsx)("input",{id:`cookie-${e.id}`,type:"checkbox",checked:v[e.id]||!1,onChange:()=>{var t;"necessary"!==(t=e.id)&&g(e=>({...e,[t]:!e[t]}))},disabled:e.required||u,style:{accentColor:"var(--semiont-color-primary-600, #2563eb)"}})}),(0,s.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,s.jsxs)("label",{htmlFor:`cookie-${e.id}`,style:{fontSize:"var(--semiont-text-sm, 0.875rem)",fontWeight:500,color:"var(--semiont-text-primary)",cursor:"pointer"},children:[e.name,e.required&&(0,s.jsx)("span",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)",marginLeft:"0.25rem"},children:t("required")})]}),(0,s.jsx)("p",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-secondary)",marginTop:"0.25rem"},children:e.description}),(0,s.jsxs)("details",{style:{marginTop:"0.25rem"},children:[(0,s.jsx)("summary",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-color-primary-600, #2563eb)",cursor:"pointer"},children:t("viewCookies")}),(0,s.jsx)("div",{style:{marginTop:"0.25rem",fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)"},children:e.cookies.join(", ")})]})]})]},e.id))}),(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.75rem",paddingTop:"1rem"},children:[(0,s.jsx)("button",{type:"button",onClick:()=>h(!1),className:"semiont-button--secondary",children:t("cancel")}),(0,s.jsx)("button",{type:"button",onClick:b,disabled:u,className:"semiont-button--primary",children:u?t("saving"):t("savePreferences")})]})]})})]})})})}},40386:(e,t,r)=>{"use strict";r.d(t,{Providers:()=>j});var s=r(54568),n=r(7620),i=r(46577),o=r(43430),a=r(57927),l=r(68728),c=r(21153),d=r(55048),m=r(14822),h=r(31517),u=r(42065);function x(){let e=(0,h.rd)(),t=(0,n.useCallback)(({url:t,cancelFallback:r})=>{r(),e.push(t)},[e]),r=(0,n.useCallback)(({path:t})=>{e.push(t)},[e]);return(0,u.C$z)({"browse:external-navigate":t,"browse:router-push":r}),null}class p extends n.Component{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}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){}render(){if(this.state.hasError){let e=this.state.error?.message?.toLowerCase().includes("auth")||this.state.error?.message?.toLowerCase().includes("session")||this.state.error?.message?.toLowerCase().includes("token");return(0,s.jsx)("div",{className:"min-h-[400px] 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-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center",children:(0,s.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,s.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,s.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:e?"Authentication Error":"Something went wrong"})]}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:e?"There was a problem with your authentication. Please try signing in again.":"An unexpected error occurred. Please try refreshing the page."}),!1,(0,s.jsx)("div",{className:"flex gap-3",children:e?(0,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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}}var y=r(34364),v=r(47213);function g({children:e,queryClient:t}){let r,i,o=function(){let{data:e}=(0,c.useSession)(),[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e?.backendToken)try{let t=e.backendToken.split(".");if(3===t.length&&t[1]){let e=JSON.parse(atob(t[1]));e.exp&&r(new Date(1e3*e.exp))}}catch(e){console.error("Failed to parse token expiration:",e),r(null)}else r(null)},[e]),(0,n.useMemo)(()=>{let r=Date.now(),s=t?t.getTime()-r:null;return{isAuthenticated:!!e?.backendToken,expiresAt:t,timeUntilExpiry:s,isExpiringSoon:null!==s&&s<3e5&&s>0}},[e,t])}(),a=(r=(0,v.ot)(),i=(0,v.Ym)(),(0,n.useMemo)(()=>({t:(e,t,s)=>{let n=r[e]?.[t];if(!n)return`${e}.${t}`;if(s&&"string"==typeof n){let e=n;return Object.entries(s).forEach(([t,r])=>{e=e.replace(RegExp(`\\{${t}\\}`,"g"),String(r))}),e}return n}}),[r,i]));return(0,s.jsx)(p,{children:(0,s.jsx)(d.SessionProvider,{sessionManager:o,children:(0,s.jsx)(d.TranslationProvider,{translationManager:a,children:(0,s.jsx)(l.Ht,{client:t,children:(0,s.jsx)(d.ToastProvider,{children:(0,s.jsx)(d.LiveRegionProvider,{children:(0,s.jsx)(m.Sv,{children:(0,s.jsx)(d.ThemeProvider,{children:(0,s.jsxs)(d.EventBusProvider,{children:[(0,s.jsx)(x,{}),e]})})})})})})})})})}function j({children:e}){let[t]=(0,n.useState)(()=>new i.E({queryCache:new o.$({onError:e=>{e instanceof y.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 a.q({onError:e=>{e instanceof y.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,t)=>(!(t instanceof y.LG)||401!==t.status&&403!==t.status&&(!(t.status>=400)||!(t.status<500)))&&e<3,retryDelay:e=>Math.min(1e3*2**e,3e4),staleTime:3e5,refetchOnWindowFocus:!1}}}));return(0,s.jsx)(c.SessionProvider,{children:(0,s.jsx)(g,{queryClient:t,children:e})})}},55003:()=>{},67578:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,74471,23)),Promise.resolve().then(r.bind(r,40386)),Promise.resolve().then(r.bind(r,83829)),Promise.resolve().then(r.bind(r,2704)),Promise.resolve().then(r.t.bind(r,55003,23)),Promise.resolve().then(r.bind(r,29035)),Promise.resolve().then(r.bind(r,41145)),Promise.resolve().then(r.t.bind(r,11359,23)),Promise.resolve().then(r.t.bind(r,83580,23)),Promise.resolve().then(r.bind(r,55048))},74471:()=>{},83829:(e,t,r)=>{"use strict";r.d(t,{ClientModals:()=>h});var s=r(54568),n=r(55048),i=r(7620),o=r(56947),a=r(98755),l=r(21153);function c(){let{isAuthenticated:e}=(0,n.useSessionContext)(),[t,r]=(0,i.useState)(e),[c,d]=(0,i.useState)(!1);(0,i.useEffect)(()=>{t&&!e&&d(!0),r(e)},[e,t]),(0,i.useEffect)(()=>(0,n.onAuthEvent)(n.AUTH_EVENTS.UNAUTHORIZED,()=>{d(!0)}),[]);let m=()=>{d(!1),window.location.href="/"};return(0,s.jsx)(o.e,{appear:!0,show:c,children:(0,s.jsxs)(a.lG,{as:"div",className:"semiont-modal",onClose:m,children:[(0,s.jsx)(o._,{enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"semiont-modal__backdrop"})}),(0,s.jsx)("div",{className:"semiont-modal__container",children:(0,s.jsx)("div",{className:"semiont-modal__wrapper",children:(0,s.jsx)(o._,{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,s.jsxs)(a.Lj,{className:"semiont-modal__panel semiont-modal__panel--medium",children:[(0,s.jsx)("div",{className:"semiont-modal__icon-wrapper",children:(0,s.jsx)("div",{className:"semiont-modal__icon",style:{background:"linear-gradient(to bottom right, var(--semiont-color-red-100, #fee2e2), var(--semiont-color-red-300, #fca5a5))"},children:(0,s.jsx)("svg",{style:{width:"1.5rem",height:"1.5rem",color:"var(--semiont-color-red-600, #dc2626)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),(0,s.jsxs)("div",{className:"semiont-modal__content",children:[(0,s.jsx)(a.L3,{className:"semiont-modal__title semiont-modal__title--centered",children:"Session Expired"}),(0,s.jsx)("p",{className:"semiont-modal__description",children:"Your session has expired for security reasons. Please sign in again to continue working."})]}),(0,s.jsxs)("div",{className:"semiont-modal__actions",children:[(0,s.jsx)("button",{type:"button",onClick:m,className:"semiont-button--secondary semiont-button--flex",children:"Go to Home"}),(0,s.jsx)("button",{type:"button",onClick:()=>{(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"semiont-button--primary semiont-button--flex",children:"Sign In Again"})]})]})})})})]})})}var d=r(31517);function m(){let[e,t]=(0,i.useState)(!1),[r,c]=(0,i.useState)(""),m=(0,d.rd)(),{data:h}=(0,l.useSession)();(0,i.useEffect)(()=>(0,n.onAuthEvent)(n.AUTH_EVENTS.FORBIDDEN,e=>{c(e.detail.message||"You do not have permission to perform this action."),t(!0)}),[]);let u=()=>{t(!1),m.back()};return(0,s.jsx)(o.e,{appear:!0,show:e,children:(0,s.jsxs)(a.lG,{as:"div",className:"semiont-modal",onClose:u,children:[(0,s.jsx)(o._,{enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"semiont-modal__backdrop"})}),(0,s.jsx)("div",{className:"semiont-modal__container",children:(0,s.jsx)("div",{className:"semiont-modal__wrapper",children:(0,s.jsx)(o._,{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,s.jsxs)(a.Lj,{className:"semiont-modal__panel semiont-modal__panel--medium",children:[(0,s.jsx)("div",{className:"semiont-modal__icon-wrapper",children:(0,s.jsx)("div",{className:"semiont-modal__icon",children:(0,s.jsx)("svg",{style:{width:"1.5rem",height:"1.5rem",color:"var(--semiont-color-amber-600, #d97706)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",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.jsxs)("div",{className:"semiont-modal__content",children:[(0,s.jsx)(a.L3,{className:"semiont-modal__title semiont-modal__title--centered",children:"Access Denied"}),(0,s.jsx)("p",{className:"semiont-modal__description",children:r})]}),(0,s.jsxs)("div",{style:{padding:"0.75rem",backgroundColor:"var(--semiont-bg-secondary)",borderRadius:"var(--semiont-radius-md, 0.375rem)",border:"1px solid var(--semiont-border-primary)",fontSize:"var(--semiont-text-sm, 0.875rem)",marginBottom:"1rem"},children:[(0,s.jsx)("p",{style:{color:"var(--semiont-text-secondary)",marginBottom:"0.5rem"},children:"This could be because:"}),(0,s.jsxs)("ul",{style:{listStyle:"disc",listStylePosition:"inside",color:"var(--semiont-text-tertiary)",display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,s.jsx)("li",{children:"You don't have the required permissions"}),(0,s.jsx)("li",{children:"The resource is restricted to specific users or teams"}),(0,s.jsx)("li",{children:"Your account type doesn't include this feature"})]})]}),h?.user?.email&&(0,s.jsxs)("p",{style:{fontSize:"var(--semiont-text-xs, 0.75rem)",color:"var(--semiont-text-tertiary)",marginBottom:"1rem"},children:["Currently signed in as: ",(0,s.jsx)("span",{style:{fontWeight:500},children:h.user.email})]}),(0,s.jsxs)("div",{className:"semiont-modal__actions",children:[(0,s.jsx)("button",{type:"button",onClick:u,className:"semiont-button--primary semiont-button--flex",children:"Go Back"}),(0,s.jsx)("button",{type:"button",onClick:()=>{t(!1),m.push("/")},className:"semiont-button--secondary semiont-button--flex",children:"Go to Home"})]}),(0,s.jsx)("div",{className:"semiont-modal__actions",style:{marginTop:"0.5rem",paddingTop:"0.5rem",borderTop:"1px solid var(--semiont-border-primary)"},children:(0,s.jsx)("button",{type:"button",onClick:()=>{t(!1),(0,l.signIn)(void 0,{callbackUrl:window.location.pathname})},className:"semiont-button--secondary semiont-button--flex",style:{fontSize:"var(--semiont-text-sm, 0.875rem)"},children:"Switch Account"})})]})})})})]})})}function h(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.SessionExpiryBanner,{}),(0,s.jsx)(c,{}),(0,s.jsx)(m,{})]})}}},e=>{e.O(0,[9306,8096,5494,3473,2076,587,7358],()=>e(e.s=67578)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5911],{48306:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>c});var i=a(54568),n=a(7620),s=a(33971),r=a(67373),l=a(68728),d=a(10078),o=a(60509);function c(){let e=(0,s.c)("ModerateEntityTags"),[t,a]=(0,n.useState)(""),[c,g]=(0,n.useState)(""),u=(0,l.jE)(),{activePanel:y}=(0,o.ySJ)(),{theme:p,setTheme:T}=(0,o.DPo)(),{showLineNumbers:h,toggleLineNumbers:m}=(0,o.cvF)(),b=(0,n.useCallback)(({theme:e})=>{T(e)},[T]),f=(0,n.useCallback)(()=>{m()},[m]);(0,o.C$z)({"settings:theme-changed":b,"settings:line-numbers-toggled":f});let k=(0,r.useEntityTypes)(),{data:v,isLoading:E}=k.list.useQuery({refetchInterval:3e4,refetchIntervalInBackground:!0}),P=v?.entityTypes||[],N=k.add.useMutation(),w=async()=>{if(t.trim()){g("");try{await N.mutateAsync(t.trim()),u.invalidateQueries({queryKey:["/api/entity-types"]}),a("")}catch(t){g(t instanceof Error?t.message:e("errorFailedToAdd"))}}};return E?(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:e("loading")})}):(0,i.jsx)(r.EntityTagsPage,{entityTypes:P,isLoading:E,error:c,newTag:t,onNewTagChange:a,onAddTag:w,isAddingTag:N.isPending,theme:p,showLineNumbers:h,activePanel:y,translations:{pageTitle:e("pageTitle"),pageDescription:e("pageDescription"),sectionTitle:e("sectionTitle"),sectionDescription:e("sectionDescription"),inputPlaceholder:e("inputPlaceholder"),addTag:e("addTag"),adding:e("adding")},ToolbarPanels:d.t,Toolbar:r.Toolbar})}},76767:(e,t,a)=>{Promise.resolve().then(a.bind(a,48306))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=76767)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5911],{48306:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>c});var i=a(54568),n=a(7620),s=a(33971),r=a(55048),l=a(68728),d=a(10078),o=a(60509);function c(){let e=(0,s.c)("ModerateEntityTags"),[t,a]=(0,n.useState)(""),[c,g]=(0,n.useState)(""),u=(0,l.jE)(),{activePanel:y}=(0,o.ySJ)(),{theme:p,setTheme:T}=(0,o.DPo)(),{showLineNumbers:h,toggleLineNumbers:m}=(0,o.cvF)(),b=(0,n.useCallback)(({theme:e})=>{T(e)},[T]),f=(0,n.useCallback)(()=>{m()},[m]);(0,o.C$z)({"settings:theme-changed":b,"settings:line-numbers-toggled":f});let k=(0,r.useEntityTypes)(),{data:v,isLoading:E}=k.list.useQuery({refetchInterval:3e4,refetchIntervalInBackground:!0}),P=v?.entityTypes||[],N=k.add.useMutation(),w=async()=>{if(t.trim()){g("");try{await N.mutateAsync(t.trim()),u.invalidateQueries({queryKey:["/api/entity-types"]}),a("")}catch(t){g(t instanceof Error?t.message:e("errorFailedToAdd"))}}};return E?(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:e("loading")})}):(0,i.jsx)(r.EntityTagsPage,{entityTypes:P,isLoading:E,error:c,newTag:t,onNewTagChange:a,onAddTag:w,isAddingTag:N.isPending,theme:p,showLineNumbers:h,activePanel:y,translations:{pageTitle:e("pageTitle"),pageDescription:e("pageDescription"),sectionTitle:e("sectionTitle"),sectionDescription:e("sectionDescription"),inputPlaceholder:e("inputPlaceholder"),addTag:e("addTag"),adding:e("adding")},ToolbarPanels:d.t,Toolbar:r.Toolbar})}},76767:(e,t,a)=>{Promise.resolve().then(a.bind(a,48306))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=76767)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6100],{7844:(e,t,s)=>{"use strict";s.d(t,{default:()=>p});var o=s(54568),i=s(7620),a=s(33971),n=s(67373),r=s(10078),l=s(60509);function p(){let e=(0,a.c)("ModerationLinkedData"),{activePanel:t}=(0,l.ySJ)(),{theme:s,setTheme:p}=(0,l.DPo)(),{showLineNumbers:u,toggleLineNumbers:m}=(0,l.cvF)(),d=(0,i.useCallback)(({theme:e})=>{p(e)},[p]),h=(0,i.useCallback)(()=>{m()},[m]);(0,l.C$z)({"settings:theme-changed":d,"settings:line-numbers-toggled":h});let c=(0,n.useModeration)(),g=c.exchange.export.useMutation(),b=c.exchange.import.useMutation(),[v,C]=(0,i.useState)(null),[k,x]=(0,i.useState)(null),[f,P]=(0,i.useState)(null),[E,I]=(0,i.useState)(),[S,T]=(0,i.useState)(),w=(0,i.useCallback)(()=>{g.mutate({})},[g]),z=(0,i.useCallback)(async e=>{C(e),P(null),I(void 0),T(void 0),x({format:e.name.endsWith(".tar.gz")||e.name.endsWith(".gz")?"semiont-linked-data":"unknown",version:1,sourceUrl:"",stats:{}})},[]),M=(0,i.useCallback)(()=>{v&&(P("started"),I(void 0),T(void 0),b.mutate({file:v,onProgress:e=>{P(e.phase),I(e.message),e.result&&T(e.result)}}))},[v,b]),y=(0,i.useCallback)(()=>{C(null),x(null),P(null),I(void 0),T(void 0)},[]);return(0,o.jsx)(n.LinkedDataPage,{onExport:w,isExporting:g.isPending,onFileSelected:z,onImport:M,onCancelImport:y,selectedFile:v,preview:k,isImporting:b.isPending,importPhase:f,importMessage:E,importResult:S,theme:s,showLineNumbers:u,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),export:{title:e("exportTitle"),description:e("exportDescription"),exportButton:e("exportButton"),exporting:e("exporting")},import:{title:e("importTitle"),description:e("importDescription"),dropzoneLabel:e("dropzoneLabel"),dropzoneActive:e("dropzoneActive"),detectedFormat:e("detectedFormat"),statsPreview:e("statsPreview"),importButton:e("importButton"),importing:e("importing"),importConfirmTitle:e("importConfirmTitle"),importConfirmMessage:e("importConfirmMessage"),confirmImport:e("confirmImport"),cancelImport:e("cancelImport")},progress:{phaseStarted:e("phaseStarted"),phaseEntityTypes:e("phaseEntityTypes"),phaseResources:e("phaseResources"),phaseAnnotations:e("phaseAnnotations"),phaseComplete:e("phaseComplete"),phaseError:e("phaseError"),hashChainValid:e("hashChainValid"),hashChainInvalid:e("hashChainInvalid"),streams:e("streams"),events:e("events"),blobs:e("blobs")}},ToolbarPanels:r.t,Toolbar:n.Toolbar})}},64009:(e,t,s)=>{Promise.resolve().then(s.bind(s,7844))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=64009)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6100],{7844:(e,t,s)=>{"use strict";s.d(t,{default:()=>p});var o=s(54568),i=s(7620),a=s(33971),n=s(55048),r=s(10078),l=s(60509);function p(){let e=(0,a.c)("ModerationLinkedData"),{activePanel:t}=(0,l.ySJ)(),{theme:s,setTheme:p}=(0,l.DPo)(),{showLineNumbers:u,toggleLineNumbers:m}=(0,l.cvF)(),d=(0,i.useCallback)(({theme:e})=>{p(e)},[p]),h=(0,i.useCallback)(()=>{m()},[m]);(0,l.C$z)({"settings:theme-changed":d,"settings:line-numbers-toggled":h});let c=(0,n.useModeration)(),g=c.exchange.export.useMutation(),b=c.exchange.import.useMutation(),[v,C]=(0,i.useState)(null),[k,x]=(0,i.useState)(null),[f,P]=(0,i.useState)(null),[E,I]=(0,i.useState)(),[S,T]=(0,i.useState)(),w=(0,i.useCallback)(()=>{g.mutate({})},[g]),z=(0,i.useCallback)(async e=>{C(e),P(null),I(void 0),T(void 0),x({format:e.name.endsWith(".tar.gz")||e.name.endsWith(".gz")?"semiont-linked-data":"unknown",version:1,sourceUrl:"",stats:{}})},[]),M=(0,i.useCallback)(()=>{v&&(P("started"),I(void 0),T(void 0),b.mutate({file:v,onProgress:e=>{P(e.phase),I(e.message),e.result&&T(e.result)}}))},[v,b]),y=(0,i.useCallback)(()=>{C(null),x(null),P(null),I(void 0),T(void 0)},[]);return(0,o.jsx)(n.LinkedDataPage,{onExport:w,isExporting:g.isPending,onFileSelected:z,onImport:M,onCancelImport:y,selectedFile:v,preview:k,isImporting:b.isPending,importPhase:f,importMessage:E,importResult:S,theme:s,showLineNumbers:u,activePanel:t,translations:{title:e("title"),subtitle:e("subtitle"),export:{title:e("exportTitle"),description:e("exportDescription"),exportButton:e("exportButton"),exporting:e("exporting")},import:{title:e("importTitle"),description:e("importDescription"),dropzoneLabel:e("dropzoneLabel"),dropzoneActive:e("dropzoneActive"),detectedFormat:e("detectedFormat"),statsPreview:e("statsPreview"),importButton:e("importButton"),importing:e("importing"),importConfirmTitle:e("importConfirmTitle"),importConfirmMessage:e("importConfirmMessage"),confirmImport:e("confirmImport"),cancelImport:e("cancelImport")},progress:{phaseStarted:e("phaseStarted"),phaseEntityTypes:e("phaseEntityTypes"),phaseResources:e("phaseResources"),phaseAnnotations:e("phaseAnnotations"),phaseComplete:e("phaseComplete"),phaseError:e("phaseError"),hashChainValid:e("hashChainValid"),hashChainInvalid:e("hashChainInvalid"),streams:e("streams"),events:e("events"),blobs:e("blobs")}},ToolbarPanels:r.t,Toolbar:n.Toolbar})}},64009:(e,t,s)=>{Promise.resolve().then(s.bind(s,7844))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=64009)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5931],{42003:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var n=i(54568),s=i(7620),a=i(33971),o=i(29315),c=i(10078),l=i(60509),r=i(67373);function p(){let e=(0,a.c)("ModerateRecent"),{activePanel:t}=(0,l.ySJ)(),{theme:i,setTheme:p}=(0,l.DPo)(),{showLineNumbers:u,toggleLineNumbers:g}=(0,l.cvF)(),b=(0,s.useCallback)(({theme:e})=>{p(e)},[p]),d=(0,s.useCallback)(()=>{g()},[g]);return(0,l.C$z)({"settings:theme-changed":b,"settings:line-numbers-toggled":d}),(0,n.jsx)(r.RecentDocumentsPage,{hasDocuments:!1,isLoading:!1,theme:i,showLineNumbers:u,activePanel:t,translations:{pageTitle:e("pageTitle"),pageDescription:e("pageDescription"),sectionTitle:e("sectionTitle"),sectionDescription:e("sectionDescription"),noDocuments:e("noDocuments"),activityWillAppear:e("activityWillAppear"),loading:e("loading")},ToolbarPanels:c.t,Toolbar:o.M7E})}},84003:(e,t,i)=>{Promise.resolve().then(i.bind(i,42003))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=84003)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5931],{42003:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var n=i(54568),s=i(7620),a=i(33971),o=i(29315),c=i(10078),l=i(60509),r=i(55048);function p(){let e=(0,a.c)("ModerateRecent"),{activePanel:t}=(0,l.ySJ)(),{theme:i,setTheme:p}=(0,l.DPo)(),{showLineNumbers:u,toggleLineNumbers:g}=(0,l.cvF)(),b=(0,s.useCallback)(({theme:e})=>{p(e)},[p]),d=(0,s.useCallback)(()=>{g()},[g]);return(0,l.C$z)({"settings:theme-changed":b,"settings:line-numbers-toggled":d}),(0,n.jsx)(r.RecentDocumentsPage,{hasDocuments:!1,isLoading:!1,theme:i,showLineNumbers:u,activePanel:t,translations:{pageTitle:e("pageTitle"),pageDescription:e("pageDescription"),sectionTitle:e("sectionTitle"),sectionDescription:e("sectionDescription"),noDocuments:e("noDocuments"),activityWillAppear:e("activityWillAppear"),loading:e("loading")},ToolbarPanels:c.t,Toolbar:o.M7E})}},84003:(e,t,i)=>{Promise.resolve().then(i.bind(i,42003))}},e=>{e.O(0,[3473,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],{76469:(e,t,a)=>{Promise.resolve().then(a.bind(a,92361))},92361:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var s=a(54568),i=a(7620),n=a(33971),o=a(29315),r=a(10078),l=a(60509),c={"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?"]}]}},h=a(67373);function d(){let e=(0,n.c)("ModerateTagSchemas"),{activePanel:t}=(0,l.ySJ)(),{theme:a,setTheme:d}=(0,l.DPo)(),{showLineNumbers:p,toggleLineNumbers:m}=(0,l.cvF)(),u=(0,i.useCallback)(({theme:e})=>{d(e)},[d]),g=(0,i.useCallback)(()=>{m()},[m]);(0,l.C$z)({"settings:theme-changed":u,"settings:line-numbers-toggled":g});let W=Object.values(c);return(0,s.jsx)(h.TagSchemasPage,{schemas:W,isLoading:!1,theme:a,showLineNumbers:p,activePanel:t,translations:{pageTitle:e("pageTitle"),pageDescription:e("pageDescription"),categories:e("categories"),loading:e("loading")},ToolbarPanels:r.t,Toolbar:o.M7E})}}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=76469)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7505],{76469:(e,t,a)=>{Promise.resolve().then(a.bind(a,92361))},92361:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var s=a(54568),i=a(7620),n=a(33971),o=a(29315),r=a(10078),l=a(60509),c={"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?"]}]}},h=a(55048);function d(){let e=(0,n.c)("ModerateTagSchemas"),{activePanel:t}=(0,l.ySJ)(),{theme:a,setTheme:d}=(0,l.DPo)(),{showLineNumbers:p,toggleLineNumbers:m}=(0,l.cvF)(),u=(0,i.useCallback)(({theme:e})=>{d(e)},[d]),g=(0,i.useCallback)(()=>{m()},[m]);(0,l.C$z)({"settings:theme-changed":u,"settings:line-numbers-toggled":g});let W=Object.values(c);return(0,s.jsx)(h.TagSchemasPage,{schemas:W,isLoading:!1,theme:a,showLineNumbers:p,activePanel:t,translations:{pageTitle:e("pageTitle"),pageDescription:e("pageDescription"),categories:e("categories"),loading:e("loading")},ToolbarPanels:r.t,Toolbar:o.M7E})}}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=76469)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{56821:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>h});var n=a(54568),r=a(7620),l=a(21153),t=a(65587),c=a.n(t),i=a(33971),o=a(67373),d=a(11753),x=a(14822),m=a(80889);function h(){let{data:e,status:s}=(0,l.useSession)(),a=(0,i.c)("Home"),t=(0,i.c)("Footer"),h=(0,r.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 max-w-5xl 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 max-w-2xl mx-auto",children:a("description")})]}),(0,n.jsx)("div",{className:"flex gap-4 justify-center items-center flex-wrap",children:e?.backendToken?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c(),{href:"/know",className:o.buttonStyles.primary.base,children:a("continueToKnowledgeBase")}),(0,n.jsx)(c(),{href:"/about",className:o.buttonStyles.secondary.base,children:a("learnMore")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c(),{href:"/about",className:o.buttonStyles.secondary.base,children:a("learnMore")}),(0,n.jsx)(c(),{href:"/auth/signup",className:o.buttonStyles.primary.base,children:a("signUp")}),(0,n.jsx)("button",{onClick:()=>(0,l.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:t,CookiePreferences:d.f,...h?.openKeyboardHelp&&{onOpenKeyboardHelp:h.openKeyboardHelp}})]})}},80025:(e,s,a)=>{Promise.resolve().then(a.bind(a,56821))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=80025)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{56821:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>h});var n=a(54568),r=a(7620),l=a(21153),t=a(65587),c=a.n(t),i=a(33971),o=a(55048),d=a(11753),x=a(14822),m=a(80889);function h(){let{data:e,status:s}=(0,l.useSession)(),a=(0,i.c)("Home"),t=(0,i.c)("Footer"),h=(0,r.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 max-w-5xl 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 max-w-2xl mx-auto",children:a("description")})]}),(0,n.jsx)("div",{className:"flex gap-4 justify-center items-center flex-wrap",children:e?.backendToken?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c(),{href:"/know",className:o.buttonStyles.primary.base,children:a("continueToKnowledgeBase")}),(0,n.jsx)(c(),{href:"/about",className:o.buttonStyles.secondary.base,children:a("learnMore")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c(),{href:"/about",className:o.buttonStyles.secondary.base,children:a("learnMore")}),(0,n.jsx)(c(),{href:"/auth/signup",className:o.buttonStyles.primary.base,children:a("signUp")}),(0,n.jsx)("button",{onClick:()=>(0,l.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:t,CookiePreferences:d.f,...h?.openKeyboardHelp&&{onOpenKeyboardHelp:h.openKeyboardHelp}})]})}},80025:(e,s,a)=>{Promise.resolve().then(a.bind(a,56821))}},e=>{e.O(0,[3473,2076,587,8096,7358],()=>e(e.s=80025)),_N_E=e.O()}]);