@zeniai/web-components 4.4.70 → 4.4.71-betaAK1

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.
Files changed (30) hide show
  1. package/dist/Editor-D13LiK8V.cjs +269 -0
  2. package/dist/Editor-KtRfSJyD.js +919 -0
  3. package/dist/{SessionTimeoutPopup-D12fxo7a.cjs → SessionTimeoutPopup-JoJimbHb.cjs} +16408 -16947
  4. package/dist/{SessionTimeoutPopup-BKNhya21.js → SessionTimeoutPopup-aNJh0VqE.js} +73179 -74943
  5. package/dist/TaskDescriptionEditor-C_mttT9G.js +700 -0
  6. package/dist/TaskDescriptionEditor-DLuXATNl.cjs +197 -0
  7. package/dist/cockpit.cjs.js +254 -254
  8. package/dist/cockpit.esm.js +1449 -1449
  9. package/dist/index.cjs.js +1 -1
  10. package/dist/index.esm.js +112 -112
  11. package/dist/underline-C1X4r0Bi.js +223 -0
  12. package/dist/underline-CtPZKkkA.cjs +76 -0
  13. package/dist/vendor-@stripe-stripe-js-Bg6HyFI3.cjs +8 -0
  14. package/dist/vendor-@stripe-stripe-js-BmvP0myE.js +108 -0
  15. package/package.json +1 -1
  16. package/dist/assets/illustrative/ai-cfo.svg +0 -13
  17. package/dist/assets/illustrative/rewardsEmailTemplate/business-banking-icon.svg +0 -21
  18. package/dist/assets/illustrative/rewardsEmailTemplate/cards-icon.svg +0 -11
  19. package/dist/assets/interface/ai-icon-color-selected-filled-small.svg +0 -27
  20. package/dist/assets/interface/ai-icon-color-selected-small.svg +0 -20
  21. package/dist/assets/interface/ai-icon-selected-filled-plain.svg +0 -5
  22. package/dist/assets/interface/arrow-2-left.svg +0 -4
  23. package/dist/assets/interface/autofill-3.svg +0 -3
  24. package/dist/assets/interface/graph-trend.svg +0 -11
  25. package/dist/assets/interface/growth-round.svg +0 -5
  26. package/dist/assets/interface/saving-money-egg.svg +0 -15
  27. package/dist/assets/interface/treasury-thumbnail.png +0 -0
  28. package/dist/assets/logos/gmail-logo.svg +0 -20
  29. package/dist/assets/logos/microsoft365-logo.svg +0 -25
  30. package/dist/assets/oldicons/promoPages/usp-line.svg +0 -3
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./SessionTimeoutPopup-D12fxo7a.cjs"),o=require("./vendor-react-CzqSQR9J.cjs"),p=require("react"),s=require("@emotion/styled"),at=require("@liveblocks/react"),Ql=require("@mui/material/Drawer"),J=require("@zeniai/client-epic-state"),hr=require("@liveblocks/react-ui"),Jl=require("./vendor-js-file-download-Cbb6agEb.cjs"),ve=require("@emotion/react"),Ae=require("@mui/material/styles"),Ue=require("./vendor-react-select-DufBhudz.cjs"),ec=require("./vendor-react-lottie-player-Cwb-Xhoz.cjs"),tc=require("@mui/material/Tab"),oc=require("@mui/material/Tabs"),je=require("./vendor-lodash-CNz95YDD.cjs"),wt=require("./vendor-react-virtualized-auto-sizer-DS8s5Nqf.cjs"),kt=require("./vendor-react-window-CuU_qzaW.cjs"),Ft=require("@mui/material/ClickAwayListener"),Le=require("./vendor-react-hook-form-DowHtP8_.cjs"),de=require("./vendor-color-BlJDv7Qx.cjs"),Js=require("@mui/material/Popover"),ja=require("./vendor-react-window-infinite-loader-CdyCIjx6.cjs"),ft=require("./vendor-utils-CN5UYrS0.cjs"),rn=require("react-dom"),Mt=require("@liveblocks/react-ui/primitives"),ba=require("@liveblocks/react/suspense"),Ra=require("@mui/material/Checkbox"),nc=require("@mui/material/Modal"),sc=require("@mui/material/CircularProgress"),ko=require("./vendor-react-circular-progressbar-BnDuoTgW.cjs");function rc(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const ce=rc(p),ic=({inboxNotification:e,onNotificationClick:n})=>{const r=at.useInboxNotificationThread(e.id),i=r.metadata.entityType.split("."),a=r.metadata.isGlobalComment&&i.length===2;return o.jsxRuntimeExports.jsx(ac,{isClickable:a,isUnRead:e.readAt==null,onClick:()=>{n(r.metadata,r.id)},children:o.jsxRuntimeExports.jsx(hr.InboxNotification,{inboxNotification:e,kinds:{thread:c=>o.jsxRuntimeExports.jsx(hr.InboxNotification.Thread,{...c,showRoomName:!0})}})})},ac=s.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./SessionTimeoutPopup-JoJimbHb.cjs"),o=require("./vendor-react-CzqSQR9J.cjs"),p=require("react"),s=require("@emotion/styled"),at=require("@liveblocks/react"),Ql=require("@mui/material/Drawer"),J=require("@zeniai/client-epic-state"),hr=require("@liveblocks/react-ui"),Jl=require("./vendor-js-file-download-Cbb6agEb.cjs"),ve=require("@emotion/react"),Ae=require("@mui/material/styles"),Ue=require("./vendor-react-select-DufBhudz.cjs"),ec=require("./vendor-react-lottie-player-Cwb-Xhoz.cjs"),tc=require("@mui/material/Tab"),oc=require("@mui/material/Tabs"),je=require("./vendor-lodash-CNz95YDD.cjs"),wt=require("./vendor-react-virtualized-auto-sizer-DS8s5Nqf.cjs"),kt=require("./vendor-react-window-CuU_qzaW.cjs"),Ft=require("@mui/material/ClickAwayListener"),Le=require("./vendor-react-hook-form-DowHtP8_.cjs"),de=require("./vendor-color-BlJDv7Qx.cjs"),Js=require("@mui/material/Popover"),ja=require("./vendor-react-window-infinite-loader-CdyCIjx6.cjs"),ft=require("./vendor-utils-CN5UYrS0.cjs"),rn=require("react-dom"),Mt=require("@liveblocks/react-ui/primitives"),ba=require("@liveblocks/react/suspense"),Ra=require("@mui/material/Checkbox"),nc=require("@mui/material/Modal"),sc=require("@mui/material/CircularProgress"),ko=require("./vendor-react-circular-progressbar-BnDuoTgW.cjs");function rc(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const ce=rc(p),ic=({inboxNotification:e,onNotificationClick:n})=>{const r=at.useInboxNotificationThread(e.id),i=r.metadata.entityType.split("."),a=r.metadata.isGlobalComment&&i.length===2;return o.jsxRuntimeExports.jsx(ac,{isClickable:a,isUnRead:e.readAt==null,onClick:()=>{n(r.metadata,r.id)},children:o.jsxRuntimeExports.jsx(hr.InboxNotification,{inboxNotification:e,kinds:{thread:c=>o.jsxRuntimeExports.jsx(hr.InboxNotification.Thread,{...c,showRoomName:!0})}})})},ac=s.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  cursor: ${e=>e.isClickable?"pointer":"initial"};
@@ -4162,16 +4162,16 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4162
4162
  `,t$=s(t.SvgArrowRight)`
4163
4163
  width: ${t.Space.sp4};
4164
4164
  height: ${t.Space.sp4};
4165
- `,zl=p.forwardRef(({highlight:e,auditSummaryData:n,isAuditScoreLoadingCompleted:r,onClickAuditScore:i},a)=>{const c=t.useWindowSizeContext(),l=n.auditSummary,d=!r||n.fetchState==="In-Progress"||n.fetchState==="Not-Started",u=Ae.useTheme();let x;return l.bypassedAuditScore<=50?x=t.Colors.important:l.bypassedAuditScore<=75?x=t.Colors.alert:x=t.Colors.success,o.jsxRuntimeExports.jsx(VR,{ref:a,highlight:e,isAuditScoreLoading:d,onClick:()=>!d&&i(),children:o.jsxRuntimeExports.jsxs(UR,{auditPercentage:l.bypassedAuditScore,children:[o.jsxRuntimeExports.jsxs(HR,{children:[d?o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Standard",start:d}):o.jsxRuntimeExports.jsx(KR,{children:o.jsxRuntimeExports.jsx(ko.CircularProgressbar,{value:l.bypassedAuditScore,text:`${Math.ceil(l.bypassedAuditScore)}%`,strokeWidth:10,styles:ko.buildStyles({rotation:.5,strokeLinecap:"butt",pathColor:x,textColor:u.colors.primary,trailColor:u.colors.grey3,textSize:t.Space.sp4})})}),o.jsxRuntimeExports.jsx(GR,{children:o.jsxRuntimeExports.jsxs(YR,{children:[o.jsxRuntimeExports.jsxs(ZR,{children:[o.jsxRuntimeExports.jsx(qR,{children:d?Qi.monthEndReport.auditScoreSectionLoadingTitle.replace("__date__",J.dateNow().subtract(1,"month").format(WR.MMMMYYYYFormat)):io.headers.auditScore}),d?null:o.jsxRuntimeExports.jsx(XR,{children:l.fixesRequired>0?`${io.strings.openingBrace}${l.fixesRequired} ${l.fixesRequired>1?io.texts.issues:io.texts.issue}${io.strings.closingBrace}`:io.strings.empty})]}),o.jsxRuntimeExports.jsx(QR,{children:o.jsxRuntimeExports.jsx(JR,{children:d?io.texts.thisProcessMayTake23Min:Qi.monthEndReport.auditScoreSectionSubtitle})})]})})]}),d?null:o.jsxRuntimeExports.jsx(e$,{windowSize:c,children:o.jsxRuntimeExports.jsx(t$,{width:t.Space.sp4,height:t.Space.sp4})})]})})});zl.displayName="MonthEndReportAuditSummarySection";const o$=[...J.SUPPORTED_ATTACHMENT_FILE_TYPES],n$=7*1024*100,s$=s.div`
4165
+ `,zl=p.forwardRef(({highlight:e,auditSummaryData:n,isAuditScoreLoadingCompleted:r,onClickAuditScore:i},a)=>{const c=t.useWindowSizeContext(),l=n.auditSummary,d=!r||n.fetchState==="In-Progress"||n.fetchState==="Not-Started",u=Ae.useTheme();let x;return l.bypassedAuditScore<=50?x=t.Colors.important:l.bypassedAuditScore<=75?x=t.Colors.alert:x=t.Colors.success,o.jsxRuntimeExports.jsx(VR,{ref:a,highlight:e,isAuditScoreLoading:d,onClick:()=>!d&&i(),children:o.jsxRuntimeExports.jsxs(UR,{auditPercentage:l.bypassedAuditScore,children:[o.jsxRuntimeExports.jsxs(HR,{children:[d?o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Standard",start:d}):o.jsxRuntimeExports.jsx(KR,{children:o.jsxRuntimeExports.jsx(ko.CircularProgressbar,{value:l.bypassedAuditScore,text:`${Math.ceil(l.bypassedAuditScore)}%`,strokeWidth:10,styles:ko.buildStyles({rotation:.5,strokeLinecap:"butt",pathColor:x,textColor:u.colors.primary,trailColor:u.colors.grey3,textSize:t.Space.sp4})})}),o.jsxRuntimeExports.jsx(GR,{children:o.jsxRuntimeExports.jsxs(YR,{children:[o.jsxRuntimeExports.jsxs(ZR,{children:[o.jsxRuntimeExports.jsx(qR,{children:d?Qi.monthEndReport.auditScoreSectionLoadingTitle.replace("__date__",J.dateNow().subtract(1,"month").format(WR.MMMMYYYYFormat)):io.headers.auditScore}),d?null:o.jsxRuntimeExports.jsx(XR,{children:l.fixesRequired>0?`${io.strings.openingBrace}${l.fixesRequired} ${l.fixesRequired>1?io.texts.issues:io.texts.issue}${io.strings.closingBrace}`:io.strings.empty})]}),o.jsxRuntimeExports.jsx(QR,{children:o.jsxRuntimeExports.jsx(JR,{children:d?io.texts.thisProcessMayTake23Min:Qi.monthEndReport.auditScoreSectionSubtitle})})]})})]}),d?null:o.jsxRuntimeExports.jsx(e$,{windowSize:c,children:o.jsxRuntimeExports.jsx(t$,{width:t.Space.sp4,height:t.Space.sp4})})]})})});zl.displayName="MonthEndReportAuditSummarySection";const o$=p.lazy(()=>Promise.resolve().then(()=>require("./Editor-D13LiK8V.cjs"))),n$=[...J.SUPPORTED_ATTACHMENT_FILE_TYPES],s$=7*1024*100,r$=s.div`
4166
4166
  width: ${t.FORM_MINIMUM_WIDTH}px;
4167
4167
  margin: ${t.Space.sp4} ${t.Space.sp0};
4168
- `,r$=s.div`
4168
+ `,i$=s.div`
4169
4169
  width: ${e=>`${e.availableWidth}px`};
4170
4170
  min-width: auto;
4171
4171
  position: relative;
4172
4172
  height: fit-content;
4173
4173
  min-height: ${t.Space.sp12};
4174
- `,i$=s.div`
4174
+ `,a$=s.div`
4175
4175
  flex-grow: 1;
4176
4176
  overflow: auto;
4177
4177
  min-height: 2em;
@@ -4187,26 +4187,26 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4187
4187
  .attachFileSeparator {
4188
4188
  user-select: none;
4189
4189
  }
4190
- `,a$=s.div`
4190
+ `,l$=s.div`
4191
4191
  display: flex;
4192
4192
  column-gap: ${t.Space.sp2};
4193
4193
  align-items: flex-end;
4194
4194
  margin-top: ${t.Space.sp2};
4195
4195
  margin-bottom: ${t.Space.sp3};
4196
- `,l$=s.div`
4197
- position: relative;
4198
4196
  `,c$=s.div`
4197
+ position: relative;
4198
+ `,d$=s.div`
4199
4199
  display: flex;
4200
4200
  align-items: center;
4201
4201
  justify-content: flex-end;
4202
4202
  column-gap: ${t.Space.sp3};
4203
4203
  margin-bottom: ${t.Space.sp2};
4204
- `,d$=s(t.SmallRegular)`
4204
+ `,p$=s(t.SmallRegular)`
4205
4205
  color: ${e=>e.theme.colors.grey1};
4206
4206
  text-align: right;
4207
4207
  `,Ji=s(t.StandardRegular)`
4208
4208
  position: relative;
4209
- `,p$=s.div`
4209
+ `,u$=s.div`
4210
4210
  .lexicalEditor__nestedListItem {
4211
4211
  list-style-type: none;
4212
4212
  }
@@ -4221,13 +4221,13 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4221
4221
  padding: ${t.Space.sp5};
4222
4222
  color: ${e=>e.theme.colors.champion};
4223
4223
  position: relative;
4224
- `,u$=s.div`
4225
- user-select: text;
4226
4224
  `,m$=s.div`
4225
+ user-select: text;
4226
+ `,x$=s.div`
4227
4227
  position: absolute;
4228
4228
  top: ${t.Space.sp4}; // Attachment icon position from the top
4229
4229
  right: -${t.Space.sp3}; // To show attachment icon on the edge
4230
- `,x$=s.div`
4230
+ `,h$=s.div`
4231
4231
  margin-top: ${t.Space.sp2};
4232
4232
  display: flex;
4233
4233
  flex-direction: column;
@@ -4238,31 +4238,31 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4238
4238
  .toolbar {
4239
4239
  user-select: none;
4240
4240
  }
4241
- `,h$=s(t.SmallRegular)`
4241
+ `,g$=s(t.SmallRegular)`
4242
4242
  color: ${e=>e.theme.colors.grey1};
4243
4243
  user-select: none;
4244
- `,g$=s(t.StandardBold)`
4244
+ `,S$=s(t.StandardBold)`
4245
4245
  color: ${e=>e.theme.colors.champion};
4246
- `,S$=s.div`
4246
+ `,y$=s.div`
4247
4247
  flex-direction: column;
4248
4248
  row-gap: ${t.Space.sp3};
4249
4249
  display: flex;
4250
- `,y$=ve.keyframes`
4250
+ `,f$=ve.keyframes`
4251
4251
  0% {
4252
4252
  transform: translateX(100%);
4253
4253
  }
4254
4254
  100% {
4255
4255
  transform: translateX(0)
4256
4256
  }
4257
- `,f$=ve.keyframes`
4257
+ `,C$=ve.keyframes`
4258
4258
  0% {
4259
4259
  transform: translateX(0)
4260
4260
  }
4261
4261
  100% {
4262
4262
  transform: translateX(100%)
4263
4263
  }
4264
- `,C$=s.div`
4265
- animation: ${e=>e.allThreadsSectionOpen?y$:f$}
4264
+ `,j$=s.div`
4265
+ animation: ${e=>e.allThreadsSectionOpen?f$:C$}
4266
4266
  0.5s forwards;
4267
4267
  width: calc(35% - ${t.Space.sp4});
4268
4268
  height: 100vh;
@@ -4272,7 +4272,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4272
4272
  z-index: ${t.sp[2]};
4273
4273
  min-width: ${t.COMMENTS_SECTION_MINIMUM_WIDTH}px;
4274
4274
  max-width: ${t.COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
4275
- `,wo="monthEndReportFormSection",ea="monthEndReportPage",{common:yt,cockpit:Dt,dateFormat:j$}=t.appLocale.getLocalizedStrings();function b$({companyId:e,enableZeniGPTFeature:n,enableSendingMonthEndEmail:r,monthEndReportView:i,previewMode:a,customerRequestData:c,allThreadsSectionOpen:l,filterMetaData:d,newThreadMetadata:u,isAuditScoreLoadingCompleted:x,regenerationCount:m,onAgentInsightSaveStateChange:f,improveUsingZeniGPTClick:h,onRemoveFileAttachment:y,onUpdateFileAttachment:j,onCloseAllThreadsSection:g,previewMonthEndReport:b,saveMonthEndReport:C,onEditClick:S,onOpenFileAttachmentSnackBar:$,onClickAuditScore:v,onClickCustomerRequest:R,sendMonthEndReport:P}){const E=Ae.useTheme(),[k,F]=p.useState(),[_,H]=p.useState(!1),{agentInsightEdits:U,agentInsightEditsRef:G,hasUnpersistedAgentEdits:B,onAgentInsightEdit:w,saveState:N}=t.useAgentInsightEdits({saveStatus:i.saveMonthEndReportStatus,save:()=>xr(),regenerationCount:m,onStateChange:f}),[V,L]=p.useState(0),[T,O]=p.useState(0),W=p.useRef(),ee=p.useRef(null),Y=p.useRef(null),Z=p.useRef(null),{html:X,subject:z,improveUsingZeniGPTStatus:me}=i,[Q,K]=p.useState(),[ie,ae]=p.useState(!1),[xe,Re]=p.useState(!1),[A,pe]=p.useState(!1),[le,he]=p.useState(!1),I=p.useRef(null),Se=p.useRef(null),Ie=t.useDelayUnmount(l,250),M=i.fetchState==="Not-Started"||i.fetchState==="In-Progress"||i.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||i.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:Ce,sortedThreads:se,threadsPositions:te,observer:Te,unresolvedThreadsMap:ye,handleRemoveFloatingThread:Xe}=t.useFloatingThreads(d,I,!a,M),[De,q]=p.useState(0),Pe=p.useCallback(()=>{const st=Ce.current?.[Ce.current?.length-1];q(window.scrollY+(st?.getBoundingClientRect()?.bottom??0))},[Ce]),be=p.useCallback(()=>{l?O(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):L(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_SECTION_MINIMUM_WIDTH))},[l]);p.useEffect(()=>{be()},[l,be]),p.useEffect(()=>(window.addEventListener("resize",be),()=>{window.removeEventListener("resize",be)}),[be]),p.useEffect(()=>(window.addEventListener("scroll",Pe),()=>window.removeEventListener("scroll",Pe)),[Pe]);const{openThread:Co,addThread:Ye,setOpenThread:D}=p.useContext(t.ThreadsContext),ge=t.useHandleSelection(t.MONTH_END_REPORT_CANVAS,!1,!a),Ee=I.current?.getBoundingClientRect(),ze=ge!=null&&ge.coords&&Ee?{left:ge.coords.left-Ee.left,top:ge.coords.top-Ee.top}:void 0,we=p.useCallback(()=>{const st=window.getSelection()?.getRangeAt(0),He=t.getSelectionData();if(!st||He==null)return;const St={...u,...He,startPath:He.startPath.join(),endPath:He.endPath.join()},mt=`${ft.nanoid()}${t.NEW_THREAD_SUFFIX}`,Xt=`cockpit_${e}`;Ye(mt,{type:"thread",visibility:"public",id:mt,roomId:Xt,createdAt:new Date,updatedAt:new Date,comments:[],metadata:St,resolved:!1}),D(mt)},[Ye,e,u,D]),tt=()=>{pe(!0),setTimeout(()=>{pe(!1)},2e3)};p.useEffect(()=>{Co!=null&&l&&g()},[l,Co,g]);const $e=me.fetchState==="In-Progress",ot=Le.useForm({mode:"all",defaultValues:ta(i),values:ta(i)}),nt=ot.handleSubmit(st=>{const{recipientEmailList:He,subject:St}=st[wo],mt=i.auditSummaryData.auditSummary.bypassedAuditScore,Xt=i.auditSummaryData.isControllerOrReviewer;if(!B)if(a===!0)mt>=75?P?.(Q?.id):mt<75&&(Xt||r)&&he(!0);else if(mt>=75||mt<75&&(Xt||r)){const Lo=k?.replace(t.EMPTY_HTML_CHECKER,yt.strings.empty);He!=null&&St!=null&&b(He,St,Q?.id,Lo!=null&&Lo.length>0?k:void 0,G.current)}else Gl()}),Qe=()=>{ee.current!=null&&ee.current.click()},Ze=()=>{Q!==void 0&&Q!=null&&(y([Q.id]),K(void 0),ae(!1))},oe=st=>{const He=st.target.files?st.target.files[0]:null;if(He)if(!J.toSupportedAttachmentFileType(He.type)||xe)console.warn("Please select a valid file.");else{const St=new FileReader;St.onload=function(mt){const Xt=mt.target?.result;if(typeof Xt=="string"){const Lo={data:Xt.split(",")[1],name:He.name,id:J.getAttachmentFileIdByFileName(e,He.name)};K(Lo),ae(!0),j([Lo])}},St.readAsDataURL(He)}},qn=()=>{Y.current&&Y.current.scrollIntoView({behavior:"smooth"})},Gl=()=>{Z.current&&(Z.current.scrollIntoView({behavior:"smooth"}),tt())},xr=()=>{const st=ot.getValues(),{recipientEmailList:He,subject:St}=st[wo];C(He??i.recipientEmailList??[],St??yt.strings.empty,Q?.id,k,G.current)};p.useEffect(()=>{F(i.zeniRequestsHtml)},[i.zeniRequestsHtml]),p.useEffect(()=>{W.current=Q},[Q]),p.useEffect(()=>{K(J.mapAttachmentFileToAttachmentFilePayload(i.attachmentFile)),ae(!1)},[i.attachmentFile]),p.useEffect(()=>{xe&&$()},[xe,$]);const Xn=J.dateNow().subtract(1,"month").format(j$.visual.MMMMFormat),ln=X!=null?X.split(t.MONTH_END_EDITOR_PLACEHOLDER):[],cn=Dt.monthEndReport.agentInsights,Qn=i.templateData,Yl=!a&&t.hasAgentInsights(Qn),Zl=i.concatenatedHtml,ql=()=>i.lastDraftSavedDate!=null&&a===!1?o.jsxRuntimeExports.jsx(t.UserWithTimestamp,{time:i.lastDraftSavedDate,user:i.reportLastSavedByUser,timeStampLabel:Dt.monthEndReport.timeStampLabel}):null,Xl={onOkClick:()=>{P?.(Q?.id),he(!1),ot.reset()},onCancelClick:()=>{S==null?he(!1):S(),he(!1)}};return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsxs(i$,{ref:Se,style:De>0?{height:De}:void 0,children:[o.jsxRuntimeExports.jsx(r$,{availableWidth:l?T:V}),o.jsxRuntimeExports.jsxs(s$,{children:[o.jsxRuntimeExports.jsx(Le.FormProvider,{...ot,children:o.jsxRuntimeExports.jsx("form",{id:oa(ea),onSubmit:nt,children:o.jsxRuntimeExports.jsxs(S$,{children:[o.jsxRuntimeExports.jsx(t.MonthEndReportSection,{sectionId:wo,previewMode:a,subject:z}),a?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(zl,{ref:Z,highlight:A,onClickAuditScore:v,auditSummaryData:i.auditSummaryData,isAuditScoreLoadingCompleted:x}),o.jsxRuntimeExports.jsx(t.MonthEndReportCustomerRequestSection,{totalItems:(i.zeniRequestsData??[]).length+t.getTemplatesFromTemplatedData(i.companyMonthEndReportTemplatesData).length,onClickCustomerRequest:R})]}),o.jsxRuntimeExports.jsxs(p$,{id:t.MONTH_END_REPORT_CANVAS,ref:I,children:[o.jsxRuntimeExports.jsxs(u$,{className:"monthEndReportCanvasWrapper",children:[Q!=null||xe?o.jsxRuntimeExports.jsx(m$,{onClick:qn,children:o.jsxRuntimeExports.jsx(t.CircleWithAttachmentSuccessIcon,{fileSizeError:xe,setFileSizeError:Re,loading:!1,showAnimation:!a&&ie})}):null,a?o.jsxRuntimeExports.jsx(Ji,{dangerouslySetInnerHTML:{__html:t.getHTMLWithCommentingSections(Zl)}}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Yl?o.jsxRuntimeExports.jsxs(c$,{children:[o.jsxRuntimeExports.jsx(d$,{role:"status",children:N==="failed"?cn.saveFailed:N==="saving"?cn.saving:null}),o.jsxRuntimeExports.jsx(t.Button,{type:"button",size:"small",dataTestId:"agent_insights_edit_toggle",label:_?cn.doneButtonLabel:cn.editButtonLabel,onClick:()=>H(!_)})]}):null,o.jsxRuntimeExports.jsxs(l$,{id:t.MONTH_END_EMAIL_HEADER_SECTION,children:[_&&Qn!=null?o.jsxRuntimeExports.jsx(t.AgentInsightsEditor,{edits:U,resyncToken:m,templateData:Qn,onEdit:w}):o.jsxRuntimeExports.jsx(t.StandardRegular,{dangerouslySetInnerHTML:{__html:ln[0]!=null?ln[0]+"</body></html>":yt.strings.empty}}),o.jsxRuntimeExports.jsxs(a$,{children:[o.jsxRuntimeExports.jsx(g$,{children:Dt.monthEndReport.editorTitle}),o.jsxRuntimeExports.jsx(h$,{children:Dt.monthEndReport.editorNote})]})]}),o.jsxRuntimeExports.jsx(x$,{id:t.MONTH_END_EMAIL_EDITOR_SECTION,children:o.jsxRuntimeExports.jsx(t.Editor,{handleFileInputClick:Qe,fileAttached:Q!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:$e,initialHtmlString:i.zeniRequestsHtml,improveUsingZeniGPTClick:h,setZeniRequestsHtml:F,customerRequestData:c})}),_?null:o.jsxRuntimeExports.jsx(Ji,{id:t.MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:ln[1]!=null?"<html><body>"+ln[1]:yt.strings.empty}})]}),Q!=null?o.jsxRuntimeExports.jsx(t.FileAttachment,{ref:Y,fileName:Q.name,fileSize:t.base64FileSize(Q.data),onRemove:Ze,isRemovable:!a}):null]}),ze?o.jsxRuntimeExports.jsx(t.AddThreadFloating,{style:{zIndex:15},coords:ze,alignment:ge.alignment,onClick:we}):null,o.jsxRuntimeExports.jsx(t.TextHighlightSection,{canvasContainerRef:I,sortedThreads:se,editorMode:!a})]})]})})}),o.jsxRuntimeExports.jsx(t.FileInputElement,{name:Q?.name??yt.strings.empty,fileRef:ee,sizeLimit:n$,acceptableTypes:o$,onFileChange:async st=>{oe(st)},onFileSizeError:st=>Re(st),multiple:!1})]}),Ie?o.jsxRuntimeExports.jsx(C$,{allThreadsSectionOpen:l,children:o.jsxRuntimeExports.jsx(t.AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${E.colors.grey3}`,boxShadow:`${t.Space.sp0} 1px 2px ${t.Space.sp0} ${t.Colors.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${t.Space.sp5} - ${t.Space.sp5})`,backgroundColor:E.colors.background},threadsContainerStyle:{paddingBottom:a?"160px":t.Space.sp12},collapsibleThreadStyle:{width:`calc(100% - ${t.Space.sp4})`},allowComposer:!1,drawerTitle:yt.texts.comments,filter:d,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(st,He)=>{D(He);const St=se.findIndex(mt=>mt[0]===He);g(),Ce.current?.[St]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>g()})}):o.jsxRuntimeExports.jsx(t.FloatingThreads,{observer:Te,canvasContainerRef:I,sortedThreads:se,threadsPositions:te,threadsRefs:Ce,unresolvedThreadsMap:ye,editorMode:!a,style:{minWidth:`${t.COMMENTS_SECTION_MINIMUM_WIDTH}px`,position:"relative",height:"fit-content",width:"auto",top:`${I.current?.offsetTop}px`},handleRemoveFloatingThread:Xe})]}),le?o.jsxRuntimeExports.jsx(t.ConfirmationPopup,{titleComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpTitle,{children:Dt.monthEndReport.sendMonthInsightsTitle.replace("__month__",Xn)}),descriptionComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpDescription,{children:Dt.monthEndReport.sendMonthInsightsDescription.replace("__month__",Xn)}),primaryButtonText:Dt.monthEndReport.sendAnyway,primaryButtonWidth:124,secondaryButtonWidth:124,proceedButtonVariant:"destructive",secondaryButtonText:yt.edit,action:Xl,containerStyle:{minWidth:356}}):null,o.jsxRuntimeExports.jsx(t.Footer,{style:{zIndex:10},leftSideComponent:ql(),formId:oa(ea),helperText:a===!0?Dt.monthEndReport.reportSentDateInfo:void 0,cancelBtn:{isDisabled:!x||$e,label:a===!0?yt.edit:yt.texts.saveChanges,onClick:a===!0?S:xr,style:{width:"225px"},size:"medium",isLoading:i.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:!x||$e||!a&&B,isLoading:a===!0?i.sendMonthEndReportStatus.fetchState==="In-Progress":i.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:a===!0?"unset":"225px"},label:a===!0?Dt.monthEndReport.sendEmailButtonLabel.replace("__month__",Xn):yt.texts.preview,size:"medium"}})]})}const ta=e=>({[wo]:{recipientEmailList:e.recipientEmailList,subject:e.subject??yt.strings.empty}}),oa=e=>`${e}_form`,{refresh:R$}=t.appLocale.getLocalizedStrings().common.texts,$$=s(t.SmallRegular)`
4275
+ `,wo="monthEndReportFormSection",ea="monthEndReportPage",{common:yt,cockpit:Dt,dateFormat:b$}=t.appLocale.getLocalizedStrings();function R$({companyId:e,enableZeniGPTFeature:n,enableSendingMonthEndEmail:r,monthEndReportView:i,previewMode:a,customerRequestData:c,allThreadsSectionOpen:l,filterMetaData:d,newThreadMetadata:u,isAuditScoreLoadingCompleted:x,regenerationCount:m,onAgentInsightSaveStateChange:f,improveUsingZeniGPTClick:h,onRemoveFileAttachment:y,onUpdateFileAttachment:j,onCloseAllThreadsSection:g,previewMonthEndReport:b,saveMonthEndReport:C,onEditClick:S,onOpenFileAttachmentSnackBar:$,onClickAuditScore:v,onClickCustomerRequest:R,sendMonthEndReport:P}){const E=Ae.useTheme(),[k,F]=p.useState(),[_,H]=p.useState(!1),{agentInsightEdits:U,agentInsightEditsRef:G,hasUnpersistedAgentEdits:B,onAgentInsightEdit:w,saveState:N}=t.useAgentInsightEdits({saveStatus:i.saveMonthEndReportStatus,save:()=>xr(),regenerationCount:m,onStateChange:f}),[V,L]=p.useState(0),[T,O]=p.useState(0),W=p.useRef(),ee=p.useRef(null),Y=p.useRef(null),Z=p.useRef(null),{html:X,subject:z,improveUsingZeniGPTStatus:me}=i,[Q,K]=p.useState(),[ie,ae]=p.useState(!1),[xe,Re]=p.useState(!1),[A,pe]=p.useState(!1),[le,he]=p.useState(!1),I=p.useRef(null),Se=p.useRef(null),Ie=t.useDelayUnmount(l,250),M=i.fetchState==="Not-Started"||i.fetchState==="In-Progress"||i.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||i.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:Ce,sortedThreads:se,threadsPositions:te,observer:Te,unresolvedThreadsMap:ye,handleRemoveFloatingThread:Xe}=t.useFloatingThreads(d,I,!a,M),[De,q]=p.useState(0),Pe=p.useCallback(()=>{const st=Ce.current?.[Ce.current?.length-1];q(window.scrollY+(st?.getBoundingClientRect()?.bottom??0))},[Ce]),be=p.useCallback(()=>{l?O(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):L(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_SECTION_MINIMUM_WIDTH))},[l]);p.useEffect(()=>{be()},[l,be]),p.useEffect(()=>(window.addEventListener("resize",be),()=>{window.removeEventListener("resize",be)}),[be]),p.useEffect(()=>(window.addEventListener("scroll",Pe),()=>window.removeEventListener("scroll",Pe)),[Pe]);const{openThread:Co,addThread:Ye,setOpenThread:D}=p.useContext(t.ThreadsContext),ge=t.useHandleSelection(t.MONTH_END_REPORT_CANVAS,!1,!a),Ee=I.current?.getBoundingClientRect(),ze=ge!=null&&ge.coords&&Ee?{left:ge.coords.left-Ee.left,top:ge.coords.top-Ee.top}:void 0,we=p.useCallback(()=>{const st=window.getSelection()?.getRangeAt(0),He=t.getSelectionData();if(!st||He==null)return;const St={...u,...He,startPath:He.startPath.join(),endPath:He.endPath.join()},mt=`${ft.nanoid()}${t.NEW_THREAD_SUFFIX}`,Xt=`cockpit_${e}`;Ye(mt,{type:"thread",visibility:"public",id:mt,roomId:Xt,createdAt:new Date,updatedAt:new Date,comments:[],metadata:St,resolved:!1}),D(mt)},[Ye,e,u,D]),tt=()=>{pe(!0),setTimeout(()=>{pe(!1)},2e3)};p.useEffect(()=>{Co!=null&&l&&g()},[l,Co,g]);const $e=me.fetchState==="In-Progress",ot=Le.useForm({mode:"all",defaultValues:ta(i),values:ta(i)}),nt=ot.handleSubmit(st=>{const{recipientEmailList:He,subject:St}=st[wo],mt=i.auditSummaryData.auditSummary.bypassedAuditScore,Xt=i.auditSummaryData.isControllerOrReviewer;if(!B)if(a===!0)mt>=75?P?.(Q?.id):mt<75&&(Xt||r)&&he(!0);else if(mt>=75||mt<75&&(Xt||r)){const Lo=k?.replace(t.EMPTY_HTML_CHECKER,yt.strings.empty);He!=null&&St!=null&&b(He,St,Q?.id,Lo!=null&&Lo.length>0?k:void 0,G.current)}else Gl()}),Qe=()=>{ee.current!=null&&ee.current.click()},Ze=()=>{Q!==void 0&&Q!=null&&(y([Q.id]),K(void 0),ae(!1))},oe=st=>{const He=st.target.files?st.target.files[0]:null;if(He)if(!J.toSupportedAttachmentFileType(He.type)||xe)console.warn("Please select a valid file.");else{const St=new FileReader;St.onload=function(mt){const Xt=mt.target?.result;if(typeof Xt=="string"){const Lo={data:Xt.split(",")[1],name:He.name,id:J.getAttachmentFileIdByFileName(e,He.name)};K(Lo),ae(!0),j([Lo])}},St.readAsDataURL(He)}},qn=()=>{Y.current&&Y.current.scrollIntoView({behavior:"smooth"})},Gl=()=>{Z.current&&(Z.current.scrollIntoView({behavior:"smooth"}),tt())},xr=()=>{const st=ot.getValues(),{recipientEmailList:He,subject:St}=st[wo];C(He??i.recipientEmailList??[],St??yt.strings.empty,Q?.id,k,G.current)};p.useEffect(()=>{F(i.zeniRequestsHtml)},[i.zeniRequestsHtml]),p.useEffect(()=>{W.current=Q},[Q]),p.useEffect(()=>{K(J.mapAttachmentFileToAttachmentFilePayload(i.attachmentFile)),ae(!1)},[i.attachmentFile]),p.useEffect(()=>{xe&&$()},[xe,$]);const Xn=J.dateNow().subtract(1,"month").format(b$.visual.MMMMFormat),ln=X!=null?X.split(t.MONTH_END_EDITOR_PLACEHOLDER):[],cn=Dt.monthEndReport.agentInsights,Qn=i.templateData,Yl=!a&&t.hasAgentInsights(Qn),Zl=i.concatenatedHtml,ql=()=>i.lastDraftSavedDate!=null&&a===!1?o.jsxRuntimeExports.jsx(t.UserWithTimestamp,{time:i.lastDraftSavedDate,user:i.reportLastSavedByUser,timeStampLabel:Dt.monthEndReport.timeStampLabel}):null,Xl={onOkClick:()=>{P?.(Q?.id),he(!1),ot.reset()},onCancelClick:()=>{S==null?he(!1):S(),he(!1)}};return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsxs(a$,{ref:Se,style:De>0?{height:De}:void 0,children:[o.jsxRuntimeExports.jsx(i$,{availableWidth:l?T:V}),o.jsxRuntimeExports.jsxs(r$,{children:[o.jsxRuntimeExports.jsx(Le.FormProvider,{...ot,children:o.jsxRuntimeExports.jsx("form",{id:oa(ea),onSubmit:nt,children:o.jsxRuntimeExports.jsxs(y$,{children:[o.jsxRuntimeExports.jsx(t.MonthEndReportSection,{sectionId:wo,previewMode:a,subject:z}),a?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(zl,{ref:Z,highlight:A,onClickAuditScore:v,auditSummaryData:i.auditSummaryData,isAuditScoreLoadingCompleted:x}),o.jsxRuntimeExports.jsx(t.MonthEndReportCustomerRequestSection,{totalItems:(i.zeniRequestsData??[]).length+t.getTemplatesFromTemplatedData(i.companyMonthEndReportTemplatesData).length,onClickCustomerRequest:R})]}),o.jsxRuntimeExports.jsxs(u$,{id:t.MONTH_END_REPORT_CANVAS,ref:I,children:[o.jsxRuntimeExports.jsxs(m$,{className:"monthEndReportCanvasWrapper",children:[Q!=null||xe?o.jsxRuntimeExports.jsx(x$,{onClick:qn,children:o.jsxRuntimeExports.jsx(t.CircleWithAttachmentSuccessIcon,{fileSizeError:xe,setFileSizeError:Re,loading:!1,showAnimation:!a&&ie})}):null,a?o.jsxRuntimeExports.jsx(Ji,{dangerouslySetInnerHTML:{__html:t.getHTMLWithCommentingSections(Zl)}}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Yl?o.jsxRuntimeExports.jsxs(d$,{children:[o.jsxRuntimeExports.jsx(p$,{role:"status",children:N==="failed"?cn.saveFailed:N==="saving"?cn.saving:null}),o.jsxRuntimeExports.jsx(t.Button,{type:"button",size:"small",dataTestId:"agent_insights_edit_toggle",label:_?cn.doneButtonLabel:cn.editButtonLabel,onClick:()=>H(!_)})]}):null,o.jsxRuntimeExports.jsxs(c$,{id:t.MONTH_END_EMAIL_HEADER_SECTION,children:[_&&Qn!=null?o.jsxRuntimeExports.jsx(t.AgentInsightsEditor,{edits:U,resyncToken:m,templateData:Qn,onEdit:w}):o.jsxRuntimeExports.jsx(t.StandardRegular,{dangerouslySetInnerHTML:{__html:ln[0]!=null?ln[0]+"</body></html>":yt.strings.empty}}),o.jsxRuntimeExports.jsxs(l$,{children:[o.jsxRuntimeExports.jsx(S$,{children:Dt.monthEndReport.editorTitle}),o.jsxRuntimeExports.jsx(g$,{children:Dt.monthEndReport.editorNote})]})]}),o.jsxRuntimeExports.jsx(h$,{id:t.MONTH_END_EMAIL_EDITOR_SECTION,children:o.jsxRuntimeExports.jsx(p.Suspense,{fallback:null,children:o.jsxRuntimeExports.jsx(o$,{handleFileInputClick:Qe,fileAttached:Q!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:$e,initialHtmlString:i.zeniRequestsHtml,improveUsingZeniGPTClick:h,setZeniRequestsHtml:F,customerRequestData:c})})}),_?null:o.jsxRuntimeExports.jsx(Ji,{id:t.MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:ln[1]!=null?"<html><body>"+ln[1]:yt.strings.empty}})]}),Q!=null?o.jsxRuntimeExports.jsx(t.FileAttachment,{ref:Y,fileName:Q.name,fileSize:t.base64FileSize(Q.data),onRemove:Ze,isRemovable:!a}):null]}),ze?o.jsxRuntimeExports.jsx(t.AddThreadFloating,{style:{zIndex:15},coords:ze,alignment:ge.alignment,onClick:we}):null,o.jsxRuntimeExports.jsx(t.TextHighlightSection,{canvasContainerRef:I,sortedThreads:se,editorMode:!a})]})]})})}),o.jsxRuntimeExports.jsx(t.FileInputElement,{name:Q?.name??yt.strings.empty,fileRef:ee,sizeLimit:s$,acceptableTypes:n$,onFileChange:async st=>{oe(st)},onFileSizeError:st=>Re(st),multiple:!1})]}),Ie?o.jsxRuntimeExports.jsx(j$,{allThreadsSectionOpen:l,children:o.jsxRuntimeExports.jsx(t.AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${E.colors.grey3}`,boxShadow:`${t.Space.sp0} 1px 2px ${t.Space.sp0} ${t.Colors.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${t.Space.sp5} - ${t.Space.sp5})`,backgroundColor:E.colors.background},threadsContainerStyle:{paddingBottom:a?"160px":t.Space.sp12},collapsibleThreadStyle:{width:`calc(100% - ${t.Space.sp4})`},allowComposer:!1,drawerTitle:yt.texts.comments,filter:d,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(st,He)=>{D(He);const St=se.findIndex(mt=>mt[0]===He);g(),Ce.current?.[St]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>g()})}):o.jsxRuntimeExports.jsx(t.FloatingThreads,{observer:Te,canvasContainerRef:I,sortedThreads:se,threadsPositions:te,threadsRefs:Ce,unresolvedThreadsMap:ye,editorMode:!a,style:{minWidth:`${t.COMMENTS_SECTION_MINIMUM_WIDTH}px`,position:"relative",height:"fit-content",width:"auto",top:`${I.current?.offsetTop}px`},handleRemoveFloatingThread:Xe})]}),le?o.jsxRuntimeExports.jsx(t.ConfirmationPopup,{titleComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpTitle,{children:Dt.monthEndReport.sendMonthInsightsTitle.replace("__month__",Xn)}),descriptionComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpDescription,{children:Dt.monthEndReport.sendMonthInsightsDescription.replace("__month__",Xn)}),primaryButtonText:Dt.monthEndReport.sendAnyway,primaryButtonWidth:124,secondaryButtonWidth:124,proceedButtonVariant:"destructive",secondaryButtonText:yt.edit,action:Xl,containerStyle:{minWidth:356}}):null,o.jsxRuntimeExports.jsx(t.Footer,{style:{zIndex:10},leftSideComponent:ql(),formId:oa(ea),helperText:a===!0?Dt.monthEndReport.reportSentDateInfo:void 0,cancelBtn:{isDisabled:!x||$e,label:a===!0?yt.edit:yt.texts.saveChanges,onClick:a===!0?S:xr,style:{width:"225px"},size:"medium",isLoading:i.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:!x||$e||!a&&B,isLoading:a===!0?i.sendMonthEndReportStatus.fetchState==="In-Progress":i.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:a===!0?"unset":"225px"},label:a===!0?Dt.monthEndReport.sendEmailButtonLabel.replace("__month__",Xn):yt.texts.preview,size:"medium"}})]})}const ta=e=>({[wo]:{recipientEmailList:e.recipientEmailList,subject:e.subject??yt.strings.empty}}),oa=e=>`${e}_form`,{refresh:$$}=t.appLocale.getLocalizedStrings().common.texts,E$=s(t.SmallRegular)`
4276
4276
  color: ${e=>e.theme.colors.hero};
4277
4277
  display: flex;
4278
4278
  align-items: center;
@@ -4287,16 +4287,16 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4287
4287
  color: ${e=>e.theme.colors.champion};
4288
4288
  }
4289
4289
  }
4290
- `,E$=s(t.SvgRefresh)`
4290
+ `,v$=s(t.SvgRefresh)`
4291
4291
  cursor: pointer;
4292
4292
  width: ${t.Space.sp3};
4293
4293
  height: ${t.Space.sp3};
4294
- `;function v$({onClick:e}){return o.jsxRuntimeExports.jsxs($$,{onClick:()=>{e?.()},children:[o.jsxRuntimeExports.jsx(E$,{}),R$]})}const w$=s.div`
4294
+ `;function w$({onClick:e}){return o.jsxRuntimeExports.jsxs(E$,{onClick:()=>{e?.()},children:[o.jsxRuntimeExports.jsx(v$,{}),$$]})}const k$=s.div`
4295
4295
  display: flex;
4296
4296
  justify-content: space-between;
4297
4297
  padding: ${t.Space.sp3} ${t.Space.sp8};
4298
4298
  flex-shrink: 0;
4299
- `,k$=s(t.SvgClose)`
4299
+ `,T$=s(t.SvgClose)`
4300
4300
  width: ${t.Space.sp3};
4301
4301
  height: ${t.Space.sp3};
4302
4302
  cursor: pointer;
@@ -4304,29 +4304,29 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4304
4304
  &:hover {
4305
4305
  color: ${e=>e.theme.colors.primary};
4306
4306
  }
4307
- `,T$=s.div`
4307
+ `,P$=s.div`
4308
4308
  display: flex;
4309
4309
  column-gap: ${t.Space.sp4};
4310
4310
  align-items: center;
4311
4311
  justify-content: flex-end;
4312
4312
  display: flex;
4313
4313
  flex: 1 1 0px;
4314
- `,P$=s(t.LargeSemiBold)`
4314
+ `,I$=s(t.LargeSemiBold)`
4315
4315
  color: ${e=>e.theme.colors.primary};
4316
- `,I$=s.div`
4316
+ `,L$=s.div`
4317
4317
  display: flex;
4318
4318
  flex-direction: column;
4319
4319
  align-items: center;
4320
4320
  justify-content: center;
4321
4321
  display: flex;
4322
4322
  flex: 1 1 0px;
4323
- `,L$=s(t.SvgComment)`
4323
+ `,A$=s(t.SvgComment)`
4324
4324
  display: flex;
4325
4325
  width: ${t.Space.sp3};
4326
4326
  height: ${t.Space.sp3};
4327
4327
  align-items: center;
4328
4328
  justify-content: center;
4329
- `,A$=s.div`
4329
+ `,D$=s.div`
4330
4330
  display: flex;
4331
4331
  align-items: center;
4332
4332
  justify-content: center;
@@ -4340,10 +4340,10 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4340
4340
  color: ${e=>e.theme.colors.primary};
4341
4341
  background-color: ${e=>e.theme.colors.grey3};
4342
4342
  }
4343
- `,D$=s.div`
4343
+ `,O$=s.div`
4344
4344
  display: flex;
4345
4345
  flex: 1 1 0px;
4346
- `;function _l({companyName:e,threadMetadata:n,monthCalendar:r,onAllThreadsClick:i,onNavigateBack:a,onRefresh:c}){const{threads:l,isLoading:d}=t.useFilteredThreads(n,!1),{isOpen:u}=t.useCommentsDrawer(),x=l.filter(m=>m.id.includes(t.NEW_THREAD_SUFFIX)===!1);return o.jsxRuntimeExports.jsxs(w$,{children:[o.jsxRuntimeExports.jsx(D$,{}),o.jsxRuntimeExports.jsxs(I$,{children:[o.jsxRuntimeExports.jsx(P$,{children:e}),r!=null&&o.jsxRuntimeExports.jsx(t.MonthCalendar,{...r})]}),o.jsxRuntimeExports.jsxs(T$,{children:[u?null:o.jsxRuntimeExports.jsxs(A$,{isDisabled:d,onClick:i,children:[o.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:x.length,isLoading:d}),o.jsxRuntimeExports.jsx(L$,{})]}),c!=null&&o.jsxRuntimeExports.jsx(v$,{onClick:c}),o.jsxRuntimeExports.jsx(k$,{onClick:a})]})]})}const O$=s.div`
4346
+ `;function _l({companyName:e,threadMetadata:n,monthCalendar:r,onAllThreadsClick:i,onNavigateBack:a,onRefresh:c}){const{threads:l,isLoading:d}=t.useFilteredThreads(n,!1),{isOpen:u}=t.useCommentsDrawer(),x=l.filter(m=>m.id.includes(t.NEW_THREAD_SUFFIX)===!1);return o.jsxRuntimeExports.jsxs(k$,{children:[o.jsxRuntimeExports.jsx(O$,{}),o.jsxRuntimeExports.jsxs(L$,{children:[o.jsxRuntimeExports.jsx(I$,{children:e}),r!=null&&o.jsxRuntimeExports.jsx(t.MonthCalendar,{...r})]}),o.jsxRuntimeExports.jsxs(P$,{children:[u?null:o.jsxRuntimeExports.jsxs(D$,{isDisabled:d,onClick:i,children:[o.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:x.length,isLoading:d}),o.jsxRuntimeExports.jsx(A$,{})]}),c!=null&&o.jsxRuntimeExports.jsx(w$,{onClick:c}),o.jsxRuntimeExports.jsx(T$,{onClick:a})]})]})}const N$=s.div`
4347
4347
  display: flex;
4348
4348
  width: 100%;
4349
4349
  height: 100vh;
@@ -4360,17 +4360,17 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4360
4360
  flex-wrap: nowrap;
4361
4361
  height: 100vh;
4362
4362
  justify-content: center;
4363
- `,N$=s(t.SmallRegular)`
4363
+ `,M$=s(t.SmallRegular)`
4364
4364
  color: ${e=>e.theme.colors.hero};
4365
- `,M$=s.div`
4365
+ `,F$=s.div`
4366
4366
  justify-content: center;
4367
4367
  align-items: center;
4368
4368
  display: flex;
4369
4369
  flex-direction: column;
4370
- `,F$=s(t.SvgReload)`
4370
+ `,z$=s(t.SvgReload)`
4371
4371
  width: ${t.Space.sp10};
4372
4372
  height: ${t.Space.sp10};
4373
- `,{dateFormat:{visual:{MMSlashYYYYFormat:z$}},cockpit:{monthEndReport:{insightsNotAvailable:_$,agentInsights:{regenerateTitle:B$,regenerateDescription:W$,regenerateConfirm:V$}}},common:{errorMessage:{somethingWentWrong:U$},cancel:H$}}=t.appLocale.getLocalizedStrings(),na=({message:e,onReload:n})=>o.jsxRuntimeExports.jsxs(M$,{onClick:n,children:[o.jsxRuntimeExports.jsx(F$,{}),o.jsxRuntimeExports.jsx(N$,{children:e})]}),K$=e=>{const{monthEndReportView:n,companyId:r,previewMode:i,onRefresh:a,onNavigateBack:c}=e,{openThread:l,setOpenThread:d}=p.useContext(t.ThreadsContext),u=J.dateNow().subtract(1,"month").format(z$),[x,m]=p.useState(!1),[f,h]=p.useState(!1),[y,j]=p.useState(0),[g,b]=p.useState({hasUnpersistedEdits:!1,isPending:!1}),C=g.isPending,[S,$]=p.useState(!1),v=p.useCallback(()=>{j(U=>U+1),a()},[a]),R=p.useCallback(()=>{if(C){$(!0);return}v()},[C,v]);p.useEffect(()=>{S&&!C&&($(!1),v())},[S,C,v]);const P=()=>{if(n.agentInsightsEditedAt!=null||g.hasUnpersistedEdits){h(!0);return}R()};if(n.fetchState==="Not-Started"||n.fetchState==="In-Progress"||n.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||n.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return o.jsxRuntimeExports.jsx(On,{children:o.jsxRuntimeExports.jsx(O$,{children:o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"ExtraLarge",start:!0})})});if(n.fetchState==="Error"||n.companyMonthEndReportTemplatesData.fetchState==="Error")return o.jsxRuntimeExports.jsx(On,{children:o.jsxRuntimeExports.jsx(na,{onReload:a,message:U$})});if(n.html==null)return o.jsxRuntimeExports.jsx(On,{children:o.jsxRuntimeExports.jsx(na,{onReload:a,message:_$})});const E={application:"cockpit",companyId:r,entityId:r,tab:"management",isGlobalComment:!1,entityType:"management.monthEndEmail",companyName:n.companyName,url:window.location.href,selectedRange:u},{url:k,...F}=E,_={...F},H=`cockpit_${r}`;return o.jsxRuntimeExports.jsx(at.RoomProvider,{id:H,children:o.jsxRuntimeExports.jsxs(On,{children:[o.jsxRuntimeExports.jsx(_l,{companyName:n.companyName,threadMetadata:_,onAllThreadsClick:()=>{l!=null&&d(null),m(!0)},onNavigateBack:c,onRefresh:P}),o.jsxRuntimeExports.jsx(b$,{...e,allThreadsSectionOpen:x,filterMetaData:_,newThreadMetadata:E,regenerationCount:y,onAgentInsightSaveStateChange:b,onCloseAllThreadsSection:()=>m(!1)},`${i}_${r}_${n.templateData?.insight_month_year??""}`),f?o.jsxRuntimeExports.jsx(t.ConfirmationPopup,{titleComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpTitle,{children:B$}),descriptionComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpDescription,{children:W$}),primaryButtonText:V$,secondaryButtonText:H$,primaryButtonWidth:168,secondaryButtonWidth:124,action:{onOkClick:()=>{h(!1),R()},onCancelClick:()=>h(!1),onClickAway:()=>h(!1)}}):null]})})},Ds=s.div`
4373
+ `,{dateFormat:{visual:{MMSlashYYYYFormat:_$}},cockpit:{monthEndReport:{insightsNotAvailable:B$,agentInsights:{regenerateTitle:W$,regenerateDescription:V$,regenerateConfirm:U$}}},common:{errorMessage:{somethingWentWrong:H$},cancel:K$}}=t.appLocale.getLocalizedStrings(),na=({message:e,onReload:n})=>o.jsxRuntimeExports.jsxs(F$,{onClick:n,children:[o.jsxRuntimeExports.jsx(z$,{}),o.jsxRuntimeExports.jsx(M$,{children:e})]}),G$=e=>{const{monthEndReportView:n,companyId:r,previewMode:i,onRefresh:a,onNavigateBack:c}=e,{openThread:l,setOpenThread:d}=p.useContext(t.ThreadsContext),u=J.dateNow().subtract(1,"month").format(_$),[x,m]=p.useState(!1),[f,h]=p.useState(!1),[y,j]=p.useState(0),[g,b]=p.useState({hasUnpersistedEdits:!1,isPending:!1}),C=g.isPending,[S,$]=p.useState(!1),v=p.useCallback(()=>{j(U=>U+1),a()},[a]),R=p.useCallback(()=>{if(C){$(!0);return}v()},[C,v]);p.useEffect(()=>{S&&!C&&($(!1),v())},[S,C,v]);const P=()=>{if(n.agentInsightsEditedAt!=null||g.hasUnpersistedEdits){h(!0);return}R()};if(n.fetchState==="Not-Started"||n.fetchState==="In-Progress"||n.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||n.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return o.jsxRuntimeExports.jsx(On,{children:o.jsxRuntimeExports.jsx(N$,{children:o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"ExtraLarge",start:!0})})});if(n.fetchState==="Error"||n.companyMonthEndReportTemplatesData.fetchState==="Error")return o.jsxRuntimeExports.jsx(On,{children:o.jsxRuntimeExports.jsx(na,{onReload:a,message:H$})});if(n.html==null)return o.jsxRuntimeExports.jsx(On,{children:o.jsxRuntimeExports.jsx(na,{onReload:a,message:B$})});const E={application:"cockpit",companyId:r,entityId:r,tab:"management",isGlobalComment:!1,entityType:"management.monthEndEmail",companyName:n.companyName,url:window.location.href,selectedRange:u},{url:k,...F}=E,_={...F},H=`cockpit_${r}`;return o.jsxRuntimeExports.jsx(at.RoomProvider,{id:H,children:o.jsxRuntimeExports.jsxs(On,{children:[o.jsxRuntimeExports.jsx(_l,{companyName:n.companyName,threadMetadata:_,onAllThreadsClick:()=>{l!=null&&d(null),m(!0)},onNavigateBack:c,onRefresh:P}),o.jsxRuntimeExports.jsx(R$,{...e,allThreadsSectionOpen:x,filterMetaData:_,newThreadMetadata:E,regenerationCount:y,onAgentInsightSaveStateChange:b,onCloseAllThreadsSection:()=>m(!1)},`${i}_${r}_${n.templateData?.insight_month_year??""}`),f?o.jsxRuntimeExports.jsx(t.ConfirmationPopup,{titleComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpTitle,{children:W$}),descriptionComponent:o.jsxRuntimeExports.jsx(t.ConfirmationPopUpDescription,{children:V$}),primaryButtonText:U$,secondaryButtonText:K$,primaryButtonWidth:168,secondaryButtonWidth:124,action:{onOkClick:()=>{h(!1),R()},onCancelClick:()=>h(!1),onClickAway:()=>h(!1)}}):null]})})},Ds=s.div`
4374
4374
  display: flex;
4375
4375
  justify-content: flex-end;
4376
4376
  align-items: center;
@@ -4379,7 +4379,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4379
4379
  left: ${t.Space.sp0};
4380
4380
  width: 100%;
4381
4381
  padding: ${t.Space.sp3} ${t.Space.sp0};
4382
- `,G$=s.div`
4382
+ `,Y$=s.div`
4383
4383
  background-color: ${e=>e.theme.colors.grey5};
4384
4384
  border: ${e=>`1px solid ${e.theme.colors.background}`};
4385
4385
  border-radius: ${t.Space.sp2};
@@ -4395,9 +4395,9 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4395
4395
  isolation: isolate;
4396
4396
  z-index: ${t.sp[1]};
4397
4397
  }
4398
- `,Y$=s.div`
4399
- user-select: text;
4400
4398
  `,Z$=s.div`
4399
+ user-select: text;
4400
+ `,q$=s.div`
4401
4401
  position: absolute;
4402
4402
  top: ${t.Space.sp4}; // Attachment icon position from the top
4403
4403
  right: -${t.Space.sp3}; // To show attachment icon on the edge
@@ -4416,35 +4416,35 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4416
4416
  &:hover {
4417
4417
  color: ${e=>e.theme.colors.primary};
4418
4418
  }
4419
- `,q$=s.div`
4419
+ `,X$=s.div`
4420
4420
  display: flex;
4421
4421
  flex-direction: column;
4422
4422
  background-color: ${e=>e.theme.colors.grey4};
4423
4423
  flex-wrap: nowrap;
4424
4424
  height: 100vh;
4425
4425
  justify-content: center;
4426
- `,X$=s.div`
4426
+ `,Q$=s.div`
4427
4427
  width: ${e=>`${e.availableWidth}px`};
4428
4428
  min-width: auto;
4429
4429
  position: relative;
4430
4430
  height: fit-content;
4431
4431
  min-height: ${t.Space.sp12};
4432
- `,Q$=ve.keyframes`
4432
+ `,J$=ve.keyframes`
4433
4433
  0% {
4434
4434
  transform: translateX(100%);
4435
4435
  }
4436
4436
  100% {
4437
4437
  transform: translateX(0)
4438
4438
  }
4439
- `,J$=ve.keyframes`
4439
+ `,eE=ve.keyframes`
4440
4440
  0% {
4441
4441
  transform: translateX(0)
4442
4442
  }
4443
4443
  100% {
4444
4444
  transform: translateX(100%)
4445
4445
  }
4446
- `,eE=s.div`
4447
- animation: ${e=>e.allThreadsSectionOpen?Q$:J$}
4446
+ `,tE=s.div`
4447
+ animation: ${e=>e.allThreadsSectionOpen?J$:eE}
4448
4448
  0.5s forwards;
4449
4449
  width: calc(35% - ${t.Space.sp4});
4450
4450
  height: 100vh;
@@ -4454,7 +4454,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4454
4454
  z-index: ${t.sp[2]};
4455
4455
  min-width: ${t.COMMENTS_SECTION_MINIMUM_WIDTH}px;
4456
4456
  max-width: ${t.COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
4457
- `,tE=s.div`
4457
+ `,oE=s.div`
4458
4458
  flex-grow: 1;
4459
4459
  overflow: auto;
4460
4460
  min-height: 2em;
@@ -4470,30 +4470,30 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4470
4470
  .attachFileSeparator {
4471
4471
  user-select: none;
4472
4472
  }
4473
- `,oE=s.div`
4473
+ `,nE=s.div`
4474
4474
  width: ${t.FORM_MINIMUM_WIDTH}px;
4475
4475
  margin: ${t.Space.sp4} ${t.Space.sp0};
4476
4476
  display: flex;
4477
4477
  flex-direction: column;
4478
4478
  row-gap: ${t.Space.sp4};
4479
- `,nE=s.div`
4479
+ `,sE=s.div`
4480
4480
  flex-direction: column;
4481
4481
  row-gap: ${t.Space.sp3};
4482
4482
  display: flex;
4483
- `,sE=s.div`
4483
+ `,rE=s.div`
4484
4484
  margin: ${t.Space.sp2} 6px ${t.Space.sp2};
4485
4485
  border-radius: 50%;
4486
4486
  width: ${t.Space.sp1};
4487
4487
  height: ${t.Space.sp1};
4488
4488
  background-color: ${e=>e.theme.colors.grey1};
4489
- `,rE=s.div`
4489
+ `,iE=s.div`
4490
4490
  display: flex;
4491
4491
  align-items: center;
4492
4492
  column-gap: ${t.Space.sp2};
4493
4493
  padding-bottom: ${t.Space.sp5};
4494
- `,iE=s(t.ExtraSmallRegular)`
4494
+ `,aE=s(t.ExtraSmallRegular)`
4495
4495
  color: ${e=>e.theme.colors.grey1};
4496
- `,{common:{strings:qs,datePicker:aE,texts:lE,errorMessage:{somethingWentWrong:cE}},dateFormat:Xs,cockpit:dE}=t.appLocale.getLocalizedStrings(),{slash:sa}=qs,{visual:{YYYYformat:pE,MMMformat:uE}}=Xs,mE=({historicData:e,companyId:n,newThreadMetadata:r,containerRef:i,sortedThreads:a})=>{const{addThread:c,setOpenThread:l}=p.useContext(t.ThreadsContext),d=p.useRef(null),[u,x]=p.useState(),[m,f]=p.useState(!1),h="monthEndReportHistoricDataPage",y=t.useHandleSelection(t.MONTH_END_REPORT_CANVAS,!1,!1),j=i.current?.getBoundingClientRect(),g=y!=null&&y.coords!=null&&j?{left:y.coords.left-j.left,top:y.coords.top-j.top}:void 0,b=Le.useForm({mode:"all",defaultValues:ra(e),values:ra(e)}),C=()=>{d.current&&d.current.scrollIntoView({behavior:"smooth"})};p.useEffect(()=>{x(J.mapAttachmentFileToAttachmentFilePayload(e.attachmentFile))},[e.attachmentFile]);const S=p.useCallback(()=>{const $=window.getSelection()?.getRangeAt(0),v=t.getSelectionData();if(!$||v==null)return;const R={...r,...v,startPath:v.startPath.join(),endPath:v.endPath.join()},P=`${ft.nanoid()}${t.NEW_THREAD_SUFFIX}`,E=`cockpit_${n}`;c(P,{type:"thread",visibility:"public",id:P,roomId:E,createdAt:new Date,updatedAt:new Date,comments:[],metadata:R,resolved:!1}),l(P)},[c,n,r,l]);return o.jsxRuntimeExports.jsx(Le.FormProvider,{...b,children:o.jsxRuntimeExports.jsx("form",{id:hE(h),children:o.jsxRuntimeExports.jsxs(nE,{children:[o.jsxRuntimeExports.jsx(t.MonthEndReportSection,{previewMode:!0,subject:e.subject,sectionId:wo}),o.jsxRuntimeExports.jsxs(G$,{id:t.MONTH_END_REPORT_CANVAS,ref:i,children:[o.jsxRuntimeExports.jsxs(Y$,{className:"monthEndReportCanvasWrapper",children:[u!=null?o.jsxRuntimeExports.jsx(Z$,{onClick:C,children:o.jsxRuntimeExports.jsx(t.CircleWithAttachmentSuccessIcon,{loading:!1,fileSizeError:m,setFileSizeError:f})}):null,o.jsxRuntimeExports.jsx(t.StandardRegular,{style:{position:"relative"},dangerouslySetInnerHTML:{__html:t.getHTMLWithCommentingSections(e.concatenatedHtml)}}),u!=null?o.jsxRuntimeExports.jsx(t.FileAttachment,{ref:d,fileName:u.name,fileSize:t.base64FileSize(u.data),isRemovable:!1}):null]}),g?o.jsxRuntimeExports.jsx(t.AddThreadFloating,{style:{zIndex:15},coords:g,alignment:y.alignment,onClick:S}):null,o.jsxRuntimeExports.jsx(t.TextHighlightSection,{canvasContainerRef:i,sortedThreads:a,editorMode:!1})]})]})})})},xE=e=>{const{monthEndReportHistoricData:n,reportSentDate:r,onRefresh:i,onNavigateBack:a,onDateChange:c}=e,l=Ae.useTheme(),[d,u]=p.useState(!1),[x,m]=p.useState(),f=p.useRef(null),[h,y]=p.useState(0),[j,g]=p.useState(0),b=t.useDelayUnmount(d,250),{data:C,companyId:S,companyName:$,firstMonthOfFY:v}=n,R=t.getMonthIndex(r.format(Xs.visual.MMMMFormat)),P=Number(r.format(pE)),E=v>R?P-1:P;p.useEffect(()=>{const K=R>0?R-1:12;m(`${je.padStart(K.toString(),2,"0")}${sa}${P}`)},[]);const k={application:"cockpit",companyId:S,entityId:S,tab:"management",isGlobalComment:!1,entityType:"management.monthEndEmail",companyName:$,url:window.location.href,selectedRange:x},{url:F,..._}=k,H={..._},U=n.fetchState==="Not-Started"||n.fetchState==="In-Progress",{threadsRefs:G,sortedThreads:B,threadsPositions:w,observer:N,unresolvedThreadsMap:V,handleRemoveFloatingThread:L}=t.useFloatingThreads(H,f,!1,U),T=p.useRef(null),[O,W]=p.useState(0),ee=p.useCallback(()=>{const K=G.current?.[G.current?.length-1];W(window.scrollY+(K?.getBoundingClientRect()?.bottom??0))},[G]),Y=p.useCallback(()=>{d?g(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):y(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_SECTION_MINIMUM_WIDTH))},[d]);p.useEffect(()=>{Y()},[d,Y]),p.useEffect(()=>(window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",Y)}),[Y]),p.useEffect(()=>(window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[ee]);const{openThread:Z,setOpenThread:X}=p.useContext(t.ThreadsContext);p.useEffect(()=>{Z!=null&&d&&u(!1)},[d,Z,u]);const z=t.getHistoricMonthsList(v,n.historicReportSentDates),me=p.useCallback((K,ie)=>{const ae=v>K?ie+1:ie;c(J.dateFromYearMonthDate(ae,K-1));const xe=K>0?K-1:12;m(`${je.padStart(xe.toString(),2,"0")}${sa}${ae}`)},[v,c]);if(n.fetchState==="Not-Started"||n.fetchState==="In-Progress")return o.jsxRuntimeExports.jsxs(Os,{children:[o.jsxRuntimeExports.jsx(Ds,{children:o.jsxRuntimeExports.jsx(Ns,{onClick:a})}),o.jsxRuntimeExports.jsx(t.BusyIndication,{fetchState:n.fetchState,styles:{margin:t.Space.sp0}})]});if(n.fetchState==="Error")return o.jsxRuntimeExports.jsxs(Os,{children:[o.jsxRuntimeExports.jsx(Ds,{children:o.jsxRuntimeExports.jsx(Ns,{onClick:a})}),o.jsxRuntimeExports.jsx(t.ReloadContainer,{onReload:i,message:cE})]});if(C?.concatenatedHtml==null)return o.jsxRuntimeExports.jsxs(Os,{children:[o.jsxRuntimeExports.jsx(Ds,{children:o.jsxRuntimeExports.jsx(Ns,{onClick:a})}),o.jsxRuntimeExports.jsx(t.ReloadContainer,{onReload:i,message:dE.monthEndReport.insightsNotAvailable})]});const Q=`cockpit_${S}`;return o.jsxRuntimeExports.jsx(at.RoomProvider,{id:Q,children:o.jsxRuntimeExports.jsxs(q$,{children:[o.jsxRuntimeExports.jsx(_l,{companyName:n.companyName,onNavigateBack:a,monthCalendar:{monthAndYears:z,label:`${r.format(uE)} ${E}`,selectedMonth:{month:R,year:E},onChange:me},threadMetadata:H,onAllThreadsClick:()=>{Z!=null&&X(null),u(!0)}}),o.jsxRuntimeExports.jsxs(tE,{ref:T,style:O>0?{height:O}:void 0,children:[o.jsxRuntimeExports.jsx(X$,{availableWidth:d?j:h}),o.jsxRuntimeExports.jsxs(oE,{children:[o.jsxRuntimeExports.jsx(mE,{historicData:C,newThreadMetadata:k,companyId:S,sortedThreads:B,containerRef:f}),o.jsxRuntimeExports.jsxs(rE,{children:[o.jsxRuntimeExports.jsx(Ga,{user:n.reportLastSentByUser}),o.jsxRuntimeExports.jsx(sE,{}),o.jsxRuntimeExports.jsxs(iE,{children:[aE.businessDay,qs.space,n.data?.reportSentDate!=null?J.getBusinessDayOfDate(n.data.reportSentDate):null,":",qs.space,n.data?.reportSentDate?.format(Xs.visual.MMMDFormat)]})]})]}),b?o.jsxRuntimeExports.jsx(eE,{allThreadsSectionOpen:d,children:o.jsxRuntimeExports.jsx(t.AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${l.colors.grey3}`,boxShadow:`${t.Space.sp0} 1px 2px ${t.Space.sp0} ${t.Colors.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${t.Space.sp5} - ${t.Space.sp5})`,backgroundColor:l.colors.background},threadsContainerStyle:{paddingBottom:t.Space.sp5},collapsibleThreadStyle:{width:`calc(100% - ${t.Space.sp4})`},allowComposer:!1,drawerTitle:lE.comments,filter:H,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(K,ie)=>{X(ie);const ae=B.findIndex(xe=>xe[0]===ie);u(!1),G.current?.[ae]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>u(!1)})}):o.jsxRuntimeExports.jsx(t.FloatingThreads,{observer:N,canvasContainerRef:f,sortedThreads:B,threadsPositions:w,threadsRefs:G,unresolvedThreadsMap:V,editorMode:!1,style:{minWidth:`${t.COMMENTS_SECTION_MINIMUM_WIDTH}px`,position:"relative",height:"fit-content",width:"auto",top:`${f.current?.offsetTop}px`},handleRemoveFloatingThread:L})]})]})})},ra=e=>({[wo]:{recipientEmailList:e.recipientEmailList??[],subject:e.subject??""}}),hE=e=>`${e}_form`,gE=e=>ce.createElement("svg",{width:98,height:121,viewBox:"0 0 98 121",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ce.createElement("path",{d:"M49.2796 0.921875C32.9744 0.921875 19.7096 14.1944 19.7096 30.5087C19.7125 35.7639 21.1132 40.9238 23.7681 45.459C26.423 49.9943 30.2365 53.7418 34.8175 56.317C34.4083 56.561 33.9588 56.7299 33.4901 56.8156C26.6518 57.6437 22.4965 58.8342 19.5952 60.7958C16.8429 62.6568 15.2375 65.1511 14.0552 69.4056C14.0509 69.4209 14.0466 69.4363 14.0431 69.4518L10.0918 85.7362C9.51826 88.1132 9.82738 90.6176 10.9617 92.7837C12.0961 94.9499 13.9785 96.6304 16.2589 97.5129L20.1569 99.0144H10.7796C7.99797 99.0144 5.33033 100.119 3.36345 102.086C1.39658 104.053 0.291567 106.721 0.291504 109.502V110.435C0.291815 113.216 1.39693 115.884 3.36378 117.85C5.33063 119.817 7.99813 120.922 10.7796 120.922H53.2747C53.6551 120.922 54.0199 120.771 54.2889 120.502C54.5579 120.233 54.709 119.868 54.709 119.488C54.709 119.107 54.5579 118.742 54.2889 118.473C54.0199 118.204 53.6551 118.053 53.2747 118.053H34.0289C38.6739 116.234 43.0832 113.862 47.1618 110.989C59.9371 101.998 69.4844 101.883 69.5755 101.883H86.6115C88.6324 101.883 90.5704 102.686 91.9994 104.115C93.4283 105.544 94.2311 107.482 94.2311 109.502V110.435C94.2308 112.455 93.4279 114.393 91.999 115.822C90.5701 117.251 88.6322 118.053 86.6115 118.053H62.8365C62.4561 118.053 62.0913 118.204 61.8223 118.473C61.5533 118.742 61.4022 119.107 61.4022 119.488C61.4022 119.868 61.5533 120.233 61.8223 120.502C62.0913 120.771 62.4561 120.922 62.8365 120.922H86.6115C89.3932 120.922 92.0609 119.817 94.0278 117.85C95.9947 115.883 97.0996 113.215 97.0996 110.433V109.501C97.0996 106.72 95.9947 104.052 94.0278 102.085C92.0609 100.118 89.3932 99.013 86.6115 99.013H77.2552L81.1289 97.5124C83.4101 96.6305 85.2933 94.95 86.4283 92.7836C87.5633 90.6172 87.8728 88.1123 87.2993 85.7348L83.3471 69.4504C83.3435 69.4349 83.3393 69.42 83.335 69.4047C81.0779 61.2834 76.7211 58.4595 63.9108 56.8156C63.6617 56.7812 63.4178 56.7159 63.1848 56.6214C67.9202 54.1003 71.88 50.3378 74.6396 45.7373C77.3993 41.1368 78.8546 35.872 78.8496 30.5073C78.8496 14.1942 65.5848 0.921875 49.2796 0.921875ZM50.0808 3.84176C56.084 4.02211 61.8511 6.22111 66.4504 10.0835C71.0497 13.9459 74.2125 19.2461 75.4278 25.1278C76.6431 31.0094 75.84 37.1291 73.1483 42.498C70.4565 47.867 66.0332 52.1716 60.5931 54.7165C59.1024 53.1795 57.8049 51.1354 57.3184 49.7456C58.4778 48.8954 59.4906 47.8615 60.3167 46.6848C60.9625 46.9809 61.6621 47.1419 62.3724 47.1577C62.8095 47.1603 63.2432 47.0811 63.6512 46.9243C64.5464 46.5762 65.7044 45.6681 66.1373 43.3181C66.2624 42.9869 66.4272 42.6721 66.628 42.3806L66.7279 42.2148C68.7825 38.8099 69.2671 36.263 68.2103 34.43C67.7877 33.7064 67.1417 33.1394 66.3694 32.8142C66.4922 32.3725 66.5552 31.9163 66.5566 31.4579V29.7934C66.5566 24.4319 64.183 20.499 58.861 17.0401C58.612 16.8783 58.3989 16.667 58.235 16.4194C58.071 16.1718 57.9598 15.8931 57.9081 15.6007C57.125 11.0899 54.1033 8.50358 49.6158 8.50358H49.613C42.7338 8.50525 41.4374 13.4875 41.1983 15.6301C41.1628 15.9531 41.0576 16.2647 40.8901 16.5432C40.7227 16.8217 40.4968 17.0607 40.2282 17.2436C36.7881 19.5877 32.8393 23.1325 32.8393 29.7934V31.4579C32.8389 31.9742 32.9165 32.4876 33.0695 32.9808C32.4212 33.2864 31.8789 33.7785 31.5119 34.3941C30.4489 36.1843 30.9504 38.7427 33.0456 42.2153L33.133 42.36C33.3398 42.6607 33.5094 42.9854 33.6381 43.3269C33.9878 45.1621 34.9709 46.0635 35.7344 46.4966C36.4514 46.8873 37.2576 47.0851 38.074 47.0704C38.4264 47.0695 38.7782 47.0401 39.1259 46.9826C39.7172 47.7756 40.3958 48.4996 41.1489 49.141C40.3987 51.1167 38.8989 53.0103 37.368 54.4238C32.9251 52.2043 29.188 48.7913 26.5758 44.5673C23.9635 40.3432 22.5793 35.4752 22.5781 30.5087C22.5811 26.9366 23.3008 23.4015 24.6945 20.1126C26.0883 16.8237 28.1278 13.8479 30.6922 11.3613C33.2567 8.87477 36.294 6.92806 39.6244 5.63643C42.9547 4.34481 46.5104 3.73454 50.0808 3.84176V3.84176ZM49.6125 11.3716H49.6148C52.6985 11.3716 54.5375 12.9592 55.0811 16.0909C55.2008 16.7719 55.4592 17.4211 55.8404 17.998C56.2216 18.575 56.7174 19.0673 57.2969 19.4445C61.7759 22.3556 63.6871 25.4502 63.6871 29.793V31.4574C63.6872 31.8279 63.5967 32.1929 63.4235 32.5204C63.2502 32.8479 62.9995 33.1281 62.6931 33.3366V30.1506C62.6908 29.0631 62.4335 27.9912 61.9419 27.0212C61.4503 26.0511 60.7381 25.2098 59.8624 24.5648C57.1677 22.6285 53.7984 24.3061 53.6562 24.3785C53.605 24.4045 53.5554 24.4335 53.5077 24.4654C51.1056 26.0768 48.8478 26.0308 45.9671 24.3085C44.5197 23.32 41.5837 23.1611 39.9541 24.4266C38.9025 25.1029 38.0381 26.0333 37.4408 27.1317C36.8435 28.2302 36.5325 29.4614 36.5365 30.7118V33.2124C36.2772 32.9993 36.0684 32.7314 35.925 32.428C35.7816 32.1245 35.7073 31.793 35.7073 31.4574V29.793C35.7073 25.5322 37.4846 22.5834 41.8426 19.614C42.4535 19.1982 42.9671 18.6551 43.348 18.0219C43.7289 17.3888 43.9681 16.6806 44.0491 15.9462C44.3864 12.9103 46.258 11.3724 49.6125 11.3716ZM42.9781 26.3894C43.5413 26.3894 44.1076 26.5022 44.3521 26.6774C44.3832 26.6999 44.4156 26.7216 44.4478 26.7414C48.2475 29.0291 51.7046 29.0839 55.0125 26.9086C55.356 26.7553 57.0461 26.072 58.1756 26.8833C58.6864 27.2611 59.1017 27.7533 59.3881 28.3204C59.6746 28.8875 59.8242 29.5138 59.8251 30.1492V39.1638C59.8346 40.5106 59.5775 41.846 59.0687 43.0931C58.5599 44.3401 57.8093 45.4742 56.8603 46.4299C55.9113 47.3856 54.7826 48.1442 53.5392 48.6618C52.2957 49.1794 50.9622 49.4459 49.6153 49.4459C48.2684 49.4459 46.9349 49.1794 45.6914 48.6618C44.448 48.1442 43.3193 47.3856 42.3703 46.4299C41.4213 45.4742 40.6707 44.3401 40.1619 43.0931C39.6531 41.846 39.396 40.5106 39.4055 39.1638L39.4051 30.7118C39.4026 29.9319 39.5988 29.1642 39.9752 28.4812C40.3516 27.7981 40.8958 27.2222 41.5564 26.8077C41.6082 26.7751 41.6578 26.7393 41.7049 26.7003C41.9698 26.4814 42.4723 26.3894 42.9781 26.3894ZM64.8091 35.3101C64.9906 35.3368 65.165 35.3995 65.322 35.4944C65.4791 35.5893 65.6156 35.7146 65.7237 35.8629C65.8941 36.1581 66.2926 37.3823 64.2707 40.7329L64.1755 40.8922C63.8002 41.5108 63.4455 42.0954 63.316 42.798C63.1702 43.5909 62.9076 44.1338 62.6138 44.2495C62.3092 44.316 61.9912 44.2814 61.708 44.151C62.3602 42.5697 62.6953 40.8757 62.6941 39.1652V36.4316C63.4779 36.2303 64.2027 35.8459 64.8091 35.3101V35.3101ZM34.7204 35.4301C35.2551 35.8691 35.8732 36.1952 36.5375 36.3886V39.1652C36.536 40.8714 36.8691 42.5613 37.5179 44.1393C37.3892 44.1108 37.2652 44.0643 37.1495 44.0011C37.0209 43.9282 36.63 43.7063 36.4562 42.7896C36.3224 42.087 35.9653 41.4972 35.5869 40.873L35.5019 40.7329C33.8673 38.0236 33.6415 36.4418 33.9752 35.8652C34.0639 35.7464 34.1755 35.6466 34.3035 35.5719C34.4315 35.4971 34.5733 35.4489 34.7204 35.4301ZM43.572 50.7798C45.2964 51.6836 47.2015 52.1892 49.1472 52.2594C51.0929 52.3295 53.0295 51.9624 54.8145 51.185C55.503 52.7783 56.4174 54.2641 57.5294 55.5966C55.8184 62.7256 51.9726 67.8702 46.0773 70.8823C43.7618 72.0558 41.27 72.8428 38.7005 73.2121V57.0594C40.6315 55.4367 42.498 53.2058 43.572 50.7798ZM59.8769 57.9292C60.5403 58.4659 61.2737 58.9097 62.0568 59.2486C59.9126 69.1211 55.1295 77.1108 47.8239 83.0068C45.0554 85.2523 41.984 87.0961 38.7005 88.4838V84.0797C41.0671 83.8122 45.8154 82.543 51.2503 77.062C51.383 76.9283 51.4881 76.7698 51.5595 76.5954C51.6309 76.4211 51.6673 76.2344 51.6666 76.0461C51.6658 75.8577 51.628 75.6713 51.5552 75.4975C51.4824 75.3238 51.3761 75.1661 51.2424 75.0334C50.9723 74.7656 50.6069 74.616 50.2266 74.6176C49.8462 74.6192 49.4821 74.7718 49.2143 75.0418C44.594 79.7008 40.6461 80.8889 38.7005 81.1832V76.1086C41.683 75.7301 44.5792 74.8464 47.265 73.4955C51.6634 71.2764 57.241 66.7984 59.8769 57.9292ZM35.8339 58.9941V91.0545L33.4518 89.7005V80.5235C33.4518 80.1431 33.3007 79.7783 33.0317 79.5093C32.7628 79.2403 32.398 79.0892 32.0176 79.0892C31.6372 79.0892 31.2724 79.2403 31.0034 79.5093C30.7344 79.7783 30.5833 80.1431 30.5833 80.5235V88.0716L27.1783 86.1354L26.7446 60.8925C27.4993 60.7008 28.3155 60.524 29.199 60.3588L29.1995 60.3593V69.4906C29.1995 69.871 29.3506 70.2358 29.6196 70.5047C29.8885 70.7737 30.2533 70.9248 30.6337 70.9248C31.0141 70.9248 31.3789 70.7737 31.6479 70.5047C31.9169 70.2358 32.068 69.871 32.068 69.4906V59.8938C32.635 59.8141 33.2247 59.7373 33.837 59.6632C34.5352 59.5528 35.2101 59.3267 35.8339 58.9941V58.9941ZM64.8642 59.841C66.498 60.0748 67.9475 60.3316 69.2384 60.6147C69.0142 63.3677 67.9385 70.5555 62.8514 75.4279C62.7154 75.5582 62.6063 75.714 62.5305 75.8864C62.4546 76.0589 62.4135 76.2446 62.4094 76.4329C62.4054 76.6212 62.4384 76.8085 62.5067 76.9841C62.575 77.1596 62.6772 77.32 62.8075 77.4561C62.9378 77.5921 63.0936 77.7012 63.2661 77.777C63.4385 77.8528 63.6242 77.894 63.8125 77.898C64.0008 77.9021 64.1881 77.8691 64.3637 77.8008C64.5392 77.7324 64.6996 77.6302 64.8357 77.4999C70.3593 72.2111 71.7222 64.7855 72.0583 61.3505C73.3289 61.7263 74.5513 62.2488 75.701 62.9075C75.6503 65.9403 74.7925 77.8281 64.76 84.4532C64.5999 84.5557 64.4618 84.689 64.3537 84.8453C64.2455 85.0016 64.1696 85.1779 64.1301 85.3639C64.0907 85.5498 64.0887 85.7418 64.1241 85.9285C64.1595 86.1153 64.2317 86.2931 64.3365 86.4517C64.4413 86.6103 64.5765 86.7465 64.7344 86.8524C64.8923 86.9583 65.0696 87.0317 65.2561 87.0685C65.4426 87.1052 65.6346 87.1045 65.8208 87.0664C66.007 87.0283 66.1838 86.9535 66.3409 86.8465C71.6878 83.3153 75.4975 77.9065 77.3575 71.2059C77.8907 69.2799 78.2534 67.3108 78.4416 65.3213C79.4455 66.6635 80.0371 68.2544 80.5654 70.1498L84.512 86.4113C84.9225 88.1121 84.7011 89.904 83.8891 91.4537C83.077 93.0034 81.7296 94.2053 80.0976 94.8358L69.314 99.013H62.5825C62.5992 98.5058 62.4787 98.0035 62.2337 97.5591C61.7499 96.6821 61.1164 95.8965 60.362 95.2377L62.8458 93.7904C65.7686 95.2672 69.0004 96.0285 72.275 96.0114C72.6684 96.0114 73.0714 96.0007 73.4819 95.9777C73.6716 95.9697 73.8579 95.924 74.0299 95.8434C74.2018 95.7628 74.3561 95.6488 74.4837 95.5081C74.6112 95.3674 74.7096 95.2027 74.773 95.0237C74.8364 94.8446 74.8636 94.6548 74.8531 94.4652C74.8426 94.2755 74.7945 94.0899 74.7116 93.919C74.6287 93.7481 74.5127 93.5953 74.3703 93.4696C74.228 93.3439 74.062 93.2477 73.8822 93.1867C73.7023 93.1256 73.5121 93.1009 73.3227 93.1139C70.8018 93.2547 68.2788 92.8773 65.9095 92.005L74.692 86.8875C75.0183 86.6948 75.2549 86.3808 75.3504 86.0141C75.4459 85.6474 75.3924 85.2578 75.2015 84.9304C75.0107 84.6031 74.6981 84.3645 74.332 84.2669C73.9659 84.1693 73.576 84.2205 73.2475 84.4093L57.5066 93.5817C56.1863 93.1236 54.7739 92.9966 53.3931 93.2117C52.0124 93.4269 50.7055 93.9776 49.5873 94.8157L48.6643 95.5001C48.5304 95.4205 48.3911 95.3438 48.2422 95.2723C47.9751 95.1448 47.7037 95.0231 47.428 94.9067C56.5064 90.843 59.3085 85.1014 59.4385 84.8249C59.595 84.4822 59.6103 84.0917 59.4813 83.7378C59.3522 83.3838 59.0891 83.0949 58.7488 82.9334C58.4084 82.7719 58.0182 82.7507 57.6624 82.8745C57.3066 82.9984 57.0138 83.2572 56.8473 83.5951C56.8392 83.6116 56.0169 85.2804 53.8191 87.3596C51.8123 89.2583 48.215 91.8914 42.4529 93.732C41.8642 93.7075 41.2745 93.7357 40.6908 93.8161L38.7005 92.6844V91.5671C42.6145 90.0729 46.2659 87.9655 49.5177 85.324C54.9887 80.9385 62.0006 72.9935 64.8642 59.841ZM23.8891 61.7828L24.2795 84.4873L24.2048 84.4481C23.8664 84.265 23.4693 84.2235 23.1004 84.3327C22.7315 84.4419 22.4209 84.6929 22.2367 85.0306C22.0525 85.3684 22.0098 85.7654 22.1178 86.1347C22.2258 86.5039 22.4758 86.8153 22.813 87.0005L31.3032 91.7814C31.3173 91.7895 31.3311 91.7978 31.3457 91.8052L37.2705 95.1733C36.4189 95.8053 35.7066 96.6058 35.1779 97.525C35.1707 97.5369 35.1643 97.549 35.1574 97.5614C34.9113 98.0057 34.7871 98.5071 34.7974 99.0148H28.1392L17.2893 94.8353C15.6584 94.2042 14.3121 93.0023 13.501 91.453C12.6898 89.9038 12.469 88.1126 12.8796 86.4127L16.8257 70.1512C17.9834 65.9983 19.5804 63.4623 23.8891 61.7828ZM54.4854 95.989C55.5433 95.9455 56.5925 96.1967 57.5161 96.7145C58.4397 97.2322 59.2014 97.9963 59.7163 98.9214C59.7134 98.952 59.6656 99.0144 59.6379 99.0144H50.5122C50.5835 98.5926 50.5633 98.1605 50.4529 97.7472L51.3003 97.1193C52.2238 96.4302 53.334 96.0362 54.4854 95.989ZM41.9412 96.5926C42.1716 96.5887 42.4018 96.5962 42.6307 96.6127H42.6457H42.6471C44.1604 96.7679 45.6344 97.1896 47.0008 97.8584C47.1767 97.9369 47.3382 98.0442 47.4788 98.1758C47.5934 98.2908 47.721 98.4521 47.6763 98.5689C47.5938 98.7032 47.4786 98.8144 47.3414 98.892C47.2042 98.9697 47.0496 99.0113 46.892 99.013H37.6776V98.9705L37.6706 98.9439C38.7185 97.1942 40.3283 96.6203 41.9412 96.5926ZM10.7796 101.883H57.7358C53.4157 103.661 49.3139 105.93 45.5109 108.643C34.377 116.48 24.2433 117.936 23.334 118.053H10.7796C9.7789 118.053 8.78805 117.856 7.86358 117.473C6.93911 117.09 6.09912 116.529 5.39157 115.821C4.68403 115.114 4.12279 114.274 3.7399 113.349C3.35701 112.425 3.15997 111.434 3.16003 110.433V109.502C3.16003 107.482 3.9628 105.544 5.39174 104.115C6.82067 102.686 8.75873 101.883 10.7796 101.883V101.883ZM9.70899 105.504C9.3286 105.504 8.96379 105.655 8.69481 105.924C8.42584 106.193 8.27473 106.557 8.27473 106.938C8.27473 107.318 8.42584 107.683 8.69481 107.952C8.96379 108.221 9.3286 108.372 9.70899 108.372H10.3542C10.7346 108.372 11.0994 108.221 11.3684 107.952C11.6374 107.683 11.7885 107.318 11.7885 106.938C11.7885 106.557 11.6374 106.193 11.3684 105.924C11.0994 105.655 10.7346 105.504 10.3542 105.504H9.70899ZM14.982 105.504C14.6016 105.504 14.2368 105.655 13.9678 105.924C13.6988 106.193 13.5477 106.557 13.5477 106.938C13.5477 107.318 13.6988 107.683 13.9678 107.952C14.2368 108.221 14.6016 108.372 14.982 108.372H33.3192C33.6996 108.372 34.0644 108.221 34.3334 107.952C34.6024 107.683 34.7535 107.318 34.7535 106.938C34.7535 106.557 34.6024 106.193 34.3334 105.924C34.0644 105.655 33.6996 105.504 33.3192 105.504H14.982Z",fill:"#D4D8DD"})),{cockpit:{review:{reachedZeni:SE}}}=t.appLocale.getLocalizedStrings(),yE=s.div`
4496
+ `,{common:{strings:qs,datePicker:lE,texts:cE,errorMessage:{somethingWentWrong:dE}},dateFormat:Xs,cockpit:pE}=t.appLocale.getLocalizedStrings(),{slash:sa}=qs,{visual:{YYYYformat:uE,MMMformat:mE}}=Xs,xE=({historicData:e,companyId:n,newThreadMetadata:r,containerRef:i,sortedThreads:a})=>{const{addThread:c,setOpenThread:l}=p.useContext(t.ThreadsContext),d=p.useRef(null),[u,x]=p.useState(),[m,f]=p.useState(!1),h="monthEndReportHistoricDataPage",y=t.useHandleSelection(t.MONTH_END_REPORT_CANVAS,!1,!1),j=i.current?.getBoundingClientRect(),g=y!=null&&y.coords!=null&&j?{left:y.coords.left-j.left,top:y.coords.top-j.top}:void 0,b=Le.useForm({mode:"all",defaultValues:ra(e),values:ra(e)}),C=()=>{d.current&&d.current.scrollIntoView({behavior:"smooth"})};p.useEffect(()=>{x(J.mapAttachmentFileToAttachmentFilePayload(e.attachmentFile))},[e.attachmentFile]);const S=p.useCallback(()=>{const $=window.getSelection()?.getRangeAt(0),v=t.getSelectionData();if(!$||v==null)return;const R={...r,...v,startPath:v.startPath.join(),endPath:v.endPath.join()},P=`${ft.nanoid()}${t.NEW_THREAD_SUFFIX}`,E=`cockpit_${n}`;c(P,{type:"thread",visibility:"public",id:P,roomId:E,createdAt:new Date,updatedAt:new Date,comments:[],metadata:R,resolved:!1}),l(P)},[c,n,r,l]);return o.jsxRuntimeExports.jsx(Le.FormProvider,{...b,children:o.jsxRuntimeExports.jsx("form",{id:gE(h),children:o.jsxRuntimeExports.jsxs(sE,{children:[o.jsxRuntimeExports.jsx(t.MonthEndReportSection,{previewMode:!0,subject:e.subject,sectionId:wo}),o.jsxRuntimeExports.jsxs(Y$,{id:t.MONTH_END_REPORT_CANVAS,ref:i,children:[o.jsxRuntimeExports.jsxs(Z$,{className:"monthEndReportCanvasWrapper",children:[u!=null?o.jsxRuntimeExports.jsx(q$,{onClick:C,children:o.jsxRuntimeExports.jsx(t.CircleWithAttachmentSuccessIcon,{loading:!1,fileSizeError:m,setFileSizeError:f})}):null,o.jsxRuntimeExports.jsx(t.StandardRegular,{style:{position:"relative"},dangerouslySetInnerHTML:{__html:t.getHTMLWithCommentingSections(e.concatenatedHtml)}}),u!=null?o.jsxRuntimeExports.jsx(t.FileAttachment,{ref:d,fileName:u.name,fileSize:t.base64FileSize(u.data),isRemovable:!1}):null]}),g?o.jsxRuntimeExports.jsx(t.AddThreadFloating,{style:{zIndex:15},coords:g,alignment:y.alignment,onClick:S}):null,o.jsxRuntimeExports.jsx(t.TextHighlightSection,{canvasContainerRef:i,sortedThreads:a,editorMode:!1})]})]})})})},hE=e=>{const{monthEndReportHistoricData:n,reportSentDate:r,onRefresh:i,onNavigateBack:a,onDateChange:c}=e,l=Ae.useTheme(),[d,u]=p.useState(!1),[x,m]=p.useState(),f=p.useRef(null),[h,y]=p.useState(0),[j,g]=p.useState(0),b=t.useDelayUnmount(d,250),{data:C,companyId:S,companyName:$,firstMonthOfFY:v}=n,R=t.getMonthIndex(r.format(Xs.visual.MMMMFormat)),P=Number(r.format(uE)),E=v>R?P-1:P;p.useEffect(()=>{const K=R>0?R-1:12;m(`${je.padStart(K.toString(),2,"0")}${sa}${P}`)},[]);const k={application:"cockpit",companyId:S,entityId:S,tab:"management",isGlobalComment:!1,entityType:"management.monthEndEmail",companyName:$,url:window.location.href,selectedRange:x},{url:F,..._}=k,H={..._},U=n.fetchState==="Not-Started"||n.fetchState==="In-Progress",{threadsRefs:G,sortedThreads:B,threadsPositions:w,observer:N,unresolvedThreadsMap:V,handleRemoveFloatingThread:L}=t.useFloatingThreads(H,f,!1,U),T=p.useRef(null),[O,W]=p.useState(0),ee=p.useCallback(()=>{const K=G.current?.[G.current?.length-1];W(window.scrollY+(K?.getBoundingClientRect()?.bottom??0))},[G]),Y=p.useCallback(()=>{d?g(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):y(Math.min((window.innerWidth-t.FORM_MINIMUM_WIDTH)/2,window.innerWidth-t.FORM_MINIMUM_WIDTH-t.COMMENTS_SECTION_MINIMUM_WIDTH))},[d]);p.useEffect(()=>{Y()},[d,Y]),p.useEffect(()=>(window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",Y)}),[Y]),p.useEffect(()=>(window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[ee]);const{openThread:Z,setOpenThread:X}=p.useContext(t.ThreadsContext);p.useEffect(()=>{Z!=null&&d&&u(!1)},[d,Z,u]);const z=t.getHistoricMonthsList(v,n.historicReportSentDates),me=p.useCallback((K,ie)=>{const ae=v>K?ie+1:ie;c(J.dateFromYearMonthDate(ae,K-1));const xe=K>0?K-1:12;m(`${je.padStart(xe.toString(),2,"0")}${sa}${ae}`)},[v,c]);if(n.fetchState==="Not-Started"||n.fetchState==="In-Progress")return o.jsxRuntimeExports.jsxs(Os,{children:[o.jsxRuntimeExports.jsx(Ds,{children:o.jsxRuntimeExports.jsx(Ns,{onClick:a})}),o.jsxRuntimeExports.jsx(t.BusyIndication,{fetchState:n.fetchState,styles:{margin:t.Space.sp0}})]});if(n.fetchState==="Error")return o.jsxRuntimeExports.jsxs(Os,{children:[o.jsxRuntimeExports.jsx(Ds,{children:o.jsxRuntimeExports.jsx(Ns,{onClick:a})}),o.jsxRuntimeExports.jsx(t.ReloadContainer,{onReload:i,message:dE})]});if(C?.concatenatedHtml==null)return o.jsxRuntimeExports.jsxs(Os,{children:[o.jsxRuntimeExports.jsx(Ds,{children:o.jsxRuntimeExports.jsx(Ns,{onClick:a})}),o.jsxRuntimeExports.jsx(t.ReloadContainer,{onReload:i,message:pE.monthEndReport.insightsNotAvailable})]});const Q=`cockpit_${S}`;return o.jsxRuntimeExports.jsx(at.RoomProvider,{id:Q,children:o.jsxRuntimeExports.jsxs(X$,{children:[o.jsxRuntimeExports.jsx(_l,{companyName:n.companyName,onNavigateBack:a,monthCalendar:{monthAndYears:z,label:`${r.format(mE)} ${E}`,selectedMonth:{month:R,year:E},onChange:me},threadMetadata:H,onAllThreadsClick:()=>{Z!=null&&X(null),u(!0)}}),o.jsxRuntimeExports.jsxs(oE,{ref:T,style:O>0?{height:O}:void 0,children:[o.jsxRuntimeExports.jsx(Q$,{availableWidth:d?j:h}),o.jsxRuntimeExports.jsxs(nE,{children:[o.jsxRuntimeExports.jsx(xE,{historicData:C,newThreadMetadata:k,companyId:S,sortedThreads:B,containerRef:f}),o.jsxRuntimeExports.jsxs(iE,{children:[o.jsxRuntimeExports.jsx(Ga,{user:n.reportLastSentByUser}),o.jsxRuntimeExports.jsx(rE,{}),o.jsxRuntimeExports.jsxs(aE,{children:[lE.businessDay,qs.space,n.data?.reportSentDate!=null?J.getBusinessDayOfDate(n.data.reportSentDate):null,":",qs.space,n.data?.reportSentDate?.format(Xs.visual.MMMDFormat)]})]})]}),b?o.jsxRuntimeExports.jsx(tE,{allThreadsSectionOpen:d,children:o.jsxRuntimeExports.jsx(t.AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${l.colors.grey3}`,boxShadow:`${t.Space.sp0} 1px 2px ${t.Space.sp0} ${t.Colors.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${t.Space.sp5} - ${t.Space.sp5})`,backgroundColor:l.colors.background},threadsContainerStyle:{paddingBottom:t.Space.sp5},collapsibleThreadStyle:{width:`calc(100% - ${t.Space.sp4})`},allowComposer:!1,drawerTitle:cE.comments,filter:H,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(K,ie)=>{X(ie);const ae=B.findIndex(xe=>xe[0]===ie);u(!1),G.current?.[ae]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>u(!1)})}):o.jsxRuntimeExports.jsx(t.FloatingThreads,{observer:N,canvasContainerRef:f,sortedThreads:B,threadsPositions:w,threadsRefs:G,unresolvedThreadsMap:V,editorMode:!1,style:{minWidth:`${t.COMMENTS_SECTION_MINIMUM_WIDTH}px`,position:"relative",height:"fit-content",width:"auto",top:`${f.current?.offsetTop}px`},handleRemoveFloatingThread:L})]})]})})},ra=e=>({[wo]:{recipientEmailList:e.recipientEmailList??[],subject:e.subject??""}}),gE=e=>`${e}_form`,SE=e=>ce.createElement("svg",{width:98,height:121,viewBox:"0 0 98 121",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ce.createElement("path",{d:"M49.2796 0.921875C32.9744 0.921875 19.7096 14.1944 19.7096 30.5087C19.7125 35.7639 21.1132 40.9238 23.7681 45.459C26.423 49.9943 30.2365 53.7418 34.8175 56.317C34.4083 56.561 33.9588 56.7299 33.4901 56.8156C26.6518 57.6437 22.4965 58.8342 19.5952 60.7958C16.8429 62.6568 15.2375 65.1511 14.0552 69.4056C14.0509 69.4209 14.0466 69.4363 14.0431 69.4518L10.0918 85.7362C9.51826 88.1132 9.82738 90.6176 10.9617 92.7837C12.0961 94.9499 13.9785 96.6304 16.2589 97.5129L20.1569 99.0144H10.7796C7.99797 99.0144 5.33033 100.119 3.36345 102.086C1.39658 104.053 0.291567 106.721 0.291504 109.502V110.435C0.291815 113.216 1.39693 115.884 3.36378 117.85C5.33063 119.817 7.99813 120.922 10.7796 120.922H53.2747C53.6551 120.922 54.0199 120.771 54.2889 120.502C54.5579 120.233 54.709 119.868 54.709 119.488C54.709 119.107 54.5579 118.742 54.2889 118.473C54.0199 118.204 53.6551 118.053 53.2747 118.053H34.0289C38.6739 116.234 43.0832 113.862 47.1618 110.989C59.9371 101.998 69.4844 101.883 69.5755 101.883H86.6115C88.6324 101.883 90.5704 102.686 91.9994 104.115C93.4283 105.544 94.2311 107.482 94.2311 109.502V110.435C94.2308 112.455 93.4279 114.393 91.999 115.822C90.5701 117.251 88.6322 118.053 86.6115 118.053H62.8365C62.4561 118.053 62.0913 118.204 61.8223 118.473C61.5533 118.742 61.4022 119.107 61.4022 119.488C61.4022 119.868 61.5533 120.233 61.8223 120.502C62.0913 120.771 62.4561 120.922 62.8365 120.922H86.6115C89.3932 120.922 92.0609 119.817 94.0278 117.85C95.9947 115.883 97.0996 113.215 97.0996 110.433V109.501C97.0996 106.72 95.9947 104.052 94.0278 102.085C92.0609 100.118 89.3932 99.013 86.6115 99.013H77.2552L81.1289 97.5124C83.4101 96.6305 85.2933 94.95 86.4283 92.7836C87.5633 90.6172 87.8728 88.1123 87.2993 85.7348L83.3471 69.4504C83.3435 69.4349 83.3393 69.42 83.335 69.4047C81.0779 61.2834 76.7211 58.4595 63.9108 56.8156C63.6617 56.7812 63.4178 56.7159 63.1848 56.6214C67.9202 54.1003 71.88 50.3378 74.6396 45.7373C77.3993 41.1368 78.8546 35.872 78.8496 30.5073C78.8496 14.1942 65.5848 0.921875 49.2796 0.921875ZM50.0808 3.84176C56.084 4.02211 61.8511 6.22111 66.4504 10.0835C71.0497 13.9459 74.2125 19.2461 75.4278 25.1278C76.6431 31.0094 75.84 37.1291 73.1483 42.498C70.4565 47.867 66.0332 52.1716 60.5931 54.7165C59.1024 53.1795 57.8049 51.1354 57.3184 49.7456C58.4778 48.8954 59.4906 47.8615 60.3167 46.6848C60.9625 46.9809 61.6621 47.1419 62.3724 47.1577C62.8095 47.1603 63.2432 47.0811 63.6512 46.9243C64.5464 46.5762 65.7044 45.6681 66.1373 43.3181C66.2624 42.9869 66.4272 42.6721 66.628 42.3806L66.7279 42.2148C68.7825 38.8099 69.2671 36.263 68.2103 34.43C67.7877 33.7064 67.1417 33.1394 66.3694 32.8142C66.4922 32.3725 66.5552 31.9163 66.5566 31.4579V29.7934C66.5566 24.4319 64.183 20.499 58.861 17.0401C58.612 16.8783 58.3989 16.667 58.235 16.4194C58.071 16.1718 57.9598 15.8931 57.9081 15.6007C57.125 11.0899 54.1033 8.50358 49.6158 8.50358H49.613C42.7338 8.50525 41.4374 13.4875 41.1983 15.6301C41.1628 15.9531 41.0576 16.2647 40.8901 16.5432C40.7227 16.8217 40.4968 17.0607 40.2282 17.2436C36.7881 19.5877 32.8393 23.1325 32.8393 29.7934V31.4579C32.8389 31.9742 32.9165 32.4876 33.0695 32.9808C32.4212 33.2864 31.8789 33.7785 31.5119 34.3941C30.4489 36.1843 30.9504 38.7427 33.0456 42.2153L33.133 42.36C33.3398 42.6607 33.5094 42.9854 33.6381 43.3269C33.9878 45.1621 34.9709 46.0635 35.7344 46.4966C36.4514 46.8873 37.2576 47.0851 38.074 47.0704C38.4264 47.0695 38.7782 47.0401 39.1259 46.9826C39.7172 47.7756 40.3958 48.4996 41.1489 49.141C40.3987 51.1167 38.8989 53.0103 37.368 54.4238C32.9251 52.2043 29.188 48.7913 26.5758 44.5673C23.9635 40.3432 22.5793 35.4752 22.5781 30.5087C22.5811 26.9366 23.3008 23.4015 24.6945 20.1126C26.0883 16.8237 28.1278 13.8479 30.6922 11.3613C33.2567 8.87477 36.294 6.92806 39.6244 5.63643C42.9547 4.34481 46.5104 3.73454 50.0808 3.84176V3.84176ZM49.6125 11.3716H49.6148C52.6985 11.3716 54.5375 12.9592 55.0811 16.0909C55.2008 16.7719 55.4592 17.4211 55.8404 17.998C56.2216 18.575 56.7174 19.0673 57.2969 19.4445C61.7759 22.3556 63.6871 25.4502 63.6871 29.793V31.4574C63.6872 31.8279 63.5967 32.1929 63.4235 32.5204C63.2502 32.8479 62.9995 33.1281 62.6931 33.3366V30.1506C62.6908 29.0631 62.4335 27.9912 61.9419 27.0212C61.4503 26.0511 60.7381 25.2098 59.8624 24.5648C57.1677 22.6285 53.7984 24.3061 53.6562 24.3785C53.605 24.4045 53.5554 24.4335 53.5077 24.4654C51.1056 26.0768 48.8478 26.0308 45.9671 24.3085C44.5197 23.32 41.5837 23.1611 39.9541 24.4266C38.9025 25.1029 38.0381 26.0333 37.4408 27.1317C36.8435 28.2302 36.5325 29.4614 36.5365 30.7118V33.2124C36.2772 32.9993 36.0684 32.7314 35.925 32.428C35.7816 32.1245 35.7073 31.793 35.7073 31.4574V29.793C35.7073 25.5322 37.4846 22.5834 41.8426 19.614C42.4535 19.1982 42.9671 18.6551 43.348 18.0219C43.7289 17.3888 43.9681 16.6806 44.0491 15.9462C44.3864 12.9103 46.258 11.3724 49.6125 11.3716ZM42.9781 26.3894C43.5413 26.3894 44.1076 26.5022 44.3521 26.6774C44.3832 26.6999 44.4156 26.7216 44.4478 26.7414C48.2475 29.0291 51.7046 29.0839 55.0125 26.9086C55.356 26.7553 57.0461 26.072 58.1756 26.8833C58.6864 27.2611 59.1017 27.7533 59.3881 28.3204C59.6746 28.8875 59.8242 29.5138 59.8251 30.1492V39.1638C59.8346 40.5106 59.5775 41.846 59.0687 43.0931C58.5599 44.3401 57.8093 45.4742 56.8603 46.4299C55.9113 47.3856 54.7826 48.1442 53.5392 48.6618C52.2957 49.1794 50.9622 49.4459 49.6153 49.4459C48.2684 49.4459 46.9349 49.1794 45.6914 48.6618C44.448 48.1442 43.3193 47.3856 42.3703 46.4299C41.4213 45.4742 40.6707 44.3401 40.1619 43.0931C39.6531 41.846 39.396 40.5106 39.4055 39.1638L39.4051 30.7118C39.4026 29.9319 39.5988 29.1642 39.9752 28.4812C40.3516 27.7981 40.8958 27.2222 41.5564 26.8077C41.6082 26.7751 41.6578 26.7393 41.7049 26.7003C41.9698 26.4814 42.4723 26.3894 42.9781 26.3894ZM64.8091 35.3101C64.9906 35.3368 65.165 35.3995 65.322 35.4944C65.4791 35.5893 65.6156 35.7146 65.7237 35.8629C65.8941 36.1581 66.2926 37.3823 64.2707 40.7329L64.1755 40.8922C63.8002 41.5108 63.4455 42.0954 63.316 42.798C63.1702 43.5909 62.9076 44.1338 62.6138 44.2495C62.3092 44.316 61.9912 44.2814 61.708 44.151C62.3602 42.5697 62.6953 40.8757 62.6941 39.1652V36.4316C63.4779 36.2303 64.2027 35.8459 64.8091 35.3101V35.3101ZM34.7204 35.4301C35.2551 35.8691 35.8732 36.1952 36.5375 36.3886V39.1652C36.536 40.8714 36.8691 42.5613 37.5179 44.1393C37.3892 44.1108 37.2652 44.0643 37.1495 44.0011C37.0209 43.9282 36.63 43.7063 36.4562 42.7896C36.3224 42.087 35.9653 41.4972 35.5869 40.873L35.5019 40.7329C33.8673 38.0236 33.6415 36.4418 33.9752 35.8652C34.0639 35.7464 34.1755 35.6466 34.3035 35.5719C34.4315 35.4971 34.5733 35.4489 34.7204 35.4301ZM43.572 50.7798C45.2964 51.6836 47.2015 52.1892 49.1472 52.2594C51.0929 52.3295 53.0295 51.9624 54.8145 51.185C55.503 52.7783 56.4174 54.2641 57.5294 55.5966C55.8184 62.7256 51.9726 67.8702 46.0773 70.8823C43.7618 72.0558 41.27 72.8428 38.7005 73.2121V57.0594C40.6315 55.4367 42.498 53.2058 43.572 50.7798ZM59.8769 57.9292C60.5403 58.4659 61.2737 58.9097 62.0568 59.2486C59.9126 69.1211 55.1295 77.1108 47.8239 83.0068C45.0554 85.2523 41.984 87.0961 38.7005 88.4838V84.0797C41.0671 83.8122 45.8154 82.543 51.2503 77.062C51.383 76.9283 51.4881 76.7698 51.5595 76.5954C51.6309 76.4211 51.6673 76.2344 51.6666 76.0461C51.6658 75.8577 51.628 75.6713 51.5552 75.4975C51.4824 75.3238 51.3761 75.1661 51.2424 75.0334C50.9723 74.7656 50.6069 74.616 50.2266 74.6176C49.8462 74.6192 49.4821 74.7718 49.2143 75.0418C44.594 79.7008 40.6461 80.8889 38.7005 81.1832V76.1086C41.683 75.7301 44.5792 74.8464 47.265 73.4955C51.6634 71.2764 57.241 66.7984 59.8769 57.9292ZM35.8339 58.9941V91.0545L33.4518 89.7005V80.5235C33.4518 80.1431 33.3007 79.7783 33.0317 79.5093C32.7628 79.2403 32.398 79.0892 32.0176 79.0892C31.6372 79.0892 31.2724 79.2403 31.0034 79.5093C30.7344 79.7783 30.5833 80.1431 30.5833 80.5235V88.0716L27.1783 86.1354L26.7446 60.8925C27.4993 60.7008 28.3155 60.524 29.199 60.3588L29.1995 60.3593V69.4906C29.1995 69.871 29.3506 70.2358 29.6196 70.5047C29.8885 70.7737 30.2533 70.9248 30.6337 70.9248C31.0141 70.9248 31.3789 70.7737 31.6479 70.5047C31.9169 70.2358 32.068 69.871 32.068 69.4906V59.8938C32.635 59.8141 33.2247 59.7373 33.837 59.6632C34.5352 59.5528 35.2101 59.3267 35.8339 58.9941V58.9941ZM64.8642 59.841C66.498 60.0748 67.9475 60.3316 69.2384 60.6147C69.0142 63.3677 67.9385 70.5555 62.8514 75.4279C62.7154 75.5582 62.6063 75.714 62.5305 75.8864C62.4546 76.0589 62.4135 76.2446 62.4094 76.4329C62.4054 76.6212 62.4384 76.8085 62.5067 76.9841C62.575 77.1596 62.6772 77.32 62.8075 77.4561C62.9378 77.5921 63.0936 77.7012 63.2661 77.777C63.4385 77.8528 63.6242 77.894 63.8125 77.898C64.0008 77.9021 64.1881 77.8691 64.3637 77.8008C64.5392 77.7324 64.6996 77.6302 64.8357 77.4999C70.3593 72.2111 71.7222 64.7855 72.0583 61.3505C73.3289 61.7263 74.5513 62.2488 75.701 62.9075C75.6503 65.9403 74.7925 77.8281 64.76 84.4532C64.5999 84.5557 64.4618 84.689 64.3537 84.8453C64.2455 85.0016 64.1696 85.1779 64.1301 85.3639C64.0907 85.5498 64.0887 85.7418 64.1241 85.9285C64.1595 86.1153 64.2317 86.2931 64.3365 86.4517C64.4413 86.6103 64.5765 86.7465 64.7344 86.8524C64.8923 86.9583 65.0696 87.0317 65.2561 87.0685C65.4426 87.1052 65.6346 87.1045 65.8208 87.0664C66.007 87.0283 66.1838 86.9535 66.3409 86.8465C71.6878 83.3153 75.4975 77.9065 77.3575 71.2059C77.8907 69.2799 78.2534 67.3108 78.4416 65.3213C79.4455 66.6635 80.0371 68.2544 80.5654 70.1498L84.512 86.4113C84.9225 88.1121 84.7011 89.904 83.8891 91.4537C83.077 93.0034 81.7296 94.2053 80.0976 94.8358L69.314 99.013H62.5825C62.5992 98.5058 62.4787 98.0035 62.2337 97.5591C61.7499 96.6821 61.1164 95.8965 60.362 95.2377L62.8458 93.7904C65.7686 95.2672 69.0004 96.0285 72.275 96.0114C72.6684 96.0114 73.0714 96.0007 73.4819 95.9777C73.6716 95.9697 73.8579 95.924 74.0299 95.8434C74.2018 95.7628 74.3561 95.6488 74.4837 95.5081C74.6112 95.3674 74.7096 95.2027 74.773 95.0237C74.8364 94.8446 74.8636 94.6548 74.8531 94.4652C74.8426 94.2755 74.7945 94.0899 74.7116 93.919C74.6287 93.7481 74.5127 93.5953 74.3703 93.4696C74.228 93.3439 74.062 93.2477 73.8822 93.1867C73.7023 93.1256 73.5121 93.1009 73.3227 93.1139C70.8018 93.2547 68.2788 92.8773 65.9095 92.005L74.692 86.8875C75.0183 86.6948 75.2549 86.3808 75.3504 86.0141C75.4459 85.6474 75.3924 85.2578 75.2015 84.9304C75.0107 84.6031 74.6981 84.3645 74.332 84.2669C73.9659 84.1693 73.576 84.2205 73.2475 84.4093L57.5066 93.5817C56.1863 93.1236 54.7739 92.9966 53.3931 93.2117C52.0124 93.4269 50.7055 93.9776 49.5873 94.8157L48.6643 95.5001C48.5304 95.4205 48.3911 95.3438 48.2422 95.2723C47.9751 95.1448 47.7037 95.0231 47.428 94.9067C56.5064 90.843 59.3085 85.1014 59.4385 84.8249C59.595 84.4822 59.6103 84.0917 59.4813 83.7378C59.3522 83.3838 59.0891 83.0949 58.7488 82.9334C58.4084 82.7719 58.0182 82.7507 57.6624 82.8745C57.3066 82.9984 57.0138 83.2572 56.8473 83.5951C56.8392 83.6116 56.0169 85.2804 53.8191 87.3596C51.8123 89.2583 48.215 91.8914 42.4529 93.732C41.8642 93.7075 41.2745 93.7357 40.6908 93.8161L38.7005 92.6844V91.5671C42.6145 90.0729 46.2659 87.9655 49.5177 85.324C54.9887 80.9385 62.0006 72.9935 64.8642 59.841ZM23.8891 61.7828L24.2795 84.4873L24.2048 84.4481C23.8664 84.265 23.4693 84.2235 23.1004 84.3327C22.7315 84.4419 22.4209 84.6929 22.2367 85.0306C22.0525 85.3684 22.0098 85.7654 22.1178 86.1347C22.2258 86.5039 22.4758 86.8153 22.813 87.0005L31.3032 91.7814C31.3173 91.7895 31.3311 91.7978 31.3457 91.8052L37.2705 95.1733C36.4189 95.8053 35.7066 96.6058 35.1779 97.525C35.1707 97.5369 35.1643 97.549 35.1574 97.5614C34.9113 98.0057 34.7871 98.5071 34.7974 99.0148H28.1392L17.2893 94.8353C15.6584 94.2042 14.3121 93.0023 13.501 91.453C12.6898 89.9038 12.469 88.1126 12.8796 86.4127L16.8257 70.1512C17.9834 65.9983 19.5804 63.4623 23.8891 61.7828ZM54.4854 95.989C55.5433 95.9455 56.5925 96.1967 57.5161 96.7145C58.4397 97.2322 59.2014 97.9963 59.7163 98.9214C59.7134 98.952 59.6656 99.0144 59.6379 99.0144H50.5122C50.5835 98.5926 50.5633 98.1605 50.4529 97.7472L51.3003 97.1193C52.2238 96.4302 53.334 96.0362 54.4854 95.989ZM41.9412 96.5926C42.1716 96.5887 42.4018 96.5962 42.6307 96.6127H42.6457H42.6471C44.1604 96.7679 45.6344 97.1896 47.0008 97.8584C47.1767 97.9369 47.3382 98.0442 47.4788 98.1758C47.5934 98.2908 47.721 98.4521 47.6763 98.5689C47.5938 98.7032 47.4786 98.8144 47.3414 98.892C47.2042 98.9697 47.0496 99.0113 46.892 99.013H37.6776V98.9705L37.6706 98.9439C38.7185 97.1942 40.3283 96.6203 41.9412 96.5926ZM10.7796 101.883H57.7358C53.4157 103.661 49.3139 105.93 45.5109 108.643C34.377 116.48 24.2433 117.936 23.334 118.053H10.7796C9.7789 118.053 8.78805 117.856 7.86358 117.473C6.93911 117.09 6.09912 116.529 5.39157 115.821C4.68403 115.114 4.12279 114.274 3.7399 113.349C3.35701 112.425 3.15997 111.434 3.16003 110.433V109.502C3.16003 107.482 3.9628 105.544 5.39174 104.115C6.82067 102.686 8.75873 101.883 10.7796 101.883V101.883ZM9.70899 105.504C9.3286 105.504 8.96379 105.655 8.69481 105.924C8.42584 106.193 8.27473 106.557 8.27473 106.938C8.27473 107.318 8.42584 107.683 8.69481 107.952C8.96379 108.221 9.3286 108.372 9.70899 108.372H10.3542C10.7346 108.372 11.0994 108.221 11.3684 107.952C11.6374 107.683 11.7885 107.318 11.7885 106.938C11.7885 106.557 11.6374 106.193 11.3684 105.924C11.0994 105.655 10.7346 105.504 10.3542 105.504H9.70899ZM14.982 105.504C14.6016 105.504 14.2368 105.655 13.9678 105.924C13.6988 106.193 13.5477 106.557 13.5477 106.938C13.5477 107.318 13.6988 107.683 13.9678 107.952C14.2368 108.221 14.6016 108.372 14.982 108.372H33.3192C33.6996 108.372 34.0644 108.221 34.3334 107.952C34.6024 107.683 34.7535 107.318 34.7535 106.938C34.7535 106.557 34.6024 106.193 34.3334 105.924C34.0644 105.655 33.6996 105.504 33.3192 105.504H14.982Z",fill:"#D4D8DD"})),{cockpit:{review:{reachedZeni:yE}}}=t.appLocale.getLocalizedStrings(),fE=s.div`
4497
4497
  justify-content: center;
4498
4498
  align-items: center;
4499
4499
  display: flex;
@@ -4504,25 +4504,25 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4504
4504
  p {
4505
4505
  margin: 0;
4506
4506
  }
4507
- `,fE=s(gE)`
4507
+ `,CE=s(SE)`
4508
4508
  color: ${e=>e.theme.colors.hero};
4509
- `,CE=s(t.StandardRegular)`
4509
+ `,jE=s(t.StandardRegular)`
4510
4510
  color: ${e=>e.theme.colors.grey1};
4511
- `,jE=()=>o.jsxRuntimeExports.jsxs(yE,{children:[o.jsxRuntimeExports.jsx(fE,{}),o.jsxRuntimeExports.jsx(CE,{children:SE})]}),{cockpit:{review:{header:{miscategorizedTransactions:bE,uncategorizedTransactions:RE}}},common:{headers:{auditScore:$E},texts:{name:EE,reviewVendor:vE,warnings:wE}}}=t.appLocale.getLocalizedStrings(),Yt=[{key:"companyName",value:EE,sortOrder:"ascending",width:new t.ResponsiveSized(400,400),isThreadAllowed:!0},{key:"auditScore",value:$E,sortOrder:"descending",width:new t.ResponsiveSized(235,235),isThreadAllowed:!0},{key:"uncategorized",value:RE,sortOrder:"ascending",width:new t.ResponsiveSized(300,300),isThreadAllowed:!0},{key:"miscategorized",value:bE,sortOrder:"ascending",width:new t.ResponsiveSized(300,300),isThreadAllowed:!0},{key:"reviewVendor",value:vE,sortOrder:"ascending",width:new t.ResponsiveSized(225,225),isThreadAllowed:!0},{key:"warnings",value:wE,sortOrder:"descending",width:new t.ResponsiveSized(125,125),isThreadAllowed:!0}];Yt.map(e=>e.key);function kE({companyNameSticky:e,isReviewVendorColumnVisible:n,sortConfig:r,onColumnSortConfigChanged:i}){const a=t.useWindowSizeContext(),[c,l]=p.useState(je.cloneDeep(n?Yt:Yt.filter(u=>u.key!=="reviewVendor")));p.useEffect(()=>{const u=[...c];for(const x of u)x.key===r.sortKey&&(x.sortOrder=r.sortOrder);l(u)},[r.sortKey,r.sortOrder]);const d=(u,x)=>{let m=x;r.sortKey===u&&(m=x==="ascending"?"descending":"ascending"),i(u,m??void 0)};return o.jsxRuntimeExports.jsx(LE,{height:ho,children:c.map(u=>o.jsxRuntimeExports.jsxs(AE,{sortDataValue:r.sortKey,actualDataValue:u.key,widthSize:u.width,companyNameSticky:e&&u.key==="companyName",windowSize:a,children:[o.jsxRuntimeExports.jsxs(DE,{onClick:()=>d(u.key,u.sortOrder),disabled:u.sortOrder==null,children:[o.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:u.value}),u.sortOrder!=null&&o.jsxRuntimeExports.jsx(IE,{sortDataValue:r.sortKey,headerdata:u,children:o.jsxRuntimeExports.jsx(t.SvgArrowTailTop,{width:12,height:12})})]}),o.jsxRuntimeExports.jsx(PE,{isVisible:r.sortKey===u.key&&r.sortKey!=="companyName",children:o.jsxRuntimeExports.jsx(TE,{onClick:()=>d("companyName","ascending")})})]},u.key))})}const TE=s(t.SvgCloseRound)`
4511
+ `,bE=()=>o.jsxRuntimeExports.jsxs(fE,{children:[o.jsxRuntimeExports.jsx(CE,{}),o.jsxRuntimeExports.jsx(jE,{children:yE})]}),{cockpit:{review:{header:{miscategorizedTransactions:RE,uncategorizedTransactions:$E}}},common:{headers:{auditScore:EE},texts:{name:vE,reviewVendor:wE,warnings:kE}}}=t.appLocale.getLocalizedStrings(),Yt=[{key:"companyName",value:vE,sortOrder:"ascending",width:new t.ResponsiveSized(400,400),isThreadAllowed:!0},{key:"auditScore",value:EE,sortOrder:"descending",width:new t.ResponsiveSized(235,235),isThreadAllowed:!0},{key:"uncategorized",value:$E,sortOrder:"ascending",width:new t.ResponsiveSized(300,300),isThreadAllowed:!0},{key:"miscategorized",value:RE,sortOrder:"ascending",width:new t.ResponsiveSized(300,300),isThreadAllowed:!0},{key:"reviewVendor",value:wE,sortOrder:"ascending",width:new t.ResponsiveSized(225,225),isThreadAllowed:!0},{key:"warnings",value:kE,sortOrder:"descending",width:new t.ResponsiveSized(125,125),isThreadAllowed:!0}];Yt.map(e=>e.key);function TE({companyNameSticky:e,isReviewVendorColumnVisible:n,sortConfig:r,onColumnSortConfigChanged:i}){const a=t.useWindowSizeContext(),[c,l]=p.useState(je.cloneDeep(n?Yt:Yt.filter(u=>u.key!=="reviewVendor")));p.useEffect(()=>{const u=[...c];for(const x of u)x.key===r.sortKey&&(x.sortOrder=r.sortOrder);l(u)},[r.sortKey,r.sortOrder]);const d=(u,x)=>{let m=x;r.sortKey===u&&(m=x==="ascending"?"descending":"ascending"),i(u,m??void 0)};return o.jsxRuntimeExports.jsx(AE,{height:ho,children:c.map(u=>o.jsxRuntimeExports.jsxs(DE,{sortDataValue:r.sortKey,actualDataValue:u.key,widthSize:u.width,companyNameSticky:e&&u.key==="companyName",windowSize:a,children:[o.jsxRuntimeExports.jsxs(OE,{onClick:()=>d(u.key,u.sortOrder),disabled:u.sortOrder==null,children:[o.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:u.value}),u.sortOrder!=null&&o.jsxRuntimeExports.jsx(LE,{sortDataValue:r.sortKey,headerdata:u,children:o.jsxRuntimeExports.jsx(t.SvgArrowTailTop,{width:12,height:12})})]}),o.jsxRuntimeExports.jsx(IE,{isVisible:r.sortKey===u.key&&r.sortKey!=="companyName",children:o.jsxRuntimeExports.jsx(PE,{onClick:()=>d("companyName","ascending")})})]},u.key))})}const PE=s(t.SvgCloseRound)`
4512
4512
  cursor: pointer;
4513
4513
  width: 12px;
4514
4514
  height: 12px;
4515
- `,PE=s.div`
4515
+ `,IE=s.div`
4516
4516
  display: ${e=>e.isVisible?"flex":"none"};
4517
4517
  align-items: center;
4518
4518
  padding-top: 2px;
4519
- `,IE=s.div`
4519
+ `,LE=s.div`
4520
4520
  display: flex;
4521
4521
  align-items: center;
4522
4522
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
4523
4523
 
4524
4524
  ${e=>e.headerdata.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"}
4525
- `,LE=s(t.SmallRegular)`
4525
+ `,AE=s(t.SmallRegular)`
4526
4526
  top: 0;
4527
4527
  left: 0;
4528
4528
  width: fit-content;
@@ -4535,7 +4535,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4535
4535
  padding: ${t.Space.sp3} ${t.Space.sp4} ${t.Space.sp3} ${t.Space.sp0};
4536
4536
  position: sticky;
4537
4537
  color: ${e=>e.theme.colors.grey1};
4538
- `,AE=s.div`
4538
+ `,DE=s.div`
4539
4539
  color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.hero};
4540
4540
  width: ${e=>e.widthSize.valuePx(e.windowSize)};
4541
4541
  max-width: ${e=>e.widthSize.valuePx(e.windowSize)};
@@ -4558,58 +4558,58 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4558
4558
  `:ve.css`
4559
4559
  padding-left: ${t.Space.sp0};
4560
4560
  `};
4561
- `,DE=s(t.StandardRegular)`
4561
+ `,OE=s(t.StandardRegular)`
4562
4562
  display: flex;
4563
4563
  cursor: ${e=>e.disabled?"default":"pointer"};
4564
4564
  gap: 5px;
4565
4565
  &:hover {
4566
4566
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
4567
4567
  }
4568
- `,Ms=t.appLocale.getLocalizedStrings(),OE=s.div`
4568
+ `,Ms=t.appLocale.getLocalizedStrings(),NE=s.div`
4569
4569
  display: flex;
4570
4570
  align-items: center;
4571
4571
  column-gap: ${t.Space.sp2};
4572
4572
  cursor: pointer;
4573
- `,NE=s.div`
4573
+ `,ME=s.div`
4574
4574
  display: flex;
4575
4575
  height: ${t.Space.sp7};
4576
- `,ME=s.div`
4576
+ `,FE=s.div`
4577
4577
  display: flex;
4578
4578
  flex-direction: column;
4579
- `,FE=s(t.LargeRegular)`
4579
+ `,zE=s(t.LargeRegular)`
4580
4580
  display: flex;
4581
4581
  align-items: center;
4582
4582
  color: ${e=>e.theme.colors.primary};
4583
- `,zE=s(t.SmallRegular)`
4583
+ `,_E=s(t.SmallRegular)`
4584
4584
  display: flex;
4585
4585
  align-items: center;
4586
- `,_E=({auditSummary:e,onClickScore:n})=>{const r=Ae.useTheme(),i=e.auditScorePercentage<=50?t.Colors.important:e.auditScorePercentage<=85?t.Colors.alert:t.Colors.success;return o.jsxRuntimeExports.jsx(OE,{onClick:n,auditPercentage:e.auditScorePercentage,children:e.auditReportLastGeneratedDate!=null?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(NE,{children:o.jsxRuntimeExports.jsx(ko.CircularProgressbar,{value:e.auditScorePercentage,text:`${Math.ceil(e.auditScorePercentage)}%`,strokeWidth:10,styles:ko.buildStyles({rotation:.5,strokeLinecap:"butt",pathColor:i,textColor:r.colors.primary,trailColor:r.colors.grey3,textSize:t.textStyles.extraLargeRegular.fontSize})})}),o.jsxRuntimeExports.jsxs(ME,{children:[o.jsxRuntimeExports.jsx(FE,{children:`${e.fixesRequired} ${Ms.cockpit.review.pendingIssues}`}),o.jsxRuntimeExports.jsx(zE,{children:e.auditReportLastGeneratedDate.format(Ms.dateFormat.visual.MMMDCommaYYYYformat)})]})]}):o.jsxRuntimeExports.jsx(t.Button,{label:Ms.cockpit.review.getScore,onClick:n,style:{backgroundColor:r.colors.grey5},textStyle:{...t.textStyles.smallMedium.cssObject},size:"small",variant:"outline"})})},BE=s.div`
4586
+ `,BE=({auditSummary:e,onClickScore:n})=>{const r=Ae.useTheme(),i=e.auditScorePercentage<=50?t.Colors.important:e.auditScorePercentage<=85?t.Colors.alert:t.Colors.success;return o.jsxRuntimeExports.jsx(NE,{onClick:n,auditPercentage:e.auditScorePercentage,children:e.auditReportLastGeneratedDate!=null?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(ME,{children:o.jsxRuntimeExports.jsx(ko.CircularProgressbar,{value:e.auditScorePercentage,text:`${Math.ceil(e.auditScorePercentage)}%`,strokeWidth:10,styles:ko.buildStyles({rotation:.5,strokeLinecap:"butt",pathColor:i,textColor:r.colors.primary,trailColor:r.colors.grey3,textSize:t.textStyles.extraLargeRegular.fontSize})})}),o.jsxRuntimeExports.jsxs(FE,{children:[o.jsxRuntimeExports.jsx(zE,{children:`${e.fixesRequired} ${Ms.cockpit.review.pendingIssues}`}),o.jsxRuntimeExports.jsx(_E,{children:e.auditReportLastGeneratedDate.format(Ms.dateFormat.visual.MMMDCommaYYYYformat)})]})]}):o.jsxRuntimeExports.jsx(t.Button,{label:Ms.cockpit.review.getScore,onClick:n,style:{backgroundColor:r.colors.grey5},textStyle:{...t.textStyles.smallMedium.cssObject},size:"small",variant:"outline"})})},WE=s.div`
4587
4587
  padding: ${t.Space.sp0} ${t.Space.sp2};
4588
4588
  color: ${e=>e.color};
4589
4589
  border-radius: ${t.Space.sp1};
4590
4590
  border: ${e=>`1px solid ${e.color}`};
4591
- `,WE=s.div`
4591
+ `,VE=s.div`
4592
4592
  position: relative;
4593
4593
  cursor: ${e=>e.disabled?"default":"pointer"};
4594
4594
  &:hover .tick-icon {
4595
4595
  color: ${e=>e.theme.colors.grey3};
4596
4596
  }
4597
- `,VE=({color:e,disabled:n,text:r,onClick:i})=>o.jsxRuntimeExports.jsx(WE,{onClick:()=>n?!1:i(),disabled:n,children:o.jsxRuntimeExports.jsx(BE,{disabled:n,color:e,className:"review-vendor-tag",children:o.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:r})})}),{common:{completeText:UE,incompleteText:HE}}=t.appLocale.getLocalizedStrings(),KE=s.div`
4597
+ `,UE=({color:e,disabled:n,text:r,onClick:i})=>o.jsxRuntimeExports.jsx(VE,{onClick:()=>n?!1:i(),disabled:n,children:o.jsxRuntimeExports.jsx(WE,{disabled:n,color:e,className:"review-vendor-tag",children:o.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:r})})}),{common:{completeText:HE,incompleteText:KE}}=t.appLocale.getLocalizedStrings(),GE=s.div`
4598
4598
  display: flex;
4599
4599
  align-items: center;
4600
4600
  column-gap: ${t.Space.sp4};
4601
- `,GE=({isReviewComplete:e,onReviewVendorTagClicked:n})=>o.jsxRuntimeExports.jsx(KE,{children:o.jsxRuntimeExports.jsx(VE,{text:e?UE:HE,disabled:e,color:t.getReviewVendorTagColor(e),onClick:n})}),YE=s.div`
4601
+ `,YE=({isReviewComplete:e,onReviewVendorTagClicked:n})=>o.jsxRuntimeExports.jsx(GE,{children:o.jsxRuntimeExports.jsx(UE,{text:e?HE:KE,disabled:e,color:t.getReviewVendorTagColor(e),onClick:n})}),ZE=s.div`
4602
4602
  padding: ${t.Space.sp0} ${t.Space.sp2};
4603
4603
  color: ${e=>e.disabled?e.theme.colors.grey2:e.color};
4604
4604
  border-radius: ${t.Space.sp1};
4605
4605
  border: ${e=>`1px solid ${e.disabled?e.theme.colors.grey3:e.color}`};
4606
- `,ZE=s.div`
4606
+ `,qE=s.div`
4607
4607
  position: relative;
4608
4608
  cursor: ${e=>e.disabled?"default":"pointer"};
4609
4609
  &:hover .tick-icon {
4610
4610
  color: ${e=>e.theme.colors.grey3};
4611
4611
  }
4612
- `,qE=s(t.SvgTickRound)`
4612
+ `,XE=s(t.SvgTickRound)`
4613
4613
  position: absolute;
4614
4614
  top: ${t.Space.sp0};
4615
4615
  right: ${t.Space.sp0};
@@ -4619,36 +4619,36 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4619
4619
  color: ${e=>e.theme.colors.grey3};
4620
4620
  background-color: ${e=>e.theme.colors.grey5};
4621
4621
  border-radius: 50%;
4622
- `,ia=({color:e,disabled:n,text:r,showTickForDisabled:i,onClick:a})=>o.jsxRuntimeExports.jsxs(ZE,{onClick:()=>!n&&a!=null?a():!1,disabled:n,children:[o.jsxRuntimeExports.jsx(YE,{disabled:n,color:e,children:o.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:r})}),n&&i?o.jsxRuntimeExports.jsx(qE,{className:"tick-icon"}):null]}),{common:{texts:{expense:XE,income:QE}}}=t.appLocale.getLocalizedStrings(),JE=s.div`
4622
+ `,ia=({color:e,disabled:n,text:r,showTickForDisabled:i,onClick:a})=>o.jsxRuntimeExports.jsxs(qE,{onClick:()=>!n&&a!=null?a():!1,disabled:n,children:[o.jsxRuntimeExports.jsx(ZE,{disabled:n,color:e,children:o.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:r})}),n&&i?o.jsxRuntimeExports.jsx(XE,{className:"tick-icon"}):null]}),{common:{texts:{expense:QE,income:JE}}}=t.appLocale.getLocalizedStrings(),e5=s.div`
4623
4623
  display: flex;
4624
4624
  align-items: center;
4625
4625
  column-gap: ${t.Space.sp4};
4626
- `,e5=s.div`
4626
+ `,t5=s.div`
4627
4627
  border-left: 1px solid ${e=>e.theme.colors.grey2};
4628
4628
  height: ${t.Space.sp4};
4629
- `,aa=({income:e,expense:n,showTickForDisabled:r=!0,onTransactionTagClicked:i})=>o.jsxRuntimeExports.jsxs(JE,{children:[o.jsxRuntimeExports.jsx(ia,{text:XE,showTickForDisabled:r,disabled:!n,color:t.getTransactionTagColor("expense"),onClick:()=>i?.("expense")}),o.jsxRuntimeExports.jsx(e5,{}),o.jsxRuntimeExports.jsx(ia,{text:QE,disabled:!e,showTickForDisabled:r,color:t.getTransactionTagColor("income"),onClick:()=>i?.("income")})]}),t5=({companyId:e,warningsCount:n,onClick:r})=>{const i=()=>{r(e)};return o.jsxRuntimeExports.jsx(o5,{onClick:i,children:n===0?o.jsxRuntimeExports.jsx(s5,{}):o.jsxRuntimeExports.jsxs(i5,{children:[o.jsxRuntimeExports.jsx(r5,{})," ",o.jsxRuntimeExports.jsx(n5,{children:n})]})})},o5=s.div`
4629
+ `,aa=({income:e,expense:n,showTickForDisabled:r=!0,onTransactionTagClicked:i})=>o.jsxRuntimeExports.jsxs(e5,{children:[o.jsxRuntimeExports.jsx(ia,{text:QE,showTickForDisabled:r,disabled:!n,color:t.getTransactionTagColor("expense"),onClick:()=>i?.("expense")}),o.jsxRuntimeExports.jsx(t5,{}),o.jsxRuntimeExports.jsx(ia,{text:JE,disabled:!e,showTickForDisabled:r,color:t.getTransactionTagColor("income"),onClick:()=>i?.("income")})]}),o5=({companyId:e,warningsCount:n,onClick:r})=>{const i=()=>{r(e)};return o.jsxRuntimeExports.jsx(n5,{onClick:i,children:n===0?o.jsxRuntimeExports.jsx(r5,{}):o.jsxRuntimeExports.jsxs(a5,{children:[o.jsxRuntimeExports.jsx(i5,{})," ",o.jsxRuntimeExports.jsx(s5,{children:n})]})})},n5=s.div`
4630
4630
  display: flex;
4631
4631
  align-items: center;
4632
4632
  cursor: pointer;
4633
- `,n5=s(t.LargeRegular)`
4633
+ `,s5=s(t.LargeRegular)`
4634
4634
  display: flex;
4635
4635
  margin-left: ${t.Space.sp1};
4636
- `,s5=s(t.SvgTickRound)`
4636
+ `,r5=s(t.SvgTickRound)`
4637
4637
  width: ${t.Space.sp3};
4638
4638
  height: ${t.Space.sp3};
4639
4639
  color: ${t.Colors.success};
4640
- `,r5=s(t.SvgHighImportance)`
4640
+ `,i5=s(t.SvgHighImportance)`
4641
4641
  width: ${t.Space.sp3};
4642
4642
  height: ${t.Space.sp3};
4643
4643
  color: ${t.Colors.important};
4644
- `,i5=s.div`
4644
+ `,a5=s.div`
4645
4645
  display: flex;
4646
4646
  align-items: center;
4647
- `,{cockpit:{review:{selectUncategorizedAccounts:a5}},dateFormat:{visual:{MMMYYYYFormat:l5},analytics:{MMSlashDDSlashYYYYFormat:c5}}}=t.appLocale.getLocalizedStrings(),d5=({companyView:e,companyNameSticky:n,isReviewVendorColumnVisible:r,totalHeight:i,analytics:a,addThreadRequestThreadId:c,setNoteData:l,setElementRef:d,setAddThreadRequestThreadId:u,onTransactionTagClicked:x,onClickAuditScore:m,onClickWarningsCount:f,onCompanyNameClicked:h,onUncategorizedAccountsErrorClick:y,onReviewVendorTagClicked:j})=>{const g=t.useWindowSizeContext(),{name:b,companyId:C}=e,S=`cockpit_${C}`,$="audit.notes",{threads:v,isLoading:R}=t.useFilteredThreads({entityType:$,companyId:C},!1),{openThread:P,threads:E,addThread:k,removeThread:F,setOpenThread:_,setRequestToOpenThread:H}=p.useContext(t.ThreadsContext),U=p.useRef(null),G=P!==null?E.get(P):null,B=P?.includes(C)===!0,w=P!=null&&E.get(P)==null&&B,N=c!=null&&E.get(c)?.metadata.companyId===C,V=p.useCallback(()=>{P?.includes(t.NEW_THREAD_SUFFIX)===!0&&F(P),c!=null&&u(void 0)},[c,P,F,u]),L=z=>o.jsxRuntimeExports.jsx(t.StickyThread,{isElementThreadOpen:z.isElementThreadOpen??!1,isElementThreadPresent:z.isElementThreadPresent??!1,itemKey:z.itemKey,elementThreadId:z.elementThreadId??"",roomId:S,addThreadRequestThreadId:c,openThreadId:P,threadStyle:z.threadStyle,openThreadMetadata:G?.metadata??null,onElementClick:O,onAddThreadClick:W}),T=p.useCallback(z=>{if(z===P)_(null);else if(E.has(z))_(z);else if(z.includes(t.NEW_THREAD_SUFFIX)){const[me,Q]=z.replace(t.NEW_THREAD_SUFFIX,"").split("."),K=yo(Zt(me),J.toReviewColumnKeyType(Q),C,b);k(z,{type:"thread",visibility:"public",id:z,roomId:S,createdAt:new Date,updatedAt:new Date,comments:[],metadata:K,resolved:!1}),_(z)}},[C,b,P,E,k,_,S]),O=p.useCallback((z,me,Q=!1)=>{const K=Yt.find(ie=>ie.key===me);if(H(null),K!=null&&(z.type==="contextmenu"||Q===!0)){if(K.isThreadAllowed===!1)return;V(),z.preventDefault(),z.stopPropagation();const ie=t.toCollaborationEntityType({tab:"audit",key:K.key}),ae=[...t.getFilteredThreads(E,{entityType:ie,companyId:C},"both")],xe=ae.length>0&&ae[0].length>0?ae[0][0]:Ne("audit",K.key,C);E.has(xe)?T(xe):c===xe?u(void 0):(u(xe),_(null))}},[E,C,c,T,u,_,H,V]),W=p.useCallback((z,me)=>{z.stopPropagation();const Q=Ne("audit",me,C);u(void 0),T(Q)},[C,u,T]),ee=()=>{h(e)},Y=p.useCallback(()=>{y(e.primaryEmailDomain)},[y,e.primaryEmailDomain]),Z=()=>{if(e.auditSummary.auditReportLastGeneratedDate==null){const z=J.dateNow().startOf("month").subtract(1,"date").format(l5),me=e.controllers?.map(Q=>`${Q.user.firstName} ${Q.user.middleName} ${Q.user.lastName}`)??[];a.trackGetAuditScore(!0,e.name,z,me,J.dateNow().format(c5))}m(e.companyId)},X=e.onboardingInfo?.uncategorizedExpenseAccountIdentified===!0&&e.onboardingInfo?.uncategorizedIncomeAccountIdentified===!0;return o.jsxRuntimeExports.jsx(Ft,{onClickAway:()=>{H(null),c!=null&&(u(void 0),c.includes(t.NEW_THREAD_SUFFIX)&&F(c))},children:o.jsxRuntimeExports.jsx(h5,{windowSize:g,isThreadOpen:B||N,totalHeight:i,isCreationInProgress:w,children:Yt.map((z,me)=>{const Q=t.toCollaborationEntityType({tab:"audit",key:z.key}),K=Yt.length-2<=me,ie=[...t.getFilteredThreads(E,{entityType:Q,companyId:C},"both")],ae=ie.length>0&&ie[0].length>0?ie[0][0]:Ne("audit",z.key,C),xe=E.get(ae),Re=xe!=null&&xe.resolved===!1,A=ae===P,pe=c===ae;switch(z.key){case"companyName":return o.jsxRuntimeExports.jsxs(u5,{companyNameSticky:n,columnWidth:z.width,windowSize:g,isThreadOpen:A||pe,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),ref:le=>{d(C,z.key,le)},children:[o.jsxRuntimeExports.jsxs(x5,{ref:U,children:[o.jsxRuntimeExports.jsx(m5,{onClick:le=>{le.preventDefault(),ee()},children:b}),o.jsxRuntimeExports.jsx(t.ThreadComponent,{anchorRef:U,isElementThreadOpen:A,roomId:S,openThreadId:P,openThreadMetadata:G?.metadata??null})]}),o.jsxRuntimeExports.jsxs(g5,{className:"notesIcon",onClick:le=>{le.preventDefault(),l({roomId:S,companyId:C,companyName:b,entityType:$})},children:[o.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:v.length,isLoading:R}),o.jsxRuntimeExports.jsx(S5,{})]}),o.jsxRuntimeExports.jsx(t.ThreadDotComponent,{isElementThreadPresent:Re,itemKey:z.key,style:{left:t.Space.sp4},onElementClick:O}),o.jsxRuntimeExports.jsx(t.AddThreadsComponent,{elementThreadId:Ne("audit",z.key,C),addThreadRequestThreadId:c,itemKey:z.key,onAddThreadClick:W})]},ae);case"auditScore":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(_E,{auditSummary:e.auditSummary,onClickScore:Z}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);case"uncategorized":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[X===!0?o.jsxRuntimeExports.jsx(aa,{onTransactionTagClicked:le=>x(e,le,"uncategorized"),...e.uncategorizedTransactions}):o.jsxRuntimeExports.jsxs(f5,{onClick:Y,children:[o.jsxRuntimeExports.jsx(t.SvgHighImportance,{className:"alert-icon",width:t.sp[3],height:t.sp[3]}),o.jsxRuntimeExports.jsx(y5,{children:a5})]}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);case"miscategorized":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(aa,{onTransactionTagClicked:le=>x(e,le,"miscategorized"),...e.miscategorizedTransactions}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);case"reviewVendor":return r?o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(p5,{widthSize:z.width,windowSize:g,children:o.jsxRuntimeExports.jsx(GE,{onReviewVendorTagClicked:()=>j(e),isReviewComplete:!e.isVendorReviewReqiured})}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae):null;case"warnings":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(t5,{companyId:e.companyId,warningsCount:J.getAuditWarningsCount(e),onClick:f}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);default:return null}})})})},p5=s.div`
4647
+ `,{cockpit:{review:{selectUncategorizedAccounts:l5}},dateFormat:{visual:{MMMYYYYFormat:c5},analytics:{MMSlashDDSlashYYYYFormat:d5}}}=t.appLocale.getLocalizedStrings(),p5=({companyView:e,companyNameSticky:n,isReviewVendorColumnVisible:r,totalHeight:i,analytics:a,addThreadRequestThreadId:c,setNoteData:l,setElementRef:d,setAddThreadRequestThreadId:u,onTransactionTagClicked:x,onClickAuditScore:m,onClickWarningsCount:f,onCompanyNameClicked:h,onUncategorizedAccountsErrorClick:y,onReviewVendorTagClicked:j})=>{const g=t.useWindowSizeContext(),{name:b,companyId:C}=e,S=`cockpit_${C}`,$="audit.notes",{threads:v,isLoading:R}=t.useFilteredThreads({entityType:$,companyId:C},!1),{openThread:P,threads:E,addThread:k,removeThread:F,setOpenThread:_,setRequestToOpenThread:H}=p.useContext(t.ThreadsContext),U=p.useRef(null),G=P!==null?E.get(P):null,B=P?.includes(C)===!0,w=P!=null&&E.get(P)==null&&B,N=c!=null&&E.get(c)?.metadata.companyId===C,V=p.useCallback(()=>{P?.includes(t.NEW_THREAD_SUFFIX)===!0&&F(P),c!=null&&u(void 0)},[c,P,F,u]),L=z=>o.jsxRuntimeExports.jsx(t.StickyThread,{isElementThreadOpen:z.isElementThreadOpen??!1,isElementThreadPresent:z.isElementThreadPresent??!1,itemKey:z.itemKey,elementThreadId:z.elementThreadId??"",roomId:S,addThreadRequestThreadId:c,openThreadId:P,threadStyle:z.threadStyle,openThreadMetadata:G?.metadata??null,onElementClick:O,onAddThreadClick:W}),T=p.useCallback(z=>{if(z===P)_(null);else if(E.has(z))_(z);else if(z.includes(t.NEW_THREAD_SUFFIX)){const[me,Q]=z.replace(t.NEW_THREAD_SUFFIX,"").split("."),K=yo(Zt(me),J.toReviewColumnKeyType(Q),C,b);k(z,{type:"thread",visibility:"public",id:z,roomId:S,createdAt:new Date,updatedAt:new Date,comments:[],metadata:K,resolved:!1}),_(z)}},[C,b,P,E,k,_,S]),O=p.useCallback((z,me,Q=!1)=>{const K=Yt.find(ie=>ie.key===me);if(H(null),K!=null&&(z.type==="contextmenu"||Q===!0)){if(K.isThreadAllowed===!1)return;V(),z.preventDefault(),z.stopPropagation();const ie=t.toCollaborationEntityType({tab:"audit",key:K.key}),ae=[...t.getFilteredThreads(E,{entityType:ie,companyId:C},"both")],xe=ae.length>0&&ae[0].length>0?ae[0][0]:Ne("audit",K.key,C);E.has(xe)?T(xe):c===xe?u(void 0):(u(xe),_(null))}},[E,C,c,T,u,_,H,V]),W=p.useCallback((z,me)=>{z.stopPropagation();const Q=Ne("audit",me,C);u(void 0),T(Q)},[C,u,T]),ee=()=>{h(e)},Y=p.useCallback(()=>{y(e.primaryEmailDomain)},[y,e.primaryEmailDomain]),Z=()=>{if(e.auditSummary.auditReportLastGeneratedDate==null){const z=J.dateNow().startOf("month").subtract(1,"date").format(c5),me=e.controllers?.map(Q=>`${Q.user.firstName} ${Q.user.middleName} ${Q.user.lastName}`)??[];a.trackGetAuditScore(!0,e.name,z,me,J.dateNow().format(d5))}m(e.companyId)},X=e.onboardingInfo?.uncategorizedExpenseAccountIdentified===!0&&e.onboardingInfo?.uncategorizedIncomeAccountIdentified===!0;return o.jsxRuntimeExports.jsx(Ft,{onClickAway:()=>{H(null),c!=null&&(u(void 0),c.includes(t.NEW_THREAD_SUFFIX)&&F(c))},children:o.jsxRuntimeExports.jsx(g5,{windowSize:g,isThreadOpen:B||N,totalHeight:i,isCreationInProgress:w,children:Yt.map((z,me)=>{const Q=t.toCollaborationEntityType({tab:"audit",key:z.key}),K=Yt.length-2<=me,ie=[...t.getFilteredThreads(E,{entityType:Q,companyId:C},"both")],ae=ie.length>0&&ie[0].length>0?ie[0][0]:Ne("audit",z.key,C),xe=E.get(ae),Re=xe!=null&&xe.resolved===!1,A=ae===P,pe=c===ae;switch(z.key){case"companyName":return o.jsxRuntimeExports.jsxs(m5,{companyNameSticky:n,columnWidth:z.width,windowSize:g,isThreadOpen:A||pe,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),ref:le=>{d(C,z.key,le)},children:[o.jsxRuntimeExports.jsxs(h5,{ref:U,children:[o.jsxRuntimeExports.jsx(x5,{onClick:le=>{le.preventDefault(),ee()},children:b}),o.jsxRuntimeExports.jsx(t.ThreadComponent,{anchorRef:U,isElementThreadOpen:A,roomId:S,openThreadId:P,openThreadMetadata:G?.metadata??null})]}),o.jsxRuntimeExports.jsxs(S5,{className:"notesIcon",onClick:le=>{le.preventDefault(),l({roomId:S,companyId:C,companyName:b,entityType:$})},children:[o.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:v.length,isLoading:R}),o.jsxRuntimeExports.jsx(y5,{})]}),o.jsxRuntimeExports.jsx(t.ThreadDotComponent,{isElementThreadPresent:Re,itemKey:z.key,style:{left:t.Space.sp4},onElementClick:O}),o.jsxRuntimeExports.jsx(t.AddThreadsComponent,{elementThreadId:Ne("audit",z.key,C),addThreadRequestThreadId:c,itemKey:z.key,onAddThreadClick:W})]},ae);case"auditScore":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(BE,{auditSummary:e.auditSummary,onClickScore:Z}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);case"uncategorized":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[X===!0?o.jsxRuntimeExports.jsx(aa,{onTransactionTagClicked:le=>x(e,le,"uncategorized"),...e.uncategorizedTransactions}):o.jsxRuntimeExports.jsxs(C5,{onClick:Y,children:[o.jsxRuntimeExports.jsx(t.SvgHighImportance,{className:"alert-icon",width:t.sp[3],height:t.sp[3]}),o.jsxRuntimeExports.jsx(f5,{children:l5})]}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);case"miscategorized":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(aa,{onTransactionTagClicked:le=>x(e,le,"miscategorized"),...e.miscategorizedTransactions}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);case"reviewVendor":return r?o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(u5,{widthSize:z.width,windowSize:g,children:o.jsxRuntimeExports.jsx(YE,{onReviewVendorTagClicked:()=>j(e),isReviewComplete:!e.isVendorReviewReqiured})}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae):null;case"warnings":return o.jsxRuntimeExports.jsxs(qo,{ref:le=>{d(C,z.key,le)},columnWidth:z.width,windowSize:g,isThreadAllowed:z.isThreadAllowed,className:ne,onContextMenu:le=>O(le,z.key),children:[o.jsxRuntimeExports.jsx(o5,{companyId:e.companyId,warningsCount:J.getAuditWarningsCount(e),onClick:f}),L({isElementThreadOpen:A,isElementThreadPresent:Re,itemKey:z.key,elementThreadId:ae,threadStyle:K?{right:t.Space.sp0}:void 0})]},ae);default:return null}})})})},u5=s.div`
4648
4648
  display: flex;
4649
4649
  align-items: flex-start;
4650
4650
  width: ${e=>e.widthSize.valuePx(e.windowSize)};
4651
- `,u5=s(t.StandardMedium)`
4651
+ `,m5=s(t.StandardMedium)`
4652
4652
  width: ${e=>e.columnWidth.valuePx(e.windowSize)};
4653
4653
  max-width: ${e=>e.columnWidth.valuePx(e.windowSize)};
4654
4654
  height: 100%;
@@ -4666,12 +4666,12 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4666
4666
  border-bottom-left-radius: ${t.Space.sp2};
4667
4667
  border-top-left-radius: ${t.Space.sp2};
4668
4668
  cursor: ${e=>e.isThreadAllowed?"pointer":"initial"};
4669
- `,m5=s(t.StandardMediumSp)`
4669
+ `,x5=s(t.StandardMediumSp)`
4670
4670
  word-break: break-word;
4671
4671
  cursor: pointer;
4672
- `,x5=s.div`
4673
- position: relative;
4674
4672
  `,h5=s.div`
4673
+ position: relative;
4674
+ `,g5=s.div`
4675
4675
  display: flex;
4676
4676
  flex-direction: row;
4677
4677
  align-items: center;
@@ -4729,7 +4729,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4729
4729
  border: 1px solid ${e.theme.colors.primary};
4730
4730
  animation: animate 3s linear infinite;
4731
4731
  `:null};
4732
- `,g5=s.div`
4732
+ `,S5=s.div`
4733
4733
  display: flex;
4734
4734
  align-items: center;
4735
4735
  justify-content: center;
@@ -4739,7 +4739,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4739
4739
  &:hover {
4740
4740
  color: ${e=>e.theme.colors.primary};
4741
4741
  }
4742
- `,S5=s(fo)`
4742
+ `,y5=s(fo)`
4743
4743
  display: flex;
4744
4744
  width: ${t.Space.sp4};
4745
4745
  height: ${t.Space.sp4};
@@ -4760,10 +4760,10 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4760
4760
  color: ${t.Colors.important};
4761
4761
  }
4762
4762
  }
4763
- `,y5=s(t.SmallRegular)`
4763
+ `,f5=s(t.SmallRegular)`
4764
4764
  color: ${e=>e.theme.colors.primary};
4765
4765
  margin-right: ${t.Space.sp2};
4766
- `,f5=s.div`
4766
+ `,C5=s.div`
4767
4767
  display: flex;
4768
4768
  align-items: center;
4769
4769
  column-gap: ${t.Space.sp1};
@@ -4772,20 +4772,20 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4772
4772
  svg {
4773
4773
  color: ${t.Colors.important};
4774
4774
  }
4775
- `,{collaboration:{threads:{placeholder:{addANewComment:C5,replyAComment:j5},tooltip:{resolveComment:b5,unResolveComment:R5}}},common:{texts:{comments:$5}}}=t.appLocale.getLocalizedStrings(),E5=({reviewView:e,allUsers:n,isReviewVendorColumnVisible:r,analytics:i,onColumnSortConfigChanged:a,onClickAuditScore:c,onClickWarningsCount:l,onTransactionTagClicked:d,onCompanyNameClicked:u,onRetryBankAccountConnection:x,onUncategorizedAccountsErrorClick:m,onReviewVendorTagClicked:f,initialOpenThreadRequest:h})=>{const y=t.useWindowSizeContext(),j=p.useRef(null),[g,b]=p.useState(null),[C,S]=p.useState(null),{uiState:$}=e,v=!(y==="small"||y==="medium-compact"),R=w=>e.companies[w].name.length>So?Fe+32:Fe;p.useEffect(()=>{j.current&&j.current.resetAfterIndex(0)},[e]);const{setOpenThread:P,setRequestToOpenThread:E,requestToOpenThread:k,isLoading:F}=p.useContext(t.ThreadsContext);p.useEffect(()=>{h!=null&&e.fetchState==="Completed"&&F===!1&&E(h)},[h,e.fetchState,F,E]);const[_,H]=p.useState(void 0),U=p.useRef([]),G=p.useMemo(()=>({makeCompanyNameSticky:v,uiState:$,isReviewVendorColumnVisible:r,onColumnSortConfigChanged:a}),[v,$,r,a]),B=p.useCallback((w,N,V)=>{const L=e.companies.findIndex(O=>O.companyId===w),T=Yt.findIndex(O=>O.key===N);L!==-1&&T!==-1&&(U.current[L]==null?U.current[L]=[V]:U.current[L][T]=V)},[e.companies]);return p.useEffect(()=>{if(k!=null&&g!=null){const{companyId:w,entityType:N}=k,[V,L]=N.split("."),T=e.companies.findIndex(Y=>Y.companyId===w),O=Yt.findIndex(Y=>Y.key===L);T!==-1&&!(g.visibleStartIndex<=T&&g.visibleStopIndex>=T)&&j.current?.scrollToItem(T,"center"),setTimeout(()=>{const Y=U.current[T]?.[0]?.getBoundingClientRect().bottom,Z=U.current[T]?.[0]?.getBoundingClientRect().top;Y!=null&&Z!=null&&(window.innerHeight>=Y&&window.innerHeight>=Z||Z<0)&&U.current[T][O]?.scrollIntoView({block:"center",behavior:"auto"})},0);const ee=setInterval(()=>{const Y=U.current[T]?.[O]?.getBoundingClientRect().left,Z=U.current[T]?.[O]?.getBoundingClientRect().right,X=U.current[T]?.[O]?.offsetWidth;if(Y!=null&&X!=null&&Z!=null&&(Y<window.innerWidth-X||Z<window.innerWidth)){clearInterval(ee);const z=k.threadId,me=k.onThreadShownCallback;z&&(E(null),P(k.threadId),me?.())}},500);setTimeout(()=>{clearInterval(ee),E(null)},2e3)}},[k,g,P,E]),o.jsxRuntimeExports.jsx(v5,{children:o.jsxRuntimeExports.jsxs(Bl.Provider,{value:G,children:[o.jsxRuntimeExports.jsx(wt.AutoSizer,{children:({height:w,width:N})=>o.jsxRuntimeExports.jsx(kt.VariableSizeList,{height:w,innerElementType:Wl,itemCount:e.companies.length,itemSize:R,onItemsRendered:V=>b(V),itemData:{reviewView:e,isReviewVendorColumnVisible:r,analytics:i,makeCompanyNameSticky:v,allUsers:n,addThreadRequestThreadId:_,setElementRef:B,setAddThreadRequestThreadId:H,setNoteData:S,onTransactionTagClicked:d,onCompanyNameClicked:u,onRetryBankAccountConnection:x,onUncategorizedAccountsErrorClick:m,onReviewVendorTagClicked:f,onClickAuditScore:c,onClickWarningsCount:l},width:N,ref:j,overscanCount:go,children:Vl})}),C!=null?o.jsxRuntimeExports.jsx(at.RoomProvider,{id:C.roomId,children:o.jsxRuntimeExports.jsx(t.AllThreadsDrawer,{isDrawerOpen:!0,allowComposer:!0,autoExpand:!0,autoFocus:!1,drawerTitle:`${C.companyName} ${$5}`,filter:{application:"cockpit",companyId:C.companyId,entityType:C.entityType,isGlobalComment:!1,tab:"audit"},isLoading:!1,threadMetadata:{companyName:C.companyName,companyId:C.companyId,entityId:C.companyId,entityType:C.entityType,isGlobalComment:!1,application:"cockpit",tab:"audit",url:window.location.href},textOverrides:{composerPlaceholder:C5,replyComposerPlaceholder:j5,threadResolve:b5,threadUnResolve:R5},onThreadClick:w=>null,onCloseAllThreadsDrawer:()=>S(null)})}):null]})})},Bl=p.createContext(void 0),Wl=p.forwardRef((e,n)=>{const{children:r,style:i,...a}=e,{makeCompanyNameSticky:c,uiState:l,isReviewVendorColumnVisible:d,onColumnSortConfigChanged:u}=p.useContext(Bl);return o.jsxRuntimeExports.jsxs(T5,{ref:n,style:{...i,width:"auto"},...a,children:[o.jsxRuntimeExports.jsx(kE,{companyNameSticky:c,onColumnSortConfigChanged:u,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder},isReviewVendorColumnVisible:d}),o.jsxRuntimeExports.jsx(k5,{children:r})]})});Wl.displayName="Review list view inner element type";const Vl=({index:e,style:n,data:r})=>{const{reviewView:i,isReviewVendorColumnVisible:a,makeCompanyNameSticky:c,allUsers:l,analytics:d,addThreadRequestThreadId:u,setElementRef:x,setNoteData:m,onCompanyNameClicked:f,onTransactionTagClicked:h,setAddThreadRequestThreadId:y,onUncategorizedAccountsErrorClick:j,onReviewVendorTagClicked:g,onClickAuditScore:b,onClickWarningsCount:C}=r,S=i.companies[e],{companyId:$}=S;return o.jsxRuntimeExports.jsx(w5,{style:{...n,width:"fit-content",minWidth:"100%"},children:o.jsxRuntimeExports.jsx(d5,{totalHeight:typeof n.height=="number"?n.height:Fe,addThreadRequestThreadId:u,setNoteData:m,setElementRef:x,setAddThreadRequestThreadId:y,analytics:d,companyView:i.companies[e],isReviewVendorColumnVisible:a,companyNameSticky:c,onCompanyNameClicked:f,onTransactionTagClicked:h,allUsers:l,onUncategorizedAccountsErrorClick:j,onReviewVendorTagClicked:g,onClickWarningsCount:C,onClickAuditScore:b})},$)};Vl.displayName="ListItem";const v5=s.div`
4775
+ `,{collaboration:{threads:{placeholder:{addANewComment:j5,replyAComment:b5},tooltip:{resolveComment:R5,unResolveComment:$5}}},common:{texts:{comments:E5}}}=t.appLocale.getLocalizedStrings(),v5=({reviewView:e,allUsers:n,isReviewVendorColumnVisible:r,analytics:i,onColumnSortConfigChanged:a,onClickAuditScore:c,onClickWarningsCount:l,onTransactionTagClicked:d,onCompanyNameClicked:u,onRetryBankAccountConnection:x,onUncategorizedAccountsErrorClick:m,onReviewVendorTagClicked:f,initialOpenThreadRequest:h})=>{const y=t.useWindowSizeContext(),j=p.useRef(null),[g,b]=p.useState(null),[C,S]=p.useState(null),{uiState:$}=e,v=!(y==="small"||y==="medium-compact"),R=w=>e.companies[w].name.length>So?Fe+32:Fe;p.useEffect(()=>{j.current&&j.current.resetAfterIndex(0)},[e]);const{setOpenThread:P,setRequestToOpenThread:E,requestToOpenThread:k,isLoading:F}=p.useContext(t.ThreadsContext);p.useEffect(()=>{h!=null&&e.fetchState==="Completed"&&F===!1&&E(h)},[h,e.fetchState,F,E]);const[_,H]=p.useState(void 0),U=p.useRef([]),G=p.useMemo(()=>({makeCompanyNameSticky:v,uiState:$,isReviewVendorColumnVisible:r,onColumnSortConfigChanged:a}),[v,$,r,a]),B=p.useCallback((w,N,V)=>{const L=e.companies.findIndex(O=>O.companyId===w),T=Yt.findIndex(O=>O.key===N);L!==-1&&T!==-1&&(U.current[L]==null?U.current[L]=[V]:U.current[L][T]=V)},[e.companies]);return p.useEffect(()=>{if(k!=null&&g!=null){const{companyId:w,entityType:N}=k,[V,L]=N.split("."),T=e.companies.findIndex(Y=>Y.companyId===w),O=Yt.findIndex(Y=>Y.key===L);T!==-1&&!(g.visibleStartIndex<=T&&g.visibleStopIndex>=T)&&j.current?.scrollToItem(T,"center"),setTimeout(()=>{const Y=U.current[T]?.[0]?.getBoundingClientRect().bottom,Z=U.current[T]?.[0]?.getBoundingClientRect().top;Y!=null&&Z!=null&&(window.innerHeight>=Y&&window.innerHeight>=Z||Z<0)&&U.current[T][O]?.scrollIntoView({block:"center",behavior:"auto"})},0);const ee=setInterval(()=>{const Y=U.current[T]?.[O]?.getBoundingClientRect().left,Z=U.current[T]?.[O]?.getBoundingClientRect().right,X=U.current[T]?.[O]?.offsetWidth;if(Y!=null&&X!=null&&Z!=null&&(Y<window.innerWidth-X||Z<window.innerWidth)){clearInterval(ee);const z=k.threadId,me=k.onThreadShownCallback;z&&(E(null),P(k.threadId),me?.())}},500);setTimeout(()=>{clearInterval(ee),E(null)},2e3)}},[k,g,P,E]),o.jsxRuntimeExports.jsx(w5,{children:o.jsxRuntimeExports.jsxs(Bl.Provider,{value:G,children:[o.jsxRuntimeExports.jsx(wt.AutoSizer,{children:({height:w,width:N})=>o.jsxRuntimeExports.jsx(kt.VariableSizeList,{height:w,innerElementType:Wl,itemCount:e.companies.length,itemSize:R,onItemsRendered:V=>b(V),itemData:{reviewView:e,isReviewVendorColumnVisible:r,analytics:i,makeCompanyNameSticky:v,allUsers:n,addThreadRequestThreadId:_,setElementRef:B,setAddThreadRequestThreadId:H,setNoteData:S,onTransactionTagClicked:d,onCompanyNameClicked:u,onRetryBankAccountConnection:x,onUncategorizedAccountsErrorClick:m,onReviewVendorTagClicked:f,onClickAuditScore:c,onClickWarningsCount:l},width:N,ref:j,overscanCount:go,children:Vl})}),C!=null?o.jsxRuntimeExports.jsx(at.RoomProvider,{id:C.roomId,children:o.jsxRuntimeExports.jsx(t.AllThreadsDrawer,{isDrawerOpen:!0,allowComposer:!0,autoExpand:!0,autoFocus:!1,drawerTitle:`${C.companyName} ${E5}`,filter:{application:"cockpit",companyId:C.companyId,entityType:C.entityType,isGlobalComment:!1,tab:"audit"},isLoading:!1,threadMetadata:{companyName:C.companyName,companyId:C.companyId,entityId:C.companyId,entityType:C.entityType,isGlobalComment:!1,application:"cockpit",tab:"audit",url:window.location.href},textOverrides:{composerPlaceholder:j5,replyComposerPlaceholder:b5,threadResolve:R5,threadUnResolve:$5},onThreadClick:w=>null,onCloseAllThreadsDrawer:()=>S(null)})}):null]})})},Bl=p.createContext(void 0),Wl=p.forwardRef((e,n)=>{const{children:r,style:i,...a}=e,{makeCompanyNameSticky:c,uiState:l,isReviewVendorColumnVisible:d,onColumnSortConfigChanged:u}=p.useContext(Bl);return o.jsxRuntimeExports.jsxs(P5,{ref:n,style:{...i,width:"auto"},...a,children:[o.jsxRuntimeExports.jsx(TE,{companyNameSticky:c,onColumnSortConfigChanged:u,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder},isReviewVendorColumnVisible:d}),o.jsxRuntimeExports.jsx(T5,{children:r})]})});Wl.displayName="Review list view inner element type";const Vl=({index:e,style:n,data:r})=>{const{reviewView:i,isReviewVendorColumnVisible:a,makeCompanyNameSticky:c,allUsers:l,analytics:d,addThreadRequestThreadId:u,setElementRef:x,setNoteData:m,onCompanyNameClicked:f,onTransactionTagClicked:h,setAddThreadRequestThreadId:y,onUncategorizedAccountsErrorClick:j,onReviewVendorTagClicked:g,onClickAuditScore:b,onClickWarningsCount:C}=r,S=i.companies[e],{companyId:$}=S;return o.jsxRuntimeExports.jsx(k5,{style:{...n,width:"fit-content",minWidth:"100%"},children:o.jsxRuntimeExports.jsx(p5,{totalHeight:typeof n.height=="number"?n.height:Fe,addThreadRequestThreadId:u,setNoteData:m,setElementRef:x,setAddThreadRequestThreadId:y,analytics:d,companyView:i.companies[e],isReviewVendorColumnVisible:a,companyNameSticky:c,onCompanyNameClicked:f,onTransactionTagClicked:h,allUsers:l,onUncategorizedAccountsErrorClick:j,onReviewVendorTagClicked:g,onClickWarningsCount:C,onClickAuditScore:b})},$)};Vl.displayName="ListItem";const w5=s.div`
4776
4776
  /** Subtract top so list can occupy remaining available height */
4777
4777
  height: calc(100vh - 150px);
4778
4778
  max-width: 99.9%;
4779
- `,w5=s.div`
4779
+ `,k5=s.div`
4780
4780
  top: ${t.Space.sp0};
4781
4781
  left: ${t.Space.sp0};
4782
4782
  padding-bottom: ${t.Space.sp3};
4783
4783
  box-sizing: border-box;
4784
- `,k5=s.div`
4784
+ `,T5=s.div`
4785
4785
  position: relative;
4786
4786
  width: auto;
4787
4787
  height: 100%;
4788
- `,T5=s.div``,{common:{texts:{sorryWeCouldnTFindAnyResults:P5}},cockpit:{emptySearchTextSecondLine:I5}}=t.appLocale.getLocalizedStrings(),L5=s.div`
4788
+ `,P5=s.div``,{common:{texts:{sorryWeCouldnTFindAnyResults:I5}},cockpit:{emptySearchTextSecondLine:L5}}=t.appLocale.getLocalizedStrings(),A5=s.div`
4789
4789
  display: flex;
4790
4790
  width: 100%;
4791
4791
  height: calc(100vh - 110px);
@@ -4795,13 +4795,13 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4795
4795
  background-color: ${e=>e.theme.colors.grey5};
4796
4796
  box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
4797
4797
  background-color: ${e=>e.theme.colors.grey4};
4798
- `,A5=s.div`
4799
- padding: ${e=>`${t.Space.sp0} ${et.cockpitRightPadding.valuePx(e.windowSize)} ${t.Space.sp0} ${et.cockpitLeftPadding.valuePx(e.windowSize)}`};
4800
4798
  `,D5=s.div`
4799
+ padding: ${e=>`${t.Space.sp0} ${et.cockpitRightPadding.valuePx(e.windowSize)} ${t.Space.sp0} ${et.cockpitLeftPadding.valuePx(e.windowSize)}`};
4800
+ `,O5=s.div`
4801
4801
  height: calc(100vh - 60px);
4802
4802
  overflow-y: hidden;
4803
4803
  background-color: ${e=>e.theme.colors.grey4};
4804
- `,O5=({headerData:e,headerActions:n,initialOpenThreadRequest:r,reviewPageActions:i,reviewPageData:a,analytics:c})=>{const{reviewView:l,zeniUserFetchState:d,allUsers:u,isReviewVendorColumnVisible:x}=a,{onColumnSortConfigChanged:m,onCockpitReloadData:f,onCompanyNameClicked:h,onClickAuditScore:y,onClickWarningsCount:j,onTransactionTagClicked:g,onRetryBankAccountConnection:b,onReviewVendorTagClicked:C,onUncategorizedAccountsErrorClick:S}=i,$=l.uiState.filterText,v=l.fetchState==="Completed",R=p.useMemo(()=>n.filterActions?{...n,filterActions:{...n.filterActions}}:n,[n]);return o.jsxRuntimeExports.jsxs(D5,{children:[o.jsxRuntimeExports.jsx(Tt,{headerActions:R,headerData:{...e,allTabOptions:e.allTabOptions??Ct,filterData:{filterText:$,disableFilters:!0},selectedTabOption:"audit",companiesLoaded:v}}),o.jsxRuntimeExports.jsx(N5,{allUsers:u,analytics:c,initialOpenThreadRequest:r,isReviewVendorColumnVisible:x,reviewView:l,zeniUserFetchState:d,onColumnSortConfigChanged:m,onCockpitReloadData:f,onCompanyNameClicked:h,onClickAuditScore:y,onClickWarningsCount:j,onRetryBankAccountConnection:b,onReviewVendorTagClicked:C,onTransactionTagClicked:g,onUncategorizedAccountsErrorClick:S})]})},N5=({reviewView:e,zeniUserFetchState:n,allUsers:r,isReviewVendorColumnVisible:i,analytics:a,initialOpenThreadRequest:c,onClickAuditScore:l,onColumnSortConfigChanged:d,onCockpitReloadData:u,onCompanyNameClicked:x,onClickWarningsCount:m,onTransactionTagClicked:f,onRetryBankAccountConnection:h,onReviewVendorTagClicked:y,onUncategorizedAccountsErrorClick:j})=>{const g=t.useWindowSizeContext();return e.fetchState==="Error"?o.jsxRuntimeExports.jsx(qt,{onCockpitReloadData:u,selectedCockpitOption:"audit"}):e.fetchState==="In-Progress"||e.fetchState==="Not-Started"||n==="In-Progress"||n==="Not-Started"?o.jsxRuntimeExports.jsx(L5,{children:o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"ExtraLarge",start:!0})}):e.companies.length===0?e.uiState.filterText.trim().length>0?o.jsxRuntimeExports.jsx(t.EmptySearchResults,{emptySearchTextFirstLine:P5,emptySearchTextSecondLine:I5}):o.jsxRuntimeExports.jsx(jE,{}):o.jsxRuntimeExports.jsx(A5,{windowSize:g,children:o.jsxRuntimeExports.jsx(E5,{allUsers:r,analytics:a,initialOpenThreadRequest:c,isReviewVendorColumnVisible:i,reviewView:e,onColumnSortConfigChanged:d,onCompanyNameClicked:x,onClickAuditScore:l,onClickWarningsCount:m,onRetryBankAccountConnection:h,onReviewVendorTagClicked:y,onTransactionTagClicked:f,onUncategorizedAccountsErrorClick:j})})},{common:Ut,dateFormat:M5,cockpit:la}=t.appLocale.getLocalizedStrings(),F5=s.div`
4804
+ `,N5=({headerData:e,headerActions:n,initialOpenThreadRequest:r,reviewPageActions:i,reviewPageData:a,analytics:c})=>{const{reviewView:l,zeniUserFetchState:d,allUsers:u,isReviewVendorColumnVisible:x}=a,{onColumnSortConfigChanged:m,onCockpitReloadData:f,onCompanyNameClicked:h,onClickAuditScore:y,onClickWarningsCount:j,onTransactionTagClicked:g,onRetryBankAccountConnection:b,onReviewVendorTagClicked:C,onUncategorizedAccountsErrorClick:S}=i,$=l.uiState.filterText,v=l.fetchState==="Completed",R=p.useMemo(()=>n.filterActions?{...n,filterActions:{...n.filterActions}}:n,[n]);return o.jsxRuntimeExports.jsxs(O5,{children:[o.jsxRuntimeExports.jsx(Tt,{headerActions:R,headerData:{...e,allTabOptions:e.allTabOptions??Ct,filterData:{filterText:$,disableFilters:!0},selectedTabOption:"audit",companiesLoaded:v}}),o.jsxRuntimeExports.jsx(M5,{allUsers:u,analytics:c,initialOpenThreadRequest:r,isReviewVendorColumnVisible:x,reviewView:l,zeniUserFetchState:d,onColumnSortConfigChanged:m,onCockpitReloadData:f,onCompanyNameClicked:h,onClickAuditScore:y,onClickWarningsCount:j,onRetryBankAccountConnection:b,onReviewVendorTagClicked:C,onTransactionTagClicked:g,onUncategorizedAccountsErrorClick:S})]})},M5=({reviewView:e,zeniUserFetchState:n,allUsers:r,isReviewVendorColumnVisible:i,analytics:a,initialOpenThreadRequest:c,onClickAuditScore:l,onColumnSortConfigChanged:d,onCockpitReloadData:u,onCompanyNameClicked:x,onClickWarningsCount:m,onTransactionTagClicked:f,onRetryBankAccountConnection:h,onReviewVendorTagClicked:y,onUncategorizedAccountsErrorClick:j})=>{const g=t.useWindowSizeContext();return e.fetchState==="Error"?o.jsxRuntimeExports.jsx(qt,{onCockpitReloadData:u,selectedCockpitOption:"audit"}):e.fetchState==="In-Progress"||e.fetchState==="Not-Started"||n==="In-Progress"||n==="Not-Started"?o.jsxRuntimeExports.jsx(A5,{children:o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"ExtraLarge",start:!0})}):e.companies.length===0?e.uiState.filterText.trim().length>0?o.jsxRuntimeExports.jsx(t.EmptySearchResults,{emptySearchTextFirstLine:I5,emptySearchTextSecondLine:L5}):o.jsxRuntimeExports.jsx(bE,{}):o.jsxRuntimeExports.jsx(D5,{windowSize:g,children:o.jsxRuntimeExports.jsx(v5,{allUsers:r,analytics:a,initialOpenThreadRequest:c,isReviewVendorColumnVisible:i,reviewView:e,onColumnSortConfigChanged:d,onCompanyNameClicked:x,onClickAuditScore:l,onClickWarningsCount:m,onRetryBankAccountConnection:h,onReviewVendorTagClicked:y,onTransactionTagClicked:f,onUncategorizedAccountsErrorClick:j})})},{common:Ut,dateFormat:F5,cockpit:la}=t.appLocale.getLocalizedStrings(),z5=s.div`
4805
4805
  display: flex;
4806
4806
  width: 100%;
4807
4807
  padding: ${t.Space.sp3};
@@ -4809,72 +4809,72 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4809
4809
  margin-bottom: ${t.Space.sp5};
4810
4810
  cursor: ${e=>e.isAuditScoreLoading?"default":"pointer"};
4811
4811
  pointer-events: ${e=>e.isAuditScoreLoading?"none":"auto"};
4812
- `,z5=s.div`
4812
+ `,_5=s.div`
4813
4813
  display: flex;
4814
4814
  flex-direction: row;
4815
4815
  align-items: center;
4816
- `,_5=s.div`
4816
+ `,B5=s.div`
4817
4817
  display: flex;
4818
4818
  align-items: center;
4819
4819
  justify-content: space-between;
4820
4820
  width: 100%;
4821
- `,B5=s.div`
4821
+ `,W5=s.div`
4822
4822
  height: 96px;
4823
4823
  display: flex;
4824
4824
  justify-content: center;
4825
- `,W5=s.div`
4825
+ `,V5=s.div`
4826
4826
  display: flex;
4827
4827
  flex-direction: row;
4828
4828
  height: 96px;
4829
4829
  padding-left: ${t.Space.sp4};
4830
4830
  align-items: center;
4831
4831
  justify-content: space-between;
4832
- `,V5=s.div``,U5=s.div`
4832
+ `,U5=s.div``,H5=s.div`
4833
4833
  display: flex;
4834
4834
  height: ${t.Space.sp9};
4835
4835
  align-items: end;
4836
- `,H5=s(t.H5Regular)`
4836
+ `,K5=s(t.H5Regular)`
4837
4837
  color: ${e=>e.theme.colors.primary};
4838
- `,K5=s(t.LargeMedium)`
4838
+ `,G5=s(t.LargeMedium)`
4839
4839
  color: ${t.Colors.brandColorGoldDark};
4840
4840
  align-items: end;
4841
4841
  margin-left: ${t.Space.sp2};
4842
4842
  margin-bottom: ${t.Space.sp1};
4843
- `,G5=s.div`
4843
+ `,Y5=s.div`
4844
4844
  display: flex;
4845
4845
  height: ${t.Space.sp7};
4846
4846
  margin-top: ${t.Space.sp2};
4847
4847
  align-items: center;
4848
4848
  justify-content: flex-start;
4849
- `,Y5=s(t.StandardRegular)`
4849
+ `,Z5=s(t.StandardRegular)`
4850
4850
  margin-bottom: ${t.Space.sp4};
4851
4851
  color: ${e=>e.theme.colors.hero};
4852
- `,Z5=({auditSummaryData:e,isAuditScoreLoadingCompleted:n,isMonthEnd:r})=>{const i=!n,a=Ae.useTheme(),c=e,l=r?c.bypassedAuditScore:c.auditScorePercentage;let d;l<=50?d=t.Colors.important:l<=75?d=t.Colors.alert:d=t.Colors.success;const u=p.useCallback(()=>c.fixesRequired>0?`${Ut.strings.openingBrace}${c.fixesRequired} ${c.fixesRequired>1?Ut.texts.issues:Ut.texts.issue}${Ut.strings.closingBrace}`:Ut.strings.empty,[c.fixesRequired]);return o.jsxRuntimeExports.jsx(F5,{isAuditScoreLoading:i,children:o.jsxRuntimeExports.jsx(_5,{auditPercentage:l,children:o.jsxRuntimeExports.jsxs(z5,{children:[!i&&o.jsxRuntimeExports.jsx(B5,{children:o.jsxRuntimeExports.jsx(ko.CircularProgressbar,{value:l,text:`${Math.ceil(l)}${Ut.strings.percentage}`,strokeWidth:10,styles:ko.buildStyles({rotation:.5,strokeLinecap:"butt",pathColor:d,textColor:a.colors.primary,trailColor:a.colors.grey3,textSize:t.Space.sp4})})}),o.jsxRuntimeExports.jsx(W5,{children:o.jsxRuntimeExports.jsxs(V5,{children:[o.jsxRuntimeExports.jsxs(U5,{children:[o.jsxRuntimeExports.jsx(H5,{children:i?la.monthEndReport.auditScoreSectionLoadingTitle.replace("__date__",J.dateNow().subtract(1,"month").format(M5.visual.MMMMYYYYFormat)):Ut.headers.auditScore}),i?null:o.jsxRuntimeExports.jsx(K5,{children:u()})]}),o.jsxRuntimeExports.jsx(G5,{children:o.jsxRuntimeExports.jsx(Y5,{children:i?Ut.texts.thisProcessMayTake23Min:la.review.auditReportDrawer.reportGeneratedSubtitle})})]})})]})})})},{cockpit:ca,common:Fs}=t.appLocale.getLocalizedStrings(),q5=({open:e,anchorElement:n,children:r,onClose:i})=>{const a=Ae.useTheme();return o.jsxRuntimeExports.jsx(Js,{transitionDuration:0,anchorEl:n,open:e,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:a.colors.grey5,boxSizing:"border-box",transform:"translate(0px,30px)",padding:t.Space.sp3,borderRadius:t.Space.sp2}},onClose:i,children:r})},X5=({rule:e,commentsText:n,ruleGroup:r,isControllerOrReviewer:i,triggerComponent:a,setCommentsText:c,handleReasonAuditRule:l})=>{const[d,u]=p.useState(!1),[x,m]=p.useState(n),f=p.useRef(null),h=Ae.useTheme();p.useEffect(()=>{n!==""&&u(!0)},[n]);const y=()=>{x!==""&&e.reasonUpdateFetchState.fetchState!=="In-Progress"&&l(e.auditRuleId,r.auditRuleGroupId,x,i?"approved":"pending")};return o.jsxRuntimeExports.jsx(Ft,{onClickAway:()=>{u(!1)},children:o.jsxRuntimeExports.jsxs(iv,{ref:f,children:[a!=null?o.jsxRuntimeExports.jsxs(rv,{className:"placeholder",onClick:()=>{u(!d)},children:[a," "]}):null,d?o.jsxRuntimeExports.jsxs(q5,{open:d,anchorElement:f.current,onClose:()=>u(!1),children:[o.jsxRuntimeExports.jsx(ev,{children:o.jsxRuntimeExports.jsx(Q5,{children:ca.review.auditReportDrawer.commentTitle})}),o.jsxRuntimeExports.jsx(av,{autoFocus:!0,onFocus:j=>{if(j.target instanceof HTMLTextAreaElement){const g=j.target.value;j.target.value="",j.target.value=g}},placeholder:ca.commentPlaceholder,value:x,onChange:j=>{j.target instanceof HTMLTextAreaElement&&m(j.target.value)}}),o.jsxRuntimeExports.jsx(ov,{}),o.jsxRuntimeExports.jsx(nv,{}),o.jsxRuntimeExports.jsxs(J5,{children:[o.jsxRuntimeExports.jsx(sv,{}),o.jsxRuntimeExports.jsxs(tv,{children:[o.jsxRuntimeExports.jsx(lv,{disabled:e.reasonUpdateFetchState.fetchState==="In-Progress",size:"small",style:{whiteSpace:"nowrap",padding:`${t.Space.sp1} ${t.Space.sp3}`,borderRadius:t.Space.sp2},textStyle:{color:h.colors.primary},label:Fs.cancel,onClick:()=>{n!==""&&l(e.auditRuleId,r.auditRuleGroupId,n,"pending"),c(""),u(!1)}}),o.jsxRuntimeExports.jsx(cv,{disabled:x===""&&e.reasonUpdateFetchState.fetchState==="In-Progress",variant:"primary",size:"small",style:{whiteSpace:"nowrap",padding:i?`${t.Space.sp1} 14px`:`${t.Space.sp1} 22px`,borderRadius:t.Space.sp2},onClick:y,label:i?Fs.resolve:Fs.send,loading:e.reasonUpdateFetchState.fetchState==="In-Progress"})]})]})]}):null]})})},Q5=s(t.LargeRegular)`
4852
+ `,q5=({auditSummaryData:e,isAuditScoreLoadingCompleted:n,isMonthEnd:r})=>{const i=!n,a=Ae.useTheme(),c=e,l=r?c.bypassedAuditScore:c.auditScorePercentage;let d;l<=50?d=t.Colors.important:l<=75?d=t.Colors.alert:d=t.Colors.success;const u=p.useCallback(()=>c.fixesRequired>0?`${Ut.strings.openingBrace}${c.fixesRequired} ${c.fixesRequired>1?Ut.texts.issues:Ut.texts.issue}${Ut.strings.closingBrace}`:Ut.strings.empty,[c.fixesRequired]);return o.jsxRuntimeExports.jsx(z5,{isAuditScoreLoading:i,children:o.jsxRuntimeExports.jsx(B5,{auditPercentage:l,children:o.jsxRuntimeExports.jsxs(_5,{children:[!i&&o.jsxRuntimeExports.jsx(W5,{children:o.jsxRuntimeExports.jsx(ko.CircularProgressbar,{value:l,text:`${Math.ceil(l)}${Ut.strings.percentage}`,strokeWidth:10,styles:ko.buildStyles({rotation:.5,strokeLinecap:"butt",pathColor:d,textColor:a.colors.primary,trailColor:a.colors.grey3,textSize:t.Space.sp4})})}),o.jsxRuntimeExports.jsx(V5,{children:o.jsxRuntimeExports.jsxs(U5,{children:[o.jsxRuntimeExports.jsxs(H5,{children:[o.jsxRuntimeExports.jsx(K5,{children:i?la.monthEndReport.auditScoreSectionLoadingTitle.replace("__date__",J.dateNow().subtract(1,"month").format(F5.visual.MMMMYYYYFormat)):Ut.headers.auditScore}),i?null:o.jsxRuntimeExports.jsx(G5,{children:u()})]}),o.jsxRuntimeExports.jsx(Y5,{children:o.jsxRuntimeExports.jsx(Z5,{children:i?Ut.texts.thisProcessMayTake23Min:la.review.auditReportDrawer.reportGeneratedSubtitle})})]})})]})})})},{cockpit:ca,common:Fs}=t.appLocale.getLocalizedStrings(),X5=({open:e,anchorElement:n,children:r,onClose:i})=>{const a=Ae.useTheme();return o.jsxRuntimeExports.jsx(Js,{transitionDuration:0,anchorEl:n,open:e,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:a.colors.grey5,boxSizing:"border-box",transform:"translate(0px,30px)",padding:t.Space.sp3,borderRadius:t.Space.sp2}},onClose:i,children:r})},Q5=({rule:e,commentsText:n,ruleGroup:r,isControllerOrReviewer:i,triggerComponent:a,setCommentsText:c,handleReasonAuditRule:l})=>{const[d,u]=p.useState(!1),[x,m]=p.useState(n),f=p.useRef(null),h=Ae.useTheme();p.useEffect(()=>{n!==""&&u(!0)},[n]);const y=()=>{x!==""&&e.reasonUpdateFetchState.fetchState!=="In-Progress"&&l(e.auditRuleId,r.auditRuleGroupId,x,i?"approved":"pending")};return o.jsxRuntimeExports.jsx(Ft,{onClickAway:()=>{u(!1)},children:o.jsxRuntimeExports.jsxs(av,{ref:f,children:[a!=null?o.jsxRuntimeExports.jsxs(iv,{className:"placeholder",onClick:()=>{u(!d)},children:[a," "]}):null,d?o.jsxRuntimeExports.jsxs(X5,{open:d,anchorElement:f.current,onClose:()=>u(!1),children:[o.jsxRuntimeExports.jsx(tv,{children:o.jsxRuntimeExports.jsx(J5,{children:ca.review.auditReportDrawer.commentTitle})}),o.jsxRuntimeExports.jsx(lv,{autoFocus:!0,onFocus:j=>{if(j.target instanceof HTMLTextAreaElement){const g=j.target.value;j.target.value="",j.target.value=g}},placeholder:ca.commentPlaceholder,value:x,onChange:j=>{j.target instanceof HTMLTextAreaElement&&m(j.target.value)}}),o.jsxRuntimeExports.jsx(nv,{}),o.jsxRuntimeExports.jsx(sv,{}),o.jsxRuntimeExports.jsxs(ev,{children:[o.jsxRuntimeExports.jsx(rv,{}),o.jsxRuntimeExports.jsxs(ov,{children:[o.jsxRuntimeExports.jsx(cv,{disabled:e.reasonUpdateFetchState.fetchState==="In-Progress",size:"small",style:{whiteSpace:"nowrap",padding:`${t.Space.sp1} ${t.Space.sp3}`,borderRadius:t.Space.sp2},textStyle:{color:h.colors.primary},label:Fs.cancel,onClick:()=>{n!==""&&l(e.auditRuleId,r.auditRuleGroupId,n,"pending"),c(""),u(!1)}}),o.jsxRuntimeExports.jsx(dv,{disabled:x===""&&e.reasonUpdateFetchState.fetchState==="In-Progress",variant:"primary",size:"small",style:{whiteSpace:"nowrap",padding:i?`${t.Space.sp1} 14px`:`${t.Space.sp1} 22px`,borderRadius:t.Space.sp2},onClick:y,label:i?Fs.resolve:Fs.send,loading:e.reasonUpdateFetchState.fetchState==="In-Progress"})]})]})]}):null]})})},J5=s(t.LargeRegular)`
4853
4853
  color: ${e=>e.theme.colors.primary};
4854
4854
  margin-bottom: ${t.Space.sp3};
4855
- `,J5=s.div`
4855
+ `,ev=s.div`
4856
4856
  display: flex;
4857
4857
  width: 100%;
4858
4858
  flex-direction: column;
4859
- `,ev=s.div`
4859
+ `,tv=s.div`
4860
4860
  display: flex;
4861
4861
  width: 100%;
4862
- `,tv=s.div`
4862
+ `,ov=s.div`
4863
4863
  display: flex;
4864
4864
  justify-content: center;
4865
4865
  align-items: center;
4866
4866
  gap: ${t.Space.sp3};
4867
- `,ov=s.div`
4867
+ `,nv=s.div`
4868
4868
  height: ${t.Space.sp4};
4869
4869
  width: 100%;
4870
- `,nv=s.hr`
4870
+ `,sv=s.hr`
4871
4871
  width: 100%;
4872
4872
  border: none;
4873
4873
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
4874
- `,sv=s.div`
4874
+ `,rv=s.div`
4875
4875
  height: ${t.Space.sp2};
4876
4876
  width: 100%;
4877
- `,rv=s.div`
4877
+ `,iv=s.div`
4878
4878
  height: ${t.Space.sp4};
4879
4879
  position: relative;
4880
4880
  color: ${e=>e.theme.colors.grey1};
@@ -4882,9 +4882,9 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4882
4882
  &:hover {
4883
4883
  cursor: pointer;
4884
4884
  }
4885
- `,iv=s.div`
4885
+ `,av=s.div`
4886
4886
  position: relative;
4887
- `,av=s(t.LargeRegularTA)`
4887
+ `,lv=s(t.LargeRegularTA)`
4888
4888
  width: 432px;
4889
4889
  height: 120px;
4890
4890
  resize: none;
@@ -4899,42 +4899,42 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4899
4899
  color: ${e=>e.theme.colors.hero};
4900
4900
  ${t.textStyles.largeRegular.css};
4901
4901
  }
4902
- `,lv=s(t.Button)``,cv=s(t.Button)``,{common:pt,dateFormat:{visual:{MMMDFormat:dv}},timeFormat:{hhmmAFormat:pv}}=t.appLocale.getLocalizedStrings(),uv=({open:e,anchorElement:n,children:r,onClose:i})=>{const a=Ae.useTheme();return o.jsxRuntimeExports.jsx(Js,{transitionDuration:0,anchorEl:n,open:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{width:"356px",display:"flex",flexDirection:"column",background:a.colors.grey5,boxSizing:"border-box",transform:"translate(0px,10px)",borderRadius:t.Space.sp2}},onClose:i,children:r})},mv=({isControllerOrReviewer:e,allUsers:n,loggedInUser:r,rule:i,ruleGroup:a,triggerComponent:c,isDisabled:l=!1,handleReasonAuditRule:d,setCommentsText:u})=>{const[x,m]=p.useState(!1),f=p.useRef(null),h=i.reason!=null&&i.reason.userId?J.getUserFromAllUsers(n,i.reason.userId):void 0,y=i.reason?.reasonUpdatedAt,j=Ae.useTheme();return p.useEffect(()=>{i.reasonUpdateFetchState.fetchState==="Completed"&&m(!1)},[i.reasonUpdateFetchState.fetchState]),o.jsxRuntimeExports.jsx(Ft,{onClickAway:()=>{m(!1)},children:o.jsxRuntimeExports.jsxs(Rv,{ref:f,children:[o.jsxRuntimeExports.jsxs(bv,{className:"placeholder",onClick:()=>{m(g=>!g)},children:[c," "]}),x&&o.jsxRuntimeExports.jsxs(uv,{open:x,anchorElement:f.current,onClose:()=>m(!1),children:[o.jsxRuntimeExports.jsxs($v,{children:[o.jsxRuntimeExports.jsxs(Cv,{children:[o.jsxRuntimeExports.jsx(xv,{children:h?.photo!=null?o.jsxRuntimeExports.jsx(jv,{src:h.photo.href,alt:pt.filters.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=t.AvatarSVG}}):o.jsxRuntimeExports.jsx(t.EntityAvatarWithInitials,{firstName:h?.firstName??"",lastName:h?.lastName??""})}),o.jsxRuntimeExports.jsxs(fv,{children:[o.jsxRuntimeExports.jsx(yv,{children:`${J.getUserName(h)}`}),o.jsxRuntimeExports.jsxs(Sv,{children:[o.jsxRuntimeExports.jsx(hv,{children:y!=null?J.zeniDate(y.toISOString()).format(dv)+pt.strings.comma:pt.strings.empty}),o.jsxRuntimeExports.jsx(gv,{children:y!=null?J.zeniDate(y.toISOString()).format(pv):pt.strings.empty})]})]})]}),!e&&r.userId===i.reason?.userId?o.jsxRuntimeExports.jsx(t.MoreMenuButton,{moreIconType:"plain",options:[{label:pt.edit,value:pt.edit},{label:pt.delete,value:pt.delete}],onOptionSelection:g=>{d(i.auditRuleId,a.auditRuleGroupId,i.reason?.reasonToPass??"","rejected"),g===pt.edit?u(i.reason?.reasonToPass??""):u("")},valueToIcon:g=>g===pt.delete?o.jsxRuntimeExports.jsx(t.SvgDelete,{}):g===pt.edit?o.jsxRuntimeExports.jsx(Tv,{}):o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{}),customStyleConfig:{menuPortal:()=>({zIndex:1e4})},menuPortalTarget:document.body,menuPosition:"fixed"}):null]}),o.jsxRuntimeExports.jsx(Ev,{children:o.jsxRuntimeExports.jsx(vv,{children:i.reason?.reasonToPass})}),e?o.jsxRuntimeExports.jsx(wv,{children:o.jsxRuntimeExports.jsxs(kv,{children:[o.jsxRuntimeExports.jsx(Pv,{size:"small",style:{whiteSpace:"nowrap",padding:`${t.Space.sp1} 22px`,borderRadius:t.Space.sp2},textStyle:{color:j.colors.primary},disabled:i.reasonUpdateFetchState.fetchState==="In-Progress",onClick:()=>{i.reasonUpdateFetchState.fetchState!=="In-Progress"&&d(i.auditRuleId,a.auditRuleGroupId,i.reason?.reasonToPass??"","rejected")},label:pt.footer.reject}),o.jsxRuntimeExports.jsx(Iv,{variant:"primary",size:"small",style:{whiteSpace:"nowrap",padding:`${t.Space.sp1} 14px`,borderRadius:t.Space.sp2},label:pt.footer.approve,disabled:i.reasonUpdateFetchState.fetchState==="In-Progress",onClick:()=>{l!==!0&&i.reasonUpdateFetchState.fetchState!=="In-Progress"&&d(i.auditRuleId,a.auditRuleGroupId,i.reason?.reasonToPass??"","approved")}})]})}):o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{})]})]})})},xv=s.div`
4902
+ `,cv=s(t.Button)``,dv=s(t.Button)``,{common:pt,dateFormat:{visual:{MMMDFormat:pv}},timeFormat:{hhmmAFormat:uv}}=t.appLocale.getLocalizedStrings(),mv=({open:e,anchorElement:n,children:r,onClose:i})=>{const a=Ae.useTheme();return o.jsxRuntimeExports.jsx(Js,{transitionDuration:0,anchorEl:n,open:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{width:"356px",display:"flex",flexDirection:"column",background:a.colors.grey5,boxSizing:"border-box",transform:"translate(0px,10px)",borderRadius:t.Space.sp2}},onClose:i,children:r})},xv=({isControllerOrReviewer:e,allUsers:n,loggedInUser:r,rule:i,ruleGroup:a,triggerComponent:c,isDisabled:l=!1,handleReasonAuditRule:d,setCommentsText:u})=>{const[x,m]=p.useState(!1),f=p.useRef(null),h=i.reason!=null&&i.reason.userId?J.getUserFromAllUsers(n,i.reason.userId):void 0,y=i.reason?.reasonUpdatedAt,j=Ae.useTheme();return p.useEffect(()=>{i.reasonUpdateFetchState.fetchState==="Completed"&&m(!1)},[i.reasonUpdateFetchState.fetchState]),o.jsxRuntimeExports.jsx(Ft,{onClickAway:()=>{m(!1)},children:o.jsxRuntimeExports.jsxs($v,{ref:f,children:[o.jsxRuntimeExports.jsxs(Rv,{className:"placeholder",onClick:()=>{m(g=>!g)},children:[c," "]}),x&&o.jsxRuntimeExports.jsxs(mv,{open:x,anchorElement:f.current,onClose:()=>m(!1),children:[o.jsxRuntimeExports.jsxs(Ev,{children:[o.jsxRuntimeExports.jsxs(jv,{children:[o.jsxRuntimeExports.jsx(hv,{children:h?.photo!=null?o.jsxRuntimeExports.jsx(bv,{src:h.photo.href,alt:pt.filters.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=t.AvatarSVG}}):o.jsxRuntimeExports.jsx(t.EntityAvatarWithInitials,{firstName:h?.firstName??"",lastName:h?.lastName??""})}),o.jsxRuntimeExports.jsxs(Cv,{children:[o.jsxRuntimeExports.jsx(fv,{children:`${J.getUserName(h)}`}),o.jsxRuntimeExports.jsxs(yv,{children:[o.jsxRuntimeExports.jsx(gv,{children:y!=null?J.zeniDate(y.toISOString()).format(pv)+pt.strings.comma:pt.strings.empty}),o.jsxRuntimeExports.jsx(Sv,{children:y!=null?J.zeniDate(y.toISOString()).format(uv):pt.strings.empty})]})]})]}),!e&&r.userId===i.reason?.userId?o.jsxRuntimeExports.jsx(t.MoreMenuButton,{moreIconType:"plain",options:[{label:pt.edit,value:pt.edit},{label:pt.delete,value:pt.delete}],onOptionSelection:g=>{d(i.auditRuleId,a.auditRuleGroupId,i.reason?.reasonToPass??"","rejected"),g===pt.edit?u(i.reason?.reasonToPass??""):u("")},valueToIcon:g=>g===pt.delete?o.jsxRuntimeExports.jsx(t.SvgDelete,{}):g===pt.edit?o.jsxRuntimeExports.jsx(Pv,{}):o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{}),customStyleConfig:{menuPortal:()=>({zIndex:1e4})},menuPortalTarget:document.body,menuPosition:"fixed"}):null]}),o.jsxRuntimeExports.jsx(vv,{children:o.jsxRuntimeExports.jsx(wv,{children:i.reason?.reasonToPass})}),e?o.jsxRuntimeExports.jsx(kv,{children:o.jsxRuntimeExports.jsxs(Tv,{children:[o.jsxRuntimeExports.jsx(Iv,{size:"small",style:{whiteSpace:"nowrap",padding:`${t.Space.sp1} 22px`,borderRadius:t.Space.sp2},textStyle:{color:j.colors.primary},disabled:i.reasonUpdateFetchState.fetchState==="In-Progress",onClick:()=>{i.reasonUpdateFetchState.fetchState!=="In-Progress"&&d(i.auditRuleId,a.auditRuleGroupId,i.reason?.reasonToPass??"","rejected")},label:pt.footer.reject}),o.jsxRuntimeExports.jsx(Lv,{variant:"primary",size:"small",style:{whiteSpace:"nowrap",padding:`${t.Space.sp1} 14px`,borderRadius:t.Space.sp2},label:pt.footer.approve,disabled:i.reasonUpdateFetchState.fetchState==="In-Progress",onClick:()=>{l!==!0&&i.reasonUpdateFetchState.fetchState!=="In-Progress"&&d(i.auditRuleId,a.auditRuleGroupId,i.reason?.reasonToPass??"","approved")}})]})}):o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{})]})]})})},hv=s.div`
4903
4903
  display: flex;
4904
4904
  margin-right: ${t.Space.sp2};
4905
4905
  margin-left: ${t.Space.sp2};
4906
4906
  justify-content: center;
4907
4907
  align-items: center;
4908
- `,hv=s.div`
4908
+ `,gv=s.div`
4909
4909
  flex: none;
4910
4910
  order: 1;
4911
4911
  flex-grow: 0;
4912
4912
  margin: ${t.Space.sp0} ${t.Space.sp1} ${t.Space.sp0} ${t.Space.sp2};
4913
- `,gv=s.div`
4913
+ `,Sv=s.div`
4914
4914
  flex: none;
4915
4915
  order: 3;
4916
4916
  flex-grow: 0;
4917
- `,Sv=s(t.SmallRegular)`
4917
+ `,yv=s(t.SmallRegular)`
4918
4918
  display: flex;
4919
4919
  color: ${e=>e.theme.colors.hero};
4920
4920
  margin-top: 2px;
4921
- `,yv=s(t.LargeRegularA)`
4921
+ `,fv=s(t.LargeRegularA)`
4922
4922
  color: ${e=>e.theme.colors.primary};
4923
- `,fv=s.div`
4923
+ `,Cv=s.div`
4924
4924
  display: flex;
4925
4925
  flex-direction: row;
4926
4926
  justify-content: center;
4927
4927
  align-items: center;
4928
- `,Cv=s.div`
4928
+ `,jv=s.div`
4929
4929
  display: flex;
4930
4930
  flex-direction: row;
4931
- `,jv=s.img`
4931
+ `,bv=s.img`
4932
4932
  height: ${t.Space.sp3};
4933
4933
  width: ${t.Space.sp3};
4934
4934
  border-radius: 50%;
4935
4935
  justify-content: center;
4936
4936
  color: ${e=>e.theme.colors.champion};
4937
- `,bv=s.div`
4937
+ `,Rv=s.div`
4938
4938
  height: ${t.Space.sp3};
4939
4939
  position: relative;
4940
4940
  color: ${e=>e.theme.colors.grey1};
@@ -4942,38 +4942,38 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4942
4942
  &:hover {
4943
4943
  cursor: pointer;
4944
4944
  }
4945
- `,Rv=s.div`
4946
- position: relative;
4947
4945
  `,$v=s.div`
4946
+ position: relative;
4947
+ `,Ev=s.div`
4948
4948
  display: flex;
4949
4949
  justify-content: space-between;
4950
4950
  align-items: flex-start;
4951
4951
  padding: ${t.Space.sp2};
4952
- `,Ev=s.div`
4952
+ `,vv=s.div`
4953
4953
  display: flex;
4954
4954
  height: auto;
4955
4955
  padding-bottom: ${t.Space.sp3};
4956
4956
  justify-content: space-between;
4957
4957
  align-items: flex-start;
4958
- `,vv=s(t.StandardRegularLabel)`
4958
+ `,wv=s(t.StandardRegularLabel)`
4959
4959
  margin-left: ${t.Space.sp6};
4960
4960
  margin-right: ${t.Space.sp6};
4961
- `,wv=s.div`
4961
+ `,kv=s.div`
4962
4962
  display: flex;
4963
4963
  width: 100%;
4964
4964
  padding: ${t.Space.sp2};
4965
4965
  flex-direction: column;
4966
4966
  border-top: 1px solid ${e=>e.theme.colors.grey2};
4967
- `,kv=s.div`
4967
+ `,Tv=s.div`
4968
4968
  display: flex;
4969
4969
  justify-content: center;
4970
4970
  align-items: center;
4971
4971
  gap: ${t.Space.sp3};
4972
- `,Tv=s(t.SvgEdit)`
4972
+ `,Pv=s(t.SvgEdit)`
4973
4973
  width: ${t.Space.sp4};
4974
4974
  height: ${t.Space.sp4};
4975
4975
  margin-left: -${t.Space.sp1};
4976
- `,Pv=s(t.Button)``,Iv=s(t.Button)``,{cockpit:Lv,common:Nn}=t.appLocale.getLocalizedStrings(),Av=({loggedInUser:e,isControllerOrReviewer:n,allUsers:r,isMonthEnd:i,rule:a,isGroupFixed:c,ruleGroup:l,onClickRule:d,handleReasonAuditRule:u})=>{const x=()=>{d(a.entityType,a.entityIds[0],a.auditRuleId)},[m,f]=p.useState(""),h=i&&l.ruleType===Nn.texts.business.toLowerCase()&&!a.isSuccess,y=Ae.useTheme(),j=h&&a.reason?.reasonStatus==="approved";return o.jsxRuntimeExports.jsxs(Dv,{children:[o.jsxRuntimeExports.jsxs(Ov,{onClick:g=>{g.stopPropagation(),x()},children:[a.isSuccess?o.jsxRuntimeExports.jsx(Nv,{}):j?o.jsxRuntimeExports.jsx(Mv,{}):o.jsxRuntimeExports.jsx(Fv,{width:t.sp[3],height:t.sp[3]}),o.jsxRuntimeExports.jsx(zv,{isGroupFixed:c,children:a.message}),j?o.jsxRuntimeExports.jsx(_v,{children:Lv.monthEndReport.issueBypassed}):null]}),h&&(a.reason?.reasonStatus==="pending"?o.jsxRuntimeExports.jsx(mv,{rule:a,ruleGroup:l,handleReasonAuditRule:u,triggerComponent:o.jsxRuntimeExports.jsx(t.Button,{variant:"outline",buttonColors:{borderColor:{default:t.Colors.brandColorGoldDark,hover:t.Colors.brandColorGoldDark,disabled:t.Colors.brandColorGoldDark},backgroundColor:{default:t.Colors.brandColorGoldDark,hover:t.Colors.brandColorGoldDark,disabled:t.Colors.brandColorGoldDark},textColor:{disabled:t.Colors.primaryWhite,default:t.Colors.primaryWhite,hover:t.Colors.primaryWhite}},size:"small",loading:a.reasonUpdateFetchState.fetchState==="In-Progress",style:{whiteSpace:"nowrap",padding:`2px ${t.Space.sp2}`},label:a.reason.userId===e.userId?Nn.footer.sentForReview:Nn.footer.inReview}),isControllerOrReviewer:n,allUsers:r,loggedInUser:e,setCommentsText:f}):a.reason?.reasonStatus==null?o.jsxRuntimeExports.jsx(X5,{rule:a,commentsText:m,setCommentsText:f,ruleGroup:l,handleReasonAuditRule:u,isControllerOrReviewer:n,triggerComponent:o.jsxRuntimeExports.jsx(t.Button,{disabled:a.reasonUpdateFetchState.fetchState==="In-Progress",buttonColors:y.mode==="dark"?{borderColor:{default:t.Colors.primaryLight,hover:t.Colors.championLight,disabled:t.Colors.championLight},backgroundColor:{default:t.Colors.primaryLight,hover:t.Colors.championLight,disabled:t.Colors.championLight},textColor:{default:t.Colors.primaryDark,hover:t.Colors.primaryDark,disabled:t.Colors.primaryDark}}:{borderColor:{default:y.colors.primary,hover:y.colors.champion,disabled:y.colors.champion},backgroundColor:{default:y.colors.primary,hover:y.colors.champion,disabled:y.colors.grey3},textColor:{default:y.colors.grey5,hover:y.colors.grey5,disabled:y.colors.grey5}},size:"small",style:{whiteSpace:"nowrap",padding:`2px ${t.Space.sp2}`},label:Nn.resolve,reverseSpinnerColor:!0})}):null)]})},Dv=s.div`
4976
+ `,Iv=s(t.Button)``,Lv=s(t.Button)``,{cockpit:Av,common:Nn}=t.appLocale.getLocalizedStrings(),Dv=({loggedInUser:e,isControllerOrReviewer:n,allUsers:r,isMonthEnd:i,rule:a,isGroupFixed:c,ruleGroup:l,onClickRule:d,handleReasonAuditRule:u})=>{const x=()=>{d(a.entityType,a.entityIds[0],a.auditRuleId)},[m,f]=p.useState(""),h=i&&l.ruleType===Nn.texts.business.toLowerCase()&&!a.isSuccess,y=Ae.useTheme(),j=h&&a.reason?.reasonStatus==="approved";return o.jsxRuntimeExports.jsxs(Ov,{children:[o.jsxRuntimeExports.jsxs(Nv,{onClick:g=>{g.stopPropagation(),x()},children:[a.isSuccess?o.jsxRuntimeExports.jsx(Mv,{}):j?o.jsxRuntimeExports.jsx(Fv,{}):o.jsxRuntimeExports.jsx(zv,{width:t.sp[3],height:t.sp[3]}),o.jsxRuntimeExports.jsx(_v,{isGroupFixed:c,children:a.message}),j?o.jsxRuntimeExports.jsx(Bv,{children:Av.monthEndReport.issueBypassed}):null]}),h&&(a.reason?.reasonStatus==="pending"?o.jsxRuntimeExports.jsx(xv,{rule:a,ruleGroup:l,handleReasonAuditRule:u,triggerComponent:o.jsxRuntimeExports.jsx(t.Button,{variant:"outline",buttonColors:{borderColor:{default:t.Colors.brandColorGoldDark,hover:t.Colors.brandColorGoldDark,disabled:t.Colors.brandColorGoldDark},backgroundColor:{default:t.Colors.brandColorGoldDark,hover:t.Colors.brandColorGoldDark,disabled:t.Colors.brandColorGoldDark},textColor:{disabled:t.Colors.primaryWhite,default:t.Colors.primaryWhite,hover:t.Colors.primaryWhite}},size:"small",loading:a.reasonUpdateFetchState.fetchState==="In-Progress",style:{whiteSpace:"nowrap",padding:`2px ${t.Space.sp2}`},label:a.reason.userId===e.userId?Nn.footer.sentForReview:Nn.footer.inReview}),isControllerOrReviewer:n,allUsers:r,loggedInUser:e,setCommentsText:f}):a.reason?.reasonStatus==null?o.jsxRuntimeExports.jsx(Q5,{rule:a,commentsText:m,setCommentsText:f,ruleGroup:l,handleReasonAuditRule:u,isControllerOrReviewer:n,triggerComponent:o.jsxRuntimeExports.jsx(t.Button,{disabled:a.reasonUpdateFetchState.fetchState==="In-Progress",buttonColors:y.mode==="dark"?{borderColor:{default:t.Colors.primaryLight,hover:t.Colors.championLight,disabled:t.Colors.championLight},backgroundColor:{default:t.Colors.primaryLight,hover:t.Colors.championLight,disabled:t.Colors.championLight},textColor:{default:t.Colors.primaryDark,hover:t.Colors.primaryDark,disabled:t.Colors.primaryDark}}:{borderColor:{default:y.colors.primary,hover:y.colors.champion,disabled:y.colors.champion},backgroundColor:{default:y.colors.primary,hover:y.colors.champion,disabled:y.colors.grey3},textColor:{default:y.colors.grey5,hover:y.colors.grey5,disabled:y.colors.grey5}},size:"small",style:{whiteSpace:"nowrap",padding:`2px ${t.Space.sp2}`},label:Nn.resolve,reverseSpinnerColor:!0})}):null)]})},Ov=s.div`
4977
4977
  display: flex;
4978
4978
  justify-content: space-between;
4979
4979
  align-items: center;
@@ -4981,37 +4981,37 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
4981
4981
  :not(:last-of-type) {
4982
4982
  margin-bottom: ${t.Space.sp2};
4983
4983
  }
4984
- `,Ov=s.div`
4984
+ `,Nv=s.div`
4985
4985
  display: flex;
4986
4986
  align-items: center;
4987
- `,Nv=s(t.SvgTickRoundFill)`
4987
+ `,Mv=s(t.SvgTickRoundFill)`
4988
4988
  display: flex;
4989
4989
  width: ${t.Space.sp3};
4990
4990
  height: ${t.Space.sp3};
4991
4991
  color: ${t.Colors.success};
4992
- `,Mv=s(t.SvgTickRoundFill)`
4992
+ `,Fv=s(t.SvgTickRoundFill)`
4993
4993
  display: flex;
4994
4994
  width: ${t.Space.sp3};
4995
4995
  height: ${t.Space.sp3};
4996
4996
  color: ${t.Colors.brandColorGoldDark};
4997
- `,Fv=s(t.SvgHighImportanceFilled)`
4997
+ `,zv=s(t.SvgHighImportanceFilled)`
4998
4998
  display: flex;
4999
4999
  width: ${t.Space.sp3};
5000
5000
  height: ${t.Space.sp3};
5001
5001
  color: ${t.Colors.brandColorGoldDark};
5002
- `,zv=s(t.LargeRegular)`
5002
+ `,_v=s(t.LargeRegular)`
5003
5003
  display: flex;
5004
5004
  margin-left: ${t.Space.sp2};
5005
5005
  justify-content: space-around;
5006
5006
  align-items: center;
5007
5007
  color: ${e=>e.isGroupFixed?e.theme.colors.primary:t.Colors.primaryLight};
5008
- `,_v=s(t.LargeRegular)`
5008
+ `,Bv=s(t.LargeRegular)`
5009
5009
  display: flex;
5010
5010
  margin-left: ${t.Space.sp2};
5011
5011
  justify-content: space-around;
5012
5012
  align-items: center;
5013
5013
  color: ${t.Colors.brandColorGoldDark};
5014
- `,{cockpit:{errorMessages:{auditReportFetchError:Bv},review:{auditReportDrawer:{reviewing:Wv}}},common:{retry:Vv,review:Uv,strings:{empty:Hv,space:Kv}}}=t.appLocale.getLocalizedStrings(),da=({loggedInUser:e,isControllerOrReviewer:n,allUsers:r,isMonthEnd:i,auditReportGroup:a,groupIdWithActiveStatus:c,ruleGroup:l,setGroupIdWithActiveStatus:d,onClickRetryGroupFetch:u,onClickRule:x,handleReasonAuditRule:m})=>{const f=a.fetchState,h=f==="In-Progress"&&c[l.auditRuleGroupId].isActive===!0,y=(f==="Completed"||f==="Error")&&c[l.auditRuleGroupId].isActive===!0,j=!a.auditReport?.auditRulesGroupReport[0]?.isSuccess,g=Gv(y,h,l,a),b=()=>{const S=c[l.auditRuleGroupId];f==="Completed"&&d({...c,[l.auditRuleGroupId]:{...S,isGroupExpanded:!S.isGroupExpanded}})},C=()=>{u(a.auditReportGroupId)};return o.jsxRuntimeExports.jsxs(Yv,{isGroupActive:y,isGroupLoading:h,isAnyIssueInReportGroup:j,groupFetchState:f,isGroupExpanded:c[l.auditRuleGroupId].isGroupExpanded,isFirst:c[l.auditRuleGroupId].isFirst,isLast:c[l.auditRuleGroupId].isLast,children:[o.jsxRuntimeExports.jsxs(Zv,{onClick:b,children:[h?o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):y?j?o.jsxRuntimeExports.jsx(pa,{}):f==="Error"?o.jsxRuntimeExports.jsx(pa,{}):o.jsxRuntimeExports.jsx(tw,{}):o.jsxRuntimeExports.jsx(ow,{}),o.jsxRuntimeExports.jsxs(qv,{children:[o.jsxRuntimeExports.jsx(Jv,{isGroupActive:y,isGroupLoading:h,isAnyIssueInReportGroup:j,groupFetchState:f,children:g}),y?f==="Completed"&&(a.auditReport?.auditRulesGroupReport[0]?.auditRules.length??0)>0?c[l.auditRuleGroupId].isGroupExpanded?o.jsxRuntimeExports.jsx(Qv,{isAnyIssueInReportGroup:j}):o.jsxRuntimeExports.jsx(Xv,{isAnyIssueInReportGroup:j}):o.jsxRuntimeExports.jsx(t.Button,{label:Vv,onClick:C,variant:"outline",buttonColors:{borderColor:{default:t.Colors.neutralGrey2Light,hover:t.Colors.primaryLight,disabled:t.Colors.neutralGrey2Light},backgroundColor:{default:"transparent",hover:"transparent",disabled:"transparent"},textColor:{default:t.Colors.heroLight,hover:t.Colors.primaryLight,disabled:t.Colors.heroLight}},style:{padding:`${t.Space.sp1} ${t.Space.sp3}`,borderRadius:t.Space.sp1,marginBottom:"-2px",marginTop:"-2px"},textStyle:{...t.textStyles.smallRegular.cssObject}}):null]})]}),c[l.auditRuleGroupId].isGroupExpanded?o.jsxRuntimeExports.jsx(ew,{children:a.auditReport?.auditRulesGroupReport.map(S=>S.auditRules.map($=>o.jsxRuntimeExports.jsx(Av,{loggedInUser:e,isControllerOrReviewer:n,allUsers:r,isMonthEnd:i,rule:$,isGroupFixed:!j,ruleGroup:l,onClickRule:x,handleReasonAuditRule:m},$.auditRuleId)))}):null]})},Gv=(e,n,r,i)=>{if(e){if(i.fetchState==="Error")return`${Bv} ${r.auditRuleGroupDescription.toLocaleLowerCase()}`;if(i.fetchState==="Completed"){const a=Ul(i.auditReport?.auditRulesGroupReport[0]?.auditRules);return i.auditReport?.auditRulesGroupReport[0].isSuccess===!0?r.auditRuleGroupDescription:`${r.auditRuleGroupDescription} (${a})`}return Hv}else return(n?Wv:Uv)+Kv+r.auditRuleGroupDescription.toLocaleLowerCase()},Ul=e=>e?.filter(r=>r.isSuccess===!1)?.length??0,Yv=s.div`
5014
+ `,{cockpit:{errorMessages:{auditReportFetchError:Wv},review:{auditReportDrawer:{reviewing:Vv}}},common:{retry:Uv,review:Hv,strings:{empty:Kv,space:Gv}}}=t.appLocale.getLocalizedStrings(),da=({loggedInUser:e,isControllerOrReviewer:n,allUsers:r,isMonthEnd:i,auditReportGroup:a,groupIdWithActiveStatus:c,ruleGroup:l,setGroupIdWithActiveStatus:d,onClickRetryGroupFetch:u,onClickRule:x,handleReasonAuditRule:m})=>{const f=a.fetchState,h=f==="In-Progress"&&c[l.auditRuleGroupId].isActive===!0,y=(f==="Completed"||f==="Error")&&c[l.auditRuleGroupId].isActive===!0,j=!a.auditReport?.auditRulesGroupReport[0]?.isSuccess,g=Yv(y,h,l,a),b=()=>{const S=c[l.auditRuleGroupId];f==="Completed"&&d({...c,[l.auditRuleGroupId]:{...S,isGroupExpanded:!S.isGroupExpanded}})},C=()=>{u(a.auditReportGroupId)};return o.jsxRuntimeExports.jsxs(Zv,{isGroupActive:y,isGroupLoading:h,isAnyIssueInReportGroup:j,groupFetchState:f,isGroupExpanded:c[l.auditRuleGroupId].isGroupExpanded,isFirst:c[l.auditRuleGroupId].isFirst,isLast:c[l.auditRuleGroupId].isLast,children:[o.jsxRuntimeExports.jsxs(qv,{onClick:b,children:[h?o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):y?j?o.jsxRuntimeExports.jsx(pa,{}):f==="Error"?o.jsxRuntimeExports.jsx(pa,{}):o.jsxRuntimeExports.jsx(ow,{}):o.jsxRuntimeExports.jsx(nw,{}),o.jsxRuntimeExports.jsxs(Xv,{children:[o.jsxRuntimeExports.jsx(ew,{isGroupActive:y,isGroupLoading:h,isAnyIssueInReportGroup:j,groupFetchState:f,children:g}),y?f==="Completed"&&(a.auditReport?.auditRulesGroupReport[0]?.auditRules.length??0)>0?c[l.auditRuleGroupId].isGroupExpanded?o.jsxRuntimeExports.jsx(Jv,{isAnyIssueInReportGroup:j}):o.jsxRuntimeExports.jsx(Qv,{isAnyIssueInReportGroup:j}):o.jsxRuntimeExports.jsx(t.Button,{label:Uv,onClick:C,variant:"outline",buttonColors:{borderColor:{default:t.Colors.neutralGrey2Light,hover:t.Colors.primaryLight,disabled:t.Colors.neutralGrey2Light},backgroundColor:{default:"transparent",hover:"transparent",disabled:"transparent"},textColor:{default:t.Colors.heroLight,hover:t.Colors.primaryLight,disabled:t.Colors.heroLight}},style:{padding:`${t.Space.sp1} ${t.Space.sp3}`,borderRadius:t.Space.sp1,marginBottom:"-2px",marginTop:"-2px"},textStyle:{...t.textStyles.smallRegular.cssObject}}):null]})]}),c[l.auditRuleGroupId].isGroupExpanded?o.jsxRuntimeExports.jsx(tw,{children:a.auditReport?.auditRulesGroupReport.map(S=>S.auditRules.map($=>o.jsxRuntimeExports.jsx(Dv,{loggedInUser:e,isControllerOrReviewer:n,allUsers:r,isMonthEnd:i,rule:$,isGroupFixed:!j,ruleGroup:l,onClickRule:x,handleReasonAuditRule:m},$.auditRuleId)))}):null]})},Yv=(e,n,r,i)=>{if(e){if(i.fetchState==="Error")return`${Wv} ${r.auditRuleGroupDescription.toLocaleLowerCase()}`;if(i.fetchState==="Completed"){const a=Ul(i.auditReport?.auditRulesGroupReport[0]?.auditRules);return i.auditReport?.auditRulesGroupReport[0].isSuccess===!0?r.auditRuleGroupDescription:`${r.auditRuleGroupDescription} (${a})`}return Kv}else return(n?Vv:Hv)+Gv+r.auditRuleGroupDescription.toLocaleLowerCase()},Ul=e=>e?.filter(r=>r.isSuccess===!1)?.length??0,Zv=s.div`
5015
5015
  display: flex;
5016
5016
  background-color: ${e=>e.isGroupActive&&(e.groupFetchState==="Error"||e.isAnyIssueInReportGroup)?t.Colors.alertLight:e.theme.colors.grey5};
5017
5017
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
@@ -5025,16 +5025,16 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5025
5025
  }
5026
5026
  flex-direction: column;
5027
5027
  cursor: ${e=>e.groupFetchState=="Completed"?"pointer":"inherit"};
5028
- `,Zv=s.div`
5028
+ `,qv=s.div`
5029
5029
  display: flex;
5030
5030
  margin: ${t.Space.sp3};
5031
5031
  align-items: center;
5032
- `,qv=s.div`
5032
+ `,Xv=s.div`
5033
5033
  display: flex;
5034
5034
  width: 100%;
5035
5035
  justify-content: space-between;
5036
5036
  align-items: center;
5037
- `,Xv=s(t.SvgArrowRight)`
5037
+ `,Qv=s(t.SvgArrowRight)`
5038
5038
  display: flex;
5039
5039
  align-items: center;
5040
5040
  width: ${t.Space.sp3};
@@ -5043,18 +5043,18 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5043
5043
  &:hover {
5044
5044
  color: ${e=>e.isAnyIssueInReportGroup?t.Colors.primaryLight:e.theme.colors.primary};
5045
5045
  }
5046
- `,Qv=s(t.SvgArrowBottom)`
5046
+ `,Jv=s(t.SvgArrowBottom)`
5047
5047
  display: flex;
5048
5048
  align-items: center;
5049
5049
  width: ${t.Space.sp3};
5050
5050
  height: ${t.Space.sp3};
5051
5051
  color: ${e=>e.isAnyIssueInReportGroup?t.Colors.primaryLight:e.theme.colors.primary};
5052
- `,Jv=s(t.LargeRegular)`
5052
+ `,ew=s(t.LargeRegular)`
5053
5053
  display: flex;
5054
5054
  color: ${e=>e.isGroupActive?e.groupFetchState==="Error"||e.isAnyIssueInReportGroup?t.Colors.brandColorGoldDark:e.theme.colors.primary:e.isGroupLoading?e.theme.colors.primary:e.theme.colors.grey2};
5055
5055
  margin-left: ${t.Space.sp2};
5056
5056
  align-items: center;
5057
- `,ew=s.div`
5057
+ `,tw=s.div`
5058
5058
  display: flex;
5059
5059
  margin-left: ${t.Space.sp7};
5060
5060
  margin-bottom: ${t.Space.sp3};
@@ -5063,27 +5063,27 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5063
5063
  width: ${t.Space.sp4};
5064
5064
  height: ${t.Space.sp4};
5065
5065
  color: ${t.Colors.brandColorGoldDark};
5066
- `,tw=s(t.SvgTickRoundFill)`
5066
+ `,ow=s(t.SvgTickRoundFill)`
5067
5067
  width: ${t.Space.sp4};
5068
5068
  height: ${t.Space.sp4};
5069
5069
  color: ${t.Colors.success};
5070
- `,ow=s(t.SvgLoader)`
5070
+ `,nw=s(t.SvgLoader)`
5071
5071
  width: ${t.Space.sp4};
5072
5072
  height: ${t.Space.sp4};
5073
5073
  color: ${e=>e.theme.colors.grey2};
5074
- `,Qs={navBarHeight:new t.ResponsiveSized(62,62,62),navBarPaddingLeft:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),navBarPaddingRight:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8])},{cockpit:{review:nw},timeFormat:sw,common:Xo,dateFormat:zs}=t.appLocale.getLocalizedStrings(),rw=({isAuditScoreCompleted:e,auditRuleGroups:n,loggedInUser:r,isMonthEnd:i,auditReportGroupView:a,allUsers:c,reviewCompanyView:l,style:d,analytics:u,handleFetchAuditReportGroupView:x,handleGenerateAuditReport:m,handleCancelIconClick:f,handleRuleClick:h,handleReasonAuditRule:y})=>{const j=t.useWindowSizeContext(),[g,b]=p.useState(_s(n,1)),[C,S]=p.useState({id:n[0]?.auditRuleGroupId,index:0}),[$,v]=p.useState(!1),[R,P]=p.useState(1),[E,k]=p.useState(!1),[F,_]=p.useState(null),H=p.useMemo(()=>l?.controllers.map(L=>`${L.user.firstName} ${L.user.middleName} ${L.user.lastName}`)??[],[l?.controllers]),U={fixesRequired:0,totalChecks:0,auditScorePercentage:0,bypassedAuditScore:0,auditReportLastGeneratedDate:null};p.useEffect(()=>{a.auditReportGroups.forEach(L=>{a.auditReportGroups.forEach(O=>{O.auditReportGroupId===C.id&&(O.fetchState==="Completed"||O.fetchState==="Error")&&S({id:n[C.index+1]?.auditRuleGroupId,index:C.index+1})});const T=L.auditReport?.auditRulesGroupReport.find(O=>O.auditRuleGroupId===L.auditReportGroupId);(L.fetchState==="Completed"&&C.id===L.auditReportGroupId&&g[L.auditReportGroupId].isActive===!0&&T?.sequence===R||L.fetchState==="Error"&&C.id===L.auditReportGroupId)&&(P(R+1),b(_s(n,R+1)))})},[a.auditReportGroups,R,n,g]),p.useEffect(()=>{if(a.auditReportGroups.filter(W=>W.fetchState==="In-Progress").length===0&&v(!0),a.auditReportGroups.filter(W=>W.fetchState==="Completed"||W.fetchState==="Error").length===n.length){k(!0);let W=0;a.auditReportGroups.forEach(z=>{W=W+Ul(z.auditReport?.auditRulesGroupReport[0]?.auditRules)});const ee=iw(a),Y=J.dateNow().startOf("month").subtract(1,"date").format(zs.visual.MMMYYYYFormat),Z=l?.customerGroup,X=Math.ceil(a.auditReportGroups[0].auditReport?.auditSummary.auditScorePercentage??0);u.trackAuditScorePercentage(J.dateNow().format(zs.analytics.MMSlashDDSlashYYYYFormat),Y,X,l?.name??"",ee,W,H,Z??null)}const O=a.auditReportGroups.find(W=>W.fetchState==="Completed");O?.auditReport?.status?.lastRefreshSuccessTime!=null&&_(O)},[a.auditReportGroups,n.length,u,l,a,H]);const G=()=>{b(_s(n,1)),S({id:n[0]?.auditRuleGroupId,index:0}),v(!1),P(1),k(!1),_(null)},B=()=>{G();const L=n.map(T=>T.auditRuleGroupId);m(L)},w=()=>{f()},N=L=>{x(L)},V=(L,T,O)=>{u.trackAuditIssuesClicked(O,l?.name??"",H,J.dateNow().format(zs.analytics.MMSlashDDSlashYYYYFormat)),h(L,T)};return o.jsxRuntimeExports.jsxs(aw,{style:d,children:[o.jsxRuntimeExports.jsx(pw,{windowSize:j,style:d,children:o.jsxRuntimeExports.jsx(uw,{children:o.jsxRuntimeExports.jsxs(mw,{windowSize:j,children:[o.jsxRuntimeExports.jsx(lw,{}),o.jsxRuntimeExports.jsxs(xw,{children:[o.jsxRuntimeExports.jsx(hw,{children:l?.name}),o.jsxRuntimeExports.jsx(gw,{children:E?F?.auditReport?.status?.lastRefreshSuccessTime?.utc(!0).local().format(sw.hmmADashDDMMMCommaYYYY):Xo.strings.empty})]}),o.jsxRuntimeExports.jsxs(yw,{children:[o.jsxRuntimeExports.jsxs(Sw,{isGenerateClickEnabled:$,onClick:B,children:[o.jsxRuntimeExports.jsx(Cw,{}),o.jsxRuntimeExports.jsx(fw,{children:nw.auditReportDrawer.updateScore})]}),o.jsxRuntimeExports.jsx(jw,{onClick:w,children:o.jsxRuntimeExports.jsx(bw,{})})]})]})})}),o.jsxRuntimeExports.jsxs(cw,{children:[o.jsxRuntimeExports.jsx(dw,{children:o.jsxRuntimeExports.jsx(Z5,{auditSummaryData:l!=null?l.auditSummary:U,isAuditScoreLoadingCompleted:E&&e,isMonthEnd:i})}),o.jsxRuntimeExports.jsxs(ua,{children:[o.jsxRuntimeExports.jsx(ma,{children:Xo.texts.business}),o.jsxRuntimeExports.jsx(xa,{children:n.filter(L=>L.ruleType===Xo.texts.business.toLowerCase()).map(L=>{const T=a.auditReportGroups.find(O=>O.auditReportGroupId===L.auditRuleGroupId);return T!=null&&Object.keys(g).length>0?o.jsxRuntimeExports.jsx(da,{loggedInUser:r,isControllerOrReviewer:a.isControllerOrReviewer,allUsers:c,isMonthEnd:i,ruleGroup:L,groupIdWithActiveStatus:g,auditReportGroup:T,setGroupIdWithActiveStatus:b,onClickRetryGroupFetch:N,onClickRule:V,handleReasonAuditRule:y},L.auditRuleGroupId):null})})]}),o.jsxRuntimeExports.jsxs(ua,{children:[o.jsxRuntimeExports.jsx(ma,{children:Xo.settings.title.accounting}),o.jsxRuntimeExports.jsx(xa,{children:n.filter(L=>L.ruleType===Xo.settings.title.accounting.toLowerCase()).map(L=>{const T=a.auditReportGroups.find(O=>O.auditReportGroupId===L.auditRuleGroupId);return T!=null&&Object.keys(g).length>0?o.jsxRuntimeExports.jsx(da,{loggedInUser:r,isControllerOrReviewer:a.isControllerOrReviewer,allUsers:c,isMonthEnd:i,ruleGroup:L,groupIdWithActiveStatus:g,auditReportGroup:T,setGroupIdWithActiveStatus:b,onClickRetryGroupFetch:N,onClickRule:V,handleReasonAuditRule:y},L.auditRuleGroupId):null})})]})]})]})},_s=(e,n)=>{const r={},i={};return e.forEach(a=>{const{ruleType:c,sequence:l}=a;i[c]===void 0?i[c]={first:l,last:l}:(l<i[c].first&&(i[c].first=l),l>i[c].last&&(i[c].last=l))}),e.forEach(a=>{const{auditRuleGroupId:c,ruleType:l,sequence:d}=a,u=d<=n,x=d===i[l].first,m=d===i[l].last;r[c]={isActive:u,isGroupExpanded:!1,isFirst:x,isLast:m}}),r},iw=e=>e.auditReportGroups.filter(r=>r.auditReport?.auditRulesGroupReport[0].isSuccess===!1).map(r=>r.auditReportGroupId),aw=s.div`
5074
+ `,Qs={navBarHeight:new t.ResponsiveSized(62,62,62),navBarPaddingLeft:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),navBarPaddingRight:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8])},{cockpit:{review:sw},timeFormat:rw,common:Xo,dateFormat:zs}=t.appLocale.getLocalizedStrings(),iw=({isAuditScoreCompleted:e,auditRuleGroups:n,loggedInUser:r,isMonthEnd:i,auditReportGroupView:a,allUsers:c,reviewCompanyView:l,style:d,analytics:u,handleFetchAuditReportGroupView:x,handleGenerateAuditReport:m,handleCancelIconClick:f,handleRuleClick:h,handleReasonAuditRule:y})=>{const j=t.useWindowSizeContext(),[g,b]=p.useState(_s(n,1)),[C,S]=p.useState({id:n[0]?.auditRuleGroupId,index:0}),[$,v]=p.useState(!1),[R,P]=p.useState(1),[E,k]=p.useState(!1),[F,_]=p.useState(null),H=p.useMemo(()=>l?.controllers.map(L=>`${L.user.firstName} ${L.user.middleName} ${L.user.lastName}`)??[],[l?.controllers]),U={fixesRequired:0,totalChecks:0,auditScorePercentage:0,bypassedAuditScore:0,auditReportLastGeneratedDate:null};p.useEffect(()=>{a.auditReportGroups.forEach(L=>{a.auditReportGroups.forEach(O=>{O.auditReportGroupId===C.id&&(O.fetchState==="Completed"||O.fetchState==="Error")&&S({id:n[C.index+1]?.auditRuleGroupId,index:C.index+1})});const T=L.auditReport?.auditRulesGroupReport.find(O=>O.auditRuleGroupId===L.auditReportGroupId);(L.fetchState==="Completed"&&C.id===L.auditReportGroupId&&g[L.auditReportGroupId].isActive===!0&&T?.sequence===R||L.fetchState==="Error"&&C.id===L.auditReportGroupId)&&(P(R+1),b(_s(n,R+1)))})},[a.auditReportGroups,R,n,g]),p.useEffect(()=>{if(a.auditReportGroups.filter(W=>W.fetchState==="In-Progress").length===0&&v(!0),a.auditReportGroups.filter(W=>W.fetchState==="Completed"||W.fetchState==="Error").length===n.length){k(!0);let W=0;a.auditReportGroups.forEach(z=>{W=W+Ul(z.auditReport?.auditRulesGroupReport[0]?.auditRules)});const ee=aw(a),Y=J.dateNow().startOf("month").subtract(1,"date").format(zs.visual.MMMYYYYFormat),Z=l?.customerGroup,X=Math.ceil(a.auditReportGroups[0].auditReport?.auditSummary.auditScorePercentage??0);u.trackAuditScorePercentage(J.dateNow().format(zs.analytics.MMSlashDDSlashYYYYFormat),Y,X,l?.name??"",ee,W,H,Z??null)}const O=a.auditReportGroups.find(W=>W.fetchState==="Completed");O?.auditReport?.status?.lastRefreshSuccessTime!=null&&_(O)},[a.auditReportGroups,n.length,u,l,a,H]);const G=()=>{b(_s(n,1)),S({id:n[0]?.auditRuleGroupId,index:0}),v(!1),P(1),k(!1),_(null)},B=()=>{G();const L=n.map(T=>T.auditRuleGroupId);m(L)},w=()=>{f()},N=L=>{x(L)},V=(L,T,O)=>{u.trackAuditIssuesClicked(O,l?.name??"",H,J.dateNow().format(zs.analytics.MMSlashDDSlashYYYYFormat)),h(L,T)};return o.jsxRuntimeExports.jsxs(lw,{style:d,children:[o.jsxRuntimeExports.jsx(uw,{windowSize:j,style:d,children:o.jsxRuntimeExports.jsx(mw,{children:o.jsxRuntimeExports.jsxs(xw,{windowSize:j,children:[o.jsxRuntimeExports.jsx(cw,{}),o.jsxRuntimeExports.jsxs(hw,{children:[o.jsxRuntimeExports.jsx(gw,{children:l?.name}),o.jsxRuntimeExports.jsx(Sw,{children:E?F?.auditReport?.status?.lastRefreshSuccessTime?.utc(!0).local().format(rw.hmmADashDDMMMCommaYYYY):Xo.strings.empty})]}),o.jsxRuntimeExports.jsxs(fw,{children:[o.jsxRuntimeExports.jsxs(yw,{isGenerateClickEnabled:$,onClick:B,children:[o.jsxRuntimeExports.jsx(jw,{}),o.jsxRuntimeExports.jsx(Cw,{children:sw.auditReportDrawer.updateScore})]}),o.jsxRuntimeExports.jsx(bw,{onClick:w,children:o.jsxRuntimeExports.jsx(Rw,{})})]})]})})}),o.jsxRuntimeExports.jsxs(dw,{children:[o.jsxRuntimeExports.jsx(pw,{children:o.jsxRuntimeExports.jsx(q5,{auditSummaryData:l!=null?l.auditSummary:U,isAuditScoreLoadingCompleted:E&&e,isMonthEnd:i})}),o.jsxRuntimeExports.jsxs(ua,{children:[o.jsxRuntimeExports.jsx(ma,{children:Xo.texts.business}),o.jsxRuntimeExports.jsx(xa,{children:n.filter(L=>L.ruleType===Xo.texts.business.toLowerCase()).map(L=>{const T=a.auditReportGroups.find(O=>O.auditReportGroupId===L.auditRuleGroupId);return T!=null&&Object.keys(g).length>0?o.jsxRuntimeExports.jsx(da,{loggedInUser:r,isControllerOrReviewer:a.isControllerOrReviewer,allUsers:c,isMonthEnd:i,ruleGroup:L,groupIdWithActiveStatus:g,auditReportGroup:T,setGroupIdWithActiveStatus:b,onClickRetryGroupFetch:N,onClickRule:V,handleReasonAuditRule:y},L.auditRuleGroupId):null})})]}),o.jsxRuntimeExports.jsxs(ua,{children:[o.jsxRuntimeExports.jsx(ma,{children:Xo.settings.title.accounting}),o.jsxRuntimeExports.jsx(xa,{children:n.filter(L=>L.ruleType===Xo.settings.title.accounting.toLowerCase()).map(L=>{const T=a.auditReportGroups.find(O=>O.auditReportGroupId===L.auditRuleGroupId);return T!=null&&Object.keys(g).length>0?o.jsxRuntimeExports.jsx(da,{loggedInUser:r,isControllerOrReviewer:a.isControllerOrReviewer,allUsers:c,isMonthEnd:i,ruleGroup:L,groupIdWithActiveStatus:g,auditReportGroup:T,setGroupIdWithActiveStatus:b,onClickRetryGroupFetch:N,onClickRule:V,handleReasonAuditRule:y},L.auditRuleGroupId):null})})]})]})]})},_s=(e,n)=>{const r={},i={};return e.forEach(a=>{const{ruleType:c,sequence:l}=a;i[c]===void 0?i[c]={first:l,last:l}:(l<i[c].first&&(i[c].first=l),l>i[c].last&&(i[c].last=l))}),e.forEach(a=>{const{auditRuleGroupId:c,ruleType:l,sequence:d}=a,u=d<=n,x=d===i[l].first,m=d===i[l].last;r[c]={isActive:u,isGroupExpanded:!1,isFirst:x,isLast:m}}),r},aw=e=>e.auditReportGroups.filter(r=>r.auditReport?.auditRulesGroupReport[0].isSuccess===!1).map(r=>r.auditReportGroupId),lw=s.div`
5075
5075
  display: flex;
5076
5076
  flex-direction: column;
5077
5077
  align-items: center;
5078
5078
  justify-content: center;
5079
- `,lw=s.div`
5079
+ `,cw=s.div`
5080
5080
  display: flex;
5081
5081
  flex: 1 1 0;
5082
- `,cw=s.div`
5082
+ `,dw=s.div`
5083
5083
  display: flex;
5084
5084
  flex-direction: column;
5085
5085
  width: 60%;
5086
- `,dw=s.div`
5086
+ `,pw=s.div`
5087
5087
  display: flex;
5088
5088
  align-items: center;
5089
5089
  `,ua=s.div`
@@ -5098,7 +5098,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5098
5098
  `,xa=s.div`
5099
5099
  display: flex;
5100
5100
  flex-direction: column;
5101
- `,pw=s.div`
5101
+ `,uw=s.div`
5102
5102
  min-height: ${e=>Qs.navBarHeight.valuePx(e.windowSize)};
5103
5103
  position: sticky;
5104
5104
  background-color: ${e=>e.theme.colors.grey4};
@@ -5106,10 +5106,10 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5106
5106
  z-index: 2;
5107
5107
  top: ${t.Space.sp0};
5108
5108
  width: 100%;
5109
- `,uw=s.div`
5109
+ `,mw=s.div`
5110
5110
  position: relative;
5111
5111
  min-height: 62px;
5112
- `,mw=s.div`
5112
+ `,xw=s.div`
5113
5113
  display: flex;
5114
5114
  flex-direction: row;
5115
5115
  align-items: center;
@@ -5121,24 +5121,24 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5121
5121
  padding-right: ${e=>Qs.navBarPaddingRight.valuePx(e.windowSize)};
5122
5122
  padding-left: ${e=>Qs.navBarPaddingLeft.valuePx(e.windowSize)};
5123
5123
  height: 100%;
5124
- `,xw=s(t.StyledText)`
5124
+ `,hw=s(t.StyledText)`
5125
5125
  display: flex;
5126
5126
  flex: 1 1 0;
5127
5127
  justify-content: center;
5128
5128
  flex-direction: column;
5129
- `,hw=s(t.ExtraLargeSemiBold)`
5129
+ `,gw=s(t.ExtraLargeSemiBold)`
5130
5130
  display: flex;
5131
5131
  color: ${e=>e.theme.colors.primary};
5132
5132
  align-items: center;
5133
5133
  justify-content: center;
5134
5134
  overflow: hidden;
5135
- `,gw=s(t.SmallRegular)`
5135
+ `,Sw=s(t.SmallRegular)`
5136
5136
  display: flex;
5137
5137
  color: ${e=>e.theme.colors.hero};
5138
5138
  align-items: center;
5139
5139
  justify-content: center;
5140
5140
  overflow: hidden;
5141
- `,Sw=s.div`
5141
+ `,yw=s.div`
5142
5142
  display: flex;
5143
5143
  align-items: center;
5144
5144
  gap: ${t.Space.sp1};
@@ -5149,19 +5149,19 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5149
5149
 
5150
5150
  cursor: ${e=>e.isGenerateClickEnabled?"pointer":"default"};
5151
5151
  margin-right: ${t.Space.sp4};
5152
- `,yw=s.div`
5152
+ `,fw=s.div`
5153
5153
  display: flex;
5154
5154
  flex: 1 1 0;
5155
5155
  justify-content: flex-end;
5156
- `,fw=s(t.StandardRegular)`
5156
+ `,Cw=s(t.StandardRegular)`
5157
5157
  display: flex;
5158
5158
  color: inherit;
5159
- `,Cw=s(t.SvgRefresh)`
5159
+ `,jw=s(t.SvgRefresh)`
5160
5160
  width: ${t.Space.sp4};
5161
5161
  height: ${t.Space.sp4};
5162
5162
  cursor: pointer;
5163
5163
  color: inherit;
5164
- `,jw=s.div`
5164
+ `,bw=s.div`
5165
5165
  display: flex;
5166
5166
  align-items: center;
5167
5167
  justify-content: center;
@@ -5174,15 +5174,15 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5174
5174
  background-color: ${e=>e.theme.colors.grey3};
5175
5175
  color: ${e=>e.theme.colors.primary};
5176
5176
  }
5177
- `,bw=s(t.SvgClose)`
5177
+ `,Rw=s(t.SvgClose)`
5178
5178
  width: ${t.Space.sp3};
5179
5179
  height: ${t.Space.sp3};
5180
- `,re=t.appLocale.getLocalizedStrings(),Jo={navBarHeight:new t.ResponsiveSized(62,62,62),navBarPaddingLeft:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),navBarPaddingRight:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),navBarPaddingTop:new t.ResponsiveSized(12,12,t.sp[3]),navBarPaddingBottom:new t.ResponsiveSized(12,12,19)},Rw={title:new t.ResponsiveSizedStyle("extraLargeMedium","extraLargeSemiBold")},$w=({companyView:e,allUsers:n,onRetryBankAccountConnection:r,onCloseClick:i})=>{const a=t.useWindowSizeContext(),c=e!=null?J.getAuditWarningsCount(e):0,l=e?.onboardingInfo?.bankAccountLinked,d=e?.onboardingInfo?.qboLinked,u=e?.onboardingInfo?.identityVerified,x=e?.onboardingInfo?.businessVerified,m=e?.onboardingInfo?.accountingConnectionCreationMode==="zeni_user",f=[];if(l!=null){const h=n.find(g=>g.userId===l.userIds[0]),{errorMessage:y,successMessage:j}=Ew(l,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.common.texts.linkBankAccount} ${re.common.strings.hyphen} ${re.common.incompleteText}`,onClickRetry:r})}if(d!=null){const h=n.find(g=>g.userId===d.userIds[0]),{errorMessage:y,successMessage:j}=vw(d,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.common.texts.connectToQbo} ${re.common.strings.hyphen} ${re.common.incompleteText}`})}if(u!=null){const h=n.find(g=>g.userId===u.userIds[0]),{errorMessage:y,successMessage:j}=ww(u,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.cockpit.review.warningsDrawer.kyc} ${re.common.strings.hyphen} ${u.status}`})}if(x!=null){const h=n.find(g=>g.userId===x.userIds[0]),{errorMessage:y,successMessage:j}=kw(x,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.cockpit.review.warningsDrawer.kyb} ${re.common.strings.hyphen} ${x.status}`})}return o.jsxRuntimeExports.jsxs(Tw,{children:[o.jsxRuntimeExports.jsx(Pw,{windowSize:a,children:o.jsxRuntimeExports.jsx(Iw,{children:o.jsxRuntimeExports.jsxs(Dw,{windowSize:a,children:[o.jsxRuntimeExports.jsx(Ow,{windowSize:a,children:e?.name}),o.jsxRuntimeExports.jsx(Vw,{onClick:i,children:o.jsxRuntimeExports.jsx(Uw,{})})]})})}),o.jsxRuntimeExports.jsxs(Lw,{children:[o.jsxRuntimeExports.jsx(Aw,{children:c>0?o.jsxRuntimeExports.jsxs(Bs,{children:[o.jsxRuntimeExports.jsx(Bs,{children:t.capitaliseWords(re.cockpit.review.warningsDrawer.issueFound)}),o.jsxRuntimeExports.jsx(Hw,{children:`${re.common.strings.openingBrace}${c}${re.common.strings.closingBrace}`})]}):o.jsxRuntimeExports.jsx(Bs,{children:`${re.common.no}
5181
- ${t.capitaliseWords(re.cockpit.review.warningsDrawer.issueFound)}`})}),f.map((h,y)=>o.jsxRuntimeExports.jsx(Nw,{isStepInError:h.status==="Error",children:o.jsxRuntimeExports.jsxs(Mw,{children:[o.jsxRuntimeExports.jsx(Fw,{children:h.status==="Complete"?o.jsxRuntimeExports.jsx(Bw,{}):h.status==="Error"?o.jsxRuntimeExports.jsx(t.SvgHighImportanceFilled,{}):o.jsxRuntimeExports.jsx(Ww,{})}),o.jsxRuntimeExports.jsxs(zw,{children:[o.jsxRuntimeExports.jsx(_w,{isStepInError:h.status==="Error",children:h.message}),h.status==="Error"?o.jsxRuntimeExports.jsx(t.Button,{label:re.common.retry,onClick:h.onClickRetry,loading:e?.retryBankAccountConnectionFetchState.fetchState==="In-Progress",variant:"outline",style:{padding:`${t.Space.sp1} ${t.Space.sp3}`,borderRadius:t.Space.sp1},textStyle:{...t.textStyles.smallMedium.cssObject}}):null]})]})},y))]})]})},Ew=(e,n,r)=>{const i=e.error===!0?e.errorDetails!=null?e.errorDetails.summary:re.cockpit.review.errors.bankAccountLinked:null,a=e.completed===!0?r!=null?`${re.common.texts.linkBankAccount} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:re.common.texts.linkBankAccount:null;return{errorMessage:i,successMessage:a}},vw=(e,n,r)=>{const i=e.error===!0?e.errorDetails!=null?e.errorDetails.summary:re.cockpit.review.errors.qboLinked:null,a=e.completed===!0?r!=null?`${re.common.texts.connectToQbo} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.common.texts.connectToQbo}`:null;return{errorMessage:i,successMessage:a}},ww=(e,n,r)=>{const i=e.status==="Error"?r!=null?`${re.cockpit.review.warningsDrawer.kyc} ${re.common.failed.toLocaleLowerCase()} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyc} ${re.common.failed.toLocaleLowerCase()}`:null,a=e.status==="Complete"?r!=null?`${re.cockpit.review.warningsDrawer.kyc} ${re.cockpit.review.warningsDrawer.identity} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyc} ${re.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:i,successMessage:a}},kw=(e,n,r)=>{const i=e.status==="Error"?r!=null?`${re.cockpit.review.warningsDrawer.kyb} ${re.common.failed.toLocaleLowerCase()} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyb} ${re.common.failed.toLocaleLowerCase()}`:null,a=e.status==="Complete"?r!=null?`${re.cockpit.review.warningsDrawer.kyb} ${re.cockpit.review.warningsDrawer.identity} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyb} ${re.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:i,successMessage:a}},Tw=s.div`
5180
+ `,re=t.appLocale.getLocalizedStrings(),Jo={navBarHeight:new t.ResponsiveSized(62,62,62),navBarPaddingLeft:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),navBarPaddingRight:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),navBarPaddingTop:new t.ResponsiveSized(12,12,t.sp[3]),navBarPaddingBottom:new t.ResponsiveSized(12,12,19)},$w={title:new t.ResponsiveSizedStyle("extraLargeMedium","extraLargeSemiBold")},Ew=({companyView:e,allUsers:n,onRetryBankAccountConnection:r,onCloseClick:i})=>{const a=t.useWindowSizeContext(),c=e!=null?J.getAuditWarningsCount(e):0,l=e?.onboardingInfo?.bankAccountLinked,d=e?.onboardingInfo?.qboLinked,u=e?.onboardingInfo?.identityVerified,x=e?.onboardingInfo?.businessVerified,m=e?.onboardingInfo?.accountingConnectionCreationMode==="zeni_user",f=[];if(l!=null){const h=n.find(g=>g.userId===l.userIds[0]),{errorMessage:y,successMessage:j}=vw(l,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.common.texts.linkBankAccount} ${re.common.strings.hyphen} ${re.common.incompleteText}`,onClickRetry:r})}if(d!=null){const h=n.find(g=>g.userId===d.userIds[0]),{errorMessage:y,successMessage:j}=ww(d,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.common.texts.connectToQbo} ${re.common.strings.hyphen} ${re.common.incompleteText}`})}if(u!=null){const h=n.find(g=>g.userId===u.userIds[0]),{errorMessage:y,successMessage:j}=kw(u,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.cockpit.review.warningsDrawer.kyc} ${re.common.strings.hyphen} ${u.status}`})}if(x!=null){const h=n.find(g=>g.userId===x.userIds[0]),{errorMessage:y,successMessage:j}=Tw(x,m,h);f.push({status:y!=null?"Error":j!=null?"Complete":"Incomplete",userInfo:h,message:y??j??`${re.cockpit.review.warningsDrawer.kyb} ${re.common.strings.hyphen} ${x.status}`})}return o.jsxRuntimeExports.jsxs(Pw,{children:[o.jsxRuntimeExports.jsx(Iw,{windowSize:a,children:o.jsxRuntimeExports.jsx(Lw,{children:o.jsxRuntimeExports.jsxs(Ow,{windowSize:a,children:[o.jsxRuntimeExports.jsx(Nw,{windowSize:a,children:e?.name}),o.jsxRuntimeExports.jsx(Uw,{onClick:i,children:o.jsxRuntimeExports.jsx(Hw,{})})]})})}),o.jsxRuntimeExports.jsxs(Aw,{children:[o.jsxRuntimeExports.jsx(Dw,{children:c>0?o.jsxRuntimeExports.jsxs(Bs,{children:[o.jsxRuntimeExports.jsx(Bs,{children:t.capitaliseWords(re.cockpit.review.warningsDrawer.issueFound)}),o.jsxRuntimeExports.jsx(Kw,{children:`${re.common.strings.openingBrace}${c}${re.common.strings.closingBrace}`})]}):o.jsxRuntimeExports.jsx(Bs,{children:`${re.common.no}
5181
+ ${t.capitaliseWords(re.cockpit.review.warningsDrawer.issueFound)}`})}),f.map((h,y)=>o.jsxRuntimeExports.jsx(Mw,{isStepInError:h.status==="Error",children:o.jsxRuntimeExports.jsxs(Fw,{children:[o.jsxRuntimeExports.jsx(zw,{children:h.status==="Complete"?o.jsxRuntimeExports.jsx(Ww,{}):h.status==="Error"?o.jsxRuntimeExports.jsx(t.SvgHighImportanceFilled,{}):o.jsxRuntimeExports.jsx(Vw,{})}),o.jsxRuntimeExports.jsxs(_w,{children:[o.jsxRuntimeExports.jsx(Bw,{isStepInError:h.status==="Error",children:h.message}),h.status==="Error"?o.jsxRuntimeExports.jsx(t.Button,{label:re.common.retry,onClick:h.onClickRetry,loading:e?.retryBankAccountConnectionFetchState.fetchState==="In-Progress",variant:"outline",style:{padding:`${t.Space.sp1} ${t.Space.sp3}`,borderRadius:t.Space.sp1},textStyle:{...t.textStyles.smallMedium.cssObject}}):null]})]})},y))]})]})},vw=(e,n,r)=>{const i=e.error===!0?e.errorDetails!=null?e.errorDetails.summary:re.cockpit.review.errors.bankAccountLinked:null,a=e.completed===!0?r!=null?`${re.common.texts.linkBankAccount} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:re.common.texts.linkBankAccount:null;return{errorMessage:i,successMessage:a}},ww=(e,n,r)=>{const i=e.error===!0?e.errorDetails!=null?e.errorDetails.summary:re.cockpit.review.errors.qboLinked:null,a=e.completed===!0?r!=null?`${re.common.texts.connectToQbo} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.common.texts.connectToQbo}`:null;return{errorMessage:i,successMessage:a}},kw=(e,n,r)=>{const i=e.status==="Error"?r!=null?`${re.cockpit.review.warningsDrawer.kyc} ${re.common.failed.toLocaleLowerCase()} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyc} ${re.common.failed.toLocaleLowerCase()}`:null,a=e.status==="Complete"?r!=null?`${re.cockpit.review.warningsDrawer.kyc} ${re.cockpit.review.warningsDrawer.identity} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyc} ${re.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:i,successMessage:a}},Tw=(e,n,r)=>{const i=e.status==="Error"?r!=null?`${re.cockpit.review.warningsDrawer.kyb} ${re.common.failed.toLocaleLowerCase()} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyb} ${re.common.failed.toLocaleLowerCase()}`:null,a=e.status==="Complete"?r!=null?`${re.cockpit.review.warningsDrawer.kyb} ${re.cockpit.review.warningsDrawer.identity} ${re.common.strings.hyphen} ${n===!0?`${re.common.via} ${re.common.cockpit} `:re.common.strings.empty}${re.common.by} ${r.firstName} ${r.lastName}`:`${re.cockpit.review.warningsDrawer.kyb} ${re.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:i,successMessage:a}},Pw=s.div`
5182
5182
  display: flex;
5183
5183
  flex-direction: column;
5184
5184
  padding-top: ${t.Space.sp3};
5185
- `,Pw=s.div`
5185
+ `,Iw=s.div`
5186
5186
  min-height: ${e=>Jo.navBarHeight.valuePx(e.windowSize)};
5187
5187
  position: sticky;
5188
5188
  background-color: ${e=>e.theme.colors.grey4};
@@ -5190,17 +5190,17 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5190
5190
  z-index: 1;
5191
5191
  top: ${t.Space.sp0};
5192
5192
  width: 100%;
5193
- `,Iw=s.div`
5194
- position: relative;
5195
5193
  `,Lw=s.div`
5194
+ position: relative;
5195
+ `,Aw=s.div`
5196
5196
  display: flex;
5197
5197
  flex-direction: column;
5198
5198
  margin: ${t.Space.sp3} ${t.Space.sp8} 102px ${t.Space.sp8};
5199
- `,Aw=s(t.H5Regular)`
5199
+ `,Dw=s(t.H5Regular)`
5200
5200
  color: ${e=>e.theme.colors.primary};
5201
5201
  margin-bottom: ${t.Space.sp3};
5202
5202
  margin-right: ${t.Space.sp6};
5203
- `,Dw=s.div`
5203
+ `,Ow=s.div`
5204
5204
  display: flex;
5205
5205
  flex-direction: row;
5206
5206
  align-items: center;
@@ -5213,15 +5213,15 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5213
5213
  padding-top: ${e=>Jo.navBarPaddingTop.valuePx(e.windowSize)};
5214
5214
  padding-bottom: ${e=>Jo.navBarPaddingBottom.valuePx(e.windowSize)};
5215
5215
  height: 100%;
5216
- `,Ow=s(t.StyledText)`
5217
- ${e=>`${Rw.title.style(e.windowSize)}`};
5216
+ `,Nw=s(t.StyledText)`
5217
+ ${e=>`${$w.title.style(e.windowSize)}`};
5218
5218
  display: flex;
5219
5219
  flex: 1 1 auto;
5220
5220
  color: ${e=>e.theme.colors.primary};
5221
5221
  align-items: center;
5222
5222
  justify-content: center;
5223
5223
  overflow: hidden;
5224
- `,Nw=s.div`
5224
+ `,Mw=s.div`
5225
5225
  display: flex;
5226
5226
  background-color: ${e=>e.isStepInError?t.Colors.alertLight:e.theme.colors.grey5};
5227
5227
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
@@ -5229,31 +5229,31 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5229
5229
  margin-bottom: ${t.Space.sp3};
5230
5230
  border-color: ${e=>e.isStepInError?t.Colors.brandColorGold:e.theme.colors.grey2};
5231
5231
  flex-direction: column;
5232
- `,Mw=s.div`
5232
+ `,Fw=s.div`
5233
5233
  display: flex;
5234
5234
  margin: 12px ${t.Space.sp3} 12px ${t.Space.sp3};
5235
5235
  align-items: center;
5236
- `,Fw=s.div`
5237
- display: flex;
5238
5236
  `,zw=s.div`
5239
5237
  display: flex;
5238
+ `,_w=s.div`
5239
+ display: flex;
5240
5240
  width: 100%;
5241
5241
  justify-content: space-between;
5242
5242
  align-items: center;
5243
- `,_w=s.div`
5243
+ `,Bw=s.div`
5244
5244
  display: flex;
5245
5245
  color: ${e=>e.isStepInError?t.Colors.brandColorGoldDark:e.theme.colors.primary};
5246
5246
  margin-left: ${t.Space.sp2};
5247
5247
  align-items: center;
5248
- `,Bw=s(t.SvgTickRoundFill)`
5248
+ `,Ww=s(t.SvgTickRoundFill)`
5249
5249
  width: ${t.Space.sp4};
5250
5250
  height: ${t.Space.sp4};
5251
5251
  color: ${t.Colors.success};
5252
- `,Ww=s(t.SvgQueryRound)`
5252
+ `,Vw=s(t.SvgQueryRound)`
5253
5253
  width: ${t.Space.sp4};
5254
5254
  height: ${t.Space.sp4};
5255
5255
  color: ${e=>e.theme.colors.hero};
5256
- `,Vw=s.div`
5256
+ `,Uw=s.div`
5257
5257
  display: flex;
5258
5258
  align-items: center;
5259
5259
  justify-content: center;
@@ -5266,39 +5266,39 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5266
5266
  background-color: ${e=>e.theme.colors.grey3};
5267
5267
  color: ${e=>e.theme.colors.primary};
5268
5268
  }
5269
- `,Uw=s(t.SvgClose)`
5269
+ `,Hw=s(t.SvgClose)`
5270
5270
  width: ${t.Space.sp3};
5271
5271
  height: ${t.Space.sp3};
5272
5272
  `,Bs=s.div`
5273
5273
  display: flex;
5274
- `,Hw=s(t.ExtraLargeRegular)`
5274
+ `,Kw=s(t.ExtraLargeRegular)`
5275
5275
  display: flex;
5276
5276
  align-items: end;
5277
5277
  color: ${t.Colors.brandColorGoldDark};
5278
5278
  margin-left: ${t.Space.sp2};
5279
- `,{pending:Kw}=t.appLocale.getLocalizedStrings().common.status;function Gw(e){return e>=70?"high":e>=50?"mid":"low"}function Yw({score:e}){if(e==null)return o.jsxRuntimeExports.jsx(Zw,{children:Kw});const n=parseFloat(e);if(isNaN(n))return o.jsxRuntimeExports.jsx(qw,{children:e});const r=Gw(n);return o.jsxRuntimeExports.jsxs(Xw,{children:[o.jsxRuntimeExports.jsx(Qw,{children:o.jsxRuntimeExports.jsx(Jw,{level:r,width:Math.min(100,n)})}),o.jsxRuntimeExports.jsx(e7,{level:r,children:Math.round(n)})]})}const Zw=s(t.SmallRegularSp)`
5279
+ `,{pending:Gw}=t.appLocale.getLocalizedStrings().common.status;function Yw(e){return e>=70?"high":e>=50?"mid":"low"}function Zw({score:e}){if(e==null)return o.jsxRuntimeExports.jsx(qw,{children:Gw});const n=parseFloat(e);if(isNaN(n))return o.jsxRuntimeExports.jsx(Xw,{children:e});const r=Yw(n);return o.jsxRuntimeExports.jsxs(Qw,{children:[o.jsxRuntimeExports.jsx(Jw,{children:o.jsxRuntimeExports.jsx(e7,{level:r,width:Math.min(100,n)})}),o.jsxRuntimeExports.jsx(t7,{level:r,children:Math.round(n)})]})}const qw=s(t.SmallRegularSp)`
5280
5280
  color: ${({theme:e})=>e.colors.grey1};
5281
5281
  font-style: italic;
5282
- `,qw=s.span``,Xw=s.span`
5282
+ `,Xw=s.span``,Qw=s.span`
5283
5283
  display: flex;
5284
5284
  align-items: center;
5285
5285
  gap: ${t.Space.sp1};
5286
- `,Qw=s.span`
5286
+ `,Jw=s.span`
5287
5287
  display: inline-block;
5288
5288
  width: ${t.Space.sp7};
5289
5289
  height: 6px;
5290
5290
  border-radius: ${t.Space.sp1};
5291
5291
  background: ${({theme:e})=>e.colors.grey2};
5292
5292
  overflow: hidden;
5293
- `,Jw=s.span`
5293
+ `,e7=s.span`
5294
5294
  display: block;
5295
5295
  height: 100%;
5296
5296
  border-radius: ${t.Space.sp1};
5297
5297
  width: ${e=>e.width}%;
5298
5298
  background: ${e=>e.level==="high"?e.theme.colors.success:e.level==="mid"?e.theme.colors.alert:e.theme.colors.important};
5299
- `,e7=s(t.SmallSemiBoldSp)`
5299
+ `,t7=s(t.SmallSemiBoldSp)`
5300
5300
  color: ${e=>e.level==="high"?e.theme.colors.success:e.level==="mid"?e.theme.colors.alert:e.theme.colors.important};
5301
- `,{common:{headers:{notes:t7},texts:{actions:o7,creditLimit:n7,lastUpdatedBy:s7,name:r7,status:i7}}}=t.appLocale.getLocalizedStrings(),nn={rowHeightPx:parseInt(t.Space.sp8),headerHeightPx:44,sortIconSize:t.Space.sp2},Ve={name:200,notes:60,status:110,creditLimit:120,creditScore:120,recAmount:140,rationale:200,reportDate:140,updatedBy:170,actions:120},a7=[18,6,8,10,10,10,14,10,8,6],l7=8,c7=e=>[{key:"name",label:r7,sortable:!0,width:Ve.name,justifyContent:"flex-start",growToFill:!0},{key:"notes",label:t7,sortable:!1,width:Ve.notes,justifyContent:"center"},{key:"status",label:i7,sortable:!0,width:Ve.status,justifyContent:"flex-start"},{key:"creditLimit",label:n7,sortable:!0,width:Ve.creditLimit,justifyContent:"flex-start"},{key:"creditScore",label:e.colCreditScore,sortable:!0,width:Ve.creditScore,justifyContent:"flex-start"},{key:"recAmount",label:e.colRecommendedAmount,sortable:!0,width:Ve.recAmount,justifyContent:"flex-start"},{key:"rationale",label:e.colRationale,sortable:!1,width:Ve.rationale,justifyContent:"flex-start"},{key:"reportDate",label:e.colLastAnalysedOn,sortable:!0,width:Ve.reportDate,justifyContent:"flex-start"},{key:"updatedBy",label:s7,sortable:!0,width:Ve.updatedBy,justifyContent:"flex-start"},{key:"actions",label:o7,sortable:!1,width:Ve.actions,justifyContent:"flex-end"}],en=s.button`
5301
+ `,{common:{headers:{notes:o7},texts:{actions:n7,creditLimit:s7,lastUpdatedBy:r7,name:i7,status:a7}}}=t.appLocale.getLocalizedStrings(),nn={rowHeightPx:parseInt(t.Space.sp8),headerHeightPx:44,sortIconSize:t.Space.sp2},Ve={name:200,notes:60,status:110,creditLimit:120,creditScore:120,recAmount:140,rationale:200,reportDate:140,updatedBy:170,actions:120},l7=[18,6,8,10,10,10,14,10,8,6],c7=8,d7=e=>[{key:"name",label:i7,sortable:!0,width:Ve.name,justifyContent:"flex-start",growToFill:!0},{key:"notes",label:o7,sortable:!1,width:Ve.notes,justifyContent:"center"},{key:"status",label:a7,sortable:!0,width:Ve.status,justifyContent:"flex-start"},{key:"creditLimit",label:s7,sortable:!0,width:Ve.creditLimit,justifyContent:"flex-start"},{key:"creditScore",label:e.colCreditScore,sortable:!0,width:Ve.creditScore,justifyContent:"flex-start"},{key:"recAmount",label:e.colRecommendedAmount,sortable:!0,width:Ve.recAmount,justifyContent:"flex-start"},{key:"rationale",label:e.colRationale,sortable:!1,width:Ve.rationale,justifyContent:"flex-start"},{key:"reportDate",label:e.colLastAnalysedOn,sortable:!0,width:Ve.reportDate,justifyContent:"flex-start"},{key:"updatedBy",label:r7,sortable:!0,width:Ve.updatedBy,justifyContent:"flex-start"},{key:"actions",label:n7,sortable:!1,width:Ve.actions,justifyContent:"flex-end"}],en=s.button`
5302
5302
  width: ${t.Space.sp5};
5303
5303
  height: ${t.Space.sp5};
5304
5304
  border-radius: 50%;
@@ -5322,13 +5322,13 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5322
5322
  color: ${({theme:e})=>e.colors.success};
5323
5323
  border-color: ${({theme:e})=>e.colors.tagSuccessBg};
5324
5324
  }
5325
- `,{cockpit:{creditAgent:ha},common:{footer:{approve:d7,reject:p7},more:u7,texts:{lock:m7,unlock:x7}}}=t.appLocale.getLocalizedStrings();function h7({row:e,onAction:n}){const[r,i]=p.useState(!1),[a,c]=p.useState(null),l=p.useRef(null),d=[];if(e.cardStatus==="Pre-approved"?(d.push({label:d7,action:"approve"}),d.push({label:ha.kebabResetToDefault,action:"reset"})):e.cardStatus==="Approved"?(d.push({label:ha.kebabResetToDefault,action:"reset"}),d.push({label:p7,action:"reject",danger:!0})):e.cardStatus==="Active"?d.push({label:m7,action:"lock"}):e.cardStatus==="Locked"&&d.push({label:x7,action:"unlock"}),d.length===0)return null;const u=x=>{if(x.stopPropagation(),l.current){const m=l.current.getBoundingClientRect();c({top:m.bottom+4,right:window.innerWidth-m.right})}i(m=>!m)};return o.jsxRuntimeExports.jsxs(g7,{children:[o.jsxRuntimeExports.jsx(en,{ref:l,title:u7,onClick:u,children:o.jsxRuntimeExports.jsx(t.SvgMore,{width:t.Space.sp3,height:t.Space.sp3})}),r&&rn.createPortal(o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(S7,{onClick:()=>i(!1)}),o.jsxRuntimeExports.jsx(y7,{style:a?{top:a.top,right:a.right}:{visibility:"hidden"},children:d.map(x=>o.jsxRuntimeExports.jsx(f7,{danger:x.danger,onClick:m=>{m.stopPropagation(),i(!1),n(x.action)},children:x.label},x.action))})]}),document.body)]})}const g7=s.span`
5325
+ `,{cockpit:{creditAgent:ha},common:{footer:{approve:p7,reject:u7},more:m7,texts:{lock:x7,unlock:h7}}}=t.appLocale.getLocalizedStrings();function g7({row:e,onAction:n}){const[r,i]=p.useState(!1),[a,c]=p.useState(null),l=p.useRef(null),d=[];if(e.cardStatus==="Pre-approved"?(d.push({label:p7,action:"approve"}),d.push({label:ha.kebabResetToDefault,action:"reset"})):e.cardStatus==="Approved"?(d.push({label:ha.kebabResetToDefault,action:"reset"}),d.push({label:u7,action:"reject",danger:!0})):e.cardStatus==="Active"?d.push({label:x7,action:"lock"}):e.cardStatus==="Locked"&&d.push({label:h7,action:"unlock"}),d.length===0)return null;const u=x=>{if(x.stopPropagation(),l.current){const m=l.current.getBoundingClientRect();c({top:m.bottom+4,right:window.innerWidth-m.right})}i(m=>!m)};return o.jsxRuntimeExports.jsxs(S7,{children:[o.jsxRuntimeExports.jsx(en,{ref:l,title:m7,onClick:u,children:o.jsxRuntimeExports.jsx(t.SvgMore,{width:t.Space.sp3,height:t.Space.sp3})}),r&&rn.createPortal(o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(y7,{onClick:()=>i(!1)}),o.jsxRuntimeExports.jsx(f7,{style:a?{top:a.top,right:a.right}:{visibility:"hidden"},children:d.map(x=>o.jsxRuntimeExports.jsx(C7,{danger:x.danger,onClick:m=>{m.stopPropagation(),i(!1),n(x.action)},children:x.label},x.action))})]}),document.body)]})}const S7=s.span`
5326
5326
  position: relative;
5327
- `,S7=s.div`
5327
+ `,y7=s.div`
5328
5328
  position: fixed;
5329
5329
  inset: 0;
5330
5330
  z-index: 999;
5331
- `,y7=s.div`
5331
+ `,f7=s.div`
5332
5332
  position: fixed;
5333
5333
  background: ${({theme:e})=>e.colors.grey5};
5334
5334
  border: 1px solid ${({theme:e})=>e.colors.grey2};
@@ -5338,7 +5338,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5338
5338
  min-width: 160px;
5339
5339
  z-index: 1000;
5340
5340
  overflow: hidden;
5341
- `,f7=s(t.SmallRegularBtn)`
5341
+ `,C7=s(t.SmallRegularBtn)`
5342
5342
  display: block;
5343
5343
  width: 100%;
5344
5344
  text-align: left;
@@ -5351,7 +5351,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5351
5351
  &:hover {
5352
5352
  background: ${({theme:e})=>e.colors.grey4};
5353
5353
  }
5354
- `,{common:ut,cockpit:{creditAgent:dt},dateFormat:{visual:{MMMDCommaYYYYformat:ga}}}=t.appLocale.getLocalizedStrings(),{strings:{emDash:Sa}}=ut;function C7({style:e,row:n,isLastRow:r,cardProfilesActions:i,editingNs:a,editingValue:c,onEditStart:l,onEditChange:d,onEditCancel:u,onNoteOpen:x}){return o.jsxRuntimeExports.jsxs(v7,{style:e,children:[o.jsxRuntimeExports.jsx(w7,{$hideBorder:r,children:o.jsxRuntimeExports.jsxs(M7,{children:[n.customerName??n.tenantId??n.tenantEmailDomain,n.isNew&&o.jsxRuntimeExports.jsx(F7,{children:ut.texts.new})]})}),o.jsxRuntimeExports.jsx(k7,{$hideBorder:r,children:n.companyId!=null&&n.companyId!==""?o.jsxRuntimeExports.jsx(R7,{companyId:n.companyId,onOpen:()=>{const m=n.companyId;x({companyId:m,companyName:n.customerName??n.tenantId??n.tenantEmailDomain,roomId:`cockpit_${m}`})}}):o.jsxRuntimeExports.jsx(ao,{children:Sa})}),o.jsxRuntimeExports.jsx(T7,{$hideBorder:r,children:o.jsxRuntimeExports.jsx(z7,{status:n.cardStatus,children:n.cardStatus})}),o.jsxRuntimeExports.jsx(P7,{$hideBorder:r,children:a===n.tenantEmailDomain?o.jsxRuntimeExports.jsxs(_7,{children:[o.jsxRuntimeExports.jsx(B7,{type:"number",min:"0",step:"any",autoFocus:!0,value:c,onChange:m=>d(m.target.value),onKeyDown:m=>{if(m.key==="Enter"){const f=parseFloat(c);!isNaN(f)&&f>=0&&(i.onUpdateProfile(n.tenantEmailDomain,n.tenantId,{creditLimit:f}),u())}else m.key==="Escape"&&u()}}),o.jsxRuntimeExports.jsx(W7,{onClick:()=>{const m=parseFloat(c);!isNaN(m)&&m>=0&&(i.onUpdateProfile(n.tenantEmailDomain,n.tenantId,{creditLimit:m}),u())},children:o.jsxRuntimeExports.jsx(t.SvgTick,{width:t.Space.sp3,height:t.Space.sp3})}),o.jsxRuntimeExports.jsx(V7,{onClick:u,children:o.jsxRuntimeExports.jsx(t.SvgClose,{width:t.Space.sp3,height:t.Space.sp3})})]}):n.creditLimit!=null?o.jsxRuntimeExports.jsxs(ya,{onClick:()=>{l(n.tenantEmailDomain,String(n.creditLimit??""))},children:["$",t.appLocale.numberFormatter().format(n.creditLimit??0)]}):o.jsxRuntimeExports.jsx(ya,{onClick:()=>{l(n.tenantEmailDomain,"")},children:dt.addLimit})}),o.jsxRuntimeExports.jsx(I7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):o.jsxRuntimeExports.jsx(Yw,{score:n.creditScore})}),o.jsxRuntimeExports.jsx(L7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):n.recommendedAmount!=null?o.jsxRuntimeExports.jsx(U7,{children:t.currencyAmountCompactFormatter(n.recommendedAmount)}):o.jsxRuntimeExports.jsx(ao,{children:ut.status.pending})}),o.jsxRuntimeExports.jsx(A7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):n.rationale!=null?o.jsxRuntimeExports.jsx(b7,{text:n.rationale}):o.jsxRuntimeExports.jsx(ao,{children:Sa})}),o.jsxRuntimeExports.jsx(D7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):n.reportDate!=null?n.reportDate.format(ga):"—"}),o.jsxRuntimeExports.jsx(O7,{$hideBorder:r,children:o.jsxRuntimeExports.jsxs(Y7,{children:[o.jsxRuntimeExports.jsx(t.EntityAvatar,{name:n.updatedByName??dt.creditAgentFallback}),o.jsxRuntimeExports.jsxs(Z7,{children:[o.jsxRuntimeExports.jsx(q7,{children:n.updatedByName??dt.creditAgentFallback}),n.updatedOn!=null&&o.jsxRuntimeExports.jsx(X7,{children:n.updatedOn.format(ga)})]})]})}),o.jsxRuntimeExports.jsx(N7,{$hideBorder:r,children:o.jsxRuntimeExports.jsx(j7,{row:n,cardProfilesActions:i})})]})}function j7({row:e,cardProfilesActions:n}){const[r,i]=p.useState(null),[a,c]=p.useState(!1),l=p.useRef(null);p.useEffect(()=>()=>{l.current!=null&&clearTimeout(l.current)},[]);const d=n.onAnalyse?o.jsxRuntimeExports.jsx(en,{title:e.tenantId?dt.analyseTitle:dt.tenantIdNotAvailable,disabled:!e.tenantId,onClick:()=>e.tenantId!=null&&n.onAnalyse?.(e.tenantId),children:o.jsxRuntimeExports.jsx(t.SvgPlayButtonSmall,{width:t.Space.sp3,height:t.Space.sp3})}):null,u=j=>{const g=j??"";if(r==="pre-approve")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Pre-approved",reason:g});else if(r==="approve")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Approved",reason:g});else if(r==="reject")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Rejected",reason:g});else if(r==="lock")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Locked",reason:g});else if(r==="unlock")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Active",reason:g});else if(r==="reset"){const b=e.cardStatus==="Pre-approved"?"Not-Initiated":"Interested";n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:b,reason:g})}i(null)},x=p.useCallback(j=>{j==="approve"?i("approve"):j==="reject"?i("reject"):j==="reset"?i("reset"):j==="lock"?i("lock"):j==="unlock"&&i("unlock")},[]),m=e.customerName??e.tenantEmailDomain,f=e.creditLimit!=null?t.currencyAmountCompactFormatter(e.creditLimit):"",h=r?$7(r,m,f,dt):null,y={onOkClick:j=>u(j),onCancelClick:()=>{i(null)},onClickAway:()=>{i(null)}};return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[r&&h&&o.jsxRuntimeExports.jsx(t.ConfirmationPopup,{titleComponent:o.jsxRuntimeExports.jsx(o6,{children:h.title}),descriptionComponent:o.jsxRuntimeExports.jsx(n6,{children:h.body}),primaryButtonText:h.confirmLabel,proceedButtonVariant:h.confirmVariant,secondaryButtonText:ut.cancel,isNotesIncluded:!0,notesPlaceholder:ut.texts.addReasonOptional,action:y,containerStyle:{maxWidth:520}}),o.jsxRuntimeExports.jsxs(J7,{children:[d,e.cardStatus==="Interested"&&o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(en,{className:"reject",title:ut.footer.reject,onClick:()=>i("reject"),children:o.jsxRuntimeExports.jsx(t.SvgClose,{width:t.Space.sp3,height:t.Space.sp3})}),o.jsxRuntimeExports.jsxs(e6,{children:[o.jsxRuntimeExports.jsx(en,{className:"approve",title:e.creditLimit==null?dt.setLimitBeforeApproving:dt.preApprove,onClick:()=>{if(e.creditLimit==null){c(!0),l.current!=null&&clearTimeout(l.current),l.current=setTimeout(()=>c(!1),3e3);return}i("pre-approve")},children:o.jsxRuntimeExports.jsx(t.SvgTick,{width:t.Space.sp3,height:t.Space.sp3})}),a&&o.jsxRuntimeExports.jsx(t6,{children:dt.setCreditLimitFirst})]})]}),e.cardStatus==="Not-Initiated"&&o.jsxRuntimeExports.jsx(en,{className:"approve",title:dt.moveToInterested,onClick:()=>n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Interested"}),children:o.jsxRuntimeExports.jsx(t.SvgTick,{width:t.Space.sp3,height:t.Space.sp3})}),["Pre-approved","Approved","Active","Locked"].includes(e.cardStatus)&&o.jsxRuntimeExports.jsx(h7,{row:e,onAction:x})]})]})}function b7({text:e}){const n=p.useRef(null),[r,i]=p.useState(null),a=()=>{if(!n.current)return;const c=n.current.getBoundingClientRect(),d=c.top>160+16;i({...d?{bottom:window.innerHeight-c.top+8}:{top:c.bottom+8},left:c.left,above:d})};return o.jsxRuntimeExports.jsxs(H7,{ref:n,onMouseEnter:a,onMouseLeave:()=>i(null),children:[o.jsxRuntimeExports.jsx(K7,{children:e}),r&&rn.createPortal(o.jsxRuntimeExports.jsx(G7,{style:{position:"fixed",left:r.left,...r.above?{bottom:r.bottom}:{top:r.top}},above:r.above,children:e}),document.body)]})}function R7({companyId:e,onOpen:n}){const{threads:r,isLoading:i}=t.useFilteredThreads({entityType:t.toCollaborationEntityType({tab:"creditAgent",key:"details"}),companyId:e},!1);return o.jsxRuntimeExports.jsxs(Q7,{onClick:a=>{a.stopPropagation(),n()},children:[o.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:r.length,isLoading:i}),o.jsxRuntimeExports.jsx(t.SvgComment,{width:t.Space.sp3,height:t.Space.sp3})]})}function $7(e,n,r,i){return{"pre-approve":{title:i.modalPreApproveTitle,body:`${n} ${i.modalCardAccessBodySuffix} ${r}.`,confirmLabel:ut.confirm,confirmVariant:"primary"},approve:{title:i.modalApproveTitle,body:`${n} ${i.modalCardAccessBodySuffix} ${r}.`,confirmLabel:ut.confirm,confirmVariant:"primary"},reject:{title:i.modalRejectTitle,body:`${n} ${i.modalRejectBodySuffix}`,confirmLabel:ut.confirm,confirmVariant:"destructive"},lock:{title:i.modalLockTitle,body:`${n}${i.modalLockBodySuffix}`,confirmLabel:ut.texts.lock,confirmVariant:"destructive"},unlock:{title:i.modalUnlockTitle,body:`${n}${i.modalUnlockBodySuffix}`,confirmLabel:ut.texts.unlock,confirmVariant:"primary"},reset:{title:ut.texts.resetToDefault,body:`${n}${i.modalResetBodySuffix}`,confirmLabel:ut.reset,confirmVariant:"destructive"}}[e]}function E7(e,n){switch(e){case"Interested":return{backgroundColor:n.tagWarningBg,color:n.tagWarningColor};case"Not-Initiated":return{backgroundColor:n.tagDefaultBg,color:n.tagDefaultColor};case"Pre-approved":return{backgroundColor:n.tagInfoBg,color:n.tagInfoColor};case"Approved":return{backgroundColor:n.tagSuccessBg,color:n.tagSuccessColor};case"Enabled":return{backgroundColor:n.tagInfoBg,color:n.tagInfoColor};case"Active":return{backgroundColor:n.tagSuccessBg,color:n.tagSuccessColor};case"Rejected":return{backgroundColor:n.tagAttentionBg,color:n.tagAttentionColor};case"Locked":return{backgroundColor:n.tagDefaultBg,color:n.tagDefaultColor};default:return{backgroundColor:n.tagDefaultBg,color:n.tagDefaultColor}}}const v7=s.div`
5354
+ `,{common:ut,cockpit:{creditAgent:dt},dateFormat:{visual:{MMMDCommaYYYYformat:ga}}}=t.appLocale.getLocalizedStrings(),{strings:{emDash:Sa}}=ut;function j7({style:e,row:n,isLastRow:r,cardProfilesActions:i,editingNs:a,editingValue:c,onEditStart:l,onEditChange:d,onEditCancel:u,onNoteOpen:x}){return o.jsxRuntimeExports.jsxs(w7,{style:e,children:[o.jsxRuntimeExports.jsx(k7,{$hideBorder:r,children:o.jsxRuntimeExports.jsxs(F7,{children:[n.customerName??n.tenantId??n.tenantEmailDomain,n.isNew&&o.jsxRuntimeExports.jsx(z7,{children:ut.texts.new})]})}),o.jsxRuntimeExports.jsx(T7,{$hideBorder:r,children:n.companyId!=null&&n.companyId!==""?o.jsxRuntimeExports.jsx($7,{companyId:n.companyId,onOpen:()=>{const m=n.companyId;x({companyId:m,companyName:n.customerName??n.tenantId??n.tenantEmailDomain,roomId:`cockpit_${m}`})}}):o.jsxRuntimeExports.jsx(ao,{children:Sa})}),o.jsxRuntimeExports.jsx(P7,{$hideBorder:r,children:o.jsxRuntimeExports.jsx(_7,{status:n.cardStatus,children:n.cardStatus})}),o.jsxRuntimeExports.jsx(I7,{$hideBorder:r,children:a===n.tenantEmailDomain?o.jsxRuntimeExports.jsxs(B7,{children:[o.jsxRuntimeExports.jsx(W7,{type:"number",min:"0",step:"any",autoFocus:!0,value:c,onChange:m=>d(m.target.value),onKeyDown:m=>{if(m.key==="Enter"){const f=parseFloat(c);!isNaN(f)&&f>=0&&(i.onUpdateProfile(n.tenantEmailDomain,n.tenantId,{creditLimit:f}),u())}else m.key==="Escape"&&u()}}),o.jsxRuntimeExports.jsx(V7,{onClick:()=>{const m=parseFloat(c);!isNaN(m)&&m>=0&&(i.onUpdateProfile(n.tenantEmailDomain,n.tenantId,{creditLimit:m}),u())},children:o.jsxRuntimeExports.jsx(t.SvgTick,{width:t.Space.sp3,height:t.Space.sp3})}),o.jsxRuntimeExports.jsx(U7,{onClick:u,children:o.jsxRuntimeExports.jsx(t.SvgClose,{width:t.Space.sp3,height:t.Space.sp3})})]}):n.creditLimit!=null?o.jsxRuntimeExports.jsxs(ya,{onClick:()=>{l(n.tenantEmailDomain,String(n.creditLimit??""))},children:["$",t.appLocale.numberFormatter().format(n.creditLimit??0)]}):o.jsxRuntimeExports.jsx(ya,{onClick:()=>{l(n.tenantEmailDomain,"")},children:dt.addLimit})}),o.jsxRuntimeExports.jsx(L7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):o.jsxRuntimeExports.jsx(Zw,{score:n.creditScore})}),o.jsxRuntimeExports.jsx(A7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):n.recommendedAmount!=null?o.jsxRuntimeExports.jsx(H7,{children:t.currencyAmountCompactFormatter(n.recommendedAmount)}):o.jsxRuntimeExports.jsx(ao,{children:ut.status.pending})}),o.jsxRuntimeExports.jsx(D7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):n.rationale!=null?o.jsxRuntimeExports.jsx(R7,{text:n.rationale}):o.jsxRuntimeExports.jsx(ao,{children:Sa})}),o.jsxRuntimeExports.jsx(O7,{$hideBorder:r,children:n.isAnalyzing?o.jsxRuntimeExports.jsx(ao,{children:dt.inProgress}):n.reportDate!=null?n.reportDate.format(ga):"—"}),o.jsxRuntimeExports.jsx(N7,{$hideBorder:r,children:o.jsxRuntimeExports.jsxs(Z7,{children:[o.jsxRuntimeExports.jsx(t.EntityAvatar,{name:n.updatedByName??dt.creditAgentFallback}),o.jsxRuntimeExports.jsxs(q7,{children:[o.jsxRuntimeExports.jsx(X7,{children:n.updatedByName??dt.creditAgentFallback}),n.updatedOn!=null&&o.jsxRuntimeExports.jsx(Q7,{children:n.updatedOn.format(ga)})]})]})}),o.jsxRuntimeExports.jsx(M7,{$hideBorder:r,children:o.jsxRuntimeExports.jsx(b7,{row:n,cardProfilesActions:i})})]})}function b7({row:e,cardProfilesActions:n}){const[r,i]=p.useState(null),[a,c]=p.useState(!1),l=p.useRef(null);p.useEffect(()=>()=>{l.current!=null&&clearTimeout(l.current)},[]);const d=n.onAnalyse?o.jsxRuntimeExports.jsx(en,{title:e.tenantId?dt.analyseTitle:dt.tenantIdNotAvailable,disabled:!e.tenantId,onClick:()=>e.tenantId!=null&&n.onAnalyse?.(e.tenantId),children:o.jsxRuntimeExports.jsx(t.SvgPlayButtonSmall,{width:t.Space.sp3,height:t.Space.sp3})}):null,u=j=>{const g=j??"";if(r==="pre-approve")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Pre-approved",reason:g});else if(r==="approve")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Approved",reason:g});else if(r==="reject")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Rejected",reason:g});else if(r==="lock")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Locked",reason:g});else if(r==="unlock")n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Active",reason:g});else if(r==="reset"){const b=e.cardStatus==="Pre-approved"?"Not-Initiated":"Interested";n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:b,reason:g})}i(null)},x=p.useCallback(j=>{j==="approve"?i("approve"):j==="reject"?i("reject"):j==="reset"?i("reset"):j==="lock"?i("lock"):j==="unlock"&&i("unlock")},[]),m=e.customerName??e.tenantEmailDomain,f=e.creditLimit!=null?t.currencyAmountCompactFormatter(e.creditLimit):"",h=r?E7(r,m,f,dt):null,y={onOkClick:j=>u(j),onCancelClick:()=>{i(null)},onClickAway:()=>{i(null)}};return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[r&&h&&o.jsxRuntimeExports.jsx(t.ConfirmationPopup,{titleComponent:o.jsxRuntimeExports.jsx(n6,{children:h.title}),descriptionComponent:o.jsxRuntimeExports.jsx(s6,{children:h.body}),primaryButtonText:h.confirmLabel,proceedButtonVariant:h.confirmVariant,secondaryButtonText:ut.cancel,isNotesIncluded:!0,notesPlaceholder:ut.texts.addReasonOptional,action:y,containerStyle:{maxWidth:520}}),o.jsxRuntimeExports.jsxs(e6,{children:[d,e.cardStatus==="Interested"&&o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(en,{className:"reject",title:ut.footer.reject,onClick:()=>i("reject"),children:o.jsxRuntimeExports.jsx(t.SvgClose,{width:t.Space.sp3,height:t.Space.sp3})}),o.jsxRuntimeExports.jsxs(t6,{children:[o.jsxRuntimeExports.jsx(en,{className:"approve",title:e.creditLimit==null?dt.setLimitBeforeApproving:dt.preApprove,onClick:()=>{if(e.creditLimit==null){c(!0),l.current!=null&&clearTimeout(l.current),l.current=setTimeout(()=>c(!1),3e3);return}i("pre-approve")},children:o.jsxRuntimeExports.jsx(t.SvgTick,{width:t.Space.sp3,height:t.Space.sp3})}),a&&o.jsxRuntimeExports.jsx(o6,{children:dt.setCreditLimitFirst})]})]}),e.cardStatus==="Not-Initiated"&&o.jsxRuntimeExports.jsx(en,{className:"approve",title:dt.moveToInterested,onClick:()=>n.onUpdateProfile(e.tenantEmailDomain,e.tenantId,{cardStatus:"Interested"}),children:o.jsxRuntimeExports.jsx(t.SvgTick,{width:t.Space.sp3,height:t.Space.sp3})}),["Pre-approved","Approved","Active","Locked"].includes(e.cardStatus)&&o.jsxRuntimeExports.jsx(g7,{row:e,onAction:x})]})]})}function R7({text:e}){const n=p.useRef(null),[r,i]=p.useState(null),a=()=>{if(!n.current)return;const c=n.current.getBoundingClientRect(),d=c.top>160+16;i({...d?{bottom:window.innerHeight-c.top+8}:{top:c.bottom+8},left:c.left,above:d})};return o.jsxRuntimeExports.jsxs(K7,{ref:n,onMouseEnter:a,onMouseLeave:()=>i(null),children:[o.jsxRuntimeExports.jsx(G7,{children:e}),r&&rn.createPortal(o.jsxRuntimeExports.jsx(Y7,{style:{position:"fixed",left:r.left,...r.above?{bottom:r.bottom}:{top:r.top}},above:r.above,children:e}),document.body)]})}function $7({companyId:e,onOpen:n}){const{threads:r,isLoading:i}=t.useFilteredThreads({entityType:t.toCollaborationEntityType({tab:"creditAgent",key:"details"}),companyId:e},!1);return o.jsxRuntimeExports.jsxs(J7,{onClick:a=>{a.stopPropagation(),n()},children:[o.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:r.length,isLoading:i}),o.jsxRuntimeExports.jsx(t.SvgComment,{width:t.Space.sp3,height:t.Space.sp3})]})}function E7(e,n,r,i){return{"pre-approve":{title:i.modalPreApproveTitle,body:`${n} ${i.modalCardAccessBodySuffix} ${r}.`,confirmLabel:ut.confirm,confirmVariant:"primary"},approve:{title:i.modalApproveTitle,body:`${n} ${i.modalCardAccessBodySuffix} ${r}.`,confirmLabel:ut.confirm,confirmVariant:"primary"},reject:{title:i.modalRejectTitle,body:`${n} ${i.modalRejectBodySuffix}`,confirmLabel:ut.confirm,confirmVariant:"destructive"},lock:{title:i.modalLockTitle,body:`${n}${i.modalLockBodySuffix}`,confirmLabel:ut.texts.lock,confirmVariant:"destructive"},unlock:{title:i.modalUnlockTitle,body:`${n}${i.modalUnlockBodySuffix}`,confirmLabel:ut.texts.unlock,confirmVariant:"primary"},reset:{title:ut.texts.resetToDefault,body:`${n}${i.modalResetBodySuffix}`,confirmLabel:ut.reset,confirmVariant:"destructive"}}[e]}function v7(e,n){switch(e){case"Interested":return{backgroundColor:n.tagWarningBg,color:n.tagWarningColor};case"Not-Initiated":return{backgroundColor:n.tagDefaultBg,color:n.tagDefaultColor};case"Pre-approved":return{backgroundColor:n.tagInfoBg,color:n.tagInfoColor};case"Approved":return{backgroundColor:n.tagSuccessBg,color:n.tagSuccessColor};case"Enabled":return{backgroundColor:n.tagInfoBg,color:n.tagInfoColor};case"Active":return{backgroundColor:n.tagSuccessBg,color:n.tagSuccessColor};case"Rejected":return{backgroundColor:n.tagAttentionBg,color:n.tagAttentionColor};case"Locked":return{backgroundColor:n.tagDefaultBg,color:n.tagDefaultColor};default:return{backgroundColor:n.tagDefaultBg,color:n.tagDefaultColor}}}const w7=s.div`
5355
5355
  display: flex;
5356
5356
  flex-direction: row;
5357
5357
  align-items: stretch;
@@ -5374,38 +5374,38 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5374
5374
  overflow: hidden;
5375
5375
  border-bottom: ${e=>e.$hideBorder===!0?"none":`1px solid ${e.theme.colors.grey2}`};
5376
5376
  min-height: ${nn.rowHeightPx}px;
5377
- `,w7=s(Pt)`
5377
+ `,k7=s(Pt)`
5378
5378
  flex: 1 1 auto;
5379
5379
  min-width: ${Ve.name}px;
5380
- `,k7=s(Pt)`
5380
+ `,T7=s(Pt)`
5381
5381
  width: ${Ve.notes}px;
5382
5382
  justify-content: center;
5383
- `,T7=s(Pt)`
5384
- width: ${Ve.status}px;
5385
5383
  `,P7=s(Pt)`
5384
+ width: ${Ve.status}px;
5385
+ `,I7=s(Pt)`
5386
5386
  width: ${Ve.creditLimit}px;
5387
5387
  overflow: visible;
5388
5388
  position: relative;
5389
5389
  z-index: 2;
5390
- `,I7=s(Pt)`
5391
- width: ${Ve.creditScore}px;
5392
5390
  `,L7=s(Pt)`
5393
- width: ${Ve.recAmount}px;
5391
+ width: ${Ve.creditScore}px;
5394
5392
  `,A7=s(Pt)`
5395
- width: ${Ve.rationale}px;
5393
+ width: ${Ve.recAmount}px;
5396
5394
  `,D7=s(Pt)`
5397
- width: ${Ve.reportDate}px;
5395
+ width: ${Ve.rationale}px;
5398
5396
  `,O7=s(Pt)`
5399
- width: ${Ve.updatedBy}px;
5397
+ width: ${Ve.reportDate}px;
5400
5398
  `,N7=s(Pt)`
5399
+ width: ${Ve.updatedBy}px;
5400
+ `,M7=s(Pt)`
5401
5401
  width: ${Ve.actions}px;
5402
5402
  justify-content: flex-end;
5403
5403
  overflow: visible;
5404
- `,M7=s(t.StandardSemiBoldSp)`
5404
+ `,F7=s(t.StandardSemiBoldSp)`
5405
5405
  display: flex;
5406
5406
  align-items: center;
5407
5407
  gap: ${t.Space.sp2};
5408
- `,F7=s(t.ExtraSmallBoldSp)`
5408
+ `,z7=s(t.ExtraSmallBoldSp)`
5409
5409
  background: ${({theme:e})=>e.colors.success};
5410
5410
  color: ${({theme:e})=>e.colors.grey5};
5411
5411
  padding: ${t.Space.sp1} ${t.Space.sp2};
@@ -5415,20 +5415,20 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5415
5415
  `,ao=s(t.SmallRegularSp)`
5416
5416
  color: ${({theme:e})=>e.colors.grey1};
5417
5417
  font-style: italic;
5418
- `,z7=s(t.ExtraSmallSemiBoldSp)`
5418
+ `,_7=s(t.ExtraSmallSemiBoldSp)`
5419
5419
  display: inline-block;
5420
5420
  padding: ${t.Space.sp1} ${t.Space.sp2};
5421
5421
  border-radius: ${t.Space.sp2};
5422
5422
  text-transform: capitalize;
5423
5423
  white-space: nowrap;
5424
- ${e=>{const n=E7(e.status,e.theme.colors);return`background-color: ${n.backgroundColor}; color: ${n.color};`}}
5424
+ ${e=>{const n=v7(e.status,e.theme.colors);return`background-color: ${n.backgroundColor}; color: ${n.color};`}}
5425
5425
  `,ya=s(t.SmallRegularSp)`
5426
5426
  color: ${({theme:e})=>e.colors.grey1};
5427
5427
  cursor: pointer;
5428
5428
  &:hover {
5429
5429
  color: ${({theme:e})=>e.colors.grey1};
5430
5430
  }
5431
- `,_7=s.span`
5431
+ `,B7=s.span`
5432
5432
  display: inline-flex;
5433
5433
  align-items: center;
5434
5434
  gap: ${t.Space.sp1};
@@ -5439,7 +5439,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5439
5439
  box-shadow: 0 ${t.Space.sp1} ${t.Space.sp3}
5440
5440
  ${({theme:e})=>e.colors.dropShadowNormal};
5441
5441
  white-space: nowrap;
5442
- `,B7=s(t.SmallRegularInput)`
5442
+ `,W7=s(t.SmallRegularInput)`
5443
5443
  width: 80px;
5444
5444
  font-family: inherit;
5445
5445
  border: 1px solid ${({theme:e})=>e.colors.grey2};
@@ -5449,7 +5449,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5449
5449
  &:focus {
5450
5450
  border-color: ${({theme:e})=>e.colors.grey1};
5451
5451
  }
5452
- `,W7=s.button`
5452
+ `,V7=s.button`
5453
5453
  background: none;
5454
5454
  border: none;
5455
5455
  cursor: pointer;
@@ -5461,7 +5461,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5461
5461
  &:hover {
5462
5462
  color: ${({theme:e})=>e.colors.successProgress};
5463
5463
  }
5464
- `,V7=s.button`
5464
+ `,U7=s.button`
5465
5465
  background: none;
5466
5466
  border: none;
5467
5467
  cursor: pointer;
@@ -5473,10 +5473,10 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5473
5473
  &:hover {
5474
5474
  color: ${({theme:e})=>e.colors.grey1};
5475
5475
  }
5476
- `,U7=s.span``,H7=s.span`
5476
+ `,H7=s.span``,K7=s.span`
5477
5477
  position: relative;
5478
5478
  display: block;
5479
- `,K7=s(t.ExtraSmallRegularSp)`
5479
+ `,G7=s(t.ExtraSmallRegularSp)`
5480
5480
  color: ${({theme:e})=>e.colors.grey1};
5481
5481
  line-height: 1.5;
5482
5482
  display: -webkit-box;
@@ -5484,7 +5484,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5484
5484
  -webkit-box-orient: vertical;
5485
5485
  overflow: hidden;
5486
5486
  cursor: default;
5487
- `,G7=s(t.SmallRegularSp)`
5487
+ `,Y7=s(t.SmallRegularSp)`
5488
5488
  position: fixed;
5489
5489
  background: ${({theme:e})=>e.colors.primary};
5490
5490
  color: ${({theme:e})=>e.colors.grey5};
@@ -5505,17 +5505,17 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5505
5505
  border: 6px solid transparent;
5506
5506
  ${e=>e.above?`top: 100%; border-top-color: ${e.theme.colors.primary};`:`bottom: 100%; border-bottom-color: ${e.theme.colors.primary};`}
5507
5507
  }
5508
- `,Y7=s.span`
5508
+ `,Z7=s.span`
5509
5509
  display: flex;
5510
5510
  align-items: center;
5511
5511
  gap: ${t.Space.sp2};
5512
- `,Z7=s.span`
5512
+ `,q7=s.span`
5513
5513
  display: flex;
5514
5514
  flex-direction: column;
5515
5515
  gap: 2px;
5516
- `,q7=s.span``,X7=s(t.ExtraSmallRegularSp)`
5516
+ `,X7=s.span``,Q7=s(t.ExtraSmallRegularSp)`
5517
5517
  color: ${({theme:e})=>e.colors.grey1};
5518
- `,Q7=s.span`
5518
+ `,J7=s.span`
5519
5519
  position: relative;
5520
5520
  display: inline-flex;
5521
5521
  align-items: center;
@@ -5524,14 +5524,14 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5524
5524
  &:hover {
5525
5525
  color: ${({theme:e})=>e.colors.grey1};
5526
5526
  }
5527
- `,J7=s.span`
5527
+ `,e6=s.span`
5528
5528
  display: flex;
5529
5529
  align-items: center;
5530
5530
  gap: ${t.Space.sp1};
5531
5531
  justify-content: flex-end;
5532
- `,e6=s.span`
5532
+ `,t6=s.span`
5533
5533
  position: relative;
5534
- `,t6=s(t.ExtraSmallRegularSp)`
5534
+ `,o6=s(t.ExtraSmallRegularSp)`
5535
5535
  position: absolute;
5536
5536
  bottom: calc(100% + 6px);
5537
5537
  right: 0;
@@ -5542,17 +5542,17 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5542
5542
  white-space: nowrap;
5543
5543
  pointer-events: none;
5544
5544
  z-index: 10;
5545
- `,o6=s(t.LargeBoldSp)`
5545
+ `,n6=s(t.LargeBoldSp)`
5546
5546
  color: ${({theme:e})=>e.colors.primary};
5547
- `,n6=s(t.StandardRegularSp)`
5547
+ `,s6=s(t.StandardRegularSp)`
5548
5548
  color: ${({theme:e})=>e.colors.grey1};
5549
5549
  line-height: 1.5;
5550
- `,{cockpit:{creditAgent:bt},common:{headers:{notes:s6}}}=t.appLocale.getLocalizedStrings();function r6({cardProfilesData:e,cardProfilesActions:n,onUIStateChange:r,uiState:i}){const a=p.useMemo(()=>c7(bt),[]),[c,l]=p.useState(null),[d,u]=p.useState(""),[x,m]=p.useState(null),f=i.sortKey??null,h=i.sortDir,y=i.filterText,j=e.fetchState==="Not-Started"||e.fetchState==="In-Progress",g=$=>{r(f===$?{sortDir:h==="asc"?"desc":"asc"}:{sortKey:$,sortDir:"asc"})},b=e.rows,C=b.length,S=p.useMemo(()=>({cardProfilesActions:n,editingNs:c,editingValue:d,onEditCancel:()=>l(null),onEditChange:u,onEditStart:($,v)=>{l($),u(v)},onNoteOpen:m,rowCount:b.length,rows:b}),[n,c,d,b]);return o.jsxRuntimeExports.jsxs(a6,{children:[o.jsxRuntimeExports.jsxs(y6,{children:[o.jsxRuntimeExports.jsxs(f6,{children:[o.jsxRuntimeExports.jsx(C6,{children:o.jsxRuntimeExports.jsx(t.SvgSearch,{width:t.Space.sp3,height:t.Space.sp3})}),o.jsxRuntimeExports.jsx(j6,{placeholder:bt.searchPlaceholder,value:y,onChange:$=>r({filterText:$.target.value})}),!!y&&o.jsxRuntimeExports.jsx(b6,{onClick:()=>r({filterText:""}),children:o.jsxRuntimeExports.jsx(t.SvgClose,{width:t.Space.sp3,height:t.Space.sp3})})]}),!j&&o.jsxRuntimeExports.jsxs(R6,{children:[C," ",C!==1?bt.tenantCountPlural:bt.tenantCountSingular,y?` ${bt.tenantCountFound}`:""]})]}),e.fetchState==="Error"?o.jsxRuntimeExports.jsx(S6,{children:bt.failedToLoadCardProfiles}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsxs(l6,{children:[o.jsxRuntimeExports.jsx(c6,{children:a.map($=>{const v=$.sortable&&f===$.key,R=h;return o.jsxRuntimeExports.jsx(d6,{$width:$.width,$justifyContent:$.justifyContent,$growToFill:$.growToFill,children:o.jsxRuntimeExports.jsx(p6,{children:$.sortable?o.jsxRuntimeExports.jsxs(u6,{type:"button",$active:v,onClick:()=>g($.key),children:[$.label,o.jsxRuntimeExports.jsx(m6,{$direction:v?R:"asc",children:o.jsxRuntimeExports.jsx(t.SvgArrowTailTop,{width:nn.sortIconSize,height:nn.sortIconSize})})]}):$.label})},$.key)})}),j?o.jsxRuntimeExports.jsx(h6,{children:o.jsxRuntimeExports.jsx(t.ListTableSkeleton,{colPcts:a7,rowCount:l7})}):b.length===0?o.jsxRuntimeExports.jsx(g6,{children:y||i.focus!=="All"||i.minScore>0?bt.noTenantsMatchFilters:bt.noCardProfilesYet}):o.jsxRuntimeExports.jsx(x6,{children:o.jsxRuntimeExports.jsx(wt.AutoSizer,{children:({height:$,width:v})=>o.jsxRuntimeExports.jsx(kt.FixedSizeList,{height:$,width:v,itemCount:b.length,itemSize:nn.rowHeightPx,itemData:S,innerElementType:i6,overscanCount:5,children:Hl})})})]}),x!=null&&o.jsxRuntimeExports.jsx(at.RoomProvider,{id:x.roomId,children:o.jsxRuntimeExports.jsx(t.AllThreadsDrawer,{isDrawerOpen:!0,allowComposer:!0,autoExpand:!0,autoFocus:!1,drawerTitle:`${x.companyName} ${s6}`,filter:{application:"cockpit",companyId:x.companyId,entityType:t.toCollaborationEntityType({tab:"creditAgent",key:"details"}),isGlobalComment:!1,tab:"creditAgent"},isLoading:!1,threadMetadata:{companyName:x.companyName,companyId:x.companyId,entityId:x.companyId,entityType:t.toCollaborationEntityType({tab:"creditAgent",key:"details"}),isGlobalComment:!1,application:"cockpit",tab:"creditAgent",url:window.location.href},textOverrides:{composerPlaceholder:bt.composerPlaceholder,replyComposerPlaceholder:bt.replyComposerPlaceholder},onThreadClick:()=>null,onCloseAllThreadsDrawer:()=>m(null)})})]})]})}const Hl=p.memo(({index:e,style:n,data:r})=>{const i=r.rows[e],a=e===r.rowCount-1;return o.jsxRuntimeExports.jsx(C7,{style:n,row:i,isLastRow:a,cardProfilesActions:r.cardProfilesActions,editingNs:r.editingNs,editingValue:r.editingValue,onEditStart:r.onEditStart,onEditChange:r.onEditChange,onEditCancel:r.onEditCancel,onNoteOpen:r.onNoteOpen})});Hl.displayName="CreditAgentListItem";const i6=p.forwardRef(({style:e,...n},r)=>o.jsxRuntimeExports.jsx("div",{ref:r,style:{...e,position:"relative"},...n})),a6=s.div`
5550
+ `,{cockpit:{creditAgent:bt},common:{headers:{notes:r6}}}=t.appLocale.getLocalizedStrings();function i6({cardProfilesData:e,cardProfilesActions:n,onUIStateChange:r,uiState:i}){const a=p.useMemo(()=>d7(bt),[]),[c,l]=p.useState(null),[d,u]=p.useState(""),[x,m]=p.useState(null),f=i.sortKey??null,h=i.sortDir,y=i.filterText,j=e.fetchState==="Not-Started"||e.fetchState==="In-Progress",g=$=>{r(f===$?{sortDir:h==="asc"?"desc":"asc"}:{sortKey:$,sortDir:"asc"})},b=e.rows,C=b.length,S=p.useMemo(()=>({cardProfilesActions:n,editingNs:c,editingValue:d,onEditCancel:()=>l(null),onEditChange:u,onEditStart:($,v)=>{l($),u(v)},onNoteOpen:m,rowCount:b.length,rows:b}),[n,c,d,b]);return o.jsxRuntimeExports.jsxs(l6,{children:[o.jsxRuntimeExports.jsxs(f6,{children:[o.jsxRuntimeExports.jsxs(C6,{children:[o.jsxRuntimeExports.jsx(j6,{children:o.jsxRuntimeExports.jsx(t.SvgSearch,{width:t.Space.sp3,height:t.Space.sp3})}),o.jsxRuntimeExports.jsx(b6,{placeholder:bt.searchPlaceholder,value:y,onChange:$=>r({filterText:$.target.value})}),!!y&&o.jsxRuntimeExports.jsx(R6,{onClick:()=>r({filterText:""}),children:o.jsxRuntimeExports.jsx(t.SvgClose,{width:t.Space.sp3,height:t.Space.sp3})})]}),!j&&o.jsxRuntimeExports.jsxs($6,{children:[C," ",C!==1?bt.tenantCountPlural:bt.tenantCountSingular,y?` ${bt.tenantCountFound}`:""]})]}),e.fetchState==="Error"?o.jsxRuntimeExports.jsx(y6,{children:bt.failedToLoadCardProfiles}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsxs(c6,{children:[o.jsxRuntimeExports.jsx(d6,{children:a.map($=>{const v=$.sortable&&f===$.key,R=h;return o.jsxRuntimeExports.jsx(p6,{$width:$.width,$justifyContent:$.justifyContent,$growToFill:$.growToFill,children:o.jsxRuntimeExports.jsx(u6,{children:$.sortable?o.jsxRuntimeExports.jsxs(m6,{type:"button",$active:v,onClick:()=>g($.key),children:[$.label,o.jsxRuntimeExports.jsx(x6,{$direction:v?R:"asc",children:o.jsxRuntimeExports.jsx(t.SvgArrowTailTop,{width:nn.sortIconSize,height:nn.sortIconSize})})]}):$.label})},$.key)})}),j?o.jsxRuntimeExports.jsx(g6,{children:o.jsxRuntimeExports.jsx(t.ListTableSkeleton,{colPcts:l7,rowCount:c7})}):b.length===0?o.jsxRuntimeExports.jsx(S6,{children:y||i.focus!=="All"||i.minScore>0?bt.noTenantsMatchFilters:bt.noCardProfilesYet}):o.jsxRuntimeExports.jsx(h6,{children:o.jsxRuntimeExports.jsx(wt.AutoSizer,{children:({height:$,width:v})=>o.jsxRuntimeExports.jsx(kt.FixedSizeList,{height:$,width:v,itemCount:b.length,itemSize:nn.rowHeightPx,itemData:S,innerElementType:a6,overscanCount:5,children:Hl})})})]}),x!=null&&o.jsxRuntimeExports.jsx(at.RoomProvider,{id:x.roomId,children:o.jsxRuntimeExports.jsx(t.AllThreadsDrawer,{isDrawerOpen:!0,allowComposer:!0,autoExpand:!0,autoFocus:!1,drawerTitle:`${x.companyName} ${r6}`,filter:{application:"cockpit",companyId:x.companyId,entityType:t.toCollaborationEntityType({tab:"creditAgent",key:"details"}),isGlobalComment:!1,tab:"creditAgent"},isLoading:!1,threadMetadata:{companyName:x.companyName,companyId:x.companyId,entityId:x.companyId,entityType:t.toCollaborationEntityType({tab:"creditAgent",key:"details"}),isGlobalComment:!1,application:"cockpit",tab:"creditAgent",url:window.location.href},textOverrides:{composerPlaceholder:bt.composerPlaceholder,replyComposerPlaceholder:bt.replyComposerPlaceholder},onThreadClick:()=>null,onCloseAllThreadsDrawer:()=>m(null)})})]})]})}const Hl=p.memo(({index:e,style:n,data:r})=>{const i=r.rows[e],a=e===r.rowCount-1;return o.jsxRuntimeExports.jsx(j7,{style:n,row:i,isLastRow:a,cardProfilesActions:r.cardProfilesActions,editingNs:r.editingNs,editingValue:r.editingValue,onEditStart:r.onEditStart,onEditChange:r.onEditChange,onEditCancel:r.onEditCancel,onNoteOpen:r.onNoteOpen})});Hl.displayName="CreditAgentListItem";const a6=p.forwardRef(({style:e,...n},r)=>o.jsxRuntimeExports.jsx("div",{ref:r,style:{...e,position:"relative"},...n})),l6=s.div`
5551
5551
  display: flex;
5552
5552
  flex-direction: column;
5553
5553
  flex: 1;
5554
5554
  min-height: 0;
5555
- `,l6=s.div`
5555
+ `,c6=s.div`
5556
5556
  position: relative;
5557
5557
  flex: 1;
5558
5558
  min-height: 0;
@@ -5577,7 +5577,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5577
5577
  pointer-events: none;
5578
5578
  z-index: 10;
5579
5579
  }
5580
- `,c6=s.div`
5580
+ `,d6=s.div`
5581
5581
  display: flex;
5582
5582
  flex-direction: row;
5583
5583
  align-items: stretch;
@@ -5587,7 +5587,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5587
5587
  position: sticky;
5588
5588
  top: 0;
5589
5589
  z-index: 1;
5590
- `,d6=s.div`
5590
+ `,p6=s.div`
5591
5591
  flex: ${e=>e.$growToFill===!0?"1 1 auto":"0 0 auto"};
5592
5592
  min-width: ${e=>e.$width}px;
5593
5593
  width: ${e=>e.$growToFill===!0?"auto":`${e.$width}px`};
@@ -5599,10 +5599,10 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5599
5599
  border-bottom: 1px solid ${e=>e.theme.colors.grey2};
5600
5600
  color: ${e=>e.theme.colors.hero};
5601
5601
  height: ${nn.headerHeightPx}px;
5602
- `,p6=s(t.ExtraSmallSemiBold)`
5602
+ `,u6=s(t.ExtraSmallSemiBold)`
5603
5603
  display: flex;
5604
5604
  align-items: center;
5605
- `,u6=s.button`
5605
+ `,m6=s.button`
5606
5606
  display: inline-flex;
5607
5607
  align-items: center;
5608
5608
  border: none;
@@ -5612,33 +5612,33 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5612
5612
  font: inherit;
5613
5613
  text-align: inherit;
5614
5614
  color: ${e=>e.$active?e.theme.colors.primary:"inherit"};
5615
- `,m6=s.span`
5615
+ `,x6=s.span`
5616
5616
  display: inline-flex;
5617
5617
  align-items: center;
5618
5618
  margin-left: ${t.Space.sp1};
5619
5619
  transform: rotate(
5620
5620
  ${e=>e.$direction==="desc"?"180deg":"0deg"}
5621
5621
  );
5622
- `,x6=s.div`
5622
+ `,h6=s.div`
5623
5623
  flex: 1;
5624
5624
  min-height: 0;
5625
- `,h6=s.div`
5625
+ `,g6=s.div`
5626
5626
  padding: ${t.Space.sp3};
5627
5627
  opacity: 0.5;
5628
- `,g6=s(t.SmallRegular)`
5628
+ `,S6=s(t.SmallRegular)`
5629
5629
  padding: ${t.Space.sp8};
5630
5630
  text-align: center;
5631
5631
  color: ${e=>e.theme.colors.hero};
5632
- `,S6=s(t.SmallRegularP)`
5632
+ `,y6=s(t.SmallRegularP)`
5633
5633
  color: ${e=>e.theme.colors.alert};
5634
5634
  margin-top: ${t.Space.sp2};
5635
- `,y6=s.div`
5635
+ `,f6=s.div`
5636
5636
  display: flex;
5637
5637
  align-items: center;
5638
5638
  justify-content: space-between;
5639
5639
  margin-bottom: ${t.Space.sp3};
5640
5640
  gap: ${t.Space.sp3};
5641
- `,f6=s.div`
5641
+ `,C6=s.div`
5642
5642
  display: flex;
5643
5643
  align-items: center;
5644
5644
  gap: ${t.Space.sp2};
@@ -5650,12 +5650,12 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5650
5650
  &:focus-within {
5651
5651
  border-color: ${e=>e.theme.colors.hero};
5652
5652
  }
5653
- `,C6=s.span`
5653
+ `,j6=s.span`
5654
5654
  color: ${({theme:e})=>e.colors.grey1};
5655
5655
  display: flex;
5656
5656
  align-items: center;
5657
5657
  flex-shrink: 0;
5658
- `,j6=s(t.SmallRegularInput)`
5658
+ `,b6=s(t.SmallRegularInput)`
5659
5659
  border: none;
5660
5660
  outline: none;
5661
5661
  width: 100%;
@@ -5665,7 +5665,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5665
5665
  &::placeholder {
5666
5666
  color: ${({theme:e})=>e.colors.grey1};
5667
5667
  }
5668
- `,b6=s.button`
5668
+ `,R6=s.button`
5669
5669
  background: none;
5670
5670
  border: none;
5671
5671
  cursor: pointer;
@@ -5677,15 +5677,15 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5677
5677
  &:hover {
5678
5678
  color: ${e=>e.theme.colors.primary};
5679
5679
  }
5680
- `,R6=s(t.SmallMediumSp)`
5680
+ `,$6=s(t.SmallMediumSp)`
5681
5681
  color: ${e=>e.theme.colors.hero};
5682
- `,{common:Kl,cockpit:{creditAgent:$t}}=t.appLocale.getLocalizedStrings(),$6=["All","New only","Interested","Active only"],E6=e=>{switch(e){case"All":return Kl.all;case"New only":return $t.focusNewOnly;case"Interested":return $t.focusInterested;case"Active only":return $t.focusActiveOnly}};function v6({headerActions:e,headerData:n,creditAgentPageData:r,creditAgentPageActions:i}){const a=t.useWindowSizeContext(),{macroData:c,cardProfilesData:l}=r,{onFetchMacro:d,onSaveMacro:u,onResetSaveMacro:x,onUIStateChange:m,cardProfilesActions:f}=i,{onDownloadReport:h}=f,[y,j]=p.useState(""),[g,b]=p.useState(!1),{focus:C,minScore:S}=l.uiState;p.useEffect(()=>{c.fetchState==="Not-Started"&&d()},[c.fetchState,d]),p.useEffect(()=>{c.data!=null&&!g&&j(c.data.instructions)},[c.data,g]),p.useEffect(()=>{c.updateState==="Completed"&&(b(!1),x())},[c.updateState,x]),p.useEffect(()=>{l.fetchState==="Not-Started"&&f.onFetch()},[l.fetchState,f]);const $=p.useCallback(()=>{u(y)},[u,y]),v=p.useCallback(()=>{b(!1),c.data!=null&&j(c.data.instructions),c.updateState==="Error"&&x()},[c.data,c.updateState,x]);return o.jsxRuntimeExports.jsxs(w6,{children:[o.jsxRuntimeExports.jsx(Tt,{headerActions:e,headerData:{...n,allTabOptions:n.allTabOptions??Ct,selectedTabOption:"creditAgent"}}),o.jsxRuntimeExports.jsxs(k6,{windowSize:a,children:[o.jsxRuntimeExports.jsxs(T6,{children:[o.jsxRuntimeExports.jsx(P6,{}),o.jsxRuntimeExports.jsxs(I6,{children:[g&&o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:Kl.cancel,onClick:v}),o.jsxRuntimeExports.jsx(t.Button,{variant:"primary",size:"small",label:c.updateState==="In-Progress"?$t.saving:$t.savePrompt,disabled:c.updateState==="In-Progress",onClick:$})]}),o.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:$t.downloadReport,onClick:h})]})]}),o.jsxRuntimeExports.jsxs(L6,{children:[o.jsxRuntimeExports.jsxs(A6,{children:[o.jsxRuntimeExports.jsxs(D6,{children:[o.jsxRuntimeExports.jsx(O6,{children:"✦"}),c.fetchState==="In-Progress"?o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Standard",start:!0}):o.jsxRuntimeExports.jsx(N6,{value:y,disabled:c.updateState==="In-Progress",onChange:R=>{j(R.target.value),b(!0)},placeholder:$t.promptPlaceholder,rows:6})]}),o.jsxRuntimeExports.jsxs(M6,{children:[o.jsxRuntimeExports.jsxs(fa,{children:[o.jsxRuntimeExports.jsx(Ca,{children:$t.focusLabel}),o.jsxRuntimeExports.jsx(F6,{children:$6.map(R=>o.jsxRuntimeExports.jsx(z6,{active:C===R,onClick:()=>m({focus:R}),children:E6(R)},R))})]}),o.jsxRuntimeExports.jsx(_6,{}),o.jsxRuntimeExports.jsxs(fa,{children:[o.jsxRuntimeExports.jsx(Ca,{children:$t.minScoreLabel}),o.jsxRuntimeExports.jsx(B6,{type:"range",min:0,max:100,value:S,onChange:R=>m({minScore:parseInt(R.target.value)})}),o.jsxRuntimeExports.jsx(W6,{children:S})]})]})]}),c.updateState==="Error"&&o.jsxRuntimeExports.jsx(U6,{children:$t.failedToSavePrompt})]}),o.jsxRuntimeExports.jsx(V6,{children:o.jsxRuntimeExports.jsx(r6,{cardProfilesData:l,cardProfilesActions:f,onUIStateChange:m,uiState:l.uiState})})]})]})}const w6=s.div`
5682
+ `,{common:Kl,cockpit:{creditAgent:$t}}=t.appLocale.getLocalizedStrings(),E6=["All","New only","Interested","Active only"],v6=e=>{switch(e){case"All":return Kl.all;case"New only":return $t.focusNewOnly;case"Interested":return $t.focusInterested;case"Active only":return $t.focusActiveOnly}};function w6({headerActions:e,headerData:n,creditAgentPageData:r,creditAgentPageActions:i}){const a=t.useWindowSizeContext(),{macroData:c,cardProfilesData:l}=r,{onFetchMacro:d,onSaveMacro:u,onResetSaveMacro:x,onUIStateChange:m,cardProfilesActions:f}=i,{onDownloadReport:h}=f,[y,j]=p.useState(""),[g,b]=p.useState(!1),{focus:C,minScore:S}=l.uiState;p.useEffect(()=>{c.fetchState==="Not-Started"&&d()},[c.fetchState,d]),p.useEffect(()=>{c.data!=null&&!g&&j(c.data.instructions)},[c.data,g]),p.useEffect(()=>{c.updateState==="Completed"&&(b(!1),x())},[c.updateState,x]),p.useEffect(()=>{l.fetchState==="Not-Started"&&f.onFetch()},[l.fetchState,f]);const $=p.useCallback(()=>{u(y)},[u,y]),v=p.useCallback(()=>{b(!1),c.data!=null&&j(c.data.instructions),c.updateState==="Error"&&x()},[c.data,c.updateState,x]);return o.jsxRuntimeExports.jsxs(k6,{children:[o.jsxRuntimeExports.jsx(Tt,{headerActions:e,headerData:{...n,allTabOptions:n.allTabOptions??Ct,selectedTabOption:"creditAgent"}}),o.jsxRuntimeExports.jsxs(T6,{windowSize:a,children:[o.jsxRuntimeExports.jsxs(P6,{children:[o.jsxRuntimeExports.jsx(I6,{}),o.jsxRuntimeExports.jsxs(L6,{children:[g&&o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:Kl.cancel,onClick:v}),o.jsxRuntimeExports.jsx(t.Button,{variant:"primary",size:"small",label:c.updateState==="In-Progress"?$t.saving:$t.savePrompt,disabled:c.updateState==="In-Progress",onClick:$})]}),o.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:$t.downloadReport,onClick:h})]})]}),o.jsxRuntimeExports.jsxs(A6,{children:[o.jsxRuntimeExports.jsxs(D6,{children:[o.jsxRuntimeExports.jsxs(O6,{children:[o.jsxRuntimeExports.jsx(N6,{children:"✦"}),c.fetchState==="In-Progress"?o.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Standard",start:!0}):o.jsxRuntimeExports.jsx(M6,{value:y,disabled:c.updateState==="In-Progress",onChange:R=>{j(R.target.value),b(!0)},placeholder:$t.promptPlaceholder,rows:6})]}),o.jsxRuntimeExports.jsxs(F6,{children:[o.jsxRuntimeExports.jsxs(fa,{children:[o.jsxRuntimeExports.jsx(Ca,{children:$t.focusLabel}),o.jsxRuntimeExports.jsx(z6,{children:E6.map(R=>o.jsxRuntimeExports.jsx(_6,{active:C===R,onClick:()=>m({focus:R}),children:v6(R)},R))})]}),o.jsxRuntimeExports.jsx(B6,{}),o.jsxRuntimeExports.jsxs(fa,{children:[o.jsxRuntimeExports.jsx(Ca,{children:$t.minScoreLabel}),o.jsxRuntimeExports.jsx(W6,{type:"range",min:0,max:100,value:S,onChange:R=>m({minScore:parseInt(R.target.value)})}),o.jsxRuntimeExports.jsx(V6,{children:S})]})]})]}),c.updateState==="Error"&&o.jsxRuntimeExports.jsx(H6,{children:$t.failedToSavePrompt})]}),o.jsxRuntimeExports.jsx(U6,{children:o.jsxRuntimeExports.jsx(i6,{cardProfilesData:l,cardProfilesActions:f,onUIStateChange:m,uiState:l.uiState})})]})]})}const k6=s.div`
5683
5683
  height: calc(100vh - 45px);
5684
5684
  overflow: hidden;
5685
5685
  background-color: ${e=>e.theme.colors.grey4};
5686
5686
  display: flex;
5687
5687
  flex-direction: column;
5688
- `,k6=s.div`
5688
+ `,T6=s.div`
5689
5689
  flex: 1;
5690
5690
  min-height: 0;
5691
5691
  overflow: hidden;
@@ -5697,16 +5697,16 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5697
5697
  ${t.Space.sp5}
5698
5698
  ${e=>et.cockpitLeftPadding.valuePx(e.windowSize)};
5699
5699
  gap: ${t.Space.sp4};
5700
- `,T6=s.div`
5700
+ `,P6=s.div`
5701
5701
  display: flex;
5702
5702
  justify-content: space-between;
5703
5703
  align-items: center;
5704
5704
  flex-shrink: 0;
5705
- `,P6=s.div``,I6=s.div`
5705
+ `,I6=s.div``,L6=s.div`
5706
5706
  display: flex;
5707
5707
  gap: ${t.Space.sp3};
5708
5708
  align-items: center;
5709
- `,L6=s.div`
5709
+ `,A6=s.div`
5710
5710
  background: ${e=>e.theme.colors.grey5};
5711
5711
  border: 1px solid ${e=>e.theme.colors.grey3};
5712
5712
  border-radius: ${t.Space.sp4};
@@ -5715,22 +5715,22 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5715
5715
  &:focus-within {
5716
5716
  border-color: ${e=>e.theme.colors.hero};
5717
5717
  }
5718
- `,A6=s.div`
5718
+ `,D6=s.div`
5719
5719
  display: flex;
5720
5720
  align-items: flex-start;
5721
5721
  gap: ${t.Space.sp3};
5722
5722
  flex-wrap: wrap;
5723
- `,D6=s.div`
5723
+ `,O6=s.div`
5724
5724
  display: flex;
5725
5725
  align-items: flex-start;
5726
5726
  gap: ${t.Space.sp2};
5727
5727
  flex: 1;
5728
5728
  min-width: 200px;
5729
- `,O6=s(t.StandardRegularSp)`
5729
+ `,N6=s(t.StandardRegularSp)`
5730
5730
  margin-top: 2px;
5731
5731
  flex-shrink: 0;
5732
5732
  color: ${e=>e.theme.colors.hero};
5733
- `,N6=s(t.StandardMediumTA)`
5733
+ `,M6=s(t.StandardMediumTA)`
5734
5734
  border: none;
5735
5735
  background: transparent;
5736
5736
  outline: none;
@@ -5745,7 +5745,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5745
5745
  &::placeholder {
5746
5746
  color: ${({theme:e})=>e.colors.grey1};
5747
5747
  }
5748
- `,M6=s.div`
5748
+ `,F6=s.div`
5749
5749
  display: flex;
5750
5750
  align-items: center;
5751
5751
  gap: ${t.Space.sp2};
@@ -5759,10 +5759,10 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5759
5759
  color: ${({theme:e})=>e.colors.grey1};
5760
5760
  letter-spacing: 0.5px;
5761
5761
  white-space: nowrap;
5762
- `,F6=s.div`
5762
+ `,z6=s.div`
5763
5763
  display: flex;
5764
5764
  gap: ${t.Space.sp1};
5765
- `,z6=s(t.SmallMediumBtn)`
5765
+ `,_6=s(t.SmallMediumBtn)`
5766
5766
  padding: ${t.Space.sp1} ${t.Space.sp2};
5767
5767
  border-radius: ${t.Space.sp5};
5768
5768
  border: 1px solid
@@ -5777,19 +5777,19 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5777
5777
  border-color: ${e=>e.theme.colors.hero};
5778
5778
  color: ${e=>e.active?e.theme.colors.grey5:e.theme.colors.hero};
5779
5779
  }
5780
- `,_6=s.div`
5780
+ `,B6=s.div`
5781
5781
  width: 1px;
5782
5782
  height: ${t.Space.sp4};
5783
5783
  background: ${e=>e.theme.colors.grey3};
5784
5784
  flex-shrink: 0;
5785
- `,B6=s.input`
5785
+ `,W6=s.input`
5786
5786
  width: ${t.Space.sp10};
5787
5787
  accent-color: ${e=>e.theme.colors.hero};
5788
5788
  cursor: pointer;
5789
- `,W6=s(t.SmallSemiBoldSp)`
5789
+ `,V6=s(t.SmallSemiBoldSp)`
5790
5790
  color: ${e=>e.theme.colors.primary};
5791
5791
  min-width: 20px;
5792
- `,V6=s.div`
5792
+ `,U6=s.div`
5793
5793
  background-color: ${e=>e.theme.colors.grey5};
5794
5794
  border: 1px solid ${e=>e.theme.colors.grey3};
5795
5795
  border-radius: ${t.Space.sp2};
@@ -5799,7 +5799,7 @@ ${e}`,ox=e=>ce.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
5799
5799
  display: flex;
5800
5800
  flex-direction: column;
5801
5801
  overflow: hidden;
5802
- `,U6=s(t.SmallRegularP)`
5802
+ `,H6=s(t.SmallRegularP)`
5803
5803
  color: ${e=>e.theme.colors.alert};
5804
5804
  margin-top: ${t.Space.sp2};
5805
- `;exports.AIAgentsActivatingPage=t.AIAgentsActivatingPage;exports.AIIconButton=t.AIIconButton;exports.AIPerformancePage=t.AIPerformancePage;exports.ALL_AI_CFO_MENU_OPTIONS=t.ALL_AI_CFO_MENU_OPTIONS;exports.ALL_INVOICING_MENU_GROUPS=t.ALL_INVOICING_MENU_GROUPS;exports.ALL_INVOICING_MENU_OPTIONS=t.ALL_INVOICING_MENU_OPTIONS;exports.ALL_SETTINGS_MENU_OPTIONS=t.ALL_SETTINGS_MENU_OPTIONS;exports.APP_DRAWER_CONTENT_WIDTH_PX=t.APP_DRAWER_CONTENT_WIDTH_PX;exports.AccountInfoPage=t.AccountInfoPage;exports.AccountLockedInfoModal=t.AccountLockedInfoModal;exports.AccountReconDetailsDrawerPage=t.AccountReconDetailsDrawerPage;exports.AccountReconDetailsDrawerPageV2=t.AccountReconDetailsDrawerPage$1;exports.ActivityIndicator=t.ActivityIndicator;exports.ActualMatchingMatchDetailPage=t.ActualMatchingMatchDetailPage;exports.AddAddressForCardDrawer=t.AddAddressForCardDrawer;exports.AddToWalletPage=t.AddToWalletPage;exports.AddressFormPage=t.AddressFormPage;exports.AgingReportsPage=t.AgingReportsPage;exports.AiCfoChatHeader=t.AiCfoChatHeader;exports.AiCfoMenuContent=t.AiCfoMenuContent;exports.AiCfoOnboardingPage=t.AiCfoOnboardingPage;exports.AiCfoPage=t.AiCfoPage;exports.AiCfoScopeModal=t.AiCfoScopeModal;exports.AiCfoScopeModalScrollBody=t.AiCfoScopeModalScrollBody;exports.AiCfoSidePanel=t.AiCfoSidePanel;exports.AiCfoSkillsBrowser=t.AiCfoSkillsBrowser;exports.AiFinanceTeamReadyPage=t.AiFinanceTeamReadyPage;exports.AllowBlockChipPicker=t.AllowBlockChipPicker;exports.AnalyticsOnLoad=t.AnalyticsOnLoad;exports.ApAgingDetailPage=t.ApAgingDetailPage;exports.AppBasePage=t.AppBasePage;exports.AppDrawerContent=t.AppDrawerContent;exports.AppDrawerHeightMobile=t.AppDrawerHeightMobile;exports.ApprovalRulesSettingsPage=t.ApprovalRulesSettingsPage;exports.ArAgingDetailPage=t.ArAgingDetailPage;exports.AskAiCfoNavButton=t.AskAiCfoNavButton;exports.AskAiCfoNavButtonWhenEnabled=t.AskAiCfoNavButtonWhenEnabled;exports.AttachmentView=t.AttachmentView;exports.AutoTransferRulePage=t.AutoTransferRulePage;exports.BackNavigationProvider=t.BackNavigationProvider;exports.BankConnectionsSettingsPage=t.BankConnectionsSettingsPage;exports.BillDetailPage=t.BillDetailPage;exports.BillDetailPageSkeleton=t.BillDetailPageSkeleton;exports.BillPayApprovalRuleDetailPage=t.BillPayApprovalRuleDetailPage;exports.BillPayApprovalRuleDetailPageV1=t.BillPayApprovalRuleDetailPage$1;exports.BillPayApprovalRulesPage=t.BillPayApprovalRulesPage;exports.BillPayApprovalRulesPageV1=t.BillPayApprovalRulesPage$1;exports.BillPayPromoPage=t.BillPayPromoPage;exports.BillPaySetUpLoading=t.SpendManagementSetUpLoading;exports.BillPaySetUpPage=t.BillPaySetUpPage;exports.BillingSettingsPage=t.BillingSettingsPage;exports.BillsBulkReviewDrawerPage=t.BillsBulkReviewDrawerPage;exports.BusinessVerificationPage=t.BusinessVerificationPage;exports.ButtonWithDropDown=t.ButtonWithDropDown;exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT=t.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT;exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION=t.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION;exports.COMMAND_CENTER_SUBMENU_TYPES=t.COMMAND_CENTER_SUBMENU_TYPES;exports.COMMENT_NOTIFICATION_KINDS=t.COMMENT_NOTIFICATION_KINDS;exports.CapitalizationOnboardingPopup=t.CapitalizationOnboardingPopup;exports.CapitalizationSettingsSection=t.CapitalizationSettingsSection;exports.CardPolicyCreatePage=t.CardPolicyCreatePage;exports.CardPolicyEditPage=t.CardPolicyEditPage;exports.CardPolicyFormPageSkeleton=t.CardPolicyFormPageSkeleton;exports.CardPolicyFormSections=t.CardPolicyFormSections;exports.CardPolicyListPage=t.CardPolicyListPage;exports.CardPolicyListPageSkeleton=t.CardPolicyListPageSkeleton;exports.CardPolicyListRow=t.CardPolicyListRow;exports.CardPolicyListSkeletonRow=t.CardPolicyListSkeletonRow;exports.CardPolicyManualEmptyState=t.CardPolicyManualEmptyState;exports.CardsAiCfoHero=t.CardsAiCfoHero;exports.CardsShutdownBanner=t.CardsShutdownBanner;exports.CashbackDetailLoading=t.CashbackDetailLoading;exports.CashbackDetailPage=t.CashbackDetailPage;exports.ChargeCardCVVActivate=t.ChargeCardCVVActivate;exports.ChargeCardDetailLoading=t.ChargeCardDetailLoading;exports.ChargeCardDetailPage=t.ChargeCardDetailPage;exports.ChargeCardListLoading=t.ChargeCardListLoading;exports.ChargeCardListPage=t.ChargeCardListPage;exports.ChargeCardListSkeletonRow=t.ChargeCardListSkeletonRow;exports.ChargeCardPaymentHistoryPage=t.ChargeCardPaymentHistoryPage;exports.ChargeCardPromoPage=t.ChargeCardPromoPage;exports.ChargeCardPromoPageSkeleton=t.ChargeCardPromoPageSkeleton;exports.ChargeCardSetUpPage=t.ChargeCardSetUpPage;exports.ChargeCardSetupLoading=t.SpendManagementSetUpLoading;exports.ChargeCardStatementsLoading=t.ChargeCardStatementsLoading;exports.ChargeCardStatementsPage=t.ChargeCardStatementsPage;exports.ChargeCardUserOnboardingPromoPage=t.ChargeCardUserOnboardingPromoPage;exports.ChargeCardUserOnboardingPromoPageSkeleton=t.ChargeCardUserOnboardingPromoPageSkeleton;exports.CheckDepositDrawerPage=t.CheckDepositDrawerPage;exports.ClickableRow=t.ClickableRow;exports.CollaborationGlobalStyles=t.CollaborationGlobalStyles;exports.CollaborationProvider=t.CollaborationProvider;exports.CollaborationRoomProvider=t.CollaborationRoomProvider;exports.Colors=t.Colors;exports.CommentsAndNotesCount=t.CommentsAndNotesCount;exports.CommentsDrawerProvider=t.CommentsDrawerProvider;exports.CompanyOfficerOnboardingDetailsSection=t.CompanyOfficerOnboardingDetailsSection;exports.CompanyOnboardingDetailsSection=t.CompanyOnboardingDetailsSection;exports.CompanyPassportCard=t.CompanyPassportCard;exports.CompanyPassportPage=t.CompanyPassportPage;exports.CompleteProfile=t.CompleteProfile;exports.ConfettiBurst=t.ConfettiBurst;exports.ConfirmationPopup=t.ConfirmationPopup;exports.ConnectDataSourcesPage=t.ConnectDataSourcesPage;exports.CreateOrEditVendorPage=t.CreateOrEditVendorPage;exports.CreateOrEditVendorPageSkeleton=t.CreateOrEditVendorPageSkeleton;exports.CreateTransactionButton=t.CreateTransactionButton;exports.CreateTransactionPage=t.CreateTransactionPage;exports.CreatedEntitiesAnswer=t.CreatedEntitiesAnswer;exports.CreatingEntitiesAnswerLoading=t.CreatingEntitiesAnswerLoading;exports.CreditCardPaymentDrawerPage=t.CreditCardPaymentDrawerPage;exports.CustomerDetailPage=t.CustomerDetailPage;exports.CustomerListPage=t.CustomerListPage;exports.CustomerOnboardingContainerPage=t.CustomerOnboardingContainerPage;exports.CustomerOnboardingNoStepsPage=t.CustomerOnboardingNoStepsPage;exports.CustomerOnboardingPage=t.CustomerOnboardingPage;exports.CustomerOnboardingProductSuitePage=t.CustomerOnboardingProductSuitePage;exports.Dashboard=t.Dashboard;exports.DashboardHalloweenBatsAnimation=t.DashboardHalloweenBatsAnimation;exports.DashboardReportPage=t.DashboardReportPage;exports.DashboardSidebarLogoAnimation=t.DashboardSidebarLogoAnimation;exports.DataListTable=t.DataListTable;exports.DataListTableHeader=t.DataListTableHeader;exports.DataListTableRow=t.DataListTableRow;exports.DataListTableSortIndicator=t.DataListTableSortIndicator;exports.DebitCardSetPin=t.DebitCardSetPin;exports.DropdownPortalContext=t.DropdownPortalContext;exports.EditPeoplePage=t.EditPeoplePage;exports.EditReimbursementDetailPage=t.EditReimbursementDetailPage;exports.EditableBillDetailPage=t.EditableBillDetailPage;exports.EntityDetailPage=t.EntityDetailPage;exports.ErrorBoundaryWrapper=t.ErrorBoundaryWrapper;exports.ExcludedAccountReconDetailsDrawerPage=t.ExcludedAccountReconDetailsDrawerPage;exports.ExpenseAutomationOverviewPage=t.ExpenseAutomationOverviewPage;exports.ExpenseAutomationOverviewPageSkeleton=t.ExpenseAutomationOverviewPageSkeleton;exports.ExpenseAutomationPage=t.ExpenseAutomationPage;exports.ExpressPayPage=t.ExpressPayPage;exports.FeatureDynamicConfigNames=t.DynamicConfigNames;exports.FeatureGatesNames=t.FeatureGatesNames;exports.FeaturePreviewPage=t.FeaturePreviewPage;exports.FeatureProvider=t.FeatureProvider;exports.FieldHelpIcon=t.FieldHelpIcon;exports.FieldHelpProvider=t.FieldHelpProvider;exports.FirstReviewVendorDetailPage=t.FirstReviewVendorDetailPage;exports.FontWeight=t.FontWeight;exports.GlobalInfoProvider=t.GlobalInfoProvider;exports.GlobalReviewListPage=t.GlobalReviewListPage;exports.INVOICING_SETTINGS_NAV_SECTIONS=t.INVOICING_SETTINGS_NAV_SECTIONS;exports.INVOICING_SETTINGS_TABS=t.INVOICING_SETTINGS_TABS;exports.InformationCardStack=t.InformationCardStack;exports.InitialCollaborationProvider=t.InitialCollaborationProvider;exports.InsightsCardStack=t.InsightCardStack;exports.IntegrationCardView=t.IntegrationCardView;exports.IntegrationsCardGrid=t.IntegrationsCardGrid;exports.IntegrationsSection=t.IntegrationsSection;exports.IntegrationsSettingsPage=t.IntegrationsSettingsPage;exports.InternationalWireVerificationPage=t.InternationalWireVerificationPage;exports.InviteFormPage=t.InviteFormPage;exports.InvitePageListView=t.InvitePageListView;exports.InvitePeoplePage=t.InvitePeoplePage;exports.InvoiceUploadSection=t.InvoiceUploadSection;exports.InvoiceUploadSectionSkeleton=t.InvoiceUploadSectionSkeleton;exports.InvoicingAddPaymentMethodDialog=t.InvoicingAddPaymentMethodDialog;exports.InvoicingAuditLogPage=t.InvoicingAuditLogPage;exports.InvoicingBrandingSettingsPage=t.InvoicingBrandingSettingsPage;exports.InvoicingCatalogItemDetailPage=t.InvoicingCatalogItemDetailPage;exports.InvoicingCatalogItemFormPage=t.InvoicingCatalogItemFormPage;exports.InvoicingCatalogPage=t.InvoicingCatalogPage;exports.InvoicingCouponFormPage=t.InvoicingCouponFormPage;exports.InvoicingCreateInvoicePage=t.InvoicingCreateInvoicePage;exports.InvoicingCreateInvoiceSkeleton=t.InvoicingCreateInvoiceSkeleton;exports.InvoicingCreatePromotionalCreditsDialog=t.InvoicingCreatePromotionalCreditsDialog;exports.InvoicingCreditDetailPage=t.InvoicingCreditDetailPage;exports.InvoicingCreditListPage=t.InvoicingCreditListPage;exports.InvoicingCustomerDetailPage=t.InvoicingCustomerDetailPage;exports.InvoicingCustomerFormPage=t.InvoicingCustomerFormPage;exports.InvoicingCustomerListPage=t.InvoicingCustomerListPage;exports.InvoicingDashboardSkeleton=t.InvoicingDashboardSkeleton;exports.InvoicingDataImportDetailPage=t.InvoicingDataImportDetailPage;exports.InvoicingDataImportHubPage=t.InvoicingDataImportHubPage;exports.InvoicingDataImportMigratePage=t.InvoicingDataImportMigratePage;exports.InvoicingDetailScaffold=t.InvoicingDetailScaffold;exports.InvoicingDiscountDetailPage=t.InvoicingDiscountDetailPage;exports.InvoicingDiscountListPage=t.InvoicingDiscountListPage;exports.InvoicingDunningDetailPage=t.InvoicingDunningDetailPage;exports.InvoicingDunningEmailComposerDialog=t.InvoicingDunningEmailComposerDialog;exports.InvoicingDunningListPage=t.InvoicingDunningListPage;exports.InvoicingDunningSettingsPage=t.InvoicingDunningSettingsPage;exports.InvoicingEmptyState=t.InvoicingEmptyState;exports.InvoicingIntegrationsSettingsPage=t.InvoicingIntegrationsSettingsPage;exports.InvoicingInvoiceDetailPage=t.InvoicingInvoiceDetailPage;exports.InvoicingInvoiceListPage=t.InvoicingInvoiceListPage;exports.InvoicingIssueCreditNotePage=t.InvoicingIssueCreditNotePage;exports.InvoicingOverviewPage=t.InvoicingOverviewPage;exports.InvoicingPaymentDestinationSettingsPage=t.InvoicingPaymentDestinationSettingsPage;exports.InvoicingPaymentLinkEmailComposerDialog=t.InvoicingPaymentLinkEmailComposerDialog;exports.InvoicingPaymentLinkPage=t.InvoicingPaymentLinkPage;exports.InvoicingPaymentListPage=t.InvoicingPaymentListPage;exports.InvoicingPromoPage=t.InvoicingPromoPage;exports.InvoicingQBOSettingsPage=t.InvoicingQBOSettingsPage;exports.InvoicingRecordPaymentPage=t.InvoicingRecordPaymentPage;exports.InvoicingSettingsHubPage=t.InvoicingSettingsHubPage;exports.InvoicingSettingsPage=t.InvoicingSettingsHubPage;exports.InvoicingSubscriptionDetailPage=t.InvoicingSubscriptionDetailPage;exports.InvoicingSubscriptionFormPage=t.InvoicingSubscriptionFormPage;exports.InvoicingSubscriptionListPage=t.InvoicingSubscriptionListPage;exports.InvoicingTransactionDetailPage=t.InvoicingTransactionDetailPage;exports.InvoicingVoidInvoiceDialog=t.InvoicingVoidInvoiceDialog;exports.IssueChargeCardPage=t.IssueChargeCardPage;exports.IssueChargeCardPageSkeleton=t.IssueChargeCardPageSkeleton;exports.JEOneTimeAccrualDetailPage=t.JEOneTimeAccrualDetailPage;exports.JEOneTimeAccrualLinkedEntriesButton=t.JEOneTimeAccrualLinkedEntriesButton;exports.LinkBillExpensePage=t.LinkBillExpensePage;exports.LinkJETransactionPage=t.LinkJETransactionPage;exports.Loader=t.Loader;exports.LogoutButton=t.LogoutButton;exports.MCC_CHIP_ID_PREFIX=t.MCC_CHIP_ID_PREFIX;exports.MEETING_LINK_DEFAULTS=t.MEETING_LINK_DEFAULTS;exports.MagicLinkDomesticWireDetailsPage=t.MagicLinkDomesticWireDetailsPage;exports.MagicLinkInternationalWireDetailsPage=t.MagicLinkInternationalWireDetailsPage;exports.MagicLinkSuccessPage=t.MagicLinkSuccessPage;exports.MagicLinkVendorACHDetailsPage=t.MagicLinkVendorACHDetailsPage;exports.Modal=t.Modal;exports.MonthEndEmailDrawerCustomerRequestPage=t.MonthEndEmailDrawerCustomerRequestPage;exports.MyBankConnectionsSettingsPage=t.MyBankConnectionsSettingsPage;exports.MyPendingActivationChargeCardListPage=t.MyPendingActivationChargeCardListPage;exports.MyProfileSettingsPage=t.MyProfileSettingsPage;exports.NavBar=t.NavBar;exports.NavBarRightRowStyled=t.NavBarRightRowStyled;exports.NewGlobalMerchantPage=t.NewGlobalMerchantPage;exports.NewUpdateAvailablePage=t.NewUpdateAvailablePage;exports.NotFoundPage=t.NotFoundPage;exports.NotificationIcon=t.SvgNotification;exports.NotificationSettingsPage=t.NotificationSettingsPage;exports.NotificationsPage=t.NotificationsPage;exports.OAuthConsentPage=t.OAuthConsentPage;exports.OnboardingInitialLoader=t.OnboardingInitialLoader;exports.OnboardingSidebar=t.OnboardingSidebar;exports.OnboardingStepFrame=t.OnboardingStepFrame;exports.OpExByVendorPage=t.OpExByVendorPage;exports.OverlayContainerPage=t.OverlayContainerPage;exports.PandLWithForecastPage=t.PandLWithForecastPage;exports.PanelDirtyGuardContext=t.PanelDirtyGuardContext;exports.PanelInternalContext=t.PanelInternalContext;exports.PaymentAccountSetupBillingAddressSection=t.PaymentAccountSetupBillingAddressSection;exports.PeoplePage=t.PeoplePage;exports.Picker=t.Picker;exports.PolicyLimitsRowList=t.PolicyLimitsRowList;exports.PolicyModeSelector=t.PolicyModeSelector;exports.PortfolioAllocationFormPage=t.PortfolioAllocationFormPage;exports.QBOConnectionDialog=t.QBOConnectionDialog;exports.QBOSetupSectionWithForm=t.QBOSetupSectionWithForm;exports.QuickResponsesPage=t.QuickResponsesPage;exports.QuickViewModeContext=t.QuickViewModeContext;exports.RIGHT_SIDE_PANEL_WIDTH_PX=t.RIGHT_SIDE_PANEL_WIDTH_PX;exports.RecommendationFeedbackPopup=t.RecommendationFeedbackPopup;exports.ReconciliationReportPage=t.ReconciliationReportPage;exports.ReferralDrawerPage=t.DrawerPage;exports.ReimbursementApprovalRuleDetailPage=t.ReimbursementApprovalRuleDetailPage;exports.ReimbursementApprovalRuleDetailPageV1=t.ReimbursementApprovalRuleDetailPage$1;exports.ReimbursementApprovalRulesPage=t.ReimbursementApprovalRulesPage;exports.ReimbursementApprovalRulesPageV1=t.ReimbursementApprovalRulesPage$1;exports.ReimbursementDetailPage=t.ReimbursementDetailPage;exports.ReimbursementDetailPageSkeleton=t.ReimbursementDetailPageSkeleton;exports.ReimbursementPromoPage=t.ReimbursementPromoPage;exports.ReimbursementSetUpLoading=t.SpendManagementSetUpLoading;exports.ReimbursementSetUpPage=t.RemiSetupPage;exports.RemisBulkReviewDrawerPage=t.ReimbursementsBulkReviewDrawerPage;exports.ReportsPage=t.ReportsPage;exports.ResponsiveSized=t.ResponsiveSized;exports.ReviewBillDetailsPage=t.ReviewBillDetailsPage;exports.ReviewConfirmTransferPanel=t.ReviewConfirmTransferPanel;exports.ReviewDetailsPageSkeleton=t.ReviewDetailsPageSkeleton;exports.SUPPORTED_CREATE_TRANSACTION_TYPES=t.SUPPORTED_CREATE_TRANSACTION_TYPES;exports.ScheduleDetailSkeleton=t.ScheduleDetailSkeleton;exports.ScheduleDetailsAccruedExpensesPage=t.ScheduleDetailsAccruedExpensesPage;exports.ScheduleDetailsFixedAssetsPage=t.ScheduleDetailsFixedAssetsPage;exports.ScheduleDetailsPage=t.ScheduleDetailsPage;exports.SearchableCheckboxCardList=t.SearchableCheckboxCardList;exports.SessionTimeoutPopup=t.SessionTimeoutPopup;exports.SidePanelContext=t.SidePanelContext;exports.SidePanelLayout=t.SidePanelLayout;exports.SidePanelProvider=t.SidePanelProvider;exports.SignIn=t.SignIn;exports.SomethingWrongPage=t.SomethingWrongPage;exports.Space=t.Space;exports.SpendManagementListLoading=t.SpendManagementListLoading;exports.SpendManagementListViewPage=t.SpendManagementListViewPage;exports.StatementParseInfo=t.StatementParseInfoEntry;exports.StatementProcessingPage=t.StatementProcessingPage;exports.StatementsPage=t.StatementsPage;exports.StyledCapsule=t.StyledCapsule;exports.SubscriptionDetailPage=t.SubscriptionDetailPage;exports.SubscriptionSummaryPage=t.SubscriptionSummaryPage;exports.SyntheticAiCfoAnswerView=t.SyntheticAiCfoAnswerView;exports.THREAD_RESOLVED_NOTIFICATION_KIND=t.THREAD_RESOLVED_NOTIFICATION_KIND;exports.THREAD_UNRESOLVED_NOTIFICATION_KIND=t.THREAD_UNRESOLVED_NOTIFICATION_KIND;exports.TaskDetailPage=t.TaskDetailPage;exports.TaskManagementPage=t.TaskManagementPage;exports.TenantsDropDown=t.TenantsDropDown;exports.TextStyle=t.TextStyle;exports.ToolkitProvider=t.ToolkitProvider;exports.TopExDetailPage=t.TopExDetailPage;exports.TransactionActivityLogPage=t.TransactionActivityLogPage;exports.TransactionActivityLogPanel=t.TransactionActivityLogPanel;exports.TransactionDetailPage=t.TransactionDetailPage;exports.TransactionDetailSkeleton=t.TransactionDetailSkeleton;exports.TransactionListBig=t.TransactionListBig;exports.TransactionListComments=t.TransactionListComments;exports.TransactionListPage=t.TransactionListPage;exports.TransactionVendorDetailPage=t.TransactionVendorDetailPage;exports.TransferDrawerPage=t.TransferDrawerPage;exports.TreasuryOverviewPage=t.TreasuryOverviewPage;exports.TreasuryPromoPage=t.TreasuryPromoPage;exports.TreasurySetUpPage=t.TreasurySetUpPage;exports.TreasuryStatementsPage=t.TreasuryStatementsPage;exports.TreasuryTaxLetterPage=t.TreasuryTaxLetterPage;exports.TreasuryTransferOrReviewPage=t.TreasuryTransferOrReviewPage;exports.TrendChart=t.TrendChart;exports.UncategorizedAccountsMappingPage=t.UncategorizedAccountsMappingPage;exports.UnitIntegrationPage=t.UnitIntegrationPage;exports.VENDOR_CHIP_ID_PREFIX=t.VENDOR_CHIP_ID_PREFIX;exports.Vendor2FAPopup=t.Vendor2FAPopup;exports.VendorACHDetailsPage=t.VendorACHDetailsPage;exports.VendorAccruedSchedulesPage=t.VendorAccruedSchedulesPage;exports.VendorDetailPage=t.VendorDetailPage;exports.VendorDomesticWireDetailsPage=t.VendorDomesticWireDetailsPage;exports.VendorFiling1099DetailsEditablePage=t.VendorFiling1099DetailsEditablePage;exports.VendorFiling1099EditableFormSkeleton=t.VendorFiling1099EditableFormSkeleton;exports.VendorFiling1099ListPage=t.VendorFiling1099ListPage;exports.VendorFirstReviewPage=t.VendorFirstReviewPage;exports.VendorInternationalSwiftBasedDetailsPage=t.VendorInternationalSwiftBasedDetailsPage;exports.VendorInternationalWireDetailsPage=t.VendorInternationalWireDetailsPage;exports.VendorListPage=t.VendorListPage;exports.VendorSchedulesPage=t.VendorSchedulesPage;exports.VerificationFrame=t.VerificationFrame;exports.VerifyDevice=t.VerifyDevice;exports.VerifyUnlockFinancialStackPage=t.VerifyUnlockFinancialStackPage;exports.WebV2MicroService=t.WebV2MicroService;exports.WebV2MicroServiceProvider=t.WebV2MicroServiceProvider;exports.WelcomeAnimation=t.WelcomeAnimation;exports.WindowSizeProvider=t.WindowSizeProvider;exports.ZeniAccountDetailLoading=t.ZeniAccountDetailLoading;exports.ZeniAccountDetailNavBarTitleShimmer=t.ZeniAccountDetailNavBarTitleShimmer;exports.ZeniAccountDetailPage=t.ZeniAccountDetailPage;exports.ZeniAccountListLoading=t.ZeniAccountListLoading;exports.ZeniAccountListViewPage=t.ZeniAccountListViewPage;exports.ZeniAccountPromoPage=t.ZeniAccountPromoPage;exports.ZeniAccountSetUpPage=t.ZeniAccountSetUpPage;exports.ZeniText=t.ZeniText;exports.ZeniThemeProvider=t.ZeniThemeProvider;exports.alignToJustify=t.alignToJustify;exports.amountToString=t.amountToString;exports.amountValueToString=t.amountValueToString;exports.appLocale=t.appLocale;exports.applyExtractedPolicyRulesToFormValues=t.applyExtractedPolicyRulesToFormValues;exports.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm=t.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm;exports.buildCardPolicyFormValuesFromRequest=t.buildCardPolicyFormValuesFromRequest;exports.buildCreateCardPolicyTemplateRequest=t.buildCreateCardPolicyTemplateRequest;exports.buildCreateCardPolicyTemplateRequestFromInteractiveForm=t.buildCreateCardPolicyTemplateRequestFromInteractiveForm;exports.buildMccCategoryChipId=t.buildMccCategoryChipId;exports.buildStickyKeySet=t.buildStickyKeySet;exports.buildVendorChipId=t.buildVendorChipId;exports.cellVerticalAlignToFlexAlign=t.cellVerticalAlignToFlexAlign;exports.clearAutoLogoutContext=t.clearAutoLogoutContext;exports.clickableRowStyles=t.clickableRowStyles;exports.computeRecommendationSelectionFeedback=t.computeRecommendationSelectionFeedback;exports.computeStatementProcessingStepsFromElapsedTime=t.computeStatementProcessingStepsFromElapsedTime;exports.computeStickyLeftOffsets=t.computeStickyLeftOffsets;exports.darkColors=t.darkColors;exports.darkTheme=t.darkTheme;exports.dashboardCardDimension=t.designDimension;exports.defaultCardPolicyFormValues=t.defaultCardPolicyFormValues;exports.describeSchedule=t.describeSchedule;exports.formatReconAccountDisplayName=t.formatReconAccountDisplayName;exports.getAlpha2=t.getAlpha2;exports.getAlpha3=t.getAlpha3;exports.getColorForALabel=t.getColorForALabel;exports.getCountries=t.getCountries;exports.getCreateTransactionFieldConfig=t.getCreateTransactionFieldConfig;exports.getCustomerDataFromAutoComplete=t.getCustomerDataFromAutoComplete;exports.getCustomerRevenueLabel=t.getCustomerRevenueLabel;exports.getFullName=t.getFullName;exports.getInitialOpenThreadRequestFromSearch=t.getInitialOpenThreadRequestFromSearch;exports.getRecipientTotalAmount=t.getRecipientTotalAmount;exports.getReconAccountDisplayName=t.getReconAccountDisplayName;exports.getShowNegativeAmountInParenthesisDefaultValue=t.getShowNegativeAmountInParenthesisDefaultValue;exports.getShowNegativeAmountInParenthesisForPercentDefaultValue=t.getShowNegativeAmountInParenthesisForPercentDefaultValue;exports.getStableTransactionId=t.getStableTransactionId;exports.getStatementParseTransactionCount=t.getStatementParseTransactionCount;exports.getTransactionAppliedFiltersCount=t.getTransactionAppliedFiltersCount;exports.invoicingMenuList=t.invoicingMenuList;exports.isCloseManagementMenu=t.isCloseManagementMenu;exports.isClosedCardStatus=t.isClosedCardStatus;exports.isCollaborationEntityType=t.isCollaborationEntityType;exports.isCommentNotificationKind=t.isCommentNotificationKind;exports.isMobileOrTabletView=t.isMobileOrTabletView;exports.isMobilePhoneScreen=t.isMobilePhoneScreen;exports.isRecommendationFeedbackDimension=t.isRecommendationFeedbackDimension;exports.lightColors=t.lightColors;exports.lightTheme=t.lightTheme;exports.menuList=t.menuList;exports.mergeColumnDeclarativeWithRenderers=t.mergeColumnDeclarativeWithRenderers;exports.mergeLayoutDefaults=t.mergeLayoutDefaults;exports.percentValueToString=t.percentValueToString;exports.resolveBackgroundStatementProcessingCompletedSteps=t.resolveBackgroundStatementProcessingCompletedSteps;exports.resolveColumnWidth=t.resolveColumnWidth;exports.roundAmountIfNeeded=t.roundAmountIfNeeded;exports.roundOffNumberToTwoDecimal=t.roundOffNumberToTwoDecimal;exports.routineIdFromSession=t.routineIdFromSession;exports.setAutoLogoutContext=t.setAutoLogoutContext;exports.setShowNegativeAmountInParenthesisDefaultValue=t.setShowNegativeAmountInParenthesisDefaultValue;exports.setShowNegativeAmountInParenthesisForPercentDefaultValue=t.setShowNegativeAmountInParenthesisForPercentDefaultValue;exports.settingMenuList=t.settingMenuList;exports.shortCadence=t.shortCadence;exports.sp=t.sp;exports.textAlignForCell=t.textAlignForCell;exports.textStyles=t.textStyles;exports.toGroupedAccountingClassOptions=t.toGroupedAccountingClassOptions;exports.toGroupedQboAccountOptions=t.toGroupedQboAccountOptions;exports.toInstitutionLogoDataUri=t.toInstitutionLogoDataUri;exports.toInvoicingMenuOptionType=t.toInvoicingMenuOptionType;exports.toInvoicingMenuOptionTypeStrict=t.toInvoicingMenuOptionTypeStrict;exports.toMccCategoryChipFieldValue=t.toMccCategoryChipFieldValue;exports.toMenuOptionType=t.toMenuOptionType;exports.toSettingsMenuOptionTypeStrict=t.toSettingsMenuOptionTypeStrict;exports.toSupportedLocaleStrict=t.toSupportedLocaleStrict;exports.toVendorChipFieldValue=t.toVendorChipFieldValue;exports.trackTreasuryTransferAnalytics=t.trackTreasuryTransferAnalytics;exports.uploadAttachmentReceipts=t.uploadAttachmentReceipts;exports.useApprovalRulesV3Config=t.useApprovalRulesV3Config;exports.useBackNavigation=t.useBackNavigation;exports.useCollaborationInfoContext=t.useCollaborationInfoContext;exports.useCommentsDrawer=t.useCommentsDrawer;exports.useDropdownPortal=t.useDropdownPortal;exports.useExpenseAutomationEnabledForUser=t.useExpenseAutomationEnabledForUser;exports.useFieldHelp=t.useFieldHelp;exports.useGlobalInfoContext=t.useGlobalInfoContext;exports.useIsCreateTransactionTypeAllowed=t.useIsCreateTransactionTypeAllowed;exports.useIsFeatureGateLoading=t.useIsFeatureGateLoading;exports.useLockBodyScroll=t.useLockBodyScroll;exports.useMeetingLinks=t.useMeetingLinks;exports.usePanelDirtyGuardRegistry=t.usePanelDirtyGuardRegistry;exports.usePanelInternal=t.usePanelInternal;exports.usePrevious=t.usePrevious;exports.useQuickViewMode=t.useQuickViewMode;exports.useRegisterBackHandler=t.useRegisterBackHandler;exports.useRegisterPanelDirtyGuard=t.useRegisterPanelDirtyGuard;exports.useRequestCloseAllCommentDrawers=t.useRequestCloseAllCommentDrawers;exports.useSessionAutoLogoutConfig=t.useSessionAutoLogoutConfig;exports.useSidePanelContext=t.useSidePanelContext;exports.useToolkitContext=t.useToolkitContext;exports.useWindowSizeContext=t.useWindowSizeContext;exports.useZeniCardsVisibilityConfig=t.useZeniCardsVisibilityConfig;exports.useZeniFeatureContext=t.useZeniFeatureContext;exports.useZeniThemeContext=t.useZeniThemeContext;exports.waitFor=t.waitFor;exports.zeniEmotionStyled=s;Object.defineProperty(exports,"buildInvoicingEntityPath",{enumerable:!0,get:()=>J.buildInvoicingEntityPath});Object.defineProperty(exports,"isInvoicingEntityLinkable",{enumerable:!0,get:()=>J.isInvoicingEntityLinkable});Object.defineProperty(exports,"useZeniTheme",{enumerable:!0,get:()=>Ae.useTheme});Object.defineProperty(exports,"zeniStyled",{enumerable:!0,get:()=>Ae.styled});exports.AiAccountantDetailDrawer=s3;exports.AiAccountantPage=Ij;exports.AuditReportDrawerPage=rw;exports.COCKPIT_TAB_OPTIONS=Ct;exports.COCKPIT_TAB_OPTIONS_WITH_CREDIT_AGENT=Lc;exports.CockpitNavBar=pd;exports.CreditAgentPage=v6;exports.HealthMonitorDetailDrawer=AS;exports.HealthMonitorPage=pf;exports.ManagementPage=yg;exports.MonthEndReportHistoricDataPage=xE;exports.MonthEndReportPage=K$;exports.NavHeader=Tt;exports.OnboardingCustomerPage=OR;exports.OnboardingPage=R4;exports.PortfolioPage=NC;exports.ReviewPage=O5;exports.SubscriptionAddPlanPage=k2;exports.SubscriptionPage=A0;exports.SubscriptionUpdatePlanPage=s2;exports.TaskManagerPage=Jg;exports.WarningsDrawerPage=$w;exports.toCockpitOptionType=Zt;exports.toCockpitOptionTypeStrict=ud;
5805
+ `;exports.AIAgentsActivatingPage=t.AIAgentsActivatingPage;exports.AIIconButton=t.AIIconButton;exports.AIPerformancePage=t.AIPerformancePage;exports.ALL_AI_CFO_MENU_OPTIONS=t.ALL_AI_CFO_MENU_OPTIONS;exports.ALL_INVOICING_MENU_GROUPS=t.ALL_INVOICING_MENU_GROUPS;exports.ALL_INVOICING_MENU_OPTIONS=t.ALL_INVOICING_MENU_OPTIONS;exports.ALL_SETTINGS_MENU_OPTIONS=t.ALL_SETTINGS_MENU_OPTIONS;exports.APP_DRAWER_CONTENT_WIDTH_PX=t.APP_DRAWER_CONTENT_WIDTH_PX;exports.AccountInfoPage=t.AccountInfoPage;exports.AccountLockedInfoModal=t.AccountLockedInfoModal;exports.AccountReconDetailsDrawerPage=t.AccountReconDetailsDrawerPage;exports.AccountReconDetailsDrawerPageV2=t.AccountReconDetailsDrawerPage$1;exports.ActivityIndicator=t.ActivityIndicator;exports.ActualMatchingMatchDetailPage=t.ActualMatchingMatchDetailPage;exports.AddAddressForCardDrawer=t.AddAddressForCardDrawer;exports.AddToWalletPage=t.AddToWalletPage;exports.AddressFormPage=t.AddressFormPage;exports.AgingReportsPage=t.AgingReportsPage;exports.AiCfoChatHeader=t.AiCfoChatHeader;exports.AiCfoMenuContent=t.AiCfoMenuContent;exports.AiCfoOnboardingPage=t.AiCfoOnboardingPage;exports.AiCfoPage=t.AiCfoPage;exports.AiCfoScopeModal=t.AiCfoScopeModal;exports.AiCfoScopeModalScrollBody=t.AiCfoScopeModalScrollBody;exports.AiCfoSidePanel=t.AiCfoSidePanel;exports.AiCfoSkillsBrowser=t.AiCfoSkillsBrowser;exports.AiFinanceTeamReadyPage=t.AiFinanceTeamReadyPage;exports.AllowBlockChipPicker=t.AllowBlockChipPicker;exports.AnalyticsOnLoad=t.AnalyticsOnLoad;exports.ApAgingDetailPage=t.ApAgingDetailPage;exports.AppBasePage=t.AppBasePage;exports.AppDrawerContent=t.AppDrawerContent;exports.AppDrawerHeightMobile=t.AppDrawerHeightMobile;exports.ApprovalRulesSettingsPage=t.ApprovalRulesSettingsPage;exports.ArAgingDetailPage=t.ArAgingDetailPage;exports.AskAiCfoNavButton=t.AskAiCfoNavButton;exports.AskAiCfoNavButtonWhenEnabled=t.AskAiCfoNavButtonWhenEnabled;exports.AttachmentView=t.AttachmentView;exports.AutoTransferRulePage=t.AutoTransferRulePage;exports.BackNavigationProvider=t.BackNavigationProvider;exports.BankConnectionsSettingsPage=t.BankConnectionsSettingsPage;exports.BillDetailPage=t.BillDetailPage;exports.BillDetailPageSkeleton=t.BillDetailPageSkeleton;exports.BillPayApprovalRuleDetailPage=t.BillPayApprovalRuleDetailPage;exports.BillPayApprovalRuleDetailPageV1=t.BillPayApprovalRuleDetailPage$1;exports.BillPayApprovalRulesPage=t.BillPayApprovalRulesPage;exports.BillPayApprovalRulesPageV1=t.BillPayApprovalRulesPage$1;exports.BillPayPromoPage=t.BillPayPromoPage;exports.BillPaySetUpLoading=t.SpendManagementSetUpLoading;exports.BillPaySetUpPage=t.BillPaySetUpPage;exports.BillingSettingsPage=t.BillingSettingsPage;exports.BillsBulkReviewDrawerPage=t.BillsBulkReviewDrawerPage;exports.BusinessVerificationPage=t.BusinessVerificationPage;exports.ButtonWithDropDown=t.ButtonWithDropDown;exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT=t.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT;exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION=t.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION;exports.COMMAND_CENTER_SUBMENU_TYPES=t.COMMAND_CENTER_SUBMENU_TYPES;exports.COMMENT_NOTIFICATION_KINDS=t.COMMENT_NOTIFICATION_KINDS;exports.CapitalizationOnboardingPopup=t.CapitalizationOnboardingPopup;exports.CapitalizationSettingsSection=t.CapitalizationSettingsSection;exports.CardPolicyCreatePage=t.CardPolicyCreatePage;exports.CardPolicyEditPage=t.CardPolicyEditPage;exports.CardPolicyFormPageSkeleton=t.CardPolicyFormPageSkeleton;exports.CardPolicyFormSections=t.CardPolicyFormSections;exports.CardPolicyListPage=t.CardPolicyListPage;exports.CardPolicyListPageSkeleton=t.CardPolicyListPageSkeleton;exports.CardPolicyListRow=t.CardPolicyListRow;exports.CardPolicyListSkeletonRow=t.CardPolicyListSkeletonRow;exports.CardPolicyManualEmptyState=t.CardPolicyManualEmptyState;exports.CardsAiCfoHero=t.CardsAiCfoHero;exports.CardsShutdownBanner=t.CardsShutdownBanner;exports.CashbackDetailLoading=t.CashbackDetailLoading;exports.CashbackDetailPage=t.CashbackDetailPage;exports.ChargeCardCVVActivate=t.ChargeCardCVVActivate;exports.ChargeCardDetailLoading=t.ChargeCardDetailLoading;exports.ChargeCardDetailPage=t.ChargeCardDetailPage;exports.ChargeCardListLoading=t.ChargeCardListLoading;exports.ChargeCardListPage=t.ChargeCardListPage;exports.ChargeCardListSkeletonRow=t.ChargeCardListSkeletonRow;exports.ChargeCardPaymentHistoryPage=t.ChargeCardPaymentHistoryPage;exports.ChargeCardPromoPage=t.ChargeCardPromoPage;exports.ChargeCardPromoPageSkeleton=t.ChargeCardPromoPageSkeleton;exports.ChargeCardSetUpPage=t.ChargeCardSetUpPage;exports.ChargeCardSetupLoading=t.SpendManagementSetUpLoading;exports.ChargeCardStatementsLoading=t.ChargeCardStatementsLoading;exports.ChargeCardStatementsPage=t.ChargeCardStatementsPage;exports.ChargeCardUserOnboardingPromoPage=t.ChargeCardUserOnboardingPromoPage;exports.ChargeCardUserOnboardingPromoPageSkeleton=t.ChargeCardUserOnboardingPromoPageSkeleton;exports.CheckDepositDrawerPage=t.CheckDepositDrawerPage;exports.ClickableRow=t.ClickableRow;exports.CollaborationGlobalStyles=t.CollaborationGlobalStyles;exports.CollaborationProvider=t.CollaborationProvider;exports.CollaborationRoomProvider=t.CollaborationRoomProvider;exports.Colors=t.Colors;exports.CommentsAndNotesCount=t.CommentsAndNotesCount;exports.CommentsDrawerProvider=t.CommentsDrawerProvider;exports.CompanyOfficerOnboardingDetailsSection=t.CompanyOfficerOnboardingDetailsSection;exports.CompanyOnboardingDetailsSection=t.CompanyOnboardingDetailsSection;exports.CompanyPassportCard=t.CompanyPassportCard;exports.CompanyPassportPage=t.CompanyPassportPage;exports.CompleteProfile=t.CompleteProfile;exports.ConfettiBurst=t.ConfettiBurst;exports.ConfirmationPopup=t.ConfirmationPopup;exports.ConnectDataSourcesPage=t.ConnectDataSourcesPage;exports.CreateOrEditVendorPage=t.CreateOrEditVendorPage;exports.CreateOrEditVendorPageSkeleton=t.CreateOrEditVendorPageSkeleton;exports.CreateTransactionButton=t.CreateTransactionButton;exports.CreateTransactionPage=t.CreateTransactionPage;exports.CreatedEntitiesAnswer=t.CreatedEntitiesAnswer;exports.CreatingEntitiesAnswerLoading=t.CreatingEntitiesAnswerLoading;exports.CreditCardPaymentDrawerPage=t.CreditCardPaymentDrawerPage;exports.CustomerDetailPage=t.CustomerDetailPage;exports.CustomerListPage=t.CustomerListPage;exports.CustomerOnboardingContainerPage=t.CustomerOnboardingContainerPage;exports.CustomerOnboardingNoStepsPage=t.CustomerOnboardingNoStepsPage;exports.CustomerOnboardingPage=t.CustomerOnboardingPage;exports.CustomerOnboardingProductSuitePage=t.CustomerOnboardingProductSuitePage;exports.Dashboard=t.Dashboard;exports.DashboardHalloweenBatsAnimation=t.DashboardHalloweenBatsAnimation;exports.DashboardReportPage=t.DashboardReportPage;exports.DashboardSidebarLogoAnimation=t.DashboardSidebarLogoAnimation;exports.DataListTable=t.DataListTable;exports.DataListTableHeader=t.DataListTableHeader;exports.DataListTableRow=t.DataListTableRow;exports.DataListTableSortIndicator=t.DataListTableSortIndicator;exports.DebitCardSetPin=t.DebitCardSetPin;exports.DropdownPortalContext=t.DropdownPortalContext;exports.EditPeoplePage=t.EditPeoplePage;exports.EditReimbursementDetailPage=t.EditReimbursementDetailPage;exports.EditableBillDetailPage=t.EditableBillDetailPage;exports.EntityDetailPage=t.EntityDetailPage;exports.ErrorBoundaryWrapper=t.ErrorBoundaryWrapper;exports.ExcludedAccountReconDetailsDrawerPage=t.ExcludedAccountReconDetailsDrawerPage;exports.ExpenseAutomationOverviewPage=t.ExpenseAutomationOverviewPage;exports.ExpenseAutomationOverviewPageSkeleton=t.ExpenseAutomationOverviewPageSkeleton;exports.ExpenseAutomationPage=t.ExpenseAutomationPage;exports.ExpressPayPage=t.ExpressPayPage;exports.FeatureDynamicConfigNames=t.DynamicConfigNames;exports.FeatureGatesNames=t.FeatureGatesNames;exports.FeaturePreviewPage=t.FeaturePreviewPage;exports.FeatureProvider=t.FeatureProvider;exports.FieldHelpIcon=t.FieldHelpIcon;exports.FieldHelpProvider=t.FieldHelpProvider;exports.FirstReviewVendorDetailPage=t.FirstReviewVendorDetailPage;exports.FontWeight=t.FontWeight;exports.GlobalInfoProvider=t.GlobalInfoProvider;exports.GlobalReviewListPage=t.GlobalReviewListPage;exports.INVOICING_SETTINGS_NAV_SECTIONS=t.INVOICING_SETTINGS_NAV_SECTIONS;exports.INVOICING_SETTINGS_TABS=t.INVOICING_SETTINGS_TABS;exports.InformationCardStack=t.InformationCardStack;exports.InitialCollaborationProvider=t.InitialCollaborationProvider;exports.InsightsCardStack=t.InsightCardStack;exports.IntegrationCardView=t.IntegrationCardView;exports.IntegrationsCardGrid=t.IntegrationsCardGrid;exports.IntegrationsSection=t.IntegrationsSection;exports.IntegrationsSettingsPage=t.IntegrationsSettingsPage;exports.InternationalWireVerificationPage=t.InternationalWireVerificationPage;exports.InviteFormPage=t.InviteFormPage;exports.InvitePageListView=t.InvitePageListView;exports.InvitePeoplePage=t.InvitePeoplePage;exports.InvoiceUploadSection=t.InvoiceUploadSection;exports.InvoiceUploadSectionSkeleton=t.InvoiceUploadSectionSkeleton;exports.InvoicingAddPaymentMethodDialog=t.InvoicingAddPaymentMethodDialog;exports.InvoicingAuditLogPage=t.InvoicingAuditLogPage;exports.InvoicingBrandingSettingsPage=t.InvoicingBrandingSettingsPage;exports.InvoicingCatalogItemDetailPage=t.InvoicingCatalogItemDetailPage;exports.InvoicingCatalogItemFormPage=t.InvoicingCatalogItemFormPage;exports.InvoicingCatalogPage=t.InvoicingCatalogPage;exports.InvoicingCouponFormPage=t.InvoicingCouponFormPage;exports.InvoicingCreateInvoicePage=t.InvoicingCreateInvoicePage;exports.InvoicingCreateInvoiceSkeleton=t.InvoicingCreateInvoiceSkeleton;exports.InvoicingCreatePromotionalCreditsDialog=t.InvoicingCreatePromotionalCreditsDialog;exports.InvoicingCreditDetailPage=t.InvoicingCreditDetailPage;exports.InvoicingCreditListPage=t.InvoicingCreditListPage;exports.InvoicingCustomerDetailPage=t.InvoicingCustomerDetailPage;exports.InvoicingCustomerFormPage=t.InvoicingCustomerFormPage;exports.InvoicingCustomerListPage=t.InvoicingCustomerListPage;exports.InvoicingDashboardSkeleton=t.InvoicingDashboardSkeleton;exports.InvoicingDataImportDetailPage=t.InvoicingDataImportDetailPage;exports.InvoicingDataImportHubPage=t.InvoicingDataImportHubPage;exports.InvoicingDataImportMigratePage=t.InvoicingDataImportMigratePage;exports.InvoicingDetailScaffold=t.InvoicingDetailScaffold;exports.InvoicingDiscountDetailPage=t.InvoicingDiscountDetailPage;exports.InvoicingDiscountListPage=t.InvoicingDiscountListPage;exports.InvoicingDunningDetailPage=t.InvoicingDunningDetailPage;exports.InvoicingDunningEmailComposerDialog=t.InvoicingDunningEmailComposerDialog;exports.InvoicingDunningListPage=t.InvoicingDunningListPage;exports.InvoicingDunningSettingsPage=t.InvoicingDunningSettingsPage;exports.InvoicingEmptyState=t.InvoicingEmptyState;exports.InvoicingIntegrationsSettingsPage=t.InvoicingIntegrationsSettingsPage;exports.InvoicingInvoiceDetailPage=t.InvoicingInvoiceDetailPage;exports.InvoicingInvoiceListPage=t.InvoicingInvoiceListPage;exports.InvoicingIssueCreditNotePage=t.InvoicingIssueCreditNotePage;exports.InvoicingOverviewPage=t.InvoicingOverviewPage;exports.InvoicingPaymentDestinationSettingsPage=t.InvoicingPaymentDestinationSettingsPage;exports.InvoicingPaymentLinkEmailComposerDialog=t.InvoicingPaymentLinkEmailComposerDialog;exports.InvoicingPaymentLinkPage=t.InvoicingPaymentLinkPage;exports.InvoicingPaymentListPage=t.InvoicingPaymentListPage;exports.InvoicingPromoPage=t.InvoicingPromoPage;exports.InvoicingQBOSettingsPage=t.InvoicingQBOSettingsPage;exports.InvoicingRecordPaymentPage=t.InvoicingRecordPaymentPage;exports.InvoicingSettingsHubPage=t.InvoicingSettingsHubPage;exports.InvoicingSettingsPage=t.InvoicingSettingsHubPage;exports.InvoicingSubscriptionDetailPage=t.InvoicingSubscriptionDetailPage;exports.InvoicingSubscriptionFormPage=t.InvoicingSubscriptionFormPage;exports.InvoicingSubscriptionListPage=t.InvoicingSubscriptionListPage;exports.InvoicingTransactionDetailPage=t.InvoicingTransactionDetailPage;exports.InvoicingVoidInvoiceDialog=t.InvoicingVoidInvoiceDialog;exports.IssueChargeCardPage=t.IssueChargeCardPage;exports.IssueChargeCardPageSkeleton=t.IssueChargeCardPageSkeleton;exports.JEOneTimeAccrualDetailPage=t.JEOneTimeAccrualDetailPage;exports.JEOneTimeAccrualLinkedEntriesButton=t.JEOneTimeAccrualLinkedEntriesButton;exports.LinkBillExpensePage=t.LinkBillExpensePage;exports.LinkJETransactionPage=t.LinkJETransactionPage;exports.Loader=t.Loader;exports.LogoutButton=t.LogoutButton;exports.MCC_CHIP_ID_PREFIX=t.MCC_CHIP_ID_PREFIX;exports.MEETING_LINK_DEFAULTS=t.MEETING_LINK_DEFAULTS;exports.MagicLinkDomesticWireDetailsPage=t.MagicLinkDomesticWireDetailsPage;exports.MagicLinkInternationalWireDetailsPage=t.MagicLinkInternationalWireDetailsPage;exports.MagicLinkSuccessPage=t.MagicLinkSuccessPage;exports.MagicLinkVendorACHDetailsPage=t.MagicLinkVendorACHDetailsPage;exports.Modal=t.Modal;exports.MonthEndEmailDrawerCustomerRequestPage=t.MonthEndEmailDrawerCustomerRequestPage;exports.MyBankConnectionsSettingsPage=t.MyBankConnectionsSettingsPage;exports.MyPendingActivationChargeCardListPage=t.MyPendingActivationChargeCardListPage;exports.MyProfileSettingsPage=t.MyProfileSettingsPage;exports.NavBar=t.NavBar;exports.NavBarRightRowStyled=t.NavBarRightRowStyled;exports.NewGlobalMerchantPage=t.NewGlobalMerchantPage;exports.NewUpdateAvailablePage=t.NewUpdateAvailablePage;exports.NotFoundPage=t.NotFoundPage;exports.NotificationIcon=t.SvgNotification;exports.NotificationSettingsPage=t.NotificationSettingsPage;exports.NotificationsPage=t.NotificationsPage;exports.OAuthConsentPage=t.OAuthConsentPage;exports.OnboardingInitialLoader=t.OnboardingInitialLoader;exports.OnboardingSidebar=t.OnboardingSidebar;exports.OnboardingStepFrame=t.OnboardingStepFrame;exports.OpExByVendorPage=t.OpExByVendorPage;exports.OverlayContainerPage=t.OverlayContainerPage;exports.PandLWithForecastPage=t.PandLWithForecastPage;exports.PanelDirtyGuardContext=t.PanelDirtyGuardContext;exports.PanelInternalContext=t.PanelInternalContext;exports.PaymentAccountSetupBillingAddressSection=t.PaymentAccountSetupBillingAddressSection;exports.PeoplePage=t.PeoplePage;exports.Picker=t.Picker;exports.PolicyLimitsRowList=t.PolicyLimitsRowList;exports.PolicyModeSelector=t.PolicyModeSelector;exports.PortfolioAllocationFormPage=t.PortfolioAllocationFormPage;exports.QBOConnectionDialog=t.QBOConnectionDialog;exports.QBOSetupSectionWithForm=t.QBOSetupSectionWithForm;exports.QuickResponsesPage=t.QuickResponsesPage;exports.QuickViewModeContext=t.QuickViewModeContext;exports.RIGHT_SIDE_PANEL_WIDTH_PX=t.RIGHT_SIDE_PANEL_WIDTH_PX;exports.RecommendationFeedbackPopup=t.RecommendationFeedbackPopup;exports.ReconciliationReportPage=t.ReconciliationReportPage;exports.ReferralDrawerPage=t.DrawerPage;exports.ReimbursementApprovalRuleDetailPage=t.ReimbursementApprovalRuleDetailPage;exports.ReimbursementApprovalRuleDetailPageV1=t.ReimbursementApprovalRuleDetailPage$1;exports.ReimbursementApprovalRulesPage=t.ReimbursementApprovalRulesPage;exports.ReimbursementApprovalRulesPageV1=t.ReimbursementApprovalRulesPage$1;exports.ReimbursementDetailPage=t.ReimbursementDetailPage;exports.ReimbursementDetailPageSkeleton=t.ReimbursementDetailPageSkeleton;exports.ReimbursementPromoPage=t.ReimbursementPromoPage;exports.ReimbursementSetUpLoading=t.SpendManagementSetUpLoading;exports.ReimbursementSetUpPage=t.RemiSetupPage;exports.RemisBulkReviewDrawerPage=t.ReimbursementsBulkReviewDrawerPage;exports.ReportsPage=t.ReportsPage;exports.ResponsiveSized=t.ResponsiveSized;exports.ReviewBillDetailsPage=t.ReviewBillDetailsPage;exports.ReviewConfirmTransferPanel=t.ReviewConfirmTransferPanel;exports.ReviewDetailsPageSkeleton=t.ReviewDetailsPageSkeleton;exports.SUPPORTED_CREATE_TRANSACTION_TYPES=t.SUPPORTED_CREATE_TRANSACTION_TYPES;exports.ScheduleDetailSkeleton=t.ScheduleDetailSkeleton;exports.ScheduleDetailsAccruedExpensesPage=t.ScheduleDetailsAccruedExpensesPage;exports.ScheduleDetailsFixedAssetsPage=t.ScheduleDetailsFixedAssetsPage;exports.ScheduleDetailsPage=t.ScheduleDetailsPage;exports.SearchableCheckboxCardList=t.SearchableCheckboxCardList;exports.SessionTimeoutPopup=t.SessionTimeoutPopup;exports.SidePanelContext=t.SidePanelContext;exports.SidePanelLayout=t.SidePanelLayout;exports.SidePanelProvider=t.SidePanelProvider;exports.SignIn=t.SignIn;exports.SomethingWrongPage=t.SomethingWrongPage;exports.Space=t.Space;exports.SpendManagementListLoading=t.SpendManagementListLoading;exports.SpendManagementListViewPage=t.SpendManagementListViewPage;exports.StatementParseInfo=t.StatementParseInfoEntry;exports.StatementProcessingPage=t.StatementProcessingPage;exports.StatementsPage=t.StatementsPage;exports.StyledCapsule=t.StyledCapsule;exports.SubscriptionDetailPage=t.SubscriptionDetailPage;exports.SubscriptionSummaryPage=t.SubscriptionSummaryPage;exports.SyntheticAiCfoAnswerView=t.SyntheticAiCfoAnswerView;exports.THREAD_RESOLVED_NOTIFICATION_KIND=t.THREAD_RESOLVED_NOTIFICATION_KIND;exports.THREAD_UNRESOLVED_NOTIFICATION_KIND=t.THREAD_UNRESOLVED_NOTIFICATION_KIND;exports.TaskDetailPage=t.TaskDetailPage;exports.TaskManagementPage=t.TaskManagementPage;exports.TenantsDropDown=t.TenantsDropDown;exports.TextStyle=t.TextStyle;exports.ToolkitProvider=t.ToolkitProvider;exports.TopExDetailPage=t.TopExDetailPage;exports.TransactionActivityLogPage=t.TransactionActivityLogPage;exports.TransactionActivityLogPanel=t.TransactionActivityLogPanel;exports.TransactionDetailPage=t.TransactionDetailPage;exports.TransactionDetailSkeleton=t.TransactionDetailSkeleton;exports.TransactionListBig=t.TransactionListBig;exports.TransactionListComments=t.TransactionListComments;exports.TransactionListPage=t.TransactionListPage;exports.TransactionVendorDetailPage=t.TransactionVendorDetailPage;exports.TransferDrawerPage=t.TransferDrawerPage;exports.TreasuryOverviewPage=t.TreasuryOverviewPage;exports.TreasuryPromoPage=t.TreasuryPromoPage;exports.TreasurySetUpPage=t.TreasurySetUpPage;exports.TreasuryStatementsPage=t.TreasuryStatementsPage;exports.TreasuryTaxLetterPage=t.TreasuryTaxLetterPage;exports.TreasuryTransferOrReviewPage=t.TreasuryTransferOrReviewPage;exports.TrendChart=t.TrendChart;exports.UncategorizedAccountsMappingPage=t.UncategorizedAccountsMappingPage;exports.UnitIntegrationPage=t.UnitIntegrationPage;exports.VENDOR_CHIP_ID_PREFIX=t.VENDOR_CHIP_ID_PREFIX;exports.Vendor2FAPopup=t.Vendor2FAPopup;exports.VendorACHDetailsPage=t.VendorACHDetailsPage;exports.VendorAccruedSchedulesPage=t.VendorAccruedSchedulesPage;exports.VendorDetailPage=t.VendorDetailPage;exports.VendorDomesticWireDetailsPage=t.VendorDomesticWireDetailsPage;exports.VendorFiling1099DetailsEditablePage=t.VendorFiling1099DetailsEditablePage;exports.VendorFiling1099EditableFormSkeleton=t.VendorFiling1099EditableFormSkeleton;exports.VendorFiling1099ListPage=t.VendorFiling1099ListPage;exports.VendorFirstReviewPage=t.VendorFirstReviewPage;exports.VendorInternationalSwiftBasedDetailsPage=t.VendorInternationalSwiftBasedDetailsPage;exports.VendorInternationalWireDetailsPage=t.VendorInternationalWireDetailsPage;exports.VendorListPage=t.VendorListPage;exports.VendorSchedulesPage=t.VendorSchedulesPage;exports.VerificationFrame=t.VerificationFrame;exports.VerifyDevice=t.VerifyDevice;exports.VerifyUnlockFinancialStackPage=t.VerifyUnlockFinancialStackPage;exports.WebV2MicroService=t.WebV2MicroService;exports.WebV2MicroServiceProvider=t.WebV2MicroServiceProvider;exports.WelcomeAnimation=t.WelcomeAnimation;exports.WindowSizeProvider=t.WindowSizeProvider;exports.ZeniAccountDetailLoading=t.ZeniAccountDetailLoading;exports.ZeniAccountDetailNavBarTitleShimmer=t.ZeniAccountDetailNavBarTitleShimmer;exports.ZeniAccountDetailPage=t.ZeniAccountDetailPage;exports.ZeniAccountListLoading=t.ZeniAccountListLoading;exports.ZeniAccountListViewPage=t.ZeniAccountListViewPage;exports.ZeniAccountPromoPage=t.ZeniAccountPromoPage;exports.ZeniAccountSetUpPage=t.ZeniAccountSetUpPage;exports.ZeniText=t.ZeniText;exports.ZeniThemeProvider=t.ZeniThemeProvider;exports.alignToJustify=t.alignToJustify;exports.amountToString=t.amountToString;exports.amountValueToString=t.amountValueToString;exports.appLocale=t.appLocale;exports.applyExtractedPolicyRulesToFormValues=t.applyExtractedPolicyRulesToFormValues;exports.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm=t.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm;exports.buildCardPolicyFormValuesFromRequest=t.buildCardPolicyFormValuesFromRequest;exports.buildCreateCardPolicyTemplateRequest=t.buildCreateCardPolicyTemplateRequest;exports.buildCreateCardPolicyTemplateRequestFromInteractiveForm=t.buildCreateCardPolicyTemplateRequestFromInteractiveForm;exports.buildMccCategoryChipId=t.buildMccCategoryChipId;exports.buildStickyKeySet=t.buildStickyKeySet;exports.buildVendorChipId=t.buildVendorChipId;exports.cellVerticalAlignToFlexAlign=t.cellVerticalAlignToFlexAlign;exports.clearAutoLogoutContext=t.clearAutoLogoutContext;exports.clickableRowStyles=t.clickableRowStyles;exports.computeRecommendationSelectionFeedback=t.computeRecommendationSelectionFeedback;exports.computeStatementProcessingStepsFromElapsedTime=t.computeStatementProcessingStepsFromElapsedTime;exports.computeStickyLeftOffsets=t.computeStickyLeftOffsets;exports.darkColors=t.darkColors;exports.darkTheme=t.darkTheme;exports.dashboardCardDimension=t.designDimension;exports.defaultCardPolicyFormValues=t.defaultCardPolicyFormValues;exports.describeSchedule=t.describeSchedule;exports.formatReconAccountDisplayName=t.formatReconAccountDisplayName;exports.getAlpha2=t.getAlpha2;exports.getAlpha3=t.getAlpha3;exports.getColorForALabel=t.getColorForALabel;exports.getCountries=t.getCountries;exports.getCreateTransactionFieldConfig=t.getCreateTransactionFieldConfig;exports.getCustomerDataFromAutoComplete=t.getCustomerDataFromAutoComplete;exports.getCustomerRevenueLabel=t.getCustomerRevenueLabel;exports.getFullName=t.getFullName;exports.getInitialOpenThreadRequestFromSearch=t.getInitialOpenThreadRequestFromSearch;exports.getRecipientTotalAmount=t.getRecipientTotalAmount;exports.getReconAccountDisplayName=t.getReconAccountDisplayName;exports.getShowNegativeAmountInParenthesisDefaultValue=t.getShowNegativeAmountInParenthesisDefaultValue;exports.getShowNegativeAmountInParenthesisForPercentDefaultValue=t.getShowNegativeAmountInParenthesisForPercentDefaultValue;exports.getStableTransactionId=t.getStableTransactionId;exports.getStatementParseTransactionCount=t.getStatementParseTransactionCount;exports.getTransactionAppliedFiltersCount=t.getTransactionAppliedFiltersCount;exports.invoicingMenuList=t.invoicingMenuList;exports.isCloseManagementMenu=t.isCloseManagementMenu;exports.isClosedCardStatus=t.isClosedCardStatus;exports.isCollaborationEntityType=t.isCollaborationEntityType;exports.isCommentNotificationKind=t.isCommentNotificationKind;exports.isMobileOrTabletView=t.isMobileOrTabletView;exports.isMobilePhoneScreen=t.isMobilePhoneScreen;exports.isRecommendationFeedbackDimension=t.isRecommendationFeedbackDimension;exports.lightColors=t.lightColors;exports.lightTheme=t.lightTheme;exports.menuList=t.menuList;exports.mergeColumnDeclarativeWithRenderers=t.mergeColumnDeclarativeWithRenderers;exports.mergeLayoutDefaults=t.mergeLayoutDefaults;exports.percentValueToString=t.percentValueToString;exports.resolveBackgroundStatementProcessingCompletedSteps=t.resolveBackgroundStatementProcessingCompletedSteps;exports.resolveColumnWidth=t.resolveColumnWidth;exports.roundAmountIfNeeded=t.roundAmountIfNeeded;exports.roundOffNumberToTwoDecimal=t.roundOffNumberToTwoDecimal;exports.routineIdFromSession=t.routineIdFromSession;exports.setAutoLogoutContext=t.setAutoLogoutContext;exports.setShowNegativeAmountInParenthesisDefaultValue=t.setShowNegativeAmountInParenthesisDefaultValue;exports.setShowNegativeAmountInParenthesisForPercentDefaultValue=t.setShowNegativeAmountInParenthesisForPercentDefaultValue;exports.settingMenuList=t.settingMenuList;exports.shortCadence=t.shortCadence;exports.sp=t.sp;exports.textAlignForCell=t.textAlignForCell;exports.textStyles=t.textStyles;exports.toGroupedAccountingClassOptions=t.toGroupedAccountingClassOptions;exports.toGroupedQboAccountOptions=t.toGroupedQboAccountOptions;exports.toInstitutionLogoDataUri=t.toInstitutionLogoDataUri;exports.toInvoicingMenuOptionType=t.toInvoicingMenuOptionType;exports.toInvoicingMenuOptionTypeStrict=t.toInvoicingMenuOptionTypeStrict;exports.toMccCategoryChipFieldValue=t.toMccCategoryChipFieldValue;exports.toMenuOptionType=t.toMenuOptionType;exports.toSettingsMenuOptionTypeStrict=t.toSettingsMenuOptionTypeStrict;exports.toSupportedLocaleStrict=t.toSupportedLocaleStrict;exports.toVendorChipFieldValue=t.toVendorChipFieldValue;exports.trackTreasuryTransferAnalytics=t.trackTreasuryTransferAnalytics;exports.uploadAttachmentReceipts=t.uploadAttachmentReceipts;exports.useApprovalRulesV3Config=t.useApprovalRulesV3Config;exports.useBackNavigation=t.useBackNavigation;exports.useCollaborationInfoContext=t.useCollaborationInfoContext;exports.useCommentsDrawer=t.useCommentsDrawer;exports.useDropdownPortal=t.useDropdownPortal;exports.useExpenseAutomationEnabledForUser=t.useExpenseAutomationEnabledForUser;exports.useFieldHelp=t.useFieldHelp;exports.useGlobalInfoContext=t.useGlobalInfoContext;exports.useIsCreateTransactionTypeAllowed=t.useIsCreateTransactionTypeAllowed;exports.useIsFeatureGateLoading=t.useIsFeatureGateLoading;exports.useLockBodyScroll=t.useLockBodyScroll;exports.useMeetingLinks=t.useMeetingLinks;exports.usePanelDirtyGuardRegistry=t.usePanelDirtyGuardRegistry;exports.usePanelInternal=t.usePanelInternal;exports.usePrevious=t.usePrevious;exports.useQuickViewMode=t.useQuickViewMode;exports.useRegisterBackHandler=t.useRegisterBackHandler;exports.useRegisterPanelDirtyGuard=t.useRegisterPanelDirtyGuard;exports.useRequestCloseAllCommentDrawers=t.useRequestCloseAllCommentDrawers;exports.useSessionAutoLogoutConfig=t.useSessionAutoLogoutConfig;exports.useSidePanelContext=t.useSidePanelContext;exports.useToolkitContext=t.useToolkitContext;exports.useWindowSizeContext=t.useWindowSizeContext;exports.useZeniCardsVisibilityConfig=t.useZeniCardsVisibilityConfig;exports.useZeniFeatureContext=t.useZeniFeatureContext;exports.useZeniThemeContext=t.useZeniThemeContext;exports.waitFor=t.waitFor;exports.zeniEmotionStyled=s;Object.defineProperty(exports,"buildInvoicingEntityPath",{enumerable:!0,get:()=>J.buildInvoicingEntityPath});Object.defineProperty(exports,"isInvoicingEntityLinkable",{enumerable:!0,get:()=>J.isInvoicingEntityLinkable});Object.defineProperty(exports,"useZeniTheme",{enumerable:!0,get:()=>Ae.useTheme});Object.defineProperty(exports,"zeniStyled",{enumerable:!0,get:()=>Ae.styled});exports.AiAccountantDetailDrawer=s3;exports.AiAccountantPage=Ij;exports.AuditReportDrawerPage=iw;exports.COCKPIT_TAB_OPTIONS=Ct;exports.COCKPIT_TAB_OPTIONS_WITH_CREDIT_AGENT=Lc;exports.CockpitNavBar=pd;exports.CreditAgentPage=w6;exports.HealthMonitorDetailDrawer=AS;exports.HealthMonitorPage=pf;exports.ManagementPage=yg;exports.MonthEndReportHistoricDataPage=hE;exports.MonthEndReportPage=G$;exports.NavHeader=Tt;exports.OnboardingCustomerPage=OR;exports.OnboardingPage=R4;exports.PortfolioPage=NC;exports.ReviewPage=N5;exports.SubscriptionAddPlanPage=k2;exports.SubscriptionPage=A0;exports.SubscriptionUpdatePlanPage=s2;exports.TaskManagerPage=Jg;exports.WarningsDrawerPage=Ew;exports.toCockpitOptionType=Zt;exports.toCockpitOptionTypeStrict=ud;