@e-llm-studio/citation 0.0.227 → 0.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -0
- package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js +2 -0
- package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -0
- package/dist/cjs/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js +1 -1
- package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js +1 -1
- package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js +2 -0
- package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -0
- package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js +2 -0
- package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js.map +1 -0
- package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/cjs/features/SplitterCitations/icons/icons.js +2 -0
- package/dist/cjs/features/SplitterCitations/icons/icons.js.map +1 -0
- package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/BPACitationRenderer/BPACitationRenderer.js +2 -0
- package/dist/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -0
- package/dist/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js +1 -1
- package/dist/features/DualCitation/RuleBookCitationComponent.js +1 -1
- package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js +2 -0
- package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -0
- package/dist/features/PromptemonViewer/PromptemonViewer.js +2 -0
- package/dist/features/PromptemonViewer/PromptemonViewer.js.map +1 -0
- package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/features/SplitterCitations/icons/icons.js +2 -0
- package/dist/features/SplitterCitations/icons/icons.js.map +1 -0
- package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/PromptemonBlockViewerTest.d.ts +3 -0
- package/dist/types/src/PromptemonBlockViewerTest.d.ts.map +1 -0
- package/dist/types/src/PromptemonViewerTest.d.ts +3 -0
- package/dist/types/src/PromptemonViewerTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts +5 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/{ParentCitationComponent/ParentCitationComponent.types.d.ts → BPACitationRenderer/BPACitationRenderer.types.d.ts} +1 -1
- package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts +6 -0
- package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts +4 -0
- package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.d.ts +1 -0
- package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts.map +1 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +1 -1
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -1
- package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts +11 -0
- package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts.map +1 -0
- package/dist/types/src/features/PromptemonBlockViewer/index.d.ts +3 -0
- package/dist/types/src/features/PromptemonBlockViewer/index.d.ts.map +1 -0
- package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts +43 -0
- package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts.map +1 -0
- package/dist/types/src/features/PromptemonViewer/index.d.ts +3 -0
- package/dist/types/src/features/PromptemonViewer/index.d.ts.map +1 -0
- package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts +1 -21
- package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -1
- package/dist/types/src/features/SplitterCitations/icons/icons.d.ts +17 -0
- package/dist/types/src/features/SplitterCitations/icons/icons.d.ts.map +1 -0
- package/dist/types/src/features/SplitterCitations/types.d.ts +78 -0
- package/dist/types/src/features/SplitterCitations/types.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +6 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +15 -5
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/DualRuleBookBqCitationTest.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/DualRuleBookGptCitationTest.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +0 -5
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.types.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -6
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/citationTypes.d.ts.map +0 -1
- /package/dist/cjs/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js.map +0 -0
- /package/dist/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js.map +0 -0
- /package/dist/types/src/features/{ParentCitationComponent → BPACitationRenderer}/DualRuleBookBqCitationTest.d.ts +0 -0
- /package/dist/types/src/features/{ParentCitationComponent → BPACitationRenderer}/DualRuleBookGptCitationTest.d.ts +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as r,Fragment as o,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as n,useEffect as l}from"react";import{Box as a,Typography as d,Tooltip as s,Dialog as c,IconButton as f,Chip as h}from"@mui/material";import g from"@mui/icons-material/Close";import m from"@mui/icons-material/Fullscreen";import u from"@monaco-editor/react";import*as p from"monaco-editor";import b from"@mui/icons-material/DarkMode";import x from"@mui/icons-material/LightMode";var v={base:"vs-dark",inherit:!0,rules:[{token:"tag",foreground:"714be3",fontStyle:"bold"},{token:"attribute.name",foreground:"87CEFA"},{token:"attribute.value",foreground:"98FB98"},{token:"variable",foreground:"00FFFF"},{token:"delimiter",foreground:"888888"},{token:"white",foreground:"AAAAAA"}],colors:{"editor.foreground":"#FFFFFF","editor.background":"#030202","editorLineNumber.foreground":"#858585","editorCursor.foreground":"#FFFFFF","editorIndentGuide.background":"#404040","editorIndentGuide.activeBackground":"#707070"}},k={base:"vs",inherit:!0,rules:[{token:"tag",foreground:"5928ED",fontStyle:"bold"},{token:"attribute.name",foreground:"AF00DB"},{token:"attribute.value",foreground:"008000"},{token:"variable",foreground:"B000B0"},{token:"delimiter",foreground:"808080"},{token:"white",foreground:"000000"}],colors:{"editor.foreground":"#000000","editor.background":"#FFFFFF","editorLineNumber.foreground":"#999999","editorCursor.foreground":"#000000","editorIndentGuide.background":"#CCCCCC","editorIndentGuide.activeBackground":"#999999"}},w=function(r){var o=r.isDarkMode,i=r.onChange;return t(a,e({onClick:function(){return i(!o)},sx:{width:52,height:24,borderRadius:"12px",bgcolor:o?"#5928ed":"#f0f0f0",border:"1px solid",borderColor:o?"#5928ed":"#d1d5db",display:"flex",alignItems:"center",px:.4,cursor:"pointer",transition:"all 0.2s",justifyContent:o?"flex-end":"flex-start"}},{children:t(a,e({sx:{width:18,height:18,borderRadius:"50%",bgcolor:o?"#1e1e2e":"#f59e0b",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s"}},{children:t(o?b:x,{sx:{fontSize:11,color:"#fff"}})}))}))},C=function(i){var d=i.content,s=i.selectedTag,c=i.highlightVariable,f=i.isDarkMode,h=i.height,g=void 0===h?250:h,m=i.fontSize,b=void 0===m?12:m,x=n(),w=n();return l(function(){if(s&&x.current&&w.current){var e=x.current,r=e.getModel();if(r){for(var o=r.getValue().split("\n"),t=-1,i=0;i<o.length;i++){var n=o[i].match(/<([^\s>\/]+(?:\s[^\s>\/]+)*)/);if(n&&n[1].trim().toLowerCase()===s.toLowerCase()){t=i+1;break}}if(t>0){var l=t,a="</".concat(s.toLowerCase(),">");for(i=t;i<o.length;i++)if(o[i].toLowerCase().includes(a)){l=i+1;break}e.setSelection(new w.current.Selection(t,1,t,1)),e.trigger(null,"editor.unfold",{}),e.revealLineInCenterIfOutsideViewport(t);var d=e.deltaDecorations([],[{range:new w.current.Range(t,1,l,o[l-1].length+1),options:{isWholeLine:!0,className:"promptemon-highlight",inlineClassName:"promptemon-highlight"}}]);setTimeout(function(){return e.deltaDecorations(d,[])},2e3)}}}},[s]),l(function(){if(c&&x.current&&w.current){var e=x.current,r=e.getModel();if(r){for(var o=r.getValue().split("\n"),t=[],i=0;i<o.length;i++)for(var n=o[i].indexOf(c);-1!==n;)t.push(new p.Range(i+1,n+1,i+1,n+c.length+1)),n=o[i].indexOf(c,n+1);if(0!==t.length){e.revealLineInCenterIfOutsideViewport(t[0].startLineNumber);var l=e.deltaDecorations([],t.map(function(e){return{range:e,options:{inlineClassName:"promptemon-variable-highlight"}}}));setTimeout(function(){return e.deltaDecorations(l,[])},2e3)}}}},[c]),l(function(){w.current&&w.current.editor.setTheme(f?"promptemonDark":"promptemonLight")},[f]),r(o,{children:[t("style",{children:"\n .promptemon-highlight { background-color: rgba(89, 40, 237, 0.15); }\n .promptemon-variable-highlight { background-color: rgba(0, 255, 255, 0.2); border-radius: 2px; }\n "}),r(a,e({sx:{width:"100%",height:g,display:"flex",flexDirection:"column"}},{children:[t(a,{sx:{width:"100%",height:20,bgcolor:f?"#030202":"#fff",borderTopLeftRadius:8,borderTopRightRadius:8}}),t(a,e({sx:{flex:1,minHeight:0,overflow:"hidden"}},{children:t(u,{onMount:function(e,r){x.current=e,w.current=r,r.editor.defineTheme("promptemonDark",v),r.editor.defineTheme("promptemonLight",k),r.editor.setTheme(f?"promptemonDark":"promptemonLight"),r.languages.register({id:"promptemonLang"}),r.languages.setMonarchTokensProvider("promptemonLang",{tokenizer:{root:[[/(<)([a-zA-Z0-9\-]+)(\s*)/,["delimiter","tag","white"],"@tagBody"],[/(<\/)([a-zA-Z0-9\-]+)(\s*)(>)/,["delimiter","tag","white","delimiter"]],[/{{[^}]+}}/,"variable"]],tagBody:[[/[a-zA-Z0-9\:\-]+(?=\=)/,"attribute.name"],[/=/,"delimiter"],[/(".*?"|'.*?')/,"attribute.value"],[/\s+/,"white"],[/(\/?>)/,{token:"delimiter",next:"@pop"}]]}}),r.languages.registerFoldingRangeProvider("promptemonLang",{provideFoldingRanges:function(e){var r=e.getLinesContent(),o=[],t=[];return r.forEach(function(e,r){var i=r+1,n=e.match(/<([a-zA-Z0-9\-]+)(\s[^>]*)?>/),l=e.match(/<\/([a-zA-Z0-9\-]+)>/);if(n&&!e.includes("/>")&&t.push({tag:n[1],start:i}),l)for(var a=l[1],d=t.length-1;d>=0;d--)if(t[d].tag===a){o.push({start:t[d].start,end:i}),t.splice(d,1);break}}),o}})},beforeMount:function(e){e.editor.defineTheme("promptemonDark",v),e.editor.defineTheme("promptemonLight",k),e.editor.setTheme(f?"promptemonDark":"promptemonLight")},theme:f?"promptemonDark":"promptemonLight",value:d,language:"promptemonLang",onChange:function(){},options:{fontSize:b,minimap:{enabled:!1},wordWrap:"on",lineNumbers:"on",readOnly:!0,domReadOnly:!0,scrollBeyondLastLine:!1,padding:{top:4,bottom:12},folding:!0,automaticLayout:!0,scrollbar:{vertical:"visible",horizontal:"visible",verticalScrollbarSize:8}}})})),t(a,{sx:{width:"100%",height:20,bgcolor:f?"#030202":"#fff",borderBottomLeftRadius:8,borderBottomRightRadius:8}})]}))]})},y=function(n){var l=n.title,u=n.description,p=n.content,b=n.height,x=void 0===b?250:b,v=n.selectedTag,k=n.highlightVariable,y=i(!0),F=y[0],L=y[1],z=i(!1),D=z[0],B=z[1];return r(o,{children:[r(a,e({sx:{border:"1px solid #e5e7eb",borderRadius:"8px",overflow:"hidden"}},{children:[r(a,e({sx:{px:1.5,py:.75,bgcolor:"#f9fafb",borderBottom:"1px solid #e5e7eb",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[t(d,e({sx:{fontSize:"0.72rem",color:"#374151",fontWeight:600}},{children:l})),r(a,e({sx:{display:"flex",alignItems:"center",gap:.75}},{children:[t(w,{isDarkMode:F,onChange:L}),t(s,e({title:"Fullscreen",placement:"top"},{children:t(a,e({onClick:function(){return B(!0)},sx:{cursor:"pointer",display:"flex",alignItems:"center",p:.3,borderRadius:"4px","&:hover":{bgcolor:"#e5e7eb"}}},{children:t(m,{sx:{fontSize:"0.9rem",color:"#6b7280"}})}))}))]}))]})),t(a,e({sx:{height:x,bgcolor:F?"#030202":"#fff"}},{children:t(C,{content:p,selectedTag:v,highlightVariable:k,isDarkMode:F,height:x,fontSize:12})}))]})),r(c,e({open:D,onClose:function(){return B(!1)},maxWidth:!1,PaperProps:{sx:{width:"82vw",height:"80vh",maxWidth:"none",borderRadius:"12px",overflow:"hidden",display:"flex",flexDirection:"column"}}},{children:[r(a,e({sx:{px:2.5,py:1.5,borderBottom:"1px solid #E5E7EB",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0}},{children:[t(d,e({sx:{fontWeight:700,fontSize:"1rem",color:"#111827"}},{children:l})),t(f,e({size:"small",onClick:function(){return B(!1)}},{children:t(g,{sx:{fontSize:"1.1rem",color:"#6B7280"}})}))]})),r(a,e({sx:{flex:1,display:"flex",overflow:"hidden",minHeight:0}},{children:[u&&r(a,e({sx:{width:"35%",flexShrink:0,borderRight:"1px solid #E5E7EB",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[r(a,e({sx:{px:2,py:1.25,borderBottom:"1px solid #E5E7EB",display:"flex",alignItems:"center",gap:1}},{children:[t(h,{label:"APB",size:"small",sx:{bgcolor:"#f1f5f9",color:"#475569",fontWeight:700,fontSize:10,height:20,borderRadius:1}}),t(d,e({sx:{fontWeight:600,fontSize:"0.85rem",color:"#111827"}},{children:l}))]})),t(a,e({sx:{flex:1,p:2,overflowY:"auto"}},{children:r(a,e({sx:{border:"1px solid #E5E7EB",borderRadius:"8px",p:1.5}},{children:[t(d,e({sx:{fontWeight:600,fontSize:"0.8rem",color:"#111827",mb:.75}},{children:"Description"})),t(d,e({sx:{fontSize:"0.73rem",color:"#6B7280",lineHeight:1.6}},{children:u}))]}))}))]})),r(a,e({sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[r(a,e({sx:{px:2,py:1.25,borderBottom:"1px solid #E5E7EB",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[t(d,e({sx:{fontWeight:600,fontSize:"0.85rem",color:"#111827"}},{children:"Prompt Preview"})),t(w,{isDarkMode:F,onChange:L})]})),t(a,e({sx:{flex:1,minHeight:0,p:1.5}},{children:t(C,{content:p,selectedTag:v,highlightVariable:k,isDarkMode:F,height:"100%",fontSize:13})}))]}))]}))]}))]})};export{y as default};
|
|
2
|
+
//# sourceMappingURL=PromptemonBlockViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptemonBlockViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__spreadArray as n}from"tslib";import{jsxs as o,jsx as t,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as l,useEffect as d}from"react";import{Box as a,Stack as c,IconButton as s,Typography as u,Button as f,Tooltip as p,Chip as h,TextField as g,Accordion as m,AccordionSummary as x,AccordionDetails as b,Select as v,MenuItem as y,Divider as w,Dialog as S}from"@mui/material";import z from"@mui/icons-material/ExpandMore";import C from"@mui/icons-material/EditOutlined";import _ from"@mui/icons-material/Close";import k from"@mui/icons-material/ArrowBack";import I from"@mui/icons-material/NavigateBefore";import W from"@mui/icons-material/NavigateNext";import R from"@mui/icons-material/InfoOutlined";import A from"@mui/icons-material/AutoFixHighOutlined";import B from"@mui/icons-material/Check";import F from"@mui/icons-material/Add";import L from"@mui/icons-material/DeleteOutline";import D from"@monaco-editor/react";import*as M from"monaco-editor";import T from"@mui/icons-material/DarkMode";import V from"@mui/icons-material/LightMode";var E={base:"vs-dark",inherit:!0,rules:[{token:"tag",foreground:"714be3",fontStyle:"bold"},{token:"attribute.name",foreground:"87CEFA"},{token:"attribute.value",foreground:"98FB98"},{token:"variable",foreground:"00FFFF"},{token:"delimiter",foreground:"888888"},{token:"white",foreground:"AAAAAA"}],colors:{"editor.foreground":"#FFFFFF","editor.background":"#030202","editorLineNumber.foreground":"#858585","editorCursor.foreground":"#FFFFFF","editorIndentGuide.background":"#404040","editorIndentGuide.activeBackground":"#707070"}},O={base:"vs",inherit:!0,rules:[{token:"tag",foreground:"5928ED",fontStyle:"bold"},{token:"attribute.name",foreground:"AF00DB"},{token:"attribute.value",foreground:"008000"},{token:"variable",foreground:"B000B0"},{token:"delimiter",foreground:"808080"},{token:"white",foreground:"000000"}],colors:{"editor.foreground":"#000000","editor.background":"#FFFFFF","editorLineNumber.foreground":"#999999","editorCursor.foreground":"#000000","editorIndentGuide.background":"#CCCCCC","editorIndentGuide.activeBackground":"#999999"}},P=function(n){var i=n.description,c=r(!1),s=c[0],f=c[1],p=r(!1),h=p[0],g=p[1],m=l(null);return d(function(){var e=m.current;e&&g(e.scrollHeight>e.clientHeight+1)},[i,s]),o(a,e({sx:{mt:1.5,border:"1px solid #e5e7eb",borderRadius:2,bgcolor:"#fff",display:"flex",flexDirection:"column",px:1.25,py:1}},{children:[t(u,e({ref:m,component:"div",sx:e({fontSize:11,color:"#6b7280",lineHeight:1.5,overflowY:s?"auto":"hidden",maxHeight:s?"calc(1.6em * 5)":"calc(1.6em * 3)",whiteSpace:"normal",display:s?"block":"-webkit-box"},s?{}:{WebkitBoxOrient:"vertical",WebkitLineClamp:3})},{children:i})),h&&t(u,e({component:"span",onClick:function(){return f(function(e){return!e})},sx:{mt:.75,alignSelf:"flex-end",fontSize:10,color:"#7c3aed",cursor:"pointer",fontWeight:500}},{children:s?"View less":"View more"}))]}))},j=function(n){var i=n.value,l=n.onChange,d=n.onDelete,f=r(!1),p=f[0],h=f[1];return o(a,e({sx:{display:"flex",alignItems:"flex-start",gap:1,p:1,border:"1px solid #e5e7eb",borderRadius:"8px",bgcolor:"#fff"}},{children:[t(a,e({sx:{width:18,height:18,borderRadius:"4px",bgcolor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,color:"#64748b",flexShrink:0,mt:.1}},{children:"a"})),p?t(g,{autoFocus:!0,value:i,onChange:function(e){return l(e.target.value)},onBlur:function(){return h(!1)},size:"small",fullWidth:!0,multiline:!0,sx:{"& .MuiOutlinedInput-input":{fontSize:12.5}}}):t(u,e({sx:{fontSize:12.5,color:"#374151",lineHeight:1.55,flex:1}},{children:i})),o(c,e({direction:"row",gap:.25,sx:{flexShrink:0}},{children:[t(s,e({size:"small",onClick:function(){return h(!0)},sx:{color:"#6b7280"}},{children:t(C,{sx:{fontSize:14}})})),t(s,e({size:"small",onClick:d,sx:{color:"#dc2626"}},{children:t(L,{sx:{fontSize:14}})}))]}))]}))},N=function(n){var o=n.isDarkMode,i=n.onChange;return t(a,e({onClick:function(){return i(!o)},sx:{width:52,height:24,borderRadius:"12px",bgcolor:o?"#5928ed":"#f0f0f0",border:"1px solid",borderColor:o?"#5928ed":"#d1d5db",display:"flex",alignItems:"center",px:.4,cursor:"pointer",transition:"all 0.2s",justifyContent:o?"flex-end":"flex-start"}},{children:t(a,e({sx:{width:18,height:18,borderRadius:"50%",bgcolor:o?"#1e1e2e":"#f59e0b",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s"}},{children:t(o?T:V,{sx:{fontSize:11,color:"#fff"}})}))}))},G=function(n){var r=n.content,c=n.selectedTag,s=n.highlightVariable,u=n.isDarkMode,f=n.height,p=void 0===f?250:f,h=n.fontSize,g=void 0===h?12:h,m=l(),x=l();return d(function(){if(c&&m.current&&x.current){var e=m.current,n=e.getModel();if(n){for(var o=n.getValue().split("\n"),t=-1,i=0;i<o.length;i++){var r=o[i].match(/<([^\s>\/]+(?:\s[^\s>\/]+)*)/);if(r&&r[1].trim().toLowerCase()===c.toLowerCase()){t=i+1;break}}if(t>0){var l=t,d="</".concat(c.toLowerCase(),">");for(i=t;i<o.length;i++)if(o[i].toLowerCase().includes(d)){l=i+1;break}e.setSelection(new x.current.Selection(t,1,t,1)),e.trigger(null,"editor.unfold",{}),e.revealLineInCenterIfOutsideViewport(t);var a=e.deltaDecorations([],[{range:new x.current.Range(t,1,l,o[l-1].length+1),options:{isWholeLine:!0,className:"promptemon-viewer-highlight",inlineClassName:"promptemon-viewer-highlight"}}]);setTimeout(function(){return e.deltaDecorations(a,[])},2e3)}}}},[c]),d(function(){if(s&&m.current&&x.current){var e=m.current,n=e.getModel();if(n){for(var o=n.getValue().split("\n"),t=[],i=0;i<o.length;i++)for(var r=o[i].indexOf(s);-1!==r;)t.push(new M.Range(i+1,r+1,i+1,r+s.length+1)),r=o[i].indexOf(s,r+1);if(0!==t.length){e.revealLineInCenterIfOutsideViewport(t[0].startLineNumber);var l=e.deltaDecorations([],t.map(function(e){return{range:e,options:{inlineClassName:"promptemon-viewer-variable-highlight"}}}));setTimeout(function(){return e.deltaDecorations(l,[])},2e3)}}}},[s]),d(function(){x.current&&x.current.editor.setTheme(u?"promptemonViewerDark":"promptemonViewerLight")},[u]),o(i,{children:[t("style",{children:"\n .promptemon-viewer-highlight { background-color: rgba(89, 40, 237, 0.15); }\n .promptemon-viewer-variable-highlight { background-color: rgba(0, 255, 255, 0.2); border-radius: 2px; }\n "}),o(a,e({sx:{width:"100%",height:p,display:"flex",flexDirection:"column"}},{children:[t(a,{sx:{width:"100%",height:20,bgcolor:u?"#030202":"#fff",borderTopLeftRadius:8,borderTopRightRadius:8}}),t(a,e({sx:{flex:1,minHeight:0,overflow:"hidden"}},{children:t(D,{onMount:function(e,n){m.current=e,x.current=n,n.editor.defineTheme("promptemonViewerDark",E),n.editor.defineTheme("promptemonViewerLight",O),n.editor.setTheme(u?"promptemonViewerDark":"promptemonViewerLight"),n.languages.register({id:"promptemonViewerLang"}),n.languages.setMonarchTokensProvider("promptemonViewerLang",{tokenizer:{root:[[/(<)([a-zA-Z0-9\-]+)(\s*)/,["delimiter","tag","white"],"@tagBody"],[/(<\/)([a-zA-Z0-9\-]+)(\s*)(>)/,["delimiter","tag","white","delimiter"]],[/{{[^}]+}}/,"variable"]],tagBody:[[/[a-zA-Z0-9\:\-]+(?=\=)/,"attribute.name"],[/=/,"delimiter"],[/(".*?"|'.*?')/,"attribute.value"],[/\s+/,"white"],[/(\/?>)/,{token:"delimiter",next:"@pop"}]]}}),n.languages.registerFoldingRangeProvider("promptemonViewerLang",{provideFoldingRanges:function(e){var n=e.getLinesContent(),o=[],t=[];return n.forEach(function(e,n){var i=n+1,r=e.match(/<([a-zA-Z0-9\-]+)(\s[^>]*)?>/),l=e.match(/<\/([a-zA-Z0-9\-]+)>/);if(r&&!e.includes("/>")&&t.push({tag:r[1],start:i}),l)for(var d=l[1],a=t.length-1;a>=0;a--)if(t[a].tag===d){o.push({start:t[a].start,end:i}),t.splice(a,1);break}}),o}})},beforeMount:function(e){e.editor.defineTheme("promptemonViewerDark",E),e.editor.defineTheme("promptemonViewerLight",O),e.editor.setTheme(u?"promptemonViewerDark":"promptemonViewerLight")},theme:u?"promptemonViewerDark":"promptemonViewerLight",value:r,language:"promptemonViewerLang",onChange:function(){},options:{fontSize:g,minimap:{enabled:!1},wordWrap:"on",lineNumbers:"on",readOnly:!0,domReadOnly:!0,scrollBeyondLastLine:!1,padding:{top:4,bottom:12},folding:!0,automaticLayout:!0,scrollbar:{vertical:"visible",horizontal:"visible",verticalScrollbarSize:8}}})})),t(a,{sx:{width:"100%",height:20,bgcolor:u?"#030202":"#fff",borderBottomLeftRadius:8,borderBottomRightRadius:8}})]}))]})},H=function(i){var l,d,k,I,W=i.block,A=i.isExtracted,D=i.isSaved,M=i.showEditMode,T=i.onBlockUpdate,V=i.onTagSelect,E=i.onVariableSelect,O=i.categories,N=i.subCategories,G=i.selectedCategoryId,H=i.selectedSubCategoryId,Z=i.onCategoryChange,U=i.onSubCategoryChange,Y=r(!0),q=Y[0],J=Y[1],K=r(!0),Q=K[0],X=K[1],$=r(!0),ee=$[0],ne=$[1],oe=r(!0),te=oe[0],ie=oe[1],re=r(!1),le=re[0],de=re[1],ae=r(!0),ce=ae[0],se=ae[1],ue=r(!0),fe=ue[0],pe=ue[1],he=r(!1),ge=he[0],me=he[1],xe=r(!1),be=xe[0],ve=xe[1],ye=r(!1),we=ye[0],Se=ye[1],ze=r((null==W?void 0:W.title)||""),Ce=ze[0],_e=ze[1],ke=r((null==W?void 0:W.short_description)||""),Ie=ke[0],We=ke[1],Re=r((null==W?void 0:W.members)||[]),Ae=Re[0],Be=Re[1],Fe=r(Array.isArray(null==W?void 0:W.when_to_apply)?W.when_to_apply:(null==W?void 0:W.when_to_apply)?[W.when_to_apply]:[]),Le=Fe[0],De=Fe[1],Me=r(Array.isArray(null==W?void 0:W.when_not_to_apply)?W.when_not_to_apply:(null==W?void 0:W.when_not_to_apply)?[W.when_not_to_apply]:[]),Te=Me[0],Ve=Me[1],Ee=r(!1),Oe=Ee[0],Pe=Ee[1],je=r(""),Ne=je[0],Ge=je[1],He=r(""),Ze=He[0],Ue=He[1],Ye={boxShadow:"none",border:"1px solid #e5e7eb",borderRadius:"8px !important",mb:1.5,"&:before":{display:"none"},"&.Mui-expanded":{margin:"0 0 12px 0"}},qe={minHeight:44,px:2,borderRadius:2,"&.Mui-expanded":{minHeight:44},"& .MuiAccordionSummary-content":{my:"10px"}};return o(a,e({sx:{width:820,flexShrink:0,display:"flex",flexDirection:"column",overflow:"hidden",borderRight:"1px solid #e5e7eb"}},{children:[o(a,e({sx:{px:2.5,py:2,borderBottom:"1px solid #e5e7eb"}},{children:[o(c,e({direction:"row",alignItems:"center",justifyContent:"space-between"},{children:[o(c,e({direction:"row",alignItems:"center",gap:1,sx:{flex:1,minWidth:0}},{children:[t(p,e({title:"Functional Prompt Block",placement:"top"},{children:t(h,{label:"FPB",size:"small",sx:{bgcolor:"#f1f5f9",color:"#475569",fontWeight:700,fontSize:11,height:22,borderRadius:1}})})),we?t(g,{value:Ce,onChange:function(e){return _e(e.target.value)},size:"small",fullWidth:!0,sx:{"& .MuiOutlinedInput-input":{fontSize:15,fontWeight:700,py:.5}}}):t(u,e({sx:{fontWeight:700,fontSize:15,color:"#111827"}},{children:(null==W?void 0:W.title)||"—"}))]})),we?o(c,e({direction:"row",gap:.5},{children:[t(s,e({size:"small",sx:{color:"#6b7280"},onClick:function(){return Se(!1)}},{children:t(_,{sx:{fontSize:16}})})),t(s,e({size:"small",sx:{color:"#16a34a"},onClick:function(){T(e(e({},W),{title:Ce,short_description:Ie,members:Ae,when_to_apply:Le,when_not_to_apply:Te})),Se(!1)}},{children:t(B,{sx:{fontSize:16}})}))]})):!D&&M&&t(s,e({size:"small",sx:{color:"#6b7280"},onClick:function(){_e((null==W?void 0:W.title)||""),We((null==W?void 0:W.short_description)||""),Be((null==W?void 0:W.members)||[]),De(Array.isArray(null==W?void 0:W.when_to_apply)?W.when_to_apply:(null==W?void 0:W.when_to_apply)?[W.when_to_apply]:[]),Ve(Array.isArray(null==W?void 0:W.when_not_to_apply)?W.when_not_to_apply:(null==W?void 0:W.when_not_to_apply)?[W.when_not_to_apply]:[]),Se(!0)}},{children:t(C,{sx:{fontSize:16}})}))]})),we&&t(u,e({sx:{fontSize:11,color:"#5928ed",mt:.5}},{children:"Editing — changes won't be saved until you confirm"})),we?t(g,{value:Ie,onChange:function(e){return We(e.target.value)},size:"small",fullWidth:!0,multiline:!0,minRows:3,sx:{mt:1.5,"& .MuiOutlinedInput-input":{fontSize:12}}}):t(P,{description:(null==W?void 0:W.short_description)||"—"}),o(a,e({sx:{mt:1.5,border:"0.5px solid #d1d5db",borderRadius:"8px",display:"flex",overflow:"hidden"}},{children:[t(a,e({sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",borderRight:"1px solid #d1d5db",p:.5}},{children:o(c,e({direction:"row",alignItems:"center",gap:1},{children:[t(u,e({sx:{fontSize:10,color:"#87898d"}},{children:"Total APBs :"})),t(u,e({sx:{fontSize:10,fontWeight:700,color:"#5f5f5f"}},{children:(null===(l=null==W?void 0:W.members)||void 0===l?void 0:l.length)||0}))]}))})),t(a,e({sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",p:.5}},{children:o(c,e({direction:"row",alignItems:"center",gap:1},{children:[t(u,e({sx:{fontSize:10,color:"#87898d"}},{children:"Total Lines :"})),t(u,e({sx:{fontSize:10,fontWeight:700,color:"#5f5f5f"}},{children:(null===(d=null==W?void 0:W.members)||void 0===d?void 0:d.reduce(function(e,n){var o,t;return e+((null!==(o=n.end_line)&&void 0!==o?o:0)-(null!==(t=n.start_line)&&void 0!==t?t:0)+1)},0))||0}))]}))}))]}))]})),o(a,e({sx:{flex:1,overflow:"auto",px:2,py:2,"&::-webkit-scrollbar":{width:4},"&::-webkit-scrollbar-thumb":{bgcolor:"#e5e7eb",borderRadius:2}}},{children:[o(m,e({expanded:q,onChange:function(){return J(function(e){return!e})},sx:Ye,disableGutters:!0},{children:[t(x,e({expandIcon:t(z,{sx:{fontSize:18}}),sx:qe},{children:t(u,e({sx:{fontSize:13,fontWeight:600,color:"#374151"}},{children:"Categories"}))})),t(b,e({sx:{pt:0,px:2,pb:2}},{children:o(c,e({gap:1.5},{children:[o(a,{children:[t(u,e({sx:{fontSize:12,color:"#6b7280",mb:.5}},{children:"Category"})),we?t(v,e({fullWidth:!0,size:"small",value:G,onChange:function(e){Z(e.target.value),U("")},sx:{fontSize:13,borderRadius:1.5,"& fieldset":{borderColor:"#e5e7eb"}}},{children:O.map(function(n){return t(y,e({value:n.category_id},{children:n.category_name}),n.category_id)})})):t(g,{fullWidth:!0,size:"small",value:(null===(k=O.find(function(e){return e.category_id===G}))||void 0===k?void 0:k.category_name)||"—",InputProps:{readOnly:!0},sx:{"& .MuiOutlinedInput-root":{fontSize:13,borderRadius:1.5,"& fieldset":{borderColor:"#e5e7eb"}}}})]}),o(a,{children:[t(u,e({sx:{fontSize:12,color:"#6b7280",mb:.5}},{children:"Sub-Category"})),we?t(v,e({fullWidth:!0,size:"small",value:H,onChange:function(e){return U(e.target.value)},disabled:!G,sx:{fontSize:13,borderRadius:1.5,"& fieldset":{borderColor:"#e5e7eb"}}},{children:N.filter(function(e){return e.category_id===G}).map(function(n){return t(y,e({value:n.sub_category_id},{children:n.sub_category_name}),n.sub_category_id)})})):t(g,{fullWidth:!0,size:"small",value:(null===(I=N.find(function(e){return e.sub_category_id===H}))||void 0===I?void 0:I.sub_category_name)||"—",InputProps:{readOnly:!0},sx:{"& .MuiOutlinedInput-root":{fontSize:13,borderRadius:1.5,"& fieldset":{borderColor:"#e5e7eb"}}}})]})]}))}))]})),o(m,e({expanded:Q,onChange:function(){return X(function(e){return!e})},sx:Ye,disableGutters:!0},{children:[t(x,e({expandIcon:t(z,{sx:{fontSize:18}}),sx:qe},{children:t(u,e({sx:{fontSize:13,fontWeight:600,color:"#374151"}},{children:"Atomic Prompt Blocks (APBs)"}))})),o(b,e({sx:{pt:0,px:1,pb:2}},{children:[t(c,e({gap:1},{children:(we?Ae:(null==W?void 0:W.members)||[]).map(function(n,i){return o(a,e({sx:{px:2,py:1,borderRadius:2,bgcolor:"#fff"}},{children:[o(a,e({sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:1,gap:1}},{children:[o(u,e({sx:{fontSize:14,fontWeight:500,color:"#111827"}},{children:[i+1,". ",n.section_name]})),we?t(s,e({size:"small",onClick:function(){return Be(function(e){return e.filter(function(e,n){return n!==i})})},sx:{color:"#dc2626",flexShrink:0}},{children:t(L,{sx:{fontSize:16}})})):t(a,e({onClick:function(){return V(n.section_name.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("_"))},sx:{fontSize:14,color:"#475569",cursor:"pointer",flexShrink:0}},{children:"↗"}))]})),t(u,e({sx:{fontSize:12,lineHeight:1.5,color:"#64748b"}},{children:n.reason_for_inclusion})),A&&(r=n.segments||[],0===r.length?null:t(a,e({sx:{mt:1}},{children:t(a,e({sx:{display:"flex",flexWrap:"wrap",gap:1}},{children:r.map(function(e,n){return t(h,{clickable:!0,onClick:function(){return E(e.segmentized_text)},label:e.segmentized_text,sx:{borderRadius:1,bgcolor:"#eff6ff",color:"#3b82f6",border:"1px dashed #bfdbfe"}},n)})}))}))),t(w,{sx:{mt:2}})]}),i);var r})})),we&&o(a,e({onClick:function(){Ge(""),Ue(""),Pe(!0)},sx:{mt:1,display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:1,border:"1px dashed #d1d5db",borderRadius:1.5,cursor:"pointer",color:"#5928ed",fontSize:13,fontWeight:600,"&:hover":{bgcolor:"#f5f0ff"}}},{children:[t(F,{sx:{fontSize:16}})," Add APB"]}))]}))]})),o(m,e({expanded:ee,onChange:function(){return ne(function(e){return!e})},sx:Ye,disableGutters:!0},{children:[t(x,e({expandIcon:t(z,{sx:{fontSize:18}}),sx:qe},{children:o(u,e({sx:{fontSize:14,fontWeight:600,color:"#374151",display:"flex",alignItems:"center",flexDirection:"row"}},{children:["Applicability ",t("span",e({style:{color:"#94a3b8",fontWeight:400,fontSize:10,marginLeft:"12px"}},{children:"• When to apply / When not to apply"}))]}))})),o(b,e({sx:{pt:0,px:1.5,pb:1.5}},{children:[o(m,e({expanded:te,onChange:function(){return ie(function(e){return!e})},sx:{boxShadow:"none",border:"1px solid #e5e7eb",borderRadius:"6px !important",mb:1,"&:before":{display:"none"},"&.Mui-expanded":{margin:"0 0 8px 0"}},disableGutters:!0},{children:[t(x,e({expandIcon:t(z,{sx:{fontSize:16}}),sx:e(e({},qe),{bgcolor:"#f9fafb",borderRadius:"6px"})},{children:t(u,e({sx:{fontSize:12.5,fontWeight:500,color:"#374151"}},{children:"When to Apply this FPB"}))})),t(b,e({sx:{pt:.5,px:2,pb:1.5}},{children:o(c,e({gap:.75},{children:[(we?Le:Array.isArray(null==W?void 0:W.when_to_apply)?W.when_to_apply:(null==W?void 0:W.when_to_apply)?[W.when_to_apply]:["— Not yet available"]).map(function(n,i){return we?t(j,{value:n,onChange:function(e){return De(function(n){return n.map(function(n,o){return o===i?e:n})})},onDelete:function(){return De(function(e){return e.filter(function(e,n){return n!==i})})}},i):o(c,e({direction:"row",gap:1,alignItems:"flex-start"},{children:[o(u,e({sx:{fontSize:12,color:"#374151",fontWeight:700,mt:.1}},{children:[i+1,"."]})),t(u,e({sx:{fontSize:12.5,color:"#374151",lineHeight:1.55}},{children:n}))]}),i)}),we&&o(a,e({onClick:function(){return De(function(e){return n(n([],e,!0),[""],!1)})},sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.75,border:"1px dashed #d1d5db",borderRadius:1.5,cursor:"pointer",color:"#5928ed",fontSize:12.5,fontWeight:600,"&:hover":{bgcolor:"#f5f0ff"}}},{children:[t(F,{sx:{fontSize:15}})," Add When to Apply"]}))]}))}))]})),o(m,e({expanded:le,onChange:function(){return de(function(e){return!e})},sx:{boxShadow:"none",border:"1px solid #e5e7eb",borderRadius:"6px !important","&:before":{display:"none"}},disableGutters:!0},{children:[t(x,e({expandIcon:t(z,{sx:{fontSize:16}}),sx:e(e({},qe),{bgcolor:"#f9fafb",borderRadius:"6px"})},{children:t(u,e({sx:{fontSize:12.5,fontWeight:500,color:"#374151"}},{children:"When NOT to Apply this FPB"}))})),t(b,e({sx:{pt:.5,px:2,pb:1.5}},{children:we?o(c,e({gap:.75},{children:[Te.map(function(e,n){return t(j,{value:e,onChange:function(e){return Ve(function(o){return o.map(function(o,t){return t===n?e:o})})},onDelete:function(){return Ve(function(e){return e.filter(function(e,o){return o!==n})})}},n)}),o(a,e({onClick:function(){return Ve(function(e){return n(n([],e,!0),[""],!1)})},sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:.75,border:"1px dashed #d1d5db",borderRadius:1.5,cursor:"pointer",color:"#5928ed",fontSize:12.5,fontWeight:600,"&:hover":{bgcolor:"#f5f0ff"}}},{children:[t(F,{sx:{fontSize:15}})," Add When NOT to Apply"]}))]})):Array.isArray(null==W?void 0:W.when_not_to_apply)||(null==W?void 0:W.when_not_to_apply)?t(c,e({gap:.75},{children:(Array.isArray(null==W?void 0:W.when_not_to_apply)?W.when_not_to_apply:[W.when_not_to_apply]).map(function(n,i){return o(c,e({direction:"row",gap:1,alignItems:"flex-start"},{children:[o(u,e({sx:{fontSize:12,color:"#374151",fontWeight:700,mt:.1}},{children:[i+1,"."]})),t(u,e({sx:{fontSize:12.5,color:"#374151",lineHeight:1.55}},{children:n}))]}),i)})})):t(u,e({sx:{fontSize:12.5,color:"#9ca3af",fontStyle:"italic"}},{children:"No conditions defined yet."}))}))]}))]}))]})),o(m,e({expanded:ce,onChange:function(){return se(function(e){return!e})},sx:Ye,disableGutters:!0},{children:[t(x,e({expandIcon:t(z,{sx:{fontSize:18}}),sx:qe},{children:o(u,e({sx:{fontSize:14,fontWeight:600,color:"#374151",display:"flex",alignItems:"center",flexDirection:"row"}},{children:["Specifications ",t("span",e({style:{color:"#94a3b8",fontWeight:400,fontSize:10,marginLeft:"12px"}},{children:"• Strict Rules / Input / Output"}))]}))})),t(b,e({sx:{pt:0,px:1.5,pb:1.5}},{children:[{label:"Guidelines",expanded:fe,setExpanded:pe,content:null==W?void 0:W.additional_guidelines},{label:"Input",expanded:ge,setExpanded:me,content:null},{label:"Output",expanded:be,setExpanded:ve,content:null}].map(function(n,i){var r=n.label,l=n.expanded,d=n.setExpanded,a=n.content;return o(m,e({expanded:l,onChange:function(){return d(function(e){return!e})},sx:{boxShadow:"none",border:"1px solid #e5e7eb",borderRadius:"6px !important",mb:i<2?1:0,"&:before":{display:"none"},"&.Mui-expanded":{margin:i<2?"0 0 8px 0":0}},disableGutters:!0},{children:[t(x,e({expandIcon:t(z,{sx:{fontSize:16}}),sx:e(e({},qe),{bgcolor:"#f9fafb",borderRadius:"6px"})},{children:o(c,e({direction:"row",alignItems:"center",gap:.5},{children:[t(u,e({sx:{fontSize:12.5,fontWeight:500,color:"#374151"}},{children:r})),"Guidelines"!==r&&t(R,{sx:{fontSize:13,color:"#9ca3af"}})]}))})),t(b,e({sx:{pt:.5,px:2,pb:1.5}},{children:t(u,e({sx:{fontSize:12.5,color:a?"#374151":"#9ca3af",fontStyle:a?"normal":"italic"}},{children:a||"No ".concat(r.toLowerCase()," defined yet.")}))}))]}),r)})}))]}))]})),o(S,e({open:Oe,onClose:function(){return Pe(!1)},maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}}},{children:[o(a,e({sx:{px:3,py:2,display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #e5e7eb"}},{children:[t(u,e({sx:{fontWeight:700,fontSize:"1rem",color:"#111827"}},{children:"Add new APB"})),t(s,e({size:"small",onClick:function(){return Pe(!1)}},{children:t(_,{sx:{fontSize:"1.1rem",color:"#6b7280"}})}))]})),o(a,e({sx:{px:3,py:2.5,display:"flex",flexDirection:"column",gap:2}},{children:[o(a,{children:[t(u,e({sx:{fontSize:13,fontWeight:600,color:"#374151",mb:.75}},{children:"Title"})),t(g,{fullWidth:!0,size:"small",placeholder:"Specify the title of APB",value:Ne,onChange:function(e){return Ge(e.target.value)}})]}),o(a,{children:[t(u,e({sx:{fontSize:13,fontWeight:600,color:"#374151",mb:.75}},{children:"Description"})),t(g,{fullWidth:!0,size:"small",multiline:!0,minRows:3,placeholder:"Describe the APB",value:Ze,onChange:function(e){return Ue(e.target.value)}})]})]})),o(a,e({sx:{px:3,py:2,display:"flex",justifyContent:"flex-end",gap:1,borderTop:"1px solid #e5e7eb"}},{children:[t(f,e({variant:"outlined",onClick:function(){return Pe(!1)},sx:{textTransform:"none",borderColor:"#d1d5db",color:"#374151"}},{children:"Cancel"})),t(f,e({variant:"contained",onClick:function(){Be(function(e){return n(n([],e,!0),[{section_name:Ne,reason_for_inclusion:Ze,content:""}],!1)}),Pe(!1)},sx:{textTransform:"none",bgcolor:"#5928ed","&:hover":{bgcolor:"#4c1d95"}}},{children:"Save"}))]}))]}))]}))},Z=function(n){var i,l,d,p,h,g=n.block,m=n.onBlockUpdate,x=n.isExtracting,b=n.isExtracted,v=n.onExtractSegments,y=n.isSaving,w=n.isSaved,S=n.onSave,z=n.onBack,C=n.title,R=void 0===C?"FPB Promptemon":C,B=n.categories,F=n.subCategories,L=n.selectedCategoryId,D=n.selectedSubCategoryId,M=n.onCategoryChange,T=n.onSubCategoryChange,V=n.showEditMode,E=void 0===V||V,O=n.showExtractSegments,P=void 0===O||O,j=r(1),Z=j[0],U=j[1],Y=r(!0),q=Y[0],J=Y[1],K=r(""),Q=K[0],X=K[1],$=r(""),ee=$[0],ne=$[1],oe=(null===(i=null==g?void 0:g.members)||void 0===i?void 0:i.map(function(e){if(!b||!e.segments||0===e.segments.length)return e.content||"";var n=e.content||"";return e.segments.forEach(function(e){e.raw_text&&e.segmentized_text&&(n=n.split(e.raw_text).join(e.segmentized_text))}),n}).join("\n\n"))||"";return o(a,e({sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",bgcolor:"#fff",overflow:"hidden"}},{children:[o(a,e({sx:{px:2.5,py:1.5,borderBottom:"1px solid #e5e7eb",display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",flexShrink:0}},{children:[o(c,e({direction:"row",alignItems:"center",gap:1},{children:[t(s,e({size:"small",sx:{color:"#6b7280"},onClick:z},{children:t(k,{sx:{fontSize:18}})})),t(u,e({sx:{fontSize:14,fontWeight:600,color:"#111827"}},{children:R}))]})),o(a,e({sx:{display:"flex",alignItems:"center",gap:1}},{children:[t(f,e({variant:"contained",size:"small",disabled:!b||y||w,onClick:S,sx:{textTransform:"none",fontSize:"0.78rem",fontWeight:600,bgcolor:"#5928ed",px:2,py:.6,"&:hover":{bgcolor:"#4c1d95"},"&.Mui-disabled":{bgcolor:"#5928ed",color:"#fff",opacity:.4}}},{children:y?"Saving...":w?"Saved ✓":"Save FPB"})),t(s,e({size:"small",sx:{color:"#6b7280"},onClick:z},{children:t(_,{sx:{fontSize:18}})}))]}))]})),o(a,e({sx:{display:"flex",flex:1,overflow:"hidden"}},{children:[t(H,{block:g,isExtracted:b,isSaved:w,showEditMode:E,onBlockUpdate:m,onTagSelect:function(e){X(""),setTimeout(function(){return X(e)},50)},onVariableSelect:function(e){ne(""),setTimeout(function(){return ne(e)},50)},categories:B,subCategories:F,selectedCategoryId:L,selectedSubCategoryId:D,onCategoryChange:M,onSubCategoryChange:T}),o(a,e({sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",p:2,gap:1.5}},{children:[o(a,e({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0}},{children:[o(c,e({direction:"row",alignItems:"center",gap:1},{children:[o(u,e({sx:{fontSize:13,fontWeight:600,color:"#374151"}},{children:[(null==g?void 0:g.title)||"—"," APBs"]})),o(c,e({direction:"row",alignItems:"center",gap:.5},{children:[t(s,e({size:"small",onClick:function(){return U(function(e){return Math.max(1,e-1)})},disabled:1===Z,sx:{color:"#6b7280",p:.4}},{children:t(I,{sx:{fontSize:16}})})),o(u,e({sx:{fontSize:12.5,color:"#6b7280"}},{children:[Z," of ",(null===(l=null==g?void 0:g.members)||void 0===l?void 0:l.length)||0]})),t(s,e({size:"small",onClick:function(){return U(function(e){var n;return Math.min((null===(n=null==g?void 0:g.members)||void 0===n?void 0:n.length)||0,e+1)})},disabled:Z===((null===(d=null==g?void 0:g.members)||void 0===d?void 0:d.length)||0),sx:{color:"#6b7280",p:.4}},{children:t(W,{sx:{fontSize:16}})}))]}))]})),t(c,e({direction:"row",alignItems:"center",gap:1.5},{children:P&&(b?o(c,e({direction:"row",alignItems:"center",gap:1},{children:[t(u,e({sx:{fontSize:12.5,color:"#6b7280"}},{children:"Show Segments"})),t(a,e({sx:{width:36,height:20,borderRadius:"10px",bgcolor:"#7c3aed",display:"flex",alignItems:"center",px:.3,cursor:"pointer"}},{children:t(a,{sx:{width:14,height:14,borderRadius:"50%",bgcolor:"#fff",ml:"auto"}})}))]})):o(a,e({onClick:v,sx:{display:"flex",alignItems:"center",gap:1,px:2,py:.85,borderRadius:1.5,bgcolor:"#7c3aed",cursor:x?"default":"pointer","&:hover":{bgcolor:"#6d28d9"},userSelect:"none",opacity:x?.7:1}},{children:[t(A,{sx:{fontSize:15,color:"#fff"}}),t(u,e({sx:{fontSize:13,fontWeight:600,color:"#fff"}},{children:x?"Extracting...":"Extract Segments"}))]})))}))]})),o(a,e({sx:{flex:1,minHeight:0,position:"relative"}},{children:[x&&t(a,e({sx:{position:"absolute",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(0,0,0,0.6)",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:1}},{children:t(u,e({sx:{color:"#fff",fontSize:14,fontWeight:600}},{children:"Extracting segments..."}))})),o(a,e({sx:{border:"1px solid #30363d",borderRadius:1,overflow:"hidden",height:"100%"}},{children:[o(a,e({sx:{px:2,py:1,borderBottom:"1px solid #30363d",display:"flex",alignItems:"center",gap:1,bgcolor:"#161b22",flexShrink:0}},{children:[t(a,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:"#ff5f57"}}),t(a,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:"#febc2e"}}),t(a,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:"#28c840"}}),o(u,e({sx:{ml:1,fontSize:11,color:"#8b949e",fontFamily:"monospace"}},{children:[(null===(h=null===(p=null==g?void 0:g.members)||void 0===p?void 0:p[Z-1])||void 0===h?void 0:h.section_name)||"—",".xml"]})),t(a,{sx:{flex:1}}),t(N,{isDarkMode:q,onChange:J})]})),t(G,{content:oe,selectedTag:Q,highlightVariable:ee,isDarkMode:q,height:"100%",fontSize:14})]}))]}))]}))]}))]}))};export{Z as default};
|
|
2
|
+
//# sourceMappingURL=PromptemonViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptemonViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as c,useEffect as a}from"react";import{FileText as r,X as l}from"lucide-react";import d from"./Splitter.module.css.js";var s=function(){return t("svg",e({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[n("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),n("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},u=function(){return t("svg",e({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[n("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),n("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return t("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[n("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:"#087443"}),n("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:"#087443"})]}))},v=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:n("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:"#7A5AF8",stroke:"#7A5AF8","stroke-width":"0.5"})}))},C=function(C){var f=C.left,m=C.right,p=C.defaultLeftWidth,g=void 0===p?50:p,w=C.minLeftWidth,N=void 0===w?250:w,x=C.minRightWidth,H=void 0===x?250:x,L=C.className,k=void 0===L?"":L,A=C.height,M=void 0===A?"400px":A,B=C.width,b=void 0===B?"100%":B,z=C.header,y=C.onLeftWidthChange,F=C.openInFullscreen,E=void 0!==F&&F,S=C.onFullscreenClose,V=C.fullscreenOnly,D=void 0!==V&&V,R=i(g),O=R[0],P=R[1],Z=i(!1),I=Z[0],T=Z[1],W=i(!1),j=W[0],q=W[1],X=i(!1),G=X[0],J=X[1],K=i(0),Q=K[0],U=K[1],Y=i(0),$=Y[0],_=Y[1],ee=i(D||E),ne=ee[0],te=ee[1],oe=c(null),ie=c(null),ce=c(null);a(function(){var e=oe.current;e&&(ne?(e.showModal(),requestAnimationFrame(function(){if(ce.current){var e=ce.current.getBoundingClientRect().width;_(e),P(g),q(!1),J(!1)}})):(e.close(),P(g),q(!1),J(!1),null==S||S()))},[ne]),a(function(){var e=ce.current;if(e&&ne){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){_(t.contentRect.width)})});return t.observe(e),function(){cancelAnimationFrame(n),t.disconnect()}}},[ne]),a(function(){var e=ie.current;if(e){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){U(t.contentRect.width)})});return t.observe(e),U(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),t.disconnect()}}},[]);var ae=function(e){e.preventDefault(),T(!0)};a(function(){var e=function(e){if(I){var n=ne?ce.current:ie.current;if(n){var t=n.getBoundingClientRect(),o=t.width,i=e.clientX-t.left;if(i>=N&&o-i-4>=H)P(i/o*100),null==y||y(i)}}},n=function(){T(!1)};return I&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[I,ne,N,H,y]);var re=function(){j?(P(50),q(!1)):q(!0)},le=function(){G?(P(50),J(!1)):J(!0)},de=ne?$:Q,se=O/100*de,ue=de-se-4,he=ne?500:250,ve=G?{flex:1}:{width:"".concat(O,"%")},Ce=!j&&se<=Math.max(N+10,he),fe=!G&&ue<=Math.max(H+10,he),me=function(e){return e>=80?d.confidenceScoreHigh:e>=60?d.confidenceScoreMedium:d.confidenceScoreLow},pe="number"==typeof M?"".concat(M,"px"):M,ge="number"==typeof b?"".concat(b,"px"):b,we=n("dialog",e({ref:oe,className:d.dialogOverlay,onClose:function(){return te(!1)}},{children:t("div",e({ref:ce,className:d.dialogContent},{children:[z&&t("div",e({className:d.header},{children:[t("div",e({className:d.headerLeft},{children:[z.showDocIcon&&n(r,{className:d.headerIcon}),n("div",e({className:d.headerTitle},{children:z.title&&n(o,{children:n("span",e({className:d.headerTitleText},{children:z.title}))})}))]})),t("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&t("div",e({className:"".concat(d.confidenceScore," ").concat(me(z.confidenceScore))},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(h,{})})),t("div",{children:[Math.round(z.confidenceScore),"%"]})]})),n("button",e({className:d.fullscreenButton,onClick:function(){return te(!1)},title:"Close fullscreen"},{children:n(l,{size:20,color:"#5928ed"})}))]}))]})),t("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal," ").concat(d.dialogContentArea)},{children:[!j&&n("div",e({className:d.panel,style:ve},{children:f})),j&&n("button",e({onClick:re,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:n(s,{})})),!j&&!G&&t("div",e({onMouseDown:ae,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(I?d.dividerDragging:d.dividerIdle)},{children:[n("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),Ce&&n("button",e({onClick:function(e){e.stopPropagation(),re()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:n(u,{})})),fe&&n("button",e({onClick:function(e){e.stopPropagation(),le()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:n(s,{})}))]})),!G&&n("div",e({className:d.panel,style:{flex:1}},{children:m})),G&&n("button",e({onClick:le,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:n(u,{})})),I&&n("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]}))}));return D?we:t(o,{children:[t("div",e({ref:ie,className:"".concat(d.container," ").concat(d.containerHorizontal," ").concat(k),style:{height:pe,width:ge}},{children:[z&&t("div",e({className:d.header},{children:[t("div",e({className:d.headerLeft},{children:[z.showDocIcon&&n(r,{className:d.headerIcon}),n("div",e({className:d.headerTitle},{children:z.title&&n("span",e({className:d.headerTitleText},{children:z.title}))}))]})),t("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&t("div",e({className:"".concat(d.confidenceScore," ").concat(me(z.confidenceScore))},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(h,{})})),t("div",{children:[Math.round(z.confidenceScore),"%"]})]})),n("button",e({className:d.fullscreenButton,onClick:function(){return te(!0)},title:"Open fullscreen"},{children:n(v,{})}))]}))]})),t("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal)},{children:[!j&&n("div",e({className:d.panel,style:ve},{children:f})),j&&n("button",e({onClick:re,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:n(s,{})})),!j&&!G&&t("div",e({onMouseDown:ae,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(I?d.dividerDragging:d.dividerIdle)},{children:[n("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),Ce&&n("button",e({onClick:function(e){e.stopPropagation(),re()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:n(u,{})})),fe&&n("button",e({onClick:function(e){e.stopPropagation(),le()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:n(s,{})}))]})),!G&&n("div",e({className:d.panel,style:{flex:1}},{children:m})),G&&n("button",e({onClick:le,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:n(u,{})})),I&&n("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]})),we]})};export{C as default};
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as l,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as t,useEffect as d}from"react";import{FileText as a,X as c}from"lucide-react";import r from"./Splitter.module.css.js";import{AIMagicIcon as u,SidebarOpenIcon as s,SidebarCloseIcon as v,MaximizeIcon as h}from"./icons/icons.js";var f=function(f){var p,m,g,B,N,y,x,C,w,z,A,H,b,P,I=f.left,S=f.right,M=f.defaultLeftWidth,D=void 0===M?50:M,O=f.minLeftWidth,k=void 0===O?250:O,L=f.minRightWidth,R=void 0===L?250:L,T=f.className,E=void 0===T?"":T,F=f.height,j=void 0===F?"400px":F,W=f.width,q=void 0===W?"100%":W,X=f.header,G=f.onLeftWidthChange,J=f.openInFullscreen,K=void 0!==J&&J,Q=f.onFullscreenClose,U=f.fullscreenOnly,V=void 0!==U&&U,Y=f.classNames,Z=f.customStyles,$=f.iconProps,_=i(D),ee=_[0],ne=_[1],le=i(!1),oe=le[0],ie=le[1],te=i(!1),de=te[0],ae=te[1],ce=i(!1),re=ce[0],ue=ce[1],se=i(0),ve=se[0],he=se[1],fe=i(0),pe=fe[0],me=fe[1],ge=i(V||K),Be=ge[0],Ne=ge[1],ye=t(null),xe=t(null),Ce=t(null),we=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},ze=null!==(p=null==$?void 0:$.collapse)&&void 0!==p?p:{};d(function(){var e=ye.current;e&&(Be?(e.showModal(),requestAnimationFrame(function(){if(Ce.current){var e=Ce.current.getBoundingClientRect().width;me(e),ne(D),ae(!1),ue(!1)}})):(e.close(),ne(D),ae(!1),ue(!1),null==Q||Q()))},[Be]),d(function(){var e=Ce.current;if(e&&Be){var n,l=new ResizeObserver(function(e){var l=e[0];n=requestAnimationFrame(function(){me(l.contentRect.width)})});return l.observe(e),function(){cancelAnimationFrame(n),l.disconnect()}}},[Be]),d(function(){var e=xe.current;if(e){var n,l=new ResizeObserver(function(e){var l=e[0];n=requestAnimationFrame(function(){he(l.contentRect.width)})});return l.observe(e),he(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),l.disconnect()}}},[]);var Ae=function(e){e.preventDefault(),ie(!0)};d(function(){var e=function(e){if(oe){var n=Be?Ce.current:xe.current;if(n){var l=n.getBoundingClientRect(),o=l.width,i=e.clientX-l.left;if(i>=k&&o-i-4>=R)ne(i/o*100),null==G||G(i)}}},n=function(){ie(!1)};return oe&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[oe,Be,k,R,G]);var He=function(){de?(ne(50),ae(!1)):ae(!0)},be=function(){re?(ne(50),ue(!1)):ue(!0)},Pe=Be?pe:ve,Ie=ee/100*Pe,Se=Pe-Ie-4,Me=Be?500:250,De=re?{flex:1}:{width:"".concat(ee,"%")},Oe=!de&&Ie<=Math.max(k+10,Me),ke=!re&&Se<=Math.max(R+10,Me),Le=function(e){return(null==Z?void 0:Z.confidenceBadge)?"":e>=80?r.confidenceScoreHigh:e>=60?r.confidenceScoreMedium:r.confidenceScoreLow},Re="number"==typeof j?"".concat(j,"px"):j,Te="number"==typeof q?"".concat(q,"px"):q,Ee=n("dialog",e({ref:ye,className:we(r.dialogOverlay,null==Y?void 0:Y.dialogOverlay),style:null==Z?void 0:Z.dialogOverlay,onClose:function(){return Ne(!1)}},{children:l("div",e({ref:Ce,className:we(r.dialogContent,null==Y?void 0:Y.dialogContent),style:null==Z?void 0:Z.dialogContent},{children:[X&&l("div",e({className:we(r.header,null==Y?void 0:Y.header),style:null==Z?void 0:Z.header},{children:[l("div",e({className:r.headerLeft},{children:[X.showDocIcon&&n(a,{className:we(r.headerIcon,null==Y?void 0:Y.headerIcon),style:e(e({},null==Z?void 0:Z.headerIcon),(null===(m=null==$?void 0:$.headerIcon)||void 0===m?void 0:m.color)?{color:$.headerIcon.color}:{})}),n("div",e({className:r.headerTitle},{children:X.title&&n("span",e({className:we(r.headerTitleText,null==Y?void 0:Y.headerTitle),style:null==Z?void 0:Z.headerTitle},{children:X.title}))}))]})),l("div",e({className:we(r.headerActions,null==Y?void 0:Y.headerActions),style:null==Z?void 0:Z.headerActions},{children:[void 0!==X.confidenceScore&&l("div",e({className:we(r.confidenceScore,Le(X.confidenceScore),null==Y?void 0:Y.confidenceBadge),style:null==Z?void 0:Z.confidenceBadge},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(u,{color:null===(g=null==$?void 0:$.magic)||void 0===g?void 0:g.color,size:null===(B=null==$?void 0:$.magic)||void 0===B?void 0:B.size})})),l("div",{children:[Math.round(X.confidenceScore),"%"]})]})),n("button",e({className:we(r.fullscreenButton,null==Y?void 0:Y.fullscreenButton),style:null==Z?void 0:Z.fullscreenButton,onClick:function(){return Ne(!1)},title:"Close fullscreen"},{children:n(c,{size:20,color:null!==(y=null===(N=null==$?void 0:$.close)||void 0===N?void 0:N.color)&&void 0!==y?y:"#5928ed"})}))]}))]})),l("div",e({className:"".concat(r.contentArea," ").concat(r.contentAreaHorizontal," ").concat(r.dialogContentArea)},{children:[!de&&n("div",e({className:we(r.panel,null!==(x=null==Y?void 0:Y.leftPanel)&&void 0!==x?x:null==Y?void 0:Y.panel),style:e(e({},De),null!==(C=null==Z?void 0:Z.leftPanel)&&void 0!==C?C:null==Z?void 0:Z.panel)},{children:I})),de&&n("button",e({onClick:He,className:"".concat(r.expandButton," ").concat(r.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:n(s,e({},ze))})),!de&&!re&&l("div",e({onMouseDown:Ae,className:we(r.divider,r.dividerHorizontal,oe?r.dividerDragging:r.dividerIdle,null==Y?void 0:Y.divider),style:null==Z?void 0:Z.divider},{children:[n("div",{className:"".concat(r.dividerHitArea," ").concat(r.dividerHitAreaHorizontal)}),Oe&&n("button",e({onClick:function(e){e.stopPropagation(),He()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse left panel"},{children:n(v,e({},ze))})),ke&&n("button",e({onClick:function(e){e.stopPropagation(),be()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse right panel"},{children:n(s,e({},ze))}))]})),!re&&n("div",e({className:we(r.panel,null!==(w=null==Y?void 0:Y.rightPanel)&&void 0!==w?w:null==Y?void 0:Y.panel),style:e({flex:1},null!==(z=null==Z?void 0:Z.rightPanel)&&void 0!==z?z:null==Z?void 0:Z.panel)},{children:S})),re&&n("button",e({onClick:be,className:"".concat(r.expandButton," ").concat(r.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:n(v,e({},ze))})),oe&&n("div",{className:"".concat(r.dragOverlay," ").concat(r.dragOverlayHorizontal)})]}))]}))}));return V?Ee:l(o,{children:[l("div",e({ref:xe,className:we(r.container,r.containerHorizontal,E,null==Y?void 0:Y.container),style:e({height:Re,width:Te},null==Z?void 0:Z.container)},{children:[X&&l("div",e({className:we(r.header,null==Y?void 0:Y.header),style:null==Z?void 0:Z.header},{children:[l("div",e({className:r.headerLeft},{children:[X.showDocIcon&&n(a,{className:we(r.headerIcon,null==Y?void 0:Y.headerIcon),style:e(e({},null==Z?void 0:Z.headerIcon),(null===(A=null==$?void 0:$.headerIcon)||void 0===A?void 0:A.color)?{color:$.headerIcon.color}:{})}),n("div",e({className:r.headerTitle},{children:X.title&&n("span",e({className:we(r.headerTitleText,null==Y?void 0:Y.headerTitle),style:null==Z?void 0:Z.headerTitle},{children:X.title}))}))]})),l("div",e({className:we(r.headerActions,null==Y?void 0:Y.headerActions),style:null==Z?void 0:Z.headerActions},{children:[void 0!==X.confidenceScore&&l("div",e({className:we(r.confidenceScore,Le(X.confidenceScore),null==Y?void 0:Y.confidenceBadge),style:null==Z?void 0:Z.confidenceBadge},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(u,{color:null===(H=null==$?void 0:$.magic)||void 0===H?void 0:H.color,size:null===(b=null==$?void 0:$.magic)||void 0===b?void 0:b.size})})),l("div",{children:[Math.round(X.confidenceScore),"%"]})]})),n("button",e({className:we(r.fullscreenButton,null==Y?void 0:Y.fullscreenButton),style:null==Z?void 0:Z.fullscreenButton,onClick:function(){return Ne(!0)},title:"Open fullscreen"},{children:n(h,{color:null===(P=null==$?void 0:$.maximize)||void 0===P?void 0:P.color})}))]}))]})),function(){var o,i,t,d;return l("div",e({className:"".concat(r.contentArea," ").concat(r.contentAreaHorizontal)},{children:[!de&&n("div",e({className:we(r.panel,null!==(o=null==Y?void 0:Y.leftPanel)&&void 0!==o?o:null==Y?void 0:Y.panel),style:e(e({},De),null!==(i=null==Z?void 0:Z.leftPanel)&&void 0!==i?i:null==Z?void 0:Z.panel)},{children:I})),de&&n("button",e({onClick:He,className:we((null==Z?void 0:Z.collapseButton)?"":r.expandButton,r.expandButtonHorizontal,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Expand left panel (50/50)"},{children:n(s,e({},ze))})),!de&&!re&&l("div",e({onMouseDown:Ae,className:we(r.divider,r.dividerHorizontal,oe?r.dividerDragging:r.dividerIdle,null==Y?void 0:Y.divider),style:null==Z?void 0:Z.divider},{children:[n("div",{className:"".concat(r.dividerHitArea," ").concat(r.dividerHitAreaHorizontal)}),Oe&&n("button",e({onClick:function(e){e.stopPropagation(),He()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse left panel"},{children:n(v,e({},ze))})),ke&&n("button",e({onClick:function(e){e.stopPropagation(),be()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse right panel"},{children:n(s,e({},ze))}))]})),!re&&n("div",e({className:we(r.panel,null!==(t=null==Y?void 0:Y.rightPanel)&&void 0!==t?t:null==Y?void 0:Y.panel),style:e({flex:1},null!==(d=null==Z?void 0:Z.rightPanel)&&void 0!==d?d:null==Z?void 0:Z.panel)},{children:S})),re&&n("button",e({onClick:be,className:we((null==Z?void 0:Z.collapseButton)?"":r.expandButton,r.expandButtonRightHorizontal,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Expand right panel (50/50)"},{children:n(v,e({},ze))})),oe&&n("div",{className:"".concat(r.dragOverlay," ").concat(r.dragOverlayHorizontal)})]}))}()]})),Ee]})};export{f as default};
|
|
2
2
|
//# sourceMappingURL=SplitterCitationsComponent.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as C}from"tslib";import{jsxs as o,jsx as t}from"react/jsx-runtime";var i=function(i){var r=i.fill,e=void 0===r?"#F8FAFC":r,n=i.stroke,l=void 0===n?"#E0E0E0":n,d=i.arrowStroke,h=void 0===d?"#111827":d;return o("svg",C({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:e,stroke:l}),t("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:h,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},r=function(i){var r=i.fill,e=void 0===r?"#F8FAFC":r,n=i.stroke,l=void 0===n?"#E0E0E0":n,d=i.arrowStroke,h=void 0===d?"black":d;return o("svg",C({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:e,stroke:l}),t("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:h,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},e=function(i){var r=i.color,e=void 0===r?"#087443":r,n=i.size,l=void 0===n?14:n;return o("svg",C({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 12 12",fill:"none"},{children:[t("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:e}),t("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:e})]}))},n=function(o){var i=o.color,r=void 0===i?"#7A5AF8":i;return t("svg",C({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:t("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:r,stroke:r,strokeWidth:"0.5"})}))};export{e as AIMagicIcon,n as MaximizeIcon,r as SidebarCloseIcon,i as SidebarOpenIcon};
|
|
2
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as n}from"tslib";import{jsxs as e,jsx as i,Fragment as t}from"react/jsx-runtime";import{useState as l,useRef as o,useEffect as a}from"react";import{ChevronUp as h,ChevronDown as r,Maximize2 as c,X as
|
|
1
|
+
import{__assign as n}from"tslib";import{jsxs as e,jsx as i,Fragment as t}from"react/jsx-runtime";import{useState as l,useRef as o,useEffect as a}from"react";import{ChevronUp as h,ChevronDown as r,Maximize2 as c,X as d,Loader2 as s}from"lucide-react";import g from"./TextualGuidelines.module.css.js";import u from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";var v=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(Boolean).join(" ")},x=function(n){return n.toLowerCase().replace(/[^a-z0-9]/g,"")},m=function(n,e){var i=n.map(x).filter(Boolean),t=e.map(x).filter(Boolean);if(0===i.length||0===t.length)return 0;var l=new Set(i),o=new Set(t),a=0;return l.forEach(function(n){o.has(n)&&a++}),2*a/(l.size+o.size)},I=function(e){var t=0;return e.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(e){var l="bold-".concat(t);return t+=e.length,e.startsWith("**")&&e.endsWith("**")||e.startsWith("__")&&e.endsWith("__")?i("strong",n({className:g.boldText},{children:e.slice(2,-2)}),l):e})},f=function(x){x.index;var f=x.TextualGuideLines,p=x.HighlightedWords,b=x.InternalGptReasoningData,y=x.headerTitle,C=void 0===y?"Textual Guidelines":y,N=x.IgptHeaderTitle,T=void 0===N?"GPT - Gemini 3.1 Flash Lite":N,L=x.useVariantHighlight,k=void 0!==L&&L,w=x.fuzzyThreshold,A=void 0===w?.8:w,B=x.onAccordionToggle,z=x.isInternalGptReasoningLoading,V=void 0!==z&&z,G=x.themeTokens,_=x.classNames,R=x.styles,E=l(0),M=E[0],D=E[1],H=l(new Set),P=H[0],S=H[1],W=o([]),j=[];p.forEach(function(n){(function(n,e,i){void 0===i&&(i=.8);var t=e.trim().split(/\s+/).filter(Boolean);if(0===t.length)return[];for(var l,o=[],a=/\S+/g;null!==(l=a.exec(n));)o.push({word:l[0],start:l.index,end:l.index+l[0].length});for(var h=t.length,r=[],c=Math.max(1,h-1);c<=h+2;c++)for(var d=0;d<=o.length-c;d++){var s=o.slice(d,d+c),g=m(t,s.map(function(n){return n.word}));g>=i&&r.push({startIndex:s[0].start,endIndex:s[s.length-1].end,score:g})}if(0===r.length)return[];r.sort(function(n,e){return e.score-n.score||e.endIndex-e.startIndex-(n.endIndex-n.startIndex)});for(var u=[],v=function(n){u.some(function(e){return n.startIndex<e.endIndex&&n.endIndex>e.startIndex})||u.push(n)},x=0,I=r;x<I.length;x++)v(I[x]);return u})(f,n,A).forEach(function(n){return j.push(n)})}),j.sort(function(n,e){return n.startIndex-e.startIndex});for(var F=[],K=0,U=j;K<U.length;K++){var q=U[K],J=F.at(-1);(!J||q.startIndex>=J.endIndex)&&F.push(q)}var O=F.map(function(n,e){return{text:f.substring(n.startIndex,n.endIndex),startIndex:n.startIndex,endIndex:n.endIndex,highlightIndex:e}}),Q=O.length;a(function(){Q>0&&(D(0),setTimeout(function(){var n;null===(n=W.current[0])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50))},[Q]);var X,Y,Z,$,nn=function(n,e){S(function(i){var t=new Set(i),l=!t.has(n);return t.has(n)?t.delete(n):t.add(n),null==B||B({highlightIndex:n,phrase:e,isExpanded:l}),t})};return e("div",n({className:v(g.expandedContainer,null==_?void 0:_.container),style:n(n({},G),null==R?void 0:R.container)},{children:[e("div",n({className:v(g.expandedHeader,null==_?void 0:_.header),style:null==R?void 0:R.header},{children:[i("span",n({className:v(g.headerTitle,null==_?void 0:_.headerTitle),style:null==R?void 0:R.headerTitle},{children:C})),i("div",n({className:v(g.headerActions,null==_?void 0:_.headerActions),style:null==R?void 0:R.headerActions},{children:Q>=1&&e(t,{children:[e("span",n({className:v(g.navCounter,null==_?void 0:_.navCounter),style:null==R?void 0:R.navCounter},{children:[M+1," / ",Q]})),i("button",n({onClick:function(){if(0!==Q){var n=M>0?M-1:Q-1;D(n),setTimeout(function(){var e;null===(e=W.current[n])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:M<=0,className:v(g.navButton,null==_?void 0:_.navButtonPrev),style:null==R?void 0:R.navButtonPrev},{children:i(h,{size:14,className:g.navButtonIcon})})),i("button",n({onClick:function(){if(0!==Q){var n=M<Q-1?M+1:0;D(n),setTimeout(function(){var e;null===(e=W.current[n])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:M>=Q-1,className:v(g.navButton,null==_?void 0:_.navButtonNext),style:null==R?void 0:R.navButtonNext},{children:i(r,{size:14,className:g.navButtonIcon})}))]})}))]})),i("div",n({className:v(g.contentArea,null==_?void 0:_.contentArea),style:null==R?void 0:R.contentArea},{children:i("div",n({className:v(g.contentInner,null==_?void 0:_.contentInner),style:null==R?void 0:R.contentInner},{children:(X=f.split("\n"),Y=0,Z=0,$=[],X.forEach(function(t){var l=Y,o=Y+t.length;Y+=t.length+1;var a=/^(\s*)(-|\*|\d+\.)\s+/.exec(t),x=/^(Title|Description|Training-basis):\s*/i.exec(t);x&&(Z=0),a&&(Z+=1);var m=!!a,p=!!x,y=a?a[0].length:0,C=l+y,N=O.filter(function(n){return n.startIndex<o&&n.endIndex>C}),L="line-".concat(l),w=function(t,l,o,h){p?$.push(i("span",n({className:v(g.headerLine,null==_?void 0:_.headerLine),style:null==R?void 0:R.headerLine},{children:t}),l)):m?$.push(e("span",n({className:v(g.listItemLine,null==_?void 0:_.listItemLine),style:n({paddingLeft:a[1]?"1rem":"0"},null==R?void 0:R.listItemLine)},{children:[o&&e("span",n({className:v(g.listCounter,null==_?void 0:_.listCounter),style:null==R?void 0:R.listCounter},{children:[Z,"."]})),i("span",{children:t})]}),l)):$.push(i("span",n({className:v(g.blockLine,null==_?void 0:_.blockLine),style:null==R?void 0:R.blockLine},{children:t}),l))},A=m&&1===N.length&&N[0].startIndex<=C&&N[0].endIndex>=o;if(0===N.length)w(I(t.substring(y)),L,!0);else if(A){var B=N[0],z=B.highlightIndex===M,G=P.has(B.highlightIndex),E=k?z?"".concat(g.highlightBlockRow," ").concat(g.highlightActiveVariant):"".concat(g.highlightBlockRow," ").concat(g.highlightVariantRow):z?"".concat(g.highlightBlockRow," ").concat(g.highlightActive):g.highlightBlockRow;$.push(e("span",n({ref:function(n){W.current[B.highlightIndex]=n},className:"".concat(g.listItemLine," ").concat(E),role:"button",tabIndex:0,onClick:function(){return nn(B.highlightIndex,B.text)},onKeyDown:function(n){"Enter"!==n.key&&" "!==n.key||nn(B.highlightIndex,B.text)},style:{paddingLeft:a[1]?"1rem":"0"}},{children:[e("span",n({className:g.listCounter},{children:[Z,"."]})),i("span",{children:I(f.substring(C,o))}),i(G?h:r,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),L)),G&&b[B.highlightIndex]?$.push(i("div",n({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:i(u,{item:n(n({},b[B.highlightIndex]),{confidence_score:void 0}),headerTitle:T||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:r,ChevronUpIcon:h,MaximizeIcon:c,CloseIcon:d},bodyHeight:"100%",disableMaximize:!0,index:B.highlightIndex})}),"expanded-".concat(B.highlightIndex))):G&&V&&$.push(e("div",n({className:g.loadingContainer},{children:[i(s,{size:16,className:g.spinnerIcon}),i("span",{children:"Loading..."})]}),"loading-".concat(B.highlightIndex)))}else{var D=C,H=[],S=!0,j=N[0],F=j.highlightIndex===M;k?F?"".concat(g.highlight," ").concat(g.highlightActiveVariant):g.highlightVariant:F?"".concat(g.highlight," ").concat(g.highlightActive):g.highlight,m&&j.startIndex;for(var K=function(t){var l=Math.max(t.startIndex,C),a=Math.min(t.endIndex,o);if(l>=a)return"continue";if(l>D){var x=f.substring(D,l);H.push(i("span",{children:I(x)},"t-".concat(D)))}var m=t.highlightIndex===M,p=k?m?v(g.highlight,g.highlightActiveVariant,null==_?void 0:_.highlight,null==_?void 0:_.highlightActiveVariant):v(g.highlightVariant,null==_?void 0:_.highlightVariant):m?v(g.highlight,g.highlightActive,null==_?void 0:_.highlight,null==_?void 0:_.highlightActive):v(g.highlight,null==_?void 0:_.highlight),y=k?m?n(n({},null==R?void 0:R.highlight),null==R?void 0:R.highlightActiveVariant):n({},null==R?void 0:R.highlightVariant):m?n(n({},null==R?void 0:R.highlight),null==R?void 0:R.highlightActive):n({},null==R?void 0:R.highlight),N=P.has(t.highlightIndex);if(H.push(e("span",n({ref:function(n){W.current[t.highlightIndex]=n},className:p,role:"button",tabIndex:0,onClick:function(){return nn(t.highlightIndex,t.text)},onKeyDown:function(n){"Enter"!==n.key&&" "!==n.key||nn(t.highlightIndex,t.text)},style:n({cursor:"pointer"},y)},{children:[f.substring(l,a),i(N?h:r,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),"h-".concat(t.highlightIndex))),D=a,N&&b[t.highlightIndex]){var A=S?L:"".concat(L,"-chunk-").concat(l);w(H,A,S),S=!1,H=[],$.push(i("div",n({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:i(u,{item:n(n({},b[t.highlightIndex]),{confidence_score:void 0}),headerTitle:T||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:r,ChevronUpIcon:h,MaximizeIcon:c,CloseIcon:d},bodyHeight:"100%",disableMaximize:!0,index:t.highlightIndex})}),"expanded-".concat(t.highlightIndex)))}else N&&V&&(A=S?L:"".concat(L,"-chunk-").concat(l),w(H,A,S),S=!1,H=[],$.push(e("div",n({className:g.loadingContainer},{children:[i(s,{size:16,className:g.spinnerIcon}),i("span",{children:"Loading..."})]}),"loading-".concat(t.highlightIndex))))},U=0,q=N;U<q.length;U++)K(q[U]);if(D<o&&H.push(i("span",{children:I(f.substring(D,o))},"t-end-".concat(o))),H.length>0||S){var J=S?L:"".concat(L,"-tail");w(H,J,S)}}}),$)}))}))]}))};export{f as default};
|
|
2
2
|
//# sourceMappingURL=TextualGuideLinesComponent.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as
|
|
1
|
+
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as PromptemonBlockViewer}from"./features/PromptemonBlockViewer/PromptemonBlockViewer.js";export{default as PromptemonViewer}from"./features/PromptemonViewer/PromptemonViewer.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as BPACitationRenderer}from"./features/BPACitationRenderer/BPACitationRenderer.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptemonBlockViewerTest.d.ts","sourceRoot":"","sources":["../../../src/PromptemonBlockViewerTest.tsx"],"names":[],"mappings":"AAyBA,QAAA,MAAM,yBAAyB,+CAqC9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptemonViewerTest.d.ts","sourceRoot":"","sources":["../../../src/PromptemonViewerTest.tsx"],"names":[],"mappings":"AA+CA,QAAA,MAAM,oBAAoB,+CAiEzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CitationOrchestratorProps } from './BPACitationRenderer.types';
|
|
2
|
+
export * from './BPACitationRenderer.types';
|
|
3
|
+
declare const BPACitationRenderer: ({ href, children, isStreaming, onCitationToggle, chatCitationConfig, scannedDocCitationConfig, ruleBookCitationConfig, ilCitationConfig, gptCitationConfig, scannedDocCitationData, ilCitationData, chatCitationData, gptCitationData, webCitationData, imageCitationData, bqCitationData, title, citationIcon, isDualCitationFlag }: CitationOrchestratorProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export default BPACitationRenderer;
|
|
5
|
+
//# sourceMappingURL=BPACitationRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BPACitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/BPACitationRenderer.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,cAAc,6BAA6B,CAAC;AA2D5C,QAAA,MAAM,mBAAmB,yUAoBtB,yBAAyB,mDAuX3B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BPACitationRenderer.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/BPACitationRenderer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAC1I,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEzF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAOD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAChD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB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AC;IACxC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAC,OAAO,CAAA;CAC5B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AiReasoningCitationItem, CitationItem } from './BPACitationRenderer';
|
|
3
|
+
export declare const transformAiReasoningCitations: (aiReasoningCitation: AiReasoningCitationItem[], decisionStrength?: string | number) => CitationItem[];
|
|
4
|
+
declare const BPACitationRendererTest: React.FC;
|
|
5
|
+
export default BPACitationRendererTest;
|
|
6
|
+
//# sourceMappingURL=BPACitationRendererTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BPACitationRendererTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/BPACitationRendererTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAa9E,eAAO,MAAM,6BAA6B,wBACnB,uBAAuB,EAAE,qBAC3B,MAAM,GAAG,MAAM,KACjC,YAAY,EAGV,CAAC;AAgQN,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAoDpC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DualRuleBookBqCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/DualRuleBookBqCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAsFxC,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAmCvC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DualRuleBookGptCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/DualRuleBookGptCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AA8DxC,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAsDxC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ILRuleBookCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/ILRuleBookCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0ExC,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAmCnC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/dist/types/src/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.d.ts
RENAMED
|
@@ -7,6 +7,7 @@ export declare const CITATION_TYPES: {
|
|
|
7
7
|
readonly IMAGE: "image_citation";
|
|
8
8
|
readonly BQ_DATA: "bq_data";
|
|
9
9
|
readonly RULEBOOK: "rulebook_citation";
|
|
10
|
+
readonly RULEBOOK_CHUNK: "rulebook_chunk";
|
|
10
11
|
readonly IL_RULEBOOK: "il_rulebook_citation";
|
|
11
12
|
readonly DUAL: "dual_citation";
|
|
12
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citationTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/citationTypes.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBookCitationComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/DualCitation/RuleBookCitationComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAmC,EACjC,qBAAqB,EACtB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAKL,UAAU,EAEX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAE9G,UAAU,8BAA8B;IACtC,IAAI,CAAC,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE;YACZ,OAAO,EAAE,MAAM,CAAC;YAChB,mBAAmB,EAAE,MAAM,CAAC;SAC7B,CAAC;KACH,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB,CAAC,EAAE;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAC,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,
|
|
1
|
+
{"version":3,"file":"RuleBookCitationComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/DualCitation/RuleBookCitationComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAmC,EACjC,qBAAqB,EACtB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAKL,UAAU,EAEX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAE9G,UAAU,8BAA8B;IACtC,IAAI,CAAC,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE;YACZ,OAAO,EAAE,MAAM,CAAC;YAChB,mBAAmB,EAAE,MAAM,CAAC;SAC7B,CAAC;KACH,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB,CAAC,EAAE;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAC,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA8NvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import { ChatCitationConfig, ScannedDocCitationConfig, GptCitationConfig } from '../../
|
|
2
|
+
import { ChatCitationConfig, ScannedDocCitationConfig, GptCitationConfig } from '../../BPACitationRenderer/BPACitationRenderer';
|
|
3
3
|
import { ILCitationConfig } from '../InstantLearningCitationComponent';
|
|
4
4
|
export type RuleSetCategory = 'Global' | 'Genre' | 'Custom';
|
|
5
5
|
export type RuleSetItem = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearningCitation/types/Types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearningCitation/types/Types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAChI,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAI5D,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,WA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AoC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0CAA0C;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,6CAA6C;IAC7C,mBAAmB,CAAC,EAAE,aAAa,EAAE,CAAC;IACtC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,2CAA2C;IAC3C,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PromptemonBlockViewerProps {
|
|
2
|
+
title: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
content: string;
|
|
5
|
+
height?: number;
|
|
6
|
+
selectedTag?: string;
|
|
7
|
+
highlightVariable?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const PromptemonBlockViewer: ({ title, description, content, height, selectedTag, highlightVariable, }: PromptemonBlockViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default PromptemonBlockViewer;
|
|
11
|
+
//# sourceMappingURL=PromptemonBlockViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptemonBlockViewer.d.ts","sourceRoot":"","sources":["../../../../../src/features/PromptemonBlockViewer/PromptemonBlockViewer.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAwQD,QAAA,MAAM,qBAAqB,6EAOxB,0BAA0B,4CA6G5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/PromptemonBlockViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface SPBCategory {
|
|
2
|
+
category_id: string;
|
|
3
|
+
category_name: string;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface SPBSubCategory {
|
|
7
|
+
sub_category_id: string;
|
|
8
|
+
sub_category_name: string;
|
|
9
|
+
category_id: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface PromptemonViewerProps {
|
|
13
|
+
block: any;
|
|
14
|
+
onBlockUpdate: (updatedBlock: any) => void;
|
|
15
|
+
isExtracting: boolean;
|
|
16
|
+
isExtracted: boolean;
|
|
17
|
+
onExtractSegments: () => void;
|
|
18
|
+
isSaving: boolean;
|
|
19
|
+
isSaved: boolean;
|
|
20
|
+
onSave: () => void;
|
|
21
|
+
onBack: () => void;
|
|
22
|
+
title?: string;
|
|
23
|
+
categories: SPBCategory[];
|
|
24
|
+
subCategories: SPBSubCategory[];
|
|
25
|
+
selectedCategoryId: string;
|
|
26
|
+
selectedSubCategoryId: string;
|
|
27
|
+
onCategoryChange: (id: string) => void;
|
|
28
|
+
onSubCategoryChange: (id: string) => void;
|
|
29
|
+
onAddCategory?: (data: {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
}) => Promise<void>;
|
|
33
|
+
onAddSubCategory?: (data: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
categoryId: string;
|
|
37
|
+
}) => Promise<void>;
|
|
38
|
+
showEditMode?: boolean;
|
|
39
|
+
showExtractSegments?: boolean;
|
|
40
|
+
}
|
|
41
|
+
declare const PromptemonViewer: ({ block, onBlockUpdate, isExtracting, isExtracted, onExtractSegments, isSaving, isSaved, onSave, onBack, title, categories, subCategories, selectedCategoryId, selectedSubCategoryId, onCategoryChange, onSubCategoryChange, showEditMode, showExtractSegments, }: PromptemonViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export default PromptemonViewer;
|
|
43
|
+
//# sourceMappingURL=PromptemonViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptemonViewer.d.ts","sourceRoot":"","sources":["../../../../../src/features/PromptemonViewer/PromptemonViewer.tsx"],"names":[],"mappings":"AA+EA,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IAElC,KAAK,EAAE,GAAG,CAAC;IACX,aAAa,EAAE,CAAC,YAAY,EAAE,GAAG,KAAK,IAAI,CAAC;IAG3C,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAG9B,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IAGnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,UAAU,EAAE,WAAW,EAAE,CAAC;IAC1B,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAuoBD,QAAA,MAAM,gBAAgB,sQAmBnB,qBAAqB,4CA0IvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/PromptemonViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
title?: string;
|
|
4
|
-
confidenceScore?: number;
|
|
5
|
-
confidenceScoreTitle?: string;
|
|
6
|
-
showDocIcon?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface SplitterProps {
|
|
9
|
-
left: React.ReactNode;
|
|
10
|
-
right: React.ReactNode;
|
|
11
|
-
defaultLeftWidth?: number;
|
|
12
|
-
minLeftWidth?: number;
|
|
13
|
-
minRightWidth?: number;
|
|
14
|
-
className?: string;
|
|
15
|
-
height?: string | number;
|
|
16
|
-
width?: string | number;
|
|
17
|
-
header?: SplitterHeader;
|
|
18
|
-
onLeftWidthChange?: (width: number) => void;
|
|
19
|
-
openInFullscreen?: boolean;
|
|
20
|
-
onFullscreenClose?: () => void;
|
|
21
|
-
fullscreenOnly?: boolean;
|
|
22
|
-
}
|
|
2
|
+
import type { SplitterProps } from "./types";
|
|
23
3
|
declare const SplitterCitationsComponent: React.FC<SplitterProps>;
|
|
24
4
|
export default SplitterCitationsComponent;
|
|
25
5
|
//# sourceMappingURL=SplitterCitationsComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgevD,CAAC;AACF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IconColorProps {
|
|
3
|
+
fill?: string;
|
|
4
|
+
stroke?: string;
|
|
5
|
+
arrowStroke?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SidebarOpenIcon: React.FC<IconColorProps>;
|
|
8
|
+
export declare const SidebarCloseIcon: React.FC<IconColorProps>;
|
|
9
|
+
export declare const AIMagicIcon: React.FC<{
|
|
10
|
+
color?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const MaximizeIcon: React.FC<{
|
|
14
|
+
color?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../src/features/SplitterCitations/icons/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyBpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyBrD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAoBnE,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBrD,CAAC"}
|