@e-llm-studio/citation 0.0.226 → 0.0.227
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/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
- package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js +2 -0
- package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -0
- package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js +2 -0
- package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js.map +1 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js +2 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js.map +1 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.js +2 -0
- package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +1 -1
- package/dist/cjs/features/ParentCitationComponent/citationTypes.js +2 -0
- package/dist/cjs/features/ParentCitationComponent/citationTypes.js.map +1 -0
- package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
- package/dist/cjs/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
- package/dist/features/DualCitation/RuleBookCitationApiComponent.js +2 -0
- package/dist/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -0
- package/dist/features/DualCitation/RuleBookCitationComponent.js +2 -0
- package/dist/features/DualCitation/RuleBookCitationComponent.js.map +1 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.js +2 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.js.map +1 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js +2 -0
- package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js +1 -1
- package/dist/features/ParentCitationComponent/citationTypes.js +2 -0
- package/dist/features/ParentCitationComponent/citationTypes.js.map +1 -0
- package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
- package/dist/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +2 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +1 -1
- package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts +20 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts.map +1 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts +31 -0
- package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts.map +1 -0
- package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts +36 -0
- package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +15 -2
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +5 -1
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -1
- package/dist/types/src/features/ParentCitationComponent/DualRuleBookBqCitationTest.d.ts +4 -0
- package/dist/types/src/features/ParentCitationComponent/DualRuleBookBqCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/ParentCitationComponent/DualRuleBookGptCitationTest.d.ts +4 -0
- package/dist/types/src/features/ParentCitationComponent/DualRuleBookGptCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +3 -126
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +1 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.types.d.ts +229 -0
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.types.d.ts.map +1 -0
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -7
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +1 -1
- package/dist/types/src/features/ParentCitationComponent/citationTypes.d.ts +14 -0
- package/dist/types/src/features/ParentCitationComponent/citationTypes.d.ts.map +1 -0
- package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts +1 -0
- package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -1
- package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts +9 -1
- package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"CognitiveNonWebSearchReasoning-module_container__koQEN",itemRow:"CognitiveNonWebSearchReasoning-module_itemRow__lRmgs",indexNumber:"CognitiveNonWebSearchReasoning-module_indexNumber__wP5hg",textContent:"CognitiveNonWebSearchReasoning-module_textContent__327fx",paraphraseButton:"CognitiveNonWebSearchReasoning-module_paraphraseButton__VS6Qe",paraphraseText:"CognitiveNonWebSearchReasoning-module_paraphraseText__n5dty",paraphraseStar:"CognitiveNonWebSearchReasoning-module_paraphraseStar__YUnqR",chevronIcon:"CognitiveNonWebSearchReasoning-module_chevronIcon__ZeXjw",chevronIconRotated:"CognitiveNonWebSearchReasoning-module_chevronIconRotated__WkRiP",expandedContainer:"CognitiveNonWebSearchReasoning-module_expandedContainer__2UPr9",expandedHeader:"CognitiveNonWebSearchReasoning-module_expandedHeader__QjKjb",headerTitle:"CognitiveNonWebSearchReasoning-module_headerTitle__VvMwI",headerActions:"CognitiveNonWebSearchReasoning-module_headerActions__j1P4u",navigationContainer:"CognitiveNonWebSearchReasoning-module_navigationContainer__G0VtG",navButton:"CognitiveNonWebSearchReasoning-module_navButton__aOaMv",navIcon:"CognitiveNonWebSearchReasoning-module_navIcon__uLme4",navCounter:"CognitiveNonWebSearchReasoning-module_navCounter__nj1Xc",confidenceBadge:"CognitiveNonWebSearchReasoning-module_confidenceBadge__-ElB3",confidenceStar:"CognitiveNonWebSearchReasoning-module_confidenceStar__4Rq0S",confidenceScore:"CognitiveNonWebSearchReasoning-module_confidenceScore__uLcnK",maximizeButton:"CognitiveNonWebSearchReasoning-module_maximizeButton__Xwwu-",maximizeIcon:"CognitiveNonWebSearchReasoning-module_maximizeIcon__eFZez",contentArea:"CognitiveNonWebSearchReasoning-module_contentArea__hVoLL",contentInner:"CognitiveNonWebSearchReasoning-module_contentInner__df-34",footer:"CognitiveNonWebSearchReasoning-module_footer__CNE8q",trainingTitle:"CognitiveNonWebSearchReasoning-module_trainingTitle__CHFlh",trainingTitleLink:"CognitiveNonWebSearchReasoning-module_trainingTitleLink__0lu-U",modalDialog:"CognitiveNonWebSearchReasoning-module_modalDialog__eGApe",modalContainer:"CognitiveNonWebSearchReasoning-module_modalContainer__-dZ01",modalHeader:"CognitiveNonWebSearchReasoning-module_modalHeader__qglof",modalHeaderTitle:"CognitiveNonWebSearchReasoning-module_modalHeaderTitle__hDo1X",modalHeaderActions:"CognitiveNonWebSearchReasoning-module_modalHeaderActions__NGmip",modalNavContainer:"CognitiveNonWebSearchReasoning-module_modalNavContainer__Q-OrP",modalNavButton:"CognitiveNonWebSearchReasoning-module_modalNavButton__6cQ24",closeButton:"CognitiveNonWebSearchReasoning-module_closeButton__S23zi",closeIcon:"CognitiveNonWebSearchReasoning-module_closeIcon__f7kaG",modalContent:"CognitiveNonWebSearchReasoning-module_modalContent__4U2Jv",modalContentInner:"CognitiveNonWebSearchReasoning-module_modalContentInner__63tzo",modalFooter:"CognitiveNonWebSearchReasoning-module_modalFooter__hXBqn",modalFooterSource:"CognitiveNonWebSearchReasoning-module_modalFooterSource__MOlgt",blockLine:"CognitiveNonWebSearchReasoning-module_blockLine__FwGYE",headerLine:"CognitiveNonWebSearchReasoning-module_headerLine__0j5p4",listItemLine:"CognitiveNonWebSearchReasoning-module_listItemLine__yKx2O",listCounter:"CognitiveNonWebSearchReasoning-module_listCounter__esNpx",boldText:"CognitiveNonWebSearchReasoning-module_boldText__suAp2",highlight:"CognitiveNonWebSearchReasoning-module_highlight__EMAz5",highlightActive:"CognitiveNonWebSearchReasoning-module_highlightActive__FFvuU",highlightActiveVariant:"CognitiveNonWebSearchReasoning-module_highlightActiveVariant__-gqMp",highlightVariant:"CognitiveNonWebSearchReasoning-module_highlightVariant__PYgtJ",highlightButton:"CognitiveNonWebSearchReasoning-module_highlightButton__XvkBb"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CognitiveNonWebSearchReasoning-module_container__koQEN{display:flex;flex-direction:column;gap:var(--cr-container-gap,.5rem)}.CognitiveNonWebSearchReasoning-module_itemRow__lRmgs{align-items:flex-start;display:flex;font-size:var(--cr-item-row-font-size,.875rem);gap:.5rem}.CognitiveNonWebSearchReasoning-module_indexNumber__wP5hg{color:var(--cr-index-color,#475467);font-weight:var(--cr-index-font-weight,500)}.CognitiveNonWebSearchReasoning-module_textContent__327fx{color:var(--cr-text-content-color,#475467);flex:1;max-width:none}.CognitiveNonWebSearchReasoning-module_paraphraseButton__VS6Qe{align-items:center;background:var(--cr-paraphrase-button-bg,#0000);border:none;border-radius:var(--cr-paraphrase-button-border-radius,.375rem);cursor:pointer;display:inline-flex;gap:.25rem;justify-content:flex-start;padding:.125rem .375rem}.CognitiveNonWebSearchReasoning-module_paraphraseText__n5dty{color:var(--cr-paraphrase-color,#2563eb);font-weight:var(--cr-paraphrase-font-weight,500);text-align:start}.CognitiveNonWebSearchReasoning-module_paraphraseStar__YUnqR{color:var(--cr-paraphrase-color,#2563eb);padding-right:.25rem}.CognitiveNonWebSearchReasoning-module_chevronIcon__ZeXjw{color:var(--cr-chevron-color,#2563eb);height:1rem;transition:transform .2s;width:1rem}.CognitiveNonWebSearchReasoning-module_chevronIconRotated__WkRiP{transform:rotate(180deg)}.CognitiveNonWebSearchReasoning-module_expandedContainer__2UPr9{background-color:var(--cr-expanded-container-bg,#0000);border:solid var(--cr-expanded-container-border,#e5e7eb);border-radius:var(--cr-expanded-container-border-radius,.5rem);border-width:1px 1px 2px;margin-left:var(--cr-expanded-container-margin-left,1.5rem);margin-top:var(--cr-expanded-container-margin-top,.5rem);overflow:hidden}.CognitiveNonWebSearchReasoning-module_expandedHeader__QjKjb{align-items:center;background-color:var(--cr-header-bg,#f2f4f7);border-bottom:1px solid var(--cr-header-border,#e5e7eb);display:flex;justify-content:space-between;padding:var(--cr-header-padding,.25rem .75rem)}.CognitiveNonWebSearchReasoning-module_headerTitle__VvMwI{color:var(--cr-header-title-color,inherit);font-size:var(--cr-header-title-font-size,.875rem);font-weight:var(--cr-header-title-font-weight,400)}.CognitiveNonWebSearchReasoning-module_headerActions__j1P4u{align-items:center;display:flex;gap:.5rem}.CognitiveNonWebSearchReasoning-module_navigationContainer__G0VtG{align-items:center;background-color:var(--cr-nav-container-bg,#fff);border:1px solid var(--cr-nav-container-border,#e5e7eb);border-radius:.5rem;display:flex;padding:.25rem}.CognitiveNonWebSearchReasoning-module_navButton__aOaMv{align-items:center;background:#0000;border:none;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:0;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_navButton__aOaMv:hover{background-color:var(--cr-nav-button-hover-bg,#f3f4f6)}.CognitiveNonWebSearchReasoning-module_navIcon__uLme4{color:var(--cr-nav-icon-color,#6b7280);height:var(--cr-nav-icon-size,1.25rem);width:var(--cr-nav-icon-size,1.25rem)}.CognitiveNonWebSearchReasoning-module_navCounter__nj1Xc{color:var(--cr-nav-counter-color,#4b5563);font-size:var(--cr-nav-counter-font-size,.875rem);min-width:2.25rem;text-align:center}.CognitiveNonWebSearchReasoning-module_confidenceBadge__-ElB3{align-items:center;background-color:var(--cr-confidence-badge-bg,#f0fdf4);border:2px solid var(--cr-confidence-badge-border,#3ac894);border-radius:9999px;display:inline-flex;gap:.25rem;padding:.25rem .5rem}.CognitiveNonWebSearchReasoning-module_confidenceStar__4Rq0S{color:var(--cr-confidence-star-color,#059669);font-size:.75rem}.CognitiveNonWebSearchReasoning-module_confidenceScore__uLcnK{color:var(--cr-confidence-score-color,#059669);font-size:.875rem;font-weight:600}.CognitiveNonWebSearchReasoning-module_maximizeButton__Xwwu-{align-items:center;background:#0000;border:none;border-radius:.25rem;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_maximizeButton__Xwwu-:hover{background-color:var(--cr-maximize-button-hover-bg,#e5e7eb)}.CognitiveNonWebSearchReasoning-module_maximizeIcon__eFZez{color:var(--cr-maximize-icon-color,#6b7280);height:1.25rem;width:1.25rem}.CognitiveNonWebSearchReasoning-module_contentArea__hVoLL{background-color:var(--cr-content-area-bg,#0000);color:var(--cr-content-area-color,inherit);font-size:var(--cr-content-area-font-size,.875rem);max-height:var(--cr-content-area-max-height,11rem);overflow-y:auto;padding:var(--cr-content-area-padding,.5rem .75rem);scroll-behavior:smooth}.CognitiveNonWebSearchReasoning-module_contentInner__df-34{line-height:var(--cr-content-line-height,1.5rem)}.CognitiveNonWebSearchReasoning-module_footer__CNE8q{align-items:center;background-color:var(--cr-footer-bg,#f2f4f7);border-top:1px solid var(--cr-footer-border,#e5e7eb);display:flex;justify-content:flex-end}.CognitiveNonWebSearchReasoning-module_trainingTitle__CHFlh{color:var(--cr-training-title-color,inherit);font-size:var(--cr-training-title-font-size,.875rem);font-style:italic;font-weight:300}.CognitiveNonWebSearchReasoning-module_trainingTitleLink__0lu-U{align-items:center;background:none;border:none;color:var(--cr-training-link-color,inherit);cursor:pointer;display:inline-flex;font-size:var(--cr-training-link-font-size,.8rem);font-weight:600;gap:.25rem}.CognitiveNonWebSearchReasoning-module_modalDialog__eGApe{background:#0000;border:none;left:50%;margin:0;max-height:none;max-width:none;overflow:visible;padding:0;position:fixed;top:50%;transform:translate(-50%,-50%)}.CognitiveNonWebSearchReasoning-module_modalDialog__eGApe::backdrop{background-color:#0006}.CognitiveNonWebSearchReasoning-module_modalContainer__-dZ01{background-color:var(--cr-modal-container-bg,#fff);border-radius:var(--cr-modal-container-border-radius,.75rem);box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-height:80vh;max-width:900px;overflow:hidden;width:80vw}.CognitiveNonWebSearchReasoning-module_modalHeader__qglof{align-items:center;background-color:var(--cr-modal-header-bg,#f2f4f7);border-bottom:1px solid var(--cr-modal-header-border,#e5e7eb);display:flex;justify-content:space-between;padding:.75rem .5rem .75rem 1rem;width:100%}.CognitiveNonWebSearchReasoning-module_modalHeaderTitle__hDo1X{color:var(--cr-modal-header-title-color,inherit);font-size:var(--cr-modal-header-title-font-size,1rem);font-weight:500}.CognitiveNonWebSearchReasoning-module_modalHeaderActions__NGmip{align-items:center;display:flex;gap:.5rem}.CognitiveNonWebSearchReasoning-module_modalNavContainer__Q-OrP{align-items:center;background-color:var(--cr-modal-nav-container-bg,#f3f4f6);border:1px solid var(--cr-nav-container-border,#e5e7eb);border-radius:.5rem;display:flex;padding:.25rem}.CognitiveNonWebSearchReasoning-module_modalNavButton__6cQ24{align-items:center;background:#0000;border:none;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:0;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_modalNavButton__6cQ24:hover{background-color:var(--cr-modal-nav-button-hover-bg,#e5e7eb)}.CognitiveNonWebSearchReasoning-module_closeButton__S23zi{align-items:center;background:#0000;border:none;border-radius:.25rem;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_closeButton__S23zi:hover{background-color:var(--cr-close-button-hover-bg,#e5e7eb)}.CognitiveNonWebSearchReasoning-module_closeIcon__f7kaG{color:var(--cr-close-icon-color,#4b5563);height:1.25rem;width:1.25rem}.CognitiveNonWebSearchReasoning-module_modalContent__4U2Jv{background-color:var(--cr-modal-content-bg,#0000);color:var(--cr-modal-content-color,inherit);flex:1;font-size:var(--cr-modal-content-font-size,.875rem);overflow-y:auto;padding:.75rem 1rem;scroll-behavior:smooth}.CognitiveNonWebSearchReasoning-module_modalContentInner__63tzo{line-height:var(--cr-modal-content-line-height,1.75rem)}.CognitiveNonWebSearchReasoning-module_modalFooter__hXBqn{justify-content:flex-end;padding:.5rem 1rem}.CognitiveNonWebSearchReasoning-module_modalFooterSource__MOlgt,.CognitiveNonWebSearchReasoning-module_modalFooter__hXBqn{align-items:center;background-color:var(--cr-modal-footer-bg,#f2f4f7);border-top:1px solid var(--cr-modal-footer-border,#e5e7eb);display:flex;flex-shrink:0}.CognitiveNonWebSearchReasoning-module_modalFooterSource__MOlgt{justify-content:flex-start;padding:1rem}.CognitiveNonWebSearchReasoning-module_blockLine__FwGYE{display:block}.CognitiveNonWebSearchReasoning-module_headerLine__0j5p4{display:block;font-weight:var(--cr-header-line-font-weight,400)}.CognitiveNonWebSearchReasoning-module_listItemLine__yKx2O{display:block}.CognitiveNonWebSearchReasoning-module_listCounter__esNpx{display:inline-block;font-weight:var(--cr-list-counter-font-weight,500);text-align:left;width:var(--cr-list-counter-width,1.5rem)}.CognitiveNonWebSearchReasoning-module_boldText__suAp2{font-weight:var(--cr-bold-font-weight,600)}.CognitiveNonWebSearchReasoning-module_highlight__EMAz5{background-color:var(--cr-highlight-bg,#fef08a);border-radius:.25rem;padding:0 .125rem;transition:all .2s}.CognitiveNonWebSearchReasoning-module_highlightActive__FFvuU{background-color:var(--cr-highlight-active-bg,#fde047);border:1px solid var(--cr-highlight-active-border,#eab308);box-shadow:0 1px 2px 0 #0000000d}.CognitiveNonWebSearchReasoning-module_highlightActiveVariant__-gqMp{background-color:#e0e7ff;border:1px solid #5c75f4;box-shadow:0 1px 2px 0 #0000000d;color:#6366f1;font-weight:500}.CognitiveNonWebSearchReasoning-module_highlightVariant__PYgtJ{background-color:#eef2ff;border-radius:.25rem;color:#6366f1;font-weight:500;padding:0 .125rem;transition:all .2s}.CognitiveNonWebSearchReasoning-module_highlightButton__XvkBb{border:none;cursor:pointer;display:inline;font:inherit}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={container:"CognitiveNonWebSearchReasoning-module_container__koQEN",itemRow:"CognitiveNonWebSearchReasoning-module_itemRow__lRmgs",indexNumber:"CognitiveNonWebSearchReasoning-module_indexNumber__wP5hg",textContent:"CognitiveNonWebSearchReasoning-module_textContent__327fx",paraphraseButton:"CognitiveNonWebSearchReasoning-module_paraphraseButton__VS6Qe",paraphraseText:"CognitiveNonWebSearchReasoning-module_paraphraseText__n5dty",paraphraseStar:"CognitiveNonWebSearchReasoning-module_paraphraseStar__YUnqR",chevronIcon:"CognitiveNonWebSearchReasoning-module_chevronIcon__ZeXjw",chevronIconRotated:"CognitiveNonWebSearchReasoning-module_chevronIconRotated__WkRiP",expandedContainer:"CognitiveNonWebSearchReasoning-module_expandedContainer__2UPr9",expandedHeader:"CognitiveNonWebSearchReasoning-module_expandedHeader__QjKjb",headerTitle:"CognitiveNonWebSearchReasoning-module_headerTitle__VvMwI",headerActions:"CognitiveNonWebSearchReasoning-module_headerActions__j1P4u",navigationContainer:"CognitiveNonWebSearchReasoning-module_navigationContainer__G0VtG",navButton:"CognitiveNonWebSearchReasoning-module_navButton__aOaMv",navIcon:"CognitiveNonWebSearchReasoning-module_navIcon__uLme4",navCounter:"CognitiveNonWebSearchReasoning-module_navCounter__nj1Xc",confidenceBadge:"CognitiveNonWebSearchReasoning-module_confidenceBadge__-ElB3",confidenceStar:"CognitiveNonWebSearchReasoning-module_confidenceStar__4Rq0S",confidenceScore:"CognitiveNonWebSearchReasoning-module_confidenceScore__uLcnK",maximizeButton:"CognitiveNonWebSearchReasoning-module_maximizeButton__Xwwu-",maximizeIcon:"CognitiveNonWebSearchReasoning-module_maximizeIcon__eFZez",contentArea:"CognitiveNonWebSearchReasoning-module_contentArea__hVoLL",contentInner:"CognitiveNonWebSearchReasoning-module_contentInner__df-34",footer:"CognitiveNonWebSearchReasoning-module_footer__CNE8q",trainingTitle:"CognitiveNonWebSearchReasoning-module_trainingTitle__CHFlh",trainingTitleLink:"CognitiveNonWebSearchReasoning-module_trainingTitleLink__0lu-U",modalDialog:"CognitiveNonWebSearchReasoning-module_modalDialog__eGApe",modalContainer:"CognitiveNonWebSearchReasoning-module_modalContainer__-dZ01",modalHeader:"CognitiveNonWebSearchReasoning-module_modalHeader__qglof",modalHeaderTitle:"CognitiveNonWebSearchReasoning-module_modalHeaderTitle__hDo1X",modalHeaderActions:"CognitiveNonWebSearchReasoning-module_modalHeaderActions__NGmip",modalNavContainer:"CognitiveNonWebSearchReasoning-module_modalNavContainer__Q-OrP",modalNavButton:"CognitiveNonWebSearchReasoning-module_modalNavButton__6cQ24",closeButton:"CognitiveNonWebSearchReasoning-module_closeButton__S23zi",closeIcon:"CognitiveNonWebSearchReasoning-module_closeIcon__f7kaG",modalContent:"CognitiveNonWebSearchReasoning-module_modalContent__4U2Jv",modalContentInner:"CognitiveNonWebSearchReasoning-module_modalContentInner__63tzo",modalFooter:"CognitiveNonWebSearchReasoning-module_modalFooter__hXBqn",modalFooterSource:"CognitiveNonWebSearchReasoning-module_modalFooterSource__MOlgt",blockLine:"CognitiveNonWebSearchReasoning-module_blockLine__FwGYE",headerLine:"CognitiveNonWebSearchReasoning-module_headerLine__0j5p4",listItemLine:"CognitiveNonWebSearchReasoning-module_listItemLine__yKx2O",listCounter:"CognitiveNonWebSearchReasoning-module_listCounter__esNpx",boldText:"CognitiveNonWebSearchReasoning-module_boldText__suAp2",highlight:"CognitiveNonWebSearchReasoning-module_highlight__EMAz5",highlightActive:"CognitiveNonWebSearchReasoning-module_highlightActive__FFvuU",highlightActiveVariant:"CognitiveNonWebSearchReasoning-module_highlightActiveVariant__-gqMp",highlightVariant:"CognitiveNonWebSearchReasoning-module_highlightVariant__PYgtJ",highlightButton:"CognitiveNonWebSearchReasoning-module_highlightButton__XvkBb"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CognitiveNonWebSearchReasoning-module_container__koQEN{display:flex;flex-direction:column;gap:var(--cr-container-gap,.5rem)}.CognitiveNonWebSearchReasoning-module_itemRow__lRmgs{align-items:flex-start;display:flex;font-size:var(--cr-item-row-font-size,.875rem);gap:.5rem}.CognitiveNonWebSearchReasoning-module_indexNumber__wP5hg{color:var(--cr-index-color,#475467);font-weight:var(--cr-index-font-weight,500)}.CognitiveNonWebSearchReasoning-module_textContent__327fx{color:var(--cr-text-content-color,#475467);flex:1;max-width:none}.CognitiveNonWebSearchReasoning-module_paraphraseButton__VS6Qe{align-items:center;background:var(--cr-paraphrase-button-bg,#0000);border:none;border-radius:var(--cr-paraphrase-button-border-radius,.375rem);cursor:pointer;display:inline-flex;gap:.25rem;justify-content:flex-start;padding:.125rem .375rem}.CognitiveNonWebSearchReasoning-module_paraphraseText__n5dty{color:var(--cr-paraphrase-color,#2563eb);font-weight:var(--cr-paraphrase-font-weight,500);text-align:start}.CognitiveNonWebSearchReasoning-module_paraphraseStar__YUnqR{color:var(--cr-paraphrase-color,#2563eb);padding-right:.25rem}.CognitiveNonWebSearchReasoning-module_chevronIcon__ZeXjw{color:var(--cr-chevron-color,#2563eb);height:1rem;transition:transform .2s;width:1rem}.CognitiveNonWebSearchReasoning-module_chevronIconRotated__WkRiP{transform:rotate(180deg)}.CognitiveNonWebSearchReasoning-module_expandedContainer__2UPr9{background-color:var(--cr-expanded-container-bg,#0000);border:solid var(--cr-expanded-container-border,#e5e7eb);border-radius:var(--cr-expanded-container-border-radius,.5rem);border-width:1px 1px 2px;margin-left:var(--cr-expanded-container-margin-left,1.5rem);margin-top:var(--cr-expanded-container-margin-top,.5rem);overflow:hidden}.CognitiveNonWebSearchReasoning-module_expandedHeader__QjKjb{align-items:center;background-color:var(--cr-header-bg,#f2f4f7);border-bottom:1px solid var(--cr-header-border,#e5e7eb);display:flex;justify-content:space-between;padding:var(--cr-header-padding,.25rem .75rem)}.CognitiveNonWebSearchReasoning-module_headerTitle__VvMwI{color:var(--cr-header-title-color,inherit);font-size:var(--cr-header-title-font-size,.875rem);font-weight:var(--cr-header-title-font-weight,400)}.CognitiveNonWebSearchReasoning-module_headerActions__j1P4u{align-items:center;display:flex;gap:.5rem}.CognitiveNonWebSearchReasoning-module_navigationContainer__G0VtG{align-items:center;background-color:var(--cr-nav-container-bg,#fff);border:1px solid var(--cr-nav-container-border,#e5e7eb);border-radius:.5rem;display:flex;padding:.25rem}.CognitiveNonWebSearchReasoning-module_navButton__aOaMv{align-items:center;background:#0000;border:none;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:0;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_navButton__aOaMv:hover{background-color:var(--cr-nav-button-hover-bg,#f3f4f6)}.CognitiveNonWebSearchReasoning-module_navIcon__uLme4{color:var(--cr-nav-icon-color,#6b7280);height:var(--cr-nav-icon-size,1.25rem);width:var(--cr-nav-icon-size,1.25rem)}.CognitiveNonWebSearchReasoning-module_navCounter__nj1Xc{color:var(--cr-nav-counter-color,#4b5563);font-size:var(--cr-nav-counter-font-size,.875rem);min-width:2.25rem;text-align:center}.CognitiveNonWebSearchReasoning-module_confidenceBadge__-ElB3{align-items:center;background-color:var(--cr-confidence-badge-bg,#f0fdf4);border:2px solid var(--cr-confidence-badge-border,#3ac894);border-radius:9999px;display:inline-flex;gap:.25rem;padding:.25rem .5rem}.CognitiveNonWebSearchReasoning-module_confidenceStar__4Rq0S{color:var(--cr-confidence-star-color,#059669);font-size:.75rem}.CognitiveNonWebSearchReasoning-module_confidenceScore__uLcnK{color:var(--cr-confidence-score-color,#059669);font-size:.875rem;font-weight:600}.CognitiveNonWebSearchReasoning-module_maximizeButton__Xwwu-{align-items:center;background:#0000;border:none;border-radius:.25rem;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_maximizeButton__Xwwu-:hover{background-color:var(--cr-maximize-button-hover-bg,#e5e7eb)}.CognitiveNonWebSearchReasoning-module_maximizeIcon__eFZez{color:var(--cr-maximize-icon-color,#6b7280);height:1.25rem;width:1.25rem}.CognitiveNonWebSearchReasoning-module_contentArea__hVoLL{background-color:var(--cr-content-area-bg,#0000);color:var(--cr-content-area-color,inherit);font-size:var(--cr-content-area-font-size,.875rem);max-height:var(--cr-content-area-max-height,11rem);overflow-y:auto;padding:var(--cr-content-area-padding,.5rem .75rem);scroll-behavior:smooth}.CognitiveNonWebSearchReasoning-module_contentInner__df-34{line-height:var(--cr-content-line-height,1.5rem)}.CognitiveNonWebSearchReasoning-module_footer__CNE8q{align-items:center;background-color:var(--cr-footer-bg,#f2f4f7);border-top:1px solid var(--cr-footer-border,#e5e7eb);display:flex;justify-content:flex-end}.CognitiveNonWebSearchReasoning-module_trainingTitle__CHFlh{color:var(--cr-training-title-color,inherit);font-size:var(--cr-training-title-font-size,.875rem);font-style:italic;font-weight:300}.CognitiveNonWebSearchReasoning-module_trainingTitleLink__0lu-U{align-items:center;background:none;border:none;color:var(--cr-training-link-color,inherit);cursor:pointer;display:inline-flex;font-size:var(--cr-training-link-font-size,.8rem);font-weight:600;gap:.25rem}.CognitiveNonWebSearchReasoning-module_modalDialog__eGApe{background:#0000;border:none;left:50%;margin:0;max-height:300px;max-width:none;overflow:visible;padding:0;position:fixed;top:50%;transform:translate(-50%,-50%)}.CognitiveNonWebSearchReasoning-module_modalDialog__eGApe::backdrop{background-color:#0006}.CognitiveNonWebSearchReasoning-module_modalContainer__-dZ01{background-color:var(--cr-modal-container-bg,#fff);border-radius:var(--cr-modal-container-border-radius,.75rem);box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-height:80vh;max-width:900px;overflow:hidden;width:80vw}.CognitiveNonWebSearchReasoning-module_modalHeader__qglof{align-items:center;background-color:var(--cr-modal-header-bg,#f2f4f7);border-bottom:1px solid var(--cr-modal-header-border,#e5e7eb);display:flex;justify-content:space-between;padding:.75rem .5rem .75rem 1rem;width:100%}.CognitiveNonWebSearchReasoning-module_modalHeaderTitle__hDo1X{color:var(--cr-modal-header-title-color,inherit);font-size:var(--cr-modal-header-title-font-size,1rem);font-weight:500}.CognitiveNonWebSearchReasoning-module_modalHeaderActions__NGmip{align-items:center;display:flex;gap:.5rem}.CognitiveNonWebSearchReasoning-module_modalNavContainer__Q-OrP{align-items:center;background-color:var(--cr-modal-nav-container-bg,#f3f4f6);border:1px solid var(--cr-nav-container-border,#e5e7eb);border-radius:.5rem;display:flex;padding:.25rem}.CognitiveNonWebSearchReasoning-module_modalNavButton__6cQ24{align-items:center;background:#0000;border:none;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:0;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_modalNavButton__6cQ24:hover{background-color:var(--cr-modal-nav-button-hover-bg,#e5e7eb)}.CognitiveNonWebSearchReasoning-module_closeButton__S23zi{align-items:center;background:#0000;border:none;border-radius:.25rem;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:background-color .2s}.CognitiveNonWebSearchReasoning-module_closeButton__S23zi:hover{background-color:var(--cr-close-button-hover-bg,#e5e7eb)}.CognitiveNonWebSearchReasoning-module_closeIcon__f7kaG{color:var(--cr-close-icon-color,#4b5563);height:1.25rem;width:1.25rem}.CognitiveNonWebSearchReasoning-module_modalContent__4U2Jv{background-color:var(--cr-modal-content-bg,#0000);color:var(--cr-modal-content-color,inherit);flex:1;font-size:var(--cr-modal-content-font-size,.875rem);overflow-y:scroll;padding:.75rem 1rem;scroll-behavior:smooth}.CognitiveNonWebSearchReasoning-module_modalContentInner__63tzo{line-height:var(--cr-modal-content-line-height,1.75rem)}.CognitiveNonWebSearchReasoning-module_modalFooter__hXBqn{justify-content:flex-end;padding:.5rem 1rem}.CognitiveNonWebSearchReasoning-module_modalFooterSource__MOlgt,.CognitiveNonWebSearchReasoning-module_modalFooter__hXBqn{align-items:center;background-color:var(--cr-modal-footer-bg,#f2f4f7);border-top:1px solid var(--cr-modal-footer-border,#e5e7eb);display:flex;flex-shrink:0}.CognitiveNonWebSearchReasoning-module_modalFooterSource__MOlgt{justify-content:flex-start;padding:1rem}.CognitiveNonWebSearchReasoning-module_blockLine__FwGYE{display:block}.CognitiveNonWebSearchReasoning-module_headerLine__0j5p4{display:block;font-weight:var(--cr-header-line-font-weight,400)}.CognitiveNonWebSearchReasoning-module_listItemLine__yKx2O{display:block}.CognitiveNonWebSearchReasoning-module_listCounter__esNpx{display:inline-block;font-weight:var(--cr-list-counter-font-weight,500);text-align:left;width:var(--cr-list-counter-width,1.5rem)}.CognitiveNonWebSearchReasoning-module_boldText__suAp2{font-weight:var(--cr-bold-font-weight,600)}.CognitiveNonWebSearchReasoning-module_highlight__EMAz5{background-color:var(--cr-highlight-bg,#fef08a);border-radius:.25rem;padding:0 .125rem;transition:all .2s}.CognitiveNonWebSearchReasoning-module_highlightActive__FFvuU{background-color:var(--cr-highlight-active-bg,#fde047);border:1px solid var(--cr-highlight-active-border,#eab308);box-shadow:0 1px 2px 0 #0000000d}.CognitiveNonWebSearchReasoning-module_highlightActiveVariant__-gqMp{background-color:#e0e7ff;border:1px solid #5c75f4;box-shadow:0 1px 2px 0 #0000000d;color:#6366f1;font-weight:500}.CognitiveNonWebSearchReasoning-module_highlightVariant__PYgtJ{background-color:#eef2ff;border-radius:.25rem;color:#6366f1;font-weight:500;padding:0 .125rem;transition:all .2s}.CognitiveNonWebSearchReasoning-module_highlightButton__XvkBb{border:none;cursor:pointer;display:inline;font:inherit}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=CognitiveNonWebSearchReasoning.module.css.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as n}from"tslib";var e=function(t){return t.endsWith("/")?t.slice(0,-1):t};function o(t){var n;return null!==(n=null==t?void 0:t.toLowerCase().includes("json"))&&void 0!==n&&n}function r(o,r){return t(this,void 0,void 0,function(){var t,i,l;return n(this,function(n){switch(n.label){case 0:return t=o.startsWith("gs://")?o:"gs://".concat(o),i=e(r),[4,fetch("".concat(i,"/gcs/get-signed-url/"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({gsutil_url:t})})];case 1:if(!(l=n.sent()).ok)throw new Error("Failed to get signed URL: ".concat(l.statusText));return[4,l.json()];case 2:return[2,n.sent()]}})})}function i(o,r){var i,l,s,c,a;return t(this,void 0,void 0,function(){var t,u,d,v;return n(this,function(n){switch(n.label){case 0:return t=e(r),u=o.startsWith("gs://")?o.replace("gs://",""):o,[4,fetch("".concat(t,"/gcs/get-file-content"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({file_path:u})})];case 1:if(!(d=n.sent()).ok)throw new Error("Failed to fetch file content: ".concat(d.statusText));return[4,d.json()];case 2:return v=n.sent(),[2,null!==(a=null!==(s=null!==(l=null===(i=null==v?void 0:v.responseData)||void 0===i?void 0:i.content)&&void 0!==l?l:null==v?void 0:v.content)&&void 0!==s?s:null===(c=null==v?void 0:v.responseData)||void 0===c?void 0:c.file_content)&&void 0!==a?a:""]}})})}function l(t,n){var e;try{for(var o=n.split("."),r=t,i=0,l=o;i<l.length;i++){var s=l[i],c=s.match(/^(\w+)\[(\d+)\]$/);if(c){var a=c[1],u=c[2];r=null===(e=null==r?void 0:r[a])||void 0===e?void 0:e[Number(u)]}else r=null==r?void 0:r[s];if(null==r)return null}return r}catch(t){return console.error("Nested extraction error",t),null}}export{i as getFileContent,l as getNestedValue,r as getSignedUrl,o as isJSONFile};
|
|
2
|
+
//# sourceMappingURL=RuleBookCitationApiComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleBookCitationApiComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i,__awaiter as e,__generator as l}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as r}from"react";import{Loader2 as a}from"lucide-react";import d from"../TextualGuidelines/TextualGuideLinesComponent.js";import{getNestedValue as u,isJSONFile as s,getFileContent as c,getSignedUrl as v}from"./RuleBookCitationApiComponent.js";var f=function(f){var g,p,h,m,x,b,y=f.data,_=f.msg,C=f.citationIndex,D=f.guidelines,k=void 0===D?[]:D,T=f.url,I=f.additionalClassNames,R=f.headerTitle,w=void 0===R?"Rule Book Citation":R,L=f.InternalGptReasoningData,A=void 0===L?[]:L,G=f.IgptHeaderTitle,H=f.isDataProvided,j=void 0!==H&&H,B=f.textualContent,N=f.phraseToHighlight,S=f.onAccordionToggle,E=f.isInternalGptReasoningLoading,U=void 0!==E&&E;console.log("Max Latest code 6.0");var M=Math.max((null!==(p=null!==(g=null==y?void 0:y.citationNumber)&&void 0!==g?g:C)&&void 0!==p?p:1)-1,0),O=(null==_?void 0:_.requestId)||(null==_?void 0:_.id)||"",q=t(null),z=q[0],F=q[1],J=t(null),P=J[0],V=J[1],W=t(null),K=W[0],Q=W[1],X=t(!1),Y=X[0],Z=X[1],$=t(null),ii=$[0],ei=$[1];r(function(){var i,e,l,n;if(!j&&!z){if(null===(i=null==y?void 0:y.fileDetails)||void 0===i?void 0:i.file_id)return ei(null),F(y.fileDetails.file_id),void V(y.fileDetails.phrase_to_highlight||null);var o=(null!==(n=null===(l=null===(e=null==_?void 0:_.artifactSearchData)||void 0===e?void 0:e.ruleBookData)||void 0===l?void 0:l.rulebook_citations)&&void 0!==n?n:[])[M];if(!o)return ei("Citation not found at the specified index."),F(null),void V(null);if(!o.file_id)return ei("Citation data is missing file_id."),F(null),void V(null);Q(null),ei(null),F(o.file_id),V(o.phrase_to_highlight||null)}},[j,O,M,z,null===(h=null==y?void 0:y.fileDetails)||void 0===h?void 0:h.file_id,null===(m=null==y?void 0:y.fileDetails)||void 0===m?void 0:m.phrase_to_highlight,null===(b=null===(x=null==_?void 0:_.artifactSearchData)||void 0===x?void 0:x.ruleBookData)||void 0===b?void 0:b.rulebook_citations]),r(function(){if(!j)if(z){var i=Array.isArray(k)?k:Object.values(k||{}).flat();e(void 0,void 0,void 0,function(){var e,n,o,t,r,a,d,f;return l(this,function(l){switch(l.label){case 0:if(!(null==(e=i.find(function(i){return i.id===z}))?void 0:e.gcsUrl))return ei("File URL not found."),[2];l.label=1;case 1:return l.trys.push([1,4,5,6]),Z(!0),ei(null),[4,v(e.gcsUrl,null!=T?T:"")];case 2:if(null==(n=l.sent())?void 0:n.error)throw new Error(n.error);return o=(null===(f=e.name)||void 0===f?void 0:f.toLowerCase().split(".").pop())||"",s(o)?[4,c(e.gcsUrl,null!=T?T:"")]:[2];case 3:if(!(null==(t=l.sent())?void 0:t.trim()))throw new Error("Empty file content returned from the backend.");return r=JSON.parse(t),a=u(r,"data.artifactData.userStorySnapshot[0].value"),Q(a||""),[3,6];case 4:return d=l.sent(),console.error(d),ei(d.message||"An error occurred while loading file contents."),Q(null),[3,6];case 5:return Z(!1),[7];case 6:return[2]}})})}else Q(null)},[j,z,k,T]);var li=!j&&Y,ni=j?N||null:P,oi=j?B||"":(null==K?void 0:K.replace(/\\\./g,"."))||"",ti=j?!!B:!!K;return n("div",i({className:null==I?void 0:I.container,style:{width:"100%",minHeight:"100px",backgroundColor:"transparent"}},{children:[li&&n("div",i({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[o(a,{style:{animation:"spin 1s linear infinite"},size:24}),o("span",{children:"Loading content..."})]})),ii&&!li&&n("div",i({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[o("strong",{children:"Error:"})," ",ii]})),!li&&!ii&&ti&&o("div",i({style:{marginTop:"12px"}},{children:o(d,{TextualGuideLines:oi,HighlightedWords:ni?[ni]:[],InternalGptReasoningData:A,index:0,headerTitle:w,useVariantHighlight:!1,IgptHeaderTitle:G,onAccordionToggle:S,isInternalGptReasoningLoading:U})})),!li&&!ii&&!ti&&o("div",i({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available."})),o("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};export{f as default};
|
|
2
|
+
//# sourceMappingURL=RuleBookCitationComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleBookCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t,__spreadArray as e}from"tslib";import{jsx as n,Fragment as r,jsxs as a}from"react/jsx-runtime";import{useState as i,useRef as l,useEffect as c}from"react";import{ChevronUp as o,ChevronDown as s,ChevronLeft as u,ChevronRight as d}from"lucide-react";import h from"./SourceBQDataCompnent.module.css.js";function m(t){if(!t)return null;try{var e=t.startsWith("./")?"relative://"+t.slice(2):t.startsWith("?")?"relative://?"+t.slice(1):t,n=e.indexOf("?"),r=-1===n?e:e.slice(0,n),a=-1===n?"":e.slice(n+1),i=r.match(/columnName=([^&?#]+)/i),l=i?decodeURIComponent(i[1]):"",c=new URLSearchParams(a),o=c.get("citation_type")||"",s=c.get("sku_id")||"",u=c.get("citationNumber")||"";return"bq_data"===o&&s?{columnName:l,citationNumber:u,citationType:o,skuId:s}:null}catch(t){return null}}function f(t,e){if(!t||"object"!=typeof t)return null;for(var n=0,r=Object.entries(t);n<r.length;n++){var a=r[n],i=a[0];if(null==(f=a[1])?void 0:f.citations)for(var l=0,c=Object.values(f.citations);l<c.length;l++)for(var o=c[l],s=0,u=Object.values(o);s<u.length;s++){var d=u[s];if(Array.isArray(d)&&d.some(function(t){return String(t).trim()===String(e).trim()}))return[i,f]}}for(var h=0,m=Object.entries(t);h<m.length;h++){var f,v=m[h];i=v[0];if((null==(f=v[1])?void 0:f.citations)&&"string"==typeof f.gap&&"number"==typeof f.score&&"string"==typeof f.reasoning)return[i,f]}return null}var v=function(r){var o=r.bqData,s=r.highlightedColumns,m=l(null),f=i(0),v=f[0],b=f[1],g=Object.keys(o),p=Math.max.apply(Math,e(e([],Object.values(o).map(function(t){return Array.isArray(t)?t.length:1}),!1),[0],!1)),N=g.map(function(t,e){return s.includes(t)?e:-1}).filter(function(t){return-1!==t}),y=N.length>1,j=0===v,O=v===N.length-1;return c(function(){if(0!==N.length&&m.current){var t=setTimeout(function(){var t=m.current;if(t){var e=N[v],n=t.querySelectorAll("thead th")[e];if(n){var r=Math.max(0,n.offsetLeft-t.clientWidth/2+n.offsetWidth/2);t.scrollTo({left:r,behavior:"smooth"})}}},100);return function(){return clearTimeout(t)}}},[v,N]),a("div",t({className:h.tableCard},{children:[a("div",t({className:h.tableHeader},{children:[n("span",t({className:h.tableTitle},{children:"attributes"})),y&&a("div",t({className:h.tableNav},{children:[n("button",t({onClick:function(){return b(function(t){return Math.max(0,t-1)})},disabled:j,className:"".concat(h.navButton," ").concat(j?h.navButtonDisabled:""),"aria-label":"Previous highlighted column"},{children:n(u,{size:14})})),a("span",t({className:h.navStep},{children:[v+1,"/",N.length]})),n("button",t({onClick:function(){return b(function(t){return Math.min(N.length-1,t+1)})},disabled:O,className:"".concat(h.navButton," ").concat(O?h.navButtonDisabled:""),"aria-label":"Next highlighted column"},{children:n(d,{size:14})}))]}))]})),n("div",t({ref:m,className:h.tableScroll},{children:n("div",t({className:h.tableScrollInner},{children:a("table",t({className:h.table},{children:[n("thead",{children:n("tr",t({className:h.tableHeadRow},{children:g.map(function(e){return n("th",t({className:"".concat(h.th," ").concat(s.includes(e)?h.thHighlighted:"")},{children:e}),e)})}))}),n("tbody",t({className:h.tbody},{children:Array.from({length:p}).map(function(e,r){return n("tr",t({className:h.tr},{children:g.map(function(e){var a,i=o[e],l=Array.isArray(i)?i[r]:0===r?i:"";return n("td",t({className:"".concat(h.td," ").concat(s.includes(e)?h.tdHighlighted:"")},{children:(a=l,null==a?"-":"object"==typeof a?JSON.stringify(a):String(a))}),"".concat(e,"-").concat(r))})}),r)})}))]}))}))})),n("div",t({className:h.tableFooter},{children:a("span",t({className:h.tableFooterText},{children:[p," ",1===p?"row":"rows"," from BigQuery"]}))}))]}))},b=function(e){var l,c,u=e.hrefParams,d=e.sourceObj,m=e.children,f=e.defaultOpen,b=e.showChevron,g=void 0===b||b,p=i(null!=f&&f),N=p[0],y=p[1];if(!u||!d)return n(r,{});var j=u.columnName,O=u.citationNumber,S=u.skuId,A=O.split("".concat(S,"-"))[1],C=null!==(c=null===(l=d.citations)||void 0===l?void 0:l[O])&&void 0!==c?c:null,x=C?Object.fromEntries(Object.entries(C).map(function(t){var e=t[0],n=t[1];return[e,Array.isArray(n)?n:[n]]})):null,k=j?[j]:[];return a("span",t({className:h.wrapper},{children:[a("span",t({className:h.trigger,onClick:function(){return y(function(t){return!t})}},{children:[n("span",{children:m}),g&&n("span",t({className:h.triggerChevron},{children:n(N?o:s,{size:12})}))]})),N&&n("div",t({className:h.content},{children:x?n(v,{bqData:x,highlightedColumns:k}):a("div",t({className:h.emptyState},{children:["No data available for citation ",A,"."]}))}))]}))};export{b as SourcesBQCitation,f as findSourceCitation,m as parseSourcesBQHref};
|
|
2
|
+
//# sourceMappingURL=SourceBQDataCompnent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceBQDataCompnent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={wrapper:"SourceBQDataCompnent-module_wrapper__Ug2Nc",trigger:"SourceBQDataCompnent-module_trigger__OfOZJ",triggerChevron:"SourceBQDataCompnent-module_triggerChevron__BEgjU",content:"SourceBQDataCompnent-module_content__wxAqE",fadeSlideIn:"SourceBQDataCompnent-module_fadeSlideIn__q-iNK",emptyState:"SourceBQDataCompnent-module_emptyState__urOTX",tableCard:"SourceBQDataCompnent-module_tableCard__AHvn8",tableHeader:"SourceBQDataCompnent-module_tableHeader__bcgFi",tableTitle:"SourceBQDataCompnent-module_tableTitle__BhAhV",tableNav:"SourceBQDataCompnent-module_tableNav__sZVYk",navButton:"SourceBQDataCompnent-module_navButton__8lZgb",navButtonDisabled:"SourceBQDataCompnent-module_navButtonDisabled__M1VaD",navStep:"SourceBQDataCompnent-module_navStep__-htGN",tableScroll:"SourceBQDataCompnent-module_tableScroll__Kwztb",tableScrollInner:"SourceBQDataCompnent-module_tableScrollInner__SW95U",table:"SourceBQDataCompnent-module_table__gQ3Rf",tableHeadRow:"SourceBQDataCompnent-module_tableHeadRow__cR-fA",th:"SourceBQDataCompnent-module_th__Dvqyq",thHighlighted:"SourceBQDataCompnent-module_thHighlighted__UM6n7",tbody:"SourceBQDataCompnent-module_tbody__l5CR8",tr:"SourceBQDataCompnent-module_tr__5--et",td:"SourceBQDataCompnent-module_td__dlEeI",tdHighlighted:"SourceBQDataCompnent-module_tdHighlighted__PrYAy",tableFooter:"SourceBQDataCompnent-module_tableFooter__buQN7",tableFooterText:"SourceBQDataCompnent-module_tableFooterText__po2-A"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".SourceBQDataCompnent-module_wrapper__Ug2Nc{display:inline;margin-left:.25rem;vertical-align:initial}.SourceBQDataCompnent-module_trigger__OfOZJ{align-items:center;color:#3b82f6;cursor:pointer;display:inline-flex;font-size:.875rem;font-weight:400}.SourceBQDataCompnent-module_triggerChevron__BEgjU{align-items:center;display:inline-flex;flex-shrink:0;margin-left:.25rem}.SourceBQDataCompnent-module_content__wxAqE{animation:SourceBQDataCompnent-module_fadeSlideIn__q-iNK .2s ease-out;margin-top:.5rem;width:100%}@keyframes SourceBQDataCompnent-module_fadeSlideIn__q-iNK{0%{opacity:0;transform:translateY(-.25rem)}to{opacity:1;transform:translateY(0)}}.SourceBQDataCompnent-module_emptyState__urOTX{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:.75rem;color:#9ca3af;font-size:.75rem;font-style:italic;padding:1rem;text-align:center}.SourceBQDataCompnent-module_tableCard__AHvn8{background-color:#fff;border:1px solid #e5e7eb;border-radius:.75rem;box-shadow:0 1px 2px #0000000d}.SourceBQDataCompnent-module_tableHeader__bcgFi{align-items:center;border-bottom:1px solid #f3f4f6;display:flex;justify-content:space-between;padding:.5rem .75rem}.SourceBQDataCompnent-module_tableTitle__BhAhV{color:#4b5563;font-size:.75rem;font-weight:600}.SourceBQDataCompnent-module_tableNav__sZVYk{align-items:center;display:flex;gap:.375rem}.SourceBQDataCompnent-module_navButton__8lZgb{align-items:center;border:1px solid #d1d5db;border-radius:9999px;box-shadow:0 1px 2px #0000000d;color:#6b7280;cursor:pointer;display:flex;height:1.5rem;justify-content:center;transition:background-color .15s ease;width:1.5rem}.SourceBQDataCompnent-module_navButton__8lZgb:hover{background-color:#f9fafb}.SourceBQDataCompnent-module_navButtonDisabled__M1VaD{border-color:#e5e7eb;box-shadow:none;color:#d1d5db;cursor:not-allowed}.SourceBQDataCompnent-module_navButtonDisabled__M1VaD:hover{background-color:initial}.SourceBQDataCompnent-module_navStep__-htGN{color:#6b7280;font-size:.75rem;font-variant-numeric:tabular-nums;font-weight:500}.SourceBQDataCompnent-module_tableScroll__Kwztb{max-height:260px;overflow:auto;width:100%}.SourceBQDataCompnent-module_tableScrollInner__SW95U{display:inline-block;min-width:100%;vertical-align:middle}.SourceBQDataCompnent-module_table__gQ3Rf{border-collapse:collapse;font-size:.75rem;min-width:100%;text-align:left}.SourceBQDataCompnent-module_tableHeadRow__cR-fA{background-color:#f9fafb;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:10}.SourceBQDataCompnent-module_th__Dvqyq{border-right:1px solid #e5e7eb;color:#374151;font-weight:600;min-width:120px;padding:.75rem 1rem;white-space:nowrap}.SourceBQDataCompnent-module_th__Dvqyq:last-child{border-right:none}.SourceBQDataCompnent-module_thHighlighted__UM6n7{background-color:#fef9c3}.SourceBQDataCompnent-module_tbody__l5CR8,.SourceBQDataCompnent-module_tbody__l5CR8 tr+tr{border-top:1px solid #f3f4f6}.SourceBQDataCompnent-module_tr__5--et:hover{background-color:#f9fafb80}.SourceBQDataCompnent-module_td__dlEeI{border-right:1px solid #e5e7eb;color:#4b5563;min-width:120px;padding:.75rem 1rem;vertical-align:top;white-space:normal;word-break:break-word}.SourceBQDataCompnent-module_td__dlEeI:last-child{border-right:none}.SourceBQDataCompnent-module_tdHighlighted__PrYAy{background-color:#fefce8}.SourceBQDataCompnent-module_tableFooter__buQN7{border-top:1px solid #f3f4f6;padding:.5rem .75rem;text-align:right}.SourceBQDataCompnent-module_tableFooterText__po2-A{color:#9ca3af;font-size:.75rem;font-weight:500}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=SourceBQDataCompnent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceBQDataCompnent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as n}from"tslib";import{jsx as i}from"react/jsx-runtime";import{useRef as
|
|
1
|
+
import{__assign as n}from"tslib";import{jsx as i}from"react/jsx-runtime";import{useRef as o,useState as t,useMemo as e,useEffect as r}from"react";import{convertILRuleToCognitiveDecisioningData as l}from"./types/Types.js";import{InstantLearningCitation as a}from"./InstantLearningCitation.js";import c from"../CitationRenderer/CitationRenderer.js";import{CitationIcon as d}from"../../assests/icons/CitationsIcon.js";var s=function(s){var u,p,h,v,f,m=s.ilLearning,g=s.ilLearningHighlights,C=void 0===g?[]:g,b=s.comparisonHighlights,x=void 0===b?[]:b,w=s.decisionStrength,y=void 0===w?"":w,I=s.linkTitle,B=s.onCitationToggle,F=s.config,R=o(null),S=t(!1),T=S[0],k=S[1],A=e(function(){return x.flatMap(function(n){return n.attributesToBehighlighted||[]})},[x]),D=e(function(){return m?n(n({},l(n(n({},m),{decision_strength:y}))),{il_learning_highlights:C}):null},[m,C,y]);r(function(){if(T){var n=setTimeout(function(){var n;null===(n=R.current)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},100);return function(){return clearTimeout(n)}}},[T]);return i("span",n({className:"citation-span",ref:R},{children:i(c,{inLineCitation:!0,citationTitle:I,citationIcon:null!==(u=null==F?void 0:F.citationIcon)&&void 0!==u?u:D?i(d,{}):null,citationComponent:D?i(a,n({},D)):void 0,chevronDownComponent:null!==(p=null==F?void 0:F.chevronDownIcon)&&void 0!==p?p:i(function(){return i("span",n({"aria-hidden":!0,className:"md-chevron",style:{color:D?"#1A847C":"#6D28D9"}},{children:i("svg",n({viewBox:"0 0 20 20",fill:"currentColor"},{children:i("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.128l3.71-2.9a.75.75 0 1 1 .92 1.18l-4.2 3.28a.75.75 0 0 1-.92 0l-4.2-3.28a.75.75 0 0 1-.02-1.12z",clipRule:"evenodd"})}))}))},{}),chevronUpComponent:null!==(h=null==F?void 0:F.chevronUpIcon)&&void 0!==h?h:i(function(){return i("span",n({"aria-hidden":!0,className:"md-chevron",style:{color:D?"#1A847C":"#6D28D9"}},{children:i("svg",n({viewBox:"0 0 20 20",fill:"currentColor"},{children:i("path",{fillRule:"evenodd",d:"M14.77 12.79a.75.75 0 0 1-1.06-.02L10 9.872l-3.71 2.9a.75.75 0 1 1-.92-1.18l4.2-3.28a.75.75 0 0 1 .92 0l4.2 3.28a.75.75 0 0 1 .02 1.12z",clipRule:"evenodd"})}))}))},{}),styles:{pillButton:n({fontFamily:'"Inter", sans-serif',background:"transparent",padding:0,margin:0,marginBottom:"2px",fontSize:"12px",lineHeight:"140%",fontWeight:500,color:D?"#1A847C":"rgb(109, 40, 217)",cursor:"pointer",whiteSpace:"nowrap",border:"none",display:"inline-flex",alignItems:"center",gap:"4px",verticalAlign:"middle"},null===(v=null==F?void 0:F.slotStyles)||void 0===v?void 0:v.pillButton),citationContent:n({backgroundColor:"#F5F3FF66",border:"1px solid #A78BFA",borderRadius:"6px",padding:"0.75rem",fontFamily:'"Inter", sans-serif',fontSize:"12px",fontWeight:400,lineHeight:"140%",color:"#1e293b",boxShadow:"none",width:"100%",height:"fit-content",minHeight:"38vh",margin:"0 auto",overflowWrap:"break-word"},null===(f=null==F?void 0:F.slotStyles)||void 0===f?void 0:f.citationContent)},additionalCallbackForPillButton:function(){var n=!T;k(n),B&&B(A,"",n)}})}))};export{s as default};
|
|
2
2
|
//# sourceMappingURL=InstantLearningCitationComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronDown as e,ChevronUp as a,Maximize2 as l,X as r,ExternalLink as d}from"lucide-react";import s from"dayjs";import c from"../ScannedDocCitation/ScannedDocCitation.js";import u from"../InstantLearningCitation/InstantLearningCitationComponent.js";import g from"../InstantLearningCitation/SlashLoader.js";import v from"../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";import h from"../RequirementAiCitations/ImageCitation/ImageCitationContent.js";import C from"../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";import m from"../ChatCitation/ChatCitationRenderer.js";import p from"../DualCitation/RuleBookCitationComponent.js";import f from"../CitationRenderer/CitationRenderer.js";import D from"../SplitterCitations/SplitterCitationsComponent.js";import{SourcesBQCitation as T}from"../DualCitation/SourceBQDataCompnent.js";import{CITATION_TYPES as I}from"./citationTypes.js";var b=function(i,t,n){if(!i)throw new Error("[ParentCitationComponent] ".concat(t,': missing required field "').concat(n,'" in customMetaData'))},P=function(i,t){if(!Object.values(i).some(Boolean))throw new Error("[ParentCitationComponent] ".concat(t,': missing one of "').concat(Object.keys(i).join('", "'),'" in customMetaData'))},S=function(_){var L,R,w,A,U,x,j,y,B,k,G,H,E,O,N,W,F,M,z,q,Q,K,J,V,X,Y=_.href,Z=_.children,$=_.isStreaming,ii=_.onCitationToggle,ti=_.chatCitationConfig,ni=_.scannedDocCitationConfig,oi=_.ruleBookCitationConfig,ei=_.ilCitationConfig,ai=_.gptCitationConfig,li=_.scannedDocCitationData,ri=_.ilCitationData,di=_.chatCitationData,si=_.gptCitationData,ci=_.webCitationData,ui=_.imageCitationData,gi=_.bqCitationData,vi=_.title,hi=_.citationIcon,Ci=_.isDualCitationFlag,mi=void 0!==Ci&&Ci,pi=o(!1),fi=pi[0],Di=pi[1];if($)return t("span",i({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[n("span",{children:Z}),n(g,{})]}));try{var Ti=new URL(Y,"http://example.com"),Ii=Ti.searchParams.get("citationNumber"),bi=Ti.searchParams.get("decisionStrength"),Pi=Ti.searchParams.get("citation_type"),Si=mi||Pi===I.DUAL;if(!Ii)return null;if(Pi===I.SCANNED_DOC){var _i=null==li?void 0:li.pages;if(null==_i?void 0:_i.length)return n(c,i({pages:_i,subHeadingText:null==li?void 0:li.artifactTitle},ni));b(null==li?void 0:li.gsUrl,"scanned_doc_citation","gs_url");var Li=[li.gsUrl],Ri=(null!==(L=null==li?void 0:li.highlightedCoordinates)&&void 0!==L?L:[]).map(function(i,t){return{pageIndex:t,bboxes:[i]}});return n(c,i({images:Li,highlights:Ri},ni))}if(Pi===I.IL){b(null==ri?void 0:ri.ilLearning,"IL","il_learning");var wi=Z||(null==ri?void 0:ri.linkText)||(null==ri?void 0:ri.citationSource)||String(null!==(R=null==ri?void 0:ri.citationNumber)&&void 0!==R?R:1);return n(u,{ilLearning:ri.ilLearning,ilLearningHighlights:null==ri?void 0:ri.ilLearningHighlights,comparisonHighlights:null==ri?void 0:ri.comparisonHighlights,decisionStrength:bi||(null==ri?void 0:ri.decisionStrength)||"",linkTitle:wi,onCitationToggle:null!=ii?ii:function(){},config:ei})}if(Pi===I.CHAT){var Ai=null!=ti?ti:{},Ui=null===(A=null!==(w=null==di?void 0:di.chatData)&&void 0!==w?w:[])||void 0===A?void 0:A.map(function(t){return i(i({},t),{timeStamp:s(t.timeStamp)})}),xi=!!(null==di?void 0:di.ruleBookContent);return n(m,{showRootContainer:null===(U=Ai.showRootContainer)||void 0===U||U,reversePanels:Ai.reversePanels,isRenderedCustomComponent:Ai.isRenderedCustomComponent,modalContainerStyle:Ai.modalContainerStyle,additionalData:Ai.additionalData,closePreview:Ai.closePreview,selectedIdFromReason:null!==(x=Ai.selectedIdFromReason)&&void 0!==x?x:void 0,rootContainer:i(i({},Ai.rootContainer),{relevanceScore:null==di?void 0:di.relevanceScore}),chatContainer:i(i({},Ai.chatContainer),{chatData:Ui,summarizedTab:i(i({},null===(j=Ai.chatContainer)||void 0===j?void 0:j.summarizedTab),{chip:i({isActive:!0,show:!0},null===(B=null===(y=Ai.chatContainer)||void 0===y?void 0:y.summarizedTab)||void 0===B?void 0:B.chip)}),detailedTab:i(i({},null===(k=Ai.chatContainer)||void 0===k?void 0:k.detailedTab),{chip:i({isActive:!1},null===(H=null===(G=Ai.chatContainer)||void 0===G?void 0:G.detailedTab)||void 0===H?void 0:H.chip)})}),ruleBookContainer:xi?i(i({},Ai.ruleBookContainer),{data:{content:di.ruleBookContent,highlighted_texts:null!==(E=null==di?void 0:di.ruleBookHighlights)&&void 0!==E?E:[]}}):void 0})}if(Pi===I.GPT){var ji=null==si?void 0:si.value,yi=null!==(O=null==ji?void 0:ji.text)&&void 0!==O?O:null===(N=null==si?void 0:si.dataSources)||void 0===N?void 0:N[0],Bi=null!==(W=null==ji?void 0:ji.label)&&void 0!==W?W:null===(F=null==si?void 0:si.trainingDataTitle)||void 0===F?void 0:F[0],ki=null!==(M=null==ji?void 0:ji.paraphrase)&&void 0!==M?M:null===(z=null==si?void 0:si.paraphrase)||void 0===z?void 0:z[0];P({data_sources:yi,training_data_title:Bi},I.GPT);var Gi={text:"",dataSource:yi,trainingDataTitle:Bi,paraphrase:ki},Hi=null!==(q=null==ai?void 0:ai.iconsConfig)&&void 0!==q?q:{ChevronDownIcon:e,ChevronUpIcon:a,MaximizeIcon:l,CloseIcon:r};return n(v,{item:Gi,headerTitle:null!==(Q=null==ai?void 0:ai.headerTitle)&&void 0!==Q?Q:"GPT - Gemini 3.5 Flash",iconsConfig:Hi,previewCallback:null==ai?void 0:ai.previewCallback,DocumentTitle:null==ai?void 0:ai.DocumentTitle,disableMaximize:Si})}if(Pi===I.WEB){!function(i,t,n){b(i,t,n);try{new URL(i)}catch(o){throw new Error("[ParentCitationComponent] ".concat(t,': "').concat(n,'" is not a valid URL: "').concat(i,'"'))}}(null==ci?void 0:ci.link,I.WEB,"link");var Ei=ci.link,Oi=Z||(null==ci?void 0:ci.citationSource)||Ei;return(null==ci?void 0:ci.screenshotUrl)?n(C,{url:Ei,label:Oi,gsUtilPath:null==ci?void 0:ci.gsUtilPath,signedUrl:ci.screenshotUrl,relevanceScore:null==ci?void 0:ci.relevanceScore,visitIcon:d,PreviewDialogCloseIcon:r}):n("a",i({href:Ei,target:"_blank",rel:"noreferrer"},{children:Oi}))}if(Pi===I.IMAGE)return P({gs_util_path:null==ui?void 0:ui.gsUtilPath,signed_url:null==ui?void 0:ui.signedUrl},I.IMAGE),n(h,{citationTitle:Z||(null==ui?void 0:ui.citationSource),gsUtilPath:null==ui?void 0:ui.gsUtilPath,signedUrl:null==ui?void 0:ui.signedUrl,relevanceScore:null==ui?void 0:ui.relevanceScore});if(Pi===I.BQ_DATA)return P({href_params:null==gi?void 0:gi.hrefParams,source_obj:null==gi?void 0:gi.sourceObj},I.BQ_DATA),n(T,i({hrefParams:gi.hrefParams,sourceObj:gi.sourceObj,showChevron:!1,defaultOpen:!0},{children:Z||""}));if(Pi===I.RULEBOOK){var Ni=Ii?parseInt(Ii,10):0;return n(p,{url:null!==(K=null==oi?void 0:oi.url)&&void 0!==K?K:"",data:{citationNumber:null!==(V=null===(J=null==oi?void 0:oi.data)||void 0===J?void 0:J.citationNumber)&&void 0!==V?V:Ni,fileDetails:null===(X=null==oi?void 0:oi.data)||void 0===X?void 0:X.fileDetails},msg:null==oi?void 0:oi.msg,citationIndex:null==oi?void 0:oi.citationIndex,guidelines:null==oi?void 0:oi.guidelines,additionalClassNames:null==oi?void 0:oi.additionalClassNames,headerTitle:null==oi?void 0:oi.headerTitle,InternalGptReasoningData:null==oi?void 0:oi.InternalGptReasoningData,isDataProvided:null==oi?void 0:oi.isDataProvided,textualContent:null==oi?void 0:oi.textualContent,phraseToHighlight:null==oi?void 0:oi.phraseToHighlight,IgptHeaderTitle:null==oi?void 0:oi.IgptHeaderTitle,isInternalGptReasoningLoading:null==oi?void 0:oi.isInternalGptReasoningLoading,onAccordionToggle:null==oi?void 0:oi.onAccordionToggle})}if(Pi===I.IL_RULEBOOK)return n(p,{headerTitle:null==oi?void 0:oi.headerTitle,InternalGptReasoningData:null==oi?void 0:oi.InternalGptReasoningData,isDataProvided:null==oi?void 0:oi.isDataProvided,textualContent:null==oi?void 0:oi.textualContent,phraseToHighlight:null==oi?void 0:oi.phraseToHighlight,IgptHeaderTitle:null==oi?void 0:oi.IgptHeaderTitle,onAccordionToggle:null==oi?void 0:oi.onAccordionToggle,isInternalGptReasoningLoading:null==oi?void 0:oi.isInternalGptReasoningLoading});if(Pi===I.DUAL){var Wi=Ti.searchParams.get("left_citation_type"),Fi=Ti.searchParams.get("right_citation_type");if(Wi===I.DUAL||Fi===I.DUAL)return console.error("left or right citation type cant be dual_citation"),null;var Mi=function(i,t){var n="".concat(i,"."),o="left"===i?"right.":"left.",e=new URLSearchParams;return Ti.searchParams.forEach(function(i,t){"citation_type"!==t&&"left_citation_type"!==t&&"right_citation_type"!==t&&(t.startsWith(n)||t.startsWith(o)||e.set(t,i))}),Ti.searchParams.forEach(function(i,t){t.startsWith(n)&&e.set(t.slice(n.length),i)}),t&&e.set("citation_type",t),"?".concat(e.toString())},zi=Mi("left",Wi),qi=Mi("right",Fi),Qi=Z||vi||"Source and Guidelines",Ki=function(i){switch(i){case I.SCANNED_DOC:return{scannedDocCitationData:li,scannedDocCitationConfig:ni};case I.IL:return{ilCitationData:ri,ilCitationConfig:ei};case I.CHAT:return{chatCitationData:di,chatCitationConfig:ti};case I.GPT:return{gptCitationData:si,gptCitationConfig:ai};case I.WEB:return{webCitationData:ci};case I.IMAGE:return{imageCitationData:ui};case I.BQ_DATA:return{bqCitationData:gi};case I.RULEBOOK:return{ruleBookCitationConfig:oi};default:return{}}};return n(f,{inLineCitation:!0,citationTitle:Qi,citationIcon:hi,isOpen:fi,onToggle:function(){return Di(function(i){return!i})},styles:{pillButton:{fontSize:"14px",margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}},citationComponent:n(D,{left:n(S,i({href:zi,onCitationToggle:ii},Ki(Wi),{isDualCitationFlag:!0})),right:n(S,i({href:qi,onCitationToggle:ii,isDualCitationFlag:!0},Ki(Fi))),header:{title:Qi,showDocIcon:!1},openInFullscreen:!0,fullscreenOnly:!0,onFullscreenClose:function(){return Di(!1)}})})}console.warn('[ParentCitationComponent] unhandled citation_type: "'.concat(Pi,'"'))}catch(i){return console.error(i),null}return null};export{S as default};
|
|
2
2
|
//# sourceMappingURL=ParentCitationComponent.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t={SCANNED_DOC:"scanned_doc_citation",IL:"IL",CHAT:"chat_citation",GPT:"gpt_citation",WEB:"web_citation",IMAGE:"image_citation",BQ_DATA:"bq_data",RULEBOOK:"rulebook_citation",IL_RULEBOOK:"il_rulebook_citation",DUAL:"dual_citation"};export{t as CITATION_TYPES};
|
|
2
|
+
//# sourceMappingURL=citationTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citationTypes.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,Fragment as t,jsx 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 n("svg",e({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[o("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"}),o("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},u=function(){return n("svg",e({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[o("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"}),o("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[o("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"}),o("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 o("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:o("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,F=C.onLeftWidthChange,y=C.openInFullscreen,E=void 0!==y&&y,S=C.onFullscreenClose,V=i(g),D=V[0],R=V[1],O=i(!1),P=O[0],Z=O[1],I=i(!1),T=I[0],W=I[1],j=i(!1),q=j[0],X=j[1],G=i(0),J=G[0],K=G[1],Q=i(0),U=Q[0],Y=Q[1],$=i(E),_=$[0],ee=$[1],ne=c(null),te=c(null),oe=c(null);a(function(){var e=ne.current;e&&(_?(e.showModal(),requestAnimationFrame(function(){if(oe.current){var e=oe.current.getBoundingClientRect().width;Y(e),R(g),W(!1),X(!1)}})):(e.close(),R(g),W(!1),X(!1),null==S||S()))},[_]),a(function(){var e=oe.current;if(e&&_){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){Y(t.contentRect.width)})});return t.observe(e),function(){cancelAnimationFrame(n),t.disconnect()}}},[_]),a(function(){var e=te.current;if(e){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){K(t.contentRect.width)})});return t.observe(e),K(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),t.disconnect()}}},[]);var ie=function(e){e.preventDefault(),Z(!0)};a(function(){var e=function(e){if(P){var n=_?oe.current:te.current;if(n){var t=n.getBoundingClientRect(),o=t.width,i=e.clientX-t.left;if(i>=N&&o-i-4>=H)R(i/o*100),null==F||F(i)}}},n=function(){Z(!1)};return P&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[P,_,N,H,F]);var ce=function(){T?(R(50),W(!1)):W(!0)},ae=function(){q?(R(50),X(!1)):X(!0)},re=_?U:J,le=D/100*re,de=re-le-4,se=_?500:250,ue=q?{flex:1}:{width:"".concat(D,"%")},he=!T&&le<=Math.max(N+10,se),ve=!q&&de<=Math.max(H+10,se),Ce=function(e){return e>=80?d.confidenceScoreHigh:e>=60?d.confidenceScoreMedium:d.confidenceScoreLow},fe="number"==typeof M?"".concat(M,"px"):M,me="number"==typeof b?"".concat(b,"px"):b;return n(t,{children:[n("div",e({ref:te,className:"".concat(d.container," ").concat(d.containerHorizontal," ").concat(k),style:{height:fe,width:me}},{children:[z&&n("div",e({className:d.header},{children:[n("div",e({className:d.headerLeft},{children:[z.showDocIcon&&o(r,{className:d.headerIcon}),o("div",e({className:d.headerTitle},{children:z.title&&o("span",e({className:d.headerTitleText},{children:z.title}))}))]})),n("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&n("div",e({className:"".concat(d.confidenceScore," ").concat(Ce(z.confidenceScore))},{children:[o("div",e({style:{width:"16px",height:"16px"}},{children:o(h,{})})),n("div",{children:[Math.round(z.confidenceScore),"%"]})]})),o("button",e({className:d.fullscreenButton,onClick:function(){return ee(!0)},title:"Open fullscreen"},{children:o(v,{})}))]}))]})),n("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal)},{children:[!T&&o("div",e({className:d.panel,style:ue},{children:f})),T&&o("button",e({onClick:ce,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:o(s,{})})),!T&&!q&&n("div",e({onMouseDown:ie,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(P?d.dividerDragging:d.dividerIdle)},{children:[o("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),he&&o("button",e({onClick:function(e){e.stopPropagation(),ce()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:o(u,{})})),ve&&o("button",e({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:o(s,{})}))]})),!q&&o("div",e({className:d.panel,style:{flex:1}},{children:m})),q&&o("button",e({onClick:ae,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:o(u,{})})),P&&o("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]})),o("dialog",e({ref:ne,className:d.dialogOverlay,onClose:function(){return ee(!1)}},{children:n("div",e({ref:oe,className:d.dialogContent},{children:[z&&n("div",e({className:d.header},{children:[n("div",e({className:d.headerLeft},{children:[z.showDocIcon&&o(r,{className:d.headerIcon}),o("div",e({className:d.headerTitle},{children:z.title&&o(t,{children:o("span",e({className:d.headerTitleText},{children:z.title}))})}))]})),n("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&n("div",e({className:"".concat(d.confidenceScore," ").concat(Ce(z.confidenceScore))},{children:[o("div",e({style:{width:"16px",height:"16px"}},{children:o(h,{})})),n("div",{children:[Math.round(z.confidenceScore),"%"]})]})),o("button",e({className:d.fullscreenButton,onClick:function(){return ee(!1)},title:"Close fullscreen"},{children:o(l,{size:20,color:"#5928ed"})}))]}))]})),n("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal," ").concat(d.dialogContentArea)},{children:[!T&&o("div",e({className:d.panel,style:ue},{children:f})),T&&o("button",e({onClick:ce,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:o(s,{})})),!T&&!q&&n("div",e({onMouseDown:ie,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(P?d.dividerDragging:d.dividerIdle)},{children:[o("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),he&&o("button",e({onClick:function(e){e.stopPropagation(),ce()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:o(u,{})})),ve&&o("button",e({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:o(s,{})}))]})),!q&&o("div",e({className:d.panel,style:{flex:1}},{children:m})),q&&o("button",e({onClick:ae,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:o(u,{})})),P&&o("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]}))}))]})};export{C as default};
|
|
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};
|
|
2
2
|
//# sourceMappingURL=SplitterCitationsComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as n}from"tslib";import{jsxs as e,jsx 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 s,Loader2 as d}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(" ")},m=function(n){return n.toLowerCase().replace(/[^a-z0-9]/g,"")},x=function(n,e){var i=n.map(m).filter(Boolean),t=e.map(m).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)},f=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})},I=function(m){m.index;var I=m.TextualGuideLines,p=m.HighlightedWords,b=m.InternalGptReasoningData,y=m.headerTitle,C=void 0===y?"Textual Guidelines":y,N=m.IgptHeaderTitle,T=void 0===N?"GPT - Gemini 3.1 Flash Lite":N,L=m.useVariantHighlight,k=void 0!==L&&L,w=m.fuzzyThreshold,A=void 0===w?.8:w,B=m.onAccordionToggle,z=m.isInternalGptReasoningLoading,V=void 0!==z&&z,G=m.themeTokens,_=m.classNames,R=m.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 s=0;s<=o.length-c;s++){var d=o.slice(s,s+c),g=x(t,d.map(function(n){return n.word}));g>=i&&r.push({startIndex:d[0].start,endIndex:d[d.length-1].end,score:g})}if(0===r.length)return[];r.sort(function(n,e){return e.score-n.score});for(var u=[],v=function(n){u.some(function(e){return n.startIndex<e.endIndex&&n.endIndex>e.startIndex})||u.push(n)},m=0,f=r;m<f.length;m++)v(f[m]);return u})(I,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:I.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=I.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),m=/^(Title|Description|Training-basis):\s*/i.exec(t);m&&(Z=0),a&&(Z+=1);var x=!!a,p=!!m,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)):x?$.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=x&&1===N.length&&N[0].startIndex<=C&&N[0].endIndex>=o;if(0===N.length)w(f(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:f(I.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:s},bodyHeight:"100%",disableMaximize:!0,index:B.highlightIndex})}),"expanded-".concat(B.highlightIndex))):G&&V&&$.push(e("div",n({className:g.loadingContainer},{children:[i(d,{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,x&&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 m=I.substring(D,l);H.push(i("span",{children:f(m)},"t-".concat(D)))}var x=t.highlightIndex===M,p=k?x?v(g.highlight,g.highlightActiveVariant,null==_?void 0:_.highlight,null==_?void 0:_.highlightActiveVariant):v(g.highlightVariant,null==_?void 0:_.highlightVariant):x?v(g.highlight,g.highlightActive,null==_?void 0:_.highlight,null==_?void 0:_.highlightActive):v(g.highlight,null==_?void 0:_.highlight),y=k?x?n(n({},null==R?void 0:R.highlight),null==R?void 0:R.highlightActiveVariant):n({},null==R?void 0:R.highlightVariant):x?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({display:"inline-flex",alignItems:"center",gap:"2px",cursor:"pointer"},y)},{children:[I.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:s},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(d,{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:f(I.substring(D,o))},"t-end-".concat(o))),H.length>0||S){var J=S?L:"".concat(L,"-tail");w(H,J,S)}}}),$)}))}))]}))};export{I as default};
|
|
2
2
|
//# sourceMappingURL=TextualGuideLinesComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={expandedContainer:"TextualGuidelines-module_expandedContainer__ku2Qy",expandedHeader:"TextualGuidelines-module_expandedHeader__5OOd1",headerTitle:"TextualGuidelines-module_headerTitle__6vpFm",headerActions:"TextualGuidelines-module_headerActions__tAYsZ",navCounter:"TextualGuidelines-module_navCounter__MbQnG",navButton:"TextualGuidelines-module_navButton__wpCGR",navButtonIcon:"TextualGuidelines-module_navButtonIcon__urm3b",contentArea:"TextualGuidelines-module_contentArea__2k4vh",contentInner:"TextualGuidelines-module_contentInner__2uMSz",blockLine:"TextualGuidelines-module_blockLine__f-gTN",headerLine:"TextualGuidelines-module_headerLine__Ic1ja",listItemLine:"TextualGuidelines-module_listItemLine__2E-57",listCounter:"TextualGuidelines-module_listCounter__Ws3UU",boldText:"TextualGuidelines-module_boldText__vZBdP",highlight:"TextualGuidelines-module_highlight__CGXvE",highlightActive:"TextualGuidelines-module_highlightActive__--Ns5",highlightVariant:"TextualGuidelines-module_highlightVariant__7YZ7W",highlightActiveVariant:"TextualGuidelines-module_highlightActiveVariant__6gPK9",highlightButton:"TextualGuidelines-module_highlightButton__zjZxQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".TextualGuidelines-module_expandedContainer__ku2Qy{background-color:var(--tg-container-bg,#0000);border:none;display:flex;flex-direction:column;height:100%;margin-left:var(--tg-container-margin-left,1rem)}.TextualGuidelines-module_expandedHeader__5OOd1{align-items:center;background-color:var(--tg-header-bg,#fff);border:var(--tg-header-border,none);display:flex;justify-content:space-between;padding:var(--tg-header-padding,.25rem .75rem)}.TextualGuidelines-module_headerTitle__6vpFm{background-color:var(--tg-header-title-bg,#fff);color:var(--tg-header-title-color,inherit);font-size:var(--tg-header-title-font-size,.875rem);font-weight:var(--tg-header-title-font-weight,400)}.TextualGuidelines-module_headerActions__tAYsZ{align-items:center;display:flex;gap:.5rem}.TextualGuidelines-module_navCounter__MbQnG{color:var(--tg-nav-counter-color,#888);font-size:var(--tg-nav-counter-font-size,12px)}.TextualGuidelines-module_navButton__wpCGR{align-items:center;background:var(--tg-nav-button-bg,#fff);border:1px solid var(--tg-nav-button-border,#ddd);border-radius:var(--tg-nav-button-border-radius,3px);cursor:pointer;display:flex;padding:2px 4px}.TextualGuidelines-module_navButton__wpCGR:disabled{cursor:not-allowed;opacity:.4}.TextualGuidelines-module_navButtonIcon__urm3b{color:var(--tg-nav-button-icon-color,#64748b)}.TextualGuidelines-module_contentArea__2k4vh{background-color:var(--tg-content-bg,#0000);border:1px solid var(--tg-content-border,#eee);border-radius:var(--tg-content-border-radius,4px);color:var(--tg-content-text-color,inherit);flex:1;height:auto;max-height:none;overflow-y:auto;padding:var(--tg-content-padding,1rem)}.TextualGuidelines-module_contentInner__2uMSz{line-height:var(--tg-content-line-height,1.5rem)}.TextualGuidelines-module_blockLine__f-gTN{display:block}.TextualGuidelines-module_headerLine__Ic1ja{display:block;font-weight:var(--tg-header-line-font-weight,400)}.TextualGuidelines-module_listItemLine__2E-57{display:block}.TextualGuidelines-module_listCounter__Ws3UU{display:inline-block;font-weight:var(--tg-list-counter-font-weight,500);text-align:left;width:var(--tg-list-counter-width,1.5rem)}.TextualGuidelines-module_boldText__vZBdP{font-weight:var(--tg-bold-text-font-weight,600)}.TextualGuidelines-module_highlight__CGXvE{background-color:var(--tg-highlight-bg,#fef08a);border-radius:var(--tg-highlight-border-radius,.25rem);color:var(--tg-highlight-color,inherit);padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightActive__--Ns5{background-color:var(--tg-highlight-active-bg,#fde047);border:1px solid var(--tg-highlight-active-border,#eab308);box-shadow:var(--tg-highlight-active-shadow,0 1px 2px 0 #0000000d);color:var(--tg-highlight-active-color,inherit)}.TextualGuidelines-module_highlightVariant__7YZ7W{background-color:var(--tg-highlight-variant-bg,#eef2ff);border-radius:var(--tg-highlight-border-radius,.25rem);color:var(--tg-highlight-variant-color,#6366f1);font-weight:500;padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightActiveVariant__6gPK9{background-color:var(--tg-highlight-variant-active-bg,#e0e7ff);border:1px solid var(--tg-highlight-variant-active-border,#5c75f4);box-shadow:0 1px 2px 0 #0000000d;color:var(--tg-highlight-variant-active-color,#6366f1);font-weight:500}.TextualGuidelines-module_highlightButton__zjZxQ{border:none;cursor:pointer;display:inline;font:inherit}"));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={expandedContainer:"TextualGuidelines-module_expandedContainer__ku2Qy",expandedHeader:"TextualGuidelines-module_expandedHeader__5OOd1",headerTitle:"TextualGuidelines-module_headerTitle__6vpFm",headerActions:"TextualGuidelines-module_headerActions__tAYsZ",navCounter:"TextualGuidelines-module_navCounter__MbQnG",navButton:"TextualGuidelines-module_navButton__wpCGR",navButtonIcon:"TextualGuidelines-module_navButtonIcon__urm3b",contentArea:"TextualGuidelines-module_contentArea__2k4vh",contentInner:"TextualGuidelines-module_contentInner__2uMSz",blockLine:"TextualGuidelines-module_blockLine__f-gTN",headerLine:"TextualGuidelines-module_headerLine__Ic1ja",listItemLine:"TextualGuidelines-module_listItemLine__2E-57",listCounter:"TextualGuidelines-module_listCounter__Ws3UU",highlightBlockRow:"TextualGuidelines-module_highlightBlockRow__SH9zT",highlightVariantRow:"TextualGuidelines-module_highlightVariantRow__rh6pM",boldText:"TextualGuidelines-module_boldText__vZBdP",loadingContainer:"TextualGuidelines-module_loadingContainer__QbqYw",spinnerIcon:"TextualGuidelines-module_spinnerIcon__a8skc",spin:"TextualGuidelines-module_spin__ZXbNj",highlight:"TextualGuidelines-module_highlight__CGXvE",highlightActive:"TextualGuidelines-module_highlightActive__--Ns5",highlightVariant:"TextualGuidelines-module_highlightVariant__7YZ7W",highlightActiveVariant:"TextualGuidelines-module_highlightActiveVariant__6gPK9",highlightButton:"TextualGuidelines-module_highlightButton__zjZxQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".TextualGuidelines-module_expandedContainer__ku2Qy{background-color:var(--tg-container-bg,#0000);border:none;display:flex;flex-direction:column;height:100%;margin-left:var(--tg-container-margin-left,1rem)}.TextualGuidelines-module_expandedHeader__5OOd1{align-items:center;background-color:var(--tg-header-bg,#fff);border:var(--tg-header-border,none);display:flex;justify-content:space-between;padding:var(--tg-header-padding,.25rem .75rem)}.TextualGuidelines-module_headerTitle__6vpFm{background-color:var(--tg-header-title-bg,#fff);color:var(--tg-header-title-color,inherit);font-size:var(--tg-header-title-font-size,.875rem);font-weight:var(--tg-header-title-font-weight,400)}.TextualGuidelines-module_headerActions__tAYsZ{align-items:center;display:flex;gap:.5rem}.TextualGuidelines-module_navCounter__MbQnG{color:var(--tg-nav-counter-color,#888);font-size:var(--tg-nav-counter-font-size,12px)}.TextualGuidelines-module_navButton__wpCGR{align-items:center;background:var(--tg-nav-button-bg,#fff);border:1px solid var(--tg-nav-button-border,#ddd);border-radius:var(--tg-nav-button-border-radius,3px);cursor:pointer;display:flex;padding:2px 4px}.TextualGuidelines-module_navButton__wpCGR:disabled{cursor:not-allowed;opacity:.4}.TextualGuidelines-module_navButtonIcon__urm3b{color:var(--tg-nav-button-icon-color,#64748b)}.TextualGuidelines-module_contentArea__2k4vh{background-color:var(--tg-content-bg,#0000);border:1px solid var(--tg-content-border,#eee);border-radius:var(--tg-content-border-radius,4px);color:var(--tg-content-text-color,inherit);flex:1;height:auto;max-height:none;overflow-y:auto;padding:var(--tg-content-padding,1rem)}.TextualGuidelines-module_contentInner__2uMSz{line-height:var(--tg-content-line-height,1.5rem)}.TextualGuidelines-module_blockLine__f-gTN{display:block}.TextualGuidelines-module_headerLine__Ic1ja{display:block;font-weight:var(--tg-header-line-font-weight,400)}.TextualGuidelines-module_listItemLine__2E-57{display:block}.TextualGuidelines-module_listCounter__Ws3UU{display:inline-block;font-weight:var(--tg-list-counter-font-weight,500);text-align:left;width:var(--tg-list-counter-width,1.5rem)}.TextualGuidelines-module_highlightBlockRow__SH9zT{background-color:#fef08a;border-radius:.375rem;cursor:pointer;margin:.125rem 0;padding:.375rem .5rem;transition:all .2s}.TextualGuidelines-module_highlightVariantRow__rh6pM{background-color:#eef2ff;border-radius:.375rem;color:#6366f1;cursor:pointer;font-weight:500;margin:.125rem 0;padding:.375rem .5rem;transition:all .2s}.TextualGuidelines-module_boldText__vZBdP{font-weight:var(--tg-bold-text-font-weight,600)}.TextualGuidelines-module_loadingContainer__QbqYw{align-items:center;color:#6b7280;display:flex;font-size:.875rem;gap:.5rem;margin-bottom:.5rem;margin-top:.5rem;padding:.75rem 1rem}.TextualGuidelines-module_spinnerIcon__a8skc{animation:TextualGuidelines-module_spin__ZXbNj 1s linear infinite}@keyframes TextualGuidelines-module_spin__ZXbNj{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.TextualGuidelines-module_highlight__CGXvE{background-color:var(--tg-highlight-bg,#fef08a);border-radius:var(--tg-highlight-border-radius,.25rem);color:var(--tg-highlight-color,inherit);padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightActive__--Ns5{background-color:var(--tg-highlight-active-bg,#fde047);border:1px solid var(--tg-highlight-active-border,#eab308);box-shadow:var(--tg-highlight-active-shadow,0 1px 2px 0 #0000000d);color:var(--tg-highlight-active-color,inherit)}.TextualGuidelines-module_highlightVariant__7YZ7W{background-color:var(--tg-highlight-variant-bg,#eef2ff);border-radius:var(--tg-highlight-border-radius,.25rem);box-decoration-break:clone;-webkit-box-decoration-break:clone;color:var(--tg-highlight-variant-color,#6366f1);font-weight:500;padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightActiveVariant__6gPK9{background-color:var(--tg-highlight-variant-active-bg,#e0e7ff);border:1px solid var(--tg-highlight-variant-active-border,#5c75f4);box-shadow:0 1px 2px 0 #0000000d;color:var(--tg-highlight-variant-active-color,#6366f1);font-weight:500}.TextualGuidelines-module_highlightButton__zjZxQ{border:none;cursor:pointer;display:inline;font:inherit}"));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=TextualGuidelines.module.css.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{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 ParentCitationComponent}from"./features/ParentCitationComponent/ParentCitationComponent.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";
|
|
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 ParentCitationComponent}from"./features/ParentCitationComponent/ParentCitationComponent.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveInternalgptCoreComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAChH,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,wCAAwC,CAAC;AAmBhD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,6BAA6B,CAAC;IAC5C,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAiBF,QAAA,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"CognitiveInternalgptCoreComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAChH,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,wCAAwC,CAAC;AAmBhD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,6BAA6B,CAAC;IAC5C,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAiBF,QAAA,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAmd9E,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
|
|
@@ -19,6 +19,8 @@ export type NonWebReasoningProps = {
|
|
|
19
19
|
headerTitle?: string;
|
|
20
20
|
previewCallback?: () => void;
|
|
21
21
|
DocumentTitle?: string;
|
|
22
|
+
disableMaximize?: boolean;
|
|
23
|
+
splitterCustomStyle?: boolean;
|
|
22
24
|
};
|
|
23
25
|
declare const InternalgptReasoningComponent: React.FC<NonWebReasoningProps>;
|
|
24
26
|
export default InternalgptReasoningComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAC,OAAO,CAAA;IACxB,mBAAmB,CAAC,EAAC,OAAO,CAAA;CAC7B,CAAC;AAEF,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsDjE,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SourceAttachment {
|
|
2
|
+
id: string;
|
|
3
|
+
gcsUrl?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
is_guideline_file?: boolean;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export type Guidelines = SourceAttachment[] | Record<string, SourceAttachment[]>;
|
|
9
|
+
export interface SignedUrlResponse {
|
|
10
|
+
responseData?: {
|
|
11
|
+
signed_url?: string;
|
|
12
|
+
};
|
|
13
|
+
signed_url?: string;
|
|
14
|
+
error?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function isJSONFile(extension?: string): boolean;
|
|
17
|
+
export declare function getSignedUrl(gcsUrl: string, url: string): Promise<SignedUrlResponse>;
|
|
18
|
+
export declare function getFileContent(filePath: string, url: string): Promise<string>;
|
|
19
|
+
export declare function getNestedValue(obj: any, path: string): any;
|
|
20
|
+
//# sourceMappingURL=RuleBookCitationApiComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleBookCitationApiComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/DualCitation/RuleBookCitationApiComponent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,UAAU,GAClB,gBAAgB,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,WAE5C;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAqB1F;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBnF;AAID,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAuB1D"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AccordionToggleParams } from "../TextualGuidelines/TextualGuideLinesComponent";
|
|
3
|
+
import { Guidelines } from "./RuleBookCitationApiComponent";
|
|
4
|
+
import { INonReasoningSource } from "../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent";
|
|
5
|
+
interface RuleBookCitationComponentProps {
|
|
6
|
+
data?: {
|
|
7
|
+
citationNumber: number;
|
|
8
|
+
fileDetails?: {
|
|
9
|
+
file_id: string;
|
|
10
|
+
phrase_to_highlight: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
msg?: any;
|
|
14
|
+
citationIndex?: number;
|
|
15
|
+
guidelines?: Guidelines;
|
|
16
|
+
url?: string;
|
|
17
|
+
additionalClassNames?: {
|
|
18
|
+
container?: string;
|
|
19
|
+
};
|
|
20
|
+
headerTitle?: string;
|
|
21
|
+
InternalGptReasoningData?: INonReasoningSource[];
|
|
22
|
+
isDataProvided?: boolean;
|
|
23
|
+
textualContent?: string;
|
|
24
|
+
phraseToHighlight?: string;
|
|
25
|
+
IgptHeaderTitle?: string;
|
|
26
|
+
onAccordionToggle?: (params: AccordionToggleParams) => void;
|
|
27
|
+
isInternalGptReasoningLoading?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const RuleBookCitationComponent: React.FC<RuleBookCitationComponentProps>;
|
|
30
|
+
export default RuleBookCitationComponent;
|
|
31
|
+
//# sourceMappingURL=RuleBookCitationComponent.d.ts.map
|
|
@@ -0,0 +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,CA+NvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SourcesBQCitation.tsx
|
|
3
|
+
*
|
|
4
|
+
* Simplified citation renderer: finds the right source by SKU ID,
|
|
5
|
+
* picks the citation entry by citationNumber, and renders ONLY the
|
|
6
|
+
* data table with column highlighting — no reasoning/gap/footer panels.
|
|
7
|
+
*
|
|
8
|
+
* URL shape:
|
|
9
|
+
* ./columnName=sku?citationNumber=1&citation_type=bq_data&sku_id=20QH20N5
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export interface SourcesBQHrefParams {
|
|
13
|
+
columnName: string;
|
|
14
|
+
citationNumber: string;
|
|
15
|
+
citationType: string;
|
|
16
|
+
skuId: string;
|
|
17
|
+
}
|
|
18
|
+
export type SourceCitationEntry = Record<string, any[]>;
|
|
19
|
+
export interface SourceObject {
|
|
20
|
+
citations: Record<string, SourceCitationEntry>;
|
|
21
|
+
gap: string;
|
|
22
|
+
score: number;
|
|
23
|
+
reasoning: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function parseSourcesBQHref(href: string): SourcesBQHrefParams | null;
|
|
26
|
+
export declare function findSourceCitation(sources: Record<string, SourceObject> | undefined | null, skuId: string): [string, SourceObject] | null;
|
|
27
|
+
interface SourcesBQCitationProps {
|
|
28
|
+
hrefParams: SourcesBQHrefParams;
|
|
29
|
+
sourceObj: SourceObject;
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
defaultOpen?: boolean;
|
|
32
|
+
showChevron?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const SourcesBQCitation: React.FC<SourcesBQCitationProps>;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=SourceBQDataCompnent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceBQDataCompnent.d.ts","sourceRoot":"","sources":["../../../../../src/features/DualCitation/SourceBQDataCompnent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CA2B3E;AAID,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,GAAG,IAAI,EACxD,KAAK,EAAE,MAAM,GACZ,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,IAAI,CA+B/B;AAmKD,UAAU,sBAAsB;IAC9B,UAAU,EAAE,mBAAmB,CAAC;IAChC,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmD9D,CAAC"}
|
package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ILRuleData, ILRuleHighlight, ComparisonHighlight } from './types/Types';
|
|
3
|
+
export interface ILCitationConfig {
|
|
4
|
+
citationIcon?: React.ReactNode;
|
|
5
|
+
chevronDownIcon?: React.ReactNode;
|
|
6
|
+
chevronUpIcon?: React.ReactNode;
|
|
7
|
+
slotStyles?: {
|
|
8
|
+
pillButton?: React.CSSProperties;
|
|
9
|
+
citationContent?: React.CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
2
12
|
type InstantLearningCitationProps = {
|
|
3
|
-
|
|
13
|
+
ilLearning: ILRuleData;
|
|
14
|
+
ilLearningHighlights?: ILRuleHighlight[];
|
|
15
|
+
comparisonHighlights?: ComparisonHighlight[];
|
|
16
|
+
decisionStrength?: string;
|
|
4
17
|
linkTitle: string;
|
|
5
18
|
onCitationToggle: (keys: string[], adId: string, isOpen: boolean) => void;
|
|
6
|
-
|
|
19
|
+
config?: ILCitationConfig;
|
|
7
20
|
};
|
|
8
21
|
declare const InstantLearningCitationWrapper: React.FC<InstantLearningCitationProps>;
|
|
9
22
|
export default InstantLearningCitationWrapper;
|