@e-llm-studio/instant-learning 0.0.151 → 0.0.153
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/dist/cjs/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/arrow-right.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/arrow-right.js.map +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/send-horizontal.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/send-horizontal.js.map +1 -1
- package/dist/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/send-horizontal.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/send-horizontal.js.map +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts +5 -0
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts +2 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__rest as t,__assign as n}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as a,jsxs as r,Fragment as i}from"react/jsx-runtime";import{ReactMarkdown as o}from"../../../../node_modules/react-markdown/lib/react-markdown.js";import c from"../../../../node_modules/rehype-raw/lib/index.js";import s from"../../../../node_modules/remark-gfm/index.js";import{useState as l,useRef as d,useEffect as u,useCallback as m,useMemo as p}from"react";import{RuleDisplay as g,ActionableButton as f,ActionableCheckbox as v}from"./ClickableChatComponents.js";import{MarkdownLinkRenderer as h,MarkdownDivRenderer as S,MarkdownSpanRenderer as b}from"../MarkdownComponents/MarkdownElements.js";import{extractTextFromChildren as k}from"../../helpers/utils.js";import{RuleVariantCard as y}from"./RuleVariantCard.js";import{MarkdownSelect as w}from"../MarkdownComponents/MarkdownSelect.js";var x=function(x){var C=x.index,E=x.content,T=x.role;x.messages;var _=x.handleStream,I=x.scrollToBottom,N=x.isLastMessage,B=x.onSave,M=x.citations,L=x.setChatSize,j=x.chatSize,z=x.isStreamEnd,A=x.messageIsEnd,W=x.onViewComparison,D=l(E),V=D[0],P=D[1],R=l([]),$=R[0],G=R[1],H=l(!1),q=H[0],F=H[1],J=l(!1),K=J[0],O=J[1],U=l(!1),X=U[0],Y=U[1],Q=l(null),Z=Q[0],ee=Q[1],te=l(null),ne=te[0],ae=te[1],re=l([]),ie=re[0],oe=re[1],ce=l(!1),se=ce[0],le=ce[1],de=l(!1),ue=de[0],me=de[1],pe=l(new Set),ge=pe[0],fe=pe[1],ve=l(new Set),he=ve[0],Se=ve[1],be=d({handleStream:_,onSave:B,selectedTiers:$,tiersSubmitted:K,citations:M,openCardIds:ge,openCitationIds:he,chatSize:j,isLastMessage:N,scrollToBottom:I,isStreamEnd:z,selectedVariant:ne,messageIsEnd:A,isCommitted:X,clickedAction:Z,gapSelections:ie,gapsSubmitted:ue});be.current={handleStream:_,onSave:B,selectedTiers:$,tiersSubmitted:K,citations:M,openCardIds:ge,openCitationIds:he,chatSize:j,isLastMessage:N,scrollToBottom:I,isStreamEnd:z,selectedVariant:ne,messageIsEnd:A,isCommitted:X,clickedAction:Z,gapSelections:ie,gapsSubmitted:ue},u(function(){ae(null),Y(!1),ee(null),le(!1),me(!1),oe([])},[C]),u(function(){if(A&&!X&&!ne){var e=V.match(/<variant-card[^>]*isselected=["']true["'][^>]*>/i);if(e){var t=e[0].match(/id=["']([^"']+)["']/),n=e[0].match(/variantname=["']([^"']+)["']/),a=e[0].match(/decisionstrength=["']([^"']+)["']/);t&&n&&ae({id:t[1],variantName:n[1],decisionStrength:parseInt((null==a?void 0:a[1])||"0")})}}},[V,A,X,ne]);var ke=m(function(e,t,n){var a=function(n){var a=new Set(n);return t?a.add(e):a.delete(e),a};"card"===n?fe(function(e){return a(e)}):Se(function(e){return a(e)})},[]),ye=m(function(e,t,n){void 0===t&&(t=!1);var a=be.current,r=a.handleStream;a.onSave;var i=e.trim();r&&(r(new KeyboardEvent("keydown",{key:"Enter"}),!1,i),t&&n&&(Y(!0),ee(n))),t||P(function(e){return e.replace(/<button([^>]*)class=["']clickable-button["']([^>]*)>([\s\S]*?)<\/button>/gi,function(e,t,n,a){var r=a.trim(),o='data-selected="'.concat(r===i,'"');return"<button".concat(t,'class="clickable-button" ').concat(o).concat(n,">").concat(a,"</button>")})})},[]),we=m(function(e,t){le(e),oe(t)},[]),xe=m(function(){var e=be.current,t=e.handleStream,n=e.gapSelections.map(function(e){var t=Array.isArray(e.userSelection)?e.userSelection.join(", "):e.userSelection;return"".concat(e.name,": ").concat(t||"Skipped")}),a="Here are my choices for the critical gaps:\n".concat(n.join(","));t(new KeyboardEvent("keydown",{key:"Enter"}),!1,a),me(!0)},[]),Ce=m(function(e,t){var n=be.current.citations;return n&&n.find(function(n){return n.customMetaData.citation_number&&"Cognitive Decisioning"!==n.customMetaData.citation_title&&n.customMetaData.source===t&&String(n.customMetaData.citation_number)===String(e)})||null},[]),Ee=m(function(t,n){var a=be.current.scrollToBottom,r=Array.isArray(t)?t[0].trim():t.trim();F(!0),G(function(t){var a=e([],t,!0);if(["both tiers","all tiers"].includes(r.toLowerCase()))a=n?["Both Tiers","Tier 1","Tier 2"]:[];else{n?a.includes(r)||a.push(r):a=a.filter(function(e){return e!==r});var i=a.includes("Tier 1"),o=a.includes("Tier 2");i&&o?a.includes("Both Tiers")||a.push("Both Tiers"):a=a.filter(function(e){return!["Both Tiers","All tiers"].includes(e)})}return a.filter(function(e,t){return a.indexOf(e)===t})}),null==a||a()},[]),Te=m(function(e,t,n,a){be.current.isCommitted||t&&ae({id:e,variantName:n,decisionStrength:a})},[]),_e=function(){if(!be.current.isCommitted){var e="Edit ".concat((null==ne?void 0:ne.variantName)||"Selected Behavior");ye(e,!0,"edit")}},Ie=m(function(){var e=be.current,t=e.handleStream,n=e.selectedTiers,a=n.join(" and ");n.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})&&(a="Both Tiers"),t(new KeyboardEvent("keydown",{key:"Enter"}),!1,"".concat(a)),O(!0),F(!1),P(function(e){return e.replace(/<checkbox\s+class=["']clickable-box["'][^>]*>([\s\S]*?)<\/checkbox>/gi,function(e,t){var a=t.trim();return n.includes(a)?e:""})})},[]),Ne=p(function(){return{p:function(e){e.node;var r=t(e,["node"]);return a("span",n({},r,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",fontSize:"1rem",lineHeight:"1.625rem",marginBottom:"user"===T?"0":"1rem"}},{children:null==r?void 0:r.children}))},code:function(e){e.node;var r=t(e,["node"]);return a("span",n({},r,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==r?void 0:r.children}))},ol:function(e){e.node;var r=t(e,["node"]);return a("ol",n({},r,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==r?void 0:r.children}))},ul:function(e){e.node;var r=t(e,["node"]);return a("ul",n({},r,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==r?void 0:r.children}))},rule:function(e){e.node;var n=t(e,["node"]);return a(g,{content:k(n.children)})},button:function(e){var r=e.node,i=e.className,o=t(e,["node","className"]),c=be.current,s=c.isLastMessage,l=c.handleStream,d=c.isStreamEnd;return a(f,n({node:r,className:i||o.class,handleStream:l,onAction:ye,disabled:!s,isStreamEnd:d},o))},checkbox:function(e){var r=e.node,i=e.className,o=t(e,["node","className"]),c=be.current,s=c.selectedTiers,l=c.tiersSubmitted,d=c.isLastMessage;return a(v,n({node:r,className:i||o.class,selectedItems:s,onToggle:Ee,isSubmitted:l,disabled:!d},o))},a:function(e){var t=be.current,r=t.chatSize,i=t.openCitationIds;return a(h,n({},e,{chatSize:r,openCitationIds:i,getCitationByNumber:Ce,handleToggleState:ke,isStreamEnd:be.current.isStreamEnd}))},div:function(e){var t=be.current,r=t.openCardIds,i=t.citations,o=t.isLastMessage,c=t.isStreamEnd,s=t.gapsSubmitted;return"rule-validation-card-trigger"===e.className?a(S,n({},e,{onViewComparison:W})):a(S,n({},e,{openCardIds:r,citations:i,handleToggleState:ke,isStreamEnd:c,isLastMessage:o,handleStream:_,onGapValidation:we,isGapsSubmitted:s,onViewComparison:W}))},span:function(e){var t;if(null===(t=e.className)||void 0===t?void 0:t.includes("cognitive-card-trigger")){var r=be.current,i=r.openCardIds,o=r.citations,c=r.isLastMessage,s=r.isStreamEnd;return a(b,n({},e,{openCardIds:i,citations:o,handleToggleState:ke,isStreamEnd:!c||s}))}return a("span",n({},e))},"variant-card":function(e){e.node;var r=t(e,["node"]),i=r.variantname,o=r.decisionstrength,c=r.id,s=be.current,l=s.isCommitted,d=s.isLastMessage,u=s.selectedVariant;if(!A)return null;var m=(null==u?void 0:u.id)===c,p=parseInt(o||"0");return a(y,n({variantName:i,decisionStrength:p,isEditable:!l&&d,isSelected:m,onToggle:function(e){return Te(c,e,i,p)},onEdit:function(){return _e()}},{children:r.children}))},br:function(e){return a("p",n({style:{marginBottom:"0.75rem"}},e))}}},[ye,Ee,Ce,ke,T,ne,X,A,we,Te]);u(function(){K||(P(E),setTimeout(function(){null==I||I()},50))},[E,K,I]);var Be=d(0);u(function(){var e=ge.size+he.size;e>0&&0===Be.current?null==L||L(50):0===e&&Be.current>0&&(null==L||L(40)),Be.current=e},[ge,he,L]);var Me=p(function(){return[c]},[]),Le=p(function(){return[s]},[]),je=(null==ne?void 0:ne.variantName)||"Selected Behavior",ze=se&&A&&(N||ue);return r(i,{children:[r("div",n({style:{lineHeight:"1.625rem",fontSize:"1rem",marginTop:"0.5rem",marginBottom:"".concat("assistant"===T?"1rem":"0rem"),fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[a(o,n({components:Ne,rehypePlugins:Me,remarkPlugins:Le},{children:function(e){if(!e)return"";var t=e.replace(/\\"/g,'"').replace(/\\'/g,"'");t=(t=(t=t.replace(/```(?:\w+)?\n?([\s\S]*?)```/gi,"$1")).replace(/<br\s*\/?>/gi,"\n\n")).replace(/<critical_gaps\s+([\s\S]*?)>([\s\S]*?)<\/critical_gaps>/gi,function(e,t,n){try{for(var a={},r=/([a-z0-9_]+)\s*=\s*(["'])([\s\S]*?)\2/gi,i=void 0;null!==(i=r.exec(t));)a[i[1]]=i[3];for(var o=[],c=/<gap_card\s+([\s\S]*?)>([\s\S]*?)<\/gap_card>/gi,s=void 0,l=function(){for(var e=s[1],t=s[2],n={};null!==(i=r.exec(e));)n[i[1]]=i[3];var a=t.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),c=null;if(a){var l=a[1],d=function(e){var t;return(null===(t=l.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===t?void 0:t[1])||""};c={id:d("id"),reason:d("reason"),gap:d("gap"),score:d("relevance_score")}}var u=[],m="text",p=/<(selectoption|radioselect)>/i.test(t),g=/<checkbox>/i.test(t),f=/<textfield>/i.test(t);if(p){m="radio";for(var v=void 0,h=/<selectoption[^>]*>\s*([\s\S]*?)\s*<\/selectoption>/gi;null!==(v=h.exec(t));)u.push(v[1].trim())}else if(g){m="checkbox";for(var S=void 0,b=/<checkbox>\s*([\s\S]*?)\s*<\/checkbox>/gi;null!==(S=b.exec(t));)u.push(S[1].trim())}else f&&(m="text");"radio"!==m||0!==u.length||f||(m="text"),o.push({id:"gap-".concat(o.length),name:n.gap_name||"Gap",decisionStrength:n.gap_decision_strength,impact:n.impact,value:n.gap_value,aiReasoning:c,inputType:m,options:u,userSelection:"checkbox"===m?[]:""})};null!==(s=c.exec(n));)l();var d={count:a.count,decisionStrength:a.critical_gaps_decision_strength,value:a.value,gaps:o},u=JSON.stringify(d).replace(/"/g,""");return'\n\n<div class="critical-gaps-trigger" data-payload="'.concat(u,'"></div>\n\n')}catch(t){return console.error("Error parsing critical gaps XML",t),e}}),t=(t=(t=(t=(t=t.replace(/<variant-card\s+([\s\S]*?)>([\s\S]*?)<\/variant-card>/gi,function(e,t,n){for(var a,r={},i=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|$)/gi;null!==(a=i.exec(t));)r[a[1]]=a[3];return'\n\n<variant-card id="'.concat(r.id||"",'" variantname="').concat(r.variantname||"",'" decisionstrength="').concat(r.decisionstrength||"0",'" iseditable="').concat(r.iseditable||"false",'" isselected="').concat(r.isselected||"false",'">').concat(n,"</variant-card>\n\n")})).replace(/<rule-validation-card\s+([\s\S]*?)>([\s\S]*?)<\/rule-validation-card>/gi,function(e,t,n){for(var a,r={},i=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|$)/gi;null!==(a=i.exec(t));)r[a[1]]=a[3];var o=function(e){return(r[e]||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};return'\n\n<div class="rule-validation-card-trigger" \n data-type="'.concat(o("validationType"),'"\n data-decision-strength="').concat(o("decisionStrength"),'"\n data-title="').concat(o("ruleTitle"),'"\n data-tier="').concat(o("tier"),'"\n data-description="').concat(o("ruleDescription"),'">').concat(n,"</div>\n\n")})).replace(/<(singleselect|multiselect|instantselect)>([\s\S]*?)<\/\1>/gi,function(e,t,n){var a="multi";return"singleselect"===t?a="single":"instantselect"===t&&(a="instant"),'\n\n<div class="markdown-select-trigger" data-type="'.concat(a,'">').concat(n,"</div>\n\n")})).replace(/<selectoption\s+([\s\S]*?)>([\s\S]*?)<\/selectoption>/gi,function(e,t,n){for(var a,r={},i=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2/gi;null!==(a=i.exec(t));)r[a[1]]=a[3];return'<div class="select-option-item" data-id="'.concat(r.id||"",'" data-cd="').concat(r.cd||"false",'">').concat(n,"</div>")})).replace(/<!--<ai_reasoning>(?![\s\S]*?<\/ai_reasoning>-->)[\s\S]*$/gi,"");["ai_reasoning"].forEach(function(e){var n=new RegExp("\x3c!--\\s*(<".concat(e,">[\\s\\S]*?<\\/").concat(e,">)\\s*--\x3e"),"gi");t=t.replace(n,"$1")});var n=0;t=t.replace(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/gi,function(e,t){var a=t.replace(/\[([^\]]+)\]\(([^)]+)\)/g,function(e,t,n){return'<a href="'.concat(n,'" data-shielded="true">').concat(t,"</a>")});return a=a.replace(/</g,"<").replace(/>/g,">"),n++,'<span class="cognitive-card-trigger" data-card-id="card-'.concat(n,'">').concat(a,"</span>")});var a=0;return t.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,t,n,r){var i=n.replace(/\s/g,"%20");if(i.includes("citationNumber=")){a++;var o=i.includes("?")?"&":"?";return"".concat(t).concat(i).concat(o,"uiUniqueId=").concat(a).concat(r)}return"".concat(t).concat(i).concat(r)})}(V)}),C),A&&V.includes("<variant-card")&&r("div",n({style:{gap:"8px"}},{children:[r(f,n({className:"clickable-button",handleStream:_,disabled:!N||!ne&&!X||X&&"add"!==Z,isStreamEnd:z,onAction:function(){return ye("Add ".concat(je),!0,"add")},"data-selected":"add"===Z?"true":X?"false":void 0},{children:["Add ",je]})),r(f,n({className:"clickable-button",handleStream:_,disabled:!N||!ne&&!X||X&&"edit"!==Z,isStreamEnd:z,onAction:function(){return ye("Edit ".concat(je),!0,"edit")},"data-selected":"edit"===Z?"true":X?"false":void 0},{children:["Edit ",je]})),a(f,n({className:"clickable-button",handleStream:_,disabled:!N||X&&"skip"!==Z,isStreamEnd:z,onAction:function(){return ye("Skip for now",!0,"skip")},"data-selected":"skip"===Z?"true":X?"false":void 0},{children:"Skip for now"}))]})),ze&&a("div",n({style:{marginTop:"12px",display:"flex",justifyContent:"flex-start"}},{children:a(w,{type:"instant",options:[{id:"proceed-gaps",label:"Proceed to Fix Gaps"}],selectedIds:ue?["proceed-gaps"]:[],disabled:ue,citations:[],onProceed:xe})}))]})),a("div",n({style:{display:"flex",maxWidth:"100%"}},{children:a("div",n({style:{width:"100%"}},{children:(null==$?void 0:$.length)>0&&q&&!K?r("div",n({style:{marginTop:"10px"}},{children:[r("span",{children:["It looks like you've chosen ",$&&0!==$.length?$.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})?"Both Tiers":$.join(", "):"",". Would you like me to proceed?"]}),a("p",{children:a("button",n({style:{padding:"0.5rem 1rem",margin:"0.5rem 0",backgroundColor:"#2661eb",color:"white",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"0.75rem",fontWeight:"500",fontFamily:"Plus Jakarta Sans, sans-serif"},onClick:Ie},{children:"Yes"}))})]})):null}))}))]})};export{x as default};
|
|
1
|
+
import{__spreadArray as e,__rest as n,__assign as t}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as a,jsxs as r,Fragment as i}from"react/jsx-runtime";import{ReactMarkdown as o}from"../../../../node_modules/react-markdown/lib/react-markdown.js";import c from"../../../../node_modules/rehype-raw/lib/index.js";import s from"../../../../node_modules/remark-gfm/index.js";import{useState as l,useRef as d,useEffect as u,useCallback as m,useMemo as p}from"react";import{RuleDisplay as g,ActionableButton as v,ActionableCheckbox as f}from"./ClickableChatComponents.js";import{MarkdownLinkRenderer as h,MarkdownDivRenderer as S,MarkdownSpanRenderer as b}from"../MarkdownComponents/MarkdownElements.js";import{extractTextFromChildren as k}from"../../helpers/utils.js";import{RuleVariantCard as y}from"./RuleVariantCard.js";import{MarkdownSelect as w}from"../MarkdownComponents/MarkdownSelect.js";var x=function(x){var C=x.index,E=x.content,_=x.role;x.messages;var T=x.handleStream,I=x.scrollToBottom,N=x.isLastMessage,B=x.onSave,M=x.citations,L=x.setChatSize,j=x.chatSize,z=x.isStreamEnd,A=x.messageIsEnd,W=x.onViewComparison,D=l(E),V=D[0],R=D[1],P=l([]),$=P[0],G=P[1],H=l(!1),q=H[0],F=H[1],J=l(!1),K=J[0],O=J[1],U=l(!1),X=U[0],Y=U[1],Q=l(null),Z=Q[0],ee=Q[1],ne=l(null),te=ne[0],ae=ne[1],re=l([]),ie=re[0],oe=re[1],ce=l(!1),se=ce[0],le=ce[1],de=l(!1),ue=de[0],me=de[1],pe=l(new Set),ge=pe[0],ve=pe[1],fe=l(new Set),he=fe[0],Se=fe[1],be=d({handleStream:T,onSave:B,selectedTiers:$,tiersSubmitted:K,citations:M,openCardIds:ge,openCitationIds:he,chatSize:j,isLastMessage:N,scrollToBottom:I,isStreamEnd:z,selectedVariant:te,messageIsEnd:A,isCommitted:X,clickedAction:Z,gapSelections:ie,gapsSubmitted:ue});be.current={handleStream:T,onSave:B,selectedTiers:$,tiersSubmitted:K,citations:M,openCardIds:ge,openCitationIds:he,chatSize:j,isLastMessage:N,scrollToBottom:I,isStreamEnd:z,selectedVariant:te,messageIsEnd:A,isCommitted:X,clickedAction:Z,gapSelections:ie,gapsSubmitted:ue},u(function(){ae(null),Y(!1),ee(null),le(!1),me(!1),oe([])},[C]),u(function(){if(A&&!X&&!te){var e=V.match(/<variant-card[^>]*isselected=["']true["'][^>]*>/i);if(e){var n=e[0].match(/id=["']([^"']+)["']/),t=e[0].match(/variantname=["']([^"']+)["']/),a=e[0].match(/decisionstrength=["']([^"']+)["']/);n&&t&&ae({id:n[1],variantName:t[1],decisionStrength:parseInt((null==a?void 0:a[1])||"0")})}}},[V,A,X,te]);var ke=m(function(e,n,t){var a=function(t){var a=new Set(t);return n?a.add(e):a.delete(e),a};"card"===t?ve(function(e){return a(e)}):Se(function(e){return a(e)})},[]),ye=m(function(e,n,t){void 0===n&&(n=!1);var a=be.current,r=a.handleStream;a.onSave;var i=e.trim();r&&(r(new KeyboardEvent("keydown",{key:"Enter"}),!1,i),n&&t&&(Y(!0),ee(t))),n||R(function(e){return e.replace(/<button([^>]*)class=["']clickable-button["']([^>]*)>([\s\S]*?)<\/button>/gi,function(e,n,t,a){var r=a.trim(),o='data-selected="'.concat(r===i,'"');return"<button".concat(n,'class="clickable-button" ').concat(o).concat(t,">").concat(a,"</button>")})})},[]),we=m(function(e,n){le(e),oe(n)},[]),xe=m(function(){var e=be.current,n=e.handleStream,t=e.gapSelections.map(function(e){var n=Array.isArray(e.userSelection)?e.userSelection.join(", "):e.userSelection;return"".concat(e.name,": ").concat(n||"Skipped")}),a="Here are my choices for the critical gaps:\n".concat(t.join(","));n(new KeyboardEvent("keydown",{key:"Enter"}),!1,a),me(!0)},[]),Ce=m(function(e,n){var t=be.current.citations;return t&&t.find(function(t){return t.customMetaData.citation_number&&"Cognitive Decisioning"!==t.customMetaData.citation_title&&t.customMetaData.source===n&&String(t.customMetaData.citation_number)===String(e)})||null},[]),Ee=m(function(n,t){var a=be.current.scrollToBottom,r=Array.isArray(n)?n[0].trim():n.trim();F(!0),G(function(n){var a=e([],n,!0);if(["both tiers","all tiers"].includes(r.toLowerCase()))a=t?["Both Tiers","Tier 1","Tier 2"]:[];else{t?a.includes(r)||a.push(r):a=a.filter(function(e){return e!==r});var i=a.includes("Tier 1"),o=a.includes("Tier 2");i&&o?a.includes("Both Tiers")||a.push("Both Tiers"):a=a.filter(function(e){return!["Both Tiers","All tiers"].includes(e)})}return a.filter(function(e,n){return a.indexOf(e)===n})}),null==a||a()},[]),_e=m(function(e,n,t,a){be.current.isCommitted||n&&ae({id:e,variantName:t,decisionStrength:a})},[]),Te=function(){if(!be.current.isCommitted){var e="Edit ".concat((null==te?void 0:te.variantName)||"Selected Behavior");ye(e,!0,"edit")}},Ie=m(function(){var e=be.current,n=e.handleStream,t=e.selectedTiers,a=t.join(" and ");t.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})&&(a="Both Tiers"),n(new KeyboardEvent("keydown",{key:"Enter"}),!1,"".concat(a)),O(!0),F(!1),R(function(e){return e.replace(/<checkbox\s+class=["']clickable-box["'][^>]*>([\s\S]*?)<\/checkbox>/gi,function(e,n){var a=n.trim();return t.includes(a)?e:""})})},[]),Ne=p(function(){return{p:function(e){e.node;var r=n(e,["node"]);return a("span",t({},r,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",fontSize:"1rem",lineHeight:"1.625rem",marginBottom:"user"===_?"0":"1rem"}},{children:null==r?void 0:r.children}))},code:function(e){e.node;var r=n(e,["node"]);return a("span",t({},r,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==r?void 0:r.children}))},ol:function(e){e.node;var r=n(e,["node"]);return a("ol",t({},r,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==r?void 0:r.children}))},ul:function(e){e.node;var r=n(e,["node"]);return a("ul",t({},r,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==r?void 0:r.children}))},rule:function(e){e.node;var t=n(e,["node"]);return a(g,{content:k(t.children)})},button:function(e){var r=e.node,i=e.className,o=n(e,["node","className"]),c=be.current,s=c.isLastMessage,l=c.handleStream,d=c.isStreamEnd;return a(v,t({node:r,className:i||o.class,handleStream:l,onAction:ye,disabled:!s,isStreamEnd:d},o))},checkbox:function(e){var r=e.node,i=e.className,o=n(e,["node","className"]),c=be.current,s=c.selectedTiers,l=c.tiersSubmitted,d=c.isLastMessage;return a(f,t({node:r,className:i||o.class,selectedItems:s,onToggle:Ee,isSubmitted:l,disabled:!d},o))},a:function(e){var n=be.current,r=n.chatSize,i=n.openCitationIds;return a(h,t({},e,{chatSize:r,openCitationIds:i,getCitationByNumber:Ce,handleToggleState:ke,isStreamEnd:be.current.isStreamEnd}))},div:function(e){var n=be.current,r=n.openCardIds,i=n.citations,o=n.isLastMessage,c=n.isStreamEnd,s=n.gapsSubmitted;return"rule-validation-card-trigger"===e.className?a(S,t({},e,{onViewComparison:W})):a(S,t({},e,{openCardIds:r,citations:i,handleToggleState:ke,isStreamEnd:c,isLastMessage:o,handleStream:T,onGapValidation:we,isGapsSubmitted:s,onViewComparison:W}))},span:function(e){var n;if(null===(n=e.className)||void 0===n?void 0:n.includes("cognitive-card-trigger")){var r=be.current,i=r.openCardIds,o=r.citations,c=r.isLastMessage,s=r.isStreamEnd;return a(b,t({},e,{openCardIds:i,citations:o,handleToggleState:ke,isStreamEnd:!c||s}))}return a("span",t({},e))},"variant-card":function(e){e.node;var r=n(e,["node"]),i=r.variantname,o=r.decisionstrength,c=r.id,s=be.current,l=s.isCommitted,d=s.isLastMessage,u=s.selectedVariant;if(!A)return null;var m=(null==u?void 0:u.id)===c,p=parseInt(o||"0");return a(y,t({variantName:i,decisionStrength:p,isEditable:!l&&d,isSelected:m,onToggle:function(e){return _e(c,e,i,p)},onEdit:function(){return Te()}},{children:r.children}))},br:function(e){return a("p",t({style:{marginBottom:"0.75rem"}},e))}}},[ye,Ee,Ce,ke,_,te,X,A,we,_e]);u(function(){K||(R(E),setTimeout(function(){null==I||I()},50))},[E,K,I]);var Be=d(0);u(function(){var e=ge.size+he.size;e>0&&0===Be.current?null==L||L(50):0===e&&Be.current>0&&(null==L||L(40)),Be.current=e},[ge,he,L]);var Me=p(function(){return[c]},[]),Le=p(function(){return[s]},[]),je=(null==te?void 0:te.variantName)||"Selected Behavior",ze=se&&A&&(N||ue);return r(i,{children:[r("div",t({style:{lineHeight:"1.625rem",fontSize:"1rem",marginTop:"0.5rem",marginBottom:"".concat("assistant"===_?"1rem":"0rem"),fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[a(o,t({components:Ne,rehypePlugins:Me,remarkPlugins:Le},{children:function(e){if(!e)return"";var n=e.replace(/\\"/g,'"').replace(/\\'/g,"'");n=(n=(n=n.replace(/```(?:\w+)?\n?([\s\S]*?)```/gi,"$1")).replace(/<br\s*\/?>/gi,"\n\n")).replace(/<critical_gaps\s+([\s\S]*?)>([\s\S]*?)<\/critical_gaps>/gi,function(e,n,t){try{for(var a={},r=/([a-z0-9_]+)\s*=\s*(["'])([\s\S]*?)\2/gi,i=void 0;null!==(i=r.exec(n));)a[i[1]]=i[3];for(var o=[],c=/<gap_card\s+([\s\S]*?)>([\s\S]*?)<\/gap_card>/gi,s=void 0,l=function(){for(var e=s[1],n=s[2],t={};null!==(i=r.exec(e));)t[i[1]]=i[3];var a=n.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),c=null;if(a){var l=a[1],d=function(e){var n;return(null===(n=l.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===n?void 0:n[1])||""};c={id:d("id"),reason:d("reason"),gap:d("gap"),score:d("relevance_score")}}var u=function(e){var n=e.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),t=null,a=e;if(n){var r=n[1],i=function(e){var n;return(null===(n=r.match(new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"i")))||void 0===n?void 0:n[1])||""};t={id:i("id"),reason:i("reason"),gap:i("gap"),score:i("relevance_score")},a=e.replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/i,"").trim()}else a=e.trim();return{text:a,aiReasoning:t}},m=[],p="text",g=/<(selectoption|radioselect)>/i.test(n),v=/<checkbox>/i.test(n),f=/<textfield>/i.test(n);if(g){p="radio";for(var h=void 0,S=/<selectoption[^>]*>\s*([\s\S]*?)\s*<\/selectoption>/gi;null!==(h=S.exec(n));)m.push(u(h[1]))}else if(v){p="checkbox";for(var b=void 0,k=/<checkbox>\s*([\s\S]*?)\s*<\/checkbox>/gi;null!==(b=k.exec(n));)m.push(u(b[1]))}else f&&(p="text");"radio"!==p||0!==m.length||f||(p="text"),o.push({id:"gap-".concat(o.length),name:t.gap_name||"Gap",decisionStrength:t.gap_decision_strength,impact:t.impact,value:t.gap_value,aiReasoning:c,inputType:p,options:m,userSelection:"checkbox"===p?[]:""})};null!==(s=c.exec(t));)l();var d={count:a.count,decisionStrength:a.critical_gaps_decision_strength,value:a.value,gaps:o},u=JSON.stringify(d).replace(/"/g,""");return'\n\n<div class="critical-gaps-trigger" data-payload="'.concat(u,'"></div>\n\n')}catch(n){return console.error("Error parsing critical gaps XML",n),e}}),n=(n=(n=(n=(n=n.replace(/<variant-card\s+([\s\S]*?)>([\s\S]*?)<\/variant-card>/gi,function(e,n,t){for(var a,r={},i=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|$)/gi;null!==(a=i.exec(n));)r[a[1]]=a[3];return'\n\n<variant-card id="'.concat(r.id||"",'" variantname="').concat(r.variantname||"",'" decisionstrength="').concat(r.decisionstrength||"0",'" iseditable="').concat(r.iseditable||"false",'" isselected="').concat(r.isselected||"false",'">').concat(t,"</variant-card>\n\n")})).replace(/<rule-validation-card\s+([\s\S]*?)>([\s\S]*?)<\/rule-validation-card>/gi,function(e,n,t){for(var a,r={},i=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2(?=\s|>|$)/gi;null!==(a=i.exec(n));)r[a[1]]=a[3];var o=function(e){return(r[e]||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};return'\n\n<div class="rule-validation-card-trigger" \n data-type="'.concat(o("validationType"),'"\n data-decision-strength="').concat(o("decisionStrength"),'"\n data-title="').concat(o("ruleTitle"),'"\n data-tier="').concat(o("tier"),'"\n data-description="').concat(o("ruleDescription"),'">').concat(t,"</div>\n\n")})).replace(/<(singleselect|multiselect|instantselect)>([\s\S]*?)<\/\1>/gi,function(e,n,t){var a="multi";return"singleselect"===n?a="single":"instantselect"===n&&(a="instant"),'\n\n<div class="markdown-select-trigger" data-type="'.concat(a,'">').concat(t,"</div>\n\n")})).replace(/<selectoption\s+([\s\S]*?)>([\s\S]*?)<\/selectoption>/gi,function(e,n,t){for(var a,r={},i=/([a-z0-9-]+)\s*=\s*(["'])([\s\S]*?)\2/gi;null!==(a=i.exec(n));)r[a[1]]=a[3];return'<div class="select-option-item" data-id="'.concat(r.id||"",'" data-cd="').concat(r.cd||"false",'">').concat(t,"</div>")})).replace(/<!--<ai_reasoning>(?![\s\S]*?<\/ai_reasoning>-->)[\s\S]*$/gi,"");["ai_reasoning"].forEach(function(e){var t=new RegExp("\x3c!--\\s*(<".concat(e,">[\\s\\S]*?<\\/").concat(e,">)\\s*--\x3e"),"gi");n=n.replace(t,"$1")});var t=0;n=n.replace(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/gi,function(e,n){var a=n.replace(/\[([^\]]+)\]\(([^)]+)\)/g,function(e,n,t){return'<a href="'.concat(t,'" data-shielded="true">').concat(n,"</a>")});return a=a.replace(/</g,"<").replace(/>/g,">"),t++,'<span class="cognitive-card-trigger" data-card-id="card-'.concat(t,'">').concat(a,"</span>")});var a=0;return n.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,n,t,r){var i=t.replace(/\s/g,"%20");if(i.includes("citationNumber=")){a++;var o=i.includes("?")?"&":"?";return"".concat(n).concat(i).concat(o,"uiUniqueId=").concat(a).concat(r)}return"".concat(n).concat(i).concat(r)})}(V)}),C),A&&V.includes("<variant-card")&&r("div",t({style:{gap:"8px"}},{children:[r(v,t({className:"clickable-button",handleStream:T,disabled:!N||!te&&!X||X&&"add"!==Z,isStreamEnd:z,onAction:function(){return ye("Add ".concat(je),!0,"add")},"data-selected":"add"===Z?"true":X?"false":void 0},{children:["Add ",je]})),r(v,t({className:"clickable-button",handleStream:T,disabled:!N||!te&&!X||X&&"edit"!==Z,isStreamEnd:z,onAction:function(){return ye("Edit ".concat(je),!0,"edit")},"data-selected":"edit"===Z?"true":X?"false":void 0},{children:["Edit ",je]})),a(v,t({className:"clickable-button",handleStream:T,disabled:!N||X&&"skip"!==Z,isStreamEnd:z,onAction:function(){return ye("Skip for now",!0,"skip")},"data-selected":"skip"===Z?"true":X?"false":void 0},{children:"Skip for now"}))]})),ze&&a("div",t({style:{marginTop:"12px",display:"flex",justifyContent:"flex-start"}},{children:a(w,{type:"instant",options:[{id:"proceed-gaps",label:"Proceed to Fix Gaps"}],selectedIds:ue?["proceed-gaps"]:[],disabled:ue,citations:[],onProceed:xe})}))]})),a("div",t({style:{display:"flex",maxWidth:"100%"}},{children:a("div",t({style:{width:"100%"}},{children:(null==$?void 0:$.length)>0&&q&&!K?r("div",t({style:{marginTop:"10px"}},{children:[r("span",{children:["It looks like you've chosen ",$&&0!==$.length?$.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})?"Both Tiers":$.join(", "):"",". Would you like me to proceed?"]}),a("p",{children:a("button",t({style:{padding:"0.5rem 1rem",margin:"0.5rem 0",backgroundColor:"#2661eb",color:"white",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"0.75rem",fontWeight:"500",fontFamily:"Plus Jakarta Sans, sans-serif"},onClick:Ie},{children:"Yes"}))})]})):null}))}))]})};export{x as default};
|
|
2
2
|
//# sourceMappingURL=MessageRendering.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as C}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as i,jsx as l}from"react/jsx-runtime";var e=function(){return i("svg",C({width:"13",height:"20",viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[i("g",C({"clip-path":"url(#clip0_7146_59770)"},{children:[l("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.870143 7.4728C1.05898 7.12852 1.27464 6.8046 1.51383 6.50373L1.18293 7.96614C0.979942 8.80183 0.898342 9.61402 1.17775 10.2711C1.21942 10.3691 1.26815 10.4612 1.32333 10.5469C1.31329 10.7241 1.31151 10.9023 1.31813 11.0806C1.35384 12.0427 1.63248 12.9774 2.12537 13.7883C2.61826 14.5994 3.30759 15.2574 4.12238 15.6948C4.23255 15.7549 4.32499 15.8457 4.38965 15.9572C4.45431 16.0686 4.48873 16.1966 4.48918 16.3274V19.2231C4.48918 19.3163 4.47174 19.4086 4.43785 19.4947C4.40397 19.5808 4.3543 19.6591 4.29169 19.7249C4.22908 19.7908 4.15475 19.8432 4.07294 19.8788C3.99114 19.9145 3.90346 19.9328 3.81492 19.9328C3.72637 19.9328 3.63869 19.9145 3.55689 19.8788C3.47508 19.8432 3.40075 19.7908 3.33814 19.7249C3.27553 19.6591 3.22587 19.5808 3.19198 19.4947C3.1581 19.4086 3.14066 19.3163 3.14066 19.2231V16.7453C1.68401 15.8205 0.630139 14.3313 0.205569 12.5974C-0.219001 10.8635 0.0196202 9.02345 0.870143 7.4728ZM2.90096 5.19659C2.88899 5.25028 2.87501 5.30914 2.85914 5.37342L2.35372 7.6047C2.74036 7.06579 3.22081 6.60571 3.77188 6.25032C3.86004 6.19348 3.94964 6.13953 4.04056 6.08854L4.37488 4.7326C4.4043 4.6181 4.42962 4.50778 4.45073 4.40202C3.89913 4.59451 3.3785 4.86265 2.90096 5.19659ZM5.56585 4.12493C5.53444 4.42314 5.47335 4.72393 5.39987 5.0116L5.25401 5.6033C5.6147 5.51175 5.98526 5.46115 6.35938 5.45343C7.27383 5.43458 8.17653 5.67261 8.97455 6.14302C9.77256 6.61343 10.437 7.29923 10.8996 8.1298C11.3621 8.96038 11.606 9.90572 11.6062 10.8685V15.3246C11.6062 15.4318 11.5657 15.5346 11.4937 15.6104C11.4216 15.6863 11.324 15.7288 11.2221 15.7288H9.10545C8.92662 15.7288 8.75512 15.8037 8.62867 15.9367C8.50223 16.0699 8.43119 16.2504 8.43119 16.4386V19.2231C8.43119 19.4114 8.50223 19.5919 8.62867 19.7249C8.75512 19.8581 8.92662 19.9328 9.10545 19.9328C9.28428 19.9328 9.45578 19.8581 9.58223 19.7249C9.70867 19.5919 9.77971 19.4114 9.77971 19.2231V17.1483H11.2221C11.4496 17.1483 11.6749 17.1012 11.8851 17.0096C12.0953 16.9179 12.2863 16.7836 12.4472 16.6142C12.6081 16.4448 12.7357 16.2438 12.8228 16.0225C12.9099 15.8013 12.9547 15.5641 12.9547 15.3246V10.8696C12.9545 9.65475 12.6467 8.46189 12.0631 7.4138C11.4794 6.36573 10.641 5.50029 9.63407 4.90657C8.38865 4.18261 6.95913 3.91301 5.56585 4.12493ZM3.70049 8.44134C3.42465 8.78904 3.20515 9.1864 3.05432 9.61774C2.98799 9.80743 2.93585 10.0011 2.89791 10.1971C3.31428 10.1882 3.71718 10.1018 4.57574 9.3851L5.00851 9.00583C5.17133 8.85685 5.2371 8.62777 5.20005 8.40752L5.17831 8.31379C5.07205 8.04339 4.74203 7.96266 4.50119 8.1089C4.25222 8.26007 3.98261 8.37306 3.70049 8.44134ZM6.15774 7.88766C6.02755 7.55613 5.82305 7.3186 5.58321 7.1627C6.10638 7.00991 6.65842 6.97659 7.20161 7.07001C8.06073 7.21777 8.84495 7.67345 9.42154 8.35994C9.80992 8.82213 9.70204 9.48646 9.30287 9.86461C8.12912 10.9809 6.18401 12.4277 4.25076 12.9671C3.75882 13.1034 3.21941 12.8535 3.03925 12.3198C2.92908 11.9929 2.86081 11.6548 2.8344 11.314C3.15405 11.3123 3.55309 11.2871 4.0591 11.0503C4.53459 10.8279 5.0516 10.4444 5.70426 9.84718C6.24535 9.35195 6.37813 8.59572 6.18673 7.97158L6.1743 7.92908L6.15774 7.88766Z",fill:"#344054"}),l("path",{d:"M2.78566 10.2017C2.21589 10.2017 1.79754 9.83133 2.19656 8.2028L2.85082 5.3137C2.96495 4.85111 2.98338 4.66616 2.85082 4.66616C2.36416 4.7953 2.60848 4.71503 2.19651 4.89983L1.91211 4.39986C3.29881 3.15966 3.32335 2.83187 4.00636 2.83187C4.57614 2.83187 4.6714 3.55367 4.38607 4.66428L3.63745 7.70142C3.50444 8.23827 3.56196 8.42321 3.69406 8.42321C3.98316 8.35428 4.2596 8.24005 4.5145 8.08528C4.75852 7.93711 5.09207 8.01872 5.19962 8.29281C5.27637 8.54288 5.21676 8.82053 5.02834 8.99293C3.76206 10.1516 3.31404 10.2017 2.78566 10.2017ZM4.0972 0.00281947C4.22705 -0.00766091 4.35753 0.0111517 4.47993 0.0580007C4.60232 0.10485 4.71381 0.178656 4.80694 0.274487C4.90007 0.370319 4.97269 0.485969 5.01996 0.61371C5.06723 0.74145 5.08806 0.878339 5.08105 1.01523V1.01265C5.06571 1.36127 4.9234 1.69028 4.68365 1.93134C4.44391 2.17242 4.12517 2.30702 3.79362 2.3072L3.76707 2.30677C3.63546 2.32186 3.50354 2.30544 3.3788 2.25874C3.25407 2.21205 3.14097 2.13628 3.04797 2.0371C2.95497 1.93792 2.88447 1.8179 2.84174 1.68601C2.79934 1.55514 2.78536 1.41595 2.80082 1.27867C2.81343 0.928866 2.95678 0.598439 3.1997 0.359319C3.44286 0.119957 3.76606 -0.00849914 4.09883 0.00195941L4.0972 0.00281947Z",fill:"#344054"})]})),l("defs",{children:l("clipPath",C({id:"clip0_7146_59770"},{children:l("rect",{width:"13",height:"20",fill:"white"})}))})]}))};export{e as ButtonCognitiveIcon};
|
|
2
|
+
//# sourceMappingURL=ButtonCognitiveIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonCognitiveIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"../../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as e,jsx as t}from"react/jsx-runtime";import o,{useState as n}from"react";import{InputDataReasoningCard as r}from"../../InputDataReasoningCard.js";import{ConditionSection as l}from"../../organisms/ConditionSection/ConditionSection.js";import{ConfigSection as a}from"../../organisms/ConfigSection/ConfigSection.js";import{ScopeSection as d}from"../../organisms/ScopeSection/ScopeSection.js";import{TextSection as c}from"../../organisms/TextSection/TextSection.js";import s from"../../AccordianSection.js";var u=function(n){var r=n.children,l=n.onAddVariant,a=o.Children.toArray(r);return e("div",i({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[a.map(function(i,n){return e(o.Fragment,{children:[i,t("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},n)}),t("div",i({onClick:l,style:{padding:"8px 16px",border:"1px solid #E2E8F0",borderRadius:"8px",color:"#475569",fontSize:"14px",fontWeight:"500",cursor:"pointer",backgroundColor:"#FFFFFF",userSelect:"none"}},{children:"Add Variant"}))]}))},p=function(o){var p,h,v,g,f,y,m,D,T,C,x=o.state,b=o.handlers,A=o.uiState,O=(null==A?void 0:A.highlights)||new Map,R=O.get("global_0")||{},S=n({}),w=S[0],V=S[1],W=function(e){V(function(t){var o;return i(i({},t),((o={})[e]=!t[e],o))})},E=function(i){var e,t=null===(e=x.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(t)&&t.length>0?t:x.citations},N={marginTop:"-17px",position:"relative",zIndex:1},F=function(i){i&&i.scrollIntoView({behavior:"smooth",block:"center"})};return console.log("CreateRule state:",x),console.log("CreateRule uiState:",A),e("div",i({className:"traffic-manager-template"},{children:[t(s,i({title:{type:"other",label:"Rule Setup"},footerData:{ruleTitle:x.ruleTitle,stations:[x.scopeData.station],tiers:null===(p=x.scopeData)||void 0===p?void 0:p.tiers},defaultOpen:"Create"===(null==A?void 0:A.usedFor),readOnly:"Create"!==(null==A?void 0:A.usedFor)},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[t(c,i({id:"rule-title",title:"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:x.ruleTitle,onChange:b.setRuleTitle,readOnly:"Create"!==(null==A?void 0:A.usedFor),isOpen:w.ruleTitle,onToggle:function(){return W("ruleTitle")},isHighlighted:R.ruleTitle||!1,showCognitiveIcon:x.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(h=A.validationErrors)||void 0===h?void 0:h.ruleTitle},A)),x.citation.ruleTitle&&t("div",i({style:N},{children:t(r,{isVisible:w.ruleTitle,citation:x.citation.ruleTitle,citations:E("ruleTitle"),fieldName:"Rule Title",fieldValue:x.ruleTitle})})),t(d,i({id:"scope",required:!0,scopeData:x.scopeData,onScopeChange:b.onScopeChange,tierLabel:"Which tiers should this rule apply to?",stationLabel:"Which rule set should this rule belong to?",highlights:R,isOpen:w.scopeData,onToggle:function(){return W("scopeData")},showCognitiveIcon:x.citation.scopeData,tooltipDescription:"Why this Scope?",errorMessage:(null===(v=A.validationErrors)||void 0===v?void 0:v.station)||(null===(g=A.validationErrors)||void 0===g?void 0:g.tiers),stationErrorMessage:null===(f=A.validationErrors)||void 0===f?void 0:f.station,tierErrorMessage:null===(y=A.validationErrors)||void 0===y?void 0:y.tiers,readOnly:"Create"!==(null==A?void 0:A.usedFor)},A)),x.citation.scopeData&&t("div",i({style:N},{children:t(r,{isVisible:w.scopeData,citation:x.citation.scopeData,citations:E("scopeData"),fieldName:"Scope",fieldValue:null===(D=null===(m=x.scopeData)||void 0===m?void 0:m.tiers)||void 0===D?void 0:D.join(", ")})}))]}))})),null===(C=null===(T=null==A?void 0:A.tierOptions)||void 0===T?void 0:T.filter(function(i){var e,t;return null===(t=null===(e=x.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===C?void 0:C.map(function(o,n,d){var p,h=o.toLowerCase().replace(/ /g,"_"),v=(null===(p=x.variantsByTier)||void 0===p?void 0:p[h])||[],g=v.length,f="".concat(g," ").concat(1===g?"variant":"variants"," configured for this tier"),y=!((null==A?void 0:A.defaultTierOpen)>=0)||n===A.defaultTierOpen;return console.log("Rendering tier : ",o),t(s,i({variant:"tier-header",title:{type:"other",label:o},subtitle:f,defaultOpen:y,footerData:{description:"Variants for ".concat(o)}},{children:t(u,i({onAddVariant:function(){var i;return null===(i=b.addNewVariant)||void 0===i?void 0:i.call(b,h)}},{children:v.map(function(o,n){var d,u,p,g,f,y,m,D,T,C=o.variantType||"default",x="".concat(h,"-variant-").concat(n),R=!0===o.is_variant
|
|
1
|
+
import{__assign as i}from"../../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as e,jsx as t}from"react/jsx-runtime";import o,{useState as n}from"react";import{InputDataReasoningCard as r}from"../../InputDataReasoningCard.js";import{ConditionSection as l}from"../../organisms/ConditionSection/ConditionSection.js";import{ConfigSection as a}from"../../organisms/ConfigSection/ConfigSection.js";import{ScopeSection as d}from"../../organisms/ScopeSection/ScopeSection.js";import{TextSection as c}from"../../organisms/TextSection/TextSection.js";import s from"../../AccordianSection.js";var u=function(n){var r=n.children,l=n.onAddVariant,a=o.Children.toArray(r);return e("div",i({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[a.map(function(i,n){return e(o.Fragment,{children:[i,t("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},n)}),t("div",i({onClick:l,style:{padding:"8px 16px",border:"1px solid #E2E8F0",borderRadius:"8px",color:"#475569",fontSize:"14px",fontWeight:"500",cursor:"pointer",backgroundColor:"#FFFFFF",userSelect:"none"}},{children:"Add Variant"}))]}))},p=function(o){var p,h,v,g,f,y,m,D,T,C,x=o.state,b=o.handlers,A=o.uiState,O=(null==A?void 0:A.highlights)||new Map,R=O.get("global_0")||{},S=n({}),w=S[0],V=S[1],W=function(e){V(function(t){var o;return i(i({},t),((o={})[e]=!t[e],o))})},E=function(i){var e,t=null===(e=x.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(t)&&t.length>0?t:x.citations},N={marginTop:"-17px",position:"relative",zIndex:1},F=function(i){i&&i.scrollIntoView({behavior:"smooth",block:"center"})};return console.log("CreateRule state:",x),console.log("CreateRule uiState:",A),e("div",i({className:"traffic-manager-template"},{children:[t(s,i({title:{type:"other",label:"Rule Setup"},footerData:{ruleTitle:x.ruleTitle,stations:[x.scopeData.station],tiers:null===(p=x.scopeData)||void 0===p?void 0:p.tiers},defaultOpen:"Create"===(null==A?void 0:A.usedFor),readOnly:"Create"!==(null==A?void 0:A.usedFor)},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[t(c,i({id:"rule-title",title:"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:x.ruleTitle,onChange:b.setRuleTitle,readOnly:"Create"!==(null==A?void 0:A.usedFor),isOpen:w.ruleTitle,onToggle:function(){return W("ruleTitle")},isHighlighted:R.ruleTitle||!1,showCognitiveIcon:x.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(h=A.validationErrors)||void 0===h?void 0:h.ruleTitle},A)),x.citation.ruleTitle&&t("div",i({style:N},{children:t(r,{isVisible:w.ruleTitle,citation:x.citation.ruleTitle,citations:E("ruleTitle"),fieldName:"Rule Title",fieldValue:x.ruleTitle})})),t(d,i({id:"scope",required:!0,scopeData:x.scopeData,onScopeChange:b.onScopeChange,tierLabel:"Which tiers should this rule apply to?",stationLabel:"Which rule set should this rule belong to?",highlights:R,isOpen:w.scopeData,onToggle:function(){return W("scopeData")},showCognitiveIcon:x.citation.scopeData,tooltipDescription:"Why this Scope?",errorMessage:(null===(v=A.validationErrors)||void 0===v?void 0:v.station)||(null===(g=A.validationErrors)||void 0===g?void 0:g.tiers),stationErrorMessage:null===(f=A.validationErrors)||void 0===f?void 0:f.station,tierErrorMessage:null===(y=A.validationErrors)||void 0===y?void 0:y.tiers,readOnly:"Create"!==(null==A?void 0:A.usedFor)},A)),x.citation.scopeData&&t("div",i({style:N},{children:t(r,{isVisible:w.scopeData,citation:x.citation.scopeData,citations:E("scopeData"),fieldName:"Scope",fieldValue:null===(D=null===(m=x.scopeData)||void 0===m?void 0:m.tiers)||void 0===D?void 0:D.join(", ")})}))]}))})),null===(C=null===(T=null==A?void 0:A.tierOptions)||void 0===T?void 0:T.filter(function(i){var e,t;return null===(t=null===(e=x.scopeData)||void 0===e?void 0:e.tiers)||void 0===t?void 0:t.includes(i)}))||void 0===C?void 0:C.map(function(o,n,d){var p,h=o.toLowerCase().replace(/ /g,"_"),v=(null===(p=x.variantsByTier)||void 0===p?void 0:p[h])||[],g=v.length,f="".concat(g," ").concat(1===g?"variant":"variants"," configured for this tier"),y=!((null==A?void 0:A.defaultTierOpen)>=0)||n===A.defaultTierOpen;return console.log("Rendering tier : ",o),t(s,i({variant:"tier-header",title:{type:"other",label:o},subtitle:f,defaultOpen:y,footerData:{description:"Variants for ".concat(o)}},{children:t(u,i({onAddVariant:function(){var i;return null===(i=b.addNewVariant)||void 0===i?void 0:i.call(b,h)}},{children:v.map(function(o,n){var d,u,p,g,f,y,m,D,T,C=o.variantType||"default",x="".concat(h,"-variant-").concat(n),R=!0===o.is_variant;(null==A?void 0:A.defaultVariantOpen)>=0&&A.defaultVariantOpen;var S="".concat(h,"_").concat(n),V=O.get(S)||{},I=(null===(u=null===(d=A.separationItemsByTier)||void 0===d?void 0:d[h])||void 0===u?void 0:u.get(n))||[],_=(null===(g=null===(p=A.togglesByTier)||void 0===p?void 0:p[h])||void 0===g?void 0:g.get(n))||[];return console.log("Rendering ".concat(h," variant ").concat(n,":"),o),console.log("Rendering Variant : ",o),t("div",i({ref:R?F:null,style:{width:"100%"}},{children:t(s,i({title:{type:C,label:o.isReadOnly&&v.length>1?"Variant ".concat(n+1):"Rule Behavior",isNewVariant:R},defaultOpen:!0,variant:"rule-behavior",footerData:{ruleTitle:C,description:o.ruleDescription||""}},{children:e("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[t(c,i({id:"rule-description-".concat(h,"-").concat(n),title:"Rule Description",rows:2,placeholder:"Explain the rule behaviour",required:!0,readOnly:o.isReadOnly,value:o.ruleDescription||"",onChange:function(i){return b.setRuleDescription(h,n,i)},isOpen:w["ruleDescription-".concat(h,"-").concat(n)],onToggle:function(){return W("ruleDescription-".concat(h,"-").concat(n))},isHighlighted:V.ruleDescription||!1,showCognitiveIcon:null===(f=o.reasoning)||void 0===f?void 0:f.ruleDescription,tooltipDescription:"Why this Description?",errorMessage:null===(y=A.validationErrors)||void 0===y?void 0:y["ruleDescription-".concat(h,"-").concat(n)]},A)),(null===(m=o.reasoning)||void 0===m?void 0:m.ruleDescription)&&t("div",i({style:N},{children:t(r,{isVisible:w["ruleDescription-".concat(h,"-").concat(n)],citation:o.reasoning.ruleDescription,citations:E("ruleDescription_".concat(h,"_").concat(n)),fieldName:"Rule Description",fieldValue:o.ruleDescription})})),t(l,i({id:"when-to-apply-".concat(h,"-").concat(n),title:"When to apply",required:!0,dividerRequired:!0,readOnly:o.isReadOnly,conditions:o.whenToApplyConditions||[],onAdd:function(){return b.addWhenToApply(h,n)},onRemove:function(i,e,t){return b.removeWhenToApply(i,e,t)},onEdit:function(i,e,t,o){return b.editWhenToApply(i,e,t,o)},index:n,tierKey:h,isHighlighted:V.wta||!1,highlightedIds:null==A?void 0:A.highlightedIds,tooltipDescription:"Why this Condition?",citations:E("whenToApply_".concat(h,"_").concat(n)),bordered:!0,addLabel:"Add When to apply",isAiStreaming:A.isAiStreaming,errorMessage:null===(D=A.validationErrors)||void 0===D?void 0:D["whenToApply-".concat(h,"-").concat(n)]},A)),t(l,i({id:"when-not-to-apply-".concat(h,"-").concat(n),title:"When NOT to apply",required:!1,dividerRequired:!0,readOnly:o.isReadOnly,conditions:o.whenNotToApplyConditions||[],onAdd:function(){return b.addWhenNotToApply(h,n)},onRemove:function(i,e,t){return b.removeWhenNotToApply(i,e,t)},onEdit:function(i,e,t,o){return b.editWhenNotToApply(i,e,t,o)},index:n,tierKey:h,isHighlighted:V.wnta||!1,highlightedIds:null==A?void 0:A.highlightedIds,tooltipDescription:"Why this Condition?",citations:E("whenNotToApply_".concat(h,"_").concat(n)),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:A.isAiStreaming},A)),t(a,i({id:"config-".concat(h,"-").concat(n),title:"Configuration",required:!1,highlights:V,bordered:!0,readOnly:o.isReadOnly,onConfigChange:function(i,e){return b.onConfigChange(h,n,i,e)},separationItems:I,toggles:_,index:n},A)),(null===(T=o.reasoning)||void 0===T?void 0:T.configData)&&t("div",i({style:N},{children:t(r,{citation:o.reasoning.configData,citations:E("configData_".concat(h,"_").concat(n)),fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))}),x)}),"".concat(h,"-variant-").concat(n))})}))}),"tier-".concat(n))})]}))};export{p as CreateRule};
|
|
2
2
|
//# sourceMappingURL=CreateRule.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"../createLucideIcon.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.525.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const
|
|
7
|
+
*/const a=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],e=t("arrow-right",a);export{a as __iconNode,e as default};
|
|
8
8
|
//# sourceMappingURL=arrow-right.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-right.js","sources":["../../../../../../node_modules/lucide-react/dist/esm/icons/arrow-right.js"],"sourcesContent":["/**\n * @license lucide-react v0.525.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"m12 5 7 7-7 7\", key: \"xquz4c\" }]\n];\nconst ArrowRight = createLucideIcon(\"arrow-right\", __iconNode);\n\nexport { __iconNode, ArrowRight as default };\n//# sourceMappingURL=arrow-right.js.map\n"],"names":["__iconNode","d","key","createLucideIcon"],"mappings":";;;;;;GASK,MAACA,EAAa,CACjB,CAAC,OAAQ,CAAEC,EAAG,WAAYC,IAAK,WAC/B,CAAC,OAAQ,CAAED,EAAG,gBAAiBC,IAAK,
|
|
1
|
+
{"version":3,"file":"arrow-right.js","sources":["../../../../../../node_modules/lucide-react/dist/esm/icons/arrow-right.js"],"sourcesContent":["/**\n * @license lucide-react v0.525.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"m12 5 7 7-7 7\", key: \"xquz4c\" }]\n];\nconst ArrowRight = createLucideIcon(\"arrow-right\", __iconNode);\n\nexport { __iconNode, ArrowRight as default };\n//# sourceMappingURL=arrow-right.js.map\n"],"names":["__iconNode","d","key","ArrowRight","createLucideIcon"],"mappings":";;;;;;GASK,MAACA,EAAa,CACjB,CAAC,OAAQ,CAAEC,EAAG,WAAYC,IAAK,WAC/B,CAAC,OAAQ,CAAED,EAAG,gBAAiBC,IAAK,YAEhCC,EAAaC,EAAiB,cAAeJ"}
|
|
@@ -4,5 +4,5 @@ import a from"../createLucideIcon.js";
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const t=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]
|
|
7
|
+
*/const t=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]];a("send-horizontal",t);export{t as __iconNode};
|
|
8
8
|
//# sourceMappingURL=send-horizontal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-horizontal.js","sources":["../../../../../../node_modules/lucide-react/dist/esm/icons/send-horizontal.js"],"sourcesContent":["/**\n * @license lucide-react v0.525.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z\",\n key: \"117uat\"\n }\n ],\n [\"path\", { d: \"M6 12h16\", key: \"s4cdu5\" }]\n];\nconst SendHorizontal = createLucideIcon(\"send-horizontal\", __iconNode);\n\nexport { __iconNode, SendHorizontal as default };\n//# sourceMappingURL=send-horizontal.js.map\n"],"names":["__iconNode","d","key","
|
|
1
|
+
{"version":3,"file":"send-horizontal.js","sources":["../../../../../../node_modules/lucide-react/dist/esm/icons/send-horizontal.js"],"sourcesContent":["/**\n * @license lucide-react v0.525.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z\",\n key: \"117uat\"\n }\n ],\n [\"path\", { d: \"M6 12h16\", key: \"s4cdu5\" }]\n];\nconst SendHorizontal = createLucideIcon(\"send-horizontal\", __iconNode);\n\nexport { __iconNode, SendHorizontal as default };\n//# sourceMappingURL=send-horizontal.js.map\n"],"names":["__iconNode","d","key","createLucideIcon"],"mappings":";;;;;;GASK,MAACA,EAAa,CACjB,CACE,OACA,CACEC,EAAG,oIACHC,IAAK,WAGT,CAAC,OAAQ,CAAED,EAAG,WAAYC,IAAK,YAEVC,EAAiB,kBAAmBH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAKhE,OAAO,EAA8C,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAOxH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AACD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAKhE,OAAO,EAA8C,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAOxH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AACD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAq3DnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatComponent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/ChatComponents/ChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAiClG,UAAU,kBAAkB;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnE,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACpE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,EAAE,GAAG,CAAC;IAC3B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC9D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AACD,eAAO,MAAM,kBAAkB,eAAgB,MAAM,iBAsBpD,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ChatComponent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/ChatComponents/ChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAiClG,UAAU,kBAAkB;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnE,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACpE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,EAAE,GAAG,CAAC;IAC3B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC9D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AACD,eAAO,MAAM,kBAAkB,eAAgB,MAAM,iBAsBpD,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuyC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CitationLink.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/CitationLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAM9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"CitationLink.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/CitationLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAM9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAyOF,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwG7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CriticalGaps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/CriticalGaps.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CriticalGaps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/_components/CriticalGaps.tsx"],"names":[],"mappings":"AAwXA,eAAO,MAAM,YAAY;UAOjB,GAAG;mBACM,OAAO;oCACS,OAAO,cAAc,GAAG,EAAE,KAAK,IAAI;;;6CAsLnE,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export declare const DynamicArrow: ({ isSelected, width, height }: {
|
|
3
|
+
isSelected: boolean;
|
|
4
|
+
width?: number | undefined;
|
|
5
|
+
height?: number | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
2
7
|
type Option = {
|
|
3
8
|
id: string;
|
|
4
9
|
label: string;
|
package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownSelect.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MarkdownSelect.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAQ9D,eAAO,MAAM,YAAY;gBAKT,OAAO;;;6CAwBtB,CAAC;AAEF,KAAK,MAAM,GAAG;IACV,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,KAAK,KAAK,GAAG;IACT,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,SAAS,EAAE,GAAG,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4O1C,CAAC"}
|
package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClickableChatComponents.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClickableChatComponents.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.tsx"],"names":[],"mappings":";AAOA,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAkCrD,CAAC;AAEF,eAAO,MAAM,gBAAgB,8CAA+C,GAAG,4CAwC9E,CAAC;AAEF,eAAO,MAAM,gBAAgB,iHAAyH,GAAG,mDA8fxJ,CAAC;AACF,eAAO,MAAM,kBAAkB,4FAA6F,GAAG,mDAuC9H,CAAC"}
|
package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/MessageRendering.tsx"],"names":[],"mappings":"AAWA,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,GAAG,CAAC;IAClB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,QAAA,MAAM,gBAAgB,4KAenB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/MessageRendering/MessageRendering.tsx"],"names":[],"mappings":"AAWA,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,GAAG,CAAC;IAClB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,QAAA,MAAM,gBAAgB,4KAenB,qBAAqB,4CAw0BvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonCognitiveIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,+CAe/B,CAAC"}
|