@e-llm-studio/requirement-ai 0.0.248 → 0.0.250

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("lucide-react"),n=require("showdown"),o=require("@mui/material"),i=require("../../icons/Illustration.svg.js"),s=require("uuid"),a=require("./UserStoryCard.module.css.js"),r=require("../../utils/helpers.js"),d=require("../../utils/user-story.utils.js"),u=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),v=require("../userstory-with-citation/UserStoryWithCitation.js"),p=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../story-screen/BigEnoughPanel.js"),h=require("./TitleEditor/TitleEditor.js"),m=require("../../../../service/redlineService.js"),y=require("./ClinicalTrialSection.js"),S=require("../story-screen/CompletionPanel.js"),g=require("../../icons/CDIcon.js"),C=require("./cws/CwsEvent.js"),x=require("./cws/useCwsEvent.js"),I=require("react-hot-toast"),j=require("./Popups/RedlineToast.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=b(n),N=b(I);const E={[p.SectionStatus.WAITING]:"WAITING TO GENERATE",[p.SectionStatus.IN_PROGRESS]:"IN PROGRESS",[p.SectionStatus.GENERATED]:"GENERATED",[p.SectionStatus.FAILED]:"FAILED",[p.SectionStatus.GENERATE]:"GENERATE",[p.SectionStatus.APPROVED]:"APPROVED"};function D(t){const n=[],i=/<learned>(.*?)<\/learned>/g;let a,r=0,d=0;for(;null!==(a=i.exec(t));){const[,u]=a,c=a.index;c>r&&n.push(e.jsx("span",{children:t.slice(r,c)},"text-pre-"+d++)),n.push(e.jsx(o.Tooltip,{title:u,placement:"top",children:e.jsx(l.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})},`tooltip-${s.v4()}`)),r=i.lastIndex}return r<(null==t?void 0:t.length)&&n.push(e.jsx("span",{children:t.slice(r)},"text-post-"+d++)),n}function B(e,t,l){var n;if(!e)return{};if(t)return{...e.parentConfig};const o={...e.childConfig};return l&&(null===(n=e.subFeatureOverrides)||void 0===n?void 0:n[l])?{...o,...e.subFeatureOverrides[l]}:o}const A=({displayName:t})=>{var n;const{customStyles:o}=p.useRequirementAI(),i=null===(n=null==o?void 0:o.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return e.jsxs("div",{className:a.default.displayName,style:null==i?void 0:i.wrapper,children:[e.jsx(l.Bookmark,{className:a.default.displayNameIcon,style:null==i?void 0:i.displayNameIcon}),e.jsxs("span",{style:null==i?void 0:i.label,children:[t,":"]})]})},T=({isUserStoryCurrentlyUpdated:n,artifactId:I,artifactTitleId:b,parentUserStory:k,currentUserStory:U,onUserStoryChange:P,parentIndex:R,currentIndex:M,enableDownload:q,isDiffEditReviewMode:_,showUserStoryDiff:L,handleDownloadUserStory:F,handleOpenSendDialog:W,updateUserStoryArtifact:$,selectedArtifactId:O,isDisplayHighlightControl:z,elementDisplayConfig:V,_resolvedConfig:G,showWrapper:H=!1,defaultExpanded:Y,actionItemsConfig:Q,onDelete:X,contextVariant:Z,expandedSubFeatures:J,showDisplayName:K=!0,allowTitleEdit:ee=!0,showConfidenceScore:te=!0,showBorderTop:le=!0,sectionStatusConfig:ne,showCompletionPanel:oe=!1,completionPanelConfig:ie,showAddSectionButton:se=!1,disableEditPlan:ae=!1,useMuiTooltip:re=!1,approveButtonConfig:de,editButtonConfig:ue,CDNeededInChip:ce,blockNumber:ve,storyNumber:pe,showWaitingIconInChip:fe,showAssignSection:he=!1,disableAssignSection:me=!1,onAssignSectionClick:ye,onSave:Se,onUserStoryAccordionStateChange:ge})=>{var Ce,xe,Ie,je,be,we,Ne,Ee,De,Be,Ae,Te,ke,Ue,Pe,Re,Me,qe,_e,Le,Fe,We,$e,Oe;const{isLoadingSectionData:ze=!1,onLoadSectionData:Ve,status:Ge,onStatusClick:He,completedCount:Ye,totalCount:Qe,isNoDataAvailable:Xe=!1}=null!=ne?ne:{},{searchQueryList:Ze,citations:Je,customStyles:Ke,onEditBlocked:et,redlineDcoumentId:tt,redlineConfig:lt,customSectionConfig:nt,updateRedlineDataParent:ot,aiReasoning:it,redlineCollaborativeConfig:st}=p.useRequirementAI(),at=null==Ke?void 0:Ke.userStoryCardStyles,rt=null==at?void 0:at.customSectionEditButton,dt=null==at?void 0:at.statusStyles,ut=null===(Ce=null==Ke?void 0:Ke.userStoryCardStyles)||void 0===Ce?void 0:Ce.userStoryEditStyles,ct=null===(xe=null==Ke?void 0:Ke.userStoryScreenStyles)||void 0===xe?void 0:xe.userStoryContentStyles,vt=null==at?void 0:at.progressHeaderStyles,pt=null==at?void 0:at.clinicalTrialSectionStyles,ft=null==at?void 0:at.CompletionStyles,ht=null==at?void 0:at.noDataStyles,mt=null==at?void 0:at.approveButtonStyles,yt=null!==(je=null===(Ie=null==nt?void 0:nt.shouldRender)||void 0===Ie?void 0:Ie.call(nt,U))&&void 0!==je&&je,St=null===(be=null==nt?void 0:nt.getValue)||void 0===be?void 0:be.call(nt,U),gt=null!==(Ne=null===(we=null==nt?void 0:nt.getFields)||void 0===we?void 0:we.call(nt,U))&&void 0!==Ne?Ne:[],Ct=null!==(Ee=null==nt?void 0:nt.isEditDisabled)&&void 0!==Ee&&Ee,xt=null!==(Be=null===(De=null==nt?void 0:nt.isSaving)||void 0===De?void 0:De.call(nt,U))&&void 0!==Be&&Be,It=(jt=null!==(Ae=U.completion_percentage)&&void 0!==Ae?Ae:0,bt=ft,jt>=80?null==bt?void 0:bt.highCompletion:jt>=50?null==bt?void 0:bt.mediumCompletion:null==bt?void 0:bt.lowCompletion);var jt,bt;const wt={[p.SectionStatus.WAITING]:null==dt?void 0:dt.waiting,[p.SectionStatus.IN_PROGRESS]:null==dt?void 0:dt.inProgress,[p.SectionStatus.GENERATED]:null==dt?void 0:dt.generated,[p.SectionStatus.FAILED]:null==dt?void 0:dt.failed,[p.SectionStatus.GENERATE]:null==dt?void 0:dt.generate,[p.SectionStatus.APPROVED]:null==dt?void 0:dt.approved},[Nt,Et]=t.useState({...structuredClone(U),value:r.formatMarkdown(U.value)||""}),[Dt,Bt]=t.useState({userStory:!!U.isDefaultEdit}),[At,Tt]=t.useState(!1),[kt,Ut]=t.useState(!1),[Pt,Rt]=t.useState(null),[Mt,qt]=t.useState(null),{userStory:_t,customIcons:Lt}=p.useRequirementAI(),[Ft,Wt]=t.useState(null!=Y?Y:""===R||O===U.artifactId||!!U.isDefaultOpen),[$t,Ot]=t.useState(!1),[zt,Vt]=t.useState(null),[Gt,Ht]=t.useState(null),[Yt,Qt]=t.useState(!1),Xt=t.useRef(null),Zt=t.useRef(null),[Jt,Kt]=t.useState(!1),[el,tl]=t.useState(!1),ll=t.useRef(null),[nl,ol]=t.useState(!1),[il,sl]=t.useState(U.value);t.useEffect(()=>{n&&Wt(n)},[n]),t.useEffect(()=>{Et({...structuredClone(U),value:r.formatMarkdown(U.value)||""})},[U]),t.useEffect(()=>{Ze.length>0?Wt(!0):void 0===Y&&O&&Wt(O===U.artifactId)},[Ze,O,U.artifactId]),t.useEffect(()=>{J&&J.length>0&&pe&&ve&&Wt(J.includes(`${pe}-${ve}`)||""===R||O===U.artifactId||!!U.isDefaultOpen)},[J,pe,ve]);const al=()=>{Vt(null)},rl=()=>{Ht(null)},dl=()=>{if(Ft&&Dt.userStory&&Zt.current&&!Zt.current.requestClose())return;const e=!Ft;Wt(e),null==ge||ge(U,e)},ul=async()=>{var e,t;try{"userStory"==="userStory"&&(P(Nt),console.log("I am changing RTE editor values",Nt)),await(null===(e=null==ue?void 0:ue.onSaveEditedSection)||void 0===e?void 0:e.call(ue,Nt)),await $(Je,_t,I,null===(t=ll.current)||void 0===t?void 0:t.signal)}finally{}};const cl=null!=(null==U?void 0:U.big_enough)&&!Number.isNaN(U.big_enough)&&!!(null==U?void 0:U.big_enough_decision_factors),vl=null!==(Te=null==U?void 0:U.completion_percentage)&&void 0!==Te?Te:0,pl=!!(null==U?void 0:U.completion_decision_factors),fl=""===R,hl=null!=G?G:B(V,fl),ml=!_&&!L;t.useEffect(()=>{if(!Mt)return;const e=setTimeout(()=>{const e=document.getElementById(`story-card-${Mt}`);null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(e)},[Mt]);const[yl,Sl]=t.useState(0),[gl,Cl]=t.useState(!1),xl=async()=>{var e,t;let l=!0;if(Cl(e=>(l=!e,!0)),l){let l;Sl(e=>(l=e,e));try{const{updated_reqai:n}=await m.fetchRedlineDocumentSection({documentId:tt,sectionId:U.artifactId,baseApiUrl:null==lt?void 0:lt.baseApiUrl,redlineConfigId:null!==(e=null==lt?void 0:lt.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==lt?void 0:lt.token)&&void 0!==t?t:"");await(null==ot?void 0:ot(n)),Sl(e=>l===e?0:1)}catch(e){console.error("failed to fetch latest user story: ",e),N.default.error("Failed to fetch the latest user story. Please try again.")}Cl(!1)}};t.useEffect(()=>{U.isDefaultEdit&&Bt(e=>({...e,userStory:!0}))},[U.isDefaultEdit]),console.log("block number in userstory card ",ve),console.log("[TESTING-CURRENT-USER-STORY] \n",U,"\n[TESTING-USER-STORY] \n",_t),x.default(`redline-edit:${tt}:${U.artifactId}`,async({updatedBy:t})=>{var l;null===(l=ll.current)||void 0===l||l.abort(),Sl(e=>e+1),Bt(l=>l.userStory?(N.default.custom(l=>e.jsxs(j.default,{onCancel:()=>N.default.dismiss(l.id),onRefresh:()=>{N.default.dismiss(l.id),xl()},children:["This ",e.jsx("span",{style:{fontWeight:600},children:U.title})," section has been updated by ",e.jsx("span",{style:{fontWeight:600},children:t})," while you were editing. Please refresh to view the latest version."]}),{duration:1e4,toasterId:p.ToasterId}),{..._t,userStory:!1}):(xl().then(()=>{N.default.custom(l=>e.jsxs(j.default,{onCancel:()=>N.default.dismiss(l.id),title:e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{fontWeight:600},children:U.title})," updated,",e.jsx("br",{})]}),children:[t," saved changes. Your unsaved edits are untouched."]}),{duration:1e4,toasterId:p.ToasterId})}),l))});return t.useEffect(()=>sl(U.value),[U.value]),e.jsxs("div",{className:a.default.card,"data-block-id":`user-story-card-wrapper-${pe}-${ve}`,style:null==at?void 0:at.cardStyle,id:`story-card-${U.title}`,"data-expanded":Ft,children:[e.jsxs("div",{className:a.default.titleSection,style:null==at?void 0:at.titleSection,children:[e.jsxs("div",{className:a.default.titleRow,style:null==at?void 0:at.titleRow,onClick:dl,children:[e.jsxs("div",{className:a.default.titleLeft,style:null==at?void 0:at.titleLeft,onMouseEnter:()=>Kt(!0),onMouseLeave:()=>Kt(!1),children:[K&&e.jsx(A,{displayName:b}),At&&ml?e.jsx(h.InlineTitleEditor,{title:U.title,onSave:e=>(async(e,t)=>{var l;try{let n={...U};U.artifactId===t?n.title=e:n.sub_features=(null===(l=U.sub_features)||void 0===l?void 0:l.map(l=>l.artifactId===t?{...l,title:e}:l))||[],Et(n),P(n),Tt(!1)}catch(e){console.error("Failed to save title",e)}})(e,U.artifactId),onCancel:()=>{Tt(!1)},inputStyle:null==ut?void 0:ut.inlineTitleInput,confirmButtonStyle:null==ut?void 0:ut.inlineTitleConfirm,cancelButtonStyle:null==ut?void 0:ut.inlineTitleCancel},"inline-title-editor"):e.jsxs("div",{className:a.default.storyTitleWrapper,children:[e.jsx(o.Tooltip,{title:D(U.title),arrow:!0,children:e.jsx("h2",{title:re?void 0:U.title,className:a.default.storyTitle,style:null==at?void 0:at.storyTitle,children:D(U.title)},U.artifactId)}),oe&&(pl?e.jsx(S.CompletionPanel,{customIcons:null==Lt?void 0:Lt.userStoryIcons,customStyles:null==at?void 0:at.aiReasoningCitaionStyles,currentUserStory:U,panelStyles:null==at?void 0:at.CompletionStyles,onToggleStateChange:tl,completionPanelConfig:ie,children:e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==ft?void 0:ft.badge,...It},children:[e.jsxs("span",{children:[vl,"% Completed"]}),e.jsx("span",{style:{display:"flex",alignItems:"center"},children:e.jsx(g.default,{color:"currentColor"})}),el?e.jsx(l.ChevronUp,{size:14,style:null==ft?void 0:ft.chevronStyle}):e.jsx(l.ChevronDown,{size:14,style:null==ft?void 0:ft.chevronStyle})]})}):e.jsx("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==ft?void 0:ft.badge,...It},children:e.jsxs("span",{children:[vl,"% Completed"]})})),ee&&e.jsx("button",{type:"button",className:a.default.titleEditButton,style:null==ut?void 0:ut.titleEditButton,onClick:e=>{e.stopPropagation(),Tt(!0),Ft||Wt(!0)},"aria-label":"Edit title",title:"Edit title",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})})})]})]}),(Ge||void 0!==Ye&&void 0!==Qe)&&e.jsxs("div",{className:a.default.statusContainer,children:[void 0!==Ye&&void 0!==Qe&&e.jsxs("div",{className:a.default.completedBadge,children:["Completed: ",Ye,"/",Qe]}),Ge&&e.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),null==He||He()},onMouseEnter:()=>ol(!0),onMouseLeave:()=>ol(!1),className:a.default.statusButton,style:{...null===(ke=wt[Ge])||void 0===ke?void 0:ke.default,...nl&&(null===(Ue=wt[Ge])||void 0===Ue?void 0:Ue.hover)},children:E[Ge]})]}),e.jsxs("div",{className:a.default.titleActions,style:null==at?void 0:at.titleActions,onClick:e=>e.stopPropagation(),children:[(hl.showProgressPercentage||hl.showGapBox)&&H&&e.jsxs("div",{className:a.default.progressHeader,style:null==vt?void 0:vt.wrapper,children:[hl.showProgressPercentage&&e.jsxs("div",{className:a.default.progressPercentage,style:null==vt?void 0:vt.percentage,children:[null!==(Re=null!==(Pe=null==U?void 0:U.confidenceScore)&&void 0!==Pe?Pe:null==hl?void 0:hl.confidenceValue)&&void 0!==Re?Re:"0","%"]}),hl.showGapBox&&e.jsxs("div",{className:a.default.gapBox,style:null==vt?void 0:vt.gapBox,children:[null!==(qe=null!==(Me=null==U?void 0:U.gapValue)&&void 0!==Me?Me:null==hl?void 0:hl.gapBoxValue)&&void 0!==qe?qe:"2"," ","Gaps"]})]}),cl&&e.jsx(f.BigEnoughPanel,{customIcons:null==Lt?void 0:Lt.userStoryIcons,customStyles:null==at?void 0:at.aiReasoningCitaionStyles,currentUserStory:U,panelStyles:null==at?void 0:at.BigEnoughStyles}),he&&e.jsx("button",{type:"button",className:a.default.iconButton,style:null==at?void 0:at.iconButton,disabled:me,onClick:e=>{e.stopPropagation(),null==ye||ye(U)},"aria-label":"Assign section users",title:"Assign section users",children:e.jsx(l.Users,{size:16})}),!Dt.userStory&&e.jsxs(e.Fragment,{children:[!1!==(null==hl?void 0:hl.showShareButton)&&e.jsx("button",{className:a.default.iconButton,style:null==at?void 0:at.iconButton,onClick:e=>{Vt(e.currentTarget)},children:e.jsx(l.ExternalLink,{size:16})}),e.jsxs(o.Menu,{id:"user-story-share-menu",anchorEl:zt,open:!!zt,onClose:()=>Vt(null),style:null==at?void 0:at.userStoryShareMenu,children:[q&&e.jsx(o.MenuItem,{style:null==at?void 0:at.userStoryMenuItem,onClick:async()=>{Ot(!0),F&&(await Promise.all([F("pdf"),F("doc")]),Ot(!1))},children:e.jsxs("div",{ref:Xt,className:a.default.menuItemContent,style:null==at?void 0:at.menuItemContent,children:[e.jsx(l.Download,{size:16,color:null==at?void 0:at.menuIconColor}),e.jsx("p",{style:null==at?void 0:at.menuLabel,children:"Download"})]})}),e.jsx(o.MenuItem,{style:null==at?void 0:at.userStoryMenuItem,onClick:async()=>{let e=U;k&&(e={...U,value:`${d.replaceTitleSection(null==k?void 0:k.value,U.title)} \n${U.value}`}),null==W||W(!0,[e],U.artifactId),al()},children:e.jsxs("div",{style:null==at?void 0:at.menuItemContent,className:a.default.menuItemContentPadded,children:[e.jsx(l.Share2,{size:16,color:null==at?void 0:at.menuIconColor}),e.jsx("p",{style:null==at?void 0:at.menuLabel,children:"Send"})]})}),e.jsx(o.MenuItem,{style:null==at?void 0:at.userStoryMenuItem,onClick:async()=>{const e=(new w.default.Converter).makeHtml(r.formatMarkdown(U.value)||U.value),t=function(e){const t=(new w.default.Converter).makeHtml(e),l=document.createElement("div");return l.innerHTML=t,l.textContent||l.innerText||""}(r.formatMarkdown(U.value)||U.value),l=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})});try{await navigator.clipboard.write([l]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{al()}},children:e.jsxs("div",{style:null==at?void 0:at.menuItemContent,className:a.default.menuItemContentPadded,children:[e.jsx(l.Copy,{size:16,color:null==at?void 0:at.menuIconColor}),e.jsx("p",{style:null==at?void 0:at.menuLabel,children:"Copy"})]})})]})]}),!Yt&&Dt.userStory&&Ft?e.jsx(u.default,{type:"outline",children:"Cancel",style:null==at?void 0:at.cancelButton,onClick:()=>{var e;null===(e=ll.current)||void 0===e||e.abort(),Bt(e=>({...e,userStory:!1}))}}):e.jsx(e.Fragment,{}),Dt.userStory&&Ft?e.jsx(u.default,{type:"fill",children:Yt?e.jsxs("span",{className:a.default.savingSpinner,style:null==at?void 0:at.savingSpinner,children:[e.jsx(l.LoaderCircle,{className:a.default.spinAnimation,style:null==at?void 0:at.spinAnimation}),e.jsx("span",{children:"Saving..."})]}):"Save",isDisable:Yt,style:Yt?null==at?void 0:at.savingButton:null==at?void 0:at.saveButton,onClick:async()=>{Qt(!0),await ul();let e=await(async()=>{var e,t,l,n,o,i,s,a;let r=Nt.value;console.log("[V] valueToUpdate before",r),r=r.replace(/<invisible\s+id="([^"]+)"\s*><\/invisible>/gi,"\x3c!-- $1 --\x3e"),console.log("[V] valueToUpdate after",r);try{await(null==Se?void 0:Se(r,U.artifactId))}catch(e){}try{if(null==lt?void 0:lt.callUpdateDocument){const{updated_reqai:d}=await m.updateRedlineDocument({documentId:tt,sectionId:U.artifactId,baseApiUrl:null==lt?void 0:lt.baseApiUrl,updatedContent:r,userEmail:lt.userEmail,userName:lt.userName,redlineConfigId:null!==(e=lt.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==lt?void 0:lt.token)&&void 0!==t?t:"");r=null===(o=null===(n=null===(l=null==d?void 0:d.artifactData)||void 0===l?void 0:l.userStorySnapshot)||void 0===n?void 0:n[0])||void 0===o?void 0:o.value,await(null==ot?void 0:ot(d));const u=null===(a=null===(s=null===(i=null==d?void 0:d.artifactData)||void 0===i?void 0:i.userStorySnapshot)||void 0===s?void 0:s[0])||void 0===a?void 0:a.artifactId;"string"==typeof u&&u.trim()&&"string"==typeof tt&&tt.trim()&&"string"==typeof(null==lt?void 0:lt.userName)&&(null==lt?void 0:lt.userName.trim())?C.default.emit(`redline-edit:${tt}:${u}`,{updatedBy:null==lt?void 0:lt.userName}):console.error("invalid cwsEvent name or payload")}}catch(e){console.error("failed to update redline document",e),r=il}return r=r.replace(/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,'<invisible id="$1"></invisible>'),r})();const t={...Nt,value:e};P({...t,isDefaultEdit:!1}),sl(t.value),Bt(e=>({...e,userStory:!1})),Qt(!1)}}):!yl&&!_&&!L&&!ae&&Ft&&!1!==(null==hl?void 0:hl.showEditButton)&&e.jsx("button",{className:a.default.iconButton,style:null==at?void 0:at.editButton,onClick:()=>Bt(e=>({...e,userStory:!0})),children:e.jsx(l.PencilIcon,{color:null==at?void 0:at.pencilIconColor,size:16})}),(null==st?void 0:st.initiateCollaborativeFlow)&&!!yl&&e.jsx(o.Tooltip,{title:"Fetch latest section",children:e.jsx(l.RefreshCw,{color:gl?"#d3d3d3":"black",onClick:xl})}),se&&fl&&Ft&&!_&&!L&&!1!==(null==hl?void 0:hl.showEditButton)&&e.jsxs("button",{type:"button",className:a.default.addSectionButton,style:null==ut?void 0:ut.addSectionButton,onClick:e=>{var t,l,n;e.stopPropagation();const o=(null!==(l=null===(t=U.sub_features)||void 0===t?void 0:t.length)&&void 0!==l?l:0)+1,i={artifactId:s.v4(),title:`New Section ${o}`,value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},a={...U,sub_features:[...null!==(n=U.sub_features)&&void 0!==n?n:[],i]};Et(a),P(a),Wt(!0),qt(i.title)},"aria-label":"Add section",title:"Add section",children:[e.jsx(l.Plus,{size:14}),e.jsx("span",{className:a.default.addSectionLabel,children:"Add Section"})]}),!fl&&!_&&!ae&&!L&&e.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),null==X||X()},className:a.default.iconButton,style:null==ut?void 0:ut.deleteButton,"aria-label":"Delete section",title:"Delete section",children:e.jsx(l.Trash2,{size:16})}),yt&&e.jsx("button",{type:"button",className:a.default.iconButton,style:null==rt?void 0:rt.button,disabled:Ct,onClick:e=>{if(e.stopPropagation(),kt)return Rt(null),void Ut(!1);Rt(structuredClone(null!=St?St:{})),Wt(!0),Ut(!0)},children:kt?e.jsx(l.X,{size:16,color:null==at?void 0:at.pencilIconColor,style:null==rt?void 0:rt.cancelIcon}):e.jsx(l.PencilIcon,{size:16,color:null==at?void 0:at.pencilIconColor,style:null==rt?void 0:rt.editIcon})}),(null==hl?void 0:hl.actionItemsButton)&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:a.default.actionItemBtn,style:null==at?void 0:at.actionItemBtn,onClick:e=>{e.stopPropagation(),Ht(e.currentTarget)},children:e.jsx(l.Ellipsis,{})}),e.jsx(o.Menu,{id:"user-story-action-menu",anchorEl:Gt,open:!!Gt,onClose:rl,style:null==at?void 0:at.userStoryShareMenu,children:null==Q?void 0:Q.items.map((t,l)=>e.jsx(o.MenuItem,{style:null==at?void 0:at.userStoryMenuItem,onClick:()=>{t.onclick(U),rl()},children:e.jsxs("div",{className:a.default.menuItemContent,style:{...null==at?void 0:at.menuItemContent,...!t.isActive&&{cursor:"not-allowed",opacity:.5}},children:[e.jsx("span",{className:a.default.menuItemIcon,style:null==at?void 0:at.menuItemIcon,children:t.icon}),e.jsx("p",{style:null==at?void 0:at.menuLabel,children:t.name}),e.jsx("span",{className:a.default.menuItemRight,style:null==at?void 0:at.menuItemRight})]})},`action-item-${l}-${t.name}`))})]}),e.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),dl()},style:null==at?void 0:at.chevronButton,className:a.default.chevronButton,children:Ft?e.jsx(l.ChevronUp,{className:a.default.chevronIcon,color:null==at?void 0:at.chevronIconColor}):e.jsx(l.ChevronDown,{className:a.default.chevronIcon,color:null==at?void 0:at.chevronIconColor})})]})]}),e.jsx("div",{className:a.default.divider,style:null==at?void 0:at.dividerStyle})]}),Ft&&e.jsx("div",{className:a.default.cardContent,style:{...null==at?void 0:at.cardContentStyle,borderTop:le?"1px solid #E5E5E5":"none"},children:ze?e.jsxs("div",{className:a.default.loadingContainer,children:[e.jsx("div",{className:a.default.loadingIconWrapper,children:e.jsx(l.Hourglass,{size:28,color:"#5B3DF5",className:a.default.spinAnimation})}),e.jsxs("div",{children:[e.jsx("h3",{className:a.default.loadingTitle,children:"Section generation in progress.."}),e.jsx("p",{className:a.default.loadingSubtitle,children:"This may take a few minutes"})]}),e.jsx("button",{type:"button",onClick:()=>null==Ve?void 0:Ve(),className:a.default.viewStatusButton,children:"View Status"})]}):Xe?e.jsxs("div",{className:a.default.noDataContainer,style:null==ht?void 0:ht.container,children:[e.jsx("img",{src:i.default,alt:"No data available",className:a.default.noDataIllustration,style:null==ht?void 0:ht.illustration}),e.jsx("h3",{className:a.default.noDataTitle,style:null==ht?void 0:ht.title,children:"No Data Available for This Section"}),e.jsx("p",{className:a.default.noDataSubtitle,style:null==ht?void 0:ht.subtitle,children:"We couldn't find data for this section yet. Upload the required document from the Documents tab to generate content."})]}):e.jsxs("div",{className:a.default.contentInner,style:null==at?void 0:at.contentInner,children:[e.jsxs("div",{className:a.default.descriptionSection,style:null==at?void 0:at.descriptionSection,children:[e.jsx("div",{className:a.default.justifyBetween,style:null==at?void 0:at.justifyBetween}),Dt.userStory?e.jsx(c.default,{ref:Zt,minHeight:"100%",height:"100%",type:"string",value:r.formatMarkdown(il)||"",handleUpdateState:(e,t)=>{const l=d.postprocessUserStoryAfterEdit(r.indentMarkdown(t));Et(e=>({...e,value:l||""}))},doNotShowBorderInViewMode:!1,onBlur:()=>{},mode:Dt.userStory?"edit":"readOnly",onEditBlocked:et,onSaveUnsavedChanges:async()=>{await ul(),Wt(!1)},onDiscardUnsavedChanges:()=>{Et({...structuredClone(U),value:r.formatMarkdown(U.value)||""}),Bt(e=>({...e,userStory:!1})),Wt(!1)},isSavingUnsavedChanges:Yt}):yt?e.jsx(y.default,{styles:pt,fields:gt,readonly:!kt,isSaving:xt,value:null!==(_e=null!=Pt?Pt:St)&&void 0!==_e?_e:{},onChange:Rt,onSave:async()=>{var e;Pt&&(await(null===(e=null==nt?void 0:nt.onSave)||void 0===e?void 0:e.call(nt,U,Pt)),Rt(null),Ut(!1))},onCancel:()=>{Rt(null),Ut(!1)}}):e.jsxs(e.Fragment,{children:[e.jsx(v.default,{showUserStoryDiff:L,isParent:""===R,message:r.formatMarkdown(U.value)||"",artifactId:U.artifactId,customStyles:ct,isDisplayHighlightControl:z,contextVariant:Z,showConfidenceScore:te,CDNeededInChip:ce,blockId:ve,storyId:pe,showWaitingIconInChip:fe}),(de||ue)&&e.jsxs("div",{className:a.default.actionButtonsContainer,style:null==mt?void 0:mt.container,children:[ue&&!Dt.userStory&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",className:a.default.actionButton,style:null==mt?void 0:mt.button,disabled:ue.disabled||ue.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=ue.onClick)||void 0===t||t.call(ue),Bt(e=>({...e,userStory:!0})),Wt(!0)},children:ue.isLoading?e.jsxs(e.Fragment,{children:[e.jsx(l.LoaderCircle,{size:16,className:a.default.actionButtonSpinner,style:null==mt?void 0:mt.icon}),e.jsx("span",{style:null==mt?void 0:mt.text,children:null!==(Le=ue.label)&&void 0!==Le?Le:"Edit"})]}):e.jsxs(e.Fragment,{children:[e.jsx(l.PencilIcon,{size:16,style:null==mt?void 0:mt.icon}),e.jsx("span",{style:null==mt?void 0:mt.text,children:null!==(Fe=ue.label)&&void 0!==Fe?Fe:"Edit"})]})}),de&&e.jsx("span",{className:a.default.actionButtonDivider})]}),de&&e.jsx("button",{type:"button",className:a.default.actionButton,style:null==mt?void 0:mt.button,disabled:de.disabled||de.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=de.onClick)||void 0===t||t.call(de)},children:de.isLoading?e.jsxs(e.Fragment,{children:[e.jsx(l.LoaderCircle,{size:16,className:a.default.actionButtonSpinner,style:null==mt?void 0:mt.icon}),e.jsx("span",{style:null==mt?void 0:mt.text,children:null!==(We=de.label)&&void 0!==We?We:"Approve"})]}):e.jsxs(e.Fragment,{children:[e.jsx(l.Check,{size:16,style:null==mt?void 0:mt.icon}),e.jsx("span",{style:null==mt?void 0:mt.text,children:null!==($e=de.label)&&void 0!==$e?$e:"Approve"})]})})]})]})]}),null===(Oe=Nt.sub_features)||void 0===Oe?void 0:Oe.map((t,l)=>{console.log("UserStoryCardWrapper: sub",t);const o=B(V,!1,t.artifactId);return e.jsx(T,{artifactId:I,isUserStoryCurrentlyUpdated:n,artifactTitleId:`${b}-${String.fromCharCode(65+l)}`,parentUserStory:U,parentIndex:`${R}${R&&"."}${M}`,currentIndex:`${l+1}`,doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:e=>((e,t)=>{const l=[...U.sub_features||[]];l[e]=t,P({...U,sub_features:l})})(l,e),enableDownload:!0,isDiffEditReviewMode:_,showUserStoryDiff:L,updateUserStoryArtifact:$,handleDownloadUserStory:F,handleOpenSendDialog:W,isDisplayHighlightControl:z,elementDisplayConfig:V,_resolvedConfig:o,actionItemsConfig:Q,onDelete:()=>(e=>{const t=(U.sub_features||[]).filter((t,l)=>l!==e),l={...U,sub_features:t};Et(l),P(l)})(l),expandedSubFeatures:J,disableEditPlan:ae,useMuiTooltip:re,storyNumber:t.storyNumber,blockNumber:t.blockNumber,onUserStoryAccordionStateChange:ge,showAssignSection:he,onAssignSectionClick:ye,onSave:Se},t.artifactId)})]})})]})};exports.StoryCard=T,exports.UserStoryCardWrapper=({artifactTitleIDs:n,expandedSubFeatures:o,isDiffEditReviewMode:i,showUserStoryDiff:s,updateUserStoryArtifact:r,isUserStoryCurrentlyUpdated:d,artifactId:u,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:f,isDisplayHighlightControl:h,elementDisplayConfig:y,showWrapper:S,actionItemsConfig:g,contextVariant:C,showDisplayName:x,allowTitleEdit:I,showConfidenceScore:j,showBorderTop:b,defaultExpanded:w,showCompletionPanel:N=!1,completionPanelConfig:E,showAddSectionButton:D=!1,disableEditPlan:A=!1,useMuiTooltip:k=!1,approveButtonConfig:U,editButtonConfig:P,CDNeededInChip:R,showWaitingIconInChip:M,setRedlineDocumentIdParent:q,showAssignSection:_,onAssignSectionClick:L,disableAssignSection:F,onSave:W,onUserStoryAccordionStateChange:$})=>{const{userStory:O,setUserStory:z,customStyles:V,searchQueryList:G,currentHighlightIndex:H,setCurrentHighlightIndex:Y,segmentComponentConfig:Q,sectionStatusConfig:X,redlineConfig:Z,setRedlineDocumentId:J}=p.useRequirementAI(),K=null==V?void 0:V.userStoryCardStyles,ee=0===H,te=H===G.length-1;return t.useEffect(()=>{if(!(null==Z?void 0:Z.callCreateDocumentOnInit))return;(async()=>{var e;const{redline_document_id:t}=await m.getRedlineDocumentId({baseApiUrl:Z.documentBaseApiUrl||"",comparisonId:Z.documentComparisonId||""});if(t)J(t);else{const{document_id:t}=await m.createRedlineDocument({baseApiUrl:Z.baseApiUrl,changelogConfigId:Z.changelogConfigId,comparisonId:Z.documentComparisonId,artifactId:Z.artifactId,inputData:Z.inputData,redlineConfigId:Z.redlineConfigId,userEmail:Z.userEmail,userName:Z.userName},null!==(e=null==Z?void 0:Z.token)&&void 0!==e?e:"");t&&(J(t),null==q||q(t))}})()},[]),e.jsxs("div",{className:a.default.userStoryCardWrapper,style:h?{...null==K?void 0:K.userStoryCardWrapper,position:"relative"}:null==K?void 0:K.userStoryCardWrapper,children:[h&&e.jsx(e.Fragment,{children:G.length>0&&e.jsx("div",{className:a.default.wrapper,children:e.jsx("div",{className:a.default.highlightNavigation,children:e.jsxs("div",{className:a.default.navigationContainer,children:[e.jsxs("span",{className:a.default.navCounter,children:[H+1," of ",G.length]}),e.jsxs("div",{className:a.default.navButtons,children:[e.jsx("button",{onClick:()=>{H>0&&Y(e=>e-1)},className:a.default.navButton,disabled:ee,children:e.jsx(l.ChevronUpIcon,{size:20,className:a.default.navIcon})}),e.jsx("button",{onClick:()=>{H<G.length-1&&Y(e=>e+1)},className:a.default.navButton,disabled:te,children:e.jsx(l.ChevronDownIcon,{size:20,className:a.default.navIcon})})]})]})})})}),O.map((t,l)=>{console.log("UserStoryCardWrapper: userstory",t);const a=B(y,!0);return e.jsx(T,{isUserStoryCurrentlyUpdated:d,artifactId:u,artifactTitleId:n[l]||"",expandedSubFeatures:o,currentUserStory:t,onUserStoryChange:e=>{z(t=>(t[l]=e,[...t]))},parentIndex:"",currentIndex:`${l+1}`,doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:s,updateUserStoryArtifact:r,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:f,isDisplayHighlightControl:h,elementDisplayConfig:y,_resolvedConfig:a,showWrapper:S,defaultExpanded:w,actionItemsConfig:g,contextVariant:C,showDisplayName:x,allowTitleEdit:I,showConfidenceScore:j,showBorderTop:b,sectionStatusConfig:X,showCompletionPanel:N,completionPanelConfig:E,showAddSectionButton:D,disableEditPlan:A,useMuiTooltip:k,approveButtonConfig:U,CDNeededInChip:R,editButtonConfig:P,storyNumber:t.storyNumber,blockNumber:t.blockNumber,onUserStoryAccordionStateChange:$,showWaitingIconInChip:M,showAssignSection:_,disableAssignSection:F,onAssignSectionClick:L,onSave:W},t.artifactId)})]})},exports.default=T,exports.replaceLearnedTagsWithInfo=D;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("lucide-react"),n=require("showdown"),o=require("@mui/material"),i=require("../../icons/Illustration.svg.js"),s=require("uuid"),a=require("./UserStoryCard.module.css.js"),r=require("../../utils/helpers.js"),d=require("../../utils/user-story.utils.js"),u=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),v=require("../userstory-with-citation/UserStoryWithCitation.js"),p=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../story-screen/BigEnoughPanel.js"),h=require("./TitleEditor/TitleEditor.js"),m=require("../../../../service/redlineService.js"),y=require("./ClinicalTrialSection.js"),g=require("../story-screen/CompletionPanel.js"),S=require("../../icons/CDIcon.js"),x=require("./cws/CwsEvent.js"),C=require("./cws/useCwsEvent.js"),I=require("react-hot-toast"),j=require("./Popups/RedlineToast.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=b(n),N=b(I);const E={[p.SectionStatus.WAITING]:"WAITING TO GENERATE",[p.SectionStatus.IN_PROGRESS]:"IN PROGRESS",[p.SectionStatus.GENERATED]:"GENERATED",[p.SectionStatus.FAILED]:"FAILED",[p.SectionStatus.GENERATE]:"GENERATE",[p.SectionStatus.APPROVED]:"APPROVED"};function D(t){const n=[],i=/<learned>(.*?)<\/learned>/g;let a,r=0,d=0;for(;null!==(a=i.exec(t));){const[,u]=a,c=a.index;c>r&&n.push(e.jsx("span",{children:t.slice(r,c)},"text-pre-"+d++)),n.push(e.jsx(o.Tooltip,{title:u,placement:"top",children:e.jsx(l.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})},`tooltip-${s.v4()}`)),r=i.lastIndex}return r<(null==t?void 0:t.length)&&n.push(e.jsx("span",{children:t.slice(r)},"text-post-"+d++)),n}function B(e,t,l){var n;if(!e)return{};if(t)return{...e.parentConfig};const o={...e.childConfig};return l&&(null===(n=e.subFeatureOverrides)||void 0===n?void 0:n[l])?{...o,...e.subFeatureOverrides[l]}:o}const A=({displayName:t})=>{var n;const{customStyles:o}=p.useRequirementAI(),i=null===(n=null==o?void 0:o.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return e.jsxs("div",{className:a.default.displayName,style:null==i?void 0:i.wrapper,children:[e.jsx(l.Bookmark,{className:a.default.displayNameIcon,style:null==i?void 0:i.displayNameIcon}),e.jsxs("span",{style:null==i?void 0:i.label,children:[t,":"]})]})},T=({isUserStoryCurrentlyUpdated:n,artifactId:I,artifactTitleId:b,parentUserStory:k,currentUserStory:U,onUserStoryChange:P,parentIndex:R,currentIndex:L,enableDownload:M,isDiffEditReviewMode:F,showUserStoryDiff:q,handleDownloadUserStory:_,handleOpenSendDialog:W,updateUserStoryArtifact:$,selectedArtifactId:z,isDisplayHighlightControl:O,elementDisplayConfig:V,_resolvedConfig:G,showWrapper:H=!1,defaultExpanded:Y,actionItemsConfig:Q,onDelete:X,contextVariant:Z,expandedSubFeatures:J,showDisplayName:K=!0,allowTitleEdit:ee=!0,showConfidenceScore:te=!0,showBorderTop:le=!0,sectionStatusConfig:ne,showCompletionPanel:oe=!1,completionPanelConfig:ie,showAddSectionButton:se=!1,disableEditPlan:ae=!1,useMuiTooltip:re=!1,approveButtonConfig:de,editButtonConfig:ue,CDNeededInChip:ce,blockNumber:ve,storyNumber:pe,showWaitingIconInChip:fe,showAssignSection:he=!1,disableAssignSection:me=!1,onAssignSectionClick:ye,onSave:ge,onUserStoryAccordionStateChange:Se,showSuggestedFilesInfo:xe=!1,suggestedFilesConfig:Ce})=>{var Ie,je,be,we,Ne,Ee,De,Be,Ae,Te,ke,Ue,Pe,Re,Le,Me,Fe,qe,_e,We,$e,ze,Oe,Ve,Ge,He,Ye,Qe,Xe,Ze,Je;const{isLoadingSectionData:Ke=!1,onLoadSectionData:et,status:tt,onStatusClick:lt,completedCount:nt,totalCount:ot,isNoDataAvailable:it=!1}=null!=ne?ne:{},{searchQueryList:st,citations:at,customStyles:rt,onEditBlocked:dt,redlineDcoumentId:ut,redlineConfig:ct,customSectionConfig:vt,updateRedlineDataParent:pt,aiReasoning:ft,redlineCollaborativeConfig:ht}=p.useRequirementAI(),mt=null==rt?void 0:rt.userStoryCardStyles,yt=null==mt?void 0:mt.customSectionEditButton,gt=null==mt?void 0:mt.statusStyles,St=null===(Ie=null==rt?void 0:rt.userStoryCardStyles)||void 0===Ie?void 0:Ie.userStoryEditStyles,xt=null===(je=null==rt?void 0:rt.userStoryScreenStyles)||void 0===je?void 0:je.userStoryContentStyles,Ct=null==mt?void 0:mt.progressHeaderStyles,It=null==mt?void 0:mt.clinicalTrialSectionStyles,jt=null==mt?void 0:mt.CompletionStyles,bt=null==mt?void 0:mt.noDataStyles,wt=null==mt?void 0:mt.approveButtonStyles;null==mt||mt.suggestedFilesStyles;const Nt=null!==(we=null===(be=null==vt?void 0:vt.shouldRender)||void 0===be?void 0:be.call(vt,U))&&void 0!==we&&we,Et=null===(Ne=null==vt?void 0:vt.getValue)||void 0===Ne?void 0:Ne.call(vt,U),Dt=null!==(De=null===(Ee=null==vt?void 0:vt.getFields)||void 0===Ee?void 0:Ee.call(vt,U))&&void 0!==De?De:[],Bt=null!==(Be=null==vt?void 0:vt.isEditDisabled)&&void 0!==Be&&Be,At=null!==(Te=null===(Ae=null==vt?void 0:vt.isSaving)||void 0===Ae?void 0:Ae.call(vt,U))&&void 0!==Te&&Te,Tt=(kt=null!==(ke=U.completion_percentage)&&void 0!==ke?ke:0,Ut=jt,kt>=80?null==Ut?void 0:Ut.highCompletion:kt>=50?null==Ut?void 0:Ut.mediumCompletion:null==Ut?void 0:Ut.lowCompletion);var kt,Ut;const Pt={[p.SectionStatus.WAITING]:null==gt?void 0:gt.waiting,[p.SectionStatus.IN_PROGRESS]:null==gt?void 0:gt.inProgress,[p.SectionStatus.GENERATED]:null==gt?void 0:gt.generated,[p.SectionStatus.FAILED]:null==gt?void 0:gt.failed,[p.SectionStatus.GENERATE]:null==gt?void 0:gt.generate,[p.SectionStatus.APPROVED]:null==gt?void 0:gt.approved},[Rt,Lt]=t.useState({...structuredClone(U),value:r.formatMarkdown(U.value)||""}),[Mt,Ft]=t.useState({userStory:!!U.isDefaultEdit}),[qt,_t]=t.useState(!1),[Wt,$t]=t.useState(!1),[zt,Ot]=t.useState(null),[Vt,Gt]=t.useState(null),{userStory:Ht,customIcons:Yt}=p.useRequirementAI(),[Qt,Xt]=t.useState(null!=Y?Y:""===R||z===U.artifactId||!!U.isDefaultOpen),[Zt,Jt]=t.useState(!1),[Kt,el]=t.useState(null),[tl,ll]=t.useState(null),[nl,ol]=t.useState(!1),il=t.useRef(null),sl=t.useRef(null),al=t.useRef(null),[rl,dl]=t.useState(!1),[ul,cl]=t.useState(!1),vl=t.useRef(null),[pl,fl]=t.useState(!1),[hl,ml]=t.useState(!1),[yl,gl]=t.useState(U.value);t.useEffect(()=>{n&&Xt(n)},[n]),t.useEffect(()=>{Lt({...structuredClone(U),value:r.formatMarkdown(U.value)||""})},[U]),t.useEffect(()=>{st.length>0?Xt(!0):void 0===Y&&z&&Xt(z===U.artifactId)},[st,z,U.artifactId]),t.useEffect(()=>{J&&J.length>0&&pe&&ve&&Xt(J.includes(`${pe}-${ve}`)||""===R||z===U.artifactId||!!U.isDefaultOpen)},[J,pe,ve]),t.useEffect(()=>{if(!hl)return;const e=e=>{sl.current&&!sl.current.contains(e.target)&&ml(!1)};return document.addEventListener("mousedown",e,!0),()=>{document.removeEventListener("mousedown",e,!0)}},[hl]);const Sl=()=>{el(null)},xl=()=>{ll(null)},Cl=()=>{if(Qt&&Mt.userStory&&al.current&&!al.current.requestClose())return;const e=!Qt;Xt(e),null==Se||Se(U,e)},Il=async()=>{var e,t;try{"userStory"==="userStory"&&(P(Rt),console.log("I am changing RTE editor values",Rt)),await(null===(e=null==ue?void 0:ue.onSaveEditedSection)||void 0===e?void 0:e.call(ue,Rt)),await $(at,Ht,I,null===(t=vl.current)||void 0===t?void 0:t.signal)}finally{}};const jl=null!=(null==U?void 0:U.big_enough)&&!Number.isNaN(U.big_enough)&&!!(null==U?void 0:U.big_enough_decision_factors),bl=null!==(Ue=null==U?void 0:U.completion_percentage)&&void 0!==Ue?Ue:0,wl=!!(null==U?void 0:U.completion_decision_factors),Nl=""===R,El=null!=G?G:B(V,Nl),Dl=!F&&!q;t.useEffect(()=>{if(!Vt)return;const e=setTimeout(()=>{const e=document.getElementById(`story-card-${Vt}`);null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(e)},[Vt]);const[Bl,Al]=t.useState(0),[Tl,kl]=t.useState(!1),Ul=async()=>{var e,t;let l=!0;if(kl(e=>(l=!e,!0)),l){let l;Al(e=>(l=e,e));try{const{updated_reqai:n}=await m.fetchRedlineDocumentSection({documentId:ut,sectionId:U.artifactId,baseApiUrl:null==ct?void 0:ct.baseApiUrl,redlineConfigId:null!==(e=null==ct?void 0:ct.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==ct?void 0:ct.token)&&void 0!==t?t:"");await(null==pt?void 0:pt(n)),Al(e=>l===e?0:1)}catch(e){console.error("failed to fetch latest user story: ",e),N.default.error("Failed to fetch the latest user story. Please try again.")}kl(!1)}};t.useEffect(()=>{U.isDefaultEdit&&Ft(e=>({...e,userStory:!0}))},[U.isDefaultEdit]),console.log("block number in userstory card ",ve),console.log("[TESTING-CURRENT-USER-STORY] \n",U,"\n[TESTING-USER-STORY] \n",Ht),C.default(`redline-edit:${ut}:${U.artifactId}`,async({updatedBy:t})=>{var l;null===(l=vl.current)||void 0===l||l.abort(),Al(e=>e+1),Ft(l=>l.userStory?(N.default.custom(l=>e.jsxs(j.default,{onCancel:()=>N.default.dismiss(l.id),onRefresh:()=>{N.default.dismiss(l.id),Ul()},children:["This ",e.jsx("span",{style:{fontWeight:600},children:U.title})," section has been updated by ",e.jsx("span",{style:{fontWeight:600},children:t})," while you were editing. Please refresh to view the latest version."]}),{duration:1e4,toasterId:p.ToasterId}),{...Ht,userStory:!1}):(Ul().then(()=>{N.default.custom(l=>e.jsxs(j.default,{onCancel:()=>N.default.dismiss(l.id),title:e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{fontWeight:600},children:U.title})," updated,",e.jsx("br",{})]}),children:[t," saved changes. Your unsaved edits are untouched."]}),{duration:1e4,toasterId:p.ToasterId})}),l))});return t.useEffect(()=>gl(U.value),[U.value]),e.jsxs("div",{className:a.default.card,"data-block-id":`user-story-card-wrapper-${pe}-${ve}`,style:null==mt?void 0:mt.cardStyle,id:`story-card-${U.title}`,"data-expanded":Qt,children:[e.jsxs("div",{className:a.default.titleSection,style:null==mt?void 0:mt.titleSection,children:[e.jsxs("div",{className:a.default.titleRow,style:null==mt?void 0:mt.titleRow,onClick:Cl,children:[e.jsxs("div",{className:a.default.titleLeft,style:null==mt?void 0:mt.titleLeft,onMouseEnter:()=>dl(!0),onMouseLeave:()=>dl(!1),children:[K&&e.jsx(A,{displayName:b}),qt&&Dl?e.jsx(h.InlineTitleEditor,{title:U.title,onSave:e=>(async(e,t)=>{var l;try{let n={...U};U.artifactId===t?n.title=e:n.sub_features=(null===(l=U.sub_features)||void 0===l?void 0:l.map(l=>l.artifactId===t?{...l,title:e}:l))||[],Lt(n),P(n),_t(!1)}catch(e){console.error("Failed to save title",e)}})(e,U.artifactId),onCancel:()=>{_t(!1)},inputStyle:null==St?void 0:St.inlineTitleInput,confirmButtonStyle:null==St?void 0:St.inlineTitleConfirm,cancelButtonStyle:null==St?void 0:St.inlineTitleCancel},"inline-title-editor"):e.jsxs("div",{className:a.default.storyTitleWrapper,children:[e.jsx(o.Tooltip,{title:D(U.title),arrow:!0,children:e.jsx("h2",{title:re?void 0:U.title,className:a.default.storyTitle,style:null==mt?void 0:mt.storyTitle,children:D(U.title)},U.artifactId)}),xe&&!Nt&&e.jsx("div",{ref:sl,style:{display:"inline-flex"},children:e.jsx(o.Tooltip,{open:hl&&!(null==Ce?void 0:Ce.isLoading)&&!!(null===(Pe=null==Ce?void 0:Ce.files)||void 0===Pe?void 0:Pe.length),disableHoverListener:!0,disableFocusListener:!0,disableTouchListener:!0,placement:"bottom",PopperProps:{disablePortal:!0},arrow:!0,componentsProps:{tooltip:{className:a.default.suggestedFilesTooltip,sx:{backgroundColor:"#334155",color:"#fff",maxWidth:400,padding:0,borderRadius:"8px",boxShadow:"0 8px 24px rgba(0,0,0,0.25)"}},arrow:{sx:{color:"#334155"}}},title:e.jsxs("div",{onClick:e=>e.stopPropagation(),children:[e.jsxs("div",{style:{fontWeight:700,fontSize:15,color:"#fff",padding:"12px 14px 10px 14px",borderBottom:"1px solid rgba(255,255,255,0.15)",whiteSpace:"nowrap"},children:[null!==(Re=null==Ce?void 0:Ce.title)&&void 0!==Re?Re:"Suggested files to generate this section"," ","(",null!==(Me=null===(Le=null==Ce?void 0:Ce.files)||void 0===Le?void 0:Le.length)&&void 0!==Me?Me:0,")"]}),e.jsx("ol",{className:a.default.suggestedFilesList,style:{margin:0,padding:"8px 14px 10px 14px",maxHeight:180,overflowY:"auto",listStyle:"none"},children:null===(Fe=null==Ce?void 0:Ce.files)||void 0===Fe?void 0:Fe.map((t,l)=>e.jsxs("li",{style:{fontSize:14,color:"#CBD5E1",padding:"6px 0",whiteSpace:"nowrap"},children:[l+1,". ",t]},l))})]}),children:e.jsx(l.Info,{size:16,style:{cursor:(null==Ce?void 0:Ce.isLoading)||!(null===(qe=null==Ce?void 0:Ce.files)||void 0===qe?void 0:qe.length)?"not-allowed":"pointer",color:"#94A3B8",marginLeft:4,opacity:(null==Ce?void 0:Ce.isLoading)||!(null===(_e=null==Ce?void 0:Ce.files)||void 0===_e?void 0:_e.length)?.4:1,transition:"opacity 0.15s ease"},onClick:e=>{var t;e.stopPropagation(),!(null==Ce?void 0:Ce.isLoading)&&(null===(t=null==Ce?void 0:Ce.files)||void 0===t?void 0:t.length)&&ml(e=>!e)}})})}),oe&&(wl?e.jsx(g.CompletionPanel,{customIcons:null==Yt?void 0:Yt.userStoryIcons,customStyles:null==mt?void 0:mt.aiReasoningCitaionStyles,currentUserStory:U,panelStyles:null==mt?void 0:mt.CompletionStyles,onToggleStateChange:cl,completionPanelConfig:ie,children:e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==jt?void 0:jt.badge,...Tt},children:[e.jsxs("span",{children:[bl,"% Completed"]}),e.jsx("span",{style:{display:"flex",alignItems:"center"},children:e.jsx(S.default,{color:"currentColor"})}),ul?e.jsx(l.ChevronUp,{size:14,style:null==jt?void 0:jt.chevronStyle}):e.jsx(l.ChevronDown,{size:14,style:null==jt?void 0:jt.chevronStyle})]})}):e.jsx("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==jt?void 0:jt.badge,...Tt},children:e.jsxs("span",{children:[bl,"% Completed"]})})),ee&&e.jsx("button",{type:"button",className:a.default.titleEditButton,style:null==St?void 0:St.titleEditButton,onClick:e=>{e.stopPropagation(),_t(!0),Qt||Xt(!0)},"aria-label":"Edit title",title:"Edit title",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})})})]})]}),(tt||void 0!==nt&&void 0!==ot)&&e.jsxs("div",{className:a.default.statusContainer,children:[void 0!==nt&&void 0!==ot&&e.jsxs("div",{className:a.default.completedBadge,children:["Completed: ",nt,"/",ot]}),tt&&e.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),null==lt||lt()},onMouseEnter:()=>fl(!0),onMouseLeave:()=>fl(!1),className:a.default.statusButton,style:{...null===(We=Pt[tt])||void 0===We?void 0:We.default,...pl&&(null===($e=Pt[tt])||void 0===$e?void 0:$e.hover)},children:E[tt]})]}),e.jsxs("div",{className:a.default.titleActions,style:null==mt?void 0:mt.titleActions,onClick:e=>e.stopPropagation(),children:[(El.showProgressPercentage||El.showGapBox)&&H&&e.jsxs("div",{className:a.default.progressHeader,style:null==Ct?void 0:Ct.wrapper,children:[El.showProgressPercentage&&e.jsxs("div",{className:a.default.progressPercentage,style:null==Ct?void 0:Ct.percentage,children:[null!==(Oe=null!==(ze=null==U?void 0:U.confidenceScore)&&void 0!==ze?ze:null==El?void 0:El.confidenceValue)&&void 0!==Oe?Oe:"0","%"]}),El.showGapBox&&e.jsxs("div",{className:a.default.gapBox,style:null==Ct?void 0:Ct.gapBox,children:[null!==(Ge=null!==(Ve=null==U?void 0:U.gapValue)&&void 0!==Ve?Ve:null==El?void 0:El.gapBoxValue)&&void 0!==Ge?Ge:"2"," ","Gaps"]})]}),jl&&e.jsx(f.BigEnoughPanel,{customIcons:null==Yt?void 0:Yt.userStoryIcons,customStyles:null==mt?void 0:mt.aiReasoningCitaionStyles,currentUserStory:U,panelStyles:null==mt?void 0:mt.BigEnoughStyles}),he&&e.jsx("button",{type:"button",className:a.default.iconButton,style:null==mt?void 0:mt.iconButton,disabled:me,onClick:e=>{e.stopPropagation(),null==ye||ye(U)},"aria-label":"Assign section users",title:"Assign section users",children:e.jsx(l.Users,{size:16})}),!Mt.userStory&&e.jsxs(e.Fragment,{children:[!1!==(null==El?void 0:El.showShareButton)&&e.jsx("button",{className:a.default.iconButton,style:null==mt?void 0:mt.iconButton,onClick:e=>{el(e.currentTarget)},children:e.jsx(l.ExternalLink,{size:16})}),e.jsxs(o.Menu,{id:"user-story-share-menu",anchorEl:Kt,open:!!Kt,onClose:()=>el(null),style:null==mt?void 0:mt.userStoryShareMenu,children:[M&&e.jsx(o.MenuItem,{style:null==mt?void 0:mt.userStoryMenuItem,onClick:async()=>{Jt(!0),_&&(await Promise.all([_("pdf"),_("doc")]),Jt(!1))},children:e.jsxs("div",{ref:il,className:a.default.menuItemContent,style:null==mt?void 0:mt.menuItemContent,children:[e.jsx(l.Download,{size:16,color:null==mt?void 0:mt.menuIconColor}),e.jsx("p",{style:null==mt?void 0:mt.menuLabel,children:"Download"})]})}),e.jsx(o.MenuItem,{style:null==mt?void 0:mt.userStoryMenuItem,onClick:async()=>{let e=U;k&&(e={...U,value:`${d.replaceTitleSection(null==k?void 0:k.value,U.title)} \n${U.value}`}),null==W||W(!0,[e],U.artifactId),Sl()},children:e.jsxs("div",{style:null==mt?void 0:mt.menuItemContent,className:a.default.menuItemContentPadded,children:[e.jsx(l.Share2,{size:16,color:null==mt?void 0:mt.menuIconColor}),e.jsx("p",{style:null==mt?void 0:mt.menuLabel,children:"Send"})]})}),e.jsx(o.MenuItem,{style:null==mt?void 0:mt.userStoryMenuItem,onClick:async()=>{const e=(new w.default.Converter).makeHtml(r.formatMarkdown(U.value)||U.value),t=function(e){const t=(new w.default.Converter).makeHtml(e),l=document.createElement("div");return l.innerHTML=t,l.textContent||l.innerText||""}(r.formatMarkdown(U.value)||U.value),l=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})});try{await navigator.clipboard.write([l]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{Sl()}},children:e.jsxs("div",{style:null==mt?void 0:mt.menuItemContent,className:a.default.menuItemContentPadded,children:[e.jsx(l.Copy,{size:16,color:null==mt?void 0:mt.menuIconColor}),e.jsx("p",{style:null==mt?void 0:mt.menuLabel,children:"Copy"})]})})]})]}),!nl&&Mt.userStory&&Qt?e.jsx(u.default,{type:"outline",children:"Cancel",style:null==mt?void 0:mt.cancelButton,onClick:()=>{var e;null===(e=vl.current)||void 0===e||e.abort(),Ft(e=>({...e,userStory:!1}))}}):e.jsx(e.Fragment,{}),Mt.userStory&&Qt?e.jsx(u.default,{type:"fill",children:nl?e.jsxs("span",{className:a.default.savingSpinner,style:null==mt?void 0:mt.savingSpinner,children:[e.jsx(l.LoaderCircle,{className:a.default.spinAnimation,style:null==mt?void 0:mt.spinAnimation}),e.jsx("span",{children:"Saving..."})]}):"Save",isDisable:nl,style:nl?null==mt?void 0:mt.savingButton:null==mt?void 0:mt.saveButton,onClick:async()=>{ol(!0),await Il();let e=await(async()=>{var e,t,l,n,o,i,s,a;let r=Rt.value;console.log("[V] valueToUpdate before",r),r=r.replace(/<invisible\s+id="([^"]+)"\s*><\/invisible>/gi,"\x3c!-- $1 --\x3e"),console.log("[V] valueToUpdate after",r);try{await(null==ge?void 0:ge(r,U.artifactId))}catch(e){}try{if(null==ct?void 0:ct.callUpdateDocument){const{updated_reqai:d}=await m.updateRedlineDocument({documentId:ut,sectionId:U.artifactId,baseApiUrl:null==ct?void 0:ct.baseApiUrl,updatedContent:r,userEmail:ct.userEmail,userName:ct.userName,redlineConfigId:null!==(e=ct.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==ct?void 0:ct.token)&&void 0!==t?t:"");r=null===(o=null===(n=null===(l=null==d?void 0:d.artifactData)||void 0===l?void 0:l.userStorySnapshot)||void 0===n?void 0:n[0])||void 0===o?void 0:o.value,await(null==pt?void 0:pt(d));const u=null===(a=null===(s=null===(i=null==d?void 0:d.artifactData)||void 0===i?void 0:i.userStorySnapshot)||void 0===s?void 0:s[0])||void 0===a?void 0:a.artifactId;"string"==typeof u&&u.trim()&&"string"==typeof ut&&ut.trim()&&"string"==typeof(null==ct?void 0:ct.userName)&&(null==ct?void 0:ct.userName.trim())?x.default.emit(`redline-edit:${ut}:${u}`,{updatedBy:null==ct?void 0:ct.userName}):console.error("invalid cwsEvent name or payload")}}catch(e){console.error("failed to update redline document",e),r=yl}return r=r.replace(/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,'<invisible id="$1"></invisible>'),r})();const t={...Rt,value:e};P({...t,isDefaultEdit:!1}),gl(t.value),Ft(e=>({...e,userStory:!1})),ol(!1)}}):!Bl&&!F&&!q&&!ae&&Qt&&!1!==(null==El?void 0:El.showEditButton)&&e.jsx("button",{className:a.default.iconButton,style:null==mt?void 0:mt.editButton,onClick:()=>Ft(e=>({...e,userStory:!0})),children:e.jsx(l.PencilIcon,{color:null==mt?void 0:mt.pencilIconColor,size:16})}),(null==ht?void 0:ht.initiateCollaborativeFlow)&&!!Bl&&e.jsx(o.Tooltip,{title:"Fetch latest section",children:e.jsx(l.RefreshCw,{color:Tl?"#d3d3d3":"black",onClick:Ul})}),se&&Nl&&Qt&&!F&&!q&&!1!==(null==El?void 0:El.showEditButton)&&e.jsxs("button",{type:"button",className:a.default.addSectionButton,style:null==St?void 0:St.addSectionButton,onClick:e=>{var t,l,n;e.stopPropagation();const o=(null!==(l=null===(t=U.sub_features)||void 0===t?void 0:t.length)&&void 0!==l?l:0)+1,i={artifactId:s.v4(),title:`New Section ${o}`,value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},a={...U,sub_features:[...null!==(n=U.sub_features)&&void 0!==n?n:[],i]};Lt(a),P(a),Xt(!0),Gt(i.title)},"aria-label":"Add section",title:"Add section",children:[e.jsx(l.Plus,{size:14}),e.jsx("span",{className:a.default.addSectionLabel,children:"Add Section"})]}),!Nl&&!F&&!ae&&!q&&e.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),null==X||X()},className:a.default.iconButton,style:null==St?void 0:St.deleteButton,"aria-label":"Delete section",title:"Delete section",children:e.jsx(l.Trash2,{size:16})}),Nt&&e.jsx("button",{type:"button",className:a.default.iconButton,style:null==yt?void 0:yt.button,disabled:Bt,onClick:e=>{if(e.stopPropagation(),Wt)return Ot(null),void $t(!1);Ot(structuredClone(null!=Et?Et:{})),Xt(!0),$t(!0)},children:Wt?e.jsx(l.X,{size:16,color:null==mt?void 0:mt.pencilIconColor,style:null==yt?void 0:yt.cancelIcon}):e.jsx(l.PencilIcon,{size:16,color:null==mt?void 0:mt.pencilIconColor,style:null==yt?void 0:yt.editIcon})}),(null==El?void 0:El.actionItemsButton)&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:a.default.actionItemBtn,style:null==mt?void 0:mt.actionItemBtn,onClick:e=>{e.stopPropagation(),ll(e.currentTarget)},children:e.jsx(l.Ellipsis,{})}),e.jsx(o.Menu,{id:"user-story-action-menu",anchorEl:tl,open:!!tl,onClose:xl,style:null==mt?void 0:mt.userStoryShareMenu,children:null==Q?void 0:Q.items.map((t,l)=>e.jsx(o.MenuItem,{style:null==mt?void 0:mt.userStoryMenuItem,onClick:()=>{t.onclick(U),xl()},children:e.jsxs("div",{className:a.default.menuItemContent,style:{...null==mt?void 0:mt.menuItemContent,...!t.isActive&&{cursor:"not-allowed",opacity:.5}},children:[e.jsx("span",{className:a.default.menuItemIcon,style:null==mt?void 0:mt.menuItemIcon,children:t.icon}),e.jsx("p",{style:null==mt?void 0:mt.menuLabel,children:t.name}),e.jsx("span",{className:a.default.menuItemRight,style:null==mt?void 0:mt.menuItemRight})]})},`action-item-${l}-${t.name}`))})]}),e.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),Cl()},style:null==mt?void 0:mt.chevronButton,className:a.default.chevronButton,children:Qt?e.jsx(l.ChevronUp,{className:a.default.chevronIcon,color:null==mt?void 0:mt.chevronIconColor}):e.jsx(l.ChevronDown,{className:a.default.chevronIcon,color:null==mt?void 0:mt.chevronIconColor})})]})]}),e.jsx("div",{className:a.default.divider,style:null==mt?void 0:mt.dividerStyle})]}),Qt&&e.jsx("div",{className:a.default.cardContent,style:{...null==mt?void 0:mt.cardContentStyle,borderTop:le?"1px solid #E5E5E5":"none"},children:Ke?e.jsxs("div",{className:a.default.loadingContainer,children:[e.jsx("div",{className:a.default.loadingIconWrapper,children:e.jsx(l.Hourglass,{size:28,color:"#5B3DF5",className:a.default.spinAnimation})}),e.jsxs("div",{children:[e.jsx("h3",{className:a.default.loadingTitle,children:"Section generation in progress.."}),e.jsx("p",{className:a.default.loadingSubtitle,children:"This may take a few minutes"})]}),e.jsx("button",{type:"button",onClick:()=>null==et?void 0:et(),className:a.default.viewStatusButton,children:"View Status"})]}):it?e.jsxs("div",{className:a.default.noDataContainer,style:null==bt?void 0:bt.container,children:[e.jsx("img",{src:i.default,alt:"No data available",className:a.default.noDataIllustration,style:null==bt?void 0:bt.illustration}),e.jsx("h3",{className:a.default.noDataTitle,style:null==bt?void 0:bt.title,children:"No Data Available for This Section"}),e.jsx("p",{className:a.default.noDataSubtitle,style:null==bt?void 0:bt.subtitle,children:"We couldn't find data for this section yet. Upload the required document from the Documents tab to generate content."})]}):e.jsxs("div",{className:a.default.contentInner,style:null==mt?void 0:mt.contentInner,children:[e.jsxs("div",{className:a.default.descriptionSection,style:null==mt?void 0:mt.descriptionSection,children:[e.jsx("div",{className:a.default.justifyBetween,style:null==mt?void 0:mt.justifyBetween}),Mt.userStory?e.jsx(c.default,{ref:al,minHeight:"100%",height:"100%",type:"string",value:r.formatMarkdown(yl)||"",handleUpdateState:(e,t)=>{const l=d.postprocessUserStoryAfterEdit(r.indentMarkdown(t));Lt(e=>({...e,value:l||""}))},doNotShowBorderInViewMode:!1,onBlur:()=>{},mode:Mt.userStory?"edit":"readOnly",onEditBlocked:dt,onSaveUnsavedChanges:async()=>{await Il(),Xt(!1)},onDiscardUnsavedChanges:()=>{Lt({...structuredClone(U),value:r.formatMarkdown(U.value)||""}),Ft(e=>({...e,userStory:!1})),Xt(!1)},isSavingUnsavedChanges:nl}):Nt?e.jsx(y.default,{styles:It,fields:Dt,readonly:!Wt,isSaving:At,value:null!==(He=null!=zt?zt:Et)&&void 0!==He?He:{},onChange:Ot,onSave:async()=>{var e;zt&&(await(null===(e=null==vt?void 0:vt.onSave)||void 0===e?void 0:e.call(vt,U,zt)),Ot(null),$t(!1))},onCancel:()=>{Ot(null),$t(!1)}}):e.jsxs(e.Fragment,{children:[e.jsx(v.default,{showUserStoryDiff:q,isParent:""===R,message:r.formatMarkdown(U.value)||"",artifactId:U.artifactId,customStyles:xt,isDisplayHighlightControl:O,contextVariant:Z,showConfidenceScore:te,CDNeededInChip:ce,blockId:ve,storyId:pe,showWaitingIconInChip:fe}),(de||ue)&&e.jsxs("div",{className:a.default.actionButtonsContainer,style:null==wt?void 0:wt.container,children:[ue&&!Mt.userStory&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",className:a.default.actionButton,style:null==wt?void 0:wt.button,disabled:ue.disabled||ue.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=ue.onClick)||void 0===t||t.call(ue),Ft(e=>({...e,userStory:!0})),Xt(!0)},children:ue.isLoading?e.jsxs(e.Fragment,{children:[e.jsx(l.LoaderCircle,{size:16,className:a.default.actionButtonSpinner,style:null==wt?void 0:wt.icon}),e.jsx("span",{style:null==wt?void 0:wt.text,children:null!==(Ye=ue.label)&&void 0!==Ye?Ye:"Edit"})]}):e.jsxs(e.Fragment,{children:[e.jsx(l.PencilIcon,{size:16,style:null==wt?void 0:wt.icon}),e.jsx("span",{style:null==wt?void 0:wt.text,children:null!==(Qe=ue.label)&&void 0!==Qe?Qe:"Edit"})]})}),de&&e.jsx("span",{className:a.default.actionButtonDivider})]}),de&&e.jsx("button",{type:"button",className:a.default.actionButton,style:null==wt?void 0:wt.button,disabled:de.disabled||de.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=de.onClick)||void 0===t||t.call(de)},children:de.isLoading?e.jsxs(e.Fragment,{children:[e.jsx(l.LoaderCircle,{size:16,className:a.default.actionButtonSpinner,style:null==wt?void 0:wt.icon}),e.jsx("span",{style:null==wt?void 0:wt.text,children:null!==(Xe=de.label)&&void 0!==Xe?Xe:"Approve"})]}):e.jsxs(e.Fragment,{children:[e.jsx(l.Check,{size:16,style:null==wt?void 0:wt.icon}),e.jsx("span",{style:null==wt?void 0:wt.text,children:null!==(Ze=de.label)&&void 0!==Ze?Ze:"Approve"})]})})]})]})]}),null===(Je=Rt.sub_features)||void 0===Je?void 0:Je.map((t,l)=>{console.log("UserStoryCardWrapper: sub",t);const o=B(V,!1,t.artifactId);return e.jsx(T,{artifactId:I,isUserStoryCurrentlyUpdated:n,artifactTitleId:`${b}-${String.fromCharCode(65+l)}`,parentUserStory:U,parentIndex:`${R}${R&&"."}${L}`,currentIndex:`${l+1}`,doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:e=>((e,t)=>{const l=[...U.sub_features||[]];l[e]=t,P({...U,sub_features:l})})(l,e),enableDownload:!0,isDiffEditReviewMode:F,showUserStoryDiff:q,updateUserStoryArtifact:$,handleDownloadUserStory:_,handleOpenSendDialog:W,isDisplayHighlightControl:O,elementDisplayConfig:V,_resolvedConfig:o,actionItemsConfig:Q,onDelete:()=>(e=>{const t=(U.sub_features||[]).filter((t,l)=>l!==e),l={...U,sub_features:t};Lt(l),P(l)})(l),expandedSubFeatures:J,disableEditPlan:ae,useMuiTooltip:re,storyNumber:t.storyNumber,blockNumber:t.blockNumber,onUserStoryAccordionStateChange:Se,showAssignSection:he,onAssignSectionClick:ye,onSave:ge},t.artifactId)})]})})]})};exports.StoryCard=T,exports.UserStoryCardWrapper=({artifactTitleIDs:n,expandedSubFeatures:o,isDiffEditReviewMode:i,showUserStoryDiff:s,updateUserStoryArtifact:r,isUserStoryCurrentlyUpdated:d,artifactId:u,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:f,isDisplayHighlightControl:h,elementDisplayConfig:y,showWrapper:g,actionItemsConfig:S,contextVariant:x,showDisplayName:C,allowTitleEdit:I,showConfidenceScore:j,showBorderTop:b,defaultExpanded:w,showCompletionPanel:N=!1,completionPanelConfig:E,showAddSectionButton:D=!1,disableEditPlan:A=!1,useMuiTooltip:k=!1,approveButtonConfig:U,editButtonConfig:P,CDNeededInChip:R,showWaitingIconInChip:L,setRedlineDocumentIdParent:M,showAssignSection:F,onAssignSectionClick:q,disableAssignSection:_,onSave:W,onUserStoryAccordionStateChange:$,showSuggestedFilesInfo:z,suggestedFilesConfig:O})=>{const{userStory:V,setUserStory:G,customStyles:H,searchQueryList:Y,currentHighlightIndex:Q,setCurrentHighlightIndex:X,segmentComponentConfig:Z,sectionStatusConfig:J,redlineConfig:K,setRedlineDocumentId:ee}=p.useRequirementAI(),te=null==H?void 0:H.userStoryCardStyles,le=0===Q,ne=Q===Y.length-1;return t.useEffect(()=>{if(!(null==K?void 0:K.callCreateDocumentOnInit))return;(async()=>{var e;const{redline_document_id:t}=await m.getRedlineDocumentId({baseApiUrl:K.documentBaseApiUrl||"",comparisonId:K.documentComparisonId||""});if(t)ee(t);else{const{document_id:t}=await m.createRedlineDocument({baseApiUrl:K.baseApiUrl,changelogConfigId:K.changelogConfigId,comparisonId:K.documentComparisonId,artifactId:K.artifactId,inputData:K.inputData,redlineConfigId:K.redlineConfigId,userEmail:K.userEmail,userName:K.userName},null!==(e=null==K?void 0:K.token)&&void 0!==e?e:"");t&&(ee(t),null==M||M(t))}})()},[]),e.jsxs("div",{className:a.default.userStoryCardWrapper,style:h?{...null==te?void 0:te.userStoryCardWrapper,position:"relative"}:null==te?void 0:te.userStoryCardWrapper,children:[h&&e.jsx(e.Fragment,{children:Y.length>0&&e.jsx("div",{className:a.default.wrapper,children:e.jsx("div",{className:a.default.highlightNavigation,children:e.jsxs("div",{className:a.default.navigationContainer,children:[e.jsxs("span",{className:a.default.navCounter,children:[Q+1," of ",Y.length]}),e.jsxs("div",{className:a.default.navButtons,children:[e.jsx("button",{onClick:()=>{Q>0&&X(e=>e-1)},className:a.default.navButton,disabled:le,children:e.jsx(l.ChevronUpIcon,{size:20,className:a.default.navIcon})}),e.jsx("button",{onClick:()=>{Q<Y.length-1&&X(e=>e+1)},className:a.default.navButton,disabled:ne,children:e.jsx(l.ChevronDownIcon,{size:20,className:a.default.navIcon})})]})]})})})}),V.map((t,l)=>{console.log("UserStoryCardWrapper: userstory",t);const a=B(y,!0);return e.jsx(T,{isUserStoryCurrentlyUpdated:d,artifactId:u,artifactTitleId:n[l]||"",expandedSubFeatures:o,currentUserStory:t,onUserStoryChange:e=>{G(t=>(t[l]=e,[...t]))},parentIndex:"",currentIndex:`${l+1}`,doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:s,updateUserStoryArtifact:r,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:f,isDisplayHighlightControl:h,elementDisplayConfig:y,_resolvedConfig:a,showWrapper:g,defaultExpanded:w,actionItemsConfig:S,contextVariant:x,showDisplayName:C,allowTitleEdit:I,showConfidenceScore:j,showBorderTop:b,sectionStatusConfig:J,showCompletionPanel:N,completionPanelConfig:E,showAddSectionButton:D,disableEditPlan:A,useMuiTooltip:k,approveButtonConfig:U,CDNeededInChip:R,editButtonConfig:P,storyNumber:t.storyNumber,blockNumber:t.blockNumber,onUserStoryAccordionStateChange:$,showSuggestedFilesInfo:z,suggestedFilesConfig:O,showWaitingIconInChip:L,showAssignSection:F,disableAssignSection:_,onAssignSectionClick:q,onSave:W},t.artifactId)})]})},exports.default=T,exports.replaceLearnedTagsWithInfo=D;
2
2
  //# sourceMappingURL=UserStoryCard.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 r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;margin-left:.5rem;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_iconButton__DkfRA:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_actionItemBtn__3jocB{font-size:18px;line-height:0}.UserStoryCard-module_menuItemIcon__BxrJU{align-items:center;display:inline-flex;margin-right:.5rem}.UserStoryCard-module_menuItemRight__Cjw2j{align-self:center;border-radius:50%;height:8px;margin-left:auto;width:8px}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_storyTitleWrapper__Ng-Th{align-items:center;display:flex;gap:6px;min-width:0}.UserStoryCard-module_titleEditButton__iJADR{align-items:center;background:#0000;border:none;border-radius:4px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;opacity:1;padding:3px;transition:opacity .15s ease,background .15s ease,color .15s ease}.UserStoryCard-module_titleEditButton__iJADR:hover{background:var(--color-surface-hover,#f3f4f6);color:var(--color-primary,#4f46e5);opacity:1}.UserStoryCard-module_titleEditButton__iJADR:focus-visible{opacity:1;outline:2px solid var(--color-primary,#4f46e5);outline-offset:1px}.UserStoryCard-module_inlineTitleEditor__rdF-w{align-items:center;display:flex;flex:1;gap:4px;min-width:0}.UserStoryCard-module_inlineTitleInput__Ft6mB{background:var(--color-surface,#fff);border:1.5px solid var(--color-primary,#4f46e5);border-radius:5px;color:var(--color-text-primary,#111827);flex:1;font-size:inherit;font-weight:600;line-height:1.4;min-width:0;outline:none;padding:3px 8px;transition:border-color .15s ease,box-shadow .15s ease}.UserStoryCard-module_inlineTitleInput__Ft6mB:focus{border-color:var(--color-primary,#4f46e5);box-shadow:0 0 0 3px #4f46e526}.UserStoryCard-module_inlineTitleConfirm__YTG-3{align-items:center;background:var(--color-primary,#4f46e5);border:none;border-radius:5px;color:#fff;cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,transform .1s ease;width:26px}.UserStoryCard-module_inlineTitleConfirm__YTG-3:hover:not(:disabled){background:var(--color-primary-dark,#4338ca)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:active:not(:disabled){transform:scale(.93)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:disabled{cursor:not-allowed;opacity:.45}.UserStoryCard-module_inlineTitleConfirm__YTG-3:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_inlineTitleCancel__clhBR{align-items:center;background:#0000;border:1.5px solid var(--color-border,#e5e7eb);border-radius:5px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,color .15s ease,border-color .15s ease;width:26px}.UserStoryCard-module_inlineTitleCancel__clhBR:hover{background:var(--color-surface-hover,#f3f4f6);border-color:var(--color-danger,#ef4444);color:var(--color-danger,#ef4444)}.UserStoryCard-module_inlineTitleCancel__clhBR:focus-visible{outline:2px solid var(--color-danger,#ef4444);outline-offset:2px}.UserStoryCard-module_addSectionButton__lBCWj{align-items:center;background:#0000;border:1.5px dashed var(--color-border,#d1d5db);border-radius:6px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:500;gap:5px;padding:6px 10px;transition:border-color .15s ease,color .15s ease,background .15s ease;white-space:nowrap}.UserStoryCard-module_addSectionButton__lBCWj:hover{background:var(--color-primary-subtle,#4f46e50d);border-color:var(--color-primary,#4f46e5);color:var(--color-primary,#4f46e5)}.UserStoryCard-module_addSectionButton__lBCWj:active{transform:scale(.97)}.UserStoryCard-module_addSectionButton__lBCWj:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_addSectionLabel__kUs2E{display:inline}.UserStoryCard-module_viewStatusButton__4-ISq{background:#0000;border:1px solid #5b3df5;border-radius:12px;color:#5b3df5;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:all .2s ease}.UserStoryCard-module_viewStatusButton__4-ISq:hover{background:#5b3df5;color:#fff}.UserStoryCard-module_viewStatusButton__4-ISq:active{transform:scale(.98)}.UserStoryCard-module_statusContainer__Blr6F{align-items:center;display:flex;gap:8px;margin-left:auto;margin-right:12px}.UserStoryCard-module_completedBadge__BURPe{background:#f3f4f6;border-radius:8px;color:#374151;font-size:12px;font-weight:600;padding:4px 10px;white-space:nowrap}.UserStoryCard-module_statusButton__zeFUj{align-items:center;border:none;border-radius:5px;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:600;gap:5px;padding:4px 8px;transition:all .2s ease}.UserStoryCard-module_statusWaiting__mTSf-{background:#fef3c7;color:#b45309}.UserStoryCard-module_statusInProgress__OsBoU{background:#ede9fe;color:#6d28d9}.UserStoryCard-module_statusSuccess__ufhqE{background:#dcfce7;color:#15803d}.UserStoryCard-module_loadingContainer__uPfG-{align-items:center;display:flex;flex-direction:column;gap:16px;justify-content:center;min-height:240px;padding:48px 24px;text-align:center}.UserStoryCard-module_loadingIconWrapper__5eUX7{align-items:center;background:#f4f1ff;border-radius:50%;display:flex;height:64px;justify-content:center;width:64px}.UserStoryCard-module_loadingTitle__MHwmb{color:#0f172a;font-size:18px;font-weight:600;margin:0}.UserStoryCard-module_loadingSubtitle__PKUur{color:#64748b;font-size:16px;margin-top:8px}.UserStoryCard-module_noDataContainer__Rys9X{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:24px;text-align:center}.UserStoryCard-module_noDataIllustration__BoSPy{height:auto;margin-bottom:12px;width:88px}.UserStoryCard-module_noDataTitle__DKazv{color:#111827;font-size:18px;font-weight:600;line-height:26px;margin:0 0 6px}.UserStoryCard-module_noDataSubtitle__ME3eH{color:#6b7280;font-size:14px;line-height:20px;margin:0;max-width:520px}.UserStoryCard-module_actionButtonsContainer__NHzMr{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:20px;padding-bottom:12px;width:100%}.UserStoryCard-module_actionButton__7vOMo{align-items:center;background:#0000;border:none;color:#5b3df5;cursor:pointer;display:inline-flex;font-size:16px;font-weight:600;gap:6px;justify-content:center;line-height:24px;padding:0;transition:opacity .2s ease;white-space:nowrap}.UserStoryCard-module_actionButtonDivider__cIsYR{background-color:#d0d5dd;flex-shrink:0;height:20px;width:1px}.UserStoryCard-module_actionButton__7vOMo:hover:not(:disabled){opacity:.8}.UserStoryCard-module_actionButton__7vOMo:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_actionButtonSpinner__25ejV{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",actionItemBtn:"UserStoryCard-module_actionItemBtn__3jocB",menuItemIcon:"UserStoryCard-module_menuItemIcon__BxrJU",menuItemRight:"UserStoryCard-module_menuItemRight__Cjw2j",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT",storyTitleWrapper:"UserStoryCard-module_storyTitleWrapper__Ng-Th",titleEditButton:"UserStoryCard-module_titleEditButton__iJADR",inlineTitleEditor:"UserStoryCard-module_inlineTitleEditor__rdF-w",inlineTitleInput:"UserStoryCard-module_inlineTitleInput__Ft6mB",inlineTitleConfirm:"UserStoryCard-module_inlineTitleConfirm__YTG-3",inlineTitleCancel:"UserStoryCard-module_inlineTitleCancel__clhBR",addSectionButton:"UserStoryCard-module_addSectionButton__lBCWj",addSectionLabel:"UserStoryCard-module_addSectionLabel__kUs2E",viewStatusButton:"UserStoryCard-module_viewStatusButton__4-ISq",statusContainer:"UserStoryCard-module_statusContainer__Blr6F",completedBadge:"UserStoryCard-module_completedBadge__BURPe",statusButton:"UserStoryCard-module_statusButton__zeFUj",statusWaiting:"UserStoryCard-module_statusWaiting__mTSf-",statusInProgress:"UserStoryCard-module_statusInProgress__OsBoU",statusSuccess:"UserStoryCard-module_statusSuccess__ufhqE",loadingContainer:"UserStoryCard-module_loadingContainer__uPfG-",loadingIconWrapper:"UserStoryCard-module_loadingIconWrapper__5eUX7",loadingTitle:"UserStoryCard-module_loadingTitle__MHwmb",loadingSubtitle:"UserStoryCard-module_loadingSubtitle__PKUur",noDataContainer:"UserStoryCard-module_noDataContainer__Rys9X",noDataIllustration:"UserStoryCard-module_noDataIllustration__BoSPy",noDataTitle:"UserStoryCard-module_noDataTitle__DKazv",noDataSubtitle:"UserStoryCard-module_noDataSubtitle__ME3eH",actionButtonsContainer:"UserStoryCard-module_actionButtonsContainer__NHzMr",actionButton:"UserStoryCard-module_actionButton__7vOMo",actionButtonDivider:"UserStoryCard-module_actionButtonDivider__cIsYR",actionButtonSpinner:"UserStoryCard-module_actionButtonSpinner__25ejV"};
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 r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;margin-left:.5rem;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_iconButton__DkfRA:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_actionItemBtn__3jocB{font-size:18px;line-height:0}.UserStoryCard-module_menuItemIcon__BxrJU{align-items:center;display:inline-flex;margin-right:.5rem}.UserStoryCard-module_menuItemRight__Cjw2j{align-self:center;border-radius:50%;height:8px;margin-left:auto;width:8px}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_storyTitleWrapper__Ng-Th{align-items:center;display:flex;gap:6px;min-width:0}.UserStoryCard-module_titleEditButton__iJADR{align-items:center;background:#0000;border:none;border-radius:4px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;opacity:1;padding:3px;transition:opacity .15s ease,background .15s ease,color .15s ease}.UserStoryCard-module_titleEditButton__iJADR:hover{background:var(--color-surface-hover,#f3f4f6);color:var(--color-primary,#4f46e5);opacity:1}.UserStoryCard-module_titleEditButton__iJADR:focus-visible{opacity:1;outline:2px solid var(--color-primary,#4f46e5);outline-offset:1px}.UserStoryCard-module_inlineTitleEditor__rdF-w{align-items:center;display:flex;flex:1;gap:4px;min-width:0}.UserStoryCard-module_inlineTitleInput__Ft6mB{background:var(--color-surface,#fff);border:1.5px solid var(--color-primary,#4f46e5);border-radius:5px;color:var(--color-text-primary,#111827);flex:1;font-size:inherit;font-weight:600;line-height:1.4;min-width:0;outline:none;padding:3px 8px;transition:border-color .15s ease,box-shadow .15s ease}.UserStoryCard-module_inlineTitleInput__Ft6mB:focus{border-color:var(--color-primary,#4f46e5);box-shadow:0 0 0 3px #4f46e526}.UserStoryCard-module_inlineTitleConfirm__YTG-3{align-items:center;background:var(--color-primary,#4f46e5);border:none;border-radius:5px;color:#fff;cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,transform .1s ease;width:26px}.UserStoryCard-module_inlineTitleConfirm__YTG-3:hover:not(:disabled){background:var(--color-primary-dark,#4338ca)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:active:not(:disabled){transform:scale(.93)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:disabled{cursor:not-allowed;opacity:.45}.UserStoryCard-module_inlineTitleConfirm__YTG-3:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_inlineTitleCancel__clhBR{align-items:center;background:#0000;border:1.5px solid var(--color-border,#e5e7eb);border-radius:5px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,color .15s ease,border-color .15s ease;width:26px}.UserStoryCard-module_inlineTitleCancel__clhBR:hover{background:var(--color-surface-hover,#f3f4f6);border-color:var(--color-danger,#ef4444);color:var(--color-danger,#ef4444)}.UserStoryCard-module_inlineTitleCancel__clhBR:focus-visible{outline:2px solid var(--color-danger,#ef4444);outline-offset:2px}.UserStoryCard-module_addSectionButton__lBCWj{align-items:center;background:#0000;border:1.5px dashed var(--color-border,#d1d5db);border-radius:6px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:500;gap:5px;padding:6px 10px;transition:border-color .15s ease,color .15s ease,background .15s ease;white-space:nowrap}.UserStoryCard-module_addSectionButton__lBCWj:hover{background:var(--color-primary-subtle,#4f46e50d);border-color:var(--color-primary,#4f46e5);color:var(--color-primary,#4f46e5)}.UserStoryCard-module_addSectionButton__lBCWj:active{transform:scale(.97)}.UserStoryCard-module_addSectionButton__lBCWj:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_addSectionLabel__kUs2E{display:inline}.UserStoryCard-module_viewStatusButton__4-ISq{background:#0000;border:1px solid #5b3df5;border-radius:12px;color:#5b3df5;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:all .2s ease}.UserStoryCard-module_viewStatusButton__4-ISq:hover{background:#5b3df5;color:#fff}.UserStoryCard-module_viewStatusButton__4-ISq:active{transform:scale(.98)}.UserStoryCard-module_statusContainer__Blr6F{align-items:center;display:flex;gap:8px;margin-left:auto;margin-right:12px}.UserStoryCard-module_completedBadge__BURPe{background:#f3f4f6;border-radius:8px;color:#374151;font-size:12px;font-weight:600;padding:4px 10px;white-space:nowrap}.UserStoryCard-module_statusButton__zeFUj{align-items:center;border:none;border-radius:5px;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:600;gap:5px;padding:4px 8px;transition:all .2s ease}.UserStoryCard-module_statusWaiting__mTSf-{background:#fef3c7;color:#b45309}.UserStoryCard-module_statusInProgress__OsBoU{background:#ede9fe;color:#6d28d9}.UserStoryCard-module_statusSuccess__ufhqE{background:#dcfce7;color:#15803d}.UserStoryCard-module_loadingContainer__uPfG-{align-items:center;display:flex;flex-direction:column;gap:16px;justify-content:center;min-height:240px;padding:48px 24px;text-align:center}.UserStoryCard-module_loadingIconWrapper__5eUX7{align-items:center;background:#f4f1ff;border-radius:50%;display:flex;height:64px;justify-content:center;width:64px}.UserStoryCard-module_loadingTitle__MHwmb{color:#0f172a;font-size:18px;font-weight:600;margin:0}.UserStoryCard-module_loadingSubtitle__PKUur{color:#64748b;font-size:16px;margin-top:8px}.UserStoryCard-module_noDataContainer__Rys9X{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:24px;text-align:center}.UserStoryCard-module_noDataIllustration__BoSPy{height:auto;margin-bottom:12px;width:88px}.UserStoryCard-module_noDataTitle__DKazv{color:#111827;font-size:18px;font-weight:600;line-height:26px;margin:0 0 6px}.UserStoryCard-module_noDataSubtitle__ME3eH{color:#6b7280;font-size:14px;line-height:20px;margin:0;max-width:520px}.UserStoryCard-module_actionButtonsContainer__NHzMr{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:20px;padding-bottom:12px;width:100%}.UserStoryCard-module_actionButton__7vOMo{align-items:center;background:#0000;border:none;color:#5b3df5;cursor:pointer;display:inline-flex;font-size:16px;font-weight:600;gap:6px;justify-content:center;line-height:24px;padding:0;transition:opacity .2s ease;white-space:nowrap}.UserStoryCard-module_actionButtonDivider__cIsYR{background-color:#d0d5dd;flex-shrink:0;height:20px;width:1px}.UserStoryCard-module_actionButton__7vOMo:hover:not(:disabled){opacity:.8}.UserStoryCard-module_actionButton__7vOMo:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_actionButtonSpinner__25ejV{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_suggestedFilesTooltip__PQyk-{background-color:#334155;border-radius:8px;box-shadow:0 8px 24px #00000040;color:#fff;max-width:320px;padding:0}.UserStoryCard-module_suggestedFilesArrow__dLsjL{color:#334155}.UserStoryCard-module_suggestedFilesHeader__O335T{border-bottom:1px solid #ffffff26;color:#fff;font-size:15px;font-weight:700;padding:12px 14px 10px}.UserStoryCard-module_suggestedFilesList__Tz2gF{list-style:none;margin:0;max-height:180px;overflow-y:auto;padding:8px 14px 10px}.UserStoryCard-module_suggestedFilesListItem__RJJAz{color:#cbd5e1;font-size:14px;padding:6px 0}.UserStoryCard-module_suggestedFilesInfoIcon__Qf75h{color:#94a3b8;cursor:pointer;margin-left:4px}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar{width:6px}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar-track{background:#0000}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar-thumb{background-color:#ffffff4d;border-radius:3px}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar-thumb:hover{background-color:#ffffff73}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",actionItemBtn:"UserStoryCard-module_actionItemBtn__3jocB",menuItemIcon:"UserStoryCard-module_menuItemIcon__BxrJU",menuItemRight:"UserStoryCard-module_menuItemRight__Cjw2j",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT",storyTitleWrapper:"UserStoryCard-module_storyTitleWrapper__Ng-Th",titleEditButton:"UserStoryCard-module_titleEditButton__iJADR",inlineTitleEditor:"UserStoryCard-module_inlineTitleEditor__rdF-w",inlineTitleInput:"UserStoryCard-module_inlineTitleInput__Ft6mB",inlineTitleConfirm:"UserStoryCard-module_inlineTitleConfirm__YTG-3",inlineTitleCancel:"UserStoryCard-module_inlineTitleCancel__clhBR",addSectionButton:"UserStoryCard-module_addSectionButton__lBCWj",addSectionLabel:"UserStoryCard-module_addSectionLabel__kUs2E",viewStatusButton:"UserStoryCard-module_viewStatusButton__4-ISq",statusContainer:"UserStoryCard-module_statusContainer__Blr6F",completedBadge:"UserStoryCard-module_completedBadge__BURPe",statusButton:"UserStoryCard-module_statusButton__zeFUj",statusWaiting:"UserStoryCard-module_statusWaiting__mTSf-",statusInProgress:"UserStoryCard-module_statusInProgress__OsBoU",statusSuccess:"UserStoryCard-module_statusSuccess__ufhqE",loadingContainer:"UserStoryCard-module_loadingContainer__uPfG-",loadingIconWrapper:"UserStoryCard-module_loadingIconWrapper__5eUX7",loadingTitle:"UserStoryCard-module_loadingTitle__MHwmb",loadingSubtitle:"UserStoryCard-module_loadingSubtitle__PKUur",noDataContainer:"UserStoryCard-module_noDataContainer__Rys9X",noDataIllustration:"UserStoryCard-module_noDataIllustration__BoSPy",noDataTitle:"UserStoryCard-module_noDataTitle__DKazv",noDataSubtitle:"UserStoryCard-module_noDataSubtitle__ME3eH",actionButtonsContainer:"UserStoryCard-module_actionButtonsContainer__NHzMr",actionButton:"UserStoryCard-module_actionButton__7vOMo",actionButtonDivider:"UserStoryCard-module_actionButtonDivider__cIsYR",actionButtonSpinner:"UserStoryCard-module_actionButtonSpinner__25ejV",suggestedFilesTooltip:"UserStoryCard-module_suggestedFilesTooltip__PQyk-",suggestedFilesArrow:"UserStoryCard-module_suggestedFilesArrow__dLsjL",suggestedFilesHeader:"UserStoryCard-module_suggestedFilesHeader__O335T",suggestedFilesList:"UserStoryCard-module_suggestedFilesList__Tz2gF",suggestedFilesListItem:"UserStoryCard-module_suggestedFilesListItem__RJJAz",suggestedFilesInfoIcon:"UserStoryCard-module_suggestedFilesInfoIcon__Qf75h"};
2
2
  //# sourceMappingURL=UserStoryCard.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),i=require("../utils/proccess-stream.utils.js");exports.useStreamContentHandler=function({setUserStory:t,setAiReasoning:o,setUserStoryCitations:n,onStreamingCompleted:r,isGraphQLCallInProgress:s,knowledgeBase:a,projectAnalyserSummary:u,dataSourceFiles:l,aiReasoning:c,setRedisValue:d,fetchCitationByBlock:_}){const p=e.useRef(new Set),m=e.useRef(new Set),g=e.useRef(null),b=e.useRef(null),v=e.useRef({gap_items_prompt:"",risk_items_prompt:""}),f=e.useRef(new Set);async function h(e,i,t){var a,u;let l="",c="";try{const r=await _(e,t,i);o(e=>{var i;const t=[...e];return null===(i=r.response.ai_reasonings)||void 0===i||i.forEach(e=>{const i=t.findIndex(i=>i.id===e.id);-1!==i&&e.gap.length>0&&e.reason.length>0&&(t[i]={...e})}),t}),l=(null===(a=r.response)||void 0===a?void 0:a.gap_items_prompt)||"",c=(null===(u=r.response)||void 0===u?void 0:u.risk_items_prompt)||"",(l||c)&&(v.current={gap_items_prompt:l,risk_items_prompt:c}),n(e=>{var i,t,o,n,s,a,u,l,c,d,_,p,m,g;return{...e,appmod_citations:[...null!==(i=e.appmod_citations)&&void 0!==i?i:[],...null!==(t=r.response.appmod_citations)&&void 0!==t?t:[]],audio_citations:[...null!==(o=e.audio_citations)&&void 0!==o?o:[],...null!==(n=r.response.audio_citations)&&void 0!==n?n:[]],file_citations:[...null!==(s=e.file_citations)&&void 0!==s?s:[],...null!==(a=r.response.file_citations)&&void 0!==a?a:[]],image_citations:[...null!==(u=e.image_citations)&&void 0!==u?u:[],...null!==(l=r.response.image_citations)&&void 0!==l?l:[]],rca_citations:[...null!==(c=e.rca_citations)&&void 0!==c?c:[],...null!==(d=r.response.rca_citations)&&void 0!==d?d:[]],web_citations:[...null!==(_=e.web_citations)&&void 0!==_?_:[],...null!==(p=r.response.web_citations)&&void 0!==p?p:[]],readfile_citations:[...null!==(m=e.readfile_citations)&&void 0!==m?m:[],...null!==(g=r.response.readfile_citations)&&void 0!==g?g:[]]}})}catch(i){console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",e.storyNumber,e.blockNumber,i)}finally{let i=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}`;if(m.current.add(i),m.current.size===p.current.size&&!s.current){const e=l||v.current.gap_items_prompt,i=c||v.current.risk_items_prompt;await r(e,i),p.current.clear(),m.current.clear(),g.current=null,b.current=null,v.current={gap_items_prompt:"",risk_items_prompt:""},f.current.clear()}}}return{processStreamContent:function(e,r,s){try{const _=JSON.stringify(e);if(b.current===_)return;b.current=_;let m=[],v=[];e=e.map(e=>{var t;const o=`${(e={...e,subBlockNumber:null!==(t=e.subBlockNumber)&&void 0!==t?t:"1"}).storyNumber}-${e.blockNumber}-${e.subBlockNumber}`;if(f.current.has(o))return null;f.current.add(o);let{outputText:s,reasonings:a,gpt_citation:u,processedDescription:l}=i.processAIReasoningFromBlocks(e.value,e.blockNumber,e.storyNumber,e.description);n(e=>{var i;return u.length>0&&((null==e?void 0:e.gpt_citations)||(e.gpt_citations=[]),null===(i=e.gpt_citations)||void 0===i||i.push(...u)),{...e}}),m.push(...a),v.push([...a]);let c=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}<SUB_BLOCK>${e.subBlockNumber}`;return p.current.has(c)||(h({...e,value:s,description:l},a,r),p.current.add(c)),{...e,value:s,description:l}}).filter(Boolean),m.forEach(e=>{o(i=>(i.find(i=>i.id===e.id)||i.push(e),[...i]))}),e.length>0&&e.map(({title:e,section:i,value:o,storyNumber:n,description:r,blockNumber:_,big_enough:p,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h},N)=>{t(t=>{var y,k,R,S,B,$,C,w;const O=t.findIndex(e=>e.storyNumber===n);if("intro"===i)-1===O?t.push({artifactId:`STORY-${n}-${_}`,title:e,value:o,description:r,storyNumber:n,sub_features:[],section:i,blockNumber:_,aiReasoning:v[N],big_enough:p,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h}):(t[O].value+=o,t[O].aiReasoning=t[O].aiReasoning||[],null===(k=null===(y=t[O])||void 0===y?void 0:y.aiReasoning)||void 0===k||k.push(...v[N]),t[O].big_enough=p,t[O].big_enough_decision_factors=m,t[O].gapValue=b,t[O].confidenceScore=f,t[O].metadata=h);else{t[O].sub_features||(t[O].sub_features=[]);const r=(null===(S=null===(R=t[O])||void 0===R?void 0:R.sub_features)||void 0===S?void 0:S.findIndex(e=>e.blockNumber===_))||-1;if(-1===r)null===($=null===(B=t[O])||void 0===B?void 0:B.sub_features)||void 0===$||$.push({artifactId:`STORY-${n}-${_}`,title:e,value:o,storyNumber:n,blockNumber:_,section:i,aiReasoning:v[N],big_enough:p,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h});else{let e=null===(w=null===(C=null==t?void 0:t[O])||void 0===C?void 0:C.sub_features)||void 0===w?void 0:w[r];e.value=(e.value||"")+o,e.aiReasoning=e.aiReasoning||[],e.aiReasoning.push(...v[N]),e.big_enough=p,e.big_enough_decision_factors=m,e.gapValue=b,e.confidenceScore=f,e.metadata=h}}const E=JSON.stringify(t);return g.current!==E&&(d({key:`streaming-redis-key-${s}`,value:{mmvf_list:t,knowledgeBase:a,projectAnalyserSummary:u,dataSources_files:l,ai_reasonings:c}}),g.current=E),[...t]})})}catch(e){console.error("Error in processing Stream Content",e)}}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),i=require("../utils/proccess-stream.utils.js");exports.useStreamContentHandler=function({setUserStory:t,setAiReasoning:n,setUserStoryCitations:o,onStreamingCompleted:s,isGraphQLCallInProgress:r,knowledgeBase:a,projectAnalyserSummary:u,dataSourceFiles:l,aiReasoning:c,setRedisValue:d,fetchCitationByBlock:p}){const[_,m]=e.useState({finalGap:"",finalRisk:"",status:"in-progress"}),g=e.useRef(new Set),f=e.useRef(new Set),b=e.useRef(null),v=e.useRef(null),h=e.useRef({gap_items_prompt:"",risk_items_prompt:""}),k=e.useRef(new Set);return e.useEffect(()=>{"complete"!==_.status||r||(s(_.finalGap,_.finalRisk),g.current.clear(),f.current.clear(),b.current=null,v.current=null,h.current={gap_items_prompt:"",risk_items_prompt:""},k.current.clear(),m({finalGap:"",finalRisk:"",status:"in-progress"}))},[_,r]),{processStreamContent:function(e,s,r){try{const _=JSON.stringify(e);if(v.current===_)return;v.current=_;let R=[],N=[];e=e.map(e=>{var t;const r=`${(e={...e,subBlockNumber:null!==(t=e.subBlockNumber)&&void 0!==t?t:"1"}).storyNumber}-${e.blockNumber}-${e.subBlockNumber}`;if(k.current.has(r))return null;k.current.add(r);let{outputText:a,reasonings:u,gpt_citation:l,processedDescription:c}=i.processAIReasoningFromBlocks(e.value,e.blockNumber,e.storyNumber,e.description);o(e=>{var i;return l.length>0&&((null==e?void 0:e.gpt_citations)||(e.gpt_citations=[]),null===(i=e.gpt_citations)||void 0===i||i.push(...l)),{...e}}),R.push(...u),N.push([...u]);let d=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}<SUB_BLOCK>${e.subBlockNumber}`;return g.current.has(d)||(!async function(e,i,t){var s,r;let a="",u="";try{const l=await p(e,t,i);n(e=>{var i;const t=[...e];return null===(i=l.response.ai_reasonings)||void 0===i||i.forEach(e=>{const i=t.findIndex(i=>i.id===e.id);-1!==i&&e.gap.length>0&&e.reason.length>0&&(t[i]={...e})}),t}),a=(null===(s=l.response)||void 0===s?void 0:s.gap_items_prompt)||"",u=(null===(r=l.response)||void 0===r?void 0:r.risk_items_prompt)||"",(a||u)&&(h.current={gap_items_prompt:a,risk_items_prompt:u}),o(e=>{var i,t,n,o,s,r,a,u,c,d,p,_,m,g;return{...e,appmod_citations:[...null!==(i=e.appmod_citations)&&void 0!==i?i:[],...null!==(t=l.response.appmod_citations)&&void 0!==t?t:[]],audio_citations:[...null!==(n=e.audio_citations)&&void 0!==n?n:[],...null!==(o=l.response.audio_citations)&&void 0!==o?o:[]],file_citations:[...null!==(s=e.file_citations)&&void 0!==s?s:[],...null!==(r=l.response.file_citations)&&void 0!==r?r:[]],image_citations:[...null!==(a=e.image_citations)&&void 0!==a?a:[],...null!==(u=l.response.image_citations)&&void 0!==u?u:[]],rca_citations:[...null!==(c=e.rca_citations)&&void 0!==c?c:[],...null!==(d=l.response.rca_citations)&&void 0!==d?d:[]],web_citations:[...null!==(p=e.web_citations)&&void 0!==p?p:[],...null!==(_=l.response.web_citations)&&void 0!==_?_:[]],readfile_citations:[...null!==(m=e.readfile_citations)&&void 0!==m?m:[],...null!==(g=l.response.readfile_citations)&&void 0!==g?g:[]]}})}catch(i){console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",e.storyNumber,e.blockNumber,i)}finally{let i=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}`;if(f.current.add(i),f.current.size===g.current.size){const e=a||h.current.gap_items_prompt,i=u||h.current.risk_items_prompt;m({finalGap:e,finalRisk:i,status:"complete"})}}}({...e,value:a,description:c},u,s),g.current.add(d)),{...e,value:a,description:c}}).filter(Boolean),R.forEach(e=>{n(i=>(i.find(i=>i.id===e.id)||i.push(e),[...i]))}),e.length>0&&e.map(({title:e,section:i,value:n,storyNumber:o,description:s,blockNumber:p,big_enough:_,big_enough_decision_factors:m,gapValue:g,confidenceScore:f,metadata:v},h)=>{t(t=>{var k,R,y,S,B,$,C,O;const w=t.findIndex(e=>e.storyNumber===o);if("intro"===i)-1===w?t.push({artifactId:`STORY-${o}-${p}`,title:e,value:n,description:s,storyNumber:o,sub_features:[],section:i,blockNumber:p,aiReasoning:N[h],big_enough:_,big_enough_decision_factors:m,gapValue:g,confidenceScore:f,metadata:v}):(t[w].value+=n,t[w].aiReasoning=t[w].aiReasoning||[],null===(R=null===(k=t[w])||void 0===k?void 0:k.aiReasoning)||void 0===R||R.push(...N[h]),t[w].big_enough=_,t[w].big_enough_decision_factors=m,t[w].gapValue=g,t[w].confidenceScore=f,t[w].metadata=v);else{t[w].sub_features||(t[w].sub_features=[]);const s=(null===(S=null===(y=t[w])||void 0===y?void 0:y.sub_features)||void 0===S?void 0:S.findIndex(e=>e.blockNumber===p))||-1;if(-1===s)null===($=null===(B=t[w])||void 0===B?void 0:B.sub_features)||void 0===$||$.push({artifactId:`STORY-${o}-${p}`,title:e,value:n,storyNumber:o,blockNumber:p,section:i,aiReasoning:N[h],big_enough:_,big_enough_decision_factors:m,gapValue:g,confidenceScore:f,metadata:v});else{let e=null===(O=null===(C=null==t?void 0:t[w])||void 0===C?void 0:C.sub_features)||void 0===O?void 0:O[s];e.value=(e.value||"")+n,e.aiReasoning=e.aiReasoning||[],e.aiReasoning.push(...N[h]),e.big_enough=_,e.big_enough_decision_factors=m,e.gapValue=g,e.confidenceScore=f,e.metadata=v}}const E=JSON.stringify(t);return b.current!==E&&(d({key:`streaming-redis-key-${r}`,value:{mmvf_list:t,knowledgeBase:a,projectAnalyserSummary:u,dataSources_files:l,ai_reasonings:c}}),b.current=E),[...t]})})}catch(e){console.error("Error in processing Stream Content",e)}}}};
2
2
  //# sourceMappingURL=useStreamContentHandler.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as t,jsx as l}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as i}from"react";import{ChevronUp as a,ChevronDown as s,Users as r,ExternalLink as d,Download as u,Share2 as c,Copy as v,LoaderCircle as p,PencilIcon as m,RefreshCw as y,Plus as h,Trash2 as g,X as f,Ellipsis as S,Hourglass as C,Check as I,ChevronUpIcon as b,ChevronDownIcon as N,Info as w,Bookmark as E}from"lucide-react";import D from"showdown";import{Tooltip as B,Menu as A,MenuItem as T}from"@mui/material";import U from"../../icons/Illustration.svg.js";import{v4 as x}from"uuid";import k from"./UserStoryCard.module.css.js";import{formatMarkdown as P,indentMarkdown as R}from"../../utils/helpers.js";import{replaceTitleSection as _,postprocessUserStoryAfterEdit as $}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import W from"../RichTextEditor/RichTextEditor.js";import L from"../userstory-with-citation/UserStoryWithCitation.js";import{SectionStatus as j,useRequirementAI as O,ToasterId as z}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as V}from"../story-screen/BigEnoughPanel.js";import{InlineTitleEditor as G}from"./TitleEditor/TitleEditor.js";import{fetchRedlineDocumentSection as F,updateRedlineDocument as H,getRedlineDocumentId as q,createRedlineDocument as Y}from"../../../../service/redlineService.js";import Q from"./ClinicalTrialSection.js";import{CompletionPanel as Z}from"../story-screen/CompletionPanel.js";import J from"../../icons/CDIcon.js";import K from"./cws/CwsEvent.js";import X from"./cws/useCwsEvent.js";import ee from"react-hot-toast";import te from"./Popups/RedlineToast.js";const le={[j.WAITING]:"WAITING TO GENERATE",[j.IN_PROGRESS]:"IN PROGRESS",[j.GENERATED]:"GENERATED",[j.FAILED]:"FAILED",[j.GENERATE]:"GENERATE",[j.APPROVED]:"APPROVED"};function ne(e){const t=[],n=/<learned>(.*?)<\/learned>/g;let o,i=0,a=0;for(;null!==(o=n.exec(e));){const[,s]=o,r=o.index;r>i&&t.push(l("span",{children:e.slice(i,r)},"text-pre-"+a++)),t.push(l(B,{title:s,placement:"top",children:l(w,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})},`tooltip-${x()}`)),i=n.lastIndex}return i<(null==e?void 0:e.length)&&t.push(l("span",{children:e.slice(i)},"text-post-"+a++)),t}function oe(e,t,l){var n;if(!e)return{};if(t)return{...e.parentConfig};const o={...e.childConfig};return l&&(null===(n=e.subFeatureOverrides)||void 0===n?void 0:n[l])?{...o,...e.subFeatureOverrides[l]}:o}const ie=({displayName:t})=>{var n;const{customStyles:o}=O(),i=null===(n=null==o?void 0:o.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return e("div",{className:k.displayName,style:null==i?void 0:i.wrapper,children:[l(E,{className:k.displayNameIcon,style:null==i?void 0:i.displayNameIcon}),e("span",{style:null==i?void 0:i.label,children:[t,":"]})]})},ae=({isUserStoryCurrentlyUpdated:b,artifactId:N,artifactTitleId:w,parentUserStory:E,currentUserStory:q,onUserStoryChange:Y,parentIndex:se,currentIndex:re,enableDownload:de,isDiffEditReviewMode:ue,showUserStoryDiff:ce,handleDownloadUserStory:ve,handleOpenSendDialog:pe,updateUserStoryArtifact:me,selectedArtifactId:ye,isDisplayHighlightControl:he,elementDisplayConfig:ge,_resolvedConfig:fe,showWrapper:Se=!1,defaultExpanded:Ce,actionItemsConfig:Ie,onDelete:be,contextVariant:Ne,expandedSubFeatures:we,showDisplayName:Ee=!0,allowTitleEdit:De=!0,showConfidenceScore:Be=!0,showBorderTop:Ae=!0,sectionStatusConfig:Te,showCompletionPanel:Ue=!1,completionPanelConfig:xe,showAddSectionButton:ke=!1,disableEditPlan:Pe=!1,useMuiTooltip:Re=!1,approveButtonConfig:_e,editButtonConfig:$e,CDNeededInChip:Me,blockNumber:We,storyNumber:Le,showWaitingIconInChip:je,showAssignSection:Oe=!1,disableAssignSection:ze=!1,onAssignSectionClick:Ve,onSave:Ge,onUserStoryAccordionStateChange:Fe})=>{var He,qe,Ye,Qe,Ze,Je,Ke,Xe,et,tt,lt,nt,ot,it,at,st,rt,dt,ut,ct,vt,pt,mt,yt;const{isLoadingSectionData:ht=!1,onLoadSectionData:gt,status:ft,onStatusClick:St,completedCount:Ct,totalCount:It,isNoDataAvailable:bt=!1}=null!=Te?Te:{},{searchQueryList:Nt,citations:wt,customStyles:Et,onEditBlocked:Dt,redlineDcoumentId:Bt,redlineConfig:At,customSectionConfig:Tt,updateRedlineDataParent:Ut,aiReasoning:xt,redlineCollaborativeConfig:kt}=O(),Pt=null==Et?void 0:Et.userStoryCardStyles,Rt=null==Pt?void 0:Pt.customSectionEditButton,_t=null==Pt?void 0:Pt.statusStyles,$t=null===(He=null==Et?void 0:Et.userStoryCardStyles)||void 0===He?void 0:He.userStoryEditStyles,Mt=null===(qe=null==Et?void 0:Et.userStoryScreenStyles)||void 0===qe?void 0:qe.userStoryContentStyles,Wt=null==Pt?void 0:Pt.progressHeaderStyles,Lt=null==Pt?void 0:Pt.clinicalTrialSectionStyles,jt=null==Pt?void 0:Pt.CompletionStyles,Ot=null==Pt?void 0:Pt.noDataStyles,zt=null==Pt?void 0:Pt.approveButtonStyles,Vt=null!==(Qe=null===(Ye=null==Tt?void 0:Tt.shouldRender)||void 0===Ye?void 0:Ye.call(Tt,q))&&void 0!==Qe&&Qe,Gt=null===(Ze=null==Tt?void 0:Tt.getValue)||void 0===Ze?void 0:Ze.call(Tt,q),Ft=null!==(Ke=null===(Je=null==Tt?void 0:Tt.getFields)||void 0===Je?void 0:Je.call(Tt,q))&&void 0!==Ke?Ke:[],Ht=null!==(Xe=null==Tt?void 0:Tt.isEditDisabled)&&void 0!==Xe&&Xe,qt=null!==(tt=null===(et=null==Tt?void 0:Tt.isSaving)||void 0===et?void 0:et.call(Tt,q))&&void 0!==tt&&tt,Yt=((e,t)=>e>=80?null==t?void 0:t.highCompletion:e>=50?null==t?void 0:t.mediumCompletion:null==t?void 0:t.lowCompletion)(null!==(lt=q.completion_percentage)&&void 0!==lt?lt:0,jt),Qt={[j.WAITING]:null==_t?void 0:_t.waiting,[j.IN_PROGRESS]:null==_t?void 0:_t.inProgress,[j.GENERATED]:null==_t?void 0:_t.generated,[j.FAILED]:null==_t?void 0:_t.failed,[j.GENERATE]:null==_t?void 0:_t.generate,[j.APPROVED]:null==_t?void 0:_t.approved},[Zt,Jt]=n({...structuredClone(q),value:P(q.value)||""}),[Kt,Xt]=n({userStory:!!q.isDefaultEdit}),[el,tl]=n(!1),[ll,nl]=n(!1),[ol,il]=n(null),[al,sl]=n(null),{userStory:rl,customIcons:dl}=O(),[ul,cl]=n(null!=Ce?Ce:""===se||ye===q.artifactId||!!q.isDefaultOpen),[vl,pl]=n(!1),[ml,yl]=n(null),[hl,gl]=n(null),[fl,Sl]=n(!1),Cl=o(null),Il=o(null),[bl,Nl]=n(!1),[wl,El]=n(!1),Dl=o(null),[Bl,Al]=n(!1),[Tl,Ul]=n(q.value);i(()=>{b&&cl(b)},[b]),i(()=>{Jt({...structuredClone(q),value:P(q.value)||""})},[q]),i(()=>{Nt.length>0?cl(!0):void 0===Ce&&ye&&cl(ye===q.artifactId)},[Nt,ye,q.artifactId]),i(()=>{we&&we.length>0&&Le&&We&&cl(we.includes(`${Le}-${We}`)||""===se||ye===q.artifactId||!!q.isDefaultOpen)},[we,Le,We]);const xl=()=>{yl(null)},kl=()=>{gl(null)},Pl=()=>{if(ul&&Kt.userStory&&Il.current&&!Il.current.requestClose())return;const e=!ul;cl(e),null==Fe||Fe(q,e)},Rl=async()=>{var e,t;try{"userStory"==="userStory"&&(Y(Zt),console.log("I am changing RTE editor values",Zt)),await(null===(e=null==$e?void 0:$e.onSaveEditedSection)||void 0===e?void 0:e.call($e,Zt)),await me(wt,rl,N,null===(t=Dl.current)||void 0===t?void 0:t.signal)}finally{}};const _l=null!=(null==q?void 0:q.big_enough)&&!Number.isNaN(q.big_enough)&&!!(null==q?void 0:q.big_enough_decision_factors),$l=null!==(nt=null==q?void 0:q.completion_percentage)&&void 0!==nt?nt:0,Ml=!!(null==q?void 0:q.completion_decision_factors),Wl=""===se,Ll=null!=fe?fe:oe(ge,Wl),jl=!ue&&!ce;i(()=>{if(!al)return;const e=setTimeout(()=>{const e=document.getElementById(`story-card-${al}`);null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(e)},[al]);const[Ol,zl]=n(0),[Vl,Gl]=n(!1),Fl=async()=>{var e,t;let l=!0;if(Gl(e=>(l=!e,!0)),l){let l;zl(e=>(l=e,e));try{const{updated_reqai:n}=await F({documentId:Bt,sectionId:q.artifactId,baseApiUrl:null==At?void 0:At.baseApiUrl,redlineConfigId:null!==(e=null==At?void 0:At.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==At?void 0:At.token)&&void 0!==t?t:"");await(null==Ut?void 0:Ut(n)),zl(e=>l===e?0:1)}catch(e){console.error("failed to fetch latest user story: ",e),ee.error("Failed to fetch the latest user story. Please try again.")}Gl(!1)}};i(()=>{q.isDefaultEdit&&Xt(e=>({...e,userStory:!0}))},[q.isDefaultEdit]),console.log("block number in userstory card ",We),console.log("[TESTING-CURRENT-USER-STORY] \n",q,"\n[TESTING-USER-STORY] \n",rl),X(`redline-edit:${Bt}:${q.artifactId}`,async({updatedBy:n})=>{var o;null===(o=Dl.current)||void 0===o||o.abort(),zl(e=>e+1),Xt(o=>o.userStory?(ee.custom(t=>e(te,{onCancel:()=>ee.dismiss(t.id),onRefresh:()=>{ee.dismiss(t.id),Fl()},children:["This ",l("span",{style:{fontWeight:600},children:q.title})," section has been updated by ",l("span",{style:{fontWeight:600},children:n})," while you were editing. Please refresh to view the latest version."]}),{duration:1e4,toasterId:z}),{...rl,userStory:!1}):(Fl().then(()=>{ee.custom(o=>e(te,{onCancel:()=>ee.dismiss(o.id),title:e(t,{children:[l("span",{style:{fontWeight:600},children:q.title})," updated,",l("br",{})]}),children:[n," saved changes. Your unsaved edits are untouched."]}),{duration:1e4,toasterId:z})}),o))});return i(()=>Ul(q.value),[q.value]),e("div",{className:k.card,"data-block-id":`user-story-card-wrapper-${Le}-${We}`,style:null==Pt?void 0:Pt.cardStyle,id:`story-card-${q.title}`,"data-expanded":ul,children:[e("div",{className:k.titleSection,style:null==Pt?void 0:Pt.titleSection,children:[e("div",{className:k.titleRow,style:null==Pt?void 0:Pt.titleRow,onClick:Pl,children:[e("div",{className:k.titleLeft,style:null==Pt?void 0:Pt.titleLeft,onMouseEnter:()=>Nl(!0),onMouseLeave:()=>Nl(!1),children:[Ee&&l(ie,{displayName:w}),el&&jl?l(G,{title:q.title,onSave:e=>(async(e,t)=>{var l;try{let n={...q};q.artifactId===t?n.title=e:n.sub_features=(null===(l=q.sub_features)||void 0===l?void 0:l.map(l=>l.artifactId===t?{...l,title:e}:l))||[],Jt(n),Y(n),tl(!1)}catch(e){console.error("Failed to save title",e)}})(e,q.artifactId),onCancel:()=>{tl(!1)},inputStyle:null==$t?void 0:$t.inlineTitleInput,confirmButtonStyle:null==$t?void 0:$t.inlineTitleConfirm,cancelButtonStyle:null==$t?void 0:$t.inlineTitleCancel},"inline-title-editor"):e("div",{className:k.storyTitleWrapper,children:[l(B,{title:ne(q.title),arrow:!0,children:l("h2",{title:Re?void 0:q.title,className:k.storyTitle,style:null==Pt?void 0:Pt.storyTitle,children:ne(q.title)},q.artifactId)}),Ue&&(Ml?l(Z,{customIcons:null==dl?void 0:dl.userStoryIcons,customStyles:null==Pt?void 0:Pt.aiReasoningCitaionStyles,currentUserStory:q,panelStyles:null==Pt?void 0:Pt.CompletionStyles,onToggleStateChange:El,completionPanelConfig:xe,children:e("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==jt?void 0:jt.badge,...Yt},children:[e("span",{children:[$l,"% Completed"]}),l("span",{style:{display:"flex",alignItems:"center"},children:l(J,{color:"currentColor"})}),l(wl?a:s,{size:14,style:null==jt?void 0:jt.chevronStyle})]})}):l("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==jt?void 0:jt.badge,...Yt},children:e("span",{children:[$l,"% Completed"]})})),De&&l("button",{type:"button",className:k.titleEditButton,style:null==$t?void 0:$t.titleEditButton,onClick:e=>{e.stopPropagation(),tl(!0),ul||cl(!0)},"aria-label":"Edit title",title:"Edit title",children:l("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})})})]})]}),(ft||void 0!==Ct&&void 0!==It)&&e("div",{className:k.statusContainer,children:[void 0!==Ct&&void 0!==It&&e("div",{className:k.completedBadge,children:["Completed: ",Ct,"/",It]}),ft&&l("button",{type:"button",onClick:e=>{e.stopPropagation(),null==St||St()},onMouseEnter:()=>Al(!0),onMouseLeave:()=>Al(!1),className:k.statusButton,style:{...null===(ot=Qt[ft])||void 0===ot?void 0:ot.default,...Bl&&(null===(it=Qt[ft])||void 0===it?void 0:it.hover)},children:le[ft]})]}),e("div",{className:k.titleActions,style:null==Pt?void 0:Pt.titleActions,onClick:e=>e.stopPropagation(),children:[(Ll.showProgressPercentage||Ll.showGapBox)&&Se&&e("div",{className:k.progressHeader,style:null==Wt?void 0:Wt.wrapper,children:[Ll.showProgressPercentage&&e("div",{className:k.progressPercentage,style:null==Wt?void 0:Wt.percentage,children:[null!==(st=null!==(at=null==q?void 0:q.confidenceScore)&&void 0!==at?at:null==Ll?void 0:Ll.confidenceValue)&&void 0!==st?st:"0","%"]}),Ll.showGapBox&&e("div",{className:k.gapBox,style:null==Wt?void 0:Wt.gapBox,children:[null!==(dt=null!==(rt=null==q?void 0:q.gapValue)&&void 0!==rt?rt:null==Ll?void 0:Ll.gapBoxValue)&&void 0!==dt?dt:"2"," ","Gaps"]})]}),_l&&l(V,{customIcons:null==dl?void 0:dl.userStoryIcons,customStyles:null==Pt?void 0:Pt.aiReasoningCitaionStyles,currentUserStory:q,panelStyles:null==Pt?void 0:Pt.BigEnoughStyles}),Oe&&l("button",{type:"button",className:k.iconButton,style:null==Pt?void 0:Pt.iconButton,disabled:ze,onClick:e=>{e.stopPropagation(),null==Ve||Ve(q)},"aria-label":"Assign section users",title:"Assign section users",children:l(r,{size:16})}),!Kt.userStory&&e(t,{children:[!1!==(null==Ll?void 0:Ll.showShareButton)&&l("button",{className:k.iconButton,style:null==Pt?void 0:Pt.iconButton,onClick:e=>{yl(e.currentTarget)},children:l(d,{size:16})}),e(A,{id:"user-story-share-menu",anchorEl:ml,open:!!ml,onClose:()=>yl(null),style:null==Pt?void 0:Pt.userStoryShareMenu,children:[de&&l(T,{style:null==Pt?void 0:Pt.userStoryMenuItem,onClick:async()=>{pl(!0),ve&&(await Promise.all([ve("pdf"),ve("doc")]),pl(!1))},children:e("div",{ref:Cl,className:k.menuItemContent,style:null==Pt?void 0:Pt.menuItemContent,children:[l(u,{size:16,color:null==Pt?void 0:Pt.menuIconColor}),l("p",{style:null==Pt?void 0:Pt.menuLabel,children:"Download"})]})}),l(T,{style:null==Pt?void 0:Pt.userStoryMenuItem,onClick:async()=>{let e=q;E&&(e={...q,value:`${_(null==E?void 0:E.value,q.title)} \n${q.value}`}),null==pe||pe(!0,[e],q.artifactId),xl()},children:e("div",{style:null==Pt?void 0:Pt.menuItemContent,className:k.menuItemContentPadded,children:[l(c,{size:16,color:null==Pt?void 0:Pt.menuIconColor}),l("p",{style:null==Pt?void 0:Pt.menuLabel,children:"Send"})]})}),l(T,{style:null==Pt?void 0:Pt.userStoryMenuItem,onClick:async()=>{const e=(new D.Converter).makeHtml(P(q.value)||q.value),t=function(e){const t=(new D.Converter).makeHtml(e),l=document.createElement("div");return l.innerHTML=t,l.textContent||l.innerText||""}(P(q.value)||q.value),l=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})});try{await navigator.clipboard.write([l]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{xl()}},children:e("div",{style:null==Pt?void 0:Pt.menuItemContent,className:k.menuItemContentPadded,children:[l(v,{size:16,color:null==Pt?void 0:Pt.menuIconColor}),l("p",{style:null==Pt?void 0:Pt.menuLabel,children:"Copy"})]})})]})]}),!fl&&Kt.userStory&&ul?l(M,{type:"outline",children:"Cancel",style:null==Pt?void 0:Pt.cancelButton,onClick:()=>{var e;null===(e=Dl.current)||void 0===e||e.abort(),Xt(e=>({...e,userStory:!1}))}}):l(t,{}),Kt.userStory&&ul?l(M,{type:"fill",children:fl?e("span",{className:k.savingSpinner,style:null==Pt?void 0:Pt.savingSpinner,children:[l(p,{className:k.spinAnimation,style:null==Pt?void 0:Pt.spinAnimation}),l("span",{children:"Saving..."})]}):"Save",isDisable:fl,style:fl?null==Pt?void 0:Pt.savingButton:null==Pt?void 0:Pt.saveButton,onClick:async()=>{Sl(!0),await Rl();let e=await(async()=>{var e,t,l,n,o,i,a,s;let r=Zt.value;console.log("[V] valueToUpdate before",r),r=r.replace(/<invisible\s+id="([^"]+)"\s*><\/invisible>/gi,"\x3c!-- $1 --\x3e"),console.log("[V] valueToUpdate after",r);try{await(null==Ge?void 0:Ge(r,q.artifactId))}catch(e){}try{if(null==At?void 0:At.callUpdateDocument){const{updated_reqai:d}=await H({documentId:Bt,sectionId:q.artifactId,baseApiUrl:null==At?void 0:At.baseApiUrl,updatedContent:r,userEmail:At.userEmail,userName:At.userName,redlineConfigId:null!==(e=At.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==At?void 0:At.token)&&void 0!==t?t:"");r=null===(o=null===(n=null===(l=null==d?void 0:d.artifactData)||void 0===l?void 0:l.userStorySnapshot)||void 0===n?void 0:n[0])||void 0===o?void 0:o.value,await(null==Ut?void 0:Ut(d));const u=null===(s=null===(a=null===(i=null==d?void 0:d.artifactData)||void 0===i?void 0:i.userStorySnapshot)||void 0===a?void 0:a[0])||void 0===s?void 0:s.artifactId;"string"==typeof u&&u.trim()&&"string"==typeof Bt&&Bt.trim()&&"string"==typeof(null==At?void 0:At.userName)&&(null==At?void 0:At.userName.trim())?K.emit(`redline-edit:${Bt}:${u}`,{updatedBy:null==At?void 0:At.userName}):console.error("invalid cwsEvent name or payload")}}catch(e){console.error("failed to update redline document",e),r=Tl}return r=r.replace(/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,'<invisible id="$1"></invisible>'),r})();const t={...Zt,value:e};Y({...t,isDefaultEdit:!1}),Ul(t.value),Xt(e=>({...e,userStory:!1})),Sl(!1)}}):!Ol&&!ue&&!ce&&!Pe&&ul&&!1!==(null==Ll?void 0:Ll.showEditButton)&&l("button",{className:k.iconButton,style:null==Pt?void 0:Pt.editButton,onClick:()=>Xt(e=>({...e,userStory:!0})),children:l(m,{color:null==Pt?void 0:Pt.pencilIconColor,size:16})}),(null==kt?void 0:kt.initiateCollaborativeFlow)&&!!Ol&&l(B,{title:"Fetch latest section",children:l(y,{color:Vl?"#d3d3d3":"black",onClick:Fl})}),ke&&Wl&&ul&&!ue&&!ce&&!1!==(null==Ll?void 0:Ll.showEditButton)&&e("button",{type:"button",className:k.addSectionButton,style:null==$t?void 0:$t.addSectionButton,onClick:e=>{var t,l,n;e.stopPropagation();const o=(null!==(l=null===(t=q.sub_features)||void 0===t?void 0:t.length)&&void 0!==l?l:0)+1,i={artifactId:x(),title:`New Section ${o}`,value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},a={...q,sub_features:[...null!==(n=q.sub_features)&&void 0!==n?n:[],i]};Jt(a),Y(a),cl(!0),sl(i.title)},"aria-label":"Add section",title:"Add section",children:[l(h,{size:14}),l("span",{className:k.addSectionLabel,children:"Add Section"})]}),!Wl&&!ue&&!Pe&&!ce&&l("button",{type:"button",onClick:e=>{e.stopPropagation(),null==be||be()},className:k.iconButton,style:null==$t?void 0:$t.deleteButton,"aria-label":"Delete section",title:"Delete section",children:l(g,{size:16})}),Vt&&l("button",{type:"button",className:k.iconButton,style:null==Rt?void 0:Rt.button,disabled:Ht,onClick:e=>{if(e.stopPropagation(),ll)return il(null),void nl(!1);il(structuredClone(null!=Gt?Gt:{})),cl(!0),nl(!0)},children:ll?l(f,{size:16,color:null==Pt?void 0:Pt.pencilIconColor,style:null==Rt?void 0:Rt.cancelIcon}):l(m,{size:16,color:null==Pt?void 0:Pt.pencilIconColor,style:null==Rt?void 0:Rt.editIcon})}),(null==Ll?void 0:Ll.actionItemsButton)&&e(t,{children:[l("span",{className:k.actionItemBtn,style:null==Pt?void 0:Pt.actionItemBtn,onClick:e=>{e.stopPropagation(),gl(e.currentTarget)},children:l(S,{})}),l(A,{id:"user-story-action-menu",anchorEl:hl,open:!!hl,onClose:kl,style:null==Pt?void 0:Pt.userStoryShareMenu,children:null==Ie?void 0:Ie.items.map((t,n)=>l(T,{style:null==Pt?void 0:Pt.userStoryMenuItem,onClick:()=>{t.onclick(q),kl()},children:e("div",{className:k.menuItemContent,style:{...null==Pt?void 0:Pt.menuItemContent,...!t.isActive&&{cursor:"not-allowed",opacity:.5}},children:[l("span",{className:k.menuItemIcon,style:null==Pt?void 0:Pt.menuItemIcon,children:t.icon}),l("p",{style:null==Pt?void 0:Pt.menuLabel,children:t.name}),l("span",{className:k.menuItemRight,style:null==Pt?void 0:Pt.menuItemRight})]})},`action-item-${n}-${t.name}`))})]}),l("button",{type:"button",onClick:e=>{e.stopPropagation(),Pl()},style:null==Pt?void 0:Pt.chevronButton,className:k.chevronButton,children:l(ul?a:s,{className:k.chevronIcon,color:null==Pt?void 0:Pt.chevronIconColor})})]})]}),l("div",{className:k.divider,style:null==Pt?void 0:Pt.dividerStyle})]}),ul&&l("div",{className:k.cardContent,style:{...null==Pt?void 0:Pt.cardContentStyle,borderTop:Ae?"1px solid #E5E5E5":"none"},children:e("div",ht?{className:k.loadingContainer,children:[l("div",{className:k.loadingIconWrapper,children:l(C,{size:28,color:"#5B3DF5",className:k.spinAnimation})}),e("div",{children:[l("h3",{className:k.loadingTitle,children:"Section generation in progress.."}),l("p",{className:k.loadingSubtitle,children:"This may take a few minutes"})]}),l("button",{type:"button",onClick:()=>null==gt?void 0:gt(),className:k.viewStatusButton,children:"View Status"})]}:bt?{className:k.noDataContainer,style:null==Ot?void 0:Ot.container,children:[l("img",{src:U,alt:"No data available",className:k.noDataIllustration,style:null==Ot?void 0:Ot.illustration}),l("h3",{className:k.noDataTitle,style:null==Ot?void 0:Ot.title,children:"No Data Available for This Section"}),l("p",{className:k.noDataSubtitle,style:null==Ot?void 0:Ot.subtitle,children:"We couldn't find data for this section yet. Upload the required document from the Documents tab to generate content."})]}:{className:k.contentInner,style:null==Pt?void 0:Pt.contentInner,children:[e("div",{className:k.descriptionSection,style:null==Pt?void 0:Pt.descriptionSection,children:[l("div",{className:k.justifyBetween,style:null==Pt?void 0:Pt.justifyBetween}),Kt.userStory?l(W,{ref:Il,minHeight:"100%",height:"100%",type:"string",value:P(Tl)||"",handleUpdateState:(e,t)=>{const l=$(R(t));Jt(e=>({...e,value:l||""}))},doNotShowBorderInViewMode:!1,onBlur:()=>{},mode:Kt.userStory?"edit":"readOnly",onEditBlocked:Dt,onSaveUnsavedChanges:async()=>{await Rl(),cl(!1)},onDiscardUnsavedChanges:()=>{Jt({...structuredClone(q),value:P(q.value)||""}),Xt(e=>({...e,userStory:!1})),cl(!1)},isSavingUnsavedChanges:fl}):Vt?l(Q,{styles:Lt,fields:Ft,readonly:!ll,isSaving:qt,value:null!==(ut=null!=ol?ol:Gt)&&void 0!==ut?ut:{},onChange:il,onSave:async()=>{var e;ol&&(await(null===(e=null==Tt?void 0:Tt.onSave)||void 0===e?void 0:e.call(Tt,q,ol)),il(null),nl(!1))},onCancel:()=>{il(null),nl(!1)}}):e(t,{children:[l(L,{showUserStoryDiff:ce,isParent:""===se,message:P(q.value)||"",artifactId:q.artifactId,customStyles:Mt,isDisplayHighlightControl:he,contextVariant:Ne,showConfidenceScore:Be,CDNeededInChip:Me,blockId:We,storyId:Le,showWaitingIconInChip:je}),(_e||$e)&&e("div",{className:k.actionButtonsContainer,style:null==zt?void 0:zt.container,children:[$e&&!Kt.userStory&&e(t,{children:[l("button",{type:"button",className:k.actionButton,style:null==zt?void 0:zt.button,disabled:$e.disabled||$e.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=$e.onClick)||void 0===t||t.call($e),Xt(e=>({...e,userStory:!0})),cl(!0)},children:$e.isLoading?e(t,{children:[l(p,{size:16,className:k.actionButtonSpinner,style:null==zt?void 0:zt.icon}),l("span",{style:null==zt?void 0:zt.text,children:null!==(ct=$e.label)&&void 0!==ct?ct:"Edit"})]}):e(t,{children:[l(m,{size:16,style:null==zt?void 0:zt.icon}),l("span",{style:null==zt?void 0:zt.text,children:null!==(vt=$e.label)&&void 0!==vt?vt:"Edit"})]})}),_e&&l("span",{className:k.actionButtonDivider})]}),_e&&l("button",{type:"button",className:k.actionButton,style:null==zt?void 0:zt.button,disabled:_e.disabled||_e.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=_e.onClick)||void 0===t||t.call(_e)},children:_e.isLoading?e(t,{children:[l(p,{size:16,className:k.actionButtonSpinner,style:null==zt?void 0:zt.icon}),l("span",{style:null==zt?void 0:zt.text,children:null!==(pt=_e.label)&&void 0!==pt?pt:"Approve"})]}):e(t,{children:[l(I,{size:16,style:null==zt?void 0:zt.icon}),l("span",{style:null==zt?void 0:zt.text,children:null!==(mt=_e.label)&&void 0!==mt?mt:"Approve"})]})})]})]})]}),null===(yt=Zt.sub_features)||void 0===yt?void 0:yt.map((e,t)=>{console.log("UserStoryCardWrapper: sub",e);const n=oe(ge,!1,e.artifactId);return l(ae,{artifactId:N,isUserStoryCurrentlyUpdated:b,artifactTitleId:`${w}-${String.fromCharCode(65+t)}`,parentUserStory:q,parentIndex:`${se}${se&&"."}${re}`,currentIndex:`${t+1}`,doNotShowBorderInViewMode:!1,currentUserStory:e,onUserStoryChange:e=>((e,t)=>{const l=[...q.sub_features||[]];l[e]=t,Y({...q,sub_features:l})})(t,e),enableDownload:!0,isDiffEditReviewMode:ue,showUserStoryDiff:ce,updateUserStoryArtifact:me,handleDownloadUserStory:ve,handleOpenSendDialog:pe,isDisplayHighlightControl:he,elementDisplayConfig:ge,_resolvedConfig:n,actionItemsConfig:Ie,onDelete:()=>(e=>{const t=(q.sub_features||[]).filter((t,l)=>l!==e),l={...q,sub_features:t};Jt(l),Y(l)})(t),expandedSubFeatures:we,disableEditPlan:Pe,useMuiTooltip:Re,storyNumber:e.storyNumber,blockNumber:e.blockNumber,onUserStoryAccordionStateChange:Fe,showAssignSection:Oe,onAssignSectionClick:Ve,onSave:Ge},e.artifactId)})]})})]})},se=({artifactTitleIDs:n,expandedSubFeatures:o,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:r,isUserStoryCurrentlyUpdated:d,artifactId:u,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:y,showWrapper:h,actionItemsConfig:g,contextVariant:f,showDisplayName:S,allowTitleEdit:C,showConfidenceScore:I,showBorderTop:w,defaultExpanded:E,showCompletionPanel:D=!1,completionPanelConfig:B,showAddSectionButton:A=!1,disableEditPlan:T=!1,useMuiTooltip:U=!1,approveButtonConfig:x,editButtonConfig:P,CDNeededInChip:R,showWaitingIconInChip:_,setRedlineDocumentIdParent:$,showAssignSection:M,onAssignSectionClick:W,disableAssignSection:L,onSave:j,onUserStoryAccordionStateChange:z})=>{const{userStory:V,setUserStory:G,customStyles:F,searchQueryList:H,currentHighlightIndex:Q,setCurrentHighlightIndex:Z,segmentComponentConfig:J,sectionStatusConfig:K,redlineConfig:X,setRedlineDocumentId:ee}=O(),te=null==F?void 0:F.userStoryCardStyles,le=0===Q,ne=Q===H.length-1;return i(()=>{if(!(null==X?void 0:X.callCreateDocumentOnInit))return;(async()=>{var e;const{redline_document_id:t}=await q({baseApiUrl:X.documentBaseApiUrl||"",comparisonId:X.documentComparisonId||""});if(t)ee(t);else{const{document_id:t}=await Y({baseApiUrl:X.baseApiUrl,changelogConfigId:X.changelogConfigId,comparisonId:X.documentComparisonId,artifactId:X.artifactId,inputData:X.inputData,redlineConfigId:X.redlineConfigId,userEmail:X.userEmail,userName:X.userName},null!==(e=null==X?void 0:X.token)&&void 0!==e?e:"");t&&(ee(t),null==$||$(t))}})()},[]),e("div",{className:k.userStoryCardWrapper,style:m?{...null==te?void 0:te.userStoryCardWrapper,position:"relative"}:null==te?void 0:te.userStoryCardWrapper,children:[m&&l(t,{children:H.length>0&&l("div",{className:k.wrapper,children:l("div",{className:k.highlightNavigation,children:e("div",{className:k.navigationContainer,children:[e("span",{className:k.navCounter,children:[Q+1," of ",H.length]}),e("div",{className:k.navButtons,children:[l("button",{onClick:()=>{Q>0&&Z(e=>e-1)},className:k.navButton,disabled:le,children:l(b,{size:20,className:k.navIcon})}),l("button",{onClick:()=>{Q<H.length-1&&Z(e=>e+1)},className:k.navButton,disabled:ne,children:l(N,{size:20,className:k.navIcon})})]})]})})})}),V.map((e,t)=>{console.log("UserStoryCardWrapper: userstory",e);const i=oe(y,!0);return l(ae,{isUserStoryCurrentlyUpdated:d,artifactId:u,artifactTitleId:n[t]||"",expandedSubFeatures:o,currentUserStory:e,onUserStoryChange:e=>{G(l=>(l[t]=e,[...l]))},parentIndex:"",currentIndex:`${t+1}`,doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:r,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:y,_resolvedConfig:i,showWrapper:h,defaultExpanded:E,actionItemsConfig:g,contextVariant:f,showDisplayName:S,allowTitleEdit:C,showConfidenceScore:I,showBorderTop:w,sectionStatusConfig:K,showCompletionPanel:D,completionPanelConfig:B,showAddSectionButton:A,disableEditPlan:T,useMuiTooltip:U,approveButtonConfig:x,CDNeededInChip:R,editButtonConfig:P,storyNumber:e.storyNumber,blockNumber:e.blockNumber,onUserStoryAccordionStateChange:z,showWaitingIconInChip:_,showAssignSection:M,disableAssignSection:L,onAssignSectionClick:W,onSave:j},e.artifactId)})]})};export{ae as StoryCard,se as UserStoryCardWrapper,ae as default,ne as replaceLearnedTagsWithInfo};
1
+ import{jsxs as e,Fragment as t,jsx as l}from"react/jsx-runtime";import{useState as o,useRef as n,useEffect as i}from"react";import{Info as s,ChevronUp as a,ChevronDown as r,Users as d,ExternalLink as u,Download as c,Share2 as v,Copy as p,LoaderCircle as m,PencilIcon as h,RefreshCw as y,Plus as g,Trash2 as f,X as S,Ellipsis as C,Hourglass as I,Check as b,ChevronUpIcon as w,ChevronDownIcon as N,Bookmark as E}from"lucide-react";import D from"showdown";import{Tooltip as B,Menu as x,MenuItem as A}from"@mui/material";import T from"../../icons/Illustration.svg.js";import{v4 as U}from"uuid";import k from"./UserStoryCard.module.css.js";import{formatMarkdown as P,indentMarkdown as R}from"../../utils/helpers.js";import{replaceTitleSection as L,postprocessUserStoryAfterEdit as _}from"../../utils/user-story.utils.js";import F from"../../shared/AtomicButton.js";import W from"../RichTextEditor/RichTextEditor.js";import $ from"../userstory-with-citation/UserStoryWithCitation.js";import{SectionStatus as M,useRequirementAI as z,ToasterId as j}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as O}from"../story-screen/BigEnoughPanel.js";import{InlineTitleEditor as V}from"./TitleEditor/TitleEditor.js";import{fetchRedlineDocumentSection as G,updateRedlineDocument as H,getRedlineDocumentId as q,createRedlineDocument as Y}from"../../../../service/redlineService.js";import Q from"./ClinicalTrialSection.js";import{CompletionPanel as Z}from"../story-screen/CompletionPanel.js";import J from"../../icons/CDIcon.js";import K from"./cws/CwsEvent.js";import X from"./cws/useCwsEvent.js";import ee from"react-hot-toast";import te from"./Popups/RedlineToast.js";const le={[M.WAITING]:"WAITING TO GENERATE",[M.IN_PROGRESS]:"IN PROGRESS",[M.GENERATED]:"GENERATED",[M.FAILED]:"FAILED",[M.GENERATE]:"GENERATE",[M.APPROVED]:"APPROVED"};function oe(e){const t=[],o=/<learned>(.*?)<\/learned>/g;let n,i=0,a=0;for(;null!==(n=o.exec(e));){const[,r]=n,d=n.index;d>i&&t.push(l("span",{children:e.slice(i,d)},"text-pre-"+a++)),t.push(l(B,{title:r,placement:"top",children:l(s,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})},`tooltip-${U()}`)),i=o.lastIndex}return i<(null==e?void 0:e.length)&&t.push(l("span",{children:e.slice(i)},"text-post-"+a++)),t}function ne(e,t,l){var o;if(!e)return{};if(t)return{...e.parentConfig};const n={...e.childConfig};return l&&(null===(o=e.subFeatureOverrides)||void 0===o?void 0:o[l])?{...n,...e.subFeatureOverrides[l]}:n}const ie=({displayName:t})=>{var o;const{customStyles:n}=z(),i=null===(o=null==n?void 0:n.userStoryCardStyles)||void 0===o?void 0:o.showDisplayName;return e("div",{className:k.displayName,style:null==i?void 0:i.wrapper,children:[l(E,{className:k.displayNameIcon,style:null==i?void 0:i.displayNameIcon}),e("span",{style:null==i?void 0:i.label,children:[t,":"]})]})},se=({isUserStoryCurrentlyUpdated:w,artifactId:N,artifactTitleId:E,parentUserStory:q,currentUserStory:Y,onUserStoryChange:ae,parentIndex:re,currentIndex:de,enableDownload:ue,isDiffEditReviewMode:ce,showUserStoryDiff:ve,handleDownloadUserStory:pe,handleOpenSendDialog:me,updateUserStoryArtifact:he,selectedArtifactId:ye,isDisplayHighlightControl:ge,elementDisplayConfig:fe,_resolvedConfig:Se,showWrapper:Ce=!1,defaultExpanded:Ie,actionItemsConfig:be,onDelete:we,contextVariant:Ne,expandedSubFeatures:Ee,showDisplayName:De=!0,allowTitleEdit:Be=!0,showConfidenceScore:xe=!0,showBorderTop:Ae=!0,sectionStatusConfig:Te,showCompletionPanel:Ue=!1,completionPanelConfig:ke,showAddSectionButton:Pe=!1,disableEditPlan:Re=!1,useMuiTooltip:Le=!1,approveButtonConfig:_e,editButtonConfig:Fe,CDNeededInChip:We,blockNumber:$e,storyNumber:Me,showWaitingIconInChip:ze,showAssignSection:je=!1,disableAssignSection:Oe=!1,onAssignSectionClick:Ve,onSave:Ge,onUserStoryAccordionStateChange:He,showSuggestedFilesInfo:qe=!1,suggestedFilesConfig:Ye})=>{var Qe,Ze,Je,Ke,Xe,et,tt,lt,ot,nt,it,st,at,rt,dt,ut,ct,vt,pt,mt,ht,yt,gt,ft,St,Ct,It,bt,wt,Nt,Et;const{isLoadingSectionData:Dt=!1,onLoadSectionData:Bt,status:xt,onStatusClick:At,completedCount:Tt,totalCount:Ut,isNoDataAvailable:kt=!1}=null!=Te?Te:{},{searchQueryList:Pt,citations:Rt,customStyles:Lt,onEditBlocked:_t,redlineDcoumentId:Ft,redlineConfig:Wt,customSectionConfig:$t,updateRedlineDataParent:Mt,aiReasoning:zt,redlineCollaborativeConfig:jt}=z(),Ot=null==Lt?void 0:Lt.userStoryCardStyles,Vt=null==Ot?void 0:Ot.customSectionEditButton,Gt=null==Ot?void 0:Ot.statusStyles,Ht=null===(Qe=null==Lt?void 0:Lt.userStoryCardStyles)||void 0===Qe?void 0:Qe.userStoryEditStyles,qt=null===(Ze=null==Lt?void 0:Lt.userStoryScreenStyles)||void 0===Ze?void 0:Ze.userStoryContentStyles,Yt=null==Ot?void 0:Ot.progressHeaderStyles,Qt=null==Ot?void 0:Ot.clinicalTrialSectionStyles,Zt=null==Ot?void 0:Ot.CompletionStyles,Jt=null==Ot?void 0:Ot.noDataStyles,Kt=null==Ot?void 0:Ot.approveButtonStyles;null==Ot||Ot.suggestedFilesStyles;const Xt=null!==(Ke=null===(Je=null==$t?void 0:$t.shouldRender)||void 0===Je?void 0:Je.call($t,Y))&&void 0!==Ke&&Ke,el=null===(Xe=null==$t?void 0:$t.getValue)||void 0===Xe?void 0:Xe.call($t,Y),tl=null!==(tt=null===(et=null==$t?void 0:$t.getFields)||void 0===et?void 0:et.call($t,Y))&&void 0!==tt?tt:[],ll=null!==(lt=null==$t?void 0:$t.isEditDisabled)&&void 0!==lt&&lt,ol=null!==(nt=null===(ot=null==$t?void 0:$t.isSaving)||void 0===ot?void 0:ot.call($t,Y))&&void 0!==nt&&nt,nl=((e,t)=>e>=80?null==t?void 0:t.highCompletion:e>=50?null==t?void 0:t.mediumCompletion:null==t?void 0:t.lowCompletion)(null!==(it=Y.completion_percentage)&&void 0!==it?it:0,Zt),il={[M.WAITING]:null==Gt?void 0:Gt.waiting,[M.IN_PROGRESS]:null==Gt?void 0:Gt.inProgress,[M.GENERATED]:null==Gt?void 0:Gt.generated,[M.FAILED]:null==Gt?void 0:Gt.failed,[M.GENERATE]:null==Gt?void 0:Gt.generate,[M.APPROVED]:null==Gt?void 0:Gt.approved},[sl,al]=o({...structuredClone(Y),value:P(Y.value)||""}),[rl,dl]=o({userStory:!!Y.isDefaultEdit}),[ul,cl]=o(!1),[vl,pl]=o(!1),[ml,hl]=o(null),[yl,gl]=o(null),{userStory:fl,customIcons:Sl}=z(),[Cl,Il]=o(null!=Ie?Ie:""===re||ye===Y.artifactId||!!Y.isDefaultOpen),[bl,wl]=o(!1),[Nl,El]=o(null),[Dl,Bl]=o(null),[xl,Al]=o(!1),Tl=n(null),Ul=n(null),kl=n(null),[Pl,Rl]=o(!1),[Ll,_l]=o(!1),Fl=n(null),[Wl,$l]=o(!1),[Ml,zl]=o(!1),[jl,Ol]=o(Y.value);i(()=>{w&&Il(w)},[w]),i(()=>{al({...structuredClone(Y),value:P(Y.value)||""})},[Y]),i(()=>{Pt.length>0?Il(!0):void 0===Ie&&ye&&Il(ye===Y.artifactId)},[Pt,ye,Y.artifactId]),i(()=>{Ee&&Ee.length>0&&Me&&$e&&Il(Ee.includes(`${Me}-${$e}`)||""===re||ye===Y.artifactId||!!Y.isDefaultOpen)},[Ee,Me,$e]),i(()=>{if(!Ml)return;const e=e=>{Ul.current&&!Ul.current.contains(e.target)&&zl(!1)};return document.addEventListener("mousedown",e,!0),()=>{document.removeEventListener("mousedown",e,!0)}},[Ml]);const Vl=()=>{El(null)},Gl=()=>{Bl(null)},Hl=()=>{if(Cl&&rl.userStory&&kl.current&&!kl.current.requestClose())return;const e=!Cl;Il(e),null==He||He(Y,e)},ql=async()=>{var e,t;try{"userStory"==="userStory"&&(ae(sl),console.log("I am changing RTE editor values",sl)),await(null===(e=null==Fe?void 0:Fe.onSaveEditedSection)||void 0===e?void 0:e.call(Fe,sl)),await he(Rt,fl,N,null===(t=Fl.current)||void 0===t?void 0:t.signal)}finally{}};const Yl=null!=(null==Y?void 0:Y.big_enough)&&!Number.isNaN(Y.big_enough)&&!!(null==Y?void 0:Y.big_enough_decision_factors),Ql=null!==(st=null==Y?void 0:Y.completion_percentage)&&void 0!==st?st:0,Zl=!!(null==Y?void 0:Y.completion_decision_factors),Jl=""===re,Kl=null!=Se?Se:ne(fe,Jl),Xl=!ce&&!ve;i(()=>{if(!yl)return;const e=setTimeout(()=>{const e=document.getElementById(`story-card-${yl}`);null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(e)},[yl]);const[eo,to]=o(0),[lo,oo]=o(!1),no=async()=>{var e,t;let l=!0;if(oo(e=>(l=!e,!0)),l){let l;to(e=>(l=e,e));try{const{updated_reqai:o}=await G({documentId:Ft,sectionId:Y.artifactId,baseApiUrl:null==Wt?void 0:Wt.baseApiUrl,redlineConfigId:null!==(e=null==Wt?void 0:Wt.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==Wt?void 0:Wt.token)&&void 0!==t?t:"");await(null==Mt?void 0:Mt(o)),to(e=>l===e?0:1)}catch(e){console.error("failed to fetch latest user story: ",e),ee.error("Failed to fetch the latest user story. Please try again.")}oo(!1)}};i(()=>{Y.isDefaultEdit&&dl(e=>({...e,userStory:!0}))},[Y.isDefaultEdit]),console.log("block number in userstory card ",$e),console.log("[TESTING-CURRENT-USER-STORY] \n",Y,"\n[TESTING-USER-STORY] \n",fl),X(`redline-edit:${Ft}:${Y.artifactId}`,async({updatedBy:o})=>{var n;null===(n=Fl.current)||void 0===n||n.abort(),to(e=>e+1),dl(n=>n.userStory?(ee.custom(t=>e(te,{onCancel:()=>ee.dismiss(t.id),onRefresh:()=>{ee.dismiss(t.id),no()},children:["This ",l("span",{style:{fontWeight:600},children:Y.title})," section has been updated by ",l("span",{style:{fontWeight:600},children:o})," while you were editing. Please refresh to view the latest version."]}),{duration:1e4,toasterId:j}),{...fl,userStory:!1}):(no().then(()=>{ee.custom(n=>e(te,{onCancel:()=>ee.dismiss(n.id),title:e(t,{children:[l("span",{style:{fontWeight:600},children:Y.title})," updated,",l("br",{})]}),children:[o," saved changes. Your unsaved edits are untouched."]}),{duration:1e4,toasterId:j})}),n))});return i(()=>Ol(Y.value),[Y.value]),e("div",{className:k.card,"data-block-id":`user-story-card-wrapper-${Me}-${$e}`,style:null==Ot?void 0:Ot.cardStyle,id:`story-card-${Y.title}`,"data-expanded":Cl,children:[e("div",{className:k.titleSection,style:null==Ot?void 0:Ot.titleSection,children:[e("div",{className:k.titleRow,style:null==Ot?void 0:Ot.titleRow,onClick:Hl,children:[e("div",{className:k.titleLeft,style:null==Ot?void 0:Ot.titleLeft,onMouseEnter:()=>Rl(!0),onMouseLeave:()=>Rl(!1),children:[De&&l(ie,{displayName:E}),ul&&Xl?l(V,{title:Y.title,onSave:e=>(async(e,t)=>{var l;try{let o={...Y};Y.artifactId===t?o.title=e:o.sub_features=(null===(l=Y.sub_features)||void 0===l?void 0:l.map(l=>l.artifactId===t?{...l,title:e}:l))||[],al(o),ae(o),cl(!1)}catch(e){console.error("Failed to save title",e)}})(e,Y.artifactId),onCancel:()=>{cl(!1)},inputStyle:null==Ht?void 0:Ht.inlineTitleInput,confirmButtonStyle:null==Ht?void 0:Ht.inlineTitleConfirm,cancelButtonStyle:null==Ht?void 0:Ht.inlineTitleCancel},"inline-title-editor"):e("div",{className:k.storyTitleWrapper,children:[l(B,{title:oe(Y.title),arrow:!0,children:l("h2",{title:Le?void 0:Y.title,className:k.storyTitle,style:null==Ot?void 0:Ot.storyTitle,children:oe(Y.title)},Y.artifactId)}),qe&&!Xt&&l("div",{ref:Ul,style:{display:"inline-flex"},children:l(B,{open:Ml&&!(null==Ye?void 0:Ye.isLoading)&&!!(null===(at=null==Ye?void 0:Ye.files)||void 0===at?void 0:at.length),disableHoverListener:!0,disableFocusListener:!0,disableTouchListener:!0,placement:"bottom",PopperProps:{disablePortal:!0},arrow:!0,componentsProps:{tooltip:{className:k.suggestedFilesTooltip,sx:{backgroundColor:"#334155",color:"#fff",maxWidth:400,padding:0,borderRadius:"8px",boxShadow:"0 8px 24px rgba(0,0,0,0.25)"}},arrow:{sx:{color:"#334155"}}},title:e("div",{onClick:e=>e.stopPropagation(),children:[e("div",{style:{fontWeight:700,fontSize:15,color:"#fff",padding:"12px 14px 10px 14px",borderBottom:"1px solid rgba(255,255,255,0.15)",whiteSpace:"nowrap"},children:[null!==(rt=null==Ye?void 0:Ye.title)&&void 0!==rt?rt:"Suggested files to generate this section"," ","(",null!==(ut=null===(dt=null==Ye?void 0:Ye.files)||void 0===dt?void 0:dt.length)&&void 0!==ut?ut:0,")"]}),l("ol",{className:k.suggestedFilesList,style:{margin:0,padding:"8px 14px 10px 14px",maxHeight:180,overflowY:"auto",listStyle:"none"},children:null===(ct=null==Ye?void 0:Ye.files)||void 0===ct?void 0:ct.map((t,l)=>e("li",{style:{fontSize:14,color:"#CBD5E1",padding:"6px 0",whiteSpace:"nowrap"},children:[l+1,". ",t]},l))})]}),children:l(s,{size:16,style:{cursor:(null==Ye?void 0:Ye.isLoading)||!(null===(vt=null==Ye?void 0:Ye.files)||void 0===vt?void 0:vt.length)?"not-allowed":"pointer",color:"#94A3B8",marginLeft:4,opacity:(null==Ye?void 0:Ye.isLoading)||!(null===(pt=null==Ye?void 0:Ye.files)||void 0===pt?void 0:pt.length)?.4:1,transition:"opacity 0.15s ease"},onClick:e=>{var t;e.stopPropagation(),!(null==Ye?void 0:Ye.isLoading)&&(null===(t=null==Ye?void 0:Ye.files)||void 0===t?void 0:t.length)&&zl(e=>!e)}})})}),Ue&&(Zl?l(Z,{customIcons:null==Sl?void 0:Sl.userStoryIcons,customStyles:null==Ot?void 0:Ot.aiReasoningCitaionStyles,currentUserStory:Y,panelStyles:null==Ot?void 0:Ot.CompletionStyles,onToggleStateChange:_l,completionPanelConfig:ke,children:e("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==Zt?void 0:Zt.badge,...nl},children:[e("span",{children:[Ql,"% Completed"]}),l("span",{style:{display:"flex",alignItems:"center"},children:l(J,{color:"currentColor"})}),l(Ll?a:r,{size:14,style:null==Zt?void 0:Zt.chevronStyle})]})}):l("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==Zt?void 0:Zt.badge,...nl},children:e("span",{children:[Ql,"% Completed"]})})),Be&&l("button",{type:"button",className:k.titleEditButton,style:null==Ht?void 0:Ht.titleEditButton,onClick:e=>{e.stopPropagation(),cl(!0),Cl||Il(!0)},"aria-label":"Edit title",title:"Edit title",children:l("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})})})]})]}),(xt||void 0!==Tt&&void 0!==Ut)&&e("div",{className:k.statusContainer,children:[void 0!==Tt&&void 0!==Ut&&e("div",{className:k.completedBadge,children:["Completed: ",Tt,"/",Ut]}),xt&&l("button",{type:"button",onClick:e=>{e.stopPropagation(),null==At||At()},onMouseEnter:()=>$l(!0),onMouseLeave:()=>$l(!1),className:k.statusButton,style:{...null===(mt=il[xt])||void 0===mt?void 0:mt.default,...Wl&&(null===(ht=il[xt])||void 0===ht?void 0:ht.hover)},children:le[xt]})]}),e("div",{className:k.titleActions,style:null==Ot?void 0:Ot.titleActions,onClick:e=>e.stopPropagation(),children:[(Kl.showProgressPercentage||Kl.showGapBox)&&Ce&&e("div",{className:k.progressHeader,style:null==Yt?void 0:Yt.wrapper,children:[Kl.showProgressPercentage&&e("div",{className:k.progressPercentage,style:null==Yt?void 0:Yt.percentage,children:[null!==(gt=null!==(yt=null==Y?void 0:Y.confidenceScore)&&void 0!==yt?yt:null==Kl?void 0:Kl.confidenceValue)&&void 0!==gt?gt:"0","%"]}),Kl.showGapBox&&e("div",{className:k.gapBox,style:null==Yt?void 0:Yt.gapBox,children:[null!==(St=null!==(ft=null==Y?void 0:Y.gapValue)&&void 0!==ft?ft:null==Kl?void 0:Kl.gapBoxValue)&&void 0!==St?St:"2"," ","Gaps"]})]}),Yl&&l(O,{customIcons:null==Sl?void 0:Sl.userStoryIcons,customStyles:null==Ot?void 0:Ot.aiReasoningCitaionStyles,currentUserStory:Y,panelStyles:null==Ot?void 0:Ot.BigEnoughStyles}),je&&l("button",{type:"button",className:k.iconButton,style:null==Ot?void 0:Ot.iconButton,disabled:Oe,onClick:e=>{e.stopPropagation(),null==Ve||Ve(Y)},"aria-label":"Assign section users",title:"Assign section users",children:l(d,{size:16})}),!rl.userStory&&e(t,{children:[!1!==(null==Kl?void 0:Kl.showShareButton)&&l("button",{className:k.iconButton,style:null==Ot?void 0:Ot.iconButton,onClick:e=>{El(e.currentTarget)},children:l(u,{size:16})}),e(x,{id:"user-story-share-menu",anchorEl:Nl,open:!!Nl,onClose:()=>El(null),style:null==Ot?void 0:Ot.userStoryShareMenu,children:[ue&&l(A,{style:null==Ot?void 0:Ot.userStoryMenuItem,onClick:async()=>{wl(!0),pe&&(await Promise.all([pe("pdf"),pe("doc")]),wl(!1))},children:e("div",{ref:Tl,className:k.menuItemContent,style:null==Ot?void 0:Ot.menuItemContent,children:[l(c,{size:16,color:null==Ot?void 0:Ot.menuIconColor}),l("p",{style:null==Ot?void 0:Ot.menuLabel,children:"Download"})]})}),l(A,{style:null==Ot?void 0:Ot.userStoryMenuItem,onClick:async()=>{let e=Y;q&&(e={...Y,value:`${L(null==q?void 0:q.value,Y.title)} \n${Y.value}`}),null==me||me(!0,[e],Y.artifactId),Vl()},children:e("div",{style:null==Ot?void 0:Ot.menuItemContent,className:k.menuItemContentPadded,children:[l(v,{size:16,color:null==Ot?void 0:Ot.menuIconColor}),l("p",{style:null==Ot?void 0:Ot.menuLabel,children:"Send"})]})}),l(A,{style:null==Ot?void 0:Ot.userStoryMenuItem,onClick:async()=>{const e=(new D.Converter).makeHtml(P(Y.value)||Y.value),t=function(e){const t=(new D.Converter).makeHtml(e),l=document.createElement("div");return l.innerHTML=t,l.textContent||l.innerText||""}(P(Y.value)||Y.value),l=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})});try{await navigator.clipboard.write([l]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{Vl()}},children:e("div",{style:null==Ot?void 0:Ot.menuItemContent,className:k.menuItemContentPadded,children:[l(p,{size:16,color:null==Ot?void 0:Ot.menuIconColor}),l("p",{style:null==Ot?void 0:Ot.menuLabel,children:"Copy"})]})})]})]}),!xl&&rl.userStory&&Cl?l(F,{type:"outline",children:"Cancel",style:null==Ot?void 0:Ot.cancelButton,onClick:()=>{var e;null===(e=Fl.current)||void 0===e||e.abort(),dl(e=>({...e,userStory:!1}))}}):l(t,{}),rl.userStory&&Cl?l(F,{type:"fill",children:xl?e("span",{className:k.savingSpinner,style:null==Ot?void 0:Ot.savingSpinner,children:[l(m,{className:k.spinAnimation,style:null==Ot?void 0:Ot.spinAnimation}),l("span",{children:"Saving..."})]}):"Save",isDisable:xl,style:xl?null==Ot?void 0:Ot.savingButton:null==Ot?void 0:Ot.saveButton,onClick:async()=>{Al(!0),await ql();let e=await(async()=>{var e,t,l,o,n,i,s,a;let r=sl.value;console.log("[V] valueToUpdate before",r),r=r.replace(/<invisible\s+id="([^"]+)"\s*><\/invisible>/gi,"\x3c!-- $1 --\x3e"),console.log("[V] valueToUpdate after",r);try{await(null==Ge?void 0:Ge(r,Y.artifactId))}catch(e){}try{if(null==Wt?void 0:Wt.callUpdateDocument){const{updated_reqai:d}=await H({documentId:Ft,sectionId:Y.artifactId,baseApiUrl:null==Wt?void 0:Wt.baseApiUrl,updatedContent:r,userEmail:Wt.userEmail,userName:Wt.userName,redlineConfigId:null!==(e=Wt.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==Wt?void 0:Wt.token)&&void 0!==t?t:"");r=null===(n=null===(o=null===(l=null==d?void 0:d.artifactData)||void 0===l?void 0:l.userStorySnapshot)||void 0===o?void 0:o[0])||void 0===n?void 0:n.value,await(null==Mt?void 0:Mt(d));const u=null===(a=null===(s=null===(i=null==d?void 0:d.artifactData)||void 0===i?void 0:i.userStorySnapshot)||void 0===s?void 0:s[0])||void 0===a?void 0:a.artifactId;"string"==typeof u&&u.trim()&&"string"==typeof Ft&&Ft.trim()&&"string"==typeof(null==Wt?void 0:Wt.userName)&&(null==Wt?void 0:Wt.userName.trim())?K.emit(`redline-edit:${Ft}:${u}`,{updatedBy:null==Wt?void 0:Wt.userName}):console.error("invalid cwsEvent name or payload")}}catch(e){console.error("failed to update redline document",e),r=jl}return r=r.replace(/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,'<invisible id="$1"></invisible>'),r})();const t={...sl,value:e};ae({...t,isDefaultEdit:!1}),Ol(t.value),dl(e=>({...e,userStory:!1})),Al(!1)}}):!eo&&!ce&&!ve&&!Re&&Cl&&!1!==(null==Kl?void 0:Kl.showEditButton)&&l("button",{className:k.iconButton,style:null==Ot?void 0:Ot.editButton,onClick:()=>dl(e=>({...e,userStory:!0})),children:l(h,{color:null==Ot?void 0:Ot.pencilIconColor,size:16})}),(null==jt?void 0:jt.initiateCollaborativeFlow)&&!!eo&&l(B,{title:"Fetch latest section",children:l(y,{color:lo?"#d3d3d3":"black",onClick:no})}),Pe&&Jl&&Cl&&!ce&&!ve&&!1!==(null==Kl?void 0:Kl.showEditButton)&&e("button",{type:"button",className:k.addSectionButton,style:null==Ht?void 0:Ht.addSectionButton,onClick:e=>{var t,l,o;e.stopPropagation();const n=(null!==(l=null===(t=Y.sub_features)||void 0===t?void 0:t.length)&&void 0!==l?l:0)+1,i={artifactId:U(),title:`New Section ${n}`,value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},s={...Y,sub_features:[...null!==(o=Y.sub_features)&&void 0!==o?o:[],i]};al(s),ae(s),Il(!0),gl(i.title)},"aria-label":"Add section",title:"Add section",children:[l(g,{size:14}),l("span",{className:k.addSectionLabel,children:"Add Section"})]}),!Jl&&!ce&&!Re&&!ve&&l("button",{type:"button",onClick:e=>{e.stopPropagation(),null==we||we()},className:k.iconButton,style:null==Ht?void 0:Ht.deleteButton,"aria-label":"Delete section",title:"Delete section",children:l(f,{size:16})}),Xt&&l("button",{type:"button",className:k.iconButton,style:null==Vt?void 0:Vt.button,disabled:ll,onClick:e=>{if(e.stopPropagation(),vl)return hl(null),void pl(!1);hl(structuredClone(null!=el?el:{})),Il(!0),pl(!0)},children:vl?l(S,{size:16,color:null==Ot?void 0:Ot.pencilIconColor,style:null==Vt?void 0:Vt.cancelIcon}):l(h,{size:16,color:null==Ot?void 0:Ot.pencilIconColor,style:null==Vt?void 0:Vt.editIcon})}),(null==Kl?void 0:Kl.actionItemsButton)&&e(t,{children:[l("span",{className:k.actionItemBtn,style:null==Ot?void 0:Ot.actionItemBtn,onClick:e=>{e.stopPropagation(),Bl(e.currentTarget)},children:l(C,{})}),l(x,{id:"user-story-action-menu",anchorEl:Dl,open:!!Dl,onClose:Gl,style:null==Ot?void 0:Ot.userStoryShareMenu,children:null==be?void 0:be.items.map((t,o)=>l(A,{style:null==Ot?void 0:Ot.userStoryMenuItem,onClick:()=>{t.onclick(Y),Gl()},children:e("div",{className:k.menuItemContent,style:{...null==Ot?void 0:Ot.menuItemContent,...!t.isActive&&{cursor:"not-allowed",opacity:.5}},children:[l("span",{className:k.menuItemIcon,style:null==Ot?void 0:Ot.menuItemIcon,children:t.icon}),l("p",{style:null==Ot?void 0:Ot.menuLabel,children:t.name}),l("span",{className:k.menuItemRight,style:null==Ot?void 0:Ot.menuItemRight})]})},`action-item-${o}-${t.name}`))})]}),l("button",{type:"button",onClick:e=>{e.stopPropagation(),Hl()},style:null==Ot?void 0:Ot.chevronButton,className:k.chevronButton,children:l(Cl?a:r,{className:k.chevronIcon,color:null==Ot?void 0:Ot.chevronIconColor})})]})]}),l("div",{className:k.divider,style:null==Ot?void 0:Ot.dividerStyle})]}),Cl&&l("div",{className:k.cardContent,style:{...null==Ot?void 0:Ot.cardContentStyle,borderTop:Ae?"1px solid #E5E5E5":"none"},children:e("div",Dt?{className:k.loadingContainer,children:[l("div",{className:k.loadingIconWrapper,children:l(I,{size:28,color:"#5B3DF5",className:k.spinAnimation})}),e("div",{children:[l("h3",{className:k.loadingTitle,children:"Section generation in progress.."}),l("p",{className:k.loadingSubtitle,children:"This may take a few minutes"})]}),l("button",{type:"button",onClick:()=>null==Bt?void 0:Bt(),className:k.viewStatusButton,children:"View Status"})]}:kt?{className:k.noDataContainer,style:null==Jt?void 0:Jt.container,children:[l("img",{src:T,alt:"No data available",className:k.noDataIllustration,style:null==Jt?void 0:Jt.illustration}),l("h3",{className:k.noDataTitle,style:null==Jt?void 0:Jt.title,children:"No Data Available for This Section"}),l("p",{className:k.noDataSubtitle,style:null==Jt?void 0:Jt.subtitle,children:"We couldn't find data for this section yet. Upload the required document from the Documents tab to generate content."})]}:{className:k.contentInner,style:null==Ot?void 0:Ot.contentInner,children:[e("div",{className:k.descriptionSection,style:null==Ot?void 0:Ot.descriptionSection,children:[l("div",{className:k.justifyBetween,style:null==Ot?void 0:Ot.justifyBetween}),rl.userStory?l(W,{ref:kl,minHeight:"100%",height:"100%",type:"string",value:P(jl)||"",handleUpdateState:(e,t)=>{const l=_(R(t));al(e=>({...e,value:l||""}))},doNotShowBorderInViewMode:!1,onBlur:()=>{},mode:rl.userStory?"edit":"readOnly",onEditBlocked:_t,onSaveUnsavedChanges:async()=>{await ql(),Il(!1)},onDiscardUnsavedChanges:()=>{al({...structuredClone(Y),value:P(Y.value)||""}),dl(e=>({...e,userStory:!1})),Il(!1)},isSavingUnsavedChanges:xl}):Xt?l(Q,{styles:Qt,fields:tl,readonly:!vl,isSaving:ol,value:null!==(Ct=null!=ml?ml:el)&&void 0!==Ct?Ct:{},onChange:hl,onSave:async()=>{var e;ml&&(await(null===(e=null==$t?void 0:$t.onSave)||void 0===e?void 0:e.call($t,Y,ml)),hl(null),pl(!1))},onCancel:()=>{hl(null),pl(!1)}}):e(t,{children:[l($,{showUserStoryDiff:ve,isParent:""===re,message:P(Y.value)||"",artifactId:Y.artifactId,customStyles:qt,isDisplayHighlightControl:ge,contextVariant:Ne,showConfidenceScore:xe,CDNeededInChip:We,blockId:$e,storyId:Me,showWaitingIconInChip:ze}),(_e||Fe)&&e("div",{className:k.actionButtonsContainer,style:null==Kt?void 0:Kt.container,children:[Fe&&!rl.userStory&&e(t,{children:[l("button",{type:"button",className:k.actionButton,style:null==Kt?void 0:Kt.button,disabled:Fe.disabled||Fe.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=Fe.onClick)||void 0===t||t.call(Fe),dl(e=>({...e,userStory:!0})),Il(!0)},children:Fe.isLoading?e(t,{children:[l(m,{size:16,className:k.actionButtonSpinner,style:null==Kt?void 0:Kt.icon}),l("span",{style:null==Kt?void 0:Kt.text,children:null!==(It=Fe.label)&&void 0!==It?It:"Edit"})]}):e(t,{children:[l(h,{size:16,style:null==Kt?void 0:Kt.icon}),l("span",{style:null==Kt?void 0:Kt.text,children:null!==(bt=Fe.label)&&void 0!==bt?bt:"Edit"})]})}),_e&&l("span",{className:k.actionButtonDivider})]}),_e&&l("button",{type:"button",className:k.actionButton,style:null==Kt?void 0:Kt.button,disabled:_e.disabled||_e.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=_e.onClick)||void 0===t||t.call(_e)},children:_e.isLoading?e(t,{children:[l(m,{size:16,className:k.actionButtonSpinner,style:null==Kt?void 0:Kt.icon}),l("span",{style:null==Kt?void 0:Kt.text,children:null!==(wt=_e.label)&&void 0!==wt?wt:"Approve"})]}):e(t,{children:[l(b,{size:16,style:null==Kt?void 0:Kt.icon}),l("span",{style:null==Kt?void 0:Kt.text,children:null!==(Nt=_e.label)&&void 0!==Nt?Nt:"Approve"})]})})]})]})]}),null===(Et=sl.sub_features)||void 0===Et?void 0:Et.map((e,t)=>{console.log("UserStoryCardWrapper: sub",e);const o=ne(fe,!1,e.artifactId);return l(se,{artifactId:N,isUserStoryCurrentlyUpdated:w,artifactTitleId:`${E}-${String.fromCharCode(65+t)}`,parentUserStory:Y,parentIndex:`${re}${re&&"."}${de}`,currentIndex:`${t+1}`,doNotShowBorderInViewMode:!1,currentUserStory:e,onUserStoryChange:e=>((e,t)=>{const l=[...Y.sub_features||[]];l[e]=t,ae({...Y,sub_features:l})})(t,e),enableDownload:!0,isDiffEditReviewMode:ce,showUserStoryDiff:ve,updateUserStoryArtifact:he,handleDownloadUserStory:pe,handleOpenSendDialog:me,isDisplayHighlightControl:ge,elementDisplayConfig:fe,_resolvedConfig:o,actionItemsConfig:be,onDelete:()=>(e=>{const t=(Y.sub_features||[]).filter((t,l)=>l!==e),l={...Y,sub_features:t};al(l),ae(l)})(t),expandedSubFeatures:Ee,disableEditPlan:Re,useMuiTooltip:Le,storyNumber:e.storyNumber,blockNumber:e.blockNumber,onUserStoryAccordionStateChange:He,showAssignSection:je,onAssignSectionClick:Ve,onSave:Ge},e.artifactId)})]})})]})},ae=({artifactTitleIDs:o,expandedSubFeatures:n,isDiffEditReviewMode:s,showUserStoryDiff:a,updateUserStoryArtifact:r,isUserStoryCurrentlyUpdated:d,artifactId:u,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:h,showWrapper:y,actionItemsConfig:g,contextVariant:f,showDisplayName:S,allowTitleEdit:C,showConfidenceScore:I,showBorderTop:b,defaultExpanded:E,showCompletionPanel:D=!1,completionPanelConfig:B,showAddSectionButton:x=!1,disableEditPlan:A=!1,useMuiTooltip:T=!1,approveButtonConfig:U,editButtonConfig:P,CDNeededInChip:R,showWaitingIconInChip:L,setRedlineDocumentIdParent:_,showAssignSection:F,onAssignSectionClick:W,disableAssignSection:$,onSave:M,onUserStoryAccordionStateChange:j,showSuggestedFilesInfo:O,suggestedFilesConfig:V})=>{const{userStory:G,setUserStory:H,customStyles:Q,searchQueryList:Z,currentHighlightIndex:J,setCurrentHighlightIndex:K,segmentComponentConfig:X,sectionStatusConfig:ee,redlineConfig:te,setRedlineDocumentId:le}=z(),oe=null==Q?void 0:Q.userStoryCardStyles,ie=0===J,ae=J===Z.length-1;return i(()=>{if(!(null==te?void 0:te.callCreateDocumentOnInit))return;(async()=>{var e;const{redline_document_id:t}=await q({baseApiUrl:te.documentBaseApiUrl||"",comparisonId:te.documentComparisonId||""});if(t)le(t);else{const{document_id:t}=await Y({baseApiUrl:te.baseApiUrl,changelogConfigId:te.changelogConfigId,comparisonId:te.documentComparisonId,artifactId:te.artifactId,inputData:te.inputData,redlineConfigId:te.redlineConfigId,userEmail:te.userEmail,userName:te.userName},null!==(e=null==te?void 0:te.token)&&void 0!==e?e:"");t&&(le(t),null==_||_(t))}})()},[]),e("div",{className:k.userStoryCardWrapper,style:m?{...null==oe?void 0:oe.userStoryCardWrapper,position:"relative"}:null==oe?void 0:oe.userStoryCardWrapper,children:[m&&l(t,{children:Z.length>0&&l("div",{className:k.wrapper,children:l("div",{className:k.highlightNavigation,children:e("div",{className:k.navigationContainer,children:[e("span",{className:k.navCounter,children:[J+1," of ",Z.length]}),e("div",{className:k.navButtons,children:[l("button",{onClick:()=>{J>0&&K(e=>e-1)},className:k.navButton,disabled:ie,children:l(w,{size:20,className:k.navIcon})}),l("button",{onClick:()=>{J<Z.length-1&&K(e=>e+1)},className:k.navButton,disabled:ae,children:l(N,{size:20,className:k.navIcon})})]})]})})})}),G.map((e,t)=>{console.log("UserStoryCardWrapper: userstory",e);const i=ne(h,!0);return l(se,{isUserStoryCurrentlyUpdated:d,artifactId:u,artifactTitleId:o[t]||"",expandedSubFeatures:n,currentUserStory:e,onUserStoryChange:e=>{H(l=>(l[t]=e,[...l]))},parentIndex:"",currentIndex:`${t+1}`,doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:a,updateUserStoryArtifact:r,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:h,_resolvedConfig:i,showWrapper:y,defaultExpanded:E,actionItemsConfig:g,contextVariant:f,showDisplayName:S,allowTitleEdit:C,showConfidenceScore:I,showBorderTop:b,sectionStatusConfig:ee,showCompletionPanel:D,completionPanelConfig:B,showAddSectionButton:x,disableEditPlan:A,useMuiTooltip:T,approveButtonConfig:U,CDNeededInChip:R,editButtonConfig:P,storyNumber:e.storyNumber,blockNumber:e.blockNumber,onUserStoryAccordionStateChange:j,showSuggestedFilesInfo:O,suggestedFilesConfig:V,showWaitingIconInChip:L,showAssignSection:F,disableAssignSection:$,onAssignSectionClick:W,onSave:M},e.artifactId)})]})};export{se as StoryCard,ae as UserStoryCardWrapper,se as default,oe as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",actionItemBtn:"UserStoryCard-module_actionItemBtn__3jocB",menuItemIcon:"UserStoryCard-module_menuItemIcon__BxrJU",menuItemRight:"UserStoryCard-module_menuItemRight__Cjw2j",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT",storyTitleWrapper:"UserStoryCard-module_storyTitleWrapper__Ng-Th",titleEditButton:"UserStoryCard-module_titleEditButton__iJADR",inlineTitleEditor:"UserStoryCard-module_inlineTitleEditor__rdF-w",inlineTitleInput:"UserStoryCard-module_inlineTitleInput__Ft6mB",inlineTitleConfirm:"UserStoryCard-module_inlineTitleConfirm__YTG-3",inlineTitleCancel:"UserStoryCard-module_inlineTitleCancel__clhBR",addSectionButton:"UserStoryCard-module_addSectionButton__lBCWj",addSectionLabel:"UserStoryCard-module_addSectionLabel__kUs2E",viewStatusButton:"UserStoryCard-module_viewStatusButton__4-ISq",statusContainer:"UserStoryCard-module_statusContainer__Blr6F",completedBadge:"UserStoryCard-module_completedBadge__BURPe",statusButton:"UserStoryCard-module_statusButton__zeFUj",statusWaiting:"UserStoryCard-module_statusWaiting__mTSf-",statusInProgress:"UserStoryCard-module_statusInProgress__OsBoU",statusSuccess:"UserStoryCard-module_statusSuccess__ufhqE",loadingContainer:"UserStoryCard-module_loadingContainer__uPfG-",loadingIconWrapper:"UserStoryCard-module_loadingIconWrapper__5eUX7",loadingTitle:"UserStoryCard-module_loadingTitle__MHwmb",loadingSubtitle:"UserStoryCard-module_loadingSubtitle__PKUur",noDataContainer:"UserStoryCard-module_noDataContainer__Rys9X",noDataIllustration:"UserStoryCard-module_noDataIllustration__BoSPy",noDataTitle:"UserStoryCard-module_noDataTitle__DKazv",noDataSubtitle:"UserStoryCard-module_noDataSubtitle__ME3eH",actionButtonsContainer:"UserStoryCard-module_actionButtonsContainer__NHzMr",actionButton:"UserStoryCard-module_actionButton__7vOMo",actionButtonDivider:"UserStoryCard-module_actionButtonDivider__cIsYR",actionButtonSpinner:"UserStoryCard-module_actionButtonSpinner__25ejV"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;margin-left:.5rem;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_iconButton__DkfRA:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_actionItemBtn__3jocB{font-size:18px;line-height:0}.UserStoryCard-module_menuItemIcon__BxrJU{align-items:center;display:inline-flex;margin-right:.5rem}.UserStoryCard-module_menuItemRight__Cjw2j{align-self:center;border-radius:50%;height:8px;margin-left:auto;width:8px}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_storyTitleWrapper__Ng-Th{align-items:center;display:flex;gap:6px;min-width:0}.UserStoryCard-module_titleEditButton__iJADR{align-items:center;background:#0000;border:none;border-radius:4px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;opacity:1;padding:3px;transition:opacity .15s ease,background .15s ease,color .15s ease}.UserStoryCard-module_titleEditButton__iJADR:hover{background:var(--color-surface-hover,#f3f4f6);color:var(--color-primary,#4f46e5);opacity:1}.UserStoryCard-module_titleEditButton__iJADR:focus-visible{opacity:1;outline:2px solid var(--color-primary,#4f46e5);outline-offset:1px}.UserStoryCard-module_inlineTitleEditor__rdF-w{align-items:center;display:flex;flex:1;gap:4px;min-width:0}.UserStoryCard-module_inlineTitleInput__Ft6mB{background:var(--color-surface,#fff);border:1.5px solid var(--color-primary,#4f46e5);border-radius:5px;color:var(--color-text-primary,#111827);flex:1;font-size:inherit;font-weight:600;line-height:1.4;min-width:0;outline:none;padding:3px 8px;transition:border-color .15s ease,box-shadow .15s ease}.UserStoryCard-module_inlineTitleInput__Ft6mB:focus{border-color:var(--color-primary,#4f46e5);box-shadow:0 0 0 3px #4f46e526}.UserStoryCard-module_inlineTitleConfirm__YTG-3{align-items:center;background:var(--color-primary,#4f46e5);border:none;border-radius:5px;color:#fff;cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,transform .1s ease;width:26px}.UserStoryCard-module_inlineTitleConfirm__YTG-3:hover:not(:disabled){background:var(--color-primary-dark,#4338ca)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:active:not(:disabled){transform:scale(.93)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:disabled{cursor:not-allowed;opacity:.45}.UserStoryCard-module_inlineTitleConfirm__YTG-3:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_inlineTitleCancel__clhBR{align-items:center;background:#0000;border:1.5px solid var(--color-border,#e5e7eb);border-radius:5px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,color .15s ease,border-color .15s ease;width:26px}.UserStoryCard-module_inlineTitleCancel__clhBR:hover{background:var(--color-surface-hover,#f3f4f6);border-color:var(--color-danger,#ef4444);color:var(--color-danger,#ef4444)}.UserStoryCard-module_inlineTitleCancel__clhBR:focus-visible{outline:2px solid var(--color-danger,#ef4444);outline-offset:2px}.UserStoryCard-module_addSectionButton__lBCWj{align-items:center;background:#0000;border:1.5px dashed var(--color-border,#d1d5db);border-radius:6px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:500;gap:5px;padding:6px 10px;transition:border-color .15s ease,color .15s ease,background .15s ease;white-space:nowrap}.UserStoryCard-module_addSectionButton__lBCWj:hover{background:var(--color-primary-subtle,#4f46e50d);border-color:var(--color-primary,#4f46e5);color:var(--color-primary,#4f46e5)}.UserStoryCard-module_addSectionButton__lBCWj:active{transform:scale(.97)}.UserStoryCard-module_addSectionButton__lBCWj:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_addSectionLabel__kUs2E{display:inline}.UserStoryCard-module_viewStatusButton__4-ISq{background:#0000;border:1px solid #5b3df5;border-radius:12px;color:#5b3df5;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:all .2s ease}.UserStoryCard-module_viewStatusButton__4-ISq:hover{background:#5b3df5;color:#fff}.UserStoryCard-module_viewStatusButton__4-ISq:active{transform:scale(.98)}.UserStoryCard-module_statusContainer__Blr6F{align-items:center;display:flex;gap:8px;margin-left:auto;margin-right:12px}.UserStoryCard-module_completedBadge__BURPe{background:#f3f4f6;border-radius:8px;color:#374151;font-size:12px;font-weight:600;padding:4px 10px;white-space:nowrap}.UserStoryCard-module_statusButton__zeFUj{align-items:center;border:none;border-radius:5px;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:600;gap:5px;padding:4px 8px;transition:all .2s ease}.UserStoryCard-module_statusWaiting__mTSf-{background:#fef3c7;color:#b45309}.UserStoryCard-module_statusInProgress__OsBoU{background:#ede9fe;color:#6d28d9}.UserStoryCard-module_statusSuccess__ufhqE{background:#dcfce7;color:#15803d}.UserStoryCard-module_loadingContainer__uPfG-{align-items:center;display:flex;flex-direction:column;gap:16px;justify-content:center;min-height:240px;padding:48px 24px;text-align:center}.UserStoryCard-module_loadingIconWrapper__5eUX7{align-items:center;background:#f4f1ff;border-radius:50%;display:flex;height:64px;justify-content:center;width:64px}.UserStoryCard-module_loadingTitle__MHwmb{color:#0f172a;font-size:18px;font-weight:600;margin:0}.UserStoryCard-module_loadingSubtitle__PKUur{color:#64748b;font-size:16px;margin-top:8px}.UserStoryCard-module_noDataContainer__Rys9X{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:24px;text-align:center}.UserStoryCard-module_noDataIllustration__BoSPy{height:auto;margin-bottom:12px;width:88px}.UserStoryCard-module_noDataTitle__DKazv{color:#111827;font-size:18px;font-weight:600;line-height:26px;margin:0 0 6px}.UserStoryCard-module_noDataSubtitle__ME3eH{color:#6b7280;font-size:14px;line-height:20px;margin:0;max-width:520px}.UserStoryCard-module_actionButtonsContainer__NHzMr{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:20px;padding-bottom:12px;width:100%}.UserStoryCard-module_actionButton__7vOMo{align-items:center;background:#0000;border:none;color:#5b3df5;cursor:pointer;display:inline-flex;font-size:16px;font-weight:600;gap:6px;justify-content:center;line-height:24px;padding:0;transition:opacity .2s ease;white-space:nowrap}.UserStoryCard-module_actionButtonDivider__cIsYR{background-color:#d0d5dd;flex-shrink:0;height:20px;width:1px}.UserStoryCard-module_actionButton__7vOMo:hover:not(:disabled){opacity:.8}.UserStoryCard-module_actionButton__7vOMo:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_actionButtonSpinner__25ejV{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",actionItemBtn:"UserStoryCard-module_actionItemBtn__3jocB",menuItemIcon:"UserStoryCard-module_menuItemIcon__BxrJU",menuItemRight:"UserStoryCard-module_menuItemRight__Cjw2j",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E",progressHeader:"UserStoryCard-module_progressHeader__LBMsg",progressPercentage:"UserStoryCard-module_progressPercentage__brScW",gapBox:"UserStoryCard-module_gapBox__LkEiT",storyTitleWrapper:"UserStoryCard-module_storyTitleWrapper__Ng-Th",titleEditButton:"UserStoryCard-module_titleEditButton__iJADR",inlineTitleEditor:"UserStoryCard-module_inlineTitleEditor__rdF-w",inlineTitleInput:"UserStoryCard-module_inlineTitleInput__Ft6mB",inlineTitleConfirm:"UserStoryCard-module_inlineTitleConfirm__YTG-3",inlineTitleCancel:"UserStoryCard-module_inlineTitleCancel__clhBR",addSectionButton:"UserStoryCard-module_addSectionButton__lBCWj",addSectionLabel:"UserStoryCard-module_addSectionLabel__kUs2E",viewStatusButton:"UserStoryCard-module_viewStatusButton__4-ISq",statusContainer:"UserStoryCard-module_statusContainer__Blr6F",completedBadge:"UserStoryCard-module_completedBadge__BURPe",statusButton:"UserStoryCard-module_statusButton__zeFUj",statusWaiting:"UserStoryCard-module_statusWaiting__mTSf-",statusInProgress:"UserStoryCard-module_statusInProgress__OsBoU",statusSuccess:"UserStoryCard-module_statusSuccess__ufhqE",loadingContainer:"UserStoryCard-module_loadingContainer__uPfG-",loadingIconWrapper:"UserStoryCard-module_loadingIconWrapper__5eUX7",loadingTitle:"UserStoryCard-module_loadingTitle__MHwmb",loadingSubtitle:"UserStoryCard-module_loadingSubtitle__PKUur",noDataContainer:"UserStoryCard-module_noDataContainer__Rys9X",noDataIllustration:"UserStoryCard-module_noDataIllustration__BoSPy",noDataTitle:"UserStoryCard-module_noDataTitle__DKazv",noDataSubtitle:"UserStoryCard-module_noDataSubtitle__ME3eH",actionButtonsContainer:"UserStoryCard-module_actionButtonsContainer__NHzMr",actionButton:"UserStoryCard-module_actionButton__7vOMo",actionButtonDivider:"UserStoryCard-module_actionButtonDivider__cIsYR",actionButtonSpinner:"UserStoryCard-module_actionButtonSpinner__25ejV",suggestedFilesTooltip:"UserStoryCard-module_suggestedFilesTooltip__PQyk-",suggestedFilesArrow:"UserStoryCard-module_suggestedFilesArrow__dLsjL",suggestedFilesHeader:"UserStoryCard-module_suggestedFilesHeader__O335T",suggestedFilesList:"UserStoryCard-module_suggestedFilesList__Tz2gF",suggestedFilesListItem:"UserStoryCard-module_suggestedFilesListItem__RJJAz",suggestedFilesInfoIcon:"UserStoryCard-module_suggestedFilesInfoIcon__Qf75h"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;margin-left:.5rem;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_iconButton__DkfRA:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_actionItemBtn__3jocB{font-size:18px;line-height:0}.UserStoryCard-module_menuItemIcon__BxrJU{align-items:center;display:inline-flex;margin-right:.5rem}.UserStoryCard-module_menuItemRight__Cjw2j{align-self:center;border-radius:50%;height:8px;margin-left:auto;width:8px}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}.UserStoryCard-module_progressHeader__LBMsg{align-items:center;display:flex;gap:8px}.UserStoryCard-module_progressPercentage__brScW{background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_gapBox__LkEiT{background:#fff7e6;border:1px solid #f7d58d;border-radius:8px;color:#b26b00;font-size:14px;font-weight:500;padding:4px 10px}.UserStoryCard-module_storyTitleWrapper__Ng-Th{align-items:center;display:flex;gap:6px;min-width:0}.UserStoryCard-module_titleEditButton__iJADR{align-items:center;background:#0000;border:none;border-radius:4px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;opacity:1;padding:3px;transition:opacity .15s ease,background .15s ease,color .15s ease}.UserStoryCard-module_titleEditButton__iJADR:hover{background:var(--color-surface-hover,#f3f4f6);color:var(--color-primary,#4f46e5);opacity:1}.UserStoryCard-module_titleEditButton__iJADR:focus-visible{opacity:1;outline:2px solid var(--color-primary,#4f46e5);outline-offset:1px}.UserStoryCard-module_inlineTitleEditor__rdF-w{align-items:center;display:flex;flex:1;gap:4px;min-width:0}.UserStoryCard-module_inlineTitleInput__Ft6mB{background:var(--color-surface,#fff);border:1.5px solid var(--color-primary,#4f46e5);border-radius:5px;color:var(--color-text-primary,#111827);flex:1;font-size:inherit;font-weight:600;line-height:1.4;min-width:0;outline:none;padding:3px 8px;transition:border-color .15s ease,box-shadow .15s ease}.UserStoryCard-module_inlineTitleInput__Ft6mB:focus{border-color:var(--color-primary,#4f46e5);box-shadow:0 0 0 3px #4f46e526}.UserStoryCard-module_inlineTitleConfirm__YTG-3{align-items:center;background:var(--color-primary,#4f46e5);border:none;border-radius:5px;color:#fff;cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,transform .1s ease;width:26px}.UserStoryCard-module_inlineTitleConfirm__YTG-3:hover:not(:disabled){background:var(--color-primary-dark,#4338ca)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:active:not(:disabled){transform:scale(.93)}.UserStoryCard-module_inlineTitleConfirm__YTG-3:disabled{cursor:not-allowed;opacity:.45}.UserStoryCard-module_inlineTitleConfirm__YTG-3:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_inlineTitleCancel__clhBR{align-items:center;background:#0000;border:1.5px solid var(--color-border,#e5e7eb);border-radius:5px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;height:26px;justify-content:center;transition:background .15s ease,color .15s ease,border-color .15s ease;width:26px}.UserStoryCard-module_inlineTitleCancel__clhBR:hover{background:var(--color-surface-hover,#f3f4f6);border-color:var(--color-danger,#ef4444);color:var(--color-danger,#ef4444)}.UserStoryCard-module_inlineTitleCancel__clhBR:focus-visible{outline:2px solid var(--color-danger,#ef4444);outline-offset:2px}.UserStoryCard-module_addSectionButton__lBCWj{align-items:center;background:#0000;border:1.5px dashed var(--color-border,#d1d5db);border-radius:6px;color:var(--color-text-secondary,#6b7280);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:500;gap:5px;padding:6px 10px;transition:border-color .15s ease,color .15s ease,background .15s ease;white-space:nowrap}.UserStoryCard-module_addSectionButton__lBCWj:hover{background:var(--color-primary-subtle,#4f46e50d);border-color:var(--color-primary,#4f46e5);color:var(--color-primary,#4f46e5)}.UserStoryCard-module_addSectionButton__lBCWj:active{transform:scale(.97)}.UserStoryCard-module_addSectionButton__lBCWj:focus-visible{outline:2px solid var(--color-primary,#4f46e5);outline-offset:2px}.UserStoryCard-module_addSectionLabel__kUs2E{display:inline}.UserStoryCard-module_viewStatusButton__4-ISq{background:#0000;border:1px solid #5b3df5;border-radius:12px;color:#5b3df5;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:all .2s ease}.UserStoryCard-module_viewStatusButton__4-ISq:hover{background:#5b3df5;color:#fff}.UserStoryCard-module_viewStatusButton__4-ISq:active{transform:scale(.98)}.UserStoryCard-module_statusContainer__Blr6F{align-items:center;display:flex;gap:8px;margin-left:auto;margin-right:12px}.UserStoryCard-module_completedBadge__BURPe{background:#f3f4f6;border-radius:8px;color:#374151;font-size:12px;font-weight:600;padding:4px 10px;white-space:nowrap}.UserStoryCard-module_statusButton__zeFUj{align-items:center;border:none;border-radius:5px;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:600;gap:5px;padding:4px 8px;transition:all .2s ease}.UserStoryCard-module_statusWaiting__mTSf-{background:#fef3c7;color:#b45309}.UserStoryCard-module_statusInProgress__OsBoU{background:#ede9fe;color:#6d28d9}.UserStoryCard-module_statusSuccess__ufhqE{background:#dcfce7;color:#15803d}.UserStoryCard-module_loadingContainer__uPfG-{align-items:center;display:flex;flex-direction:column;gap:16px;justify-content:center;min-height:240px;padding:48px 24px;text-align:center}.UserStoryCard-module_loadingIconWrapper__5eUX7{align-items:center;background:#f4f1ff;border-radius:50%;display:flex;height:64px;justify-content:center;width:64px}.UserStoryCard-module_loadingTitle__MHwmb{color:#0f172a;font-size:18px;font-weight:600;margin:0}.UserStoryCard-module_loadingSubtitle__PKUur{color:#64748b;font-size:16px;margin-top:8px}.UserStoryCard-module_noDataContainer__Rys9X{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:24px;text-align:center}.UserStoryCard-module_noDataIllustration__BoSPy{height:auto;margin-bottom:12px;width:88px}.UserStoryCard-module_noDataTitle__DKazv{color:#111827;font-size:18px;font-weight:600;line-height:26px;margin:0 0 6px}.UserStoryCard-module_noDataSubtitle__ME3eH{color:#6b7280;font-size:14px;line-height:20px;margin:0;max-width:520px}.UserStoryCard-module_actionButtonsContainer__NHzMr{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:20px;padding-bottom:12px;width:100%}.UserStoryCard-module_actionButton__7vOMo{align-items:center;background:#0000;border:none;color:#5b3df5;cursor:pointer;display:inline-flex;font-size:16px;font-weight:600;gap:6px;justify-content:center;line-height:24px;padding:0;transition:opacity .2s ease;white-space:nowrap}.UserStoryCard-module_actionButtonDivider__cIsYR{background-color:#d0d5dd;flex-shrink:0;height:20px;width:1px}.UserStoryCard-module_actionButton__7vOMo:hover:not(:disabled){opacity:.8}.UserStoryCard-module_actionButton__7vOMo:disabled{cursor:not-allowed;opacity:.5}.UserStoryCard-module_actionButtonSpinner__25ejV{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_suggestedFilesTooltip__PQyk-{background-color:#334155;border-radius:8px;box-shadow:0 8px 24px #00000040;color:#fff;max-width:320px;padding:0}.UserStoryCard-module_suggestedFilesArrow__dLsjL{color:#334155}.UserStoryCard-module_suggestedFilesHeader__O335T{border-bottom:1px solid #ffffff26;color:#fff;font-size:15px;font-weight:700;padding:12px 14px 10px}.UserStoryCard-module_suggestedFilesList__Tz2gF{list-style:none;margin:0;max-height:180px;overflow-y:auto;padding:8px 14px 10px}.UserStoryCard-module_suggestedFilesListItem__RJJAz{color:#cbd5e1;font-size:14px;padding:6px 0}.UserStoryCard-module_suggestedFilesInfoIcon__Qf75h{color:#94a3b8;cursor:pointer;margin-left:4px}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar{width:6px}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar-track{background:#0000}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar-thumb{background-color:#ffffff4d;border-radius:3px}.UserStoryCard-module_suggestedFilesList__Tz2gF::-webkit-scrollbar-thumb:hover{background-color:#ffffff73}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=UserStoryCard.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{useRef as e}from"react";import{processAIReasoningFromBlocks as i}from"../utils/proccess-stream.utils.js";function t({setUserStory:t,setAiReasoning:o,setUserStoryCitations:n,onStreamingCompleted:r,isGraphQLCallInProgress:s,knowledgeBase:a,projectAnalyserSummary:u,dataSourceFiles:l,aiReasoning:c,setRedisValue:d,fetchCitationByBlock:p}){const _=e(new Set),m=e(new Set),g=e(null),b=e(null),v=e({gap_items_prompt:"",risk_items_prompt:""}),f=e(new Set);async function h(e,i,t){var a,u;let l="",c="";try{const r=await p(e,t,i);o(e=>{var i;const t=[...e];return null===(i=r.response.ai_reasonings)||void 0===i||i.forEach(e=>{const i=t.findIndex(i=>i.id===e.id);-1!==i&&e.gap.length>0&&e.reason.length>0&&(t[i]={...e})}),t}),l=(null===(a=r.response)||void 0===a?void 0:a.gap_items_prompt)||"",c=(null===(u=r.response)||void 0===u?void 0:u.risk_items_prompt)||"",(l||c)&&(v.current={gap_items_prompt:l,risk_items_prompt:c}),n(e=>{var i,t,o,n,s,a,u,l,c,d,p,_,m,g;return{...e,appmod_citations:[...null!==(i=e.appmod_citations)&&void 0!==i?i:[],...null!==(t=r.response.appmod_citations)&&void 0!==t?t:[]],audio_citations:[...null!==(o=e.audio_citations)&&void 0!==o?o:[],...null!==(n=r.response.audio_citations)&&void 0!==n?n:[]],file_citations:[...null!==(s=e.file_citations)&&void 0!==s?s:[],...null!==(a=r.response.file_citations)&&void 0!==a?a:[]],image_citations:[...null!==(u=e.image_citations)&&void 0!==u?u:[],...null!==(l=r.response.image_citations)&&void 0!==l?l:[]],rca_citations:[...null!==(c=e.rca_citations)&&void 0!==c?c:[],...null!==(d=r.response.rca_citations)&&void 0!==d?d:[]],web_citations:[...null!==(p=e.web_citations)&&void 0!==p?p:[],...null!==(_=r.response.web_citations)&&void 0!==_?_:[]],readfile_citations:[...null!==(m=e.readfile_citations)&&void 0!==m?m:[],...null!==(g=r.response.readfile_citations)&&void 0!==g?g:[]]}})}catch(i){console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",e.storyNumber,e.blockNumber,i)}finally{let i=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}`;if(m.current.add(i),m.current.size===_.current.size&&!s.current){const e=l||v.current.gap_items_prompt,i=c||v.current.risk_items_prompt;await r(e,i),_.current.clear(),m.current.clear(),g.current=null,b.current=null,v.current={gap_items_prompt:"",risk_items_prompt:""},f.current.clear()}}}return{processStreamContent:function(e,r,s){try{const p=JSON.stringify(e);if(b.current===p)return;b.current=p;let m=[],v=[];e=e.map(e=>{var t;const o=`${(e={...e,subBlockNumber:null!==(t=e.subBlockNumber)&&void 0!==t?t:"1"}).storyNumber}-${e.blockNumber}-${e.subBlockNumber}`;if(f.current.has(o))return null;f.current.add(o);let{outputText:s,reasonings:a,gpt_citation:u,processedDescription:l}=i(e.value,e.blockNumber,e.storyNumber,e.description);n(e=>{var i;return u.length>0&&((null==e?void 0:e.gpt_citations)||(e.gpt_citations=[]),null===(i=e.gpt_citations)||void 0===i||i.push(...u)),{...e}}),m.push(...a),v.push([...a]);let c=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}<SUB_BLOCK>${e.subBlockNumber}`;return _.current.has(c)||(h({...e,value:s,description:l},a,r),_.current.add(c)),{...e,value:s,description:l}}).filter(Boolean),m.forEach(e=>{o(i=>(i.find(i=>i.id===e.id)||i.push(e),[...i]))}),e.length>0&&e.map(({title:e,section:i,value:o,storyNumber:n,description:r,blockNumber:p,big_enough:_,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h},N)=>{t(t=>{var y,k,S,B,R,$,w,C;const O=t.findIndex(e=>e.storyNumber===n);if("intro"===i)-1===O?t.push({artifactId:`STORY-${n}-${p}`,title:e,value:o,description:r,storyNumber:n,sub_features:[],section:i,blockNumber:p,aiReasoning:v[N],big_enough:_,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h}):(t[O].value+=o,t[O].aiReasoning=t[O].aiReasoning||[],null===(k=null===(y=t[O])||void 0===y?void 0:y.aiReasoning)||void 0===k||k.push(...v[N]),t[O].big_enough=_,t[O].big_enough_decision_factors=m,t[O].gapValue=b,t[O].confidenceScore=f,t[O].metadata=h);else{t[O].sub_features||(t[O].sub_features=[]);const r=(null===(B=null===(S=t[O])||void 0===S?void 0:S.sub_features)||void 0===B?void 0:B.findIndex(e=>e.blockNumber===p))||-1;if(-1===r)null===($=null===(R=t[O])||void 0===R?void 0:R.sub_features)||void 0===$||$.push({artifactId:`STORY-${n}-${p}`,title:e,value:o,storyNumber:n,blockNumber:p,section:i,aiReasoning:v[N],big_enough:_,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h});else{let e=null===(C=null===(w=null==t?void 0:t[O])||void 0===w?void 0:w.sub_features)||void 0===C?void 0:C[r];e.value=(e.value||"")+o,e.aiReasoning=e.aiReasoning||[],e.aiReasoning.push(...v[N]),e.big_enough=_,e.big_enough_decision_factors=m,e.gapValue=b,e.confidenceScore=f,e.metadata=h}}const E=JSON.stringify(t);return g.current!==E&&(d({key:`streaming-redis-key-${s}`,value:{mmvf_list:t,knowledgeBase:a,projectAnalyserSummary:u,dataSources_files:l,ai_reasonings:c}}),g.current=E),[...t]})})}catch(e){console.error("Error in processing Stream Content",e)}}}}export{t as useStreamContentHandler};
1
+ import{useState as e,useRef as i,useEffect as t}from"react";import{processAIReasoningFromBlocks as o}from"../utils/proccess-stream.utils.js";function n({setUserStory:n,setAiReasoning:r,setUserStoryCitations:s,onStreamingCompleted:a,isGraphQLCallInProgress:l,knowledgeBase:u,projectAnalyserSummary:c,dataSourceFiles:d,aiReasoning:p,setRedisValue:_,fetchCitationByBlock:m}){const[g,b]=e({finalGap:"",finalRisk:"",status:"in-progress"}),f=i(new Set),v=i(new Set),h=i(null),k=i(null),N=i({gap_items_prompt:"",risk_items_prompt:""}),y=i(new Set);return t(()=>{"complete"!==g.status||l||(a(g.finalGap,g.finalRisk),f.current.clear(),v.current.clear(),h.current=null,k.current=null,N.current={gap_items_prompt:"",risk_items_prompt:""},y.current.clear(),b({finalGap:"",finalRisk:"",status:"in-progress"}))},[g,l]),{processStreamContent:function(e,i,t){try{const a=JSON.stringify(e);if(k.current===a)return;k.current=a;let l=[],g=[];e=e.map(e=>{var t;const n=`${(e={...e,subBlockNumber:null!==(t=e.subBlockNumber)&&void 0!==t?t:"1"}).storyNumber}-${e.blockNumber}-${e.subBlockNumber}`;if(y.current.has(n))return null;y.current.add(n);let{outputText:a,reasonings:u,gpt_citation:c,processedDescription:d}=o(e.value,e.blockNumber,e.storyNumber,e.description);s(e=>{var i;return c.length>0&&((null==e?void 0:e.gpt_citations)||(e.gpt_citations=[]),null===(i=e.gpt_citations)||void 0===i||i.push(...c)),{...e}}),l.push(...u),g.push([...u]);let p=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}<SUB_BLOCK>${e.subBlockNumber}`;return f.current.has(p)||(!async function(e,i,t){var o,n;let a="",l="";try{const u=await m(e,t,i);r(e=>{var i;const t=[...e];return null===(i=u.response.ai_reasonings)||void 0===i||i.forEach(e=>{const i=t.findIndex(i=>i.id===e.id);-1!==i&&e.gap.length>0&&e.reason.length>0&&(t[i]={...e})}),t}),a=(null===(o=u.response)||void 0===o?void 0:o.gap_items_prompt)||"",l=(null===(n=u.response)||void 0===n?void 0:n.risk_items_prompt)||"",(a||l)&&(N.current={gap_items_prompt:a,risk_items_prompt:l}),s(e=>{var i,t,o,n,r,s,a,l,c,d,p,_,m,g;return{...e,appmod_citations:[...null!==(i=e.appmod_citations)&&void 0!==i?i:[],...null!==(t=u.response.appmod_citations)&&void 0!==t?t:[]],audio_citations:[...null!==(o=e.audio_citations)&&void 0!==o?o:[],...null!==(n=u.response.audio_citations)&&void 0!==n?n:[]],file_citations:[...null!==(r=e.file_citations)&&void 0!==r?r:[],...null!==(s=u.response.file_citations)&&void 0!==s?s:[]],image_citations:[...null!==(a=e.image_citations)&&void 0!==a?a:[],...null!==(l=u.response.image_citations)&&void 0!==l?l:[]],rca_citations:[...null!==(c=e.rca_citations)&&void 0!==c?c:[],...null!==(d=u.response.rca_citations)&&void 0!==d?d:[]],web_citations:[...null!==(p=e.web_citations)&&void 0!==p?p:[],...null!==(_=u.response.web_citations)&&void 0!==_?_:[]],readfile_citations:[...null!==(m=e.readfile_citations)&&void 0!==m?m:[],...null!==(g=u.response.readfile_citations)&&void 0!==g?g:[]]}})}catch(i){console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",e.storyNumber,e.blockNumber,i)}finally{let i=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}`;if(v.current.add(i),v.current.size===f.current.size){const e=a||N.current.gap_items_prompt,i=l||N.current.risk_items_prompt;b({finalGap:e,finalRisk:i,status:"complete"})}}}({...e,value:a,description:d},u,i),f.current.add(p)),{...e,value:a,description:d}}).filter(Boolean),l.forEach(e=>{r(i=>(i.find(i=>i.id===e.id)||i.push(e),[...i]))}),e.length>0&&e.map(({title:e,section:i,value:o,storyNumber:r,description:s,blockNumber:a,big_enough:l,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:v},k)=>{n(n=>{var N,y,S,R,B,$,C,w;const O=n.findIndex(e=>e.storyNumber===r);if("intro"===i)-1===O?n.push({artifactId:`STORY-${r}-${a}`,title:e,value:o,description:s,storyNumber:r,sub_features:[],section:i,blockNumber:a,aiReasoning:g[k],big_enough:l,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:v}):(n[O].value+=o,n[O].aiReasoning=n[O].aiReasoning||[],null===(y=null===(N=n[O])||void 0===N?void 0:N.aiReasoning)||void 0===y||y.push(...g[k]),n[O].big_enough=l,n[O].big_enough_decision_factors=m,n[O].gapValue=b,n[O].confidenceScore=f,n[O].metadata=v);else{n[O].sub_features||(n[O].sub_features=[]);const t=(null===(R=null===(S=n[O])||void 0===S?void 0:S.sub_features)||void 0===R?void 0:R.findIndex(e=>e.blockNumber===a))||-1;if(-1===t)null===($=null===(B=n[O])||void 0===B?void 0:B.sub_features)||void 0===$||$.push({artifactId:`STORY-${r}-${a}`,title:e,value:o,storyNumber:r,blockNumber:a,section:i,aiReasoning:g[k],big_enough:l,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:v});else{let e=null===(w=null===(C=null==n?void 0:n[O])||void 0===C?void 0:C.sub_features)||void 0===w?void 0:w[t];e.value=(e.value||"")+o,e.aiReasoning=e.aiReasoning||[],e.aiReasoning.push(...g[k]),e.big_enough=l,e.big_enough_decision_factors=m,e.gapValue=b,e.confidenceScore=f,e.metadata=v}}const E=JSON.stringify(n);return h.current!==E&&(_({key:`streaming-redis-key-${t}`,value:{mmvf_list:n,knowledgeBase:u,projectAnalyserSummary:c,dataSources_files:d,ai_reasonings:p}}),h.current=E),[...n]})})}catch(e){console.error("Error in processing Stream Content",e)}}}}export{n as useStreamContentHandler};
2
2
  //# sourceMappingURL=useStreamContentHandler.js.map
@@ -330,6 +330,14 @@ export interface RequirementAICustomStyles {
330
330
  editIcon?: React.CSSProperties;
331
331
  cancelIcon?: React.CSSProperties;
332
332
  };
333
+ suggestedFilesStyles?: {
334
+ tooltip?: React.CSSProperties;
335
+ arrow?: React.CSSProperties;
336
+ header?: React.CSSProperties;
337
+ list?: React.CSSProperties;
338
+ listItem?: React.CSSProperties;
339
+ infoIcon?: React.CSSProperties;
340
+ };
333
341
  };
334
342
  gapSidebar?: GapSidebarCustomStyles;
335
343
  PartialRequirementContentStyles?: {
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EACl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EAAE,CACP,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,iBAAiB,KACrB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAE1B,CAAC;IACF,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,0BAA0B,CAAC,EAAE,2BAA2B,CAAC;CAC1D;AAID,eAAO,MAAM,SAAS,mBAAmB,CAAA;AAEzC,QAAA,MAAM,oBAAoB,ohBA6BvB,yBAAyB,4CAkG3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAElI,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACtH,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC7G,OAAO,EAAE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I,CAAC,GAAG,IAAI,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAE1B,CAAC;IACF,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,0BAA0B,CAAC,EAAE,2BAA2B,CAAC;CAC1D;AAID,eAAO,MAAM,SAAS,mBAAmB,CAAA;AAEzC,QAAA,MAAM,oBAAoB,ohBA6BvB,yBAAyB,4CAkG3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -43,6 +43,11 @@ export interface ActionItem {
43
43
  export interface ActionItemsConfig {
44
44
  items: ActionItem[];
45
45
  }
46
+ export interface SuggestedFilesConfig {
47
+ title?: string;
48
+ files: string[];
49
+ isLoading?: boolean;
50
+ }
46
51
  interface StoryCardProps {
47
52
  isUserStoryCurrentlyUpdated?: boolean;
48
53
  artifactId: string;
@@ -91,10 +96,12 @@ interface StoryCardProps {
91
96
  onAssignSectionClick?: (section: IUserStory) => void;
92
97
  onSave?: UserStoryOnSave;
93
98
  onUserStoryAccordionStateChange?: (userStoryItem: IUserStory, updatedState: boolean) => void;
99
+ showSuggestedFilesInfo?: boolean;
100
+ suggestedFilesConfig?: SuggestedFilesConfig;
94
101
  }
95
102
  export declare function replaceLearnedTagsWithInfo(content: string): React.ReactNode[];
96
103
  type UserStoryOnSave = (content: string, storyId: string) => Promise<void>;
97
- export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, defaultExpanded, actionItemsConfig, onDelete, contextVariant, expandedSubFeatures, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop, sectionStatusConfig, showCompletionPanel, completionPanelConfig, showAddSectionButton, disableEditPlan, useMuiTooltip, approveButtonConfig, editButtonConfig, CDNeededInChip, blockNumber, storyNumber, showWaitingIconInChip, showAssignSection, disableAssignSection, onAssignSectionClick, onSave, onUserStoryAccordionStateChange }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
104
+ export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, defaultExpanded, actionItemsConfig, onDelete, contextVariant, expandedSubFeatures, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop, sectionStatusConfig, showCompletionPanel, completionPanelConfig, showAddSectionButton, disableEditPlan, useMuiTooltip, approveButtonConfig, editButtonConfig, CDNeededInChip, blockNumber, storyNumber, showWaitingIconInChip, showAssignSection, disableAssignSection, onAssignSectionClick, onSave, onUserStoryAccordionStateChange, showSuggestedFilesInfo, suggestedFilesConfig, }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
98
105
  interface IProps {
99
106
  isUserStoryCurrentlyUpdated?: boolean;
100
107
  artifactId: string;
@@ -131,7 +138,9 @@ interface IProps {
131
138
  onAssignSectionClick?: (section: IUserStory) => void;
132
139
  onSave?: UserStoryOnSave;
133
140
  onUserStoryAccordionStateChange?: (userStoryItem: IUserStory, isExpanded: boolean) => void;
141
+ showSuggestedFilesInfo?: boolean;
142
+ suggestedFilesConfig?: SuggestedFilesConfig;
134
143
  }
135
- export declare const UserStoryCardWrapper: ({ artifactTitleIDs, expandedSubFeatures, isDiffEditReviewMode, showUserStoryDiff, updateUserStoryArtifact, isUserStoryCurrentlyUpdated, artifactId, handleOpenSendDialog, handleDownloadUserStory, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, showWrapper, actionItemsConfig, contextVariant, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop, defaultExpanded, showCompletionPanel, completionPanelConfig, showAddSectionButton, disableEditPlan, useMuiTooltip, approveButtonConfig, editButtonConfig, CDNeededInChip, showWaitingIconInChip, setRedlineDocumentIdParent, showAssignSection, onAssignSectionClick, disableAssignSection, onSave, onUserStoryAccordionStateChange }: IProps) => import("react/jsx-runtime").JSX.Element;
144
+ export declare const UserStoryCardWrapper: ({ artifactTitleIDs, expandedSubFeatures, isDiffEditReviewMode, showUserStoryDiff, updateUserStoryArtifact, isUserStoryCurrentlyUpdated, artifactId, handleOpenSendDialog, handleDownloadUserStory, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, showWrapper, actionItemsConfig, contextVariant, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop, defaultExpanded, showCompletionPanel, completionPanelConfig, showAddSectionButton, disableEditPlan, useMuiTooltip, approveButtonConfig, editButtonConfig, CDNeededInChip, showWaitingIconInChip, setRedlineDocumentIdParent, showAssignSection, onAssignSectionClick, disableAssignSection, onSave, onUserStoryAccordionStateChange, showSuggestedFilesInfo, suggestedFilesConfig }: IProps) => import("react/jsx-runtime").JSX.Element;
136
145
  export default StoryCard;
137
146
  //# sourceMappingURL=UserStoryCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAmC,MAAM,OAAO,CAAC;AA4BhG,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAMlE,OAAQ,EAA8C,mBAAmB,EAA+B,MAAM,8CAA8C,CAAC;AAC7J,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAgBzE,UAAU,iBAAiB;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO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CAAC;IAC9B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,0BAA0B,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAElD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;IACrD,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,+BAA+B,CAAC,EAAC,CAAC,aAAa,EAAC,UAAU,EAAC,UAAU,EAAC,OAAO,KAAG,IAAI,CAAA;CACvF;AAED,eAAO,MAAM,oBAAoB,usBAAouB,MAAM,4CAwJ1wB,CAAA;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAmC,MAAM,OAAO,CAAC;AA4BhG,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAMlE,OAAQ,EAA8C,mBAAmB,EAA+B,MAAM,8CAA8C,CAAC;AAC7J,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAgBzE,UAAU,iBAAiB;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,sBAAsB,CA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AAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAC,OAAO,CAAC;IACvB,eAAe,CAAC,EAAC,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,0BAA0B,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAElD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;IACrD,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,+BAA+B,CAAC,EAAC,CAAC,aAAa,EAAC,UAAU,EAAC,UAAU,EAAC,OAAO,KAAG,IAAI,CAAA;IACpF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;AAED,eAAO,MAAM,oBAAoB,qvBAAixB,MAAM,4CA0JvzB,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -23,7 +23,7 @@ interface IProps {
23
23
  setAiReasoning: React.Dispatch<React.SetStateAction<TAIReasoning[]>>;
24
24
  setUserStoryCitations: React.Dispatch<React.SetStateAction<UserStoryCitations>>;
25
25
  onStreamingCompleted: (gap_items_prompt?: string, risk_items_prompt?: string) => Promise<void>;
26
- isGraphQLCallInProgress: React.MutableRefObject<boolean>;
26
+ isGraphQLCallInProgress: boolean;
27
27
  knowledgeBase: any;
28
28
  projectAnalyserSummary: any;
29
29
  dataSourceFiles: {
@@ -1 +1 @@
1
- {"version":3,"file":"useStreamContentHandler.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useStreamContentHandler.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAErF,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,GAAG,YAAY,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B,CAAC,EAAE,wBAAwB,CAAC;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF,UAAU,MAAM;IACZ,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACrE,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjE,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IACrE,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAChF,oBAAoB,EAAE,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,uBAAuB,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACzD,aAAa,EAAE,GAAG,CAAC;IACnB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,eAAe,EAAE;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;IACF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,oBAAoB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACjI;AAED,wBAAgB,uBAAuB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,aAAa,EAAE,sBAAsB,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAE,EAAE,MAAM;sCAuE7O,eAAe,EAAE,kBACZ,GAAG,mBACF,MAAM;EAkL9B"}
1
+ {"version":3,"file":"useStreamContentHandler.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/hooks/useStreamContentHandler.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEt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;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;IACF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,oBAAoB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACjI;AAED,wBAAgB,uBAAuB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,aAAa,EAAE,sBAAsB,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAE,EAAE,MAAM;sCAgF7O,eAAe,EAAE,kBACZ,GAAG,mBACF,MAAM;EAkL9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.248",
3
+ "version": "0.0.250",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",