@e-llm-studio/requirement-ai 0.0.352 → 0.0.354

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("@mui/material"),s=require("lucide-react"),a=require("./ProjectTagSelector.module.css.js");exports.default=({selectedProjectTag:o,projectTags:c,isLoading:r=!1,onOpen:n,onProjectTagChange:i,triggerPrefix:d="Project : ",title:u="Modify the project tag for this requirement",controlled:j=!1,debounceMs:m=300,visibleItems:p=6,projectTagNameMaxLength:h=30,recentProjectTags:g=[],itemHeight:v=52,className:f="",width:x="460px",customStyles:y})=>{const N=t.useRef(null),[T,I]=t.useState(!1),[b,S]=t.useState(""),[k,C]=t.useState(""),[w,P]=t.useState(o);t.useEffect(()=>{P(o)},[o]),t.useEffect(()=>{const e=window.setTimeout(()=>{C(b.trim())},m);return()=>{window.clearTimeout(e)}},[b,m]),t.useEffect(()=>{if(!T)return;const e=e=>{N.current&&!N.current.contains(e.target)&&B()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[T]);const L=t.useCallback(()=>{I(!0),S(""),C(""),null==n||n()},[n]),B=t.useCallback(()=>{I(!1),S(""),C("")},[]),z=t.useCallback(e=>{j||P(e),null==i||i(e),B()},[j,B,i]),M=j?o:w,W=t.useMemo(()=>{if(!k)return c;const e=k.toLowerCase();return c.filter(t=>t.projectName.toLowerCase().includes(e))},[c,k]),q=t.useMemo(()=>new Set(g.map(e=>e.projectId)),[g]),$=p*v,E=M.projectName.length>h?`${M.projectName.slice(0,h)}...`:M.projectName;return e.jsxs("div",{ref:N,className:`${a.default.container} ${f}`,style:{width:x,...null==y?void 0:y.container},children:[e.jsxs("div",{className:a.default.trigger,style:null==y?void 0:y.trigger,children:[e.jsx("button",{type:"button",onClick:L,"aria-expanded":T,"aria-haspopup":"listbox",className:a.default.projectTagButton,style:null==y?void 0:y.projectTagButton,children:e.jsx(l.Tooltip,{title:M.projectName,placement:"top",arrow:!0,children:e.jsxs("span",{className:a.default.truncate,style:null==y?void 0:y.truncate,children:[d,E]})})}),e.jsx("button",{type:"button",onClick:L,"aria-label":"Modify Project Tag",className:a.default.editButton,style:null==y?void 0:y.editButton,children:e.jsx(s.Pencil,{size:20,strokeWidth:1.8,style:null==y?void 0:y.editIcon})})]}),T&&e.jsxs("div",{className:a.default.dropdown,style:{width:x,...null==y?void 0:y.dropdown},children:[e.jsxs("div",{className:a.default.header,style:null==y?void 0:y.header,children:[e.jsx("h3",{className:a.default.title,style:null==y?void 0:y.title,children:u}),e.jsx("button",{type:"button",onClick:B,"aria-label":"Close Project Tag selector",className:a.default.closeButton,style:null==y?void 0:y.closeButton,children:e.jsx(s.X,{size:22,strokeWidth:2,style:null==y?void 0:y.closeIcon})})]}),e.jsx("div",{className:a.default.searchSection,style:null==y?void 0:y.searchSection,children:e.jsxs("div",{className:a.default.searchWrapper,style:null==y?void 0:y.searchWrapper,children:[e.jsx(s.Search,{size:23,strokeWidth:1.7,className:a.default.searchIcon,style:null==y?void 0:y.searchIcon}),e.jsx("input",{type:"text",value:b,onChange:e=>S(e.target.value),placeholder:"Search Project",className:a.default.searchInput,style:null==y?void 0:y.searchInput}),b&&e.jsx("button",{type:"button",onClick:()=>S(""),"aria-label":"Clear Project Tag search",className:a.default.clearSearchButton,style:null==y?void 0:y.clearSearchButton,children:e.jsx(s.X,{size:17,style:null==y?void 0:y.clearSearchIcon})})]})}),e.jsxs("div",{className:a.default.projectTagList,style:{height:`${$}px`,...null==y?void 0:y.projectTagList},role:"listbox","aria-label":"Project Tags",children:[r&&0===c.length&&e.jsx("div",{className:a.default.emptyState,style:null==y?void 0:y.emptyState,children:e.jsxs("div",{className:a.default.loadingContent,style:null==y?void 0:y.loadingContent,children:[e.jsx(s.Loader2,{size:22,className:a.default.loadingIcon,style:null==y?void 0:y.loadingIcon}),e.jsx("span",{className:a.default.loadingText,style:null==y?void 0:y.loadingText,children:"Loading Project Tags..."})]})}),!r&&0===W.length&&e.jsx("div",{className:a.default.emptyState,style:null==y?void 0:y.emptyState,children:e.jsx("span",{className:a.default.noResultsText,style:null==y?void 0:y.noResultsText,children:"No Project Tags found"})}),W.map(t=>{const l=t.projectId===M.projectId,o=!l&&q.has(t.projectId);return e.jsxs("button",{type:"button",role:"option","aria-selected":l,onClick:()=>z(t),className:`${a.default.projectTagItem} ${l?a.default.projectTagItemSelected:""}`,style:{...null==y?void 0:y.projectTagItem,...l?null==y?void 0:y.projectTagItemSelected:{}},children:[e.jsx("span",{className:a.default.projectTagName,style:null==y?void 0:y.projectTagName,children:t.projectName}),l&&e.jsx(s.Check,{size:21,strokeWidth:2.5,className:a.default.checkIcon,style:null==y?void 0:y.checkIcon}),o&&e.jsx(s.Clock,{size:21,strokeWidth:2.5,className:a.default.clockIcon,style:null==y?void 0:y.clockIcon})]},t.projectId)})]})]})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("@mui/material"),s=require("lucide-react"),a=require("./ProjectTagSelector.module.css.js");exports.default=({selectedProjectTag:o,projectTags:c,isLoading:r=!1,onOpen:n,onProjectTagChange:i,onProjectTagRemove:d,triggerPrefix:u="Project : ",title:j="Modify the project tag for this requirement",controlled:m=!1,debounceMs:p=300,visibleItems:h=6,projectTagNameMaxLength:v=30,recentProjectTags:g=[],itemHeight:x=52,className:f="",width:y="460px",customStyles:N})=>{const T=t.useRef(null),[I,b]=t.useState(!1),[k,S]=t.useState(""),[P,C]=t.useState(""),[w,B]=t.useState(o);t.useEffect(()=>{B(o)},[o]),t.useEffect(()=>{const e=window.setTimeout(()=>{C(k.trim())},p);return()=>{window.clearTimeout(e)}},[k,p]),t.useEffect(()=>{if(!I)return;const e=e=>{T.current&&!T.current.contains(e.target)&&z()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[I]);const L=t.useCallback(()=>{b(!0),S(""),C(""),null==n||n()},[n]),z=t.useCallback(()=>{b(!1),S(""),C("")},[]),W=t.useCallback(e=>{m||B(e),null==i||i(e),z()},[m,z,i]),M=m?o:w,$=Boolean(d&&M.projectId),q=t.useCallback(()=>{z(),null==d||d(M)},[M,z,d]),E=t.useMemo(()=>{const e=P.toLowerCase();return c.filter(t=>(!$||t.projectId!==M.projectId)&&(!e||t.projectName.toLowerCase().includes(e)))},[c,P,$,M.projectId]),R=t.useMemo(()=>new Set(g.map(e=>e.projectId)),[g]),X=h*x,O=M.projectName.length>v?`${M.projectName.slice(0,v)}...`:M.projectName;return e.jsxs("div",{ref:T,className:`${a.default.container} ${f}`,style:{width:y,...null==N?void 0:N.container},children:[e.jsxs("div",{className:a.default.trigger,style:null==N?void 0:N.trigger,children:[e.jsx("button",{type:"button",onClick:L,"aria-expanded":I,"aria-haspopup":"listbox",className:a.default.projectTagButton,style:null==N?void 0:N.projectTagButton,children:e.jsx(l.Tooltip,{title:M.projectName,placement:"top",arrow:!0,children:e.jsxs("span",{className:a.default.truncate,style:null==N?void 0:N.truncate,children:[u,O]})})}),e.jsx("button",{type:"button",onClick:L,"aria-label":"Modify Project Tag",className:a.default.editButton,style:null==N?void 0:N.editButton,children:e.jsx(s.Pencil,{size:20,strokeWidth:1.8,style:null==N?void 0:N.editIcon})})]}),I&&e.jsxs("div",{className:a.default.dropdown,style:{width:y,...null==N?void 0:N.dropdown},children:[e.jsxs("div",{className:a.default.header,style:null==N?void 0:N.header,children:[e.jsx("h3",{className:a.default.title,style:null==N?void 0:N.title,children:j}),e.jsx("button",{type:"button",onClick:z,"aria-label":"Close Project Tag selector",className:a.default.closeButton,style:null==N?void 0:N.closeButton,children:e.jsx(s.X,{size:22,strokeWidth:2,style:null==N?void 0:N.closeIcon})})]}),e.jsx("div",{className:a.default.searchSection,style:null==N?void 0:N.searchSection,children:e.jsxs("div",{className:a.default.searchWrapper,style:null==N?void 0:N.searchWrapper,children:[e.jsx(s.Search,{size:23,strokeWidth:1.7,className:a.default.searchIcon,style:null==N?void 0:N.searchIcon}),e.jsx("input",{type:"text",value:k,onChange:e=>S(e.target.value),placeholder:"Search Project",className:a.default.searchInput,style:null==N?void 0:N.searchInput}),k&&e.jsx("button",{type:"button",onClick:()=>S(""),"aria-label":"Clear Project Tag search",className:a.default.clearSearchButton,style:null==N?void 0:N.clearSearchButton,children:e.jsx(s.X,{size:17,style:null==N?void 0:N.clearSearchIcon})})]})}),$&&e.jsx("div",{className:a.default.selectedProjectSection,style:null==N?void 0:N.selectedProjectSection,children:e.jsxs("div",{className:a.default.selectedProjectItem,style:null==N?void 0:N.selectedProjectItem,children:[e.jsx("span",{className:a.default.projectTagName,style:null==N?void 0:N.projectTagName,title:M.projectName,children:M.projectName}),e.jsx("button",{type:"button",onClick:q,"aria-label":`Remove ${M.projectName}`,className:a.default.removeButton,style:null==N?void 0:N.removeButton,children:e.jsx(s.X,{size:18,strokeWidth:1.8,style:null==N?void 0:N.removeIcon})})]})}),e.jsxs("div",{className:a.default.projectTagList,style:{height:`${X}px`,...null==N?void 0:N.projectTagList},role:"listbox","aria-label":"Project Tags",children:[r&&0===c.length&&e.jsx("div",{className:a.default.emptyState,style:null==N?void 0:N.emptyState,children:e.jsxs("div",{className:a.default.loadingContent,style:null==N?void 0:N.loadingContent,children:[e.jsx(s.Loader2,{size:22,className:a.default.loadingIcon,style:null==N?void 0:N.loadingIcon}),e.jsx("span",{className:a.default.loadingText,style:null==N?void 0:N.loadingText,children:"Loading Project Tags..."})]})}),!r&&0===E.length&&e.jsx("div",{className:a.default.emptyState,style:null==N?void 0:N.emptyState,children:e.jsx("span",{className:a.default.noResultsText,style:null==N?void 0:N.noResultsText,children:$?"No other Project Tags found":"No Project Tags found"})}),E.map(t=>{const l=t.projectId===M.projectId,o=!l&&R.has(t.projectId);return e.jsxs("button",{type:"button",role:"option","aria-selected":l,onClick:()=>W(t),className:`${a.default.projectTagItem} ${l?a.default.projectTagItemSelected:""}`,style:{...null==N?void 0:N.projectTagItem,...l?null==N?void 0:N.projectTagItemSelected:{}},children:[e.jsx("span",{className:a.default.projectTagName,style:null==N?void 0:N.projectTagName,children:t.projectName}),l&&e.jsx(s.Check,{size:21,strokeWidth:2.5,className:a.default.checkIcon,style:null==N?void 0:N.checkIcon}),o&&e.jsx(s.Clock,{size:21,strokeWidth:2.5,className:a.default.clockIcon,style:null==N?void 0:N.clockIcon})]},t.projectId)})]})]})]})};
2
2
  //# sourceMappingURL=ProjectTagSelector.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!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(".ProjectTagSelector-module_container__t7LHr{display:inline-block;position:relative;width:460px}.ProjectTagSelector-module_trigger__fDlEE{align-items:center;display:flex;gap:4px;justify-content:flex-end}.ProjectTagSelector-module_projectTagButton__PtZYL{align-items:center;background-color:#f8f5ff;border:0;border-radius:10px;color:#5b2dee;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:38px;padding:0 12px;transition:background-color .15s ease}.ProjectTagSelector-module_projectTagButton__PtZYL:hover{background-color:#f2edff}.ProjectTagSelector-module_clearSearchButton__4Auoi:focus-visible,.ProjectTagSelector-module_closeButton__ILTRX:focus-visible,.ProjectTagSelector-module_editButton__s-tEg:focus-visible,.ProjectTagSelector-module_projectTagButton__PtZYL:focus-visible,.ProjectTagSelector-module_projectTagItem__MIQRZ:focus-visible{outline:2px solid #a9b9d0;outline-offset:2px}.ProjectTagSelector-module_truncate__FEV94{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_editButton__s-tEg{align-items:center;background-color:#f8fafd;border:0;border-radius:10px;color:#53657d;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;transition:background-color .15s ease;width:44px}.ProjectTagSelector-module_editButton__s-tEg:hover{background-color:#f1f4f8}.ProjectTagSelector-module_dropdown__CHxVP{background-color:#fff;border:1px solid #e7eaf0;border-radius:18px;box-shadow:0 18px 45px #1e2a3c29;overflow:hidden;position:absolute;right:0;top:48px;width:460px;z-index:1000}.ProjectTagSelector-module_header__t2bVy{align-items:center;display:flex;height:76px;justify-content:space-between;padding:0 28px}.ProjectTagSelector-module_title__y8wH2{color:#273449;font-size:16px;font-weight:500;letter-spacing:-.3px;margin:0}.ProjectTagSelector-module_closeButton__ILTRX{align-items:center;background:#0000;border:0;border-radius:50%;color:#64748b;cursor:pointer;display:flex;flex-shrink:0;height:32px;justify-content:center;padding:0;transition:background-color .15s ease,color .15s ease;width:32px}.ProjectTagSelector-module_closeButton__ILTRX:hover{background-color:#f4f6f9;color:#334155}.ProjectTagSelector-module_searchSection__rtycx{border-bottom:1px solid #e8ebf0;padding:0 28px 20px}.ProjectTagSelector-module_searchWrapper__fEylK{align-items:center;background-color:#fff;border:1px solid #c9d5e5;border-radius:10px;box-shadow:0 1px 3px #1e293b14;display:flex;height:52px;position:relative;transition:border-color .15s ease,box-shadow .15s ease}.ProjectTagSelector-module_searchWrapper__fEylK:focus-within{border-color:#a9b9d0;box-shadow:0 0 0 1px #d7e0ed,0 1px 3px #1e293b14}.ProjectTagSelector-module_searchIcon__1wgpQ{color:#8ca0bb;left:16px;position:absolute}.ProjectTagSelector-module_searchInput__Iojau{background:#0000;border:0;border-radius:10px;color:#334155;font-size:12px;height:100%;outline:none;padding:0 48px 0 56px;width:100%}.ProjectTagSelector-module_searchInput__Iojau::placeholder{color:#667b99}.ProjectTagSelector-module_clearSearchButton__4Auoi{align-items:center;background:#0000;border:0;border-radius:50%;color:#718096;cursor:pointer;display:flex;height:28px;justify-content:center;padding:0;position:absolute;right:12px;width:28px}.ProjectTagSelector-module_clearSearchButton__4Auoi:hover{background-color:#f1f4f8}.ProjectTagSelector-module_projectTagList__h-OUL{overflow-y:auto;padding:16px 20px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar{width:6px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-track{background:#0000}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb{background-color:#d5dce7;border-radius:999px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb:hover{background-color:#bcc7d6}.ProjectTagSelector-module_emptyState__JhLBq{align-items:center;color:#64748b;display:flex;height:100%;justify-content:center}.ProjectTagSelector-module_loadingContent__flT2q{align-items:center;display:flex;gap:8px}.ProjectTagSelector-module_loadingIcon__D4Ay4{animation:ProjectTagSelector-module_spin__e7vzE 1s linear infinite;color:#5b2dee}.ProjectTagSelector-module_loadingText__Zsu0T{font-size:16px}.ProjectTagSelector-module_noResultsText__JL4lp{color:#718096;font-size:12px}.ProjectTagSelector-module_projectTagItem__MIQRZ{align-items:center;background-color:initial;border:0;border-radius:7px;color:#3c4d66;cursor:pointer;display:flex;font-size:12px;font-weight:400;height:52px;justify-content:space-between;margin-bottom:4px;padding:0 17px;text-align:left;transition:background-color .15s ease;width:100%}.ProjectTagSelector-module_projectTagItem__MIQRZ:hover{background-color:#f8f9fc}.ProjectTagSelector-module_projectTagItemSelected__tdK6K{background-color:#f5f2ff;color:#34445c}.ProjectTagSelector-module_projectTagItemSelected__tdK6K:hover{background-color:#f5f2ff}.ProjectTagSelector-module_projectTagName__BuIWw{min-width:0;overflow:hidden;padding-right:16px;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_checkIcon__zRc-c{color:#5b2dee;flex-shrink:0}.ProjectTagSelector-module_clockIcon__QhD-j{color:gray;flex-shrink:0}@keyframes ProjectTagSelector-module_spin__e7vzE{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={container:"ProjectTagSelector-module_container__t7LHr",trigger:"ProjectTagSelector-module_trigger__fDlEE",projectTagButton:"ProjectTagSelector-module_projectTagButton__PtZYL",editButton:"ProjectTagSelector-module_editButton__s-tEg",closeButton:"ProjectTagSelector-module_closeButton__ILTRX",clearSearchButton:"ProjectTagSelector-module_clearSearchButton__4Auoi",projectTagItem:"ProjectTagSelector-module_projectTagItem__MIQRZ",truncate:"ProjectTagSelector-module_truncate__FEV94",dropdown:"ProjectTagSelector-module_dropdown__CHxVP",header:"ProjectTagSelector-module_header__t2bVy",title:"ProjectTagSelector-module_title__y8wH2",searchSection:"ProjectTagSelector-module_searchSection__rtycx",searchWrapper:"ProjectTagSelector-module_searchWrapper__fEylK",searchIcon:"ProjectTagSelector-module_searchIcon__1wgpQ",searchInput:"ProjectTagSelector-module_searchInput__Iojau",projectTagList:"ProjectTagSelector-module_projectTagList__h-OUL",emptyState:"ProjectTagSelector-module_emptyState__JhLBq",loadingContent:"ProjectTagSelector-module_loadingContent__flT2q",loadingIcon:"ProjectTagSelector-module_loadingIcon__D4Ay4",spin:"ProjectTagSelector-module_spin__e7vzE",loadingText:"ProjectTagSelector-module_loadingText__Zsu0T",noResultsText:"ProjectTagSelector-module_noResultsText__JL4lp",projectTagItemSelected:"ProjectTagSelector-module_projectTagItemSelected__tdK6K",projectTagName:"ProjectTagSelector-module_projectTagName__BuIWw",checkIcon:"ProjectTagSelector-module_checkIcon__zRc-c",clockIcon:"ProjectTagSelector-module_clockIcon__QhD-j"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!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(".ProjectTagSelector-module_container__t7LHr{display:inline-block;position:relative;width:460px}.ProjectTagSelector-module_trigger__fDlEE{align-items:center;display:flex;gap:4px;justify-content:flex-end}.ProjectTagSelector-module_projectTagButton__PtZYL{align-items:center;background-color:#f8f5ff;border:0;border-radius:10px;color:#5b2dee;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:38px;padding:0 12px;transition:background-color .15s ease}.ProjectTagSelector-module_projectTagButton__PtZYL:hover{background-color:#f2edff}.ProjectTagSelector-module_clearSearchButton__4Auoi:focus-visible,.ProjectTagSelector-module_closeButton__ILTRX:focus-visible,.ProjectTagSelector-module_editButton__s-tEg:focus-visible,.ProjectTagSelector-module_projectTagButton__PtZYL:focus-visible,.ProjectTagSelector-module_projectTagItem__MIQRZ:focus-visible{outline:2px solid #a9b9d0;outline-offset:2px}.ProjectTagSelector-module_truncate__FEV94{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_editButton__s-tEg{align-items:center;background-color:#f8fafd;border:0;border-radius:10px;color:#53657d;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;transition:background-color .15s ease;width:44px}.ProjectTagSelector-module_editButton__s-tEg:hover{background-color:#f1f4f8}.ProjectTagSelector-module_dropdown__CHxVP{background-color:#fff;border:1px solid #e7eaf0;border-radius:18px;box-shadow:0 18px 45px #1e2a3c29;overflow:hidden;position:absolute;right:0;top:48px;width:460px;z-index:1000}.ProjectTagSelector-module_header__t2bVy{align-items:center;display:flex;height:76px;justify-content:space-between;padding:0 28px}.ProjectTagSelector-module_title__y8wH2{color:#273449;font-size:16px;font-weight:500;letter-spacing:-.3px;margin:0}.ProjectTagSelector-module_closeButton__ILTRX{align-items:center;background:#0000;border:0;border-radius:50%;color:#64748b;cursor:pointer;display:flex;flex-shrink:0;height:32px;justify-content:center;padding:0;transition:background-color .15s ease,color .15s ease;width:32px}.ProjectTagSelector-module_closeButton__ILTRX:hover{background-color:#f4f6f9;color:#334155}.ProjectTagSelector-module_searchSection__rtycx{border-bottom:1px solid #e8ebf0;padding:0 28px 20px}.ProjectTagSelector-module_searchWrapper__fEylK{align-items:center;background-color:#fff;border:1px solid #c9d5e5;border-radius:10px;box-shadow:0 1px 3px #1e293b14;display:flex;height:52px;position:relative;transition:border-color .15s ease,box-shadow .15s ease}.ProjectTagSelector-module_searchWrapper__fEylK:focus-within{border-color:#a9b9d0;box-shadow:0 0 0 1px #d7e0ed,0 1px 3px #1e293b14}.ProjectTagSelector-module_searchIcon__1wgpQ{color:#8ca0bb;left:16px;position:absolute}.ProjectTagSelector-module_searchInput__Iojau{background:#0000;border:0;border-radius:10px;color:#334155;font-size:12px;height:100%;outline:none;padding:0 48px 0 56px;width:100%}.ProjectTagSelector-module_searchInput__Iojau::placeholder{color:#667b99}.ProjectTagSelector-module_clearSearchButton__4Auoi{align-items:center;background:#0000;border:0;border-radius:50%;color:#718096;cursor:pointer;display:flex;height:28px;justify-content:center;padding:0;position:absolute;right:12px;width:28px}.ProjectTagSelector-module_clearSearchButton__4Auoi:hover{background-color:#f1f4f8}.ProjectTagSelector-module_selectedProjectSection__F3hlj{border-bottom:1px solid #e8ebf0;padding:12px 20px}.ProjectTagSelector-module_selectedProjectItem__jTw2p{align-items:center;background-color:#f5f2ff;border-radius:7px;color:#34445c;display:flex;font-size:12px;justify-content:space-between;min-height:36px;padding:0 12px}.ProjectTagSelector-module_removeButton__JH7lT{align-items:center;background:#0000;border:0;border-radius:4px;color:#ef4444;cursor:pointer;display:flex;flex-shrink:0;height:28px;justify-content:center;padding:0;width:28px}.ProjectTagSelector-module_removeButton__JH7lT:hover{background-color:#fee2e2}.ProjectTagSelector-module_removeButton__JH7lT:focus-visible{outline:2px solid #a9b9d0;outline-offset:2px}.ProjectTagSelector-module_projectTagList__h-OUL{overflow-y:auto;padding:16px 20px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar{width:6px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-track{background:#0000}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb{background-color:#d5dce7;border-radius:999px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb:hover{background-color:#bcc7d6}.ProjectTagSelector-module_emptyState__JhLBq{align-items:center;color:#64748b;display:flex;height:100%;justify-content:center}.ProjectTagSelector-module_loadingContent__flT2q{align-items:center;display:flex;gap:8px}.ProjectTagSelector-module_loadingIcon__D4Ay4{animation:ProjectTagSelector-module_spin__e7vzE 1s linear infinite;color:#5b2dee}.ProjectTagSelector-module_loadingText__Zsu0T{font-size:16px}.ProjectTagSelector-module_noResultsText__JL4lp{color:#718096;font-size:12px}.ProjectTagSelector-module_projectTagItem__MIQRZ{align-items:center;background-color:initial;border:0;border-radius:7px;color:#3c4d66;cursor:pointer;display:flex;font-size:12px;font-weight:400;height:52px;justify-content:space-between;margin-bottom:4px;padding:0 17px;text-align:left;transition:background-color .15s ease;width:100%}.ProjectTagSelector-module_projectTagItem__MIQRZ:hover{background-color:#f8f9fc}.ProjectTagSelector-module_projectTagItemSelected__tdK6K{background-color:#f5f2ff;color:#34445c}.ProjectTagSelector-module_projectTagItemSelected__tdK6K:hover{background-color:#f5f2ff}.ProjectTagSelector-module_projectTagName__BuIWw{min-width:0;overflow:hidden;padding-right:16px;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_checkIcon__zRc-c{color:#5b2dee;flex-shrink:0}.ProjectTagSelector-module_clockIcon__QhD-j{color:gray;flex-shrink:0}@keyframes ProjectTagSelector-module_spin__e7vzE{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={container:"ProjectTagSelector-module_container__t7LHr",trigger:"ProjectTagSelector-module_trigger__fDlEE",projectTagButton:"ProjectTagSelector-module_projectTagButton__PtZYL",editButton:"ProjectTagSelector-module_editButton__s-tEg",closeButton:"ProjectTagSelector-module_closeButton__ILTRX",clearSearchButton:"ProjectTagSelector-module_clearSearchButton__4Auoi",projectTagItem:"ProjectTagSelector-module_projectTagItem__MIQRZ",truncate:"ProjectTagSelector-module_truncate__FEV94",dropdown:"ProjectTagSelector-module_dropdown__CHxVP",header:"ProjectTagSelector-module_header__t2bVy",title:"ProjectTagSelector-module_title__y8wH2",searchSection:"ProjectTagSelector-module_searchSection__rtycx",searchWrapper:"ProjectTagSelector-module_searchWrapper__fEylK",searchIcon:"ProjectTagSelector-module_searchIcon__1wgpQ",searchInput:"ProjectTagSelector-module_searchInput__Iojau",selectedProjectSection:"ProjectTagSelector-module_selectedProjectSection__F3hlj",selectedProjectItem:"ProjectTagSelector-module_selectedProjectItem__jTw2p",removeButton:"ProjectTagSelector-module_removeButton__JH7lT",projectTagList:"ProjectTagSelector-module_projectTagList__h-OUL",emptyState:"ProjectTagSelector-module_emptyState__JhLBq",loadingContent:"ProjectTagSelector-module_loadingContent__flT2q",loadingIcon:"ProjectTagSelector-module_loadingIcon__D4Ay4",spin:"ProjectTagSelector-module_spin__e7vzE",loadingText:"ProjectTagSelector-module_loadingText__Zsu0T",noResultsText:"ProjectTagSelector-module_noResultsText__JL4lp",projectTagItemSelected:"ProjectTagSelector-module_projectTagItemSelected__tdK6K",projectTagName:"ProjectTagSelector-module_projectTagName__BuIWw",checkIcon:"ProjectTagSelector-module_checkIcon__zRc-c",clockIcon:"ProjectTagSelector-module_clockIcon__QhD-j"};
2
2
  //# sourceMappingURL=ProjectTagSelector.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react");function t(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}exports.useOnDemandCitation=function({baseCitations:n,requestId:o,user:e,bucketName:l,fetchOnDemandCitation:a,fileUrlList:d,getCitationEntryRequestId:u,formatLLMResponse:c}){const s=null!=n?n:{},r=i.useRef(s),[v,_]=i.useState(s);i.useEffect(()=>{_(i=>{var t,o;return{...n,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(t=null==n?void 0:n.file_citations)&&void 0!==t?t:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(o=null==n?void 0:n.audio_citations)&&void 0!==o?o:[]}})},[n]),i.useEffect(()=>{r.current=v},[v]);const f=i.useCallback((i,t)=>{var n,o,e,l,a,d,u,c,s,r,v,_,f,m,b,g,h,p,C,w,y,k,q,x;let I=null===(u=null===(d=null===(a=null===(l=null===(e=null===(o=null===(n=null==i?void 0:i.result)||void 0===n?void 0:n.citations)||void 0===o?void 0:o[0])||void 0===e?void 0:e.citations)||void 0===l?void 0:l[0])||void 0===a?void 0:a.customMetaData)||void 0===d?void 0:d.value)||void 0===u?void 0:u[0];if("audio_citation"===t||"audio_citations"===t)I=null===(s=null===(c=null==i?void 0:i.result)||void 0===c?void 0:c.citations)||void 0===s?void 0:s[0];else if("readfile_citations"===t||"readfile_citation"===t)I=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(t.includes("image_citation"))I=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(t.includes("web_citation")){const t=null===(C=null===(p=null===(h=null===(g=null===(b=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===b?void 0:b[0])||void 0===g?void 0:g.segments)||void 0===h?void 0:h[0])||void 0===p?void 0:p.urls)||void 0===C?void 0:C[0];I={citation_number:null===(k=null===(y=null===(w=null==i?void 0:i.result)||void 0===w?void 0:w.citations)||void 0===y?void 0:y[0])||void 0===k?void 0:k.citation_number,customMetadata:{screenshot_url:null==t?void 0:t.gcs_url,relevance_score:100,link:null==t?void 0:t.highlight_url,type:"web_citation"}}}else t.includes("scanned_doc_citation")&&(I=null===(x=null===(q=null==i?void 0:i.result)||void 0===q?void 0:q.citations)||void 0===x?void 0:x[0]);return I},[]),m=i.useCallback((i,t,n)=>{_(o=>{const e="audio_citation"===t||"audio_citations"===t?"audio_citations":t.includes("image_citation")?"image_citations":"readfile_citations"===t||"readfile_citation"===t?"readfile_citations":t.includes("web_citation")?"web_citations":t.includes("scanned_doc_citation")?"scanned_doc_citations":"file_citations",l=o[e]||[],a=l.findIndex(t=>String(t.citation_number)===i),d={...n,citation_number:i},u=a>=0?l.map((i,t)=>t===a?{...i,...d}:i):[...l,d];return{...o,[e]:u}})},[]);return{fetchOnDemandCitationHandler:i.useCallback((i,n,s,r,v,_)=>{const b=String(i);return new Promise((g,h)=>{(async()=>{var p,C,w,y,k,q,x,I,O,D;try{const h=null!==(p=null==e?void 0:e.accessToken)&&void 0!==p?p:"";if(!h)throw new Error("No auth token available for on-demand citation fetch");const N=null!==(C=sessionStorage.getItem("projectId"))&&void 0!==C?C:"";let $=r?[`${l}/projects/${N}/${r}`]:[];if(null==d?void 0:d.length){const i=d.find(i=>i.includes(null!=r?r:""));i&&($=[i])}const E=c&&s.includes("scanned_doc_citation")?c(n.reason,n.gap,Number(_)):"explanation"===v?null!==(w=null==n?void 0:n.explanation)&&void 0!==w?w:"":null!==(y=null==n?void 0:n.reason)&&void 0!==y?y:"",S=JSON.stringify({userName:null!==(k=null==e?void 0:e.name)&&void 0!==k?k:`${null!==(q=null==e?void 0:e.firstname)&&void 0!==q?q:""} ${null!==(x=null==e?void 0:e.lastname)&&void 0!==x?x:""}`.trim(),userEmailId:null!==(I=null==e?void 0:e.email)&&void 0!==I?I:""}),M=[{reason:E,title:"",description:"explanation"===v?null!==(O=null==n?void 0:n.explanation)&&void 0!==O?O:"":null!==(D=null==n?void 0:n.reason)&&void 0!==D?D:""}],R=s.includes("scanned_doc_citation")&&t?t(s):o;console.log("[useOnDemandCitation] fetching citation",{key:b,citationType:s,requestCitationType:R,requestId:o,files:$});const j=u?null==u?void 0:u(Number(i)):void 0,L=await a(j||o,R,i,E,h,M,$,S,r),T=f(L,s);T||console.error(`Failed to resolve on-demand citation ${b}`),T&&m(b,s,T),g(T)}catch(i){console.error("[useOnDemandCitation] error for citation",b,i),h(i)}})()})},[o,e,d]),libraryCitationsRef:r,libraryCitations:v}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react");exports.useOnDemandCitation=function({baseCitations:t,requestId:n,user:o,bucketName:e,fetchOnDemandCitation:l,fileUrlList:a,getCitationEntryRequestId:d,formatLLMResponse:u}){const c=null!=t?t:{},s=i.useRef(c),[r,v]=i.useState(c);i.useEffect(()=>{v(i=>{var n,o;return{...t,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(n=null==t?void 0:t.file_citations)&&void 0!==n?n:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(o=null==t?void 0:t.audio_citations)&&void 0!==o?o:[]}})},[t]),i.useEffect(()=>{s.current=r},[r]);const _=i.useCallback((i,t)=>{var n,o,e,l,a,d,u,c,s,r,v,_,f,m,b,g,h,p,C,k,w,y,q,x;let I=null===(u=null===(d=null===(a=null===(l=null===(e=null===(o=null===(n=null==i?void 0:i.result)||void 0===n?void 0:n.citations)||void 0===o?void 0:o[0])||void 0===e?void 0:e.citations)||void 0===l?void 0:l[0])||void 0===a?void 0:a.customMetaData)||void 0===d?void 0:d.value)||void 0===u?void 0:u[0];if("audio_citation"===t||"audio_citations"===t)I=null===(s=null===(c=null==i?void 0:i.result)||void 0===c?void 0:c.citations)||void 0===s?void 0:s[0];else if("readfile_citations"===t||"readfile_citation"===t)I=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(t.includes("image_citation"))I=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(t.includes("web_citation")){const t=null===(C=null===(p=null===(h=null===(g=null===(b=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===b?void 0:b[0])||void 0===g?void 0:g.segments)||void 0===h?void 0:h[0])||void 0===p?void 0:p.urls)||void 0===C?void 0:C[0];I={citation_number:null===(y=null===(w=null===(k=null==i?void 0:i.result)||void 0===k?void 0:k.citations)||void 0===w?void 0:w[0])||void 0===y?void 0:y.citation_number,customMetadata:{screenshot_url:null==t?void 0:t.gcs_url,relevance_score:100,link:null==t?void 0:t.highlight_url,type:"web_citation"}}}else t.includes("scanned_doc_citation")&&(I=null===(x=null===(q=null==i?void 0:i.result)||void 0===q?void 0:q.citations)||void 0===x?void 0:x[0]);return I},[]),f=i.useCallback((i,t,n)=>{v(o=>{const e="audio_citation"===t||"audio_citations"===t?"audio_citations":t.includes("image_citation")?"image_citations":"readfile_citations"===t||"readfile_citation"===t?"readfile_citations":t.includes("web_citation")?"web_citations":t.includes("scanned_doc_citation")?"scanned_doc_citations":"file_citations",l=o[e]||[],a=l.findIndex(t=>String(t.citation_number)===i),d={...n,citation_number:i},u=a>=0?l.map((i,t)=>t===a?{...i,...d}:i):[...l,d];return{...o,[e]:u}})},[]);return{fetchOnDemandCitationHandler:i.useCallback((i,t,c,s,r,v)=>{const m=String(i);return new Promise((b,g)=>{(async()=>{var h,p,C,k,w,y,q,x,I,O,D,N;try{const g=null!==(h=null==o?void 0:o.accessToken)&&void 0!==h?h:"";if(!g)throw new Error("No auth token available for on-demand citation fetch");const $=null!==(p=sessionStorage.getItem("projectId"))&&void 0!==p?p:"";let E=s?[`${e}/projects/${$}/${s}`]:[];if(null==a?void 0:a.length){const i=a.find(i=>i.includes(null!=s?s:""));i&&(E=[i])}const S=u&&c.includes("scanned_doc_citation")?u(t.reason,t.gap,Number(v)):"explanation"===r?null!==(C=null==t?void 0:t.explanation)&&void 0!==C?C:"":null!==(k=null==t?void 0:t.reason)&&void 0!==k?k:"",T=JSON.stringify({userName:null!==(w=null==o?void 0:o.name)&&void 0!==w?w:`${null!==(y=null==o?void 0:o.firstname)&&void 0!==y?y:""} ${null!==(q=null==o?void 0:o.lastname)&&void 0!==q?q:""}`.trim(),userEmailId:null!==(x=null==o?void 0:o.email)&&void 0!==x?x:"",authToken:null!==(I=null==o?void 0:o.accessToken)&&void 0!==I?I:""}),M=[{reason:S,title:"",description:"explanation"===r?null!==(O=null==t?void 0:t.explanation)&&void 0!==O?O:"":null!==(D=null==t?void 0:t.reason)&&void 0!==D?D:""}],R=null!==(N=function(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}(c))&&void 0!==N?N:c;console.log("[useOnDemandCitation] fetching citation",{key:m,citationType:c,requestCitationType:R,requestId:n,files:E});const j=d?null==d?void 0:d(Number(i)):void 0,L=await l(j||n,R,i,S,g,M,E,T,s),P=_(L,c);P||console.error(`Failed to resolve on-demand citation ${m}`),P&&f(m,c,P),b(P)}catch(i){console.error("[useOnDemandCitation] error for citation",m,i),g(i)}})()})},[n,o,a]),libraryCitationsRef:s,libraryCitations:r}};
2
2
  //# sourceMappingURL=useOnDemandCitation.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as l,useState as o,useEffect as a,useCallback as n,useMemo as c}from"react";import{Tooltip as r}from"@mui/material";import{Pencil as s,X as i,Search as d,Loader2 as u,Check as m,Clock as p}from"lucide-react";import h from"./ProjectTagSelector.module.css.js";const g=({selectedProjectTag:g,projectTags:v,isLoading:y=!1,onOpen:j,onProjectTagChange:N,triggerPrefix:T="Project : ",title:I="Modify the project tag for this requirement",controlled:b=!1,debounceMs:f=300,visibleItems:w=6,projectTagNameMaxLength:S=30,recentProjectTags:k=[],itemHeight:x=52,className:C="",width:P="460px",customStyles:L})=>{const B=l(null),[z,W]=o(!1),[$,M]=o(""),[E,R]=o(""),[q,H]=o(g);a(()=>{H(g)},[g]),a(()=>{const e=window.setTimeout(()=>{R($.trim())},f);return()=>{window.clearTimeout(e)}},[$,f]),a(()=>{if(!z)return;const e=e=>{B.current&&!B.current.contains(e.target)&&A()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[z]);const O=n(()=>{W(!0),M(""),R(""),null==j||j()},[j]),A=n(()=>{W(!1),M(""),R("")},[]),D=n(e=>{b||H(e),null==N||N(e),A()},[b,A,N]),F=b?g:q,G=c(()=>{if(!E)return v;const e=E.toLowerCase();return v.filter(t=>t.projectName.toLowerCase().includes(e))},[v,E]),J=c(()=>new Set(k.map(e=>e.projectId)),[k]),K=w*x,Q=F.projectName.length>S?`${F.projectName.slice(0,S)}...`:F.projectName;return e("div",{ref:B,className:`${h.container} ${C}`,style:{width:P,...null==L?void 0:L.container},children:[e("div",{className:h.trigger,style:null==L?void 0:L.trigger,children:[t("button",{type:"button",onClick:O,"aria-expanded":z,"aria-haspopup":"listbox",className:h.projectTagButton,style:null==L?void 0:L.projectTagButton,children:t(r,{title:F.projectName,placement:"top",arrow:!0,children:e("span",{className:h.truncate,style:null==L?void 0:L.truncate,children:[T,Q]})})}),t("button",{type:"button",onClick:O,"aria-label":"Modify Project Tag",className:h.editButton,style:null==L?void 0:L.editButton,children:t(s,{size:20,strokeWidth:1.8,style:null==L?void 0:L.editIcon})})]}),z&&e("div",{className:h.dropdown,style:{width:P,...null==L?void 0:L.dropdown},children:[e("div",{className:h.header,style:null==L?void 0:L.header,children:[t("h3",{className:h.title,style:null==L?void 0:L.title,children:I}),t("button",{type:"button",onClick:A,"aria-label":"Close Project Tag selector",className:h.closeButton,style:null==L?void 0:L.closeButton,children:t(i,{size:22,strokeWidth:2,style:null==L?void 0:L.closeIcon})})]}),t("div",{className:h.searchSection,style:null==L?void 0:L.searchSection,children:e("div",{className:h.searchWrapper,style:null==L?void 0:L.searchWrapper,children:[t(d,{size:23,strokeWidth:1.7,className:h.searchIcon,style:null==L?void 0:L.searchIcon}),t("input",{type:"text",value:$,onChange:e=>M(e.target.value),placeholder:"Search Project",className:h.searchInput,style:null==L?void 0:L.searchInput}),$&&t("button",{type:"button",onClick:()=>M(""),"aria-label":"Clear Project Tag search",className:h.clearSearchButton,style:null==L?void 0:L.clearSearchButton,children:t(i,{size:17,style:null==L?void 0:L.clearSearchIcon})})]})}),e("div",{className:h.projectTagList,style:{height:`${K}px`,...null==L?void 0:L.projectTagList},role:"listbox","aria-label":"Project Tags",children:[y&&0===v.length&&t("div",{className:h.emptyState,style:null==L?void 0:L.emptyState,children:e("div",{className:h.loadingContent,style:null==L?void 0:L.loadingContent,children:[t(u,{size:22,className:h.loadingIcon,style:null==L?void 0:L.loadingIcon}),t("span",{className:h.loadingText,style:null==L?void 0:L.loadingText,children:"Loading Project Tags..."})]})}),!y&&0===G.length&&t("div",{className:h.emptyState,style:null==L?void 0:L.emptyState,children:t("span",{className:h.noResultsText,style:null==L?void 0:L.noResultsText,children:"No Project Tags found"})}),G.map(l=>{const o=l.projectId===F.projectId,a=!o&&J.has(l.projectId);return e("button",{type:"button",role:"option","aria-selected":o,onClick:()=>D(l),className:`${h.projectTagItem} ${o?h.projectTagItemSelected:""}`,style:{...null==L?void 0:L.projectTagItem,...o?null==L?void 0:L.projectTagItemSelected:{}},children:[t("span",{className:h.projectTagName,style:null==L?void 0:L.projectTagName,children:l.projectName}),o&&t(m,{size:21,strokeWidth:2.5,className:h.checkIcon,style:null==L?void 0:L.checkIcon}),a&&t(p,{size:21,strokeWidth:2.5,className:h.clockIcon,style:null==L?void 0:L.clockIcon})]},l.projectId)})]})]})]})};export{g as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as l,useState as o,useEffect as c,useCallback as a,useMemo as n}from"react";import{Tooltip as r}from"@mui/material";import{Pencil as s,X as i,Search as d,Loader2 as u,Check as m,Clock as p}from"lucide-react";import h from"./ProjectTagSelector.module.css.js";const v=({selectedProjectTag:v,projectTags:j,isLoading:g=!1,onOpen:y,onProjectTagChange:N,onProjectTagRemove:T,triggerPrefix:I="Project : ",title:b="Modify the project tag for this requirement",controlled:P=!1,debounceMs:S=300,visibleItems:k=6,projectTagNameMaxLength:f=30,recentProjectTags:w=[],itemHeight:x=52,className:C="",width:B="460px",customStyles:L})=>{const z=l(null),[W,$]=o(!1),[M,R]=o(""),[E,q]=o(""),[H,O]=o(v);c(()=>{O(v)},[v]),c(()=>{const e=window.setTimeout(()=>{q(M.trim())},S);return()=>{window.clearTimeout(e)}},[M,S]),c(()=>{if(!W)return;const e=e=>{z.current&&!z.current.contains(e.target)&&D()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[W]);const A=a(()=>{$(!0),R(""),q(""),null==y||y()},[y]),D=a(()=>{$(!1),R(""),q("")},[]),F=a(e=>{P||O(e),null==N||N(e),D()},[P,D,N]),G=P?v:H,J=Boolean(T&&G.projectId),K=a(()=>{D(),null==T||T(G)},[G,D,T]),Q=n(()=>{const e=E.toLowerCase();return j.filter(t=>(!J||t.projectId!==G.projectId)&&(!e||t.projectName.toLowerCase().includes(e)))},[j,E,J,G.projectId]),U=n(()=>new Set(w.map(e=>e.projectId)),[w]),V=k*x,X=G.projectName.length>f?`${G.projectName.slice(0,f)}...`:G.projectName;return e("div",{ref:z,className:`${h.container} ${C}`,style:{width:B,...null==L?void 0:L.container},children:[e("div",{className:h.trigger,style:null==L?void 0:L.trigger,children:[t("button",{type:"button",onClick:A,"aria-expanded":W,"aria-haspopup":"listbox",className:h.projectTagButton,style:null==L?void 0:L.projectTagButton,children:t(r,{title:G.projectName,placement:"top",arrow:!0,children:e("span",{className:h.truncate,style:null==L?void 0:L.truncate,children:[I,X]})})}),t("button",{type:"button",onClick:A,"aria-label":"Modify Project Tag",className:h.editButton,style:null==L?void 0:L.editButton,children:t(s,{size:20,strokeWidth:1.8,style:null==L?void 0:L.editIcon})})]}),W&&e("div",{className:h.dropdown,style:{width:B,...null==L?void 0:L.dropdown},children:[e("div",{className:h.header,style:null==L?void 0:L.header,children:[t("h3",{className:h.title,style:null==L?void 0:L.title,children:b}),t("button",{type:"button",onClick:D,"aria-label":"Close Project Tag selector",className:h.closeButton,style:null==L?void 0:L.closeButton,children:t(i,{size:22,strokeWidth:2,style:null==L?void 0:L.closeIcon})})]}),t("div",{className:h.searchSection,style:null==L?void 0:L.searchSection,children:e("div",{className:h.searchWrapper,style:null==L?void 0:L.searchWrapper,children:[t(d,{size:23,strokeWidth:1.7,className:h.searchIcon,style:null==L?void 0:L.searchIcon}),t("input",{type:"text",value:M,onChange:e=>R(e.target.value),placeholder:"Search Project",className:h.searchInput,style:null==L?void 0:L.searchInput}),M&&t("button",{type:"button",onClick:()=>R(""),"aria-label":"Clear Project Tag search",className:h.clearSearchButton,style:null==L?void 0:L.clearSearchButton,children:t(i,{size:17,style:null==L?void 0:L.clearSearchIcon})})]})}),J&&t("div",{className:h.selectedProjectSection,style:null==L?void 0:L.selectedProjectSection,children:e("div",{className:h.selectedProjectItem,style:null==L?void 0:L.selectedProjectItem,children:[t("span",{className:h.projectTagName,style:null==L?void 0:L.projectTagName,title:G.projectName,children:G.projectName}),t("button",{type:"button",onClick:K,"aria-label":`Remove ${G.projectName}`,className:h.removeButton,style:null==L?void 0:L.removeButton,children:t(i,{size:18,strokeWidth:1.8,style:null==L?void 0:L.removeIcon})})]})}),e("div",{className:h.projectTagList,style:{height:`${V}px`,...null==L?void 0:L.projectTagList},role:"listbox","aria-label":"Project Tags",children:[g&&0===j.length&&t("div",{className:h.emptyState,style:null==L?void 0:L.emptyState,children:e("div",{className:h.loadingContent,style:null==L?void 0:L.loadingContent,children:[t(u,{size:22,className:h.loadingIcon,style:null==L?void 0:L.loadingIcon}),t("span",{className:h.loadingText,style:null==L?void 0:L.loadingText,children:"Loading Project Tags..."})]})}),!g&&0===Q.length&&t("div",{className:h.emptyState,style:null==L?void 0:L.emptyState,children:t("span",{className:h.noResultsText,style:null==L?void 0:L.noResultsText,children:J?"No other Project Tags found":"No Project Tags found"})}),Q.map(l=>{const o=l.projectId===G.projectId,c=!o&&U.has(l.projectId);return e("button",{type:"button",role:"option","aria-selected":o,onClick:()=>F(l),className:`${h.projectTagItem} ${o?h.projectTagItemSelected:""}`,style:{...null==L?void 0:L.projectTagItem,...o?null==L?void 0:L.projectTagItemSelected:{}},children:[t("span",{className:h.projectTagName,style:null==L?void 0:L.projectTagName,children:l.projectName}),o&&t(m,{size:21,strokeWidth:2.5,className:h.checkIcon,style:null==L?void 0:L.checkIcon}),c&&t(p,{size:21,strokeWidth:2.5,className:h.clockIcon,style:null==L?void 0:L.clockIcon})]},l.projectId)})]})]})]})};export{v as default};
2
2
  //# sourceMappingURL=ProjectTagSelector.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"ProjectTagSelector-module_container__t7LHr",trigger:"ProjectTagSelector-module_trigger__fDlEE",projectTagButton:"ProjectTagSelector-module_projectTagButton__PtZYL",editButton:"ProjectTagSelector-module_editButton__s-tEg",closeButton:"ProjectTagSelector-module_closeButton__ILTRX",clearSearchButton:"ProjectTagSelector-module_clearSearchButton__4Auoi",projectTagItem:"ProjectTagSelector-module_projectTagItem__MIQRZ",truncate:"ProjectTagSelector-module_truncate__FEV94",dropdown:"ProjectTagSelector-module_dropdown__CHxVP",header:"ProjectTagSelector-module_header__t2bVy",title:"ProjectTagSelector-module_title__y8wH2",searchSection:"ProjectTagSelector-module_searchSection__rtycx",searchWrapper:"ProjectTagSelector-module_searchWrapper__fEylK",searchIcon:"ProjectTagSelector-module_searchIcon__1wgpQ",searchInput:"ProjectTagSelector-module_searchInput__Iojau",projectTagList:"ProjectTagSelector-module_projectTagList__h-OUL",emptyState:"ProjectTagSelector-module_emptyState__JhLBq",loadingContent:"ProjectTagSelector-module_loadingContent__flT2q",loadingIcon:"ProjectTagSelector-module_loadingIcon__D4Ay4",spin:"ProjectTagSelector-module_spin__e7vzE",loadingText:"ProjectTagSelector-module_loadingText__Zsu0T",noResultsText:"ProjectTagSelector-module_noResultsText__JL4lp",projectTagItemSelected:"ProjectTagSelector-module_projectTagItemSelected__tdK6K",projectTagName:"ProjectTagSelector-module_projectTagName__BuIWw",checkIcon:"ProjectTagSelector-module_checkIcon__zRc-c",clockIcon:"ProjectTagSelector-module_clockIcon__QhD-j"};!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(".ProjectTagSelector-module_container__t7LHr{display:inline-block;position:relative;width:460px}.ProjectTagSelector-module_trigger__fDlEE{align-items:center;display:flex;gap:4px;justify-content:flex-end}.ProjectTagSelector-module_projectTagButton__PtZYL{align-items:center;background-color:#f8f5ff;border:0;border-radius:10px;color:#5b2dee;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:38px;padding:0 12px;transition:background-color .15s ease}.ProjectTagSelector-module_projectTagButton__PtZYL:hover{background-color:#f2edff}.ProjectTagSelector-module_clearSearchButton__4Auoi:focus-visible,.ProjectTagSelector-module_closeButton__ILTRX:focus-visible,.ProjectTagSelector-module_editButton__s-tEg:focus-visible,.ProjectTagSelector-module_projectTagButton__PtZYL:focus-visible,.ProjectTagSelector-module_projectTagItem__MIQRZ:focus-visible{outline:2px solid #a9b9d0;outline-offset:2px}.ProjectTagSelector-module_truncate__FEV94{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_editButton__s-tEg{align-items:center;background-color:#f8fafd;border:0;border-radius:10px;color:#53657d;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;transition:background-color .15s ease;width:44px}.ProjectTagSelector-module_editButton__s-tEg:hover{background-color:#f1f4f8}.ProjectTagSelector-module_dropdown__CHxVP{background-color:#fff;border:1px solid #e7eaf0;border-radius:18px;box-shadow:0 18px 45px #1e2a3c29;overflow:hidden;position:absolute;right:0;top:48px;width:460px;z-index:1000}.ProjectTagSelector-module_header__t2bVy{align-items:center;display:flex;height:76px;justify-content:space-between;padding:0 28px}.ProjectTagSelector-module_title__y8wH2{color:#273449;font-size:16px;font-weight:500;letter-spacing:-.3px;margin:0}.ProjectTagSelector-module_closeButton__ILTRX{align-items:center;background:#0000;border:0;border-radius:50%;color:#64748b;cursor:pointer;display:flex;flex-shrink:0;height:32px;justify-content:center;padding:0;transition:background-color .15s ease,color .15s ease;width:32px}.ProjectTagSelector-module_closeButton__ILTRX:hover{background-color:#f4f6f9;color:#334155}.ProjectTagSelector-module_searchSection__rtycx{border-bottom:1px solid #e8ebf0;padding:0 28px 20px}.ProjectTagSelector-module_searchWrapper__fEylK{align-items:center;background-color:#fff;border:1px solid #c9d5e5;border-radius:10px;box-shadow:0 1px 3px #1e293b14;display:flex;height:52px;position:relative;transition:border-color .15s ease,box-shadow .15s ease}.ProjectTagSelector-module_searchWrapper__fEylK:focus-within{border-color:#a9b9d0;box-shadow:0 0 0 1px #d7e0ed,0 1px 3px #1e293b14}.ProjectTagSelector-module_searchIcon__1wgpQ{color:#8ca0bb;left:16px;position:absolute}.ProjectTagSelector-module_searchInput__Iojau{background:#0000;border:0;border-radius:10px;color:#334155;font-size:12px;height:100%;outline:none;padding:0 48px 0 56px;width:100%}.ProjectTagSelector-module_searchInput__Iojau::placeholder{color:#667b99}.ProjectTagSelector-module_clearSearchButton__4Auoi{align-items:center;background:#0000;border:0;border-radius:50%;color:#718096;cursor:pointer;display:flex;height:28px;justify-content:center;padding:0;position:absolute;right:12px;width:28px}.ProjectTagSelector-module_clearSearchButton__4Auoi:hover{background-color:#f1f4f8}.ProjectTagSelector-module_projectTagList__h-OUL{overflow-y:auto;padding:16px 20px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar{width:6px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-track{background:#0000}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb{background-color:#d5dce7;border-radius:999px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb:hover{background-color:#bcc7d6}.ProjectTagSelector-module_emptyState__JhLBq{align-items:center;color:#64748b;display:flex;height:100%;justify-content:center}.ProjectTagSelector-module_loadingContent__flT2q{align-items:center;display:flex;gap:8px}.ProjectTagSelector-module_loadingIcon__D4Ay4{animation:ProjectTagSelector-module_spin__e7vzE 1s linear infinite;color:#5b2dee}.ProjectTagSelector-module_loadingText__Zsu0T{font-size:16px}.ProjectTagSelector-module_noResultsText__JL4lp{color:#718096;font-size:12px}.ProjectTagSelector-module_projectTagItem__MIQRZ{align-items:center;background-color:initial;border:0;border-radius:7px;color:#3c4d66;cursor:pointer;display:flex;font-size:12px;font-weight:400;height:52px;justify-content:space-between;margin-bottom:4px;padding:0 17px;text-align:left;transition:background-color .15s ease;width:100%}.ProjectTagSelector-module_projectTagItem__MIQRZ:hover{background-color:#f8f9fc}.ProjectTagSelector-module_projectTagItemSelected__tdK6K{background-color:#f5f2ff;color:#34445c}.ProjectTagSelector-module_projectTagItemSelected__tdK6K:hover{background-color:#f5f2ff}.ProjectTagSelector-module_projectTagName__BuIWw{min-width:0;overflow:hidden;padding-right:16px;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_checkIcon__zRc-c{color:#5b2dee;flex-shrink:0}.ProjectTagSelector-module_clockIcon__QhD-j{color:gray;flex-shrink:0}@keyframes ProjectTagSelector-module_spin__e7vzE{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
1
+ var e={container:"ProjectTagSelector-module_container__t7LHr",trigger:"ProjectTagSelector-module_trigger__fDlEE",projectTagButton:"ProjectTagSelector-module_projectTagButton__PtZYL",editButton:"ProjectTagSelector-module_editButton__s-tEg",closeButton:"ProjectTagSelector-module_closeButton__ILTRX",clearSearchButton:"ProjectTagSelector-module_clearSearchButton__4Auoi",projectTagItem:"ProjectTagSelector-module_projectTagItem__MIQRZ",truncate:"ProjectTagSelector-module_truncate__FEV94",dropdown:"ProjectTagSelector-module_dropdown__CHxVP",header:"ProjectTagSelector-module_header__t2bVy",title:"ProjectTagSelector-module_title__y8wH2",searchSection:"ProjectTagSelector-module_searchSection__rtycx",searchWrapper:"ProjectTagSelector-module_searchWrapper__fEylK",searchIcon:"ProjectTagSelector-module_searchIcon__1wgpQ",searchInput:"ProjectTagSelector-module_searchInput__Iojau",selectedProjectSection:"ProjectTagSelector-module_selectedProjectSection__F3hlj",selectedProjectItem:"ProjectTagSelector-module_selectedProjectItem__jTw2p",removeButton:"ProjectTagSelector-module_removeButton__JH7lT",projectTagList:"ProjectTagSelector-module_projectTagList__h-OUL",emptyState:"ProjectTagSelector-module_emptyState__JhLBq",loadingContent:"ProjectTagSelector-module_loadingContent__flT2q",loadingIcon:"ProjectTagSelector-module_loadingIcon__D4Ay4",spin:"ProjectTagSelector-module_spin__e7vzE",loadingText:"ProjectTagSelector-module_loadingText__Zsu0T",noResultsText:"ProjectTagSelector-module_noResultsText__JL4lp",projectTagItemSelected:"ProjectTagSelector-module_projectTagItemSelected__tdK6K",projectTagName:"ProjectTagSelector-module_projectTagName__BuIWw",checkIcon:"ProjectTagSelector-module_checkIcon__zRc-c",clockIcon:"ProjectTagSelector-module_clockIcon__QhD-j"};!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(".ProjectTagSelector-module_container__t7LHr{display:inline-block;position:relative;width:460px}.ProjectTagSelector-module_trigger__fDlEE{align-items:center;display:flex;gap:4px;justify-content:flex-end}.ProjectTagSelector-module_projectTagButton__PtZYL{align-items:center;background-color:#f8f5ff;border:0;border-radius:10px;color:#5b2dee;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:38px;padding:0 12px;transition:background-color .15s ease}.ProjectTagSelector-module_projectTagButton__PtZYL:hover{background-color:#f2edff}.ProjectTagSelector-module_clearSearchButton__4Auoi:focus-visible,.ProjectTagSelector-module_closeButton__ILTRX:focus-visible,.ProjectTagSelector-module_editButton__s-tEg:focus-visible,.ProjectTagSelector-module_projectTagButton__PtZYL:focus-visible,.ProjectTagSelector-module_projectTagItem__MIQRZ:focus-visible{outline:2px solid #a9b9d0;outline-offset:2px}.ProjectTagSelector-module_truncate__FEV94{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_editButton__s-tEg{align-items:center;background-color:#f8fafd;border:0;border-radius:10px;color:#53657d;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;transition:background-color .15s ease;width:44px}.ProjectTagSelector-module_editButton__s-tEg:hover{background-color:#f1f4f8}.ProjectTagSelector-module_dropdown__CHxVP{background-color:#fff;border:1px solid #e7eaf0;border-radius:18px;box-shadow:0 18px 45px #1e2a3c29;overflow:hidden;position:absolute;right:0;top:48px;width:460px;z-index:1000}.ProjectTagSelector-module_header__t2bVy{align-items:center;display:flex;height:76px;justify-content:space-between;padding:0 28px}.ProjectTagSelector-module_title__y8wH2{color:#273449;font-size:16px;font-weight:500;letter-spacing:-.3px;margin:0}.ProjectTagSelector-module_closeButton__ILTRX{align-items:center;background:#0000;border:0;border-radius:50%;color:#64748b;cursor:pointer;display:flex;flex-shrink:0;height:32px;justify-content:center;padding:0;transition:background-color .15s ease,color .15s ease;width:32px}.ProjectTagSelector-module_closeButton__ILTRX:hover{background-color:#f4f6f9;color:#334155}.ProjectTagSelector-module_searchSection__rtycx{border-bottom:1px solid #e8ebf0;padding:0 28px 20px}.ProjectTagSelector-module_searchWrapper__fEylK{align-items:center;background-color:#fff;border:1px solid #c9d5e5;border-radius:10px;box-shadow:0 1px 3px #1e293b14;display:flex;height:52px;position:relative;transition:border-color .15s ease,box-shadow .15s ease}.ProjectTagSelector-module_searchWrapper__fEylK:focus-within{border-color:#a9b9d0;box-shadow:0 0 0 1px #d7e0ed,0 1px 3px #1e293b14}.ProjectTagSelector-module_searchIcon__1wgpQ{color:#8ca0bb;left:16px;position:absolute}.ProjectTagSelector-module_searchInput__Iojau{background:#0000;border:0;border-radius:10px;color:#334155;font-size:12px;height:100%;outline:none;padding:0 48px 0 56px;width:100%}.ProjectTagSelector-module_searchInput__Iojau::placeholder{color:#667b99}.ProjectTagSelector-module_clearSearchButton__4Auoi{align-items:center;background:#0000;border:0;border-radius:50%;color:#718096;cursor:pointer;display:flex;height:28px;justify-content:center;padding:0;position:absolute;right:12px;width:28px}.ProjectTagSelector-module_clearSearchButton__4Auoi:hover{background-color:#f1f4f8}.ProjectTagSelector-module_selectedProjectSection__F3hlj{border-bottom:1px solid #e8ebf0;padding:12px 20px}.ProjectTagSelector-module_selectedProjectItem__jTw2p{align-items:center;background-color:#f5f2ff;border-radius:7px;color:#34445c;display:flex;font-size:12px;justify-content:space-between;min-height:36px;padding:0 12px}.ProjectTagSelector-module_removeButton__JH7lT{align-items:center;background:#0000;border:0;border-radius:4px;color:#ef4444;cursor:pointer;display:flex;flex-shrink:0;height:28px;justify-content:center;padding:0;width:28px}.ProjectTagSelector-module_removeButton__JH7lT:hover{background-color:#fee2e2}.ProjectTagSelector-module_removeButton__JH7lT:focus-visible{outline:2px solid #a9b9d0;outline-offset:2px}.ProjectTagSelector-module_projectTagList__h-OUL{overflow-y:auto;padding:16px 20px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar{width:6px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-track{background:#0000}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb{background-color:#d5dce7;border-radius:999px}.ProjectTagSelector-module_projectTagList__h-OUL::-webkit-scrollbar-thumb:hover{background-color:#bcc7d6}.ProjectTagSelector-module_emptyState__JhLBq{align-items:center;color:#64748b;display:flex;height:100%;justify-content:center}.ProjectTagSelector-module_loadingContent__flT2q{align-items:center;display:flex;gap:8px}.ProjectTagSelector-module_loadingIcon__D4Ay4{animation:ProjectTagSelector-module_spin__e7vzE 1s linear infinite;color:#5b2dee}.ProjectTagSelector-module_loadingText__Zsu0T{font-size:16px}.ProjectTagSelector-module_noResultsText__JL4lp{color:#718096;font-size:12px}.ProjectTagSelector-module_projectTagItem__MIQRZ{align-items:center;background-color:initial;border:0;border-radius:7px;color:#3c4d66;cursor:pointer;display:flex;font-size:12px;font-weight:400;height:52px;justify-content:space-between;margin-bottom:4px;padding:0 17px;text-align:left;transition:background-color .15s ease;width:100%}.ProjectTagSelector-module_projectTagItem__MIQRZ:hover{background-color:#f8f9fc}.ProjectTagSelector-module_projectTagItemSelected__tdK6K{background-color:#f5f2ff;color:#34445c}.ProjectTagSelector-module_projectTagItemSelected__tdK6K:hover{background-color:#f5f2ff}.ProjectTagSelector-module_projectTagName__BuIWw{min-width:0;overflow:hidden;padding-right:16px;text-overflow:ellipsis;white-space:nowrap}.ProjectTagSelector-module_checkIcon__zRc-c{color:#5b2dee;flex-shrink:0}.ProjectTagSelector-module_clockIcon__QhD-j{color:gray;flex-shrink:0}@keyframes ProjectTagSelector-module_spin__e7vzE{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=ProjectTagSelector.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{useRef as i,useState as n,useEffect as t,useCallback as o}from"react";function l(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}function e({baseCitations:e,requestId:a,user:d,bucketName:c,fetchOnDemandCitation:u,fileUrlList:s,getCitationEntryRequestId:r,formatLLMResponse:v}){const _=null!=e?e:{},f=i(_),[m,g]=n(_);t(()=>{g(i=>{var n,t;return{...e,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(n=null==e?void 0:e.file_citations)&&void 0!==n?n:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(t=null==e?void 0:e.audio_citations)&&void 0!==t?t:[]}})},[e]),t(()=>{f.current=m},[m]);const b=o((i,n)=>{var t,o,l,e,a,d,c,u,s,r,v,_,f,m,g,b,h,p,w,y,C,I,k,q;let x=null===(c=null===(d=null===(a=null===(e=null===(l=null===(o=null===(t=null==i?void 0:i.result)||void 0===t?void 0:t.citations)||void 0===o?void 0:o[0])||void 0===l?void 0:l.citations)||void 0===e?void 0:e[0])||void 0===a?void 0:a.customMetaData)||void 0===d?void 0:d.value)||void 0===c?void 0:c[0];if("audio_citation"===n||"audio_citations"===n)x=null===(s=null===(u=null==i?void 0:i.result)||void 0===u?void 0:u.citations)||void 0===s?void 0:s[0];else if("readfile_citations"===n||"readfile_citation"===n)x=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(n.includes("image_citation"))x=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(n.includes("web_citation")){const n=null===(w=null===(p=null===(h=null===(b=null===(g=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===g?void 0:g[0])||void 0===b?void 0:b.segments)||void 0===h?void 0:h[0])||void 0===p?void 0:p.urls)||void 0===w?void 0:w[0];x={citation_number:null===(I=null===(C=null===(y=null==i?void 0:i.result)||void 0===y?void 0:y.citations)||void 0===C?void 0:C[0])||void 0===I?void 0:I.citation_number,customMetadata:{screenshot_url:null==n?void 0:n.gcs_url,relevance_score:100,link:null==n?void 0:n.highlight_url,type:"web_citation"}}}else n.includes("scanned_doc_citation")&&(x=null===(q=null===(k=null==i?void 0:i.result)||void 0===k?void 0:k.citations)||void 0===q?void 0:q[0]);return x},[]),h=o((i,n,t)=>{g(o=>{const l="audio_citation"===n||"audio_citations"===n?"audio_citations":n.includes("image_citation")?"image_citations":"readfile_citations"===n||"readfile_citation"===n?"readfile_citations":n.includes("web_citation")?"web_citations":n.includes("scanned_doc_citation")?"scanned_doc_citations":"file_citations",e=o[l]||[],a=e.findIndex(n=>String(n.citation_number)===i),d={...t,citation_number:i},c=a>=0?e.map((i,n)=>n===a?{...i,...d}:i):[...e,d];return{...o,[l]:c}})},[]);return{fetchOnDemandCitationHandler:o((i,n,t,o,e,_)=>{const f=String(i);return new Promise((m,g)=>{(async()=>{var p,w,y,C,I,k,q,x,N,$;try{const g=null!==(p=null==d?void 0:d.accessToken)&&void 0!==p?p:"";if(!g)throw new Error("No auth token available for on-demand citation fetch");const D=null!==(w=sessionStorage.getItem("projectId"))&&void 0!==w?w:"";let O=o?[`${c}/projects/${D}/${o}`]:[];if(null==s?void 0:s.length){const i=s.find(i=>i.includes(null!=o?o:""));i&&(O=[i])}const S=v&&t.includes("scanned_doc_citation")?v(n.reason,n.gap,Number(_)):"explanation"===e?null!==(y=null==n?void 0:n.explanation)&&void 0!==y?y:"":null!==(C=null==n?void 0:n.reason)&&void 0!==C?C:"",E=JSON.stringify({userName:null!==(I=null==d?void 0:d.name)&&void 0!==I?I:`${null!==(k=null==d?void 0:d.firstname)&&void 0!==k?k:""} ${null!==(q=null==d?void 0:d.lastname)&&void 0!==q?q:""}`.trim(),userEmailId:null!==(x=null==d?void 0:d.email)&&void 0!==x?x:""}),L=[{reason:S,title:"",description:"explanation"===e?null!==(N=null==n?void 0:n.explanation)&&void 0!==N?N:"":null!==($=null==n?void 0:n.reason)&&void 0!==$?$:""}],M=t.includes("scanned_doc_citation")&&l?l(t):a;console.log("[useOnDemandCitation] fetching citation",{key:f,citationType:t,requestCitationType:M,requestId:a,files:O});const R=r?null==r?void 0:r(Number(i)):void 0,T=await u(R||a,M,i,S,g,L,O,E,o),j=b(T,t);j||console.error(`Failed to resolve on-demand citation ${f}`),j&&h(f,t,j),m(j)}catch(i){console.error("[useOnDemandCitation] error for citation",f,i),g(i)}})()})},[a,d,s]),libraryCitationsRef:f,libraryCitations:m}}export{e as useOnDemandCitation};
1
+ import{useRef as i,useState as n,useEffect as t,useCallback as o}from"react";function l({baseCitations:l,requestId:e,user:a,bucketName:d,fetchOnDemandCitation:u,fileUrlList:c,getCitationEntryRequestId:s,formatLLMResponse:r}){const v=null!=l?l:{},_=i(v),[f,m]=n(v);t(()=>{m(i=>{var n,t;return{...l,file_citations:i.file_citations&&i.file_citations.length>0?i.file_citations:null!==(n=null==l?void 0:l.file_citations)&&void 0!==n?n:[],audio_citations:i.audio_citations&&i.audio_citations.length>0?i.audio_citations:null!==(t=null==l?void 0:l.audio_citations)&&void 0!==t?t:[]}})},[l]),t(()=>{_.current=f},[f]);const g=o((i,n)=>{var t,o,l,e,a,d,u,c,s,r,v,_,f,m,g,b,h,p,w,y,C,k,I,q;let x=null===(u=null===(d=null===(a=null===(e=null===(l=null===(o=null===(t=null==i?void 0:i.result)||void 0===t?void 0:t.citations)||void 0===o?void 0:o[0])||void 0===l?void 0:l.citations)||void 0===e?void 0:e[0])||void 0===a?void 0:a.customMetaData)||void 0===d?void 0:d.value)||void 0===u?void 0:u[0];if("audio_citation"===n||"audio_citations"===n)x=null===(s=null===(c=null==i?void 0:i.result)||void 0===c?void 0:c.citations)||void 0===s?void 0:s[0];else if("readfile_citations"===n||"readfile_citation"===n)x=null===(v=null===(r=null==i?void 0:i.result)||void 0===r?void 0:r.citations)||void 0===v?void 0:v[0];else if(n.includes("image_citation"))x=null===(f=null===(_=null==i?void 0:i.result)||void 0===_?void 0:_.citations)||void 0===f?void 0:f[0];else if(n.includes("web_citation")){const n=null===(w=null===(p=null===(h=null===(b=null===(g=null===(m=null==i?void 0:i.result)||void 0===m?void 0:m.citations)||void 0===g?void 0:g[0])||void 0===b?void 0:b.segments)||void 0===h?void 0:h[0])||void 0===p?void 0:p.urls)||void 0===w?void 0:w[0];x={citation_number:null===(k=null===(C=null===(y=null==i?void 0:i.result)||void 0===y?void 0:y.citations)||void 0===C?void 0:C[0])||void 0===k?void 0:k.citation_number,customMetadata:{screenshot_url:null==n?void 0:n.gcs_url,relevance_score:100,link:null==n?void 0:n.highlight_url,type:"web_citation"}}}else n.includes("scanned_doc_citation")&&(x=null===(q=null===(I=null==i?void 0:i.result)||void 0===I?void 0:I.citations)||void 0===q?void 0:q[0]);return x},[]),b=o((i,n,t)=>{m(o=>{const l="audio_citation"===n||"audio_citations"===n?"audio_citations":n.includes("image_citation")?"image_citations":"readfile_citations"===n||"readfile_citation"===n?"readfile_citations":n.includes("web_citation")?"web_citations":n.includes("scanned_doc_citation")?"scanned_doc_citations":"file_citations",e=o[l]||[],a=e.findIndex(n=>String(n.citation_number)===i),d={...t,citation_number:i},u=a>=0?e.map((i,n)=>n===a?{...i,...d}:i):[...e,d];return{...o,[l]:u}})},[]);return{fetchOnDemandCitationHandler:o((i,n,t,o,l,v)=>{const _=String(i);return new Promise((f,m)=>{(async()=>{var h,p,w,y,C,k,I,q,x,N,$,D;try{const m=null!==(h=null==a?void 0:a.accessToken)&&void 0!==h?h:"";if(!m)throw new Error("No auth token available for on-demand citation fetch");const O=null!==(p=sessionStorage.getItem("projectId"))&&void 0!==p?p:"";let T=o?[`${d}/projects/${O}/${o}`]:[];if(null==c?void 0:c.length){const i=c.find(i=>i.includes(null!=o?o:""));i&&(T=[i])}const S=r&&t.includes("scanned_doc_citation")?r(n.reason,n.gap,Number(v)):"explanation"===l?null!==(w=null==n?void 0:n.explanation)&&void 0!==w?w:"":null!==(y=null==n?void 0:n.reason)&&void 0!==y?y:"",E=JSON.stringify({userName:null!==(C=null==a?void 0:a.name)&&void 0!==C?C:`${null!==(k=null==a?void 0:a.firstname)&&void 0!==k?k:""} ${null!==(I=null==a?void 0:a.lastname)&&void 0!==I?I:""}`.trim(),userEmailId:null!==(q=null==a?void 0:a.email)&&void 0!==q?q:"",authToken:null!==(x=null==a?void 0:a.accessToken)&&void 0!==x?x:""}),L=[{reason:S,title:"",description:"explanation"===l?null!==(N=null==n?void 0:n.explanation)&&void 0!==N?N:"":null!==($=null==n?void 0:n.reason)&&void 0!==$?$:""}],M=null!==(D=function(i){switch(i){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";case"document_citations":return"file_citation";case"audio_citations":return"requirement_ai_audio_citation";case"web_citations":return"web_citation";case"image_citations":return"requirement_ai_image_citation";default:return i}}(t))&&void 0!==D?D:t;console.log("[useOnDemandCitation] fetching citation",{key:_,citationType:t,requestCitationType:M,requestId:e,files:T});const R=s?null==s?void 0:s(Number(i)):void 0,j=await u(R||e,M,i,S,m,L,T,E,o),F=g(j,t);F||console.error(`Failed to resolve on-demand citation ${_}`),F&&b(_,t,F),f(F)}catch(i){console.error("[useOnDemandCitation] error for citation",_,i),m(i)}})()})},[e,a,c]),libraryCitationsRef:_,libraryCitations:f}}export{l as useOnDemandCitation};
2
2
  //# sourceMappingURL=useOnDemandCitation.js.map
@@ -22,6 +22,10 @@ export interface ProjectTagSelectorCustomStyles {
22
22
  searchInput?: React.CSSProperties;
23
23
  clearSearchButton?: React.CSSProperties;
24
24
  clearSearchIcon?: React.CSSProperties;
25
+ selectedProjectSection?: React.CSSProperties;
26
+ selectedProjectItem?: React.CSSProperties;
27
+ removeButton?: React.CSSProperties;
28
+ removeIcon?: React.CSSProperties;
25
29
  projectTagList?: React.CSSProperties;
26
30
  emptyState?: React.CSSProperties;
27
31
  loadingContent?: React.CSSProperties;
@@ -56,6 +60,8 @@ export interface ProjectTagSelectorProps {
56
60
  * Called whenever a Project Tag is selected.
57
61
  */
58
62
  onProjectTagChange?: (projectTag: ProjectTagOption) => void;
63
+ /** Called when the selected Project Tag's remove icon is clicked. The parent confirms and updates the selection. */
64
+ onProjectTagRemove?: (projectTag: ProjectTagOption) => void;
59
65
  /**
60
66
  * Text shown before the selected Project Tag name in
61
67
  * the trigger. Pass an empty string to show the name
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectTagSelector.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/project-tag-selector/ProjectTagSelector.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"ProjectTagSelector.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/project-tag-selector/ProjectTagSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAYf,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,8BAA8B;IAC7C,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7C,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7C,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,kBAAkB,EAAE,gBAAgB,CAAC;IAErC;;OAEG;IACH,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,CACnB,UAAU,EAAE,gBAAgB,KACzB,IAAI,CAAC;IAEV,oHAAoH;IACpH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE5D;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEvC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,8BAA8B,CAAC;CAC/C;AAID,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAuczD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOnDemandCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useOnDemandCitation.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,WAAW,aAAa;IAC5B,CAAC,cAAc,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAC5C;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,UAAU,yBAAyB;IACjC,2FAA2F;IAC3F,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,wFAAwF;IACxF,SAAS,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAG,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE;QAC9I,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,EAAE,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9H,iBAAiB,CAAC,EAAE,CAClB,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACrC,cAAc,EAAE,MAAM,KACnB,MAAM,CAAC;IACZ,yBAAyB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CAC3E;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,SAAS,EACT,IAAI,EACJ,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,yBAAyB,EACzB,iBAAiB,EAClB,EAAE,yBAAyB;+CAgGV,MAAM,gBACJ,YAAY,gBACZ,MAAM,WACX,MAAM,oBACG,aAAa,GAAG,WAAW,qBAC1B,MAAM,KACxB,QAAQ,GAAG,CAAC;;;EA0GlB"}
1
+ {"version":3,"file":"useOnDemandCitation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useOnDemandCitation.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,WAAW,aAAa;IAC5B,CAAC,cAAc,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAC5C;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,UAAU,yBAAyB;IACjC,2FAA2F;IAC3F,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,wFAAwF;IACxF,SAAS,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAG,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE;QAC9I,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,EAAE,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9H,iBAAiB,CAAC,EAAE,CAClB,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACrC,cAAc,EAAE,MAAM,KACnB,MAAM,CAAC;IACZ,yBAAyB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CAC3E;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,SAAS,EACT,IAAI,EACJ,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,yBAAyB,EACzB,iBAAiB,EAClB,EAAE,yBAAyB;+CAgGV,MAAM,gBACJ,YAAY,gBACZ,MAAM,WACX,MAAM,oBACG,aAAa,GAAG,WAAW,qBAC1B,MAAM,KACxB,QAAQ,GAAG,CAAC;;;EA2GlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.352",
3
+ "version": "0.0.354",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",