@zeniai/web-components 4.3.17 → 4.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SessionTimeoutPopup-DRXHSIAd.cjs → SessionTimeoutPopup-BTMOCjDP.cjs} +8 -8
- package/dist/{SessionTimeoutPopup-BLyjDSti.js → SessionTimeoutPopup-C22uSV5s.js} +27 -9
- package/dist/cockpit.cjs.js +1 -1
- package/dist/cockpit.esm.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +3 -3
|
@@ -31530,7 +31530,7 @@ to {
|
|
|
31530
31530
|
align-items: center;
|
|
31531
31531
|
margin-left: auto;
|
|
31532
31532
|
flex-shrink: 0;
|
|
31533
|
-
`,VUn=e=>t.jsxRuntimeExports.jsxs(t.components.ValueContainer,{...e,className:"select-value-container",children:[e.children,e.selectProps.showDownChevronWithValue===!0?t.jsxRuntimeExports.jsx(WUn,{children:t.jsxRuntimeExports.jsx(_Un,{})}):null]}),QUn=e=>{const{selectProps:o,innerRef:i,innerProps:r}=e,{placeholder:a,value:l,customPlaceholderString:c,menuIsOpen:d,onMenuOpen:u,hasError:p}=o;return c!=null&&l==null&&d===!1?t.jsxRuntimeExports.jsx(vYn,{ref:i,...r,onClick:u,style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"flex-start",cursor:"pointer"},className:"custom-placeholder","data-testid":M("grouped-single-select-field-input",o.name),children:t.jsxRuntimeExports.jsxs(EYn,{children:[t.jsxRuntimeExports.jsx(AYn,{hasError:p}),t.jsxRuntimeExports.jsx(RYn,{hasError:p,children:c})]})}):t.jsxRuntimeExports.jsx(t.components.Input,{...e,autoComplete:"new-password",autoFocus:d,placeholder:l==null?a:void 0,children:e.children})},UUn=e=>t.jsxRuntimeExports.jsx(t.components.Group,{...e,children:e.children}),YUn=e=>{const[o,i]=h.useState(!0),r=e.selectProps.menuOptionPresentation==="typePill";return t.jsxRuntimeExports.jsx(xYn,{className:"group-heading-container",isGroupOpen:o,isTypePillMenu:r,onClick:()=>i(!o),"data-testid":M("group-heading",e.data.label),children:t.jsxRuntimeExports.jsxs(t.components.GroupHeading,{...e,children:[t.jsxRuntimeExports.jsx(hYn,{isGroupOpen:o,children:t.jsxRuntimeExports.jsx(XUn,{})}),e.children]})})},GUn=({children:e,...o},i)=>{const r=i==null||o.selectProps.menuIsOpen===!0?e:i.sticky===!0?t.jsxRuntimeExports.jsx(KUn,{title:i.text,children:e}):t.jsxRuntimeExports.jsx(Pe,{style:{padding:`12px ${n.sp3}`},title:i.text,placement:"top",children:e});return t.jsxRuntimeExports.jsx(t.components.SingleValue,{...o,children:t.jsxRuntimeExports.jsx(eYn,{children:r})})},qUn=()=>null,ZUn=(e,o,i,r,a,l,c,d,u)=>{const{data:p,isSelected:m,isDisabled:g,isFocused:f,selectProps:y}=e,{customPlaceholderString:j,menuOptionPresentation:C}=y,w=C==="typePill"&&p?.isOptionRecommended!==!0,{depth:R,isLeaf:A,isLastNode:v,hasSiblings:I,hasChildren:T,collapsed:$,displayName:k,ancestorMetadata:P,label:L}=p,B=P,D=FUn(p,m,o,r,l,a,d),O=t.jsxRuntimeExports.jsx(aYn,{title:j!=null?e.label:void 0,className:"select-option-wrapper",isFocused:f,isSelected:m,isDisabled:g,isOptionRecommended:!!p?.isOptionRecommended,showBottomBorder:p?.additionalNote==null||p?.isOptionRecommended!==!0,allowEmpty:i,isTypePillMenu:w,"data-testid":M("grouped-single-select-option",L),children:t.jsxRuntimeExports.jsx(t.components.Option,{...e,className:"select-option",children:t.jsxRuntimeExports.jsxs(lYn,{isOptionRecommended:p?.isOptionRecommended,children:[!!p?.isOptionRecommended&&t.jsxRuntimeExports.jsx(fYn,{children:t.jsxRuntimeExports.jsx(yYn,{})}),t.jsxRuntimeExports.jsxs(uYn,{children:[t.jsxRuntimeExports.jsxs(pYn,{isSelected:m,isOptionRecommended:p?.isOptionRecommended,children:[t.jsxRuntimeExports.jsx(cYn,{isSelected:m,isDisabled:g,children:w===!0?t.jsxRuntimeExports.jsx(rYn,{isSelected:m,isDisabled:g,isFocused:f,children:k??L}):t.jsxRuntimeExports.jsx(BUn,{displayName:k??L,depth:R,isLastNode:v,isLeaf:A,hasSiblings:I,collapsed:$,hasChildren:T,isOptionRecommended:p?.isOptionRecommended,subAccountAncestorMetadata:B})}),w!==!0&&f===!0&&p.coaId!=null&&p?.info!=null&&t.jsxRuntimeExports.jsx(jYn,{children:p.coaId??p?.info})]}),p?.isOptionRecommended&&p.additionalNote?t.jsxRuntimeExports.jsx(dYn,{isSelected:m,isDisabled:g,children:p.additionalNote}):null]}),t.jsxRuntimeExports.jsxs($Yn,{children:[p?.isOptionRecommended?t.jsxRuntimeExports.jsxs(SYn,{children:[t.jsxRuntimeExports.jsx(kYn,{confidence:p.confidencePercentage,children:lc(p.confidencePercentage)}),t.jsxRuntimeExports.jsx(IYn,{className:"confidence-label",children:MUn})]}):null,m===!0&&p?.additionalNote==null?t.jsxRuntimeExports.jsxs(gYn,{children:[t.jsxRuntimeExports.jsx(co,{className:"right-tick-icon",height:n.sp3,width:n.sp3}),t.jsxRuntimeExports.jsx(_t,{className:"close-tick-icon",height:n.sp3,width:n.sp3,"data-testid":M("grouped-single-select-option-cancel",L)})]}):p?.isOptionRecommended===!0?m===!0?t.jsxRuntimeExports.jsx(TYn,{children:t.jsxRuntimeExports.jsx(co,{height:n.sp3,width:n.sp3,style:{transform:"rotate(0deg)"}})}):t.jsxRuntimeExports.jsx(iYn,{}):null]})]})})}),V=jn().analytics,N=h.useCallback(()=>{const _=(e.value!=null&&e.value!==Ck?e?.getValue(e.value):null)?.[0]?.label??Ck,U=p.recommendedOptionIndex===1?"alternative":"primary",Q=D?.recommendations[0],q=Q?.cot??[];V.trackTransactionCotDropdownView({recommendationType:U,recommendationFor:a,currentValue:_,recommendation:Q?.name??Ck,recommendationCot:q,isRecommendationCotAvailable:q.length>0,recommendationReason:Q?.reason??Ck,recommendationConfidenceLevel:Mu(lc(Q?.confidencePercentage).toLocaleLowerCase()),transactionPage:r,transactionCurrentStatus:l,recommendationConfidencePercentage:Q?.confidencePercentage??null}),u!=null&&Q!=null&&Q.cot.length>0&&u(a,Q.source)},[V,D,r,l,a,e,p.recommendedOptionIndex]);return D!=null&&p?.isOptionRecommended&&o?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:D,placement:c??"right-start",enterDelay:300,leaveDelay:100,offset:[0,0],position:"static",display:"block",style:{width:"100%",height:"100%",marginLeft:"0px",marginRight:"0px"},onOpen:N,children:O}):O},KUn=({children:e,title:o})=>t.jsxRuntimeExports.jsxs(tYn,{children:[t.jsxRuntimeExports.jsxs(nYn,{children:[o,t.jsxRuntimeExports.jsx(oYn,{})]}),e]}),JUn=s.div`
|
|
31533
|
+
`,VUn=e=>t.jsxRuntimeExports.jsxs(t.components.ValueContainer,{...e,className:"select-value-container",children:[e.children,e.selectProps.showDownChevronWithValue===!0?t.jsxRuntimeExports.jsx(WUn,{children:t.jsxRuntimeExports.jsx(_Un,{})}):null]}),QUn=e=>{const{selectProps:o,innerRef:i,innerProps:r}=e,{placeholder:a,value:l,customPlaceholderString:c,menuIsOpen:d,onMenuOpen:u,hasError:p}=o;return c!=null&&l==null&&d===!1?t.jsxRuntimeExports.jsx(vYn,{ref:i,...r,onClick:u,style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"flex-start",cursor:"pointer"},className:"custom-placeholder","data-testid":M("grouped-single-select-field-input",o.name),children:t.jsxRuntimeExports.jsxs(EYn,{children:[t.jsxRuntimeExports.jsx(AYn,{hasError:p}),t.jsxRuntimeExports.jsx(RYn,{hasError:p,children:c})]})}):t.jsxRuntimeExports.jsx(t.components.Input,{...e,autoComplete:"new-password",autoFocus:d,placeholder:l==null?a:void 0,children:e.children})},UUn=e=>t.jsxRuntimeExports.jsx(t.components.Group,{...e,children:e.children}),YUn=e=>{const[o,i]=h.useState(!0),r=e.selectProps.menuOptionPresentation==="typePill";return t.jsxRuntimeExports.jsx(xYn,{className:"group-heading-container",isGroupOpen:o,isTypePillMenu:r,onClick:()=>i(!o),"data-testid":M("group-heading",e.data.label),children:t.jsxRuntimeExports.jsxs(t.components.GroupHeading,{...e,children:[t.jsxRuntimeExports.jsx(hYn,{isGroupOpen:o,children:t.jsxRuntimeExports.jsx(XUn,{})}),e.children]})})},GUn=({children:e,...o},i)=>{const r=i==null||o.selectProps.menuIsOpen===!0?e:i.sticky===!0?t.jsxRuntimeExports.jsx(KUn,{title:i.text,children:e}):t.jsxRuntimeExports.jsx(Pe,{style:{padding:`12px ${n.sp3}`},title:i.text,placement:"top",children:e});return t.jsxRuntimeExports.jsx(t.components.SingleValue,{...o,children:t.jsxRuntimeExports.jsx(eYn,{children:r})})},qUn=()=>null,ZUn=(e,o,i,r,a,l,c,d,u)=>{const{data:p,isSelected:m,isDisabled:g,isFocused:f,selectProps:y}=e,{customPlaceholderString:j,menuOptionPresentation:C}=y,w=C==="typePill"&&p?.isOptionRecommended!==!0,{depth:R,isLeaf:A,isLastNode:v,hasSiblings:I,hasChildren:T,collapsed:$,displayName:k,ancestorMetadata:P,label:L}=p,B=P,D=FUn(p,m,o,r,l,a,d),O=t.jsxRuntimeExports.jsx(aYn,{title:j!=null?e.label:void 0,className:"select-option-wrapper",isFocused:f,isSelected:m,isDisabled:g,isOptionRecommended:!!p?.isOptionRecommended,showBottomBorder:p?.additionalNote==null||p?.isOptionRecommended!==!0,allowEmpty:i,isTypePillMenu:w,"data-testid":M("grouped-single-select-option",L),children:t.jsxRuntimeExports.jsx(t.components.Option,{...e,className:"select-option",children:t.jsxRuntimeExports.jsxs(lYn,{isOptionRecommended:p?.isOptionRecommended,children:[!!p?.isOptionRecommended&&t.jsxRuntimeExports.jsx(fYn,{children:t.jsxRuntimeExports.jsx(yYn,{})}),t.jsxRuntimeExports.jsxs(uYn,{children:[t.jsxRuntimeExports.jsxs(pYn,{isSelected:m,isOptionRecommended:p?.isOptionRecommended,children:[t.jsxRuntimeExports.jsx(cYn,{isSelected:m,isDisabled:g,children:w===!0?t.jsxRuntimeExports.jsx(rYn,{isSelected:m,isDisabled:g,isFocused:f,children:k??L}):t.jsxRuntimeExports.jsx(BUn,{displayName:k??L,depth:R,isLastNode:v,isLeaf:A,hasSiblings:I,collapsed:$,hasChildren:T,isOptionRecommended:p?.isOptionRecommended,subAccountAncestorMetadata:B})}),w!==!0&&f===!0&&p.coaId!=null&&p?.info!=null&&t.jsxRuntimeExports.jsx(jYn,{children:p.coaId??p?.info})]}),p?.isOptionRecommended&&p.additionalNote?t.jsxRuntimeExports.jsx(dYn,{isSelected:m,isDisabled:g,children:p.additionalNote}):null]}),t.jsxRuntimeExports.jsxs($Yn,{children:[p?.isOptionRecommended?t.jsxRuntimeExports.jsxs(SYn,{children:[t.jsxRuntimeExports.jsx(kYn,{confidence:p.confidencePercentage,children:lc(p.confidencePercentage)}),t.jsxRuntimeExports.jsx(IYn,{className:"confidence-label",children:MUn})]}):null,m===!0&&p?.additionalNote==null?t.jsxRuntimeExports.jsxs(gYn,{children:[t.jsxRuntimeExports.jsx(co,{className:"right-tick-icon",height:n.sp3,width:n.sp3}),t.jsxRuntimeExports.jsx(_t,{className:"close-tick-icon",height:n.sp3,width:n.sp3,"data-testid":M("grouped-single-select-option-cancel",L)})]}):p?.isOptionRecommended===!0?m===!0?t.jsxRuntimeExports.jsx(TYn,{children:t.jsxRuntimeExports.jsx(co,{height:n.sp3,width:n.sp3,style:{transform:"rotate(0deg)"}})}):t.jsxRuntimeExports.jsx(iYn,{}):null]})]})})}),V=jn().analytics,N=h.useCallback(()=>{const _=(e.value!=null&&e.value!==Ck?e?.getValue(e.value):null)?.[0]?.label??Ck,U=p.recommendedOptionIndex===1?"alternative":"primary",Q=D?.recommendations[0],q=Q?.cot??[];V.trackTransactionCotDropdownView({recommendationType:U,recommendationFor:a,currentValue:_,recommendation:Q?.name??Ck,recommendationCot:q,isRecommendationCotAvailable:q.length>0,recommendationReason:Q?.reason??Ck,recommendationConfidenceLevel:Mu(lc(Q?.confidencePercentage).toLocaleLowerCase()),transactionPage:r,transactionCurrentStatus:l,recommendationConfidencePercentage:Q?.confidencePercentage??null,transactionId:null,lineId:null}),u!=null&&Q!=null&&Q.cot.length>0&&u(a,Q.source)},[V,D,r,l,a,e,p.recommendedOptionIndex]);return D!=null&&p?.isOptionRecommended&&o?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:D,placement:c??"right-start",enterDelay:300,leaveDelay:100,offset:[0,0],position:"static",display:"block",style:{width:"100%",height:"100%",marginLeft:"0px",marginRight:"0px"},onOpen:N,children:O}):O},KUn=({children:e,title:o})=>t.jsxRuntimeExports.jsxs(tYn,{children:[t.jsxRuntimeExports.jsxs(nYn,{children:[o,t.jsxRuntimeExports.jsx(oYn,{})]}),e]}),JUn=s.div`
|
|
31534
31534
|
display: flex;
|
|
31535
31535
|
flex-direction: column;
|
|
31536
31536
|
align-items: center;
|
|
@@ -32041,7 +32041,7 @@ to {
|
|
|
32041
32041
|
cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
|
|
32042
32042
|
pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
|
|
32043
32043
|
}
|
|
32044
|
-
`,h$=e=>{if(e?.recommendations==null)return;const o=e.recommendations[0],i=e.recommendations[1];if(o!=null&&o.cot.length>0&&i?.isSelected!==!0)return o.source;if(i!=null&&i.cot.length>0)return i.source},pge=(e,o)=>{if(o==="vendor"&&e.vendor?.type!=null)return e.vendor.type;if(o==="category"&&e.account?.type!=null)return e.account.type;if(o==="class"&&e.class?.type!=null)return e.class.type},g$=e=>b.createElement("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.954 3.24703L5.64869 1.3696C5.76936 1.04347 6.23064 1.04347 6.35131 1.3696L7.046 3.24703C7.33868 4.03788 7.96212 4.66132 8.75297 4.954L10.6304 5.64869C10.9565 5.76936 10.9565 6.23064 10.6304 6.35131L8.75297 7.046C7.96212 7.33867 7.33868 7.96212 7.046 8.75297L6.35131 10.6304C6.23064 10.9565 5.76936 10.9565 5.64869 10.6304L4.954 8.75297C4.66132 7.96212 4.03788 7.33867 3.24703 7.046L1.3696 6.35131C1.04347 6.23064 1.04347 5.76936 1.3696 5.64869L3.24703 4.954C4.03788 4.66132 4.66132 4.03788 4.954 3.24703Z",fill:"url(#paint0_linear_10171_105366)",stroke:"url(#paint1_linear_10171_105366)"}),b.createElement("defs",null,b.createElement("linearGradient",{id:"paint0_linear_10171_105366",x1:7.77537,y1:7.7754,x2:4.22456,y2:4.2246,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint1_linear_10171_105366",x1:7.77537,y1:7.7754,x2:4.22456,y2:4.2246,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})))),f$=e=>b.createElement("svg",{viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.954 5.2939L5.64869 3.41647C5.76936 3.09034 6.23064 3.09034 6.35131 3.41647L7.046 5.2939C7.33868 6.08475 7.96212 6.7082 8.75297 7.00087L10.6304 7.69556C10.9565 7.81624 10.9565 8.27751 10.6304 8.39819L8.75297 9.09288C7.96212 9.38555 7.33868 10.009 7.046 10.7998L6.35131 12.6773C6.23064 13.0034 5.76936 13.0034 5.64869 12.6773L4.954 10.7998C4.66132 10.009 4.03788 9.38555 3.24703 9.09288L1.3696 8.39819C1.04347 8.27751 1.04347 7.81624 1.3696 7.69556L3.24703 7.00087C4.03788 6.7082 4.66132 6.08475 4.954 5.2939Z",fill:"currentColor",stroke:"currentColor"}),b.createElement("path",{d:"M9.42188 2.5625L10.9688 4.10938L14.5781 0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),y$=e=>b.createElement("svg",{viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.954 5.2939L5.64869 3.41647C5.76936 3.09034 6.23064 3.09034 6.35131 3.41647L7.046 5.2939C7.33868 6.08475 7.96212 6.7082 8.75297 7.00087L10.6304 7.69556C10.9565 7.81624 10.9565 8.27751 10.6304 8.39819L8.75297 9.09288C7.96212 9.38555 7.33868 10.009 7.046 10.7998L6.35131 12.6773C6.23064 13.0034 5.76936 13.0034 5.64869 12.6773L4.954 10.7998C4.66132 10.009 4.03788 9.38555 3.24703 9.09288L1.3696 8.39819C1.04347 8.27751 1.04347 7.81624 1.3696 7.69556L3.24703 7.00087C4.03788 6.7082 4.66132 6.08475 4.954 5.2939Z",stroke:"currentColor"}),b.createElement("path",{d:"M9.42188 2.5625L10.9688 4.10938L14.5781 0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{empty:J9}},transactionDetail:{recommendationBanner:Ak}}=F.getLocalizedStrings(),Cg={width:new E(343,550,625),controlHeight:new E(x[5],x[5]),paddingTopBottom:new E(x[2],x[2]),paddingLeft:new E(x[3],x[4]),paddingRight:new E(x[2],x[3]),labelMarginRight:new E(x[3],x[4])},nGn={infoLabel:new rt("smallMedium","smallMedium")},oGn=({isRecommendedSelected:e,hasRecommendations:o,isTooltipVisible:i=!1})=>o?e?i?t.jsxRuntimeExports.jsx(xGn,{}):t.jsxRuntimeExports.jsx(hGn,{className:"ai-icon-selected-plain"}):i?t.jsxRuntimeExports.jsx(mGn,{}):t.jsxRuntimeExports.jsx(_J,{}):null,sGn=({children:e})=>t.jsxRuntimeExports.jsx(uGn,{children:e});function HJ({isDisabled:e,label:o,groupedSingleSelectField:i,style:r,controlWidth:a,additionalLabelInfo:l,recommendationCheckboxField:c,retainCheckboxField:d,zIndexOnFocus:u,isLoading:p,isZeniRecommendsLabel:m=!1,isRecommendedSelected:g,hasRecommendations:f,cotData:y,onCOTView:j,disableCurrentOption:C,openTooltipId:w,setOpenTooltipId:R,valueToAdditionalLabel:A,fullWidthSelect:v=!0}){const I=te(),{formState:{errors:T}}=t.useFormContext(),$=t.has(T,i.name),k=h.useMemo(()=>i.name,[i.name]),P=w===k,B=jn().analytics,D=h.useCallback(()=>{R(k);const H=y?.recommendations[0]?.cot??[],V=y?.recommendations[1]?.cot??[],N=H.length>0,z=V.length>0;if(B.trackTransactionCotView({recommendationFor:i.type,currentValue:y?.existingOption.label??J9,recommendation:y?.recommendations[0]?.name??J9,recommendationCot:H,isRecommendationCotAvailable:N,recommendationReason:y?.recommendations[0]?.reason??J9,recommendationConfidencePercentage:y?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc(y?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:y?.recommendations[1]?.name??J9,alternativeRecommendationCot:V,isAlternativeRecommendationCotAvailable:z,alternativeRecommendationReason:y?.recommendations[1]?.reason??J9,alternativeRecommendationConfidencePercentage:y?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:z?Mu(lc(y?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:i.transactionStatus,transactionPage:i.pageSource}),j!=null){const _=h$(y);_!=null&&j(i.type,_)}},[B,y,i,k,R]),O=h.useCallback(()=>{w===k&&R(void 0)},[w,k,R]);return t.jsxRuntimeExports.jsxs(aGn,{controlWidth:a??"auto","data-labeled-cot-dropdown-container":"",isDisabled:e!=null,isError:$,size:I,style:r,zIndexOnFocus:u===!0,"data-testid":M("group-select-with-checkbox",i.name),children:[t.jsxRuntimeExports.jsxs(rGn,{id:"dropdown-container",size:I,children:[t.jsxRuntimeExports.jsx(nn,{isDisabled:e,syncBackgroundWithAncestor:!0,label:o.label,htmlFor:i.name,style:{marginRight:Cg.labelMarginRight.value(I),height:Cg.controlHeight.value(I),minHeight:Cg.controlHeight.value(I),width:o.width??"auto",...o.style}}),p===!0?t.jsxRuntimeExports.jsx(iGn,{children:t.jsxRuntimeExports.jsx(Ce,{width:"50%",height:Cg.controlHeight.value(I),style:{display:"flex",alignItems:"right"},dataTestId:M("loading-skeleton",i.type)})}):t.jsxRuntimeExports.jsxs(cGn,{fullWidthSelect:v,labelWidth:o.width,children:[t.jsxRuntimeExports.jsxs(dGn,{children:[f?t.jsxRuntimeExports.jsx(sGn,{children:y?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:y,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:P,leaveDelay:200,onOpen:D,onClose:O,children:t.jsxRuntimeExports.jsx(pGn,{"data-testid":M("recommendation-icon",i.type),children:t.jsxRuntimeExports.jsx(oGn,{isRecommendedSelected:g,hasRecommendations:f,isTooltipVisible:P})})}):null}):null,t.jsxRuntimeExports.jsx(Mc,{...i,isDisabled:e,additionalLabelInfo:l,disableCurrentOption:C,onCOTView:j})]}),i.defaultValue.selectedOption!=null&&A!=null?t.jsxRuntimeExports.jsx(lGn,{size:I,isError:$,children:A(i.defaultValue.selectedOption)}):null]})]}),p===!1&&c!=null&&t.jsxRuntimeExports.jsxs(mge,{children:[t.jsxRuntimeExports.jsx(_J,{}),m?t.jsxRuntimeExports.jsx(Rk,{children:Ak.zeniRecommends}):t.jsxRuntimeExports.jsx(Rk,{children:Ak.updateTo}),t.jsxRuntimeExports.jsx(mh,{isHighlighted:!0,label:c.label,showBorder:!1,tooltipProps:c.tooltipProps!=null?{...c.tooltipProps}:void 0,checkBoxField:c.checkBoxField,isDisabled:c.isDisabled},t.nanoid()),d!=null&&t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(Rk,{children:Ak.retainOr}),t.jsxRuntimeExports.jsx(mh,{label:d.label,showBorder:!1,checkBoxField:d.checkBoxField,isDisabled:d.isDisabled},t.nanoid())]})]}),p===!1&&c==null&&d!=null&&t.jsxRuntimeExports.jsxs(mge,{children:[t.jsxRuntimeExports.jsx(_J,{}),t.jsxRuntimeExports.jsx(Rk,{children:Ak.retain}),t.jsxRuntimeExports.jsx(mh,{label:d.label,checkBoxField:d.checkBoxField,isDisabled:d.isDisabled},t.nanoid())]})]})}const iGn=s.div`
|
|
32044
|
+
`,h$=e=>{if(e?.recommendations==null)return;const o=e.recommendations[0],i=e.recommendations[1];if(o!=null&&o.cot.length>0&&i?.isSelected!==!0)return o.source;if(i!=null&&i.cot.length>0)return i.source},pge=(e,o)=>{if(o==="vendor"&&e.vendor?.type!=null)return e.vendor.type;if(o==="category"&&e.account?.type!=null)return e.account.type;if(o==="class"&&e.class?.type!=null)return e.class.type},g$=e=>b.createElement("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.954 3.24703L5.64869 1.3696C5.76936 1.04347 6.23064 1.04347 6.35131 1.3696L7.046 3.24703C7.33868 4.03788 7.96212 4.66132 8.75297 4.954L10.6304 5.64869C10.9565 5.76936 10.9565 6.23064 10.6304 6.35131L8.75297 7.046C7.96212 7.33867 7.33868 7.96212 7.046 8.75297L6.35131 10.6304C6.23064 10.9565 5.76936 10.9565 5.64869 10.6304L4.954 8.75297C4.66132 7.96212 4.03788 7.33867 3.24703 7.046L1.3696 6.35131C1.04347 6.23064 1.04347 5.76936 1.3696 5.64869L3.24703 4.954C4.03788 4.66132 4.66132 4.03788 4.954 3.24703Z",fill:"url(#paint0_linear_10171_105366)",stroke:"url(#paint1_linear_10171_105366)"}),b.createElement("defs",null,b.createElement("linearGradient",{id:"paint0_linear_10171_105366",x1:7.77537,y1:7.7754,x2:4.22456,y2:4.2246,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint1_linear_10171_105366",x1:7.77537,y1:7.7754,x2:4.22456,y2:4.2246,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})))),f$=e=>b.createElement("svg",{viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.954 5.2939L5.64869 3.41647C5.76936 3.09034 6.23064 3.09034 6.35131 3.41647L7.046 5.2939C7.33868 6.08475 7.96212 6.7082 8.75297 7.00087L10.6304 7.69556C10.9565 7.81624 10.9565 8.27751 10.6304 8.39819L8.75297 9.09288C7.96212 9.38555 7.33868 10.009 7.046 10.7998L6.35131 12.6773C6.23064 13.0034 5.76936 13.0034 5.64869 12.6773L4.954 10.7998C4.66132 10.009 4.03788 9.38555 3.24703 9.09288L1.3696 8.39819C1.04347 8.27751 1.04347 7.81624 1.3696 7.69556L3.24703 7.00087C4.03788 6.7082 4.66132 6.08475 4.954 5.2939Z",fill:"currentColor",stroke:"currentColor"}),b.createElement("path",{d:"M9.42188 2.5625L10.9688 4.10938L14.5781 0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),y$=e=>b.createElement("svg",{viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.954 5.2939L5.64869 3.41647C5.76936 3.09034 6.23064 3.09034 6.35131 3.41647L7.046 5.2939C7.33868 6.08475 7.96212 6.7082 8.75297 7.00087L10.6304 7.69556C10.9565 7.81624 10.9565 8.27751 10.6304 8.39819L8.75297 9.09288C7.96212 9.38555 7.33868 10.009 7.046 10.7998L6.35131 12.6773C6.23064 13.0034 5.76936 13.0034 5.64869 12.6773L4.954 10.7998C4.66132 10.009 4.03788 9.38555 3.24703 9.09288L1.3696 8.39819C1.04347 8.27751 1.04347 7.81624 1.3696 7.69556L3.24703 7.00087C4.03788 6.7082 4.66132 6.08475 4.954 5.2939Z",stroke:"currentColor"}),b.createElement("path",{d:"M9.42188 2.5625L10.9688 4.10938L14.5781 0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{empty:J9}},transactionDetail:{recommendationBanner:Ak}}=F.getLocalizedStrings(),Cg={width:new E(343,550,625),controlHeight:new E(x[5],x[5]),paddingTopBottom:new E(x[2],x[2]),paddingLeft:new E(x[3],x[4]),paddingRight:new E(x[2],x[3]),labelMarginRight:new E(x[3],x[4])},nGn={infoLabel:new rt("smallMedium","smallMedium")},oGn=({isRecommendedSelected:e,hasRecommendations:o,isTooltipVisible:i=!1})=>o?e?i?t.jsxRuntimeExports.jsx(xGn,{}):t.jsxRuntimeExports.jsx(hGn,{className:"ai-icon-selected-plain"}):i?t.jsxRuntimeExports.jsx(mGn,{}):t.jsxRuntimeExports.jsx(_J,{}):null,sGn=({children:e})=>t.jsxRuntimeExports.jsx(uGn,{children:e});function HJ({isDisabled:e,label:o,groupedSingleSelectField:i,style:r,controlWidth:a,additionalLabelInfo:l,recommendationCheckboxField:c,retainCheckboxField:d,zIndexOnFocus:u,isLoading:p,isZeniRecommendsLabel:m=!1,isRecommendedSelected:g,hasRecommendations:f,cotData:y,onCOTView:j,disableCurrentOption:C,openTooltipId:w,setOpenTooltipId:R,valueToAdditionalLabel:A,fullWidthSelect:v=!0}){const I=te(),{formState:{errors:T}}=t.useFormContext(),$=t.has(T,i.name),k=h.useMemo(()=>i.name,[i.name]),P=w===k,B=jn().analytics,D=h.useCallback(()=>{R(k);const H=y?.recommendations[0]?.cot??[],V=y?.recommendations[1]?.cot??[],N=H.length>0,z=V.length>0;if(B.trackTransactionCotView({recommendationFor:i.type,currentValue:y?.existingOption.label??J9,recommendation:y?.recommendations[0]?.name??J9,recommendationCot:H,isRecommendationCotAvailable:N,recommendationReason:y?.recommendations[0]?.reason??J9,recommendationConfidencePercentage:y?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc(y?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:y?.recommendations[1]?.name??J9,alternativeRecommendationCot:V,isAlternativeRecommendationCotAvailable:z,alternativeRecommendationReason:y?.recommendations[1]?.reason??J9,alternativeRecommendationConfidencePercentage:y?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:z?Mu(lc(y?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:i.transactionStatus,transactionPage:i.pageSource,transactionId:null,lineId:null}),j!=null){const _=h$(y);_!=null&&j(i.type,_)}},[B,y,i,k,R]),O=h.useCallback(()=>{w===k&&R(void 0)},[w,k,R]);return t.jsxRuntimeExports.jsxs(aGn,{controlWidth:a??"auto","data-labeled-cot-dropdown-container":"",isDisabled:e!=null,isError:$,size:I,style:r,zIndexOnFocus:u===!0,"data-testid":M("group-select-with-checkbox",i.name),children:[t.jsxRuntimeExports.jsxs(rGn,{id:"dropdown-container",size:I,children:[t.jsxRuntimeExports.jsx(nn,{isDisabled:e,syncBackgroundWithAncestor:!0,label:o.label,htmlFor:i.name,style:{marginRight:Cg.labelMarginRight.value(I),height:Cg.controlHeight.value(I),minHeight:Cg.controlHeight.value(I),width:o.width??"auto",...o.style}}),p===!0?t.jsxRuntimeExports.jsx(iGn,{children:t.jsxRuntimeExports.jsx(Ce,{width:"50%",height:Cg.controlHeight.value(I),style:{display:"flex",alignItems:"right"},dataTestId:M("loading-skeleton",i.type)})}):t.jsxRuntimeExports.jsxs(cGn,{fullWidthSelect:v,labelWidth:o.width,children:[t.jsxRuntimeExports.jsxs(dGn,{children:[f?t.jsxRuntimeExports.jsx(sGn,{children:y?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:y,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:P,leaveDelay:200,onOpen:D,onClose:O,children:t.jsxRuntimeExports.jsx(pGn,{"data-testid":M("recommendation-icon",i.type),children:t.jsxRuntimeExports.jsx(oGn,{isRecommendedSelected:g,hasRecommendations:f,isTooltipVisible:P})})}):null}):null,t.jsxRuntimeExports.jsx(Mc,{...i,isDisabled:e,additionalLabelInfo:l,disableCurrentOption:C,onCOTView:j})]}),i.defaultValue.selectedOption!=null&&A!=null?t.jsxRuntimeExports.jsx(lGn,{size:I,isError:$,children:A(i.defaultValue.selectedOption)}):null]})]}),p===!1&&c!=null&&t.jsxRuntimeExports.jsxs(mge,{children:[t.jsxRuntimeExports.jsx(_J,{}),m?t.jsxRuntimeExports.jsx(Rk,{children:Ak.zeniRecommends}):t.jsxRuntimeExports.jsx(Rk,{children:Ak.updateTo}),t.jsxRuntimeExports.jsx(mh,{isHighlighted:!0,label:c.label,showBorder:!1,tooltipProps:c.tooltipProps!=null?{...c.tooltipProps}:void 0,checkBoxField:c.checkBoxField,isDisabled:c.isDisabled},t.nanoid()),d!=null&&t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(Rk,{children:Ak.retainOr}),t.jsxRuntimeExports.jsx(mh,{label:d.label,showBorder:!1,checkBoxField:d.checkBoxField,isDisabled:d.isDisabled},t.nanoid())]})]}),p===!1&&c==null&&d!=null&&t.jsxRuntimeExports.jsxs(mge,{children:[t.jsxRuntimeExports.jsx(_J,{}),t.jsxRuntimeExports.jsx(Rk,{children:Ak.retain}),t.jsxRuntimeExports.jsx(mh,{label:d.label,checkBoxField:d.checkBoxField,isDisabled:d.isDisabled},t.nanoid())]})]})}const iGn=s.div`
|
|
32045
32045
|
height: 100%;
|
|
32046
32046
|
display: flex;
|
|
32047
32047
|
flex: 1;
|
|
@@ -32372,7 +32372,7 @@ to {
|
|
|
32372
32372
|
display: flex;
|
|
32373
32373
|
width: 100%;
|
|
32374
32374
|
flex-direction: column;
|
|
32375
|
-
`;function pqn({transaction:e,onTransactionClick:o}){const i=K_e(e);return t.jsxRuntimeExports.jsxs(uqn,{children:[t.jsxRuntimeExports.jsx(sqn,{title:e.typeName??"",amount:e.amount,onHeaderClick:()=>{o?.(e)}}),t.jsxRuntimeExports.jsx(dqn,{values:i})]})}function K_e(e){const o=[],i=F.getLocalizedStrings().transactionDetail.transactionLabels,r=l=>l.format(F.getLocalizedStrings().dateFormat.visual.DMMMYYFormat),a=l=>Ne("0,0.00",l);if(Y.isCustomerTransaction(e)){const l=e;switch(l.type){case"invoice":o.push({title:i.invoice.invoiceNo,value:l.documentId??"-"}),o.push({title:i.invoice.invoiceDate,value:r(l.date)}),o.push({title:i.invoice.origionalAmount,value:a(l.amount)}),o.push({title:i.invoice.balanceDue,value:l.balance!=null?a(l.balance):"-"});break;case"credit_memo":o.push({title:i.creditMemo.creditMemoNo,value:l.documentId??"-"}),o.push({title:i.creditMemo.creditMemoDate,value:r(l.date)});break;case"sales_receipt":o.push({title:i.salesReceipt.salesReceiptNo,value:l.documentId??"-"}),o.push({title:i.salesReceipt.salesReceiptDate,value:r(l.date)}),o.push({title:i.salesReceipt.paymentMethod,value:l.paymentMethodName??"-"}),o.push({title:i.salesReceipt.depositedTo,value:l.account?.accountName??"-"});break;case"delayed_credit":o.push({title:i.delayedCredit.delayedCreditNo,value:l.documentId??"-"}),o.push({title:i.delayedCredit.delayedCreditDate,value:r(l.date)});break;case"refund":o.push({title:i.refund.refundReceiptNo,value:l.documentId??"-"}),o.push({title:i.refund.refundReceiptDate,value:r(l.date)}),o.push({title:i.refund.refundFrom,value:l.account?.accountName??"-"}),o.push({title:i.refund.paymentMethod,value:l.paymentTypeName??"-"});break;case"payment":o.push({title:i.receivePayment.depositedTo,value:l.account?.accountName??"-"}),l.paymentMethodName!=null&&o.push({title:i.receivePayment.paymentMethod,value:l.paymentMethodName}),o.push({title:i.receivePayment.paymentDate,value:r(l.date)}),o.push({title:i.receivePayment.referenceNo,value:l.documentId||"-"});break;default:console.error(`Unrecognised customer transaction type ${l.type}`);break}}else if(Y.isVendorTransaction(e)){const l=e;switch(l.type){case"expense":o.push({title:i.expense.paymentAc,value:l.account?.accountName??"-"}),o.push({title:i.expense.paymentMethod,value:l.paymentTypeName??"-"}),o.push({title:i.expense.paymentDate,value:r(l.date)});break;case"check":o.push({title:i.check.bankAc,value:l.account?.accountName??"-"}),o.push({title:i.check.paymentDate,value:r(l.date)});break;case"bill":o.push({title:i.bill.billDate,value:r(l.date)}),o.push({title:i.bill.billNo,value:l.documentId||"-"}),o.push({title:i.bill.dueDate,value:l.dueDate!=null?r(l.dueDate):"-"});break;case"bill_payment":case"vendor_credit":case"credit_card_credit":o.push({title:i.billPayment.paymentDate,value:r(l.date)}),o.push({title:i.billPayment.bankOrCreditAc,value:l.account?.accountName??"-"}),o.push({title:i.billPayment.referenceNo,value:l.documentId!=null&&l.documentId.length>0?l.documentId:"-"});break;default:console.error(`Unrecognised vendor transaction type ${l.type}`);break}}else if(Y.isTransferTransaction(e)){const l=e;switch(l.type){case"transfer":o.push({title:i.transfer.transferFundsFrom,value:l.fromAccount.accountName}),o.push({title:i.transfer.transferFundsTo,value:l.toAccount.accountName}),o.push({title:i.transfer.date,value:r(l.date)});break;case"credit_card_payment":o.push({title:i.creditCardPayment.paidForCreditCard,value:l.toAccount.accountName}),o.push({title:i.creditCardPayment.payee,value:l.payee?.payeeName??"-"}),o.push({title:i.creditCardPayment.amountPaid,value:a(l.amount)}),o.push({title:i.creditCardPayment.paymentDate,value:r(l.date)}),o.push({title:i.creditCardPayment.paymentMethod,value:l.fromAccount.accountName});break}}else switch(e.type){case"deposit":o.push({title:i.deposit.account,value:e.account?.accountName??"-"}),o.push({title:i.deposit.date,value:r(e.date)});break;case"journal_entry":{o.push({title:i.journalEntry.journalDate,value:r(e.date)});const{debitTotal:l,creditTotal:c}=t.journalEntryTotalsByPostingSide(e.lines??[]);o.push({title:i.journalEntry.totalDebit,value:a(l??{amount:0,currencySymbol:"$"})}),o.push({title:i.journalEntry.totalCredit,value:a(c??{amount:0,currencySymbol:"$"})});break}default:console.error(`Unrecognised transaction type ${e.type}`);break}return o}const{common:{strings:{empty:Ol}}}=F.getLocalizedStrings(),j$=()=>{const o=jn().analytics,i=h.useCallback((a,l,c,d,u)=>{if(l){let p=Ol,m=[],g=Ol,f=null;if(d){if(a==="vendor"&&d.vendor){const{name:j,cot:C,reason:w,vendorNameConfidence:R}=d.vendor;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="category"&&d.account){const{accountName:j,cot:C,reason:w,accountNameConfidence:R}=d.account;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="class"&&d.class){const{className:j,cot:C,reason:w,accountingClassNameConfidence:R}=d.class;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}}const y=m.length>0;if(o.trackTransactionCotViewAlternative({alternativeRecommendationFor:a,alternativeRecommendation:p,alternativeRecommendationCot:m,isAlternativeRecommendationCotAvailable:y,alternativeRecommendationReason:g,alternativeRecommendationConfidencePercentage:f,alternativeRecommendationConfidenceLevel:y?Mu(lc(f??void 0).toLocaleLowerCase()):null,transactionCurrentStatus:c.transactionCurrentStatus??"auto_categorized",transactionPage:c.transactionPage??"details_page"}),c.cotTracking?.onCOTView!=null&&c.cotTracking.lineId!=null&&d!=null){const j=pge(d,a);j!=null&&c.cotTracking.onCOTView(c.cotTracking.lineId,c.cotTracking.transactionId,a,j)}}else{let p=Ol,m=[],g=Ol,f=null;if(u){if(a==="vendor"&&u.vendor){const{name:j,cot:C,reason:w,vendorNameConfidence:R}=u.vendor;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="category"&&u.account){const{accountName:j,cot:C,reason:w,accountNameConfidence:R}=u.account;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="class"&&u.class){const{className:j,cot:C,reason:w,accountingClassNameConfidence:R}=u.class;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}}const y=m.length>0;if(o.trackTransactionCotViewRecommended({recommendationFor:a,currentValue:c.currentValue??Ol,recommendation:p,recommendationCot:m,isRecommendationCotAvailable:y,recommendationReason:g,recommendationConfidencePercentage:f,recommendationConfidenceLevel:Mu(lc(f??void 0).toLocaleLowerCase())}),c.cotTracking?.onCOTView!=null&&c.cotTracking.lineId!=null&&u!=null){const j=pge(u,a);j!=null&&c.cotTracking.onCOTView(c.cotTracking.lineId,c.cotTracking.transactionId,a,j)}}},[o]),r=h.useCallback((a,l,c,d)=>u=>{i(a,u,l,c,d)},[i]);return{trackAlternateRecommendationExpand:i,createAlternateRecommendationCallback:r}},mqn=e=>b.createElement("svg",{viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M6.60533 6.89187L7.53159 4.38863C7.69249 3.95379 8.30751 3.95379 8.46841 4.38863L9.39467 6.89187C9.7849 7.94634 10.6162 8.7776 11.6706 9.16783L14.1739 10.0941C14.6087 10.255 14.6087 10.87 14.1739 11.0309L11.6706 11.9572C10.6162 12.3474 9.7849 13.1787 9.39467 14.2331L8.46841 16.7364C8.30751 17.1712 7.69248 17.1712 7.53158 16.7364L6.60533 14.2331C6.2151 13.1787 5.38384 12.3474 4.32937 11.9572L1.82613 11.0309C1.39129 10.87 1.39129 10.255 1.82613 10.0941L4.32937 9.16783C5.38384 8.7776 6.2151 7.94634 6.60533 6.89187Z",fill:"url(#paint0_linear_2060_173)",stroke:"url(#paint1_linear_2060_173)"}),b.createElement("path",{d:"M12.5625 3.25L14.625 5.3125L19.4375 0.5",stroke:"url(#paint2_linear_2060_173)",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("defs",null,b.createElement("linearGradient",{id:"paint0_linear_2060_173",x1:10.3672,y1:12.9297,x2:5.63275,y2:8.1953,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint1_linear_2060_173",x1:10.3672,y1:12.9297,x2:5.63275,y2:8.1953,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint2_linear_2060_173",x1:17.2519,y1:3.78257,x2:15.6051,y2:1.43003,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})))),xqn=e=>b.createElement("svg",{viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M6.60533 6.89187L7.53159 4.38863C7.69249 3.95379 8.30751 3.95379 8.46841 4.38863L9.39467 6.89187C9.7849 7.94634 10.6162 8.7776 11.6706 9.16783L14.1739 10.0941C14.6087 10.255 14.6087 10.87 14.1739 11.0309L11.6706 11.9572C10.6162 12.3474 9.7849 13.1787 9.39467 14.2331L8.46841 16.7364C8.30751 17.1712 7.69248 17.1712 7.53158 16.7364L6.60533 14.2331C6.2151 13.1787 5.38384 12.3474 4.32937 11.9572L1.82613 11.0309C1.39129 10.87 1.39129 10.255 1.82613 10.0941L4.32937 9.16783C5.38384 8.7776 6.2151 7.94634 6.60533 6.89187Z",stroke:"url(#paint0_linear_2060_202)"}),b.createElement("path",{d:"M12.5625 3.25L14.625 5.3125L19.4375 0.5",stroke:"url(#paint1_linear_2060_202)",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("defs",null,b.createElement("linearGradient",{id:"paint0_linear_2060_202",x1:10.3672,y1:12.9297,x2:5.63275,y2:8.1953,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint1_linear_2060_202",x1:17.2519,y1:3.78257,x2:15.6051,y2:1.43003,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})))),{transactionDetail:gge}=F.getLocalizedStrings(),LB=(e,o,i)=>i!=null?`${e}.${i}.${o}`:`${e}.${o}`,hqn={labelWidth:new E(120,145,160),desciptionMarginRight:new E(x[1],x[4],x[4]),paddingTopBottom:new E(x[2],x[2]),marginTop:new E(x[2],x[2]),marginBottom:new E(x[2],x[2]),marginRight:new E(x[2],x[2]),labelMarginLeft:new E(x[3],x[4]),labelMarginRight:new E(x[4],x[4]),labelMarginTop:new E(x[2],x[2])},gqn={width:new E(52,56,60)};s.div`
|
|
32375
|
+
`;function pqn({transaction:e,onTransactionClick:o}){const i=K_e(e);return t.jsxRuntimeExports.jsxs(uqn,{children:[t.jsxRuntimeExports.jsx(sqn,{title:e.typeName??"",amount:e.amount,onHeaderClick:()=>{o?.(e)}}),t.jsxRuntimeExports.jsx(dqn,{values:i})]})}function K_e(e){const o=[],i=F.getLocalizedStrings().transactionDetail.transactionLabels,r=l=>l.format(F.getLocalizedStrings().dateFormat.visual.DMMMYYFormat),a=l=>Ne("0,0.00",l);if(Y.isCustomerTransaction(e)){const l=e;switch(l.type){case"invoice":o.push({title:i.invoice.invoiceNo,value:l.documentId??"-"}),o.push({title:i.invoice.invoiceDate,value:r(l.date)}),o.push({title:i.invoice.origionalAmount,value:a(l.amount)}),o.push({title:i.invoice.balanceDue,value:l.balance!=null?a(l.balance):"-"});break;case"credit_memo":o.push({title:i.creditMemo.creditMemoNo,value:l.documentId??"-"}),o.push({title:i.creditMemo.creditMemoDate,value:r(l.date)});break;case"sales_receipt":o.push({title:i.salesReceipt.salesReceiptNo,value:l.documentId??"-"}),o.push({title:i.salesReceipt.salesReceiptDate,value:r(l.date)}),o.push({title:i.salesReceipt.paymentMethod,value:l.paymentMethodName??"-"}),o.push({title:i.salesReceipt.depositedTo,value:l.account?.accountName??"-"});break;case"delayed_credit":o.push({title:i.delayedCredit.delayedCreditNo,value:l.documentId??"-"}),o.push({title:i.delayedCredit.delayedCreditDate,value:r(l.date)});break;case"refund":o.push({title:i.refund.refundReceiptNo,value:l.documentId??"-"}),o.push({title:i.refund.refundReceiptDate,value:r(l.date)}),o.push({title:i.refund.refundFrom,value:l.account?.accountName??"-"}),o.push({title:i.refund.paymentMethod,value:l.paymentTypeName??"-"});break;case"payment":o.push({title:i.receivePayment.depositedTo,value:l.account?.accountName??"-"}),l.paymentMethodName!=null&&o.push({title:i.receivePayment.paymentMethod,value:l.paymentMethodName}),o.push({title:i.receivePayment.paymentDate,value:r(l.date)}),o.push({title:i.receivePayment.referenceNo,value:l.documentId||"-"});break;default:console.error(`Unrecognised customer transaction type ${l.type}`);break}}else if(Y.isVendorTransaction(e)){const l=e;switch(l.type){case"expense":o.push({title:i.expense.paymentAc,value:l.account?.accountName??"-"}),o.push({title:i.expense.paymentMethod,value:l.paymentTypeName??"-"}),o.push({title:i.expense.paymentDate,value:r(l.date)});break;case"check":o.push({title:i.check.bankAc,value:l.account?.accountName??"-"}),o.push({title:i.check.paymentDate,value:r(l.date)});break;case"bill":o.push({title:i.bill.billDate,value:r(l.date)}),o.push({title:i.bill.billNo,value:l.documentId||"-"}),o.push({title:i.bill.dueDate,value:l.dueDate!=null?r(l.dueDate):"-"});break;case"bill_payment":case"vendor_credit":case"credit_card_credit":o.push({title:i.billPayment.paymentDate,value:r(l.date)}),o.push({title:i.billPayment.bankOrCreditAc,value:l.account?.accountName??"-"}),o.push({title:i.billPayment.referenceNo,value:l.documentId!=null&&l.documentId.length>0?l.documentId:"-"});break;default:console.error(`Unrecognised vendor transaction type ${l.type}`);break}}else if(Y.isTransferTransaction(e)){const l=e;switch(l.type){case"transfer":o.push({title:i.transfer.transferFundsFrom,value:l.fromAccount.accountName}),o.push({title:i.transfer.transferFundsTo,value:l.toAccount.accountName}),o.push({title:i.transfer.date,value:r(l.date)});break;case"credit_card_payment":o.push({title:i.creditCardPayment.paidForCreditCard,value:l.toAccount.accountName}),o.push({title:i.creditCardPayment.payee,value:l.payee?.payeeName??"-"}),o.push({title:i.creditCardPayment.amountPaid,value:a(l.amount)}),o.push({title:i.creditCardPayment.paymentDate,value:r(l.date)}),o.push({title:i.creditCardPayment.paymentMethod,value:l.fromAccount.accountName});break}}else switch(e.type){case"deposit":o.push({title:i.deposit.account,value:e.account?.accountName??"-"}),o.push({title:i.deposit.date,value:r(e.date)});break;case"journal_entry":{o.push({title:i.journalEntry.journalDate,value:r(e.date)});const{debitTotal:l,creditTotal:c}=t.journalEntryTotalsByPostingSide(e.lines??[]);o.push({title:i.journalEntry.totalDebit,value:a(l??{amount:0,currencySymbol:"$"})}),o.push({title:i.journalEntry.totalCredit,value:a(c??{amount:0,currencySymbol:"$"})});break}default:console.error(`Unrecognised transaction type ${e.type}`);break}return o}const{common:{strings:{empty:Ol}}}=F.getLocalizedStrings(),j$=()=>{const o=jn().analytics,i=h.useCallback((a,l,c,d,u)=>{if(l){let p=Ol,m=[],g=Ol,f=null;if(d){if(a==="vendor"&&d.vendor){const{name:j,cot:C,reason:w,vendorNameConfidence:R}=d.vendor;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="category"&&d.account){const{accountName:j,cot:C,reason:w,accountNameConfidence:R}=d.account;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="class"&&d.class){const{className:j,cot:C,reason:w,accountingClassNameConfidence:R}=d.class;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}}const y=m.length>0;if(o.trackTransactionCotViewAlternative({alternativeRecommendationFor:a,alternativeRecommendation:p,alternativeRecommendationCot:m,isAlternativeRecommendationCotAvailable:y,alternativeRecommendationReason:g,alternativeRecommendationConfidencePercentage:f,alternativeRecommendationConfidenceLevel:y?Mu(lc(f??void 0).toLocaleLowerCase()):null,transactionCurrentStatus:c.transactionCurrentStatus??"auto_categorized",transactionPage:c.transactionPage??"details_page",transactionId:c.cotTracking?.transactionId??null,lineId:c.cotTracking?.lineId??null}),c.cotTracking?.onCOTView!=null&&c.cotTracking.lineId!=null&&d!=null){const j=pge(d,a);j!=null&&c.cotTracking.onCOTView(c.cotTracking.lineId,c.cotTracking.transactionId,a,j)}}else{let p=Ol,m=[],g=Ol,f=null;if(u){if(a==="vendor"&&u.vendor){const{name:j,cot:C,reason:w,vendorNameConfidence:R}=u.vendor;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="category"&&u.account){const{accountName:j,cot:C,reason:w,accountNameConfidence:R}=u.account;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}else if(a==="class"&&u.class){const{className:j,cot:C,reason:w,accountingClassNameConfidence:R}=u.class;p=j??Ol,m=C??[],g=w??Ol,f=R!=null?Math.round(R*100):null}}const y=m.length>0;if(o.trackTransactionCotViewRecommended({recommendationFor:a,currentValue:c.currentValue??Ol,recommendation:p,recommendationCot:m,isRecommendationCotAvailable:y,recommendationReason:g,recommendationConfidencePercentage:f,recommendationConfidenceLevel:Mu(lc(f??void 0).toLocaleLowerCase()),transactionId:c.cotTracking?.transactionId??null,lineId:c.cotTracking?.lineId??null}),c.cotTracking?.onCOTView!=null&&c.cotTracking.lineId!=null&&u!=null){const j=pge(u,a);j!=null&&c.cotTracking.onCOTView(c.cotTracking.lineId,c.cotTracking.transactionId,a,j)}}},[o]),r=h.useCallback((a,l,c,d)=>u=>{i(a,u,l,c,d)},[i]);return{trackAlternateRecommendationExpand:i,createAlternateRecommendationCallback:r}},mqn=e=>b.createElement("svg",{viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M6.60533 6.89187L7.53159 4.38863C7.69249 3.95379 8.30751 3.95379 8.46841 4.38863L9.39467 6.89187C9.7849 7.94634 10.6162 8.7776 11.6706 9.16783L14.1739 10.0941C14.6087 10.255 14.6087 10.87 14.1739 11.0309L11.6706 11.9572C10.6162 12.3474 9.7849 13.1787 9.39467 14.2331L8.46841 16.7364C8.30751 17.1712 7.69248 17.1712 7.53158 16.7364L6.60533 14.2331C6.2151 13.1787 5.38384 12.3474 4.32937 11.9572L1.82613 11.0309C1.39129 10.87 1.39129 10.255 1.82613 10.0941L4.32937 9.16783C5.38384 8.7776 6.2151 7.94634 6.60533 6.89187Z",fill:"url(#paint0_linear_2060_173)",stroke:"url(#paint1_linear_2060_173)"}),b.createElement("path",{d:"M12.5625 3.25L14.625 5.3125L19.4375 0.5",stroke:"url(#paint2_linear_2060_173)",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("defs",null,b.createElement("linearGradient",{id:"paint0_linear_2060_173",x1:10.3672,y1:12.9297,x2:5.63275,y2:8.1953,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint1_linear_2060_173",x1:10.3672,y1:12.9297,x2:5.63275,y2:8.1953,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint2_linear_2060_173",x1:17.2519,y1:3.78257,x2:15.6051,y2:1.43003,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})))),xqn=e=>b.createElement("svg",{viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M6.60533 6.89187L7.53159 4.38863C7.69249 3.95379 8.30751 3.95379 8.46841 4.38863L9.39467 6.89187C9.7849 7.94634 10.6162 8.7776 11.6706 9.16783L14.1739 10.0941C14.6087 10.255 14.6087 10.87 14.1739 11.0309L11.6706 11.9572C10.6162 12.3474 9.7849 13.1787 9.39467 14.2331L8.46841 16.7364C8.30751 17.1712 7.69248 17.1712 7.53158 16.7364L6.60533 14.2331C6.2151 13.1787 5.38384 12.3474 4.32937 11.9572L1.82613 11.0309C1.39129 10.87 1.39129 10.255 1.82613 10.0941L4.32937 9.16783C5.38384 8.7776 6.2151 7.94634 6.60533 6.89187Z",stroke:"url(#paint0_linear_2060_202)"}),b.createElement("path",{d:"M12.5625 3.25L14.625 5.3125L19.4375 0.5",stroke:"url(#paint1_linear_2060_202)",strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("defs",null,b.createElement("linearGradient",{id:"paint0_linear_2060_202",x1:10.3672,y1:12.9297,x2:5.63275,y2:8.1953,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})),b.createElement("linearGradient",{id:"paint1_linear_2060_202",x1:17.2519,y1:3.78257,x2:15.6051,y2:1.43003,gradientUnits:"userSpaceOnUse"},b.createElement("stop",{stopColor:"#6D3FD8"}),b.createElement("stop",{offset:.3,stopColor:"#BD54CF"}),b.createElement("stop",{offset:.5,stopColor:"#CF6CC9"}),b.createElement("stop",{offset:.7,stopColor:"#EE609C"}),b.createElement("stop",{offset:1,stopColor:"#EE609C"})))),{transactionDetail:gge}=F.getLocalizedStrings(),LB=(e,o,i)=>i!=null?`${e}.${i}.${o}`:`${e}.${o}`,hqn={labelWidth:new E(120,145,160),desciptionMarginRight:new E(x[1],x[4],x[4]),paddingTopBottom:new E(x[2],x[2]),marginTop:new E(x[2],x[2]),marginBottom:new E(x[2],x[2]),marginRight:new E(x[2],x[2]),labelMarginLeft:new E(x[3],x[4]),labelMarginRight:new E(x[4],x[4]),labelMarginTop:new E(x[2],x[2])},gqn={width:new E(52,56,60)};s.div`
|
|
32376
32376
|
padding: ${n.sp3};
|
|
32377
32377
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
32378
32378
|
justify-content: center;
|
|
@@ -32692,7 +32692,7 @@ to {
|
|
|
32692
32692
|
margin-left: auto;
|
|
32693
32693
|
flex-shrink: 0;
|
|
32694
32694
|
padding-right: ${n.sp2};
|
|
32695
|
-
`,fZn=e=>{const{children:o,selectProps:i}=e,{showDownChevronWithValue:r}=i;return t.jsxRuntimeExports.jsxs(t.components.ValueContainer,{...e,className:"select-value-container",children:[o,r===!0?t.jsxRuntimeExports.jsx(gZn,{children:t.jsxRuntimeExports.jsx(hZn,{})}):null]})},yZn=e=>{const{selectProps:o}=e,{placeholder:i,value:r}=o;return t.jsxRuntimeExports.jsx(t.components.Input,{...e,autoComplete:"off",placeholder:r==null?i:void 0,"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-input"),children:e.children})},jZn=e=>{const{children:o,selectProps:i}=e,{customFirstGroup:r,updateCustomFirstGroup:a,getRenameOptionText:l,onClickRenameOption:c}=i,d=te(),u=l?.(e.selectProps.inputValue);return h.useEffect(()=>{r==null&&a(o[0])},[r,a,o]),t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e.isLoading===!0?t.jsxRuntimeExports.jsxs(t.components.MenuList,{...e,children:[r,t.jsxRuntimeExports.jsx(GZn,{windowSize:d,children:[...Array(2)].map((p,m)=>t.jsxRuntimeExports.jsxs(qZn,{windowSize:d,children:[t.jsxRuntimeExports.jsx(Ys,{width:x[4],height:x[4]}),t.jsxRuntimeExports.jsx(Ce,{width:218,height:x[4]})]},m))})]}):t.jsxRuntimeExports.jsxs(t.components.MenuList,{...e,children:[o,u!=null&&u.length>0?t.jsxRuntimeExports.jsxs(ZZn,{onClick:()=>{c?.(e.selectProps.inputValue)},"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-rename-option",e.selectProps.inputValue),children:[t.jsxRuntimeExports.jsx(KZn,{children:t.jsxRuntimeExports.jsx(JZn,{})}),t.jsxRuntimeExports.jsx(XZn,{children:u})]}):null]})})},CZn=e=>t.jsxRuntimeExports.jsx(t.components.Group,{...e,children:e.children}),bZn=e=>{const[o,i]=h.useState(!0),r=a=>{a.preventDefault(),a.stopPropagation(),i(!o)};return t.jsxRuntimeExports.jsx(YZn,{className:"group-heading-container",isGroupOpen:o,onClick:r,"data-testid":M("group-heading",e.data.label),children:t.jsxRuntimeExports.jsxs(t.components.GroupHeading,{...e,children:[t.jsxRuntimeExports.jsx(UZn,{isGroupOpen:o,children:t.jsxRuntimeExports.jsx(QZn,{})}),e.children]})})},wZn=({children:e,...o},i)=>{const r=i==null||o.selectProps.menuIsOpen===!0?e:i.sticky===!0?t.jsxRuntimeExports.jsx(RZn,{title:i.text,children:e}):t.jsxRuntimeExports.jsx(Pe,{style:{padding:n.sp3},title:i.text,placement:"top",children:e});return t.jsxRuntimeExports.jsx(t.components.SingleValue,{...o,children:r})},EZn=()=>null,AZn=(e,o,i,r,a,l,c,d,u)=>{const{data:p,isSelected:m,isDisabled:g,isFocused:f}=e,y=typeof p.label=="string"?p.label:p.value,j=mZn(p,m,o,i,r,a,d),w=jn().analytics,R=h.useCallback(()=>{const I=(e.value!=null&&e.value!==vk?e?.getValue(e.value):null)?.[0]?.label??vk,T=p.recommendedOptionIndex===1?"alternative":"primary",$=j?.recommendations[0],k=$?.cot??[];w.trackTransactionCotDropdownView({recommendationType:T,recommendationFor:a,currentValue:I,recommendation:$?.name??vk,recommendationCot:k,isRecommendationCotAvailable:k.length>0,recommendationReason:$?.reason??vk,recommendationConfidenceLevel:Mu(lc($?.confidencePercentage).toLocaleLowerCase()),transactionPage:i,transactionCurrentStatus:r,recommendationConfidencePercentage:$?.confidencePercentage??null}),u!=null&&$!=null&&$.cot.length>0&&u(a,$.source)},[w,j,i,r,a,e,p.recommendedOptionIndex]),A=t.jsxRuntimeExports.jsx(IZn,{className:"select-option-wrapper",isFocused:f,isSelected:m,isDisabled:g,isOptionRemovable:l,isOptionRecommended:!!p?.isOptionRecommended,showBottomBorder:p?.info==null||p?.isOptionRecommended!==!0,"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-option",y),children:t.jsxRuntimeExports.jsx(t.components.Option,{...e,className:"select-option",children:t.jsxRuntimeExports.jsxs(TZn,{isOptionRecommended:p?.isOptionRecommended,children:[!!p?.isOptionRecommended&&t.jsxRuntimeExports.jsx(MZn,{children:t.jsxRuntimeExports.jsx(OZn,{})}),t.jsxRuntimeExports.jsxs(PZn,{children:[t.jsxRuntimeExports.jsx(DZn,{isSelected:m,children:t.jsxRuntimeExports.jsx(LZn,{isSelected:m,isDisabled:g,children:p.label})}),p?.isOptionRecommended&&p.info?t.jsxRuntimeExports.jsx(BZn,{isSelected:m,isDisabled:g,children:p.info}):null]}),t.jsxRuntimeExports.jsxs(FZn,{children:[p?.isOptionRecommended?t.jsxRuntimeExports.jsxs(zZn,{children:[t.jsxRuntimeExports.jsx(NZn,{confidence:p.confidencePercentage,children:lc(p.confidencePercentage)}),t.jsxRuntimeExports.jsx(HZn,{className:"confidence-label",children:dZn})]}):null,m===!0?t.jsxRuntimeExports.jsxs(WZn,{children:[t.jsxRuntimeExports.jsx(co,{className:"right-tick-icon",height:n.sp3,width:n.sp3}),t.jsxRuntimeExports.jsx(_t,{className:"close-tick-icon",height:n.sp3,width:n.sp3,"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-option-cancel",y)})]}):p?.isOptionRecommended===!0?m===!0?t.jsxRuntimeExports.jsx(_Zn,{children:t.jsxRuntimeExports.jsx(co,{height:n.sp3,width:n.sp3,style:{transform:"rotate(0deg)"}})}):t.jsxRuntimeExports.jsx(VZn,{}):null]})]})})});return j!=null&&p?.isOptionRecommended&&o?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:j,placement:c??"right-start",enterDelay:300,leaveDelay:100,offset:[0,0],position:"static",display:"block",style:{width:"100%",height:"100%",marginLeft:n.sp0,marginRight:n.sp0},onOpen:R,children:A}):A},RZn=({children:e,title:o})=>t.jsxRuntimeExports.jsxs(vZn,{children:[t.jsxRuntimeExports.jsxs($Zn,{children:[o,t.jsxRuntimeExports.jsx(SZn,{})]}),e]}),vZn=s.div`
|
|
32695
|
+
`,fZn=e=>{const{children:o,selectProps:i}=e,{showDownChevronWithValue:r}=i;return t.jsxRuntimeExports.jsxs(t.components.ValueContainer,{...e,className:"select-value-container",children:[o,r===!0?t.jsxRuntimeExports.jsx(gZn,{children:t.jsxRuntimeExports.jsx(hZn,{})}):null]})},yZn=e=>{const{selectProps:o}=e,{placeholder:i,value:r}=o;return t.jsxRuntimeExports.jsx(t.components.Input,{...e,autoComplete:"off",placeholder:r==null?i:void 0,"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-input"),children:e.children})},jZn=e=>{const{children:o,selectProps:i}=e,{customFirstGroup:r,updateCustomFirstGroup:a,getRenameOptionText:l,onClickRenameOption:c}=i,d=te(),u=l?.(e.selectProps.inputValue);return h.useEffect(()=>{r==null&&a(o[0])},[r,a,o]),t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e.isLoading===!0?t.jsxRuntimeExports.jsxs(t.components.MenuList,{...e,children:[r,t.jsxRuntimeExports.jsx(GZn,{windowSize:d,children:[...Array(2)].map((p,m)=>t.jsxRuntimeExports.jsxs(qZn,{windowSize:d,children:[t.jsxRuntimeExports.jsx(Ys,{width:x[4],height:x[4]}),t.jsxRuntimeExports.jsx(Ce,{width:218,height:x[4]})]},m))})]}):t.jsxRuntimeExports.jsxs(t.components.MenuList,{...e,children:[o,u!=null&&u.length>0?t.jsxRuntimeExports.jsxs(ZZn,{onClick:()=>{c?.(e.selectProps.inputValue)},"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-rename-option",e.selectProps.inputValue),children:[t.jsxRuntimeExports.jsx(KZn,{children:t.jsxRuntimeExports.jsx(JZn,{})}),t.jsxRuntimeExports.jsx(XZn,{children:u})]}):null]})})},CZn=e=>t.jsxRuntimeExports.jsx(t.components.Group,{...e,children:e.children}),bZn=e=>{const[o,i]=h.useState(!0),r=a=>{a.preventDefault(),a.stopPropagation(),i(!o)};return t.jsxRuntimeExports.jsx(YZn,{className:"group-heading-container",isGroupOpen:o,onClick:r,"data-testid":M("group-heading",e.data.label),children:t.jsxRuntimeExports.jsxs(t.components.GroupHeading,{...e,children:[t.jsxRuntimeExports.jsx(UZn,{isGroupOpen:o,children:t.jsxRuntimeExports.jsx(QZn,{})}),e.children]})})},wZn=({children:e,...o},i)=>{const r=i==null||o.selectProps.menuIsOpen===!0?e:i.sticky===!0?t.jsxRuntimeExports.jsx(RZn,{title:i.text,children:e}):t.jsxRuntimeExports.jsx(Pe,{style:{padding:n.sp3},title:i.text,placement:"top",children:e});return t.jsxRuntimeExports.jsx(t.components.SingleValue,{...o,children:r})},EZn=()=>null,AZn=(e,o,i,r,a,l,c,d,u)=>{const{data:p,isSelected:m,isDisabled:g,isFocused:f}=e,y=typeof p.label=="string"?p.label:p.value,j=mZn(p,m,o,i,r,a,d),w=jn().analytics,R=h.useCallback(()=>{const I=(e.value!=null&&e.value!==vk?e?.getValue(e.value):null)?.[0]?.label??vk,T=p.recommendedOptionIndex===1?"alternative":"primary",$=j?.recommendations[0],k=$?.cot??[];w.trackTransactionCotDropdownView({recommendationType:T,recommendationFor:a,currentValue:I,recommendation:$?.name??vk,recommendationCot:k,isRecommendationCotAvailable:k.length>0,recommendationReason:$?.reason??vk,recommendationConfidenceLevel:Mu(lc($?.confidencePercentage).toLocaleLowerCase()),transactionPage:i,transactionCurrentStatus:r,recommendationConfidencePercentage:$?.confidencePercentage??null,transactionId:null,lineId:null}),u!=null&&$!=null&&$.cot.length>0&&u(a,$.source)},[w,j,i,r,a,e,p.recommendedOptionIndex]),A=t.jsxRuntimeExports.jsx(IZn,{className:"select-option-wrapper",isFocused:f,isSelected:m,isDisabled:g,isOptionRemovable:l,isOptionRecommended:!!p?.isOptionRecommended,showBottomBorder:p?.info==null||p?.isOptionRecommended!==!0,"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-option",y),children:t.jsxRuntimeExports.jsx(t.components.Option,{...e,className:"select-option",children:t.jsxRuntimeExports.jsxs(TZn,{isOptionRecommended:p?.isOptionRecommended,children:[!!p?.isOptionRecommended&&t.jsxRuntimeExports.jsx(MZn,{children:t.jsxRuntimeExports.jsx(OZn,{})}),t.jsxRuntimeExports.jsxs(PZn,{children:[t.jsxRuntimeExports.jsx(DZn,{isSelected:m,children:t.jsxRuntimeExports.jsx(LZn,{isSelected:m,isDisabled:g,children:p.label})}),p?.isOptionRecommended&&p.info?t.jsxRuntimeExports.jsx(BZn,{isSelected:m,isDisabled:g,children:p.info}):null]}),t.jsxRuntimeExports.jsxs(FZn,{children:[p?.isOptionRecommended?t.jsxRuntimeExports.jsxs(zZn,{children:[t.jsxRuntimeExports.jsx(NZn,{confidence:p.confidencePercentage,children:lc(p.confidencePercentage)}),t.jsxRuntimeExports.jsx(HZn,{className:"confidence-label",children:dZn})]}):null,m===!0?t.jsxRuntimeExports.jsxs(WZn,{children:[t.jsxRuntimeExports.jsx(co,{className:"right-tick-icon",height:n.sp3,width:n.sp3}),t.jsxRuntimeExports.jsx(_t,{className:"close-tick-icon",height:n.sp3,width:n.sp3,"data-testid":M("auto-complete-grouped-creatable-single-select-custom-group-option-cancel",y)})]}):p?.isOptionRecommended===!0?m===!0?t.jsxRuntimeExports.jsx(_Zn,{children:t.jsxRuntimeExports.jsx(co,{height:n.sp3,width:n.sp3,style:{transform:"rotate(0deg)"}})}):t.jsxRuntimeExports.jsx(VZn,{}):null]})]})})});return j!=null&&p?.isOptionRecommended&&o?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:j,placement:c??"right-start",enterDelay:300,leaveDelay:100,offset:[0,0],position:"static",display:"block",style:{width:"100%",height:"100%",marginLeft:n.sp0,marginRight:n.sp0},onOpen:R,children:A}):A},RZn=({children:e,title:o})=>t.jsxRuntimeExports.jsxs(vZn,{children:[t.jsxRuntimeExports.jsxs($Zn,{children:[o,t.jsxRuntimeExports.jsx(SZn,{})]}),e]}),vZn=s.div`
|
|
32696
32696
|
position: relative;
|
|
32697
32697
|
display: none;
|
|
32698
32698
|
`,$Zn=s.div`
|
|
@@ -33073,7 +33073,7 @@ to {
|
|
|
33073
33073
|
cursor: pointer;
|
|
33074
33074
|
width: ${n.sp3};
|
|
33075
33075
|
height: ${n.sp3};
|
|
33076
|
-
`,wge=({isEnabled:e,isMisCategorized:o,hasRecommendations:i,isTooltipVisible:r=!1,type:a})=>e?r?t.jsxRuntimeExports.jsx(gKn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(fKn,{className:"ai-icon-selected-plain","data-testid":M("recommendation-icon",a)}):o||i?r?t.jsxRuntimeExports.jsx(jKn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(yKn,{"data-testid":M("recommendation-icon",a)}):null,QJ=({children:e})=>t.jsxRuntimeExports.jsx(mWe,{children:e}),HV=({recommendations:e,isCOTEnabled:o,type:i,isReviewTab:r,selectedValueLabel:a,isEnabled:l=!1,isMisCategorized:c=!1,selectedValue:d,existingOption:u,cotTracking:p,lineId:m,openTooltipId:g,transactionId:f,isAccountOptionDisabled:y,onRecommendationClick:j,setOpenTooltipId:C})=>{const w=h.useMemo(()=>`${f}:${m}:${i}`,[f,m,i]),R=g===w,v=jn().analytics,{createAlternateRecommendationCallback:I}=j$(),T=h.useCallback(O=>{const H=e[1],V=e[0];I(i,{currentValue:a??U5.empty,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:p?{transactionId:f,lineId:m,onCOTView:(N,z,_,U)=>{p.onCOTView?.(N,z,_,U)}}:void 0},H,V)(O)},[I,e,a,r,i,p,m,f]),$=Vv(e,i,o,u,"list_page",r?"pending_review":"auto_categorized",j,T,d,y),k=V7(e,i),P=h.useCallback(()=>{C(w);const O=$?.recommendations[0]?.cot??[],H=$?.recommendations[1]?.cot??[],V=H.length>0;if(v.trackTransactionCotView?.({recommendationFor:i,currentValue:a??U5.empty,recommendation:$?.recommendations[0]?.name??U5.empty,recommendationCot:O,isRecommendationCotAvailable:O.length>0,recommendationReason:$?.recommendations[0]?.reason??U5.empty,recommendationConfidencePercentage:$?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc($?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:$?.recommendations[1]?.name??U5.empty,alternativeRecommendationCot:H,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:$?.recommendations[1]?.reason??U5.empty,alternativeRecommendationConfidencePercentage:$?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Mu(lc($?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),p?.onCOTView!=null){const N=h$($);N!=null&&p.onCOTView(m,f,i,N)}},[v,$,p,r,a,i,m,f,w,C]),L=h.useCallback(()=>{g===w&&C(void 0)},[g,w,C]),B=h.useMemo(()=>!d||!k?!1:e.some(O=>i==="vendor"&&O.vendor!=null?O.vendor.id===d||O.vendor.qboId===d:i==="category"&&O.account!=null?O.account.qboId===d||O.account.accountId===d:i==="class"&&O.class!=null?O.class.classId===d:!1),[d,k,e,i]);if(!k)return t.jsxRuntimeExports.jsx(mWe,{});const D=l||B;return $?t.jsxRuntimeExports.jsx(QJ,{children:t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:$,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:P,onClose:L,children:t.jsxRuntimeExports.jsx(CKn,{"data-testid":M("recommendation-icon",i),children:t.jsxRuntimeExports.jsx(wge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R})})})}):t.jsxRuntimeExports.jsx(QJ,{children:t.jsxRuntimeExports.jsx(wge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R,type:i})})},bKn=s.div`
|
|
33076
|
+
`,wge=({isEnabled:e,isMisCategorized:o,hasRecommendations:i,isTooltipVisible:r=!1,type:a})=>e?r?t.jsxRuntimeExports.jsx(gKn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(fKn,{className:"ai-icon-selected-plain","data-testid":M("recommendation-icon",a)}):o||i?r?t.jsxRuntimeExports.jsx(jKn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(yKn,{"data-testid":M("recommendation-icon",a)}):null,QJ=({children:e})=>t.jsxRuntimeExports.jsx(mWe,{children:e}),HV=({recommendations:e,isCOTEnabled:o,type:i,isReviewTab:r,selectedValueLabel:a,isEnabled:l=!1,isMisCategorized:c=!1,selectedValue:d,existingOption:u,cotTracking:p,lineId:m,openTooltipId:g,transactionId:f,isAccountOptionDisabled:y,onRecommendationClick:j,setOpenTooltipId:C})=>{const w=h.useMemo(()=>`${f}:${m}:${i}`,[f,m,i]),R=g===w,v=jn().analytics,{createAlternateRecommendationCallback:I}=j$(),T=h.useCallback(O=>{const H=e[1],V=e[0];I(i,{currentValue:a??U5.empty,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:p?{transactionId:f,lineId:m,onCOTView:(N,z,_,U)=>{p.onCOTView?.(N,z,_,U)}}:void 0},H,V)(O)},[I,e,a,r,i,p,m,f]),$=Vv(e,i,o,u,"list_page",r?"pending_review":"auto_categorized",j,T,d,y),k=V7(e,i),P=h.useCallback(()=>{C(w);const O=$?.recommendations[0]?.cot??[],H=$?.recommendations[1]?.cot??[],V=H.length>0;if(v.trackTransactionCotView?.({recommendationFor:i,currentValue:a??U5.empty,recommendation:$?.recommendations[0]?.name??U5.empty,recommendationCot:O,isRecommendationCotAvailable:O.length>0,recommendationReason:$?.recommendations[0]?.reason??U5.empty,recommendationConfidencePercentage:$?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc($?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:$?.recommendations[1]?.name??U5.empty,alternativeRecommendationCot:H,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:$?.recommendations[1]?.reason??U5.empty,alternativeRecommendationConfidencePercentage:$?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Mu(lc($?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",transactionId:f??null,lineId:m??null}),p?.onCOTView!=null){const N=h$($);N!=null&&p.onCOTView(m,f,i,N)}},[v,$,p,r,a,i,m,f,w,C]),L=h.useCallback(()=>{g===w&&C(void 0)},[g,w,C]),B=h.useMemo(()=>!d||!k?!1:e.some(O=>i==="vendor"&&O.vendor!=null?O.vendor.id===d||O.vendor.qboId===d:i==="category"&&O.account!=null?O.account.qboId===d||O.account.accountId===d:i==="class"&&O.class!=null?O.class.classId===d:!1),[d,k,e,i]);if(!k)return t.jsxRuntimeExports.jsx(mWe,{});const D=l||B;return $?t.jsxRuntimeExports.jsx(QJ,{children:t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:$,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:P,onClose:L,children:t.jsxRuntimeExports.jsx(CKn,{"data-testid":M("recommendation-icon",i),children:t.jsxRuntimeExports.jsx(wge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R})})})}):t.jsxRuntimeExports.jsx(QJ,{children:t.jsxRuntimeExports.jsx(wge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R,type:i})})},bKn=s.div`
|
|
33077
33077
|
display: flex;
|
|
33078
33078
|
align-items: center;
|
|
33079
33079
|
flex-direction: row;
|
|
@@ -33584,7 +33584,7 @@ to {
|
|
|
33584
33584
|
cursor: pointer;
|
|
33585
33585
|
width: ${n.sp3};
|
|
33586
33586
|
height: ${n.sp3};
|
|
33587
|
-
`,Sge=({isEnabled:e,isMisCategorized:o,hasRecommendations:i,isTooltipVisible:r=!1,type:a})=>e?r?t.jsxRuntimeExports.jsx($Jn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(SJn,{className:"ai-icon-selected-plain","data-testid":M("recommendation-icon",a)}):o||i?r?t.jsxRuntimeExports.jsx(IJn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(kJn,{"data-testid":M("recommendation-icon",a)}):null,YJ=({children:e})=>t.jsxRuntimeExports.jsx(kWe,{children:e}),kge=({recommendations:e,isCOTEnabled:o,type:i,isReviewTab:r,selectedValueLabel:a,isEnabled:l=!1,isMisCategorized:c=!1,selectedValue:d,existingOption:u,cotTracking:p,lineId:m,openTooltipId:g,transactionId:f,isAccountOptionDisabled:y,onRecommendationClick:j,setOpenTooltipId:C})=>{const w=h.useMemo(()=>`${f}:${m}:${i}`,[f,m,i]),R=g===w,v=jn().analytics,{createAlternateRecommendationCallback:I}=j$(),T=h.useCallback(O=>{const H=e[1],V=e[0];I(i,{currentValue:a??e6.empty,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:p?{transactionId:f,lineId:m,onCOTView:(N,z,_,U)=>{p.onCOTView?.(N,z,_,U)}}:void 0},H,V)(O)},[I,e,a,r,i,p,m,f]),$=Vv(e,i,o,u,"list_page",r?"pending_review":"auto_categorized",j,T,d,y),k=V7(e,i),P=h.useCallback(()=>{C(w);const O=$?.recommendations[0]?.cot??[],H=$?.recommendations[1]?.cot??[],V=H.length>0;if(v.trackTransactionCotView?.({recommendationFor:i,currentValue:a??e6.empty,recommendation:$?.recommendations[0]?.name??e6.empty,recommendationCot:O,isRecommendationCotAvailable:O.length>0,recommendationReason:$?.recommendations[0]?.reason??e6.empty,recommendationConfidencePercentage:$?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc($?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:$?.recommendations[1]?.name??e6.empty,alternativeRecommendationCot:H,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:$?.recommendations[1]?.reason??e6.empty,alternativeRecommendationConfidencePercentage:$?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Mu(lc($?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),p?.onCOTView!=null){const N=h$($);N!=null&&p.onCOTView(m,f,i,N)}},[v,$,p,r,a,i,m,f,w,C]),L=h.useCallback(()=>{g===w&&C(void 0)},[g,w,C]),B=h.useMemo(()=>!d||!k?!1:e.some(O=>i==="vendor"&&O.vendor!=null?O.vendor.id===d||O.vendor.qboId===d:i==="category"&&O.account!=null?O.account.qboId===d||O.account.accountId===d:i==="class"&&O.class!=null?O.class.classId===d:!1),[d,k,e,i]);if(!k)return t.jsxRuntimeExports.jsx(kWe,{});const D=l||B;return $?t.jsxRuntimeExports.jsx(YJ,{children:t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:$,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:P,onClose:L,children:t.jsxRuntimeExports.jsx(TJn,{"data-testid":M("recommendation-icon",i),children:t.jsxRuntimeExports.jsx(Sge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R})})})}):t.jsxRuntimeExports.jsx(YJ,{children:t.jsxRuntimeExports.jsx(Sge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R,type:i})})},LJn=s.div`
|
|
33587
|
+
`,Sge=({isEnabled:e,isMisCategorized:o,hasRecommendations:i,isTooltipVisible:r=!1,type:a})=>e?r?t.jsxRuntimeExports.jsx($Jn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(SJn,{className:"ai-icon-selected-plain","data-testid":M("recommendation-icon",a)}):o||i?r?t.jsxRuntimeExports.jsx(IJn,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(kJn,{"data-testid":M("recommendation-icon",a)}):null,YJ=({children:e})=>t.jsxRuntimeExports.jsx(kWe,{children:e}),kge=({recommendations:e,isCOTEnabled:o,type:i,isReviewTab:r,selectedValueLabel:a,isEnabled:l=!1,isMisCategorized:c=!1,selectedValue:d,existingOption:u,cotTracking:p,lineId:m,openTooltipId:g,transactionId:f,isAccountOptionDisabled:y,onRecommendationClick:j,setOpenTooltipId:C})=>{const w=h.useMemo(()=>`${f}:${m}:${i}`,[f,m,i]),R=g===w,v=jn().analytics,{createAlternateRecommendationCallback:I}=j$(),T=h.useCallback(O=>{const H=e[1],V=e[0];I(i,{currentValue:a??e6.empty,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:p?{transactionId:f,lineId:m,onCOTView:(N,z,_,U)=>{p.onCOTView?.(N,z,_,U)}}:void 0},H,V)(O)},[I,e,a,r,i,p,m,f]),$=Vv(e,i,o,u,"list_page",r?"pending_review":"auto_categorized",j,T,d,y),k=V7(e,i),P=h.useCallback(()=>{C(w);const O=$?.recommendations[0]?.cot??[],H=$?.recommendations[1]?.cot??[],V=H.length>0;if(v.trackTransactionCotView?.({recommendationFor:i,currentValue:a??e6.empty,recommendation:$?.recommendations[0]?.name??e6.empty,recommendationCot:O,isRecommendationCotAvailable:O.length>0,recommendationReason:$?.recommendations[0]?.reason??e6.empty,recommendationConfidencePercentage:$?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc($?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:$?.recommendations[1]?.name??e6.empty,alternativeRecommendationCot:H,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:$?.recommendations[1]?.reason??e6.empty,alternativeRecommendationConfidencePercentage:$?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Mu(lc($?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",transactionId:f??null,lineId:m??null}),p?.onCOTView!=null){const N=h$($);N!=null&&p.onCOTView(m,f,i,N)}},[v,$,p,r,a,i,m,f,w,C]),L=h.useCallback(()=>{g===w&&C(void 0)},[g,w,C]),B=h.useMemo(()=>!d||!k?!1:e.some(O=>i==="vendor"&&O.vendor!=null?O.vendor.id===d||O.vendor.qboId===d:i==="category"&&O.account!=null?O.account.qboId===d||O.account.accountId===d:i==="class"&&O.class!=null?O.class.classId===d:!1),[d,k,e,i]);if(!k)return t.jsxRuntimeExports.jsx(kWe,{});const D=l||B;return $?t.jsxRuntimeExports.jsx(YJ,{children:t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:$,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:P,onClose:L,children:t.jsxRuntimeExports.jsx(TJn,{"data-testid":M("recommendation-icon",i),children:t.jsxRuntimeExports.jsx(Sge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R})})})}):t.jsxRuntimeExports.jsx(YJ,{children:t.jsxRuntimeExports.jsx(Sge,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R,type:i})})},LJn=s.div`
|
|
33588
33588
|
display: flex;
|
|
33589
33589
|
align-items: center;
|
|
33590
33590
|
flex-direction: row;
|
|
@@ -33903,7 +33903,7 @@ to {
|
|
|
33903
33903
|
width: ${n.sp3};
|
|
33904
33904
|
height: ${n.sp3};
|
|
33905
33905
|
color: ${e=>e.theme.colors.grey1};
|
|
33906
|
-
`,vXn=e=>`${e}`,$Xn=({isRecommendedSelected:e,hasRecommendations:o,isTooltipVisible:i=!1})=>o?e?i?t.jsxRuntimeExports.jsx(RXn,{}):t.jsxRuntimeExports.jsx(AXn,{}):i?t.jsxRuntimeExports.jsx(EXn,{}):t.jsxRuntimeExports.jsx(wXn,{}):null,SXn=({children:e,style:o})=>t.jsxRuntimeExports.jsx(CXn,{style:o,children:e}),eQ=({vendorFieldUniqueName:e,recommendationsWithCOT:o,isCOTEnabled:i,transaction:r,allOptions:a,selectedEntity:l,cotTracking:c,openTooltipId:d,setOpenTooltipId:u})=>{const p=h.useMemo(()=>`${r.id}:vendor:title`,[r.id]),m=d===p,{setValue:g}=t.useFormContext(),y=jn().analytics,{createAlternateRecommendationCallback:j}=j$(),C=h.useCallback(I=>{g(e,{selectedOption:I,defaultOptions:a},{shouldValidate:!0,shouldDirty:!0})},[g,e,a]),w=h.useCallback(I=>{const T=o[1],$=o[0];j("vendor",{currentValue:l?.name,transactionCurrentStatus:null,transactionPage:"details_page",cotTracking:c},T,$)(I)},[j,o,l,c]),R=Vv(o,"vendor",i,{label:r.vendorName,value:r.vendorId},"details_page",null,C,w,l?.qboId??l?.id),A=V7(o,"vendor"),v=h.useMemo(()=>!(l?.qboId??l?.id)||!A?!1:o.some(I=>I.vendor!=null?I.vendor.qboId===l?.qboId||I.vendor.id===l?.id:!1),[l?.qboId,l?.id,A,o]);return A?t.jsxRuntimeExports.jsx(SXn,{children:R?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:R,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:m,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:()=>{u(p);const I=l?.name??X9,T=R?.recommendations[0]?.cot??[],$=R?.recommendations[1]?.cot??[],k=T.length>0,P=$.length>0,L=P?Mu(lc(R?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null;if(y.trackTransactionCotView({recommendationFor:"vendor",currentValue:I,recommendation:R?.recommendations[0]?.name??X9,recommendationCot:T,isRecommendationCotAvailable:k,recommendationReason:R?.recommendations[0]?.reason??X9,recommendationConfidencePercentage:R?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc(R?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:R?.recommendations[1]?.name??X9,alternativeRecommendationCot:$,isAlternativeRecommendationCotAvailable:P,alternativeRecommendationReason:R?.recommendations[1]?.reason??X9,alternativeRecommendationConfidencePercentage:R?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:L,transactionCurrentStatus:null,transactionPage:"details_page"}),c?.onCOTView!=null&&c.lineId!=null){const B=h$(R);B!=null&&c.onCOTView(c.lineId,c.transactionId,"vendor",B)}},onClose:()=>{d===p&&u(void 0)},children:t.jsxRuntimeExports.jsx(bXn,{"data-testid":M("vendor-ai-icon",e),children:t.jsxRuntimeExports.jsx($Xn,{isRecommendedSelected:v,hasRecommendations:A,isTooltipVisible:m})})}):null}):null};function kXn({transaction:e,sectionId:o,existingVendor:i,existingCustomer:r,selectedEntity:a,isCOTEnabled:l,isQuickViewMode:c,vendorSearchAutoComplete:d,recommendationsWithCOT:u,cotTracking:p,handleVendorRename:m,handleCustomerRename:g,openTooltipId:f,setOpenTooltipId:y,onTransactionTypeChangeToTransfer:j,menuPortalTarget:C,transferConvertibleSourceTypes:w}){const R=t.useTheme(),A=te(),[v,I]=h.useState(!1),T=h.useCallback((q,X)=>{p?.onCOTView!=null&&p.lineId!=null&&p.onCOTView(p.lineId,p.transactionId,q,X)},[p]),$=()=>{let q;switch(e.type){case"invoice":case"credit_memo":{e.balance?.amount===0&&(q=_j.header.paidTag);break}case"vendor_credit":case"bill":{e.balance?.amount===0&&(q=_j.header.paidTag);break}case"payment":{e.balance?.amount===0&&(q=_j.header.receivedTag);break}case"credit_card_payment":q=_j.header.paidTag;break}return q==null?null:t.jsxRuntimeExports.jsx(xXn,{"data-testid":M("balance-status-tag",o),children:t.jsxRuntimeExports.jsx(At,{label:q,type:"success"})})},k=q=>Y.isVendorTransaction(q)&&(q.type==="bill"||q.type==="bill_payment"),P=()=>{I(!1)},L=h.useMemo(()=>Y.isVendorTransaction(e)?k(e)?!((e.linkedTransactions?.length??0)>0):!0:!1,[e]),B=h.useMemo(()=>{if(r!=null)return{id:r.id,name:r.name,type:"customer"};if(i!=null)return{id:i.id,name:i.name,type:"vendor"}},[r,i]),D=q=>{Y.isVendorTransactionWithCustomer(e)?g?.(q):m?.(q)},O=q=>{if(B==null)return null;const X=B?.name;return(a?.id!=null||(a?.name.length??0)>0)&&q.trim().length>0&&q!==X?_j.vendorDetails.fromOldName.replace("__old_name__",X??"")+" "+_j.vendorDetails.toNewName.replace("__new_name__",q??""):null},H=h.useMemo(()=>({selectedOption:a?.qboId??a?.id??a?.name,defaultOptions:pb(d.autoCompleteData.entityAutoCompleteView,a,u)}),[d.autoCompleteData.entityAutoCompleteView,u,a]),V=q=>u?.find(G=>G.vendor?.qboId===q||G.vendor?.id===q||G.vendor?.name===q)?.vendor?.reason??"",N=()=>{const q=_j;return{placeholder:q.payeeDetails.payeeListPlaceholder,tooltip:q.payeeDetails.editPayeeTooltip,addButton:q.payeeDetails.addPayee}},z=V7(u??[],"vendor"),_=vXn(o),U=N(),Q=L?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a?.id!=null||v===!0?v?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:P,children:t.jsxRuntimeExports.jsx(yXn,{windowSize:A,children:t.jsxRuntimeExports.jsx(jXn,{children:t.jsxRuntimeExports.jsxs(XV,{children:[t.jsxRuntimeExports.jsx(eQ,{vendorFieldUniqueName:_,recommendationsWithCOT:u??[],isCOTEnabled:l,transaction:e,selectedEntity:a,allOptions:H.defaultOptions,cotTracking:p,openTooltipId:f,setOpenTooltipId:y}),t.jsxRuntimeExports.jsx(jse,{name:_,placeholder:U.placeholder,defaultValue:H,autoFocus:!0,pageSource:"details_page",transactionStatus:null,type:"vendor",customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start",margin:`${n.sp0} ${n.sp3}`}),singleValue:()=>({display:"flex",alignItems:"center",color:R.colors.hero,"&:hover":{color:R.colors.primary}}),menuPortal:q=>({...q,zIndex:uXn})},style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:"20px",cursor:"inherit",alignItems:"center"},valueToInfo:V,menuIsOpen:v,showDownChevronWithValue:!0,getRenameOptionText:O,onMenuClose:P,loadOptions:d.loadOptions,isOptionRemovable:!1,onClickRenameOption:D,showCOT:l,onCOTView:T,menuPortal:C??(typeof document<"u"?document.body:null)})]})})})}):t.jsxRuntimeExports.jsx(Pe,{style:{padding:`2px ${n.sp2}`},title:U.tooltip,enterDelay:600,placement:"bottom",children:t.jsxRuntimeExports.jsxs(XV,{children:[t.jsxRuntimeExports.jsx(eQ,{vendorFieldUniqueName:_,recommendationsWithCOT:u??[],isCOTEnabled:l,transaction:e,selectedEntity:a,allOptions:H.defaultOptions,cotTracking:p,openTooltipId:f,setOpenTooltipId:y}),t.jsxRuntimeExports.jsx(Lge,{windowSize:A,onClick:()=>I(!0),isVendorUpdateEnabled:!0,style:{paddingLeft:z?"12px":"0px"},"data-testid":M("transaction-title",o),children:a?.name}),v===!1&&e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(tQ,{isQuickViewMode:c,transaction:e,transferConvertibleSourceTypes:w,onTransactionTypeChangeToTransfer:j}):null]})}):t.jsxRuntimeExports.jsxs(XV,{children:[t.jsxRuntimeExports.jsx(eQ,{vendorFieldUniqueName:_,recommendationsWithCOT:u??[],isCOTEnabled:l,transaction:e,allOptions:H.defaultOptions,selectedEntity:a,cotTracking:p,openTooltipId:f,setOpenTooltipId:y}),t.jsxRuntimeExports.jsx(He,{onClick:()=>I(!0),label:U.addButton,style:{paddingLeft:"12px",paddingRight:"12px"}}),v===!1&&e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(tQ,{isQuickViewMode:c,transaction:e,transferConvertibleSourceTypes:w,onTransactionTypeChangeToTransfer:j}):null]})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(Lge,{windowSize:A,isVendorUpdateEnabled:!1,children:wse(e)}),v===!1&&e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(tQ,{isQuickViewMode:c,transaction:e,transferConvertibleSourceTypes:w,onTransactionTypeChangeToTransfer:j}):null]});return t.jsxRuntimeExports.jsxs(fXn,{windowSize:A,"data-testid":M("transaction-detail-title",o),children:[t.jsxRuntimeExports.jsx(gXn,{windowSize:A,children:Q}),t.jsxRuntimeExports.jsxs(hXn,{children:[t.jsxRuntimeExports.jsx(mXn,{windowSize:A,"data-testid":M("transaction-amount",o),children:t.jsxRuntimeExports.jsx(zs,{amount:e.amount,integerStyles:qJ.transactionAmountIntegral.styleObject(A),decimalStyles:qJ.transactionAmountDecimal.styleObject(A)})}),t.jsxRuntimeExports.jsx($,{})]})]})}const Pk="detailTransactionType",tQ=({transaction:e,onTransactionTypeChangeToTransfer:o,isQuickViewMode:i=!1,transferConvertibleSourceTypes:r})=>{const a=t.useTheme(),{setValue:l,watch:c}=t.useFormContext(),[d,u]=h.useState(!1),p=h.useRef(null),m=__e(e.type,r)&&i===!1,g=e.account?.accountType,f=(e.totalLinesCount??e.lines?.length??0)>1,y=m&&o!=null&&UD(g,e.type)&&!f,j=m&&o!=null&&UD(g,e.type)&&f,C=h.useMemo(()=>({control:()=>({height:0,minHeight:0,overflow:"hidden",border:"none",padding:0,margin:0}),menuPortal:v=>{const I=p.current?.getBoundingClientRect();return{...v,zIndex:dse,...I!=null?{top:I.bottom,left:I.left,width:"auto"}:{}}}}),[]),w=c(Pk),R=h.useRef(w?.selectedOption);h.useEffect(()=>{const v=w?.selectedOption,I=v==="transfer"||v==="credit_card_payment",T=R.current==="transfer"||R.current==="credit_card_payment";R.current=v,I&&!T&&o!=null&&(u(!1),o(v),l(Pk,PE(e.type,g,e.typeName)))},[w?.selectedOption,o,l,e.type,e.typeName,g]);const A=e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(At,{label:e.typeName,onClick:y?()=>{l(Pk,PE(e.type,g,e.typeName)),u(!0)}:void 0,capsuleBackground:y&&d?a.colors.background:void 0,style:y?{cursor:"pointer"}:void 0,showChevron:y}):null;return t.jsxRuntimeExports.jsx(IXn,{children:t.jsxRuntimeExports.jsxs(TXn,{ref:p,children:[j&&A!=null?t.jsxRuntimeExports.jsx(Pe,{title:pXn.multilineNotEligibleTooltip,enterDelay:600,placement:"bottom",children:A}):A,y&&d?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:()=>u(!1),children:t.jsxRuntimeExports.jsx(LXn,{children:t.jsxRuntimeExports.jsx(Mc,{name:Pk,defaultValue:PE(e.type,g,e.typeName),pageSource:"details_page",showCOT:!1,transactionStatus:null,type:"category",menuIsOpen:d,autoFocus:!0,onMenuClose:()=>u(!1),menuPlacement:"bottom",allowEmpty:!1,menuOptionPresentation:"typePill",menuPortal:typeof document<"u"?document.body:null,customStyleConfig:C})})}):null]})})},IXn=s.div`
|
|
33906
|
+
`,vXn=e=>`${e}`,$Xn=({isRecommendedSelected:e,hasRecommendations:o,isTooltipVisible:i=!1})=>o?e?i?t.jsxRuntimeExports.jsx(RXn,{}):t.jsxRuntimeExports.jsx(AXn,{}):i?t.jsxRuntimeExports.jsx(EXn,{}):t.jsxRuntimeExports.jsx(wXn,{}):null,SXn=({children:e,style:o})=>t.jsxRuntimeExports.jsx(CXn,{style:o,children:e}),eQ=({vendorFieldUniqueName:e,recommendationsWithCOT:o,isCOTEnabled:i,transaction:r,allOptions:a,selectedEntity:l,cotTracking:c,openTooltipId:d,setOpenTooltipId:u})=>{const p=h.useMemo(()=>`${r.id}:vendor:title`,[r.id]),m=d===p,{setValue:g}=t.useFormContext(),y=jn().analytics,{createAlternateRecommendationCallback:j}=j$(),C=h.useCallback(I=>{g(e,{selectedOption:I,defaultOptions:a},{shouldValidate:!0,shouldDirty:!0})},[g,e,a]),w=h.useCallback(I=>{const T=o[1],$=o[0];j("vendor",{currentValue:l?.name,transactionCurrentStatus:null,transactionPage:"details_page",cotTracking:c},T,$)(I)},[j,o,l,c]),R=Vv(o,"vendor",i,{label:r.vendorName,value:r.vendorId},"details_page",null,C,w,l?.qboId??l?.id),A=V7(o,"vendor"),v=h.useMemo(()=>!(l?.qboId??l?.id)||!A?!1:o.some(I=>I.vendor!=null?I.vendor.qboId===l?.qboId||I.vendor.id===l?.id:!1),[l?.qboId,l?.id,A,o]);return A?t.jsxRuntimeExports.jsx(SXn,{children:R?t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:R,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:m,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:()=>{u(p);const I=l?.name??X9,T=R?.recommendations[0]?.cot??[],$=R?.recommendations[1]?.cot??[],k=T.length>0,P=$.length>0,L=P?Mu(lc(R?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null;if(y.trackTransactionCotView({recommendationFor:"vendor",currentValue:I,recommendation:R?.recommendations[0]?.name??X9,recommendationCot:T,isRecommendationCotAvailable:k,recommendationReason:R?.recommendations[0]?.reason??X9,recommendationConfidencePercentage:R?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc(R?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:R?.recommendations[1]?.name??X9,alternativeRecommendationCot:$,isAlternativeRecommendationCotAvailable:P,alternativeRecommendationReason:R?.recommendations[1]?.reason??X9,alternativeRecommendationConfidencePercentage:R?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:L,transactionCurrentStatus:null,transactionPage:"details_page",transactionId:c?.transactionId??null,lineId:c?.lineId??null}),c?.onCOTView!=null&&c.lineId!=null){const B=h$(R);B!=null&&c.onCOTView(c.lineId,c.transactionId,"vendor",B)}},onClose:()=>{d===p&&u(void 0)},children:t.jsxRuntimeExports.jsx(bXn,{"data-testid":M("vendor-ai-icon",e),children:t.jsxRuntimeExports.jsx($Xn,{isRecommendedSelected:v,hasRecommendations:A,isTooltipVisible:m})})}):null}):null};function kXn({transaction:e,sectionId:o,existingVendor:i,existingCustomer:r,selectedEntity:a,isCOTEnabled:l,isQuickViewMode:c,vendorSearchAutoComplete:d,recommendationsWithCOT:u,cotTracking:p,handleVendorRename:m,handleCustomerRename:g,openTooltipId:f,setOpenTooltipId:y,onTransactionTypeChangeToTransfer:j,menuPortalTarget:C,transferConvertibleSourceTypes:w}){const R=t.useTheme(),A=te(),[v,I]=h.useState(!1),T=h.useCallback((q,X)=>{p?.onCOTView!=null&&p.lineId!=null&&p.onCOTView(p.lineId,p.transactionId,q,X)},[p]),$=()=>{let q;switch(e.type){case"invoice":case"credit_memo":{e.balance?.amount===0&&(q=_j.header.paidTag);break}case"vendor_credit":case"bill":{e.balance?.amount===0&&(q=_j.header.paidTag);break}case"payment":{e.balance?.amount===0&&(q=_j.header.receivedTag);break}case"credit_card_payment":q=_j.header.paidTag;break}return q==null?null:t.jsxRuntimeExports.jsx(xXn,{"data-testid":M("balance-status-tag",o),children:t.jsxRuntimeExports.jsx(At,{label:q,type:"success"})})},k=q=>Y.isVendorTransaction(q)&&(q.type==="bill"||q.type==="bill_payment"),P=()=>{I(!1)},L=h.useMemo(()=>Y.isVendorTransaction(e)?k(e)?!((e.linkedTransactions?.length??0)>0):!0:!1,[e]),B=h.useMemo(()=>{if(r!=null)return{id:r.id,name:r.name,type:"customer"};if(i!=null)return{id:i.id,name:i.name,type:"vendor"}},[r,i]),D=q=>{Y.isVendorTransactionWithCustomer(e)?g?.(q):m?.(q)},O=q=>{if(B==null)return null;const X=B?.name;return(a?.id!=null||(a?.name.length??0)>0)&&q.trim().length>0&&q!==X?_j.vendorDetails.fromOldName.replace("__old_name__",X??"")+" "+_j.vendorDetails.toNewName.replace("__new_name__",q??""):null},H=h.useMemo(()=>({selectedOption:a?.qboId??a?.id??a?.name,defaultOptions:pb(d.autoCompleteData.entityAutoCompleteView,a,u)}),[d.autoCompleteData.entityAutoCompleteView,u,a]),V=q=>u?.find(G=>G.vendor?.qboId===q||G.vendor?.id===q||G.vendor?.name===q)?.vendor?.reason??"",N=()=>{const q=_j;return{placeholder:q.payeeDetails.payeeListPlaceholder,tooltip:q.payeeDetails.editPayeeTooltip,addButton:q.payeeDetails.addPayee}},z=V7(u??[],"vendor"),_=vXn(o),U=N(),Q=L?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a?.id!=null||v===!0?v?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:P,children:t.jsxRuntimeExports.jsx(yXn,{windowSize:A,children:t.jsxRuntimeExports.jsx(jXn,{children:t.jsxRuntimeExports.jsxs(XV,{children:[t.jsxRuntimeExports.jsx(eQ,{vendorFieldUniqueName:_,recommendationsWithCOT:u??[],isCOTEnabled:l,transaction:e,selectedEntity:a,allOptions:H.defaultOptions,cotTracking:p,openTooltipId:f,setOpenTooltipId:y}),t.jsxRuntimeExports.jsx(jse,{name:_,placeholder:U.placeholder,defaultValue:H,autoFocus:!0,pageSource:"details_page",transactionStatus:null,type:"vendor",customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start",margin:`${n.sp0} ${n.sp3}`}),singleValue:()=>({display:"flex",alignItems:"center",color:R.colors.hero,"&:hover":{color:R.colors.primary}}),menuPortal:q=>({...q,zIndex:uXn})},style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:"20px",cursor:"inherit",alignItems:"center"},valueToInfo:V,menuIsOpen:v,showDownChevronWithValue:!0,getRenameOptionText:O,onMenuClose:P,loadOptions:d.loadOptions,isOptionRemovable:!1,onClickRenameOption:D,showCOT:l,onCOTView:T,menuPortal:C??(typeof document<"u"?document.body:null)})]})})})}):t.jsxRuntimeExports.jsx(Pe,{style:{padding:`2px ${n.sp2}`},title:U.tooltip,enterDelay:600,placement:"bottom",children:t.jsxRuntimeExports.jsxs(XV,{children:[t.jsxRuntimeExports.jsx(eQ,{vendorFieldUniqueName:_,recommendationsWithCOT:u??[],isCOTEnabled:l,transaction:e,selectedEntity:a,allOptions:H.defaultOptions,cotTracking:p,openTooltipId:f,setOpenTooltipId:y}),t.jsxRuntimeExports.jsx(Lge,{windowSize:A,onClick:()=>I(!0),isVendorUpdateEnabled:!0,style:{paddingLeft:z?"12px":"0px"},"data-testid":M("transaction-title",o),children:a?.name}),v===!1&&e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(tQ,{isQuickViewMode:c,transaction:e,transferConvertibleSourceTypes:w,onTransactionTypeChangeToTransfer:j}):null]})}):t.jsxRuntimeExports.jsxs(XV,{children:[t.jsxRuntimeExports.jsx(eQ,{vendorFieldUniqueName:_,recommendationsWithCOT:u??[],isCOTEnabled:l,transaction:e,allOptions:H.defaultOptions,selectedEntity:a,cotTracking:p,openTooltipId:f,setOpenTooltipId:y}),t.jsxRuntimeExports.jsx(He,{onClick:()=>I(!0),label:U.addButton,style:{paddingLeft:"12px",paddingRight:"12px"}}),v===!1&&e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(tQ,{isQuickViewMode:c,transaction:e,transferConvertibleSourceTypes:w,onTransactionTypeChangeToTransfer:j}):null]})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(Lge,{windowSize:A,isVendorUpdateEnabled:!1,children:wse(e)}),v===!1&&e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(tQ,{isQuickViewMode:c,transaction:e,transferConvertibleSourceTypes:w,onTransactionTypeChangeToTransfer:j}):null]});return t.jsxRuntimeExports.jsxs(fXn,{windowSize:A,"data-testid":M("transaction-detail-title",o),children:[t.jsxRuntimeExports.jsx(gXn,{windowSize:A,children:Q}),t.jsxRuntimeExports.jsxs(hXn,{children:[t.jsxRuntimeExports.jsx(mXn,{windowSize:A,"data-testid":M("transaction-amount",o),children:t.jsxRuntimeExports.jsx(zs,{amount:e.amount,integerStyles:qJ.transactionAmountIntegral.styleObject(A),decimalStyles:qJ.transactionAmountDecimal.styleObject(A)})}),t.jsxRuntimeExports.jsx($,{})]})]})}const Pk="detailTransactionType",tQ=({transaction:e,onTransactionTypeChangeToTransfer:o,isQuickViewMode:i=!1,transferConvertibleSourceTypes:r})=>{const a=t.useTheme(),{setValue:l,watch:c}=t.useFormContext(),[d,u]=h.useState(!1),p=h.useRef(null),m=__e(e.type,r)&&i===!1,g=e.account?.accountType,f=(e.totalLinesCount??e.lines?.length??0)>1,y=m&&o!=null&&UD(g,e.type)&&!f,j=m&&o!=null&&UD(g,e.type)&&f,C=h.useMemo(()=>({control:()=>({height:0,minHeight:0,overflow:"hidden",border:"none",padding:0,margin:0}),menuPortal:v=>{const I=p.current?.getBoundingClientRect();return{...v,zIndex:dse,...I!=null?{top:I.bottom,left:I.left,width:"auto"}:{}}}}),[]),w=c(Pk),R=h.useRef(w?.selectedOption);h.useEffect(()=>{const v=w?.selectedOption,I=v==="transfer"||v==="credit_card_payment",T=R.current==="transfer"||R.current==="credit_card_payment";R.current=v,I&&!T&&o!=null&&(u(!1),o(v),l(Pk,PE(e.type,g,e.typeName)))},[w?.selectedOption,o,l,e.type,e.typeName,g]);const A=e.typeName!=null&&e.typeName!==""?t.jsxRuntimeExports.jsx(At,{label:e.typeName,onClick:y?()=>{l(Pk,PE(e.type,g,e.typeName)),u(!0)}:void 0,capsuleBackground:y&&d?a.colors.background:void 0,style:y?{cursor:"pointer"}:void 0,showChevron:y}):null;return t.jsxRuntimeExports.jsx(IXn,{children:t.jsxRuntimeExports.jsxs(TXn,{ref:p,children:[j&&A!=null?t.jsxRuntimeExports.jsx(Pe,{title:pXn.multilineNotEligibleTooltip,enterDelay:600,placement:"bottom",children:A}):A,y&&d?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:()=>u(!1),children:t.jsxRuntimeExports.jsx(LXn,{children:t.jsxRuntimeExports.jsx(Mc,{name:Pk,defaultValue:PE(e.type,g,e.typeName),pageSource:"details_page",showCOT:!1,transactionStatus:null,type:"category",menuIsOpen:d,autoFocus:!0,onMenuClose:()=>u(!1),menuPlacement:"bottom",allowEmpty:!1,menuOptionPresentation:"typePill",menuPortal:typeof document<"u"?document.body:null,customStyleConfig:C})})}):null]})})},IXn=s.div`
|
|
33907
33907
|
position: relative;
|
|
33908
33908
|
display: inline-flex;
|
|
33909
33909
|
align-items: center;
|
|
@@ -78892,7 +78892,7 @@ ${Oi.beneficiaryAddress} ${ee}`,d(de),L(!0)},ie=(ce,de,ae,me)=>{let le,fe;switch
|
|
|
78892
78892
|
`,E0i=s(ht)`
|
|
78893
78893
|
display: flex;
|
|
78894
78894
|
white-space: nowrap;
|
|
78895
|
-
`,Qq="expenseAutomationTransactionsPage",X4="transactionCategorizationListTable",wu="account",Cu="class",hE="project",Hx="lineEntitySelection",A0i="lineEntity",R0i="recommendations",rtt="lineInfo",v0i="vendorDetails",$0i="customerDetails",SP="selectedTransactionIds",O1=(e,o,i)=>`${e}.${i}.${o}`,S0i=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:k0i,hyphen:F1,empty:a3,colon:HSe},tooltips:{addReceipt:I0i,viewReceipt:T0i,viewReceipts:L0i}},expenseAutomation:{transactions:op},dateFormat:B0i}=F.getLocalizedStrings(),Hm={containerPaddingLeftRight:new E(x[3],x[3]),containerPaddingTopBottom:new E(6,6),controlHeight:new E(x[4],x[5]),nameLogoWidth:new E(x[2],x[3]),nameLogoHeight:new E(x[2],x[3]),borderRadius:6},_Se=({windowSize:e,wrapperWidth:o,widthPercentage:i})=>t.jsxRuntimeExports.jsxs(ql,{windowSize:e,wrapperWidth:o,widthPercentage:i,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx("span",{})}),t.jsxRuntimeExports.jsx(eR,{children:t.jsxRuntimeExports.jsx(Ce,{width:"100%",height:x[4]})})]}),P0i=(e,o)=>e==="journal_entry"&&o==="credit",D0i=({transactionView:e,transaction:o,sectionId:i,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:a,selectedTab:l,containerRef:c,listContainerRef:d,isAccountingClassesEnabled:u,showProjectField:p,isCOTEnabled:m,isCreateTransferEntryFromExpenseEnabled:g,transferConvertibleSourceTypes:f,isPanelSelected:y,cotTracking:j,onTransactionCategorizationRowClick:C,setCurrentTransactionInAction:w,vendorLoadOptions:R,openTooltipId:A,setOpenTooltipId:v,onOpenTransferDrawer:I,authParams:T,onUploadTransactionReceipt:$,rowCommenting:k})=>{const P=te(),L=ja(),B=KH(),{isCommentingActive:D,rowRef:O,totalThreadCount:H,isThreadsLoading:V,handleActiveThreadClick:N,handleAddRowCommentClick:z}=k,[_,U]=h.useState(!1),{lineItemById:Q,sortedLineItems:q}=o.transactionReviewLocalData,X=o.transactionReviewLocalData.tabSpecificLineItems?.[l]||[],G=q.filter(Se=>X.indexOf(Se)!==-1),K=[];G.forEach(Se=>{K.push(Q[Se])});const{accountList:Z,accountsHierarchyList:ee,classHierarchyList:ne,classList:oe,projectList:se,uncategorizedAccounts:ie,transactions:re,selectedCheckBoxTransactionIds:pe}=e,J=se?.projects??[],ce=e.uploadReceiptStatusById,de=pe.includes(o.transactionId),ae=L!==!0&&de===!0,me=t.useTheme(),le={control:()=>({marginLeft:-2,backgroundColor:_?me.colors.background:me.colors.grey5,minHeight:x[5]}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:x[0],height:x[5],backgroundColor:me.colors.grey5}),menu:()=>({width:"150%",background:me.colors.grey5}),singleValue:()=>({color:_||ae?me.colors.primary:me.colors.champion,paddingLeft:x[2]}),input:Se=>({...Se,color:_||ae?me.colors.primary:me.colors.champion,textAlign:"left",paddingLeft:x[2]}),menuPortal:Se=>({...Se,zIndex:10})},fe={...le,singleValue:Se=>({...Se,color:_||ae?me.colors.primary:me.colors.champion}),menu:()=>({marginTop:x[1],marginLeft:-x[2]}),input:Se=>({...Se,color:_||ae?me.colors.primary:me.colors.champion,textAlign:"left",...W.standardMedium}),control:Se=>({...Se,height:x[5]})},ue=re.find(Se=>Se.id===o.transactionId),xe=(Se,Te)=>{const{transactionType:Re}=Te.transactionReviewLocalData;if(L!==!0){const we=Se.target;let Ee=we;for(;Ee;){if(Ee.classList.contains("select-value-container")||Ee!==we&&Ee.classList.contains("item-value-container")||Ee.classList.contains("grouped-single-select-field__value-container")||Ee.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||Ee.classList.contains("grouped-single-select-field__input")||Ee.classList.contains("grouped-single-select-field__menu"))return;Ee=Ee.parentElement}}Re!=null&&C(Te.transactionId,Re)},he=h.useRef(null),[ge,je]=h.useState(void 0),[ve,Ae]=h.useState("bottom");return h.useEffect(()=>{if(ge===void 0)return;const Te=d?.current?._outerRef??null,Re=()=>{const we=he.current;if(we==null||Te==null)return;const Ee=we.getBoundingClientRect(),De=Te.getBoundingClientRect(),$e=Te.scrollTop+(Ee.bottom-De.top),ke=Te.scrollHeight-$e;Ae(ke>=288?"bottom":"top")};return Re(),window.addEventListener("resize",Re),Te?.addEventListener("scroll",Re),()=>{window.removeEventListener("resize",Re),Te?.removeEventListener("scroll",Re)}},[d,ge]),t.jsxRuntimeExports.jsx(O0i,{ref:O,onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1),children:t.jsxRuntimeExports.jsxs(z0i,{className:"categorization-row-card",windowSize:P,isSelected:de,isPanelSelected:y,isQuickViewMode:L,isHovered:_,style:{position:"relative"},children:[t.jsxRuntimeExports.jsx(N0i,{windowSize:P,isQuickViewMode:L,children:K.map((Se,Te)=>t.jsxRuntimeExports.jsx(H0i,{ref:ge===Te?he:void 0,isFirstItem:Te===0,isLastItem:Te===K.length-1,"data-testid":M("transaction-categorization-list-row",Se.lineId),flexibleWidth:B,isQuickViewMode:L,windowSize:P,onClick:Re=>xe(Re,o),children:t.jsxRuntimeExports.jsx(M0i,{isAccountingClassesEnabled:u,showProjectField:p,allProjectList:J,line:Se,isHovered:_||ae||y,isSelected:de,isQuickViewMode:L,lineIndex:Te,sectionId:i,transaction:o,currentTransaction:ue,windowSize:P,accountsHierarchyList:ee,classHierarchyList:ne,allAccountList:Z,allClassList:oe,uncategorizedAccounts:ie,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:a,setCurrentTransactionInAction:w,vendorLoadOptions:R,customStyle:le,customStyleAutoComplete:fe,recommendations:Se.recommendationsWithCOT,selectedTab:l,isCOTEnabled:m,menuPlacement:ve,cotTracking:j,openTooltipId:A,setOpenTooltipId:v,authParams:T,uploadReceiptStatus:ce?.[o.transactionId],onUploadTransactionReceipt:$,onDropdownClose:()=>je(void 0),onDropdownOpen:()=>je(Te),onOpenTransferDrawer:I,isCreateTransferEntryFromExpenseEnabled:g,transferConvertibleSourceTypes:f})},`${o.transactionId}.${Se.lineId}.${Te}`))},o.transactionId),L===!0&&D&&H>0?t.jsxRuntimeExports.jsx($l,{flushRight:!0,children:t.jsxRuntimeExports.jsx(Ll,{isLoading:V,count:H,style:{backgroundColor:me.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:N})}):null,L===!0&&D&&V===!1&&H===0?t.jsxRuntimeExports.jsx($l,{flushRight:!0,innerClassName:"comment-add-icon",children:t.jsxRuntimeExports.jsx(Tb,{"data-testid":M("expense-automation-transaction-row-add-comment",o.transactionId),onClick:z})}):null,t.jsxRuntimeExports.jsx(b9,{state:k})]},o.transactionId)})},M0i=({accountsHierarchyList:e,allAccountList:o,allClassList:i,allProjectList:r,showProjectField:a,classHierarchyList:l,customStyle:c,customStyleAutoComplete:d,line:u,lineIndex:p,transaction:m,currentTransaction:g,windowSize:f,uncategorizedAccounts:y,isHovered:j=!1,isQuickViewMode:C=!1,sectionId:w,recommendations:R,vendorSearchAutoCompleteData:A,selectedTab:v,isCOTEnabled:I,menuPlacement:T,cotTracking:$,openTooltipId:k,setCurrentTransactionInAction:P,vendorLoadOptions:L,setOpenTooltipId:B,isAccountingClassesEnabled:D,isCreateTransferEntryFromExpenseEnabled:O,transferConvertibleSourceTypes:H,onDropdownClose:V,onDropdownOpen:N,authParams:z,onOpenTransferDrawer:_,uploadReceiptStatus:U,onUploadTransactionReceipt:Q})=>{const{transactionDate:q,transactionType:X,transactionTypeName:G,memo:K}=m.transactionReviewLocalData,[Z,ee]=h.useState(!1),ne=h.useMemo(()=>typeof document<"u"?document.body:null,[]),oe=h.useMemo(()=>({...c,control:()=>({height:0,minHeight:0,overflow:"hidden",border:"none",padding:0,margin:0}),menuPortal:Dt=>({...Dt,zIndex:dse})}),[c]),se=g?.account?.accountType,ie=(g?.totalLinesCount??0)>1,re=O===!0&&UD(se,X)&&!ie,pe=O===!0&&UD(se,X)&&ie,J=g?.accountIntegrationId,ce=O1(w,"transactionType",p.toString()),{setValue:de,watch:ae}=t.useFormContext(),me=ae(ce),le=h.useRef(me?.selectedOption);h.useEffect(()=>{const Dt=me?.selectedOption,xn=Dt==="transfer"||Dt==="credit_card_payment",Fo=le.current==="transfer"||le.current==="credit_card_payment";if(le.current=Dt,xn&&!Fo&&_!=null){ee(!1);const tn=m.transactionReviewLocalData,Xn=tn.sortedLineItems.map(io=>tn.lineItemById[io]).find(io=>io!=null);Xn!=null&&(_({transactionId:m.transactionId,transactionType:Dt,sourceTransactionType:W_e(X),sourceTransactionTypeName:G,payee:tn.vendorDetails?.name??tn.vendor?.name??"",category:Xn.account?.accountName??"",className:Xn.class?.className??"",amount:Xn.amount,debitAccountIntegrationId:J??"",debitAccountName:g?.account?.accountName??"",memo:tn.memo??""}),de(ce,PE(X??"expense",se,G)))}},[me?.selectedOption,_,de,X,G,ce,m.transactionId,m.transactionReviewLocalData,g,J,se]);const fe=h.useCallback((Dt,xn)=>{$?.onCOTView!=null&&$.onCOTView(u.lineId,m.transactionId,Dt,xn)},[$,u.lineId,m.transactionId]),ue=u.lineDescription,xe=h.useMemo(()=>{if(ue||K)return[{title:op.description,description:ue||F1},{title:op.header.memo,description:K||F1}]},[K,ue]),he=O1(w,Hx,p.toString()),ge=O1(w,wu,p.toString()),je=O1(w,Cu,p.toString()),ve=O1(w,hE,p.toString()),Ae=(Dt,xn)=>{if(C)return;let Fo;switch(xn){case"vendor":Fo=he;break;case"category":Fo=ge;break;case"class":Fo=je;break;default:return}de(`${Fo}.selectedOption`,Dt,{shouldValidate:!0,shouldDirty:!0})},Se=t.useTheme(),Te=h.useMemo(()=>g!=null&&Y.isVendorTransaction(g)===!0?{id:m.transactionReviewLocalData.customer?.id??"",logo:m.transactionReviewLocalData.customer?.logo,name:m.transactionReviewLocalData.customer?.name??""}:{id:u.customer?.id??"",logo:u.customer?.logo,name:u.customer?.name??""},[g,u.customer?.id,u.customer?.logo,u.customer?.name,m.transactionReviewLocalData.customer?.id,m.transactionReviewLocalData.customer?.logo,m.transactionReviewLocalData.customer?.name]),Re=h.useMemo(()=>g!=null&&Y.isVendorTransaction(g)===!0?{id:m.transactionReviewLocalData.vendor?.id??"",logo:m.transactionReviewLocalData.vendor?.logo,name:m.transactionReviewLocalData.vendor?.name??""}:{id:u.vendor?.id??"",logo:u.vendor?.logo,name:u.vendor?.name??""},[g,u.vendor?.id,u.vendor?.logo,u.vendor?.name,m.transactionReviewLocalData.vendor?.id,m.transactionReviewLocalData.vendor?.logo,m.transactionReviewLocalData.vendor?.name]),we=u[Cu]?.classId,Ee=u[Cu]?.className,De=u.project?.projectId,$e=u.project?.projectName,ke=u[wu]?.qboId??u[wu]?.accountId,Le=u[wu]?.accountName,Fe=Te?.id,ze=Re?.id,Me=Re?.name,[Ue,qe]=h.useState(!we),[Ie,_e]=h.useState(!De),[Ge,ut]=h.useState(!ke),[mt,st]=h.useState(!ze||!Fe),pt=Dt=>R?.find(Fo=>Fo.vendor?.qboId===Dt||Fo.vendor?.id===Dt||Fo.vendor?.name===Dt)?.vendor?.reason??"",et=m.transactionReviewLocalData.lineItemById[u.lineId]?.recommendationsWithCOT||[],Lt=Hv(e,et),wt=_v(l,et),We=ny(r),ot=Dt=>o.filter(Fo=>Fo.qboId===Dt)[0]?.qboId,Ke=Dt=>i.filter(Fo=>Fo.classId===Dt)[0]?.accountingClassNumber??void 0,$t=h.useCallback(()=>!1,[]),[yt,kt]=h.useState(!1),[Ze,It]=h.useState(!1),[at,jt]=h.useState(!1),[Ct,gt]=h.useState(!1),[vt,Qe]=h.useState(0),[Xt,Cn]=h.useState(null),[vn,Sn]=h.useState([]),[ln,Gt]=h.useState(void 0),Qn=h.useRef(null),[yo,jo]=h.useState(0),[es,Yt]=h.useState(0),Uo=Tte()?.url,[un,Yn]=h.useState(!1),Po=(Dt,xn)=>{P({transactionId:m.transactionId,lineItemId:u.lineId}),L(Dt,xn)},Bt=()=>{st(!(ze||Fe)),kt(!1),V?.()},gn=()=>{ut(!ke),Yn(!1),V?.()},kn=()=>{qe(!we),It(!1),V?.()},Co=()=>{_e(!De),jt(!1),V?.()},xs=()=>{C||(ze||Fe)&&(kt(!0),N?.())},Ms=()=>{C||(It(!0),N?.())},bt=()=>{C||(jt(!0),N?.())},gs=()=>{C||(Yn(!0),N?.())};h.useEffect(()=>{ut(!ke)},[ke]),h.useEffect(()=>{qe(!we)},[we]),h.useEffect(()=>{_e(!De)},[De]),h.useEffect(()=>{st(!(ze||Fe))},[ze,Fe]);const _s=m.transactionReviewLocalData.selectedEntity,Ot=m.transactionReviewLocalData.lineItemById[u.lineId].selectedEntityLine,Ve=g!=null&&Y.isVendorTransaction(g)===!0?_s:Ot,ct=h.useMemo(()=>{const Dt=m.transactionReviewLocalData.lineItemById[u.lineId]?.recommendationsWithCOT||[],xn=A.entityAutoCompleteView;return{selectedOption:Ve?.qboId??Ve?.id,defaultOptions:pb(xn,Ve,Dt??[])}},[Ve,m.transactionReviewLocalData.lineItemById,u.lineId,A.entityAutoCompleteView]),on=()=>Ve!=null&&Ve.logo!=null?t.jsxRuntimeExports.jsx(Pm,{photoUrl:Ve.logo.toString(),styles:{width:Hm.nameLogoWidth.valuePx(f),height:Hm.nameLogoHeight.valuePx(f)},fallbackAvatar:t.jsxRuntimeExports.jsx(VSe,{children:t.jsxRuntimeExports.jsx(Lo,{name:Ve.name})})}):Ve!=null&&Ve.name!=null?t.jsxRuntimeExports.jsx(VSe,{children:t.jsxRuntimeExports.jsx(Lo,{name:Ve.name})}):null,Mn=(Dt,xn,Fo)=>{if(xn==null||!xn)return;let tn=[];return Dt.forEach(Xn=>{tn=tn.concat(Xn.options)}),tn.find(Xn=>Xn.value===xn)?.label??Fo??xn},oo=Mn(wt,we,Ee),Je=Mn(We,De,$e),Nt=Mn(Lt,ke,Le),An=v==="review",cs=_3("vendor",ct.defaultOptions,ct.selectedOption),Is=_3("category",Lt,ke),qt=_3("class",wt,we),an=Dt=>{const{isLineRecommendationsLoading:xn,itemsData:Fo,key:tn,resolvedWidthPercentage:Xn}=Dt;if(xn===!0)return t.jsxRuntimeExports.jsx(_Se,{windowSize:f,wrapperWidth:Fo.width,widthPercentage:Xn},tn);const io=g?.lines!=null?g.lines[p]:void 0;return t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:Fo.width,widthPercentage:Xn,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(Uq,{isCOTEnabled:I,recommendations:et,type:"category",isReviewTab:An,isEnabled:!!u[wu]?.isPreFilled,isAccountOptionDisabled:$t,isMisCategorized:Is,onRecommendationClick:Ae,selectedValue:ke,selectedValueLabel:Nt,existingOption:{label:io?.account?.accountName,value:io?.account?.qboId??io?.account?.accountId},cotTracking:$,lineId:u.lineId,transactionId:m.transactionId,openTooltipId:k,setOpenTooltipId:B}),t.jsxRuntimeExports.jsx(eR,{children:Ge===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(CL,{onClick:Ti=>{Ti.stopPropagation(),!C&&(N?.(),ut(!1),Yn(!0))},"data-testid":M("category-selection-field",ge),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addCategory,t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):un===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:gn,children:t.jsxRuntimeExports.jsx(Yq,{isHovered:j,"data-testid":M("category-selection-dropdown-container",ge),children:t.jsxRuntimeExports.jsx(Mc,{name:ge,placeholder:op.addCategory,valueToId:Ti=>ot(Ti),type:"category",pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",showCOT:I,defaultValue:{selectedOption:ke,selectedOptionLabel:Le,allOptions:Lt},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:un,autoFocus:!Ge&&(!ke||u[wu]?.qboId!=null&&[y.expense?.qboId,y.income?.qboId].includes(u[wu].qboId)),onMenuClose:gn,customStyleConfig:c,disableCurrentOption:$t,menuPlacement:T,menuPortal:document.body,onCOTView:fe})})}):t.jsxRuntimeExports.jsx(wL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(Gq,{onClick:gs,"data-testid":M("category-label-text",ge),children:[t.jsxRuntimeExports.jsx(ks,{text:Nt??"",itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}),t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})})})]},tn)},Pt=u!=null&&u.categoryClassRecommendationsFetchState?.fetchState==="In-Progress",en=()=>{const Dt=C?Vre:_re(D,a);return Dt.map((xn,Fo)=>{const tn=`${m.transactionId}_${xn.key}_${u.lineId}`,Xn=Wre(xn,D,a);if(p>0&&g!=null&&Y.isVendorTransaction(g)===!0&&xn.key==="vendor")return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C,isSticky:xn.isSticky===!0},tn);if(p>0&&(xn.key==="transaction_type"||xn.key==="memo_and_receipt"||xn.key==="payment_account"&&X!=="journal_entry"))return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C},tn);switch(xn.key){case"activity":return t.jsxRuntimeExports.jsx(ltt,{},tn);case"vendor":default:return t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C,isSticky:xn.isSticky===!0,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(Uq,{isCOTEnabled:I,recommendations:et,type:"vendor",isEnabled:!!Ve?.isPreFilled,isMisCategorized:cs,onRecommendationClick:Ae,selectedValue:ze,selectedValueLabel:Me,isReviewTab:An,isAccountOptionDisabled:$t,existingOption:{label:g!=null&&Y.isVendorTransaction(g)===!0?g?.vendor?.name:void 0,value:g!=null&&Y.isVendorTransaction(g)===!0?g?.vendor?.id:void 0},cotTracking:$,lineId:u.lineId,transactionId:m.transactionId,openTooltipId:k,setOpenTooltipId:B}),t.jsxRuntimeExports.jsx(eR,{children:mt===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,isQuickViewMode:C,children:t.jsxRuntimeExports.jsxs(CL,{onClick:io=>{io.stopPropagation(),!C&&(N?.(),st(!1),kt(!0))},"data-testid":M("add-vendor-button",w),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addPayee,C===!1&&t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):yt===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:Bt,children:t.jsxRuntimeExports.jsx(o3i,{"data-testid":M("vendor-selection-dropdown-container",O1(w,Hx,p.toString())),children:t.jsxRuntimeExports.jsx(jse,{name:he,placeholder:op.addPayee,valueToInfo:pt,defaultValue:{selectedOption:ct.selectedOption,selectedOptionLabel:Me,defaultOptions:ct.defaultOptions},type:"vendor",autoFocus:!mt,style:{width:"100%"},pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:d,menuIsOpen:yt,onMenuClose:Bt,registerOptions:{required:!1},loadOptions:Po,showCOT:I,onCOTView:fe,menuPlacement:T,menuPortal:document.body})})}):t.jsxRuntimeExports.jsx(a3i,{children:t.jsxRuntimeExports.jsxs(wL,{isHovered:j,isQuickViewMode:C,children:[on(),t.jsxRuntimeExports.jsxs(n3i,{onClick:xs,"data-testid":M("vendor-name-text",w),children:[Ve!=null&&Ve.name?t.jsxRuntimeExports.jsx(ks,{text:Ve.name,itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}):t.jsxRuntimeExports.jsx(r3i,{children:F1}),C===!1&&t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})]})})})]},tn);case"category":return P0i(X,u.postingType)?t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,style:{paddingLeft:n.sp6},isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(uA,{style:{textAlign:"left",width:"100%"},children:F1})})},tn):an({isLineRecommendationsLoading:Pt,itemsData:xn,key:tn,resolvedWidthPercentage:Xn});case"class":{if(!D)return null;if(Pt===!0)return t.jsxRuntimeExports.jsx(_Se,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn},tn);const io=g?.lines!=null?g?.lines[p]:void 0;return t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(Uq,{isCOTEnabled:I,recommendations:et,type:"class",isReviewTab:An,isEnabled:!!u[Cu]?.isPreFilled,isAccountOptionDisabled:$t,isMisCategorized:qt,onRecommendationClick:Ae,selectedValue:we,selectedValueLabel:oo,existingOption:{label:io?.class?.className,value:io?.class?.classId},cotTracking:$,lineId:u.lineId,transactionId:m.transactionId,openTooltipId:k,setOpenTooltipId:B}),t.jsxRuntimeExports.jsx(eR,{children:Ue===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(CL,{onClick:Ti=>{Ti.stopPropagation(),!C&&(N?.(),qe(!1),It(!0))},"data-testid":M("class-selection-field",je),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addClass,t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):Ze===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:kn,children:t.jsxRuntimeExports.jsx(Yq,{isHovered:j,"data-testid":M("class-selection-dropdown-container",je),children:t.jsxRuntimeExports.jsx(Mc,{name:je,placeholder:op.addClass,valueToId:Ti=>Ke(Ti),type:"class",showCOT:I,defaultValue:{selectedOption:we,selectedOptionLabel:Ee,allOptions:wt},pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",menuIsOpen:Ze,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!Ue&&!we,customStyleConfig:c,onMenuClose:kn,menuPlacement:T,menuPortal:document.body,onCOTView:fe})})}):t.jsxRuntimeExports.jsx(wL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(Gq,{"data-testid":M("class-selection-field",je),onClick:Ms,children:[t.jsxRuntimeExports.jsx(ks,{text:oo??"",itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}),t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})})})]},tn)}case"project":return a?t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx("span",{})}),t.jsxRuntimeExports.jsx(eR,{children:Ie===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(CL,{onClick:io=>{io.stopPropagation(),!C&&(N?.(),_e(!1),jt(!0))},"data-testid":M("project-selection-field",ve),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addProject,t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):at===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:Co,children:t.jsxRuntimeExports.jsx(Yq,{isHovered:j,"data-testid":M("project-selection-dropdown-container",ve),children:t.jsxRuntimeExports.jsx(Mc,{name:ve,placeholder:op.addProject,type:"project",showCOT:!1,defaultValue:{selectedOption:De,selectedOptionLabel:$e,allOptions:We},pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",menuIsOpen:at,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!Ie&&!De,customStyleConfig:c,onMenuClose:Co,menuPlacement:T,menuPortal:document.body})})}):t.jsxRuntimeExports.jsx(wL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(Gq,{"data-testid":M("project-selection-field",ve),onClick:bt,children:[t.jsxRuntimeExports.jsx(ks,{text:Je??"",itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}),t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})})})]},tn):null;case"date":return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(ete,{"data-testid":M("date-field",O1(w,Cu,p.toString())),children:t.jsxRuntimeExports.jsx(uA,{style:{color:j?Se.colors.primary:Se.colors.champion},children:q!=null?q.format(B0i.visual.MMMDCommaYYYYformat):null})})})},tn);case"transaction_type":{const io=__e(X,H);return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:G!=null?t.jsxRuntimeExports.jsx(F2,{windowSize:f,"data-testid":M("transaction-type-field",O1(w,Cu,p.toString())),isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsxs(i3i,{className:io&&re?"select-value-container":void 0,children:[io&&pe?t.jsxRuntimeExports.jsx(Pe,{title:op.transactionTypeDropdown.multilineNotEligibleTooltip,enterDelay:600,placement:"bottom",children:t.jsxRuntimeExports.jsx(At,{label:G??X})}):t.jsxRuntimeExports.jsx(At,{label:G??X,onClick:io&&re?()=>{de(ce,PE(X??"expense",se,G)),ee(!0)}:void 0,capsuleBackground:re&&Z?Se.colors.background:void 0,showChevron:io&&re}),io&&re&&Z&&t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:()=>ee(!1),children:t.jsxRuntimeExports.jsx(s3i,{children:t.jsxRuntimeExports.jsx(Mc,{name:ce,defaultValue:PE(X??"expense",se,G),pageSource:"list_page",showCOT:!1,transactionStatus:An?"pending_review":"auto_categorized",type:"category",menuIsOpen:Z,autoFocus:!0,onMenuClose:()=>ee(!1),customStyleConfig:oe,menuPlacement:T,menuPortal:ne,allowEmpty:!1,menuOptionPresentation:"typePill"})})})]})}):null},tn)}case"amount":{const io=Ne("0,0.[00]",u.amount,!0);return t.jsxRuntimeExports.jsx(ql,{windowSize:f,style:{marginRight:x[0]},wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C,isLastItem:!0,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,isLastItem:!0,style:{justifyContent:"flex-end"},children:t.jsxRuntimeExports.jsx(ete,{"data-testid":M("transaction-amount-field",O1(w,Cu,p.toString())),style:{color:j?Se.colors.primary:Se.colors.champion},children:io})})},tn)}case"payment_account":{if(X==="journal_entry")return u.postingType==="credit"?an({isLineRecommendationsLoading:Pt,itemsData:xn,key:tn,resolvedWidthPercentage:Xn}):t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,style:{paddingLeft:n.sp6},isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(uA,{style:{textAlign:"left",width:"100%"},children:F1})})},tn);if(!(X==="expense"||X==="check"||X==="bill_payment"||X==="vendor_credit"||X==="credit_card_credit"||X==="deposit"||X==="sales_receipt"||X==="refund"||X==="payment"))return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,style:{paddingLeft:n.sp6},isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(uA,{style:{textAlign:"left",width:"100%"},children:F1})})},tn);const Ti=g?.account?.accountName,$r=g?.paymentType,ed=g?.paymentTypeName,Sr=$r==="credit_card"?V0i:$r==="cash"?Q0i:$r==="check"?Y0i:$r==="ach"?u3i:U0i,St={title:a3,items:[{text:op.paymentAccountTooltip.accountLabel+HSe,amount:Ti??F1},...ed!=null?[{text:op.paymentAccountTooltip.methodLabel+HSe,amount:ed}]:[]]};return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",variant:"list-description",data:St,title:Ti??F1,enterDelay:600,arrow:!0,style:{overflow:"hidden",minWidth:0},children:t.jsxRuntimeExports.jsxs(W0i,{"data-testid":M("payment-account",w),style:{color:j?Se.colors.primary:Se.colors.champion},children:[Sr!=null&&t.jsxRuntimeExports.jsx(Sr,{style:{color:j?Se.colors.primary:Se.colors.champion,width:n.sp5}}),t.jsxRuntimeExports.jsx(uA,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:Ti??F1})]})})})},tn)}case"memo_and_receipt":{const io=g?.attachments??[],Ti=U?.fetchState==="In-Progress",$r=Sr=>{if(Sr.stopPropagation(),io.length===0||g==null)return;if(Uo==null){console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");return}Gt(io[0]),Qe(0),gt(!0);const St=io.map(Ws=>Ws.id),bn=`${Uo}/transaction_attachments`;QP(bn,z,{transaction_key:{transaction_id:g.id,transaction_type:g.type},attachment_ids:St}).then(Ws=>{Sn(Ws),Ws.length>0&&Cn(Ws[0])})},ed=Sr=>{Sr.stopPropagation(),Qn.current?.click()};return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,"data-testid":M("memo-field",O1(w,Cu,p.toString())),children:t.jsxRuntimeExports.jsxs(l3i,{className:"item-value-container",children:[xe!=null?t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",data:xe,variant:"multi-information-points",arrow:!0,style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:t.jsxRuntimeExports.jsx(Z0i,{"data-testid":M("memo-icon",w),style:{color:j?Se.colors.primary:Se.colors.champion}})}):t.jsxRuntimeExports.jsx(q0i,{style:{margin:0},children:F1}),Ti?t.jsxRuntimeExports.jsx(Ft,{size:"Small",style:{display:"flex"},start:!0}):io.length===0?t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",title:I0i,arrow:!0,enterDelay:600,children:t.jsxRuntimeExports.jsx(G0i,{"data-testid":M("upload-receipt-icon",w),style:{margin:0},onClick:Sr=>{Sr.stopPropagation(),ed(Sr)}})}):io.length===1?t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",title:T0i,arrow:!0,enterDelay:600,children:t.jsxRuntimeExports.jsx(c3i,{"data-testid":M("view-receipt-icon",w),style:{color:j?Se.colors.primary:Se.colors.champion},onClick:$r})}):t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",arrow:!0,title:L0i,enterDelay:600,children:t.jsxRuntimeExports.jsx(d3i,{"data-testid":M("view-receipts-icon",w),style:{color:j?Se.colors.primary:Se.colors.hero},onClick:$r})}),t.jsxRuntimeExports.jsx(_c,{name:`transaction-receipt-${m.transactionId}`,fileRef:Qn,sizeLimit:sC,multiple:!0,acceptableTypes:[...Y.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:Sr=>{const St=Sr.target.files;if(St!=null&&St.length>0){const bn=Array.from(St);Q(v,m.transactionId,X??a3,bn,bn.map(Ws=>Ws.name))}},onFileSizeError:()=>{}})]})},tn)}}})},Rs=g?.attachments??[],ho=ln??Rs[0];return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[en(),Ct&&Rs.length>0&&ho!=null?ii.createPortal(t.jsxRuntimeExports.jsx(rb,{allFiles:vn,fileSource:Xt,file:ho,title:ho.fileName,attachments:Rs,showNavigation:!1,setFileSource:Cn,setShowFullScreenView:gt,onCrossClick:()=>{gt(!1),Cn(null),Sn([]),Gt(void 0),Qe(0)},onNextClick:()=>{const Dt=(vt+1)%Rs.length;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt])},onPreviousClick:()=>{const Dt=(vt-1+Rs.length)%Rs.length;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt])},setSelectedFileAttachment:Dt=>{Gt(typeof Dt=="function"?xn=>Dt(xn??Rs[0]):Dt)},handleTouchStart:Dt=>jo(Dt.targetTouches[0].clientX),handleTouchMove:Dt=>Yt(Dt.targetTouches[0].clientX),handleTouchEnd:()=>{if(yo-es>50&&es!==0&&vt<Rs.length-1){const Dt=vt+1;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt]),jo(0),Yt(0)}else if(yo-es<-50&&es!==0&&vt>0){const Dt=vt-1;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt]),jo(0),Yt(0)}}}),document.body):null]})},WSe=({isEnabled:e,isMisCategorized:o,hasRecommendations:i,isTooltipVisible:r=!1,type:a})=>e?r?t.jsxRuntimeExports.jsx(K0i,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(J0i,{className:"ai-icon-selected-plain","data-testid":M("recommendation-icon",a)}):!e&&o||i?r?t.jsxRuntimeExports.jsx(e3i,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(X0i,{"data-testid":M("recommendation-icon",a)}):null,AO=({children:e})=>t.jsxRuntimeExports.jsx(ctt,{children:e}),Uq=({recommendations:e,isCOTEnabled:o,type:i,isReviewTab:r,selectedValueLabel:a,isEnabled:l=!1,isMisCategorized:c=!1,selectedValue:d,existingOption:u,cotTracking:p,lineId:m,openTooltipId:g,transactionId:f,isAccountOptionDisabled:y,onRecommendationClick:j,setOpenTooltipId:C})=>{const w=h.useMemo(()=>`${f}:${m}:${i}`,[f,m,i]),R=g===w,v=jn().analytics,{createAlternateRecommendationCallback:I}=j$(),T=h.useCallback(O=>{const H=e[1],V=e[0];I(i,{currentValue:a??a3,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:p?{transactionId:f,lineId:m,onCOTView:(N,z,_,U)=>{p.onCOTView?.(N,z,_,U)}}:void 0},H,V)(O)},[I,e,a,r,i,p,m,f]),$=Vv(e,i,o,u,"list_page",r?"pending_review":"auto_categorized",j,T,d,y),k=V7(e,i),P=h.useCallback(()=>{C(w);const O=$?.recommendations[0]?.cot??[],H=$?.recommendations[1]?.cot??[],V=H.length>0;if(v.trackTransactionCotView({recommendationFor:i,currentValue:a??a3,recommendation:$?.recommendations[0]?.name??a3,recommendationCot:O,isRecommendationCotAvailable:O.length>0,recommendationReason:$?.recommendations[0]?.reason??a3,recommendationConfidencePercentage:$?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc($?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:$?.recommendations[1]?.name??a3,alternativeRecommendationCot:H,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:$?.recommendations[1]?.reason??a3,alternativeRecommendationConfidencePercentage:$?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Mu(lc($?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),p?.onCOTView!=null){const N=h$($);N!=null&&p.onCOTView(m,f,i,N)}},[v,$,r,a,i,m,f,w,C]),L=h.useCallback(()=>{g===w&&C(void 0)},[g,w,C]),B=h.useMemo(()=>!d||!k?!1:e.some(O=>i==="vendor"&&O.vendor!=null?O.vendor.id===d||O.vendor.qboId===d:i==="category"&&O.account!=null?O.account.qboId===d||O.account.accountId===d:i==="class"&&O.class!=null?O.class.classId===d:!1),[d,k,e,i]);if(!k)return t.jsxRuntimeExports.jsx(ctt,{});const D=l||B;return $?t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:$,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:P,onClose:L,children:t.jsxRuntimeExports.jsx(t3i,{"data-testid":M("recommendation-icon",i),children:t.jsxRuntimeExports.jsx(WSe,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R})})})}):t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx(WSe,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R,type:i})})},att=({isAccountingClassesEnabled:e,showProjectField:o})=>{const i=te(),r=ja(),a=KH(),l=r?Vre:_re(e,o);return t.jsxRuntimeExports.jsx(F0i,{$flexibleWidth:a,windowSize:i,isQuickViewMode:r,children:l.map((c,d)=>{const u=`${d}${k0i}${c.key}`,p=Wre(c,e,o);switch(c.key){case"activity":return t.jsxRuntimeExports.jsx(ltt,{},u);case"vendor":return t.jsxRuntimeExports.jsx(ql,{windowSize:i,wrapperWidth:c.width,widthPercentage:p,isQuickViewMode:r,isSticky:c.isSticky,style:c.customStyle?.common,children:t.jsxRuntimeExports.jsx(F2,{windowSize:i,isLastItem:d===l.length-1,children:t.jsxRuntimeExports.jsxs(ete,{children:[t.jsxRuntimeExports.jsx(Ys,{width:x[4],height:x[4]}),t.jsxRuntimeExports.jsx(Ce,{height:x[4],width:x[12],style:{display:"flex",alignItems:"center"}})]})})},u);default:{const m=d===l.length-1;return t.jsxRuntimeExports.jsx(ql,{isLastItem:m,windowSize:i,wrapperWidth:c.width,widthPercentage:p,isQuickViewMode:r,style:c.customStyle?.common,children:t.jsxRuntimeExports.jsx(F2,{windowSize:i,isLastItem:m,children:t.jsxRuntimeExports.jsx(Ce,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})})},u)}}})})},ltt=s.div`
|
|
78895
|
+
`,Qq="expenseAutomationTransactionsPage",X4="transactionCategorizationListTable",wu="account",Cu="class",hE="project",Hx="lineEntitySelection",A0i="lineEntity",R0i="recommendations",rtt="lineInfo",v0i="vendorDetails",$0i="customerDetails",SP="selectedTransactionIds",O1=(e,o,i)=>`${e}.${i}.${o}`,S0i=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:k0i,hyphen:F1,empty:a3,colon:HSe},tooltips:{addReceipt:I0i,viewReceipt:T0i,viewReceipts:L0i}},expenseAutomation:{transactions:op},dateFormat:B0i}=F.getLocalizedStrings(),Hm={containerPaddingLeftRight:new E(x[3],x[3]),containerPaddingTopBottom:new E(6,6),controlHeight:new E(x[4],x[5]),nameLogoWidth:new E(x[2],x[3]),nameLogoHeight:new E(x[2],x[3]),borderRadius:6},_Se=({windowSize:e,wrapperWidth:o,widthPercentage:i})=>t.jsxRuntimeExports.jsxs(ql,{windowSize:e,wrapperWidth:o,widthPercentage:i,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx("span",{})}),t.jsxRuntimeExports.jsx(eR,{children:t.jsxRuntimeExports.jsx(Ce,{width:"100%",height:x[4]})})]}),P0i=(e,o)=>e==="journal_entry"&&o==="credit",D0i=({transactionView:e,transaction:o,sectionId:i,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:a,selectedTab:l,containerRef:c,listContainerRef:d,isAccountingClassesEnabled:u,showProjectField:p,isCOTEnabled:m,isCreateTransferEntryFromExpenseEnabled:g,transferConvertibleSourceTypes:f,isPanelSelected:y,cotTracking:j,onTransactionCategorizationRowClick:C,setCurrentTransactionInAction:w,vendorLoadOptions:R,openTooltipId:A,setOpenTooltipId:v,onOpenTransferDrawer:I,authParams:T,onUploadTransactionReceipt:$,rowCommenting:k})=>{const P=te(),L=ja(),B=KH(),{isCommentingActive:D,rowRef:O,totalThreadCount:H,isThreadsLoading:V,handleActiveThreadClick:N,handleAddRowCommentClick:z}=k,[_,U]=h.useState(!1),{lineItemById:Q,sortedLineItems:q}=o.transactionReviewLocalData,X=o.transactionReviewLocalData.tabSpecificLineItems?.[l]||[],G=q.filter(Se=>X.indexOf(Se)!==-1),K=[];G.forEach(Se=>{K.push(Q[Se])});const{accountList:Z,accountsHierarchyList:ee,classHierarchyList:ne,classList:oe,projectList:se,uncategorizedAccounts:ie,transactions:re,selectedCheckBoxTransactionIds:pe}=e,J=se?.projects??[],ce=e.uploadReceiptStatusById,de=pe.includes(o.transactionId),ae=L!==!0&&de===!0,me=t.useTheme(),le={control:()=>({marginLeft:-2,backgroundColor:_?me.colors.background:me.colors.grey5,minHeight:x[5]}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:x[0],height:x[5],backgroundColor:me.colors.grey5}),menu:()=>({width:"150%",background:me.colors.grey5}),singleValue:()=>({color:_||ae?me.colors.primary:me.colors.champion,paddingLeft:x[2]}),input:Se=>({...Se,color:_||ae?me.colors.primary:me.colors.champion,textAlign:"left",paddingLeft:x[2]}),menuPortal:Se=>({...Se,zIndex:10})},fe={...le,singleValue:Se=>({...Se,color:_||ae?me.colors.primary:me.colors.champion}),menu:()=>({marginTop:x[1],marginLeft:-x[2]}),input:Se=>({...Se,color:_||ae?me.colors.primary:me.colors.champion,textAlign:"left",...W.standardMedium}),control:Se=>({...Se,height:x[5]})},ue=re.find(Se=>Se.id===o.transactionId),xe=(Se,Te)=>{const{transactionType:Re}=Te.transactionReviewLocalData;if(L!==!0){const we=Se.target;let Ee=we;for(;Ee;){if(Ee.classList.contains("select-value-container")||Ee!==we&&Ee.classList.contains("item-value-container")||Ee.classList.contains("grouped-single-select-field__value-container")||Ee.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||Ee.classList.contains("grouped-single-select-field__input")||Ee.classList.contains("grouped-single-select-field__menu"))return;Ee=Ee.parentElement}}Re!=null&&C(Te.transactionId,Re)},he=h.useRef(null),[ge,je]=h.useState(void 0),[ve,Ae]=h.useState("bottom");return h.useEffect(()=>{if(ge===void 0)return;const Te=d?.current?._outerRef??null,Re=()=>{const we=he.current;if(we==null||Te==null)return;const Ee=we.getBoundingClientRect(),De=Te.getBoundingClientRect(),$e=Te.scrollTop+(Ee.bottom-De.top),ke=Te.scrollHeight-$e;Ae(ke>=288?"bottom":"top")};return Re(),window.addEventListener("resize",Re),Te?.addEventListener("scroll",Re),()=>{window.removeEventListener("resize",Re),Te?.removeEventListener("scroll",Re)}},[d,ge]),t.jsxRuntimeExports.jsx(O0i,{ref:O,onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1),children:t.jsxRuntimeExports.jsxs(z0i,{className:"categorization-row-card",windowSize:P,isSelected:de,isPanelSelected:y,isQuickViewMode:L,isHovered:_,style:{position:"relative"},children:[t.jsxRuntimeExports.jsx(N0i,{windowSize:P,isQuickViewMode:L,children:K.map((Se,Te)=>t.jsxRuntimeExports.jsx(H0i,{ref:ge===Te?he:void 0,isFirstItem:Te===0,isLastItem:Te===K.length-1,"data-testid":M("transaction-categorization-list-row",Se.lineId),flexibleWidth:B,isQuickViewMode:L,windowSize:P,onClick:Re=>xe(Re,o),children:t.jsxRuntimeExports.jsx(M0i,{isAccountingClassesEnabled:u,showProjectField:p,allProjectList:J,line:Se,isHovered:_||ae||y,isSelected:de,isQuickViewMode:L,lineIndex:Te,sectionId:i,transaction:o,currentTransaction:ue,windowSize:P,accountsHierarchyList:ee,classHierarchyList:ne,allAccountList:Z,allClassList:oe,uncategorizedAccounts:ie,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:a,setCurrentTransactionInAction:w,vendorLoadOptions:R,customStyle:le,customStyleAutoComplete:fe,recommendations:Se.recommendationsWithCOT,selectedTab:l,isCOTEnabled:m,menuPlacement:ve,cotTracking:j,openTooltipId:A,setOpenTooltipId:v,authParams:T,uploadReceiptStatus:ce?.[o.transactionId],onUploadTransactionReceipt:$,onDropdownClose:()=>je(void 0),onDropdownOpen:()=>je(Te),onOpenTransferDrawer:I,isCreateTransferEntryFromExpenseEnabled:g,transferConvertibleSourceTypes:f})},`${o.transactionId}.${Se.lineId}.${Te}`))},o.transactionId),L===!0&&D&&H>0?t.jsxRuntimeExports.jsx($l,{flushRight:!0,children:t.jsxRuntimeExports.jsx(Ll,{isLoading:V,count:H,style:{backgroundColor:me.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:N})}):null,L===!0&&D&&V===!1&&H===0?t.jsxRuntimeExports.jsx($l,{flushRight:!0,innerClassName:"comment-add-icon",children:t.jsxRuntimeExports.jsx(Tb,{"data-testid":M("expense-automation-transaction-row-add-comment",o.transactionId),onClick:z})}):null,t.jsxRuntimeExports.jsx(b9,{state:k})]},o.transactionId)})},M0i=({accountsHierarchyList:e,allAccountList:o,allClassList:i,allProjectList:r,showProjectField:a,classHierarchyList:l,customStyle:c,customStyleAutoComplete:d,line:u,lineIndex:p,transaction:m,currentTransaction:g,windowSize:f,uncategorizedAccounts:y,isHovered:j=!1,isQuickViewMode:C=!1,sectionId:w,recommendations:R,vendorSearchAutoCompleteData:A,selectedTab:v,isCOTEnabled:I,menuPlacement:T,cotTracking:$,openTooltipId:k,setCurrentTransactionInAction:P,vendorLoadOptions:L,setOpenTooltipId:B,isAccountingClassesEnabled:D,isCreateTransferEntryFromExpenseEnabled:O,transferConvertibleSourceTypes:H,onDropdownClose:V,onDropdownOpen:N,authParams:z,onOpenTransferDrawer:_,uploadReceiptStatus:U,onUploadTransactionReceipt:Q})=>{const{transactionDate:q,transactionType:X,transactionTypeName:G,memo:K}=m.transactionReviewLocalData,[Z,ee]=h.useState(!1),ne=h.useMemo(()=>typeof document<"u"?document.body:null,[]),oe=h.useMemo(()=>({...c,control:()=>({height:0,minHeight:0,overflow:"hidden",border:"none",padding:0,margin:0}),menuPortal:Dt=>({...Dt,zIndex:dse})}),[c]),se=g?.account?.accountType,ie=(g?.totalLinesCount??0)>1,re=O===!0&&UD(se,X)&&!ie,pe=O===!0&&UD(se,X)&&ie,J=g?.accountIntegrationId,ce=O1(w,"transactionType",p.toString()),{setValue:de,watch:ae}=t.useFormContext(),me=ae(ce),le=h.useRef(me?.selectedOption);h.useEffect(()=>{const Dt=me?.selectedOption,xn=Dt==="transfer"||Dt==="credit_card_payment",Fo=le.current==="transfer"||le.current==="credit_card_payment";if(le.current=Dt,xn&&!Fo&&_!=null){ee(!1);const tn=m.transactionReviewLocalData,Xn=tn.sortedLineItems.map(io=>tn.lineItemById[io]).find(io=>io!=null);Xn!=null&&(_({transactionId:m.transactionId,transactionType:Dt,sourceTransactionType:W_e(X),sourceTransactionTypeName:G,payee:tn.vendorDetails?.name??tn.vendor?.name??"",category:Xn.account?.accountName??"",className:Xn.class?.className??"",amount:Xn.amount,debitAccountIntegrationId:J??"",debitAccountName:g?.account?.accountName??"",memo:tn.memo??""}),de(ce,PE(X??"expense",se,G)))}},[me?.selectedOption,_,de,X,G,ce,m.transactionId,m.transactionReviewLocalData,g,J,se]);const fe=h.useCallback((Dt,xn)=>{$?.onCOTView!=null&&$.onCOTView(u.lineId,m.transactionId,Dt,xn)},[$,u.lineId,m.transactionId]),ue=u.lineDescription,xe=h.useMemo(()=>{if(ue||K)return[{title:op.description,description:ue||F1},{title:op.header.memo,description:K||F1}]},[K,ue]),he=O1(w,Hx,p.toString()),ge=O1(w,wu,p.toString()),je=O1(w,Cu,p.toString()),ve=O1(w,hE,p.toString()),Ae=(Dt,xn)=>{if(C)return;let Fo;switch(xn){case"vendor":Fo=he;break;case"category":Fo=ge;break;case"class":Fo=je;break;default:return}de(`${Fo}.selectedOption`,Dt,{shouldValidate:!0,shouldDirty:!0})},Se=t.useTheme(),Te=h.useMemo(()=>g!=null&&Y.isVendorTransaction(g)===!0?{id:m.transactionReviewLocalData.customer?.id??"",logo:m.transactionReviewLocalData.customer?.logo,name:m.transactionReviewLocalData.customer?.name??""}:{id:u.customer?.id??"",logo:u.customer?.logo,name:u.customer?.name??""},[g,u.customer?.id,u.customer?.logo,u.customer?.name,m.transactionReviewLocalData.customer?.id,m.transactionReviewLocalData.customer?.logo,m.transactionReviewLocalData.customer?.name]),Re=h.useMemo(()=>g!=null&&Y.isVendorTransaction(g)===!0?{id:m.transactionReviewLocalData.vendor?.id??"",logo:m.transactionReviewLocalData.vendor?.logo,name:m.transactionReviewLocalData.vendor?.name??""}:{id:u.vendor?.id??"",logo:u.vendor?.logo,name:u.vendor?.name??""},[g,u.vendor?.id,u.vendor?.logo,u.vendor?.name,m.transactionReviewLocalData.vendor?.id,m.transactionReviewLocalData.vendor?.logo,m.transactionReviewLocalData.vendor?.name]),we=u[Cu]?.classId,Ee=u[Cu]?.className,De=u.project?.projectId,$e=u.project?.projectName,ke=u[wu]?.qboId??u[wu]?.accountId,Le=u[wu]?.accountName,Fe=Te?.id,ze=Re?.id,Me=Re?.name,[Ue,qe]=h.useState(!we),[Ie,_e]=h.useState(!De),[Ge,ut]=h.useState(!ke),[mt,st]=h.useState(!ze||!Fe),pt=Dt=>R?.find(Fo=>Fo.vendor?.qboId===Dt||Fo.vendor?.id===Dt||Fo.vendor?.name===Dt)?.vendor?.reason??"",et=m.transactionReviewLocalData.lineItemById[u.lineId]?.recommendationsWithCOT||[],Lt=Hv(e,et),wt=_v(l,et),We=ny(r),ot=Dt=>o.filter(Fo=>Fo.qboId===Dt)[0]?.qboId,Ke=Dt=>i.filter(Fo=>Fo.classId===Dt)[0]?.accountingClassNumber??void 0,$t=h.useCallback(()=>!1,[]),[yt,kt]=h.useState(!1),[Ze,It]=h.useState(!1),[at,jt]=h.useState(!1),[Ct,gt]=h.useState(!1),[vt,Qe]=h.useState(0),[Xt,Cn]=h.useState(null),[vn,Sn]=h.useState([]),[ln,Gt]=h.useState(void 0),Qn=h.useRef(null),[yo,jo]=h.useState(0),[es,Yt]=h.useState(0),Uo=Tte()?.url,[un,Yn]=h.useState(!1),Po=(Dt,xn)=>{P({transactionId:m.transactionId,lineItemId:u.lineId}),L(Dt,xn)},Bt=()=>{st(!(ze||Fe)),kt(!1),V?.()},gn=()=>{ut(!ke),Yn(!1),V?.()},kn=()=>{qe(!we),It(!1),V?.()},Co=()=>{_e(!De),jt(!1),V?.()},xs=()=>{C||(ze||Fe)&&(kt(!0),N?.())},Ms=()=>{C||(It(!0),N?.())},bt=()=>{C||(jt(!0),N?.())},gs=()=>{C||(Yn(!0),N?.())};h.useEffect(()=>{ut(!ke)},[ke]),h.useEffect(()=>{qe(!we)},[we]),h.useEffect(()=>{_e(!De)},[De]),h.useEffect(()=>{st(!(ze||Fe))},[ze,Fe]);const _s=m.transactionReviewLocalData.selectedEntity,Ot=m.transactionReviewLocalData.lineItemById[u.lineId].selectedEntityLine,Ve=g!=null&&Y.isVendorTransaction(g)===!0?_s:Ot,ct=h.useMemo(()=>{const Dt=m.transactionReviewLocalData.lineItemById[u.lineId]?.recommendationsWithCOT||[],xn=A.entityAutoCompleteView;return{selectedOption:Ve?.qboId??Ve?.id,defaultOptions:pb(xn,Ve,Dt??[])}},[Ve,m.transactionReviewLocalData.lineItemById,u.lineId,A.entityAutoCompleteView]),on=()=>Ve!=null&&Ve.logo!=null?t.jsxRuntimeExports.jsx(Pm,{photoUrl:Ve.logo.toString(),styles:{width:Hm.nameLogoWidth.valuePx(f),height:Hm.nameLogoHeight.valuePx(f)},fallbackAvatar:t.jsxRuntimeExports.jsx(VSe,{children:t.jsxRuntimeExports.jsx(Lo,{name:Ve.name})})}):Ve!=null&&Ve.name!=null?t.jsxRuntimeExports.jsx(VSe,{children:t.jsxRuntimeExports.jsx(Lo,{name:Ve.name})}):null,Mn=(Dt,xn,Fo)=>{if(xn==null||!xn)return;let tn=[];return Dt.forEach(Xn=>{tn=tn.concat(Xn.options)}),tn.find(Xn=>Xn.value===xn)?.label??Fo??xn},oo=Mn(wt,we,Ee),Je=Mn(We,De,$e),Nt=Mn(Lt,ke,Le),An=v==="review",cs=_3("vendor",ct.defaultOptions,ct.selectedOption),Is=_3("category",Lt,ke),qt=_3("class",wt,we),an=Dt=>{const{isLineRecommendationsLoading:xn,itemsData:Fo,key:tn,resolvedWidthPercentage:Xn}=Dt;if(xn===!0)return t.jsxRuntimeExports.jsx(_Se,{windowSize:f,wrapperWidth:Fo.width,widthPercentage:Xn},tn);const io=g?.lines!=null?g.lines[p]:void 0;return t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:Fo.width,widthPercentage:Xn,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(Uq,{isCOTEnabled:I,recommendations:et,type:"category",isReviewTab:An,isEnabled:!!u[wu]?.isPreFilled,isAccountOptionDisabled:$t,isMisCategorized:Is,onRecommendationClick:Ae,selectedValue:ke,selectedValueLabel:Nt,existingOption:{label:io?.account?.accountName,value:io?.account?.qboId??io?.account?.accountId},cotTracking:$,lineId:u.lineId,transactionId:m.transactionId,openTooltipId:k,setOpenTooltipId:B}),t.jsxRuntimeExports.jsx(eR,{children:Ge===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(CL,{onClick:Ti=>{Ti.stopPropagation(),!C&&(N?.(),ut(!1),Yn(!0))},"data-testid":M("category-selection-field",ge),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addCategory,t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):un===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:gn,children:t.jsxRuntimeExports.jsx(Yq,{isHovered:j,"data-testid":M("category-selection-dropdown-container",ge),children:t.jsxRuntimeExports.jsx(Mc,{name:ge,placeholder:op.addCategory,valueToId:Ti=>ot(Ti),type:"category",pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",showCOT:I,defaultValue:{selectedOption:ke,selectedOptionLabel:Le,allOptions:Lt},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:un,autoFocus:!Ge&&(!ke||u[wu]?.qboId!=null&&[y.expense?.qboId,y.income?.qboId].includes(u[wu].qboId)),onMenuClose:gn,customStyleConfig:c,disableCurrentOption:$t,menuPlacement:T,menuPortal:document.body,onCOTView:fe})})}):t.jsxRuntimeExports.jsx(wL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(Gq,{onClick:gs,"data-testid":M("category-label-text",ge),children:[t.jsxRuntimeExports.jsx(ks,{text:Nt??"",itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}),t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})})})]},tn)},Pt=u!=null&&u.categoryClassRecommendationsFetchState?.fetchState==="In-Progress",en=()=>{const Dt=C?Vre:_re(D,a);return Dt.map((xn,Fo)=>{const tn=`${m.transactionId}_${xn.key}_${u.lineId}`,Xn=Wre(xn,D,a);if(p>0&&g!=null&&Y.isVendorTransaction(g)===!0&&xn.key==="vendor")return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C,isSticky:xn.isSticky===!0},tn);if(p>0&&(xn.key==="transaction_type"||xn.key==="memo_and_receipt"||xn.key==="payment_account"&&X!=="journal_entry"))return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C},tn);switch(xn.key){case"activity":return t.jsxRuntimeExports.jsx(ltt,{},tn);case"vendor":default:return t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C,isSticky:xn.isSticky===!0,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(Uq,{isCOTEnabled:I,recommendations:et,type:"vendor",isEnabled:!!Ve?.isPreFilled,isMisCategorized:cs,onRecommendationClick:Ae,selectedValue:ze,selectedValueLabel:Me,isReviewTab:An,isAccountOptionDisabled:$t,existingOption:{label:g!=null&&Y.isVendorTransaction(g)===!0?g?.vendor?.name:void 0,value:g!=null&&Y.isVendorTransaction(g)===!0?g?.vendor?.id:void 0},cotTracking:$,lineId:u.lineId,transactionId:m.transactionId,openTooltipId:k,setOpenTooltipId:B}),t.jsxRuntimeExports.jsx(eR,{children:mt===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,isQuickViewMode:C,children:t.jsxRuntimeExports.jsxs(CL,{onClick:io=>{io.stopPropagation(),!C&&(N?.(),st(!1),kt(!0))},"data-testid":M("add-vendor-button",w),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addPayee,C===!1&&t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):yt===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:Bt,children:t.jsxRuntimeExports.jsx(o3i,{"data-testid":M("vendor-selection-dropdown-container",O1(w,Hx,p.toString())),children:t.jsxRuntimeExports.jsx(jse,{name:he,placeholder:op.addPayee,valueToInfo:pt,defaultValue:{selectedOption:ct.selectedOption,selectedOptionLabel:Me,defaultOptions:ct.defaultOptions},type:"vendor",autoFocus:!mt,style:{width:"100%"},pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:d,menuIsOpen:yt,onMenuClose:Bt,registerOptions:{required:!1},loadOptions:Po,showCOT:I,onCOTView:fe,menuPlacement:T,menuPortal:document.body})})}):t.jsxRuntimeExports.jsx(a3i,{children:t.jsxRuntimeExports.jsxs(wL,{isHovered:j,isQuickViewMode:C,children:[on(),t.jsxRuntimeExports.jsxs(n3i,{onClick:xs,"data-testid":M("vendor-name-text",w),children:[Ve!=null&&Ve.name?t.jsxRuntimeExports.jsx(ks,{text:Ve.name,itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}):t.jsxRuntimeExports.jsx(r3i,{children:F1}),C===!1&&t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})]})})})]},tn);case"category":return P0i(X,u.postingType)?t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,style:{paddingLeft:n.sp6},isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(uA,{style:{textAlign:"left",width:"100%"},children:F1})})},tn):an({isLineRecommendationsLoading:Pt,itemsData:xn,key:tn,resolvedWidthPercentage:Xn});case"class":{if(!D)return null;if(Pt===!0)return t.jsxRuntimeExports.jsx(_Se,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn},tn);const io=g?.lines!=null?g?.lines[p]:void 0;return t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(Uq,{isCOTEnabled:I,recommendations:et,type:"class",isReviewTab:An,isEnabled:!!u[Cu]?.isPreFilled,isAccountOptionDisabled:$t,isMisCategorized:qt,onRecommendationClick:Ae,selectedValue:we,selectedValueLabel:oo,existingOption:{label:io?.class?.className,value:io?.class?.classId},cotTracking:$,lineId:u.lineId,transactionId:m.transactionId,openTooltipId:k,setOpenTooltipId:B}),t.jsxRuntimeExports.jsx(eR,{children:Ue===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(CL,{onClick:Ti=>{Ti.stopPropagation(),!C&&(N?.(),qe(!1),It(!0))},"data-testid":M("class-selection-field",je),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addClass,t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):Ze===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:kn,children:t.jsxRuntimeExports.jsx(Yq,{isHovered:j,"data-testid":M("class-selection-dropdown-container",je),children:t.jsxRuntimeExports.jsx(Mc,{name:je,placeholder:op.addClass,valueToId:Ti=>Ke(Ti),type:"class",showCOT:I,defaultValue:{selectedOption:we,selectedOptionLabel:Ee,allOptions:wt},pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",menuIsOpen:Ze,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!Ue&&!we,customStyleConfig:c,onMenuClose:kn,menuPlacement:T,menuPortal:document.body,onCOTView:fe})})}):t.jsxRuntimeExports.jsx(wL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(Gq,{"data-testid":M("class-selection-field",je),onClick:Ms,children:[t.jsxRuntimeExports.jsx(ks,{text:oo??"",itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}),t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})})})]},tn)}case"project":return a?t.jsxRuntimeExports.jsxs(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,className:"item-value-container",children:[t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx("span",{})}),t.jsxRuntimeExports.jsx(eR,{children:Ie===!0?t.jsxRuntimeExports.jsx(bL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(CL,{onClick:io=>{io.stopPropagation(),!C&&(N?.(),_e(!1),jt(!0))},"data-testid":M("project-selection-field",ve),style:{display:"inline-flex",alignItems:"center",color:S.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[op.addProject,t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})}):at===!0?t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:Co,children:t.jsxRuntimeExports.jsx(Yq,{isHovered:j,"data-testid":M("project-selection-dropdown-container",ve),children:t.jsxRuntimeExports.jsx(Mc,{name:ve,placeholder:op.addProject,type:"project",showCOT:!1,defaultValue:{selectedOption:De,selectedOptionLabel:$e,allOptions:We},pageSource:"list_page",transactionStatus:An?"pending_review":"auto_categorized",menuIsOpen:at,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!Ie&&!De,customStyleConfig:c,onMenuClose:Co,menuPlacement:T,menuPortal:document.body})})}):t.jsxRuntimeExports.jsx(wL,{isHovered:j,children:t.jsxRuntimeExports.jsxs(Gq,{"data-testid":M("project-selection-field",ve),onClick:bt,children:[t.jsxRuntimeExports.jsx(ks,{text:Je??"",itemTextStyle:{color:j?Se.colors.primary:Se.colors.champion,fontSize:W.standardMedium.fontSizeValue,fontWeight:W.standardMedium.fontWeight}}),t.jsxRuntimeExports.jsx(T0,{children:t.jsxRuntimeExports.jsx(I0,{})})]})})})]},tn):null;case"date":return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(ete,{"data-testid":M("date-field",O1(w,Cu,p.toString())),children:t.jsxRuntimeExports.jsx(uA,{style:{color:j?Se.colors.primary:Se.colors.champion},children:q!=null?q.format(B0i.visual.MMMDCommaYYYYformat):null})})})},tn);case"transaction_type":{const io=__e(X,H);return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:G!=null?t.jsxRuntimeExports.jsx(F2,{windowSize:f,"data-testid":M("transaction-type-field",O1(w,Cu,p.toString())),isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsxs(i3i,{className:io&&re?"select-value-container":void 0,children:[io&&pe?t.jsxRuntimeExports.jsx(Pe,{title:op.transactionTypeDropdown.multilineNotEligibleTooltip,enterDelay:600,placement:"bottom",children:t.jsxRuntimeExports.jsx(At,{label:G??X})}):t.jsxRuntimeExports.jsx(At,{label:G??X,onClick:io&&re?()=>{de(ce,PE(X??"expense",se,G)),ee(!0)}:void 0,capsuleBackground:re&&Z?Se.colors.background:void 0,showChevron:io&&re}),io&&re&&Z&&t.jsxRuntimeExports.jsx(t.ClickAwayListener,{onClickAway:()=>ee(!1),children:t.jsxRuntimeExports.jsx(s3i,{children:t.jsxRuntimeExports.jsx(Mc,{name:ce,defaultValue:PE(X??"expense",se,G),pageSource:"list_page",showCOT:!1,transactionStatus:An?"pending_review":"auto_categorized",type:"category",menuIsOpen:Z,autoFocus:!0,onMenuClose:()=>ee(!1),customStyleConfig:oe,menuPlacement:T,menuPortal:ne,allowEmpty:!1,menuOptionPresentation:"typePill"})})})]})}):null},tn)}case"amount":{const io=Ne("0,0.[00]",u.amount,!0);return t.jsxRuntimeExports.jsx(ql,{windowSize:f,style:{marginRight:x[0]},wrapperWidth:xn.width,widthPercentage:Xn,isQuickViewMode:C,isLastItem:!0,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,isLastItem:!0,style:{justifyContent:"flex-end"},children:t.jsxRuntimeExports.jsx(ete,{"data-testid":M("transaction-amount-field",O1(w,Cu,p.toString())),style:{color:j?Se.colors.primary:Se.colors.champion},children:io})})},tn)}case"payment_account":{if(X==="journal_entry")return u.postingType==="credit"?an({isLineRecommendationsLoading:Pt,itemsData:xn,key:tn,resolvedWidthPercentage:Xn}):t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,style:{paddingLeft:n.sp6},isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(uA,{style:{textAlign:"left",width:"100%"},children:F1})})},tn);if(!(X==="expense"||X==="check"||X==="bill_payment"||X==="vendor_credit"||X==="credit_card_credit"||X==="deposit"||X==="sales_receipt"||X==="refund"||X==="payment"))return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,style:{paddingLeft:n.sp6},isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(uA,{style:{textAlign:"left",width:"100%"},children:F1})})},tn);const Ti=g?.account?.accountName,$r=g?.paymentType,ed=g?.paymentTypeName,Sr=$r==="credit_card"?V0i:$r==="cash"?Q0i:$r==="check"?Y0i:$r==="ach"?u3i:U0i,St={title:a3,items:[{text:op.paymentAccountTooltip.accountLabel+HSe,amount:Ti??F1},...ed!=null?[{text:op.paymentAccountTooltip.methodLabel+HSe,amount:ed}]:[]]};return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,children:t.jsxRuntimeExports.jsx(F2,{windowSize:f,isLastItem:Fo===Dt.length-1,children:t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",variant:"list-description",data:St,title:Ti??F1,enterDelay:600,arrow:!0,style:{overflow:"hidden",minWidth:0},children:t.jsxRuntimeExports.jsxs(W0i,{"data-testid":M("payment-account",w),style:{color:j?Se.colors.primary:Se.colors.champion},children:[Sr!=null&&t.jsxRuntimeExports.jsx(Sr,{style:{color:j?Se.colors.primary:Se.colors.champion,width:n.sp5}}),t.jsxRuntimeExports.jsx(uA,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:Ti??F1})]})})})},tn)}case"memo_and_receipt":{const io=g?.attachments??[],Ti=U?.fetchState==="In-Progress",$r=Sr=>{if(Sr.stopPropagation(),io.length===0||g==null)return;if(Uo==null){console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");return}Gt(io[0]),Qe(0),gt(!0);const St=io.map(Ws=>Ws.id),bn=`${Uo}/transaction_attachments`;QP(bn,z,{transaction_key:{transaction_id:g.id,transaction_type:g.type},attachment_ids:St}).then(Ws=>{Sn(Ws),Ws.length>0&&Cn(Ws[0])})},ed=Sr=>{Sr.stopPropagation(),Qn.current?.click()};return t.jsxRuntimeExports.jsx(ql,{windowSize:f,wrapperWidth:xn.width,widthPercentage:Xn,"data-testid":M("memo-field",O1(w,Cu,p.toString())),children:t.jsxRuntimeExports.jsxs(l3i,{className:"item-value-container",children:[xe!=null?t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",data:xe,variant:"multi-information-points",arrow:!0,style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:t.jsxRuntimeExports.jsx(Z0i,{"data-testid":M("memo-icon",w),style:{color:j?Se.colors.primary:Se.colors.champion}})}):t.jsxRuntimeExports.jsx(q0i,{style:{margin:0},children:F1}),Ti?t.jsxRuntimeExports.jsx(Ft,{size:"Small",style:{display:"flex"},start:!0}):io.length===0?t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",title:I0i,arrow:!0,enterDelay:600,children:t.jsxRuntimeExports.jsx(G0i,{"data-testid":M("upload-receipt-icon",w),style:{margin:0},onClick:Sr=>{Sr.stopPropagation(),ed(Sr)}})}):io.length===1?t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",title:T0i,arrow:!0,enterDelay:600,children:t.jsxRuntimeExports.jsx(c3i,{"data-testid":M("view-receipt-icon",w),style:{color:j?Se.colors.primary:Se.colors.champion},onClick:$r})}):t.jsxRuntimeExports.jsx(Pe,{display:"flex",placement:"bottom",arrow:!0,title:L0i,enterDelay:600,children:t.jsxRuntimeExports.jsx(d3i,{"data-testid":M("view-receipts-icon",w),style:{color:j?Se.colors.primary:Se.colors.hero},onClick:$r})}),t.jsxRuntimeExports.jsx(_c,{name:`transaction-receipt-${m.transactionId}`,fileRef:Qn,sizeLimit:sC,multiple:!0,acceptableTypes:[...Y.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:Sr=>{const St=Sr.target.files;if(St!=null&&St.length>0){const bn=Array.from(St);Q(v,m.transactionId,X??a3,bn,bn.map(Ws=>Ws.name))}},onFileSizeError:()=>{}})]})},tn)}}})},Rs=g?.attachments??[],ho=ln??Rs[0];return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[en(),Ct&&Rs.length>0&&ho!=null?ii.createPortal(t.jsxRuntimeExports.jsx(rb,{allFiles:vn,fileSource:Xt,file:ho,title:ho.fileName,attachments:Rs,showNavigation:!1,setFileSource:Cn,setShowFullScreenView:gt,onCrossClick:()=>{gt(!1),Cn(null),Sn([]),Gt(void 0),Qe(0)},onNextClick:()=>{const Dt=(vt+1)%Rs.length;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt])},onPreviousClick:()=>{const Dt=(vt-1+Rs.length)%Rs.length;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt])},setSelectedFileAttachment:Dt=>{Gt(typeof Dt=="function"?xn=>Dt(xn??Rs[0]):Dt)},handleTouchStart:Dt=>jo(Dt.targetTouches[0].clientX),handleTouchMove:Dt=>Yt(Dt.targetTouches[0].clientX),handleTouchEnd:()=>{if(yo-es>50&&es!==0&&vt<Rs.length-1){const Dt=vt+1;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt]),jo(0),Yt(0)}else if(yo-es<-50&&es!==0&&vt>0){const Dt=vt-1;Qe(Dt),Gt(Rs[Dt]),vn[Dt]!=null&&Cn(vn[Dt]),jo(0),Yt(0)}}}),document.body):null]})},WSe=({isEnabled:e,isMisCategorized:o,hasRecommendations:i,isTooltipVisible:r=!1,type:a})=>e?r?t.jsxRuntimeExports.jsx(K0i,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(J0i,{className:"ai-icon-selected-plain","data-testid":M("recommendation-icon",a)}):!e&&o||i?r?t.jsxRuntimeExports.jsx(e3i,{"data-testid":M("recommendation-icon",a)}):t.jsxRuntimeExports.jsx(X0i,{"data-testid":M("recommendation-icon",a)}):null,AO=({children:e})=>t.jsxRuntimeExports.jsx(ctt,{children:e}),Uq=({recommendations:e,isCOTEnabled:o,type:i,isReviewTab:r,selectedValueLabel:a,isEnabled:l=!1,isMisCategorized:c=!1,selectedValue:d,existingOption:u,cotTracking:p,lineId:m,openTooltipId:g,transactionId:f,isAccountOptionDisabled:y,onRecommendationClick:j,setOpenTooltipId:C})=>{const w=h.useMemo(()=>`${f}:${m}:${i}`,[f,m,i]),R=g===w,v=jn().analytics,{createAlternateRecommendationCallback:I}=j$(),T=h.useCallback(O=>{const H=e[1],V=e[0];I(i,{currentValue:a??a3,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:p?{transactionId:f,lineId:m,onCOTView:(N,z,_,U)=>{p.onCOTView?.(N,z,_,U)}}:void 0},H,V)(O)},[I,e,a,r,i,p,m,f]),$=Vv(e,i,o,u,"list_page",r?"pending_review":"auto_categorized",j,T,d,y),k=V7(e,i),P=h.useCallback(()=>{C(w);const O=$?.recommendations[0]?.cot??[],H=$?.recommendations[1]?.cot??[],V=H.length>0;if(v.trackTransactionCotView({recommendationFor:i,currentValue:a??a3,recommendation:$?.recommendations[0]?.name??a3,recommendationCot:O,isRecommendationCotAvailable:O.length>0,recommendationReason:$?.recommendations[0]?.reason??a3,recommendationConfidencePercentage:$?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Mu(lc($?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:$?.recommendations[1]?.name??a3,alternativeRecommendationCot:H,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:$?.recommendations[1]?.reason??a3,alternativeRecommendationConfidencePercentage:$?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Mu(lc($?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",transactionId:f??null,lineId:m??null}),p?.onCOTView!=null){const N=h$($);N!=null&&p.onCOTView(m,f,i,N)}},[v,$,r,a,i,m,f,w,C]),L=h.useCallback(()=>{g===w&&C(void 0)},[g,w,C]),B=h.useMemo(()=>!d||!k?!1:e.some(O=>i==="vendor"&&O.vendor!=null?O.vendor.id===d||O.vendor.qboId===d:i==="category"&&O.account!=null?O.account.qboId===d||O.account.accountId===d:i==="class"&&O.class!=null?O.class.classId===d:!1),[d,k,e,i]);if(!k)return t.jsxRuntimeExports.jsx(ctt,{});const D=l||B;return $?t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx(Pe,{variant:"chain-of-thought",data:$,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:P,onClose:L,children:t.jsxRuntimeExports.jsx(t3i,{"data-testid":M("recommendation-icon",i),children:t.jsxRuntimeExports.jsx(WSe,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R})})})}):t.jsxRuntimeExports.jsx(AO,{children:t.jsxRuntimeExports.jsx(WSe,{isEnabled:D,isMisCategorized:c,hasRecommendations:k,isTooltipVisible:R,type:i})})},att=({isAccountingClassesEnabled:e,showProjectField:o})=>{const i=te(),r=ja(),a=KH(),l=r?Vre:_re(e,o);return t.jsxRuntimeExports.jsx(F0i,{$flexibleWidth:a,windowSize:i,isQuickViewMode:r,children:l.map((c,d)=>{const u=`${d}${k0i}${c.key}`,p=Wre(c,e,o);switch(c.key){case"activity":return t.jsxRuntimeExports.jsx(ltt,{},u);case"vendor":return t.jsxRuntimeExports.jsx(ql,{windowSize:i,wrapperWidth:c.width,widthPercentage:p,isQuickViewMode:r,isSticky:c.isSticky,style:c.customStyle?.common,children:t.jsxRuntimeExports.jsx(F2,{windowSize:i,isLastItem:d===l.length-1,children:t.jsxRuntimeExports.jsxs(ete,{children:[t.jsxRuntimeExports.jsx(Ys,{width:x[4],height:x[4]}),t.jsxRuntimeExports.jsx(Ce,{height:x[4],width:x[12],style:{display:"flex",alignItems:"center"}})]})})},u);default:{const m=d===l.length-1;return t.jsxRuntimeExports.jsx(ql,{isLastItem:m,windowSize:i,wrapperWidth:c.width,widthPercentage:p,isQuickViewMode:r,style:c.customStyle?.common,children:t.jsxRuntimeExports.jsx(F2,{windowSize:i,isLastItem:m,children:t.jsxRuntimeExports.jsx(Ce,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})})},u)}}})})},ltt=s.div`
|
|
78896
78896
|
width: ${n.sp0};
|
|
78897
78897
|
height: ${n.sp0};
|
|
78898
78898
|
`,O0i=s.div`
|
|
@@ -127271,7 +127271,9 @@ const bd = ({
|
|
|
127271
127271
|
),
|
|
127272
127272
|
transactionPage: s,
|
|
127273
127273
|
transactionCurrentStatus: l,
|
|
127274
|
-
recommendationConfidencePercentage: Q?.confidencePercentage ?? null
|
|
127274
|
+
recommendationConfidencePercentage: Q?.confidencePercentage ?? null,
|
|
127275
|
+
transactionId: null,
|
|
127276
|
+
lineId: null
|
|
127275
127277
|
}), u != null && Q != null && Q.cot.length > 0 && u(a, Q.source);
|
|
127276
127278
|
}, [
|
|
127277
127279
|
W,
|
|
@@ -128473,7 +128475,9 @@ function qee({
|
|
|
128473
128475
|
).toLocaleLowerCase()
|
|
128474
128476
|
) : null,
|
|
128475
128477
|
transactionCurrentStatus: r.transactionStatus,
|
|
128476
|
-
transactionPage: r.pageSource
|
|
128478
|
+
transactionPage: r.pageSource,
|
|
128479
|
+
transactionId: null,
|
|
128480
|
+
lineId: null
|
|
128477
128481
|
}), y != null) {
|
|
128478
128482
|
const H = JI(x);
|
|
128479
128483
|
H != null && y(r.type, H);
|
|
@@ -129911,7 +129915,9 @@ const {
|
|
|
129911
129915
|
).toLocaleLowerCase()
|
|
129912
129916
|
) : null,
|
|
129913
129917
|
transactionCurrentStatus: c.transactionCurrentStatus ?? "auto_categorized",
|
|
129914
|
-
transactionPage: c.transactionPage ?? "details_page"
|
|
129918
|
+
transactionPage: c.transactionPage ?? "details_page",
|
|
129919
|
+
transactionId: c.cotTracking?.transactionId ?? null,
|
|
129920
|
+
lineId: c.cotTracking?.lineId ?? null
|
|
129915
129921
|
}), c.cotTracking?.onCOTView != null && c.cotTracking.lineId != null && d != null) {
|
|
129916
129922
|
const y = ixe(
|
|
129917
129923
|
d,
|
|
@@ -129966,7 +129972,9 @@ const {
|
|
|
129966
129972
|
_c(
|
|
129967
129973
|
f ?? void 0
|
|
129968
129974
|
).toLocaleLowerCase()
|
|
129969
|
-
)
|
|
129975
|
+
),
|
|
129976
|
+
transactionId: c.cotTracking?.transactionId ?? null,
|
|
129977
|
+
lineId: c.cotTracking?.lineId ?? null
|
|
129970
129978
|
}), c.cotTracking?.onCOTView != null && c.cotTracking.lineId != null && u != null) {
|
|
129971
129979
|
const y = ixe(
|
|
129972
129980
|
u,
|
|
@@ -131700,7 +131708,9 @@ const hno = i.span`
|
|
|
131700
131708
|
),
|
|
131701
131709
|
transactionPage: r,
|
|
131702
131710
|
transactionCurrentStatus: s,
|
|
131703
|
-
recommendationConfidencePercentage: j?.confidencePercentage ?? null
|
|
131711
|
+
recommendationConfidencePercentage: j?.confidencePercentage ?? null,
|
|
131712
|
+
transactionId: null,
|
|
131713
|
+
lineId: null
|
|
131704
131714
|
}), u != null && j != null && j.cot.length > 0 && u(a, j.source);
|
|
131705
131715
|
}, [
|
|
131706
131716
|
w,
|
|
@@ -133476,7 +133486,9 @@ const hno = i.span`
|
|
|
133476
133486
|
).toLocaleLowerCase()
|
|
133477
133487
|
) : null,
|
|
133478
133488
|
transactionCurrentStatus: s ? "pending_review" : "auto_categorized",
|
|
133479
|
-
transactionPage: "list_page"
|
|
133489
|
+
transactionPage: "list_page",
|
|
133490
|
+
transactionId: f ?? null,
|
|
133491
|
+
lineId: p ?? null
|
|
133480
133492
|
}), h?.onCOTView != null) {
|
|
133481
133493
|
const F = JI(j);
|
|
133482
133494
|
F != null && h.onCOTView(
|
|
@@ -135832,7 +135844,9 @@ const {
|
|
|
135832
135844
|
).toLocaleLowerCase()
|
|
135833
135845
|
) : null,
|
|
135834
135846
|
transactionCurrentStatus: s ? "pending_review" : "auto_categorized",
|
|
135835
|
-
transactionPage: "list_page"
|
|
135847
|
+
transactionPage: "list_page",
|
|
135848
|
+
transactionId: f ?? null,
|
|
135849
|
+
lineId: p ?? null
|
|
135836
135850
|
}), h?.onCOTView != null) {
|
|
135837
135851
|
const F = JI(j);
|
|
135838
135852
|
F != null && h.onCOTView(
|
|
@@ -137294,7 +137308,9 @@ const vxe = {
|
|
|
137294
137308
|
alternativeRecommendationConfidencePercentage: $?.recommendations[1]?.confidencePercentage ?? null,
|
|
137295
137309
|
alternativeRecommendationConfidenceLevel: B,
|
|
137296
137310
|
transactionCurrentStatus: null,
|
|
137297
|
-
transactionPage: "details_page"
|
|
137311
|
+
transactionPage: "details_page",
|
|
137312
|
+
transactionId: c?.transactionId ?? null,
|
|
137313
|
+
lineId: c?.lineId ?? null
|
|
137298
137314
|
}), c?.onCOTView != null && c.lineId != null) {
|
|
137299
137315
|
const E = JI($);
|
|
137300
137316
|
E != null && c.onCOTView(
|
|
@@ -317564,7 +317580,9 @@ const {
|
|
|
317564
317580
|
).toLocaleLowerCase()
|
|
317565
317581
|
) : null,
|
|
317566
317582
|
transactionCurrentStatus: s ? "pending_review" : "auto_categorized",
|
|
317567
|
-
transactionPage: "list_page"
|
|
317583
|
+
transactionPage: "list_page",
|
|
317584
|
+
transactionId: f ?? null,
|
|
317585
|
+
lineId: p ?? null
|
|
317568
317586
|
}), h?.onCOTView != null) {
|
|
317569
317587
|
const F = JI(j);
|
|
317570
317588
|
F != null && h.onCOTView(
|
package/dist/cockpit.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./SessionTimeoutPopup-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./SessionTimeoutPopup-BTMOCjDP.cjs"),o=require("./vendor-.pnpm-DUQUuNXu.cjs"),u=require("react"),s=require("@emotion/styled"),nt=require("@liveblocks/react"),J=require("@zeniai/client-epic-state"),Ds=require("@liveblocks/react-ui"),ve=require("@emotion/react"),Oo=require("react-dom"),$t=require("@liveblocks/react-ui/primitives"),ki=require("@liveblocks/react/suspense");function Ua(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 le=Ua(u),Ha=({inboxNotification:e,onNotificationClick:n})=>{const r=nt.useInboxNotificationThread(e.id),i=r.metadata.entityType.split("."),a=r.metadata.isGlobalComment&&i.length===2;return o.jsxRuntimeExports.jsx(Ka,{isClickable:a,isUnRead:e.readAt==null,onClick:()=>{n(r.metadata,r.id)},children:o.jsxRuntimeExports.jsx(Ds.InboxNotification,{inboxNotification:e,kinds:{thread:c=>o.jsxRuntimeExports.jsx(Ds.InboxNotification.Thread,{...c,showRoomName:!0})}})})},Ka=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
cursor: ${e=>e.isClickable?"pointer":"initial"};
|
package/dist/cockpit.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f1 as o, iw as Ee, m as jt, ha as T, fC as zt, bY as ri, a4 as Ke, fH as $p, hw as Cp, hH as wp, aK as A, hz as _, eN as Sp, j3 as ge, iQ as xo, gd as ht, aM as Gt, ds as Js, C as Io, g2 as ws, dm as Ao, fE as Ss, fT as vp, j5 as vs, bm as nc, iS as rc, fd as ro, fa as ze, hG as ic, f_ as Po, eO as Xs, dh as _e, iI as jp, bk as kp, bG as Yt, bh as Tp, fA as sc, hP as Pp, bu as js, Q as ks, i0 as Lp, i1 as Ip, i2 as Ap, aL as Op, dE as Dp, df as $t, fG as ac, dO as Rp, fq as ii, fY as Ts, iu as B, eH as Ep, bR as Np, eU as ve, fw as Mp, ex as z, R as bn, d_ as lc, d$ as Ur, dZ as cc, b$ as zp, du as Bp, fl as Fp, c0 as Kr, eR as si, c2 as cs, e2 as qs, e0 as Wp, e1 as _p, c1 as yi, b_ as fi, c3 as Vp, dP as Ue, ix as gt, fm as Ps, bU as Hr, eV as Up, fx as Ls, bH as ai, ic as Ie, bZ as li, fy as dc, fQ as pc, fL as ir, hs as Ut, gf as ct, f6 as vn, dj as Kp, dl as uc, fB as hc, aX as Lo, aV as Yo, aW as Zo, b8 as mc, fX as ci, fI as Is, eZ as jn, hI as Mt, h8 as nt, gB as Gr, h4 as Hp, gb as kn, gc as Tn, p as Pn, ho as Jo, fj as Xo, dg as di, fF as As, dk as Gp, fz as yo, fD as qo, bs as no, h3 as ea, hZ as Yp, hN as Zp, hT as Qp, fK as Jp, g1 as Xp, g0 as sr, f7 as qp, f8 as Os, hJ as eu, fJ as gc, fP as xc, fO as yc, bD as fc, io as tu, d9 as ta, da as Ds, d4 as ou, d8 as nu, bV as ar, bE as Ln, fN as Rs, aO as ru, hC as vt, e_ as bc, d7 as Yr, dd as iu, bC as Es, d1 as su, ey as Cn, fv as au, fu as lu, fr as cu, d2 as pi, eP as oa, d5 as $c, iW as Zr, dQ as Cc, fo as wc, hx as Ns, d3 as du, bI as to, aZ as Nt, fS as Sc, fe as pu, dq as vc, fU as uu, fc as hu, a_ as Jt, ib as ur, bM as mu, j1 as gu, dc as Xt, b9 as jc, eQ as na, d6 as xu, db as yu, ek as ra, g as fu, dS as bu, fs as $u, iN as kc, iR as Tc, bL as oo, a8 as ui, a9 as wn, iT as Pc, hU as Lc, bn as Cu, dv as wu, dJ as Ic, dI as Su, h_ as vu, dz as Qr, aF as Ac, dy as ju, dx as ku, br as Tu, dw as Ms, hK as Oc, bP as Dc, hc as Rc, o as Ec, g9 as Nc, bQ as Pu, D as Mc, bT as zc, gC as Lu, f5 as Iu, iM as Au, dG as Ou, hO as Du, hL as Ru, a3 as Eu, eu as ia, hS as Nu, f$ as Bc, h$ as sa, dK as Mu, di as zu, fb as Bu, fM as Fu, fR as Wu, ft as _u, hl as aa, fW as Vu, e$ as Fc, eW as Uu, hr as Wc, bt as Ku, ff as Hu, bF as Gu, bJ as Yu, eX as _c, fV as Zu, de as Qu, fZ as Ju, eT as Xu, eY as Vc, f9 as qu, bK as eh, eS as th } from "./SessionTimeoutPopup-
|
|
2
|
-
import { A as oT, a as nT, b as rT, c as iT, d as sT, e as aT, f as lT, h as cT, i as dT, j as pT, k as uT, l as hT, n as mT, q as gT, r as xT, s as yT, t as fT, u as bT, v as $T, w as CT, x as wT, y as ST, z as vT, B as jT, E as kT, F as TT, G as PT, H as LT, I as IT, J as AT, K as OT, L as DT, M as RT, N as ET, O as NT, P as MT, S as zT, T as BT, U as FT, V as WT, W as _T, X as VT, Y as UT, Z as KT, _ as HT, f4 as GT, $ as YT, a0 as ZT, a1 as QT, a2 as JT, a5 as XT, a6 as qT, a7 as eP, aa as tP, ab as oP, ac as nP, ad as rP, ae as iP, af as sP, ag as aP, ah as lP, ai as cP, aj as dP, ak as pP, al as uP, am as hP, an as mP, ao as gP, ap as xP, aq as yP, ar as fP, as as bP, at as $P, au as CP, av as wP, aw as SP, ax as vP, ay as jP, az as kP, f4 as TP, aA as PP, aB as LP, aC as IP, aD as AP, aE as OP, aG as DP, aH as RP, aI as EP, aJ as NP, aN as MP, aP as zP, aQ as BP, aR as FP, aS as WP, aT as _P, aU as VP, aY as UP, a$ as KP, b0 as HP, b1 as GP, b2 as YP, b3 as ZP, b4 as QP, b5 as JP, b6 as XP, b7 as qP, ba as eL, bb as tL, bc as oL, bd as nL, be as rL, bf as iL, bg as sL, bi as aL, bl as lL, bo as cL, bp as dL, bq as pL, bv as uL, bw as hL, bx as mL, by as gL, bz as xL, bA as yL, bB as fL, bN as bL, bO as $L, bS as CL, bW as wL, bX as SL, c4 as vL, c5 as jL, c6 as kL, c7 as TL, c8 as PL, c9 as LL, ca as IL, cb as AL, cc as OL, cd as DL, ce as RL, cf as EL, cg as NL, ch as ML, ci as zL, cj as BL, ck as FL, cl as WL, cm as _L, cn as VL, co as UL, cp as KL, cq as HL, cr as GL, cs as YL, ct as ZL, cu as QL, cv as JL, cw as XL, cx as qL, cy as eI, cz as tI, cA as oI, cB as nI, cC as rI, cD as iI, cE as sI, cF as aI, cG as lI, cH as cI, cI as dI, cJ as pI, cK as uI, cL as hI, cM as mI, cN as gI, cO as xI, cP as yI, cQ as fI, cR as bI, cS as $I, cT as CI, cU as wI, cV as SI, cV as vI, cW as jI, cX as kI, cY as TI, cZ as PI, c_ as LI, c$ as II, d0 as AI, dn as OI, dp as DI, dr as RI, dt as EI, dA as NI, dB as MI, dC as zI, dD as BI, dF as FI, dH as WI, dL as _I, dM as VI, dN as UI, dR as KI, dT as HI, dU as GI, dV as YI, dW as ZI, dX as QI, dY as JI, e3 as XI, e4 as qI, e5 as eA, e6 as tA, e7 as oA, e8 as nA, e9 as rA, ea as iA, eb as sA, ec as aA, ed as lA, ee as cA, ef as dA, eg as pA, eh as uA, ei as hA, ej as mA, el as gA, bj as xA, em as yA, en as fA, eo as bA, ep as $A, eq as CA, er as wA, es as SA, f4 as vA, ev as jA, et as kA, ew as TA, ez as PA, eA as LA, eB as IA, eC as AA, eD as OA, eE as DA, eF as RA, eG as EA, eI as NA, eJ as MA, eK as zA, eL as BA, eM as FA, f0 as WA, f2 as _A, f3 as VA, fg as UA, fh as KA, fi as HA, fk as GA, fn as YA, fp as ZA, g3 as QA, g4 as JA, g5 as XA, g6 as qA, g7 as eO, g8 as tO, ga as oO, ge as nO, gg as rO, gh as iO, gi as sO, gj as aO, gk as lO, gl as cO, gm as dO, gn as pO, go as uO, gp as hO, gq as mO, gr as gO, gs as xO, gt as yO, gu as fO, gv as bO, gw as $O, gx as CO, gy as wO, gz as SO, gA as vO, gD as jO, gE as kO, gF as TO, gG as PO, gH as LO, gI as IO, gJ as AO, gK as OO, gL as DO, gM as RO, gN as EO, gO as NO, gP as MO, gQ as zO, gR as BO, gS as FO, gT as WO, gU as _O, gV as VO, gW as UO, gX as KO, gY as HO, gZ as GO, g_ as YO, g$ as ZO, h0 as QO, h1 as JO, h2 as XO, h5 as qO, h6 as eD, h7 as tD, h9 as oD, hb as nD, hd as rD, he as iD, hf as sD, hg as aD, hh as lD, hi as cD, hj as dD, hk as pD, hm as uD, hn as hD, hp as mD, hq as gD, ht as xD, hv as yD, hu as fD, hy as bD, hA as $D, hB as CD, hD as wD, hE as SD, hF as vD, hM as jD, hQ as kD, hR as TD, hV as PD, hW as LD, hX as ID, hY as AD, i3 as OD, i4 as DD, i5 as RD, i6 as ED, i7 as ND, i8 as MD, i9 as zD, ia as BD, id as FD, ie as WD, ig as _D, ih as VD, ii as UD, ij as KD, ik as HD, il as GD, im as YD, ip as ZD, iq as QD, ir as JD, is as XD, it as qD, iv as eR, iy as tR, iz as oR, iA as nR, iB as rR, iC as iR, iD as sR, iE as aR, iF as lR, iG as cR, iH as dR, iJ as pR, iK as uR, iL as hR, iO as mR, iP as gR, iU as xR, iV as yR, iX as fR, iY as bR, iZ as $R, i_ as CR, i$ as wR, j0 as SR, j2 as vR, j4 as jR, j6 as kR, j7 as TR } from "./SessionTimeoutPopup-
|
|
1
|
+
import { f1 as o, iw as Ee, m as jt, ha as T, fC as zt, bY as ri, a4 as Ke, fH as $p, hw as Cp, hH as wp, aK as A, hz as _, eN as Sp, j3 as ge, iQ as xo, gd as ht, aM as Gt, ds as Js, C as Io, g2 as ws, dm as Ao, fE as Ss, fT as vp, j5 as vs, bm as nc, iS as rc, fd as ro, fa as ze, hG as ic, f_ as Po, eO as Xs, dh as _e, iI as jp, bk as kp, bG as Yt, bh as Tp, fA as sc, hP as Pp, bu as js, Q as ks, i0 as Lp, i1 as Ip, i2 as Ap, aL as Op, dE as Dp, df as $t, fG as ac, dO as Rp, fq as ii, fY as Ts, iu as B, eH as Ep, bR as Np, eU as ve, fw as Mp, ex as z, R as bn, d_ as lc, d$ as Ur, dZ as cc, b$ as zp, du as Bp, fl as Fp, c0 as Kr, eR as si, c2 as cs, e2 as qs, e0 as Wp, e1 as _p, c1 as yi, b_ as fi, c3 as Vp, dP as Ue, ix as gt, fm as Ps, bU as Hr, eV as Up, fx as Ls, bH as ai, ic as Ie, bZ as li, fy as dc, fQ as pc, fL as ir, hs as Ut, gf as ct, f6 as vn, dj as Kp, dl as uc, fB as hc, aX as Lo, aV as Yo, aW as Zo, b8 as mc, fX as ci, fI as Is, eZ as jn, hI as Mt, h8 as nt, gB as Gr, h4 as Hp, gb as kn, gc as Tn, p as Pn, ho as Jo, fj as Xo, dg as di, fF as As, dk as Gp, fz as yo, fD as qo, bs as no, h3 as ea, hZ as Yp, hN as Zp, hT as Qp, fK as Jp, g1 as Xp, g0 as sr, f7 as qp, f8 as Os, hJ as eu, fJ as gc, fP as xc, fO as yc, bD as fc, io as tu, d9 as ta, da as Ds, d4 as ou, d8 as nu, bV as ar, bE as Ln, fN as Rs, aO as ru, hC as vt, e_ as bc, d7 as Yr, dd as iu, bC as Es, d1 as su, ey as Cn, fv as au, fu as lu, fr as cu, d2 as pi, eP as oa, d5 as $c, iW as Zr, dQ as Cc, fo as wc, hx as Ns, d3 as du, bI as to, aZ as Nt, fS as Sc, fe as pu, dq as vc, fU as uu, fc as hu, a_ as Jt, ib as ur, bM as mu, j1 as gu, dc as Xt, b9 as jc, eQ as na, d6 as xu, db as yu, ek as ra, g as fu, dS as bu, fs as $u, iN as kc, iR as Tc, bL as oo, a8 as ui, a9 as wn, iT as Pc, hU as Lc, bn as Cu, dv as wu, dJ as Ic, dI as Su, h_ as vu, dz as Qr, aF as Ac, dy as ju, dx as ku, br as Tu, dw as Ms, hK as Oc, bP as Dc, hc as Rc, o as Ec, g9 as Nc, bQ as Pu, D as Mc, bT as zc, gC as Lu, f5 as Iu, iM as Au, dG as Ou, hO as Du, hL as Ru, a3 as Eu, eu as ia, hS as Nu, f$ as Bc, h$ as sa, dK as Mu, di as zu, fb as Bu, fM as Fu, fR as Wu, ft as _u, hl as aa, fW as Vu, e$ as Fc, eW as Uu, hr as Wc, bt as Ku, ff as Hu, bF as Gu, bJ as Yu, eX as _c, fV as Zu, de as Qu, fZ as Ju, eT as Xu, eY as Vc, f9 as qu, bK as eh, eS as th } from "./SessionTimeoutPopup-C22uSV5s.js";
|
|
2
|
+
import { A as oT, a as nT, b as rT, c as iT, d as sT, e as aT, f as lT, h as cT, i as dT, j as pT, k as uT, l as hT, n as mT, q as gT, r as xT, s as yT, t as fT, u as bT, v as $T, w as CT, x as wT, y as ST, z as vT, B as jT, E as kT, F as TT, G as PT, H as LT, I as IT, J as AT, K as OT, L as DT, M as RT, N as ET, O as NT, P as MT, S as zT, T as BT, U as FT, V as WT, W as _T, X as VT, Y as UT, Z as KT, _ as HT, f4 as GT, $ as YT, a0 as ZT, a1 as QT, a2 as JT, a5 as XT, a6 as qT, a7 as eP, aa as tP, ab as oP, ac as nP, ad as rP, ae as iP, af as sP, ag as aP, ah as lP, ai as cP, aj as dP, ak as pP, al as uP, am as hP, an as mP, ao as gP, ap as xP, aq as yP, ar as fP, as as bP, at as $P, au as CP, av as wP, aw as SP, ax as vP, ay as jP, az as kP, f4 as TP, aA as PP, aB as LP, aC as IP, aD as AP, aE as OP, aG as DP, aH as RP, aI as EP, aJ as NP, aN as MP, aP as zP, aQ as BP, aR as FP, aS as WP, aT as _P, aU as VP, aY as UP, a$ as KP, b0 as HP, b1 as GP, b2 as YP, b3 as ZP, b4 as QP, b5 as JP, b6 as XP, b7 as qP, ba as eL, bb as tL, bc as oL, bd as nL, be as rL, bf as iL, bg as sL, bi as aL, bl as lL, bo as cL, bp as dL, bq as pL, bv as uL, bw as hL, bx as mL, by as gL, bz as xL, bA as yL, bB as fL, bN as bL, bO as $L, bS as CL, bW as wL, bX as SL, c4 as vL, c5 as jL, c6 as kL, c7 as TL, c8 as PL, c9 as LL, ca as IL, cb as AL, cc as OL, cd as DL, ce as RL, cf as EL, cg as NL, ch as ML, ci as zL, cj as BL, ck as FL, cl as WL, cm as _L, cn as VL, co as UL, cp as KL, cq as HL, cr as GL, cs as YL, ct as ZL, cu as QL, cv as JL, cw as XL, cx as qL, cy as eI, cz as tI, cA as oI, cB as nI, cC as rI, cD as iI, cE as sI, cF as aI, cG as lI, cH as cI, cI as dI, cJ as pI, cK as uI, cL as hI, cM as mI, cN as gI, cO as xI, cP as yI, cQ as fI, cR as bI, cS as $I, cT as CI, cU as wI, cV as SI, cV as vI, cW as jI, cX as kI, cY as TI, cZ as PI, c_ as LI, c$ as II, d0 as AI, dn as OI, dp as DI, dr as RI, dt as EI, dA as NI, dB as MI, dC as zI, dD as BI, dF as FI, dH as WI, dL as _I, dM as VI, dN as UI, dR as KI, dT as HI, dU as GI, dV as YI, dW as ZI, dX as QI, dY as JI, e3 as XI, e4 as qI, e5 as eA, e6 as tA, e7 as oA, e8 as nA, e9 as rA, ea as iA, eb as sA, ec as aA, ed as lA, ee as cA, ef as dA, eg as pA, eh as uA, ei as hA, ej as mA, el as gA, bj as xA, em as yA, en as fA, eo as bA, ep as $A, eq as CA, er as wA, es as SA, f4 as vA, ev as jA, et as kA, ew as TA, ez as PA, eA as LA, eB as IA, eC as AA, eD as OA, eE as DA, eF as RA, eG as EA, eI as NA, eJ as MA, eK as zA, eL as BA, eM as FA, f0 as WA, f2 as _A, f3 as VA, fg as UA, fh as KA, fi as HA, fk as GA, fn as YA, fp as ZA, g3 as QA, g4 as JA, g5 as XA, g6 as qA, g7 as eO, g8 as tO, ga as oO, ge as nO, gg as rO, gh as iO, gi as sO, gj as aO, gk as lO, gl as cO, gm as dO, gn as pO, go as uO, gp as hO, gq as mO, gr as gO, gs as xO, gt as yO, gu as fO, gv as bO, gw as $O, gx as CO, gy as wO, gz as SO, gA as vO, gD as jO, gE as kO, gF as TO, gG as PO, gH as LO, gI as IO, gJ as AO, gK as OO, gL as DO, gM as RO, gN as EO, gO as NO, gP as MO, gQ as zO, gR as BO, gS as FO, gT as WO, gU as _O, gV as VO, gW as UO, gX as KO, gY as HO, gZ as GO, g_ as YO, g$ as ZO, h0 as QO, h1 as JO, h2 as XO, h5 as qO, h6 as eD, h7 as tD, h9 as oD, hb as nD, hd as rD, he as iD, hf as sD, hg as aD, hh as lD, hi as cD, hj as dD, hk as pD, hm as uD, hn as hD, hp as mD, hq as gD, ht as xD, hv as yD, hu as fD, hy as bD, hA as $D, hB as CD, hD as wD, hE as SD, hF as vD, hM as jD, hQ as kD, hR as TD, hV as PD, hW as LD, hX as ID, hY as AD, i3 as OD, i4 as DD, i5 as RD, i6 as ED, i7 as ND, i8 as MD, i9 as zD, ia as BD, id as FD, ie as WD, ig as _D, ih as VD, ii as UD, ij as KD, ik as HD, il as GD, im as YD, ip as ZD, iq as QD, ir as JD, is as XD, it as qD, iv as eR, iy as tR, iz as oR, iA as nR, iB as rR, iC as iR, iD as sR, iE as aR, iF as lR, iG as cR, iH as dR, iJ as pR, iK as uR, iL as hR, iO as mR, iP as gR, iU as xR, iV as yR, iX as fR, iY as bR, iZ as $R, i_ as CR, i$ as wR, j0 as SR, j2 as vR, j4 as jR, j6 as kR, j7 as TR } from "./SessionTimeoutPopup-C22uSV5s.js";
|
|
3
3
|
import { am as t, D as oh, a2 as nh, aN as Ze, q as In, O as at, L as rh, s as ih, T as sh, aJ as fo, ab as Qo, i as An, o as hi, f as io, h as xe, aI as bo, Z as en, m as $o, J as tn, b as so, V as on, af as rt, I as Uc, X as ah, ap as Vt, aH as lh, k as zs, C as Kc, n as ch, d as dh, e as Bs, B as Fs, au as la } from "./vendor-.pnpm-DaZ4hAq4.js";
|
|
4
4
|
import { aC as LR } from "./vendor-.pnpm-DaZ4hAq4.js";
|
|
5
5
|
import * as me from "react";
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SessionTimeoutPopup-DRXHSIAd.cjs"),a=require("./vendor-.pnpm-DUQUuNXu.cjs"),i=require("@zeniai/client-epic-state"),t=require("@emotion/styled");exports.AIAgentsActivatingPage=e.AIAgentsActivatingPage;exports.AIIconButton=e.AIIconButton;exports.AIPerformancePage=e.AIPerformancePage;exports.ALL_AI_CFO_MENU_OPTIONS=e.ALL_AI_CFO_MENU_OPTIONS;exports.ALL_INVOICING_MENU_GROUPS=e.ALL_INVOICING_MENU_GROUPS;exports.ALL_INVOICING_MENU_OPTIONS=e.ALL_INVOICING_MENU_OPTIONS;exports.ALL_SETTINGS_MENU_OPTIONS=e.ALL_SETTINGS_MENU_OPTIONS;exports.APP_DRAWER_CONTENT_WIDTH_PX=e.APP_DRAWER_CONTENT_WIDTH_PX;exports.AccountInfoPage=e.AccountInfoPage;exports.AccountLockedInfoModal=e.AccountLockedInfoModal;exports.AccountReconDetailsDrawerPage=e.AccountReconDetailsDrawerPage;exports.AccountReconDetailsDrawerPageV2=e.AccountReconDetailsDrawerPage$1;exports.ActivityIndicator=e.ActivityIndicator;exports.AddAddressForCardDrawer=e.AddAddressForCardDrawer;exports.AddToWalletPage=e.AddToWalletPage;exports.AddressFormPage=e.AddressFormPage;exports.AgingReportsPage=e.AgingReportsPage;exports.AiCfoChatHeader=e.AiCfoChatHeader;exports.AiCfoMenuContent=e.AiCfoMenuContent;exports.AiCfoOnboardingPage=e.AiCfoOnboardingPage;exports.AiCfoPage=e.AiCfoPage;exports.AiCfoScopeModal=e.AiCfoScopeModal;exports.AiCfoScopeModalScrollBody=e.AiCfoScopeModalScrollBody;exports.AiCfoSidePanel=e.AiCfoSidePanel;exports.AiFinanceTeamReadyPage=e.AiFinanceTeamReadyPage;exports.AllowBlockChipPicker=e.AllowBlockChipPicker;exports.AnalyticsOnLoad=e.AnalyticsOnLoad;exports.ApAgingDetailPage=e.ApAgingDetailPage;exports.AppBasePage=e.AppBasePage;exports.AppDrawerContent=e.AppDrawerContent;exports.AppDrawerHeightMobile=e.AppDrawerHeightMobile;exports.ApprovalRulesSettingsPage=e.ApprovalRulesSettingsPage;exports.ArAgingDetailPage=e.ArAgingDetailPage;exports.AskAiCfoNavButton=e.AskAiCfoNavButton;exports.AskAiCfoNavButtonWhenEnabled=e.AskAiCfoNavButtonWhenEnabled;exports.AttachmentView=e.AttachmentView;exports.AutoTransferRulePage=e.AutoTransferRulePage;exports.BackNavigationProvider=e.BackNavigationProvider;exports.BankConnectionsSettingsPage=e.BankConnectionsSettingsPage;exports.BillDetailPage=e.BillDetailPage;exports.BillDetailPageSkeleton=e.BillDetailPageSkeleton;exports.BillPayApprovalRuleDetailPage=e.BillPayApprovalRuleDetailPage;exports.BillPayApprovalRuleDetailPageV1=e.BillPayApprovalRuleDetailPage$1;exports.BillPayApprovalRulesPage=e.BillPayApprovalRulesPage;exports.BillPayApprovalRulesPageV1=e.BillPayApprovalRulesPage$1;exports.BillPayPromoPage=e.BillPayPromoPage;exports.BillPaySetUpLoading=e.SpendManagementSetUpLoading;exports.BillPaySetUpPage=e.BillPaySetUpPage;exports.BillingSettingsPage=e.BillingSettingsPage;exports.BillsBulkReviewDrawerPage=e.BillsBulkReviewDrawerPage;exports.BusinessVerificationPage=e.BusinessVerificationPage;exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT=e.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT;exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION=e.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION;exports.COMMAND_CENTER_SUBMENU_TYPES=e.COMMAND_CENTER_SUBMENU_TYPES;exports.COMMENT_NOTIFICATION_KINDS=e.COMMENT_NOTIFICATION_KINDS;exports.CapitalizationOnboardingPopup=e.CapitalizationOnboardingPopup;exports.CapitalizationSettingsSection=e.CapitalizationSettingsSection;exports.CardPolicyCreatePage=e.CardPolicyCreatePage;exports.CardPolicyEditPage=e.CardPolicyEditPage;exports.CardPolicyFormPageSkeleton=e.CardPolicyFormPageSkeleton;exports.CardPolicyFormSections=e.CardPolicyFormSections;exports.CardPolicyListPage=e.CardPolicyListPage;exports.CardPolicyListPageSkeleton=e.CardPolicyListPageSkeleton;exports.CardPolicyListRow=e.CardPolicyListRow;exports.CardPolicyListSkeletonRow=e.CardPolicyListSkeletonRow;exports.CardPolicyManualEmptyState=e.CardPolicyManualEmptyState;exports.CardsAiCfoHero=e.CardsAiCfoHero;exports.CardsShutdownBanner=e.CardsShutdownBanner;exports.CashbackDetailLoading=e.CashbackDetailLoading;exports.CashbackDetailPage=e.CashbackDetailPage;exports.ChargeCardCVVActivate=e.ChargeCardCVVActivate;exports.ChargeCardDetailLoading=e.ChargeCardDetailLoading;exports.ChargeCardDetailPage=e.ChargeCardDetailPage;exports.ChargeCardListLoading=e.ChargeCardListLoading;exports.ChargeCardListPage=e.ChargeCardListPage;exports.ChargeCardListSkeletonRow=e.ChargeCardListSkeletonRow;exports.ChargeCardPaymentHistoryPage=e.ChargeCardPaymentHistoryPage;exports.ChargeCardPromoPage=e.ChargeCardPromoPage;exports.ChargeCardPromoPageSkeleton=e.ChargeCardPromoPageSkeleton;exports.ChargeCardSetUpPage=e.ChargeCardSetUpPage;exports.ChargeCardSetupLoading=e.SpendManagementSetUpLoading;exports.ChargeCardStatementsLoading=e.ChargeCardStatementsLoading;exports.ChargeCardStatementsPage=e.ChargeCardStatementsPage;exports.ChargeCardUserOnboardingPromoPage=e.ChargeCardUserOnboardingPromoPage;exports.ChargeCardUserOnboardingPromoPageSkeleton=e.ChargeCardUserOnboardingPromoPageSkeleton;exports.CheckDepositDrawerPage=e.CheckDepositDrawerPage;exports.ClickableRow=e.ClickableRow;exports.CollaborationGlobalStyles=e.CollaborationGlobalStyles;exports.CollaborationProvider=e.CollaborationProvider;exports.CollaborationRoomProvider=e.CollaborationRoomProvider;exports.Colors=e.Colors;exports.CommentsAndNotesCount=e.CommentsAndNotesCount;exports.CommentsDrawerProvider=e.CommentsDrawerProvider;exports.CompanyOfficerOnboardingDetailsSection=e.CompanyOfficerOnboardingDetailsSection;exports.CompanyOnboardingDetailsSection=e.CompanyOnboardingDetailsSection;exports.CompanyPassportCard=e.CompanyPassportCard;exports.CompanyPassportPage=e.CompanyPassportPage;exports.CompleteProfile=e.CompleteProfile;exports.ConfettiBurst=e.ConfettiBurst;exports.ConfirmationPopup=e.ConfirmationPopup;exports.ConnectDataSourcesPage=e.ConnectDataSourcesPage;exports.CreateOrEditVendorPage=e.CreateOrEditVendorPage;exports.CreateOrEditVendorPageSkeleton=e.CreateOrEditVendorPageSkeleton;exports.CreatedEntitiesAnswer=e.CreatedEntitiesAnswer;exports.CreatingEntitiesAnswerLoading=e.CreatingEntitiesAnswerLoading;exports.CreditCardPaymentDrawerPage=e.CreditCardPaymentDrawerPage;exports.CustomerOnboardingContainerPage=e.CustomerOnboardingContainerPage;exports.CustomerOnboardingNoStepsPage=e.CustomerOnboardingNoStepsPage;exports.CustomerOnboardingPage=e.CustomerOnboardingPage;exports.CustomerOnboardingProductSuitePage=e.CustomerOnboardingProductSuitePage;exports.Dashboard=e.Dashboard;exports.DashboardReportPage=e.DashboardReportPage;exports.DashboardSidebarLogoAnimation=e.DashboardSidebarLogoAnimation;exports.DataListTable=e.DataListTable;exports.DataListTableHeader=e.DataListTableHeader;exports.DataListTableRow=e.DataListTableRow;exports.DataListTableSortIndicator=e.DataListTableSortIndicator;exports.DebitCardSetPin=e.DebitCardSetPin;exports.DropdownPortalContext=e.DropdownPortalContext;exports.EditPeoplePage=e.EditPeoplePage;exports.EditReimbursementDetailPage=e.EditReimbursementDetailPage;exports.EditableBillDetailPage=e.EditableBillDetailPage;exports.EntityDetailPage=e.EntityDetailPage;exports.ErrorBoundaryWrapper=e.ErrorBoundaryWrapper;exports.ExcludedAccountReconDetailsDrawerPage=e.ExcludedAccountReconDetailsDrawerPage;exports.ExpenseAutomationOverviewPage=e.ExpenseAutomationOverviewPage;exports.ExpenseAutomationOverviewPageSkeleton=e.ExpenseAutomationOverviewPageSkeleton;exports.ExpenseAutomationPage=e.ExpenseAutomationPage;exports.ExpressPayPage=e.ExpressPayPage;exports.FeatureDynamicConfigNames=e.DynamicConfigNames;exports.FeatureGatesNames=e.FeatureGatesNames;exports.FeaturePreviewPage=e.FeaturePreviewPage;exports.FeatureProvider=e.FeatureProvider;exports.FirstReviewVendorDetailPage=e.FirstReviewVendorDetailPage;exports.FontWeight=e.FontWeight;exports.GlobalInfoProvider=e.GlobalInfoProvider;exports.GlobalReviewListPage=e.GlobalReviewListPage;exports.INVOICING_SETTINGS_NAV_SECTIONS=e.INVOICING_SETTINGS_NAV_SECTIONS;exports.INVOICING_SETTINGS_TABS=e.INVOICING_SETTINGS_TABS;exports.InformationCardStack=e.InformationCardStack;exports.InitialCollaborationProvider=e.InitialCollaborationProvider;exports.InsightsCardStack=e.InsightCardStack;exports.IntegrationCardView=e.IntegrationCardView;exports.IntegrationsCardGrid=e.IntegrationsCardGrid;exports.IntegrationsSection=e.IntegrationsSection;exports.IntegrationsSettingsPage=e.IntegrationsSettingsPage;exports.InternationalWireVerificationPage=e.InternationalWireVerificationPage;exports.InviteFormPage=e.InviteFormPage;exports.InvitePageListView=e.InvitePageListView;exports.InvitePeoplePage=e.InvitePeoplePage;exports.InvoiceUploadSection=e.InvoiceUploadSection;exports.InvoiceUploadSectionSkeleton=e.InvoiceUploadSectionSkeleton;exports.InvoicingAddPaymentMethodDialog=e.InvoicingAddPaymentMethodDialog;exports.InvoicingAuditLogPage=e.InvoicingAuditLogPage;exports.InvoicingBrandingSettingsPage=e.InvoicingBrandingSettingsPage;exports.InvoicingCatalogItemDetailPage=e.InvoicingCatalogItemDetailPage;exports.InvoicingCatalogItemFormPage=e.InvoicingCatalogItemFormPage;exports.InvoicingCatalogPage=e.InvoicingCatalogPage;exports.InvoicingCouponFormPage=e.InvoicingCouponFormPage;exports.InvoicingCreateInvoicePage=e.InvoicingCreateInvoicePage;exports.InvoicingCreateInvoiceSkeleton=e.InvoicingCreateInvoiceSkeleton;exports.InvoicingCreatePromotionalCreditsDialog=e.InvoicingCreatePromotionalCreditsDialog;exports.InvoicingCreditDetailPage=e.InvoicingCreditDetailPage;exports.InvoicingCreditListPage=e.InvoicingCreditListPage;exports.InvoicingCustomerDetailPage=e.InvoicingCustomerDetailPage;exports.InvoicingCustomerFormPage=e.InvoicingCustomerFormPage;exports.InvoicingCustomerListPage=e.InvoicingCustomerListPage;exports.InvoicingDashboardSkeleton=e.InvoicingDashboardSkeleton;exports.InvoicingDataImportDetailPage=e.InvoicingDataImportDetailPage;exports.InvoicingDataImportHubPage=e.InvoicingDataImportHubPage;exports.InvoicingDataImportMigratePage=e.InvoicingDataImportMigratePage;exports.InvoicingDetailScaffold=e.InvoicingDetailScaffold;exports.InvoicingDiscountDetailPage=e.InvoicingDiscountDetailPage;exports.InvoicingDiscountListPage=e.InvoicingDiscountListPage;exports.InvoicingDunningDetailPage=e.InvoicingDunningDetailPage;exports.InvoicingDunningEmailComposerDialog=e.InvoicingDunningEmailComposerDialog;exports.InvoicingDunningListPage=e.InvoicingDunningListPage;exports.InvoicingDunningSettingsPage=e.InvoicingDunningSettingsPage;exports.InvoicingEmptyState=e.InvoicingEmptyState;exports.InvoicingIntegrationsSettingsPage=e.InvoicingIntegrationsSettingsPage;exports.InvoicingInvoiceDetailPage=e.InvoicingInvoiceDetailPage;exports.InvoicingInvoiceListPage=e.InvoicingInvoiceListPage;exports.InvoicingIssueCreditNotePage=e.InvoicingIssueCreditNotePage;exports.InvoicingOverviewPage=e.InvoicingOverviewPage;exports.InvoicingPaymentDestinationSettingsPage=e.InvoicingPaymentDestinationSettingsPage;exports.InvoicingPaymentLinkPage=e.InvoicingPaymentLinkPage;exports.InvoicingPaymentListPage=e.InvoicingPaymentListPage;exports.InvoicingPromoPage=e.InvoicingPromoPage;exports.InvoicingQBOSettingsPage=e.InvoicingQBOSettingsPage;exports.InvoicingRecordPaymentPage=e.InvoicingRecordPaymentPage;exports.InvoicingSettingsHubPage=e.InvoicingSettingsHubPage;exports.InvoicingSettingsPage=e.InvoicingSettingsHubPage;exports.InvoicingSubscriptionDetailPage=e.InvoicingSubscriptionDetailPage;exports.InvoicingSubscriptionFormPage=e.InvoicingSubscriptionFormPage;exports.InvoicingSubscriptionListPage=e.InvoicingSubscriptionListPage;exports.InvoicingTransactionDetailPage=e.InvoicingTransactionDetailPage;exports.InvoicingVoidInvoiceDialog=e.InvoicingVoidInvoiceDialog;exports.IssueChargeCardPage=e.IssueChargeCardPage;exports.IssueChargeCardPageSkeleton=e.IssueChargeCardPageSkeleton;exports.LinkBillExpensePage=e.LinkBillExpensePage;exports.LinkJETransactionPage=e.LinkJETransactionPage;exports.Loader=e.Loader;exports.LogoutButton=e.LogoutButton;exports.MCC_CHIP_ID_PREFIX=e.MCC_CHIP_ID_PREFIX;exports.MagicLinkDomesticWireDetailsPage=e.MagicLinkDomesticWireDetailsPage;exports.MagicLinkInternationalWireDetailsPage=e.MagicLinkInternationalWireDetailsPage;exports.MagicLinkSuccessPage=e.MagicLinkSuccessPage;exports.MagicLinkVendorACHDetailsPage=e.MagicLinkVendorACHDetailsPage;exports.Modal=e.Modal;exports.MonthEndEmailDrawerCustomerRequestPage=e.MonthEndEmailDrawerCustomerRequestPage;exports.MyBankConnectionsSettingsPage=e.MyBankConnectionsSettingsPage;exports.MyPendingActivationChargeCardListPage=e.MyPendingActivationChargeCardListPage;exports.MyProfileSettingsPage=e.MyProfileSettingsPage;exports.NavBar=e.NavBar;exports.NavBarRightRowStyled=e.NavBarRightRowStyled;exports.NewGlobalMerchantPage=e.NewGlobalMerchantPage;exports.NewUpdateAvailablePage=e.NewUpdateAvailablePage;exports.NotFoundPage=e.NotFoundPage;exports.NotificationIcon=e.SvgNotification;exports.NotificationSettingsPage=e.NotificationSettingsPage;exports.NotificationsPage=e.NotificationsPage;exports.OAuthConsentPage=e.OAuthConsentPage;exports.OnboardingInitialLoader=e.OnboardingInitialLoader;exports.OnboardingSidebar=e.OnboardingSidebar;exports.OnboardingStepFrame=e.OnboardingStepFrame;exports.OpExByVendorPage=e.OpExByVendorPage;exports.OverlayContainerPage=e.OverlayContainerPage;exports.PandLWithForecastPage=e.PandLWithForecastPage;exports.PanelInternalContext=e.PanelInternalContext;exports.PaymentAccountSetupBillingAddressSection=e.PaymentAccountSetupBillingAddressSection;exports.PeoplePage=e.PeoplePage;exports.Picker=e.Picker;exports.PolicyLimitsRowList=e.PolicyLimitsRowList;exports.PolicyModeSelector=e.PolicyModeSelector;exports.PortfolioAllocationFormPage=e.PortfolioAllocationFormPage;exports.QBOConnectionDialog=e.QBOConnectionDialog;exports.QBOSetupSectionWithForm=e.QBOSetupSectionWithForm;exports.QuickResponsesPage=e.QuickResponsesPage;exports.QuickViewModeContext=e.QuickViewModeContext;exports.RIGHT_SIDE_PANEL_WIDTH_PX=e.RIGHT_SIDE_PANEL_WIDTH_PX;exports.ReferralDrawerPage=e.DrawerPage;exports.ReimbursementApprovalRuleDetailPage=e.ReimbursementApprovalRuleDetailPage;exports.ReimbursementApprovalRuleDetailPageV1=e.ReimbursementApprovalRuleDetailPage$1;exports.ReimbursementApprovalRulesPage=e.ReimbursementApprovalRulesPage;exports.ReimbursementApprovalRulesPageV1=e.ReimbursementApprovalRulesPage$1;exports.ReimbursementDetailPage=e.ReimbursementDetailPage;exports.ReimbursementDetailPageSkeleton=e.ReimbursementDetailPageSkeleton;exports.ReimbursementPromoPage=e.ReimbursementPromoPage;exports.ReimbursementSetUpLoading=e.SpendManagementSetUpLoading;exports.ReimbursementSetUpPage=e.RemiSetupPage;exports.RemisBulkReviewDrawerPage=e.ReimbursementsBulkReviewDrawerPage;exports.ReportsPage=e.ReportsPage;exports.ResponsiveSized=e.ResponsiveSized;exports.ReviewBillDetailsPage=e.ReviewBillDetailsPage;exports.ReviewConfirmTransferPanel=e.ReviewConfirmTransferPanel;exports.ReviewDetailsPageSkeleton=e.ReviewDetailsPageSkeleton;exports.ScheduleDetailSkeleton=e.ScheduleDetailSkeleton;exports.ScheduleDetailsAccruedExpensesPage=e.ScheduleDetailsAccruedExpensesPage;exports.ScheduleDetailsFixedAssetsPage=e.ScheduleDetailsFixedAssetsPage;exports.ScheduleDetailsPage=e.ScheduleDetailsPage;exports.SchedulePanelInternalContext=e.SchedulePanelInternalContext;exports.SearchableCheckboxCardList=e.SearchableCheckboxCardList;exports.SessionTimeoutPopup=e.SessionTimeoutPopup;exports.SidePanelContext=e.SidePanelContext;exports.SidePanelProvider=e.SidePanelProvider;exports.SignIn=e.SignIn;exports.SomethingWrongPage=e.SomethingWrongPage;exports.Space=e.Space;exports.SpendManagementListLoading=e.SpendManagementListLoading;exports.SpendManagementListViewPage=e.SpendManagementListViewPage;exports.StatementParseInfo=e.StatementParseInfo;exports.StatementProcessingPage=e.StatementProcessingPage;exports.StatementsPage=e.StatementsPage;exports.StyledCapsule=e.StyledCapsule;exports.SubscriptionDetailPage=e.SubscriptionDetailPage;exports.SubscriptionSummaryPage=e.SubscriptionSummaryPage;exports.SyntheticAiCfoAnswerView=e.SyntheticAiCfoAnswerView;exports.THREAD_RESOLVED_NOTIFICATION_KIND=e.THREAD_RESOLVED_NOTIFICATION_KIND;exports.THREAD_UNRESOLVED_NOTIFICATION_KIND=e.THREAD_UNRESOLVED_NOTIFICATION_KIND;exports.TaskDetailPage=e.TaskDetailPage;exports.TaskManagementPage=e.TaskManagementPage;exports.TenantsDropDown=e.TenantsDropDown;exports.TextStyle=e.TextStyle;exports.ToolkitProvider=e.ToolkitProvider;exports.TopExDetailPage=e.TopExDetailPage;exports.TransactionActivityLogPage=e.TransactionActivityLogPage;exports.TransactionActivityLogPanel=e.TransactionActivityLogPanel;exports.TransactionDetailPage=e.TransactionDetailPage;exports.TransactionDetailSkeleton=e.TransactionDetailSkeleton;exports.TransactionListBig=e.TransactionListBig;exports.TransactionListComments=e.TransactionListComments;exports.TransactionListPage=e.TransactionListPage;exports.TransactionPanelInternalContext=e.TransactionPanelInternalContext;exports.TransactionSidePanelLayout=e.TransactionSidePanelLayout;exports.TransactionVendorDetailPage=e.TransactionVendorDetailPage;exports.TransferDrawerPage=e.TransferDrawerPage;exports.TreasuryOverviewPage=e.TreasuryOverviewPage;exports.TreasuryPromoPage=e.TreasuryPromoPage;exports.TreasurySetUpPage=e.TreasurySetUpPage;exports.TreasuryStatementsPage=e.TreasuryStatementsPage;exports.TreasuryTaxLetterPage=e.TreasuryTaxLetterPage;exports.TreasuryTransferOrReviewPage=e.TreasuryTransferOrReviewPage;exports.TrendChart=e.TrendChart;exports.UncategorizedAccountsMappingPage=e.UncategorizedAccountsMappingPage;exports.UnitIntegrationPage=e.UnitIntegrationPage;exports.VENDOR_CHIP_ID_PREFIX=e.VENDOR_CHIP_ID_PREFIX;exports.Vendor2FAPopup=e.Vendor2FAPopup;exports.VendorACHDetailsPage=e.VendorACHDetailsPage;exports.VendorAccruedSchedulesPage=e.VendorAccruedSchedulesPage;exports.VendorDetailPage=e.VendorDetailPage;exports.VendorDomesticWireDetailsPage=e.VendorDomesticWireDetailsPage;exports.VendorFiling1099DetailsEditablePage=e.VendorFiling1099DetailsEditablePage;exports.VendorFiling1099EditableFormSkeleton=e.VendorFiling1099EditableFormSkeleton;exports.VendorFiling1099ListPage=e.VendorFiling1099ListPage;exports.VendorFirstReviewPage=e.VendorFirstReviewPage;exports.VendorInternationalSwiftBasedDetailsPage=e.VendorInternationalSwiftBasedDetailsPage;exports.VendorInternationalWireDetailsPage=e.VendorInternationalWireDetailsPage;exports.VendorListPage=e.VendorListPage;exports.VendorSchedulesPage=e.VendorSchedulesPage;exports.VerificationFrame=e.VerificationFrame;exports.VerifyDevice=e.VerifyDevice;exports.VerifyUnlockFinancialStackPage=e.VerifyUnlockFinancialStackPage;exports.WebV2MicroService=e.WebV2MicroService;exports.WebV2MicroServiceProvider=e.WebV2MicroServiceProvider;exports.WelcomeAnimation=e.WelcomeAnimation;exports.WindowSizeProvider=e.WindowSizeProvider;exports.ZeniAccountDetailLoading=e.ZeniAccountDetailLoading;exports.ZeniAccountDetailNavBarTitleShimmer=e.ZeniAccountDetailNavBarTitleShimmer;exports.ZeniAccountDetailPage=e.ZeniAccountDetailPage;exports.ZeniAccountListLoading=e.ZeniAccountListLoading;exports.ZeniAccountListViewPage=e.ZeniAccountListViewPage;exports.ZeniAccountPromoPage=e.ZeniAccountPromoPage;exports.ZeniAccountSetUpPage=e.ZeniAccountSetUpPage;exports.ZeniText=e.ZeniText;exports.ZeniThemeProvider=e.ZeniThemeProvider;exports.alignToJustify=e.alignToJustify;exports.amountToString=e.amountToString;exports.amountValueToString=e.amountValueToString;exports.appLocale=e.appLocale;exports.applyExtractedPolicyRulesToFormValues=e.applyExtractedPolicyRulesToFormValues;exports.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm=e.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm;exports.buildCardPolicyFormValuesFromRequest=e.buildCardPolicyFormValuesFromRequest;exports.buildCreateCardPolicyTemplateRequest=e.buildCreateCardPolicyTemplateRequest;exports.buildCreateCardPolicyTemplateRequestFromInteractiveForm=e.buildCreateCardPolicyTemplateRequestFromInteractiveForm;exports.buildMccCategoryChipId=e.buildMccCategoryChipId;exports.buildStickyKeySet=e.buildStickyKeySet;exports.buildVendorChipId=e.buildVendorChipId;exports.buildVoidInvoiceSubmitBody=e.buildVoidInvoiceSubmitBody;exports.cellVerticalAlignToFlexAlign=e.cellVerticalAlignToFlexAlign;exports.clearAutoLogoutContext=e.clearAutoLogoutContext;exports.clickableRowStyles=e.clickableRowStyles;exports.computeStatementProcessingStepsFromElapsedTime=e.computeStatementProcessingStepsFromElapsedTime;exports.computeStickyLeftOffsets=e.computeStickyLeftOffsets;exports.darkColors=e.darkColors;exports.darkTheme=e.darkTheme;exports.dashboardCardDimension=e.designDimension;exports.defaultCardPolicyFormValues=e.defaultCardPolicyFormValues;exports.formatReconAccountDisplayName=e.formatReconAccountDisplayName;exports.getAlpha2=e.getAlpha2;exports.getAlpha3=e.getAlpha3;exports.getColorForALabel=e.getColorForALabel;exports.getCountries=e.getCountries;exports.getCustomerDataFromAutoComplete=e.getCustomerDataFromAutoComplete;exports.getFullName=e.getFullName;exports.getInitialOpenThreadRequestFromSearch=e.getInitialOpenThreadRequestFromSearch;exports.getRecipientTotalAmount=e.getRecipientTotalAmount;exports.getReconAccountDisplayName=e.getReconAccountDisplayName;exports.getShowNegativeAmountInParenthesisDefaultValue=e.getShowNegativeAmountInParenthesisDefaultValue;exports.getShowNegativeAmountInParenthesisForPercentDefaultValue=e.getShowNegativeAmountInParenthesisForPercentDefaultValue;exports.getStableTransactionId=e.getStableTransactionId;exports.getStatementParseTransactionCount=e.getStatementParseTransactionCount;exports.invoicingMenuList=e.invoicingMenuList;exports.isBackdatedInvoiceDate=e.isBackdatedInvoiceDate;exports.isCloseManagementMenu=e.isCloseManagementMenu;exports.isClosedCardStatus=e.isClosedCardStatus;exports.isCollaborationEntityType=e.isCollaborationEntityType;exports.isCommentNotificationKind=e.isCommentNotificationKind;exports.isMobileOrTabletView=e.isMobileOrTabletView;exports.isMobilePhoneScreen=e.isMobilePhoneScreen;exports.lightColors=e.lightColors;exports.lightTheme=e.lightTheme;exports.menuList=e.menuList;exports.mergeColumnDeclarativeWithRenderers=e.mergeColumnDeclarativeWithRenderers;exports.mergeLayoutDefaults=e.mergeLayoutDefaults;exports.percentValueToString=e.percentValueToString;exports.resolveBackgroundStatementProcessingCompletedSteps=e.resolveBackgroundStatementProcessingCompletedSteps;exports.resolveColumnWidth=e.resolveColumnWidth;exports.roundAmountIfNeeded=e.roundAmountIfNeeded;exports.roundOffNumberToTwoDecimal=e.roundOffNumberToTwoDecimal;exports.setAutoLogoutContext=e.setAutoLogoutContext;exports.setShowNegativeAmountInParenthesisDefaultValue=e.setShowNegativeAmountInParenthesisDefaultValue;exports.setShowNegativeAmountInParenthesisForPercentDefaultValue=e.setShowNegativeAmountInParenthesisForPercentDefaultValue;exports.settingMenuList=e.settingMenuList;exports.shouldDefaultAdjustmentCreditNote=e.shouldDefaultAdjustmentCreditNote;exports.sp=e.sp;exports.textAlignForCell=e.textAlignForCell;exports.textStyles=e.textStyles;exports.toInstitutionLogoDataUri=e.toInstitutionLogoDataUri;exports.toInvoicingMenuOptionType=e.toInvoicingMenuOptionType;exports.toInvoicingMenuOptionTypeStrict=e.toInvoicingMenuOptionTypeStrict;exports.toMccCategoryChipFieldValue=e.toMccCategoryChipFieldValue;exports.toMenuOptionType=e.toMenuOptionType;exports.toSettingsMenuOptionTypeStrict=e.toSettingsMenuOptionTypeStrict;exports.toSupportedLocaleStrict=e.toSupportedLocaleStrict;exports.toVendorChipFieldValue=e.toVendorChipFieldValue;exports.trackTreasuryTransferAnalytics=e.trackTreasuryTransferAnalytics;exports.uploadAttachmentReceipts=e.uploadAttachmentReceipts;exports.useApprovalRulesV3Config=e.useApprovalRulesV3Config;exports.useBackNavigation=e.useBackNavigation;exports.useCollaborationInfoContext=e.useCollaborationInfoContext;exports.useCommentsDrawer=e.useCommentsDrawer;exports.useDropdownPortal=e.useDropdownPortal;exports.useExpenseAutomationEnabledForUser=e.useExpenseAutomationEnabledForUser;exports.useGlobalInfoContext=e.useGlobalInfoContext;exports.useLockBodyScroll=e.useLockBodyScroll;exports.usePanelInternal=e.usePanelInternal;exports.usePrevious=e.usePrevious;exports.useQuickViewMode=e.useQuickViewMode;exports.useRegisterBackHandler=e.useRegisterBackHandler;exports.useRequestCloseAllCommentDrawers=e.useRequestCloseAllCommentDrawers;exports.useSchedulePanelInternal=e.useSchedulePanelInternal;exports.useSessionAutoLogoutConfig=e.useSessionAutoLogoutConfig;exports.useSidePanelContext=e.useSidePanelContext;exports.useToolkitContext=e.useToolkitContext;exports.useTransactionPanelInternal=e.useTransactionPanelInternal;exports.useWindowSizeContext=e.useWindowSizeContext;exports.useZeniCardsVisibilityConfig=e.useZeniCardsVisibilityConfig;exports.useZeniFeatureContext=e.useZeniFeatureContext;exports.useZeniThemeContext=e.useZeniThemeContext;exports.waitFor=e.waitFor;exports.useZeniTheme=a.useTheme;exports.zeniStyled=a.styled;Object.defineProperty(exports,"buildInvoicingEntityPath",{enumerable:!0,get:()=>i.buildInvoicingEntityPath});Object.defineProperty(exports,"isInvoicingEntityLinkable",{enumerable:!0,get:()=>i.isInvoicingEntityLinkable});exports.zeniEmotionStyled=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SessionTimeoutPopup-BTMOCjDP.cjs"),a=require("./vendor-.pnpm-DUQUuNXu.cjs"),i=require("@zeniai/client-epic-state"),t=require("@emotion/styled");exports.AIAgentsActivatingPage=e.AIAgentsActivatingPage;exports.AIIconButton=e.AIIconButton;exports.AIPerformancePage=e.AIPerformancePage;exports.ALL_AI_CFO_MENU_OPTIONS=e.ALL_AI_CFO_MENU_OPTIONS;exports.ALL_INVOICING_MENU_GROUPS=e.ALL_INVOICING_MENU_GROUPS;exports.ALL_INVOICING_MENU_OPTIONS=e.ALL_INVOICING_MENU_OPTIONS;exports.ALL_SETTINGS_MENU_OPTIONS=e.ALL_SETTINGS_MENU_OPTIONS;exports.APP_DRAWER_CONTENT_WIDTH_PX=e.APP_DRAWER_CONTENT_WIDTH_PX;exports.AccountInfoPage=e.AccountInfoPage;exports.AccountLockedInfoModal=e.AccountLockedInfoModal;exports.AccountReconDetailsDrawerPage=e.AccountReconDetailsDrawerPage;exports.AccountReconDetailsDrawerPageV2=e.AccountReconDetailsDrawerPage$1;exports.ActivityIndicator=e.ActivityIndicator;exports.AddAddressForCardDrawer=e.AddAddressForCardDrawer;exports.AddToWalletPage=e.AddToWalletPage;exports.AddressFormPage=e.AddressFormPage;exports.AgingReportsPage=e.AgingReportsPage;exports.AiCfoChatHeader=e.AiCfoChatHeader;exports.AiCfoMenuContent=e.AiCfoMenuContent;exports.AiCfoOnboardingPage=e.AiCfoOnboardingPage;exports.AiCfoPage=e.AiCfoPage;exports.AiCfoScopeModal=e.AiCfoScopeModal;exports.AiCfoScopeModalScrollBody=e.AiCfoScopeModalScrollBody;exports.AiCfoSidePanel=e.AiCfoSidePanel;exports.AiFinanceTeamReadyPage=e.AiFinanceTeamReadyPage;exports.AllowBlockChipPicker=e.AllowBlockChipPicker;exports.AnalyticsOnLoad=e.AnalyticsOnLoad;exports.ApAgingDetailPage=e.ApAgingDetailPage;exports.AppBasePage=e.AppBasePage;exports.AppDrawerContent=e.AppDrawerContent;exports.AppDrawerHeightMobile=e.AppDrawerHeightMobile;exports.ApprovalRulesSettingsPage=e.ApprovalRulesSettingsPage;exports.ArAgingDetailPage=e.ArAgingDetailPage;exports.AskAiCfoNavButton=e.AskAiCfoNavButton;exports.AskAiCfoNavButtonWhenEnabled=e.AskAiCfoNavButtonWhenEnabled;exports.AttachmentView=e.AttachmentView;exports.AutoTransferRulePage=e.AutoTransferRulePage;exports.BackNavigationProvider=e.BackNavigationProvider;exports.BankConnectionsSettingsPage=e.BankConnectionsSettingsPage;exports.BillDetailPage=e.BillDetailPage;exports.BillDetailPageSkeleton=e.BillDetailPageSkeleton;exports.BillPayApprovalRuleDetailPage=e.BillPayApprovalRuleDetailPage;exports.BillPayApprovalRuleDetailPageV1=e.BillPayApprovalRuleDetailPage$1;exports.BillPayApprovalRulesPage=e.BillPayApprovalRulesPage;exports.BillPayApprovalRulesPageV1=e.BillPayApprovalRulesPage$1;exports.BillPayPromoPage=e.BillPayPromoPage;exports.BillPaySetUpLoading=e.SpendManagementSetUpLoading;exports.BillPaySetUpPage=e.BillPaySetUpPage;exports.BillingSettingsPage=e.BillingSettingsPage;exports.BillsBulkReviewDrawerPage=e.BillsBulkReviewDrawerPage;exports.BusinessVerificationPage=e.BusinessVerificationPage;exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT=e.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT;exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION=e.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION;exports.COMMAND_CENTER_SUBMENU_TYPES=e.COMMAND_CENTER_SUBMENU_TYPES;exports.COMMENT_NOTIFICATION_KINDS=e.COMMENT_NOTIFICATION_KINDS;exports.CapitalizationOnboardingPopup=e.CapitalizationOnboardingPopup;exports.CapitalizationSettingsSection=e.CapitalizationSettingsSection;exports.CardPolicyCreatePage=e.CardPolicyCreatePage;exports.CardPolicyEditPage=e.CardPolicyEditPage;exports.CardPolicyFormPageSkeleton=e.CardPolicyFormPageSkeleton;exports.CardPolicyFormSections=e.CardPolicyFormSections;exports.CardPolicyListPage=e.CardPolicyListPage;exports.CardPolicyListPageSkeleton=e.CardPolicyListPageSkeleton;exports.CardPolicyListRow=e.CardPolicyListRow;exports.CardPolicyListSkeletonRow=e.CardPolicyListSkeletonRow;exports.CardPolicyManualEmptyState=e.CardPolicyManualEmptyState;exports.CardsAiCfoHero=e.CardsAiCfoHero;exports.CardsShutdownBanner=e.CardsShutdownBanner;exports.CashbackDetailLoading=e.CashbackDetailLoading;exports.CashbackDetailPage=e.CashbackDetailPage;exports.ChargeCardCVVActivate=e.ChargeCardCVVActivate;exports.ChargeCardDetailLoading=e.ChargeCardDetailLoading;exports.ChargeCardDetailPage=e.ChargeCardDetailPage;exports.ChargeCardListLoading=e.ChargeCardListLoading;exports.ChargeCardListPage=e.ChargeCardListPage;exports.ChargeCardListSkeletonRow=e.ChargeCardListSkeletonRow;exports.ChargeCardPaymentHistoryPage=e.ChargeCardPaymentHistoryPage;exports.ChargeCardPromoPage=e.ChargeCardPromoPage;exports.ChargeCardPromoPageSkeleton=e.ChargeCardPromoPageSkeleton;exports.ChargeCardSetUpPage=e.ChargeCardSetUpPage;exports.ChargeCardSetupLoading=e.SpendManagementSetUpLoading;exports.ChargeCardStatementsLoading=e.ChargeCardStatementsLoading;exports.ChargeCardStatementsPage=e.ChargeCardStatementsPage;exports.ChargeCardUserOnboardingPromoPage=e.ChargeCardUserOnboardingPromoPage;exports.ChargeCardUserOnboardingPromoPageSkeleton=e.ChargeCardUserOnboardingPromoPageSkeleton;exports.CheckDepositDrawerPage=e.CheckDepositDrawerPage;exports.ClickableRow=e.ClickableRow;exports.CollaborationGlobalStyles=e.CollaborationGlobalStyles;exports.CollaborationProvider=e.CollaborationProvider;exports.CollaborationRoomProvider=e.CollaborationRoomProvider;exports.Colors=e.Colors;exports.CommentsAndNotesCount=e.CommentsAndNotesCount;exports.CommentsDrawerProvider=e.CommentsDrawerProvider;exports.CompanyOfficerOnboardingDetailsSection=e.CompanyOfficerOnboardingDetailsSection;exports.CompanyOnboardingDetailsSection=e.CompanyOnboardingDetailsSection;exports.CompanyPassportCard=e.CompanyPassportCard;exports.CompanyPassportPage=e.CompanyPassportPage;exports.CompleteProfile=e.CompleteProfile;exports.ConfettiBurst=e.ConfettiBurst;exports.ConfirmationPopup=e.ConfirmationPopup;exports.ConnectDataSourcesPage=e.ConnectDataSourcesPage;exports.CreateOrEditVendorPage=e.CreateOrEditVendorPage;exports.CreateOrEditVendorPageSkeleton=e.CreateOrEditVendorPageSkeleton;exports.CreatedEntitiesAnswer=e.CreatedEntitiesAnswer;exports.CreatingEntitiesAnswerLoading=e.CreatingEntitiesAnswerLoading;exports.CreditCardPaymentDrawerPage=e.CreditCardPaymentDrawerPage;exports.CustomerOnboardingContainerPage=e.CustomerOnboardingContainerPage;exports.CustomerOnboardingNoStepsPage=e.CustomerOnboardingNoStepsPage;exports.CustomerOnboardingPage=e.CustomerOnboardingPage;exports.CustomerOnboardingProductSuitePage=e.CustomerOnboardingProductSuitePage;exports.Dashboard=e.Dashboard;exports.DashboardReportPage=e.DashboardReportPage;exports.DashboardSidebarLogoAnimation=e.DashboardSidebarLogoAnimation;exports.DataListTable=e.DataListTable;exports.DataListTableHeader=e.DataListTableHeader;exports.DataListTableRow=e.DataListTableRow;exports.DataListTableSortIndicator=e.DataListTableSortIndicator;exports.DebitCardSetPin=e.DebitCardSetPin;exports.DropdownPortalContext=e.DropdownPortalContext;exports.EditPeoplePage=e.EditPeoplePage;exports.EditReimbursementDetailPage=e.EditReimbursementDetailPage;exports.EditableBillDetailPage=e.EditableBillDetailPage;exports.EntityDetailPage=e.EntityDetailPage;exports.ErrorBoundaryWrapper=e.ErrorBoundaryWrapper;exports.ExcludedAccountReconDetailsDrawerPage=e.ExcludedAccountReconDetailsDrawerPage;exports.ExpenseAutomationOverviewPage=e.ExpenseAutomationOverviewPage;exports.ExpenseAutomationOverviewPageSkeleton=e.ExpenseAutomationOverviewPageSkeleton;exports.ExpenseAutomationPage=e.ExpenseAutomationPage;exports.ExpressPayPage=e.ExpressPayPage;exports.FeatureDynamicConfigNames=e.DynamicConfigNames;exports.FeatureGatesNames=e.FeatureGatesNames;exports.FeaturePreviewPage=e.FeaturePreviewPage;exports.FeatureProvider=e.FeatureProvider;exports.FirstReviewVendorDetailPage=e.FirstReviewVendorDetailPage;exports.FontWeight=e.FontWeight;exports.GlobalInfoProvider=e.GlobalInfoProvider;exports.GlobalReviewListPage=e.GlobalReviewListPage;exports.INVOICING_SETTINGS_NAV_SECTIONS=e.INVOICING_SETTINGS_NAV_SECTIONS;exports.INVOICING_SETTINGS_TABS=e.INVOICING_SETTINGS_TABS;exports.InformationCardStack=e.InformationCardStack;exports.InitialCollaborationProvider=e.InitialCollaborationProvider;exports.InsightsCardStack=e.InsightCardStack;exports.IntegrationCardView=e.IntegrationCardView;exports.IntegrationsCardGrid=e.IntegrationsCardGrid;exports.IntegrationsSection=e.IntegrationsSection;exports.IntegrationsSettingsPage=e.IntegrationsSettingsPage;exports.InternationalWireVerificationPage=e.InternationalWireVerificationPage;exports.InviteFormPage=e.InviteFormPage;exports.InvitePageListView=e.InvitePageListView;exports.InvitePeoplePage=e.InvitePeoplePage;exports.InvoiceUploadSection=e.InvoiceUploadSection;exports.InvoiceUploadSectionSkeleton=e.InvoiceUploadSectionSkeleton;exports.InvoicingAddPaymentMethodDialog=e.InvoicingAddPaymentMethodDialog;exports.InvoicingAuditLogPage=e.InvoicingAuditLogPage;exports.InvoicingBrandingSettingsPage=e.InvoicingBrandingSettingsPage;exports.InvoicingCatalogItemDetailPage=e.InvoicingCatalogItemDetailPage;exports.InvoicingCatalogItemFormPage=e.InvoicingCatalogItemFormPage;exports.InvoicingCatalogPage=e.InvoicingCatalogPage;exports.InvoicingCouponFormPage=e.InvoicingCouponFormPage;exports.InvoicingCreateInvoicePage=e.InvoicingCreateInvoicePage;exports.InvoicingCreateInvoiceSkeleton=e.InvoicingCreateInvoiceSkeleton;exports.InvoicingCreatePromotionalCreditsDialog=e.InvoicingCreatePromotionalCreditsDialog;exports.InvoicingCreditDetailPage=e.InvoicingCreditDetailPage;exports.InvoicingCreditListPage=e.InvoicingCreditListPage;exports.InvoicingCustomerDetailPage=e.InvoicingCustomerDetailPage;exports.InvoicingCustomerFormPage=e.InvoicingCustomerFormPage;exports.InvoicingCustomerListPage=e.InvoicingCustomerListPage;exports.InvoicingDashboardSkeleton=e.InvoicingDashboardSkeleton;exports.InvoicingDataImportDetailPage=e.InvoicingDataImportDetailPage;exports.InvoicingDataImportHubPage=e.InvoicingDataImportHubPage;exports.InvoicingDataImportMigratePage=e.InvoicingDataImportMigratePage;exports.InvoicingDetailScaffold=e.InvoicingDetailScaffold;exports.InvoicingDiscountDetailPage=e.InvoicingDiscountDetailPage;exports.InvoicingDiscountListPage=e.InvoicingDiscountListPage;exports.InvoicingDunningDetailPage=e.InvoicingDunningDetailPage;exports.InvoicingDunningEmailComposerDialog=e.InvoicingDunningEmailComposerDialog;exports.InvoicingDunningListPage=e.InvoicingDunningListPage;exports.InvoicingDunningSettingsPage=e.InvoicingDunningSettingsPage;exports.InvoicingEmptyState=e.InvoicingEmptyState;exports.InvoicingIntegrationsSettingsPage=e.InvoicingIntegrationsSettingsPage;exports.InvoicingInvoiceDetailPage=e.InvoicingInvoiceDetailPage;exports.InvoicingInvoiceListPage=e.InvoicingInvoiceListPage;exports.InvoicingIssueCreditNotePage=e.InvoicingIssueCreditNotePage;exports.InvoicingOverviewPage=e.InvoicingOverviewPage;exports.InvoicingPaymentDestinationSettingsPage=e.InvoicingPaymentDestinationSettingsPage;exports.InvoicingPaymentLinkPage=e.InvoicingPaymentLinkPage;exports.InvoicingPaymentListPage=e.InvoicingPaymentListPage;exports.InvoicingPromoPage=e.InvoicingPromoPage;exports.InvoicingQBOSettingsPage=e.InvoicingQBOSettingsPage;exports.InvoicingRecordPaymentPage=e.InvoicingRecordPaymentPage;exports.InvoicingSettingsHubPage=e.InvoicingSettingsHubPage;exports.InvoicingSettingsPage=e.InvoicingSettingsHubPage;exports.InvoicingSubscriptionDetailPage=e.InvoicingSubscriptionDetailPage;exports.InvoicingSubscriptionFormPage=e.InvoicingSubscriptionFormPage;exports.InvoicingSubscriptionListPage=e.InvoicingSubscriptionListPage;exports.InvoicingTransactionDetailPage=e.InvoicingTransactionDetailPage;exports.InvoicingVoidInvoiceDialog=e.InvoicingVoidInvoiceDialog;exports.IssueChargeCardPage=e.IssueChargeCardPage;exports.IssueChargeCardPageSkeleton=e.IssueChargeCardPageSkeleton;exports.LinkBillExpensePage=e.LinkBillExpensePage;exports.LinkJETransactionPage=e.LinkJETransactionPage;exports.Loader=e.Loader;exports.LogoutButton=e.LogoutButton;exports.MCC_CHIP_ID_PREFIX=e.MCC_CHIP_ID_PREFIX;exports.MagicLinkDomesticWireDetailsPage=e.MagicLinkDomesticWireDetailsPage;exports.MagicLinkInternationalWireDetailsPage=e.MagicLinkInternationalWireDetailsPage;exports.MagicLinkSuccessPage=e.MagicLinkSuccessPage;exports.MagicLinkVendorACHDetailsPage=e.MagicLinkVendorACHDetailsPage;exports.Modal=e.Modal;exports.MonthEndEmailDrawerCustomerRequestPage=e.MonthEndEmailDrawerCustomerRequestPage;exports.MyBankConnectionsSettingsPage=e.MyBankConnectionsSettingsPage;exports.MyPendingActivationChargeCardListPage=e.MyPendingActivationChargeCardListPage;exports.MyProfileSettingsPage=e.MyProfileSettingsPage;exports.NavBar=e.NavBar;exports.NavBarRightRowStyled=e.NavBarRightRowStyled;exports.NewGlobalMerchantPage=e.NewGlobalMerchantPage;exports.NewUpdateAvailablePage=e.NewUpdateAvailablePage;exports.NotFoundPage=e.NotFoundPage;exports.NotificationIcon=e.SvgNotification;exports.NotificationSettingsPage=e.NotificationSettingsPage;exports.NotificationsPage=e.NotificationsPage;exports.OAuthConsentPage=e.OAuthConsentPage;exports.OnboardingInitialLoader=e.OnboardingInitialLoader;exports.OnboardingSidebar=e.OnboardingSidebar;exports.OnboardingStepFrame=e.OnboardingStepFrame;exports.OpExByVendorPage=e.OpExByVendorPage;exports.OverlayContainerPage=e.OverlayContainerPage;exports.PandLWithForecastPage=e.PandLWithForecastPage;exports.PanelInternalContext=e.PanelInternalContext;exports.PaymentAccountSetupBillingAddressSection=e.PaymentAccountSetupBillingAddressSection;exports.PeoplePage=e.PeoplePage;exports.Picker=e.Picker;exports.PolicyLimitsRowList=e.PolicyLimitsRowList;exports.PolicyModeSelector=e.PolicyModeSelector;exports.PortfolioAllocationFormPage=e.PortfolioAllocationFormPage;exports.QBOConnectionDialog=e.QBOConnectionDialog;exports.QBOSetupSectionWithForm=e.QBOSetupSectionWithForm;exports.QuickResponsesPage=e.QuickResponsesPage;exports.QuickViewModeContext=e.QuickViewModeContext;exports.RIGHT_SIDE_PANEL_WIDTH_PX=e.RIGHT_SIDE_PANEL_WIDTH_PX;exports.ReferralDrawerPage=e.DrawerPage;exports.ReimbursementApprovalRuleDetailPage=e.ReimbursementApprovalRuleDetailPage;exports.ReimbursementApprovalRuleDetailPageV1=e.ReimbursementApprovalRuleDetailPage$1;exports.ReimbursementApprovalRulesPage=e.ReimbursementApprovalRulesPage;exports.ReimbursementApprovalRulesPageV1=e.ReimbursementApprovalRulesPage$1;exports.ReimbursementDetailPage=e.ReimbursementDetailPage;exports.ReimbursementDetailPageSkeleton=e.ReimbursementDetailPageSkeleton;exports.ReimbursementPromoPage=e.ReimbursementPromoPage;exports.ReimbursementSetUpLoading=e.SpendManagementSetUpLoading;exports.ReimbursementSetUpPage=e.RemiSetupPage;exports.RemisBulkReviewDrawerPage=e.ReimbursementsBulkReviewDrawerPage;exports.ReportsPage=e.ReportsPage;exports.ResponsiveSized=e.ResponsiveSized;exports.ReviewBillDetailsPage=e.ReviewBillDetailsPage;exports.ReviewConfirmTransferPanel=e.ReviewConfirmTransferPanel;exports.ReviewDetailsPageSkeleton=e.ReviewDetailsPageSkeleton;exports.ScheduleDetailSkeleton=e.ScheduleDetailSkeleton;exports.ScheduleDetailsAccruedExpensesPage=e.ScheduleDetailsAccruedExpensesPage;exports.ScheduleDetailsFixedAssetsPage=e.ScheduleDetailsFixedAssetsPage;exports.ScheduleDetailsPage=e.ScheduleDetailsPage;exports.SchedulePanelInternalContext=e.SchedulePanelInternalContext;exports.SearchableCheckboxCardList=e.SearchableCheckboxCardList;exports.SessionTimeoutPopup=e.SessionTimeoutPopup;exports.SidePanelContext=e.SidePanelContext;exports.SidePanelProvider=e.SidePanelProvider;exports.SignIn=e.SignIn;exports.SomethingWrongPage=e.SomethingWrongPage;exports.Space=e.Space;exports.SpendManagementListLoading=e.SpendManagementListLoading;exports.SpendManagementListViewPage=e.SpendManagementListViewPage;exports.StatementParseInfo=e.StatementParseInfo;exports.StatementProcessingPage=e.StatementProcessingPage;exports.StatementsPage=e.StatementsPage;exports.StyledCapsule=e.StyledCapsule;exports.SubscriptionDetailPage=e.SubscriptionDetailPage;exports.SubscriptionSummaryPage=e.SubscriptionSummaryPage;exports.SyntheticAiCfoAnswerView=e.SyntheticAiCfoAnswerView;exports.THREAD_RESOLVED_NOTIFICATION_KIND=e.THREAD_RESOLVED_NOTIFICATION_KIND;exports.THREAD_UNRESOLVED_NOTIFICATION_KIND=e.THREAD_UNRESOLVED_NOTIFICATION_KIND;exports.TaskDetailPage=e.TaskDetailPage;exports.TaskManagementPage=e.TaskManagementPage;exports.TenantsDropDown=e.TenantsDropDown;exports.TextStyle=e.TextStyle;exports.ToolkitProvider=e.ToolkitProvider;exports.TopExDetailPage=e.TopExDetailPage;exports.TransactionActivityLogPage=e.TransactionActivityLogPage;exports.TransactionActivityLogPanel=e.TransactionActivityLogPanel;exports.TransactionDetailPage=e.TransactionDetailPage;exports.TransactionDetailSkeleton=e.TransactionDetailSkeleton;exports.TransactionListBig=e.TransactionListBig;exports.TransactionListComments=e.TransactionListComments;exports.TransactionListPage=e.TransactionListPage;exports.TransactionPanelInternalContext=e.TransactionPanelInternalContext;exports.TransactionSidePanelLayout=e.TransactionSidePanelLayout;exports.TransactionVendorDetailPage=e.TransactionVendorDetailPage;exports.TransferDrawerPage=e.TransferDrawerPage;exports.TreasuryOverviewPage=e.TreasuryOverviewPage;exports.TreasuryPromoPage=e.TreasuryPromoPage;exports.TreasurySetUpPage=e.TreasurySetUpPage;exports.TreasuryStatementsPage=e.TreasuryStatementsPage;exports.TreasuryTaxLetterPage=e.TreasuryTaxLetterPage;exports.TreasuryTransferOrReviewPage=e.TreasuryTransferOrReviewPage;exports.TrendChart=e.TrendChart;exports.UncategorizedAccountsMappingPage=e.UncategorizedAccountsMappingPage;exports.UnitIntegrationPage=e.UnitIntegrationPage;exports.VENDOR_CHIP_ID_PREFIX=e.VENDOR_CHIP_ID_PREFIX;exports.Vendor2FAPopup=e.Vendor2FAPopup;exports.VendorACHDetailsPage=e.VendorACHDetailsPage;exports.VendorAccruedSchedulesPage=e.VendorAccruedSchedulesPage;exports.VendorDetailPage=e.VendorDetailPage;exports.VendorDomesticWireDetailsPage=e.VendorDomesticWireDetailsPage;exports.VendorFiling1099DetailsEditablePage=e.VendorFiling1099DetailsEditablePage;exports.VendorFiling1099EditableFormSkeleton=e.VendorFiling1099EditableFormSkeleton;exports.VendorFiling1099ListPage=e.VendorFiling1099ListPage;exports.VendorFirstReviewPage=e.VendorFirstReviewPage;exports.VendorInternationalSwiftBasedDetailsPage=e.VendorInternationalSwiftBasedDetailsPage;exports.VendorInternationalWireDetailsPage=e.VendorInternationalWireDetailsPage;exports.VendorListPage=e.VendorListPage;exports.VendorSchedulesPage=e.VendorSchedulesPage;exports.VerificationFrame=e.VerificationFrame;exports.VerifyDevice=e.VerifyDevice;exports.VerifyUnlockFinancialStackPage=e.VerifyUnlockFinancialStackPage;exports.WebV2MicroService=e.WebV2MicroService;exports.WebV2MicroServiceProvider=e.WebV2MicroServiceProvider;exports.WelcomeAnimation=e.WelcomeAnimation;exports.WindowSizeProvider=e.WindowSizeProvider;exports.ZeniAccountDetailLoading=e.ZeniAccountDetailLoading;exports.ZeniAccountDetailNavBarTitleShimmer=e.ZeniAccountDetailNavBarTitleShimmer;exports.ZeniAccountDetailPage=e.ZeniAccountDetailPage;exports.ZeniAccountListLoading=e.ZeniAccountListLoading;exports.ZeniAccountListViewPage=e.ZeniAccountListViewPage;exports.ZeniAccountPromoPage=e.ZeniAccountPromoPage;exports.ZeniAccountSetUpPage=e.ZeniAccountSetUpPage;exports.ZeniText=e.ZeniText;exports.ZeniThemeProvider=e.ZeniThemeProvider;exports.alignToJustify=e.alignToJustify;exports.amountToString=e.amountToString;exports.amountValueToString=e.amountValueToString;exports.appLocale=e.appLocale;exports.applyExtractedPolicyRulesToFormValues=e.applyExtractedPolicyRulesToFormValues;exports.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm=e.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm;exports.buildCardPolicyFormValuesFromRequest=e.buildCardPolicyFormValuesFromRequest;exports.buildCreateCardPolicyTemplateRequest=e.buildCreateCardPolicyTemplateRequest;exports.buildCreateCardPolicyTemplateRequestFromInteractiveForm=e.buildCreateCardPolicyTemplateRequestFromInteractiveForm;exports.buildMccCategoryChipId=e.buildMccCategoryChipId;exports.buildStickyKeySet=e.buildStickyKeySet;exports.buildVendorChipId=e.buildVendorChipId;exports.buildVoidInvoiceSubmitBody=e.buildVoidInvoiceSubmitBody;exports.cellVerticalAlignToFlexAlign=e.cellVerticalAlignToFlexAlign;exports.clearAutoLogoutContext=e.clearAutoLogoutContext;exports.clickableRowStyles=e.clickableRowStyles;exports.computeStatementProcessingStepsFromElapsedTime=e.computeStatementProcessingStepsFromElapsedTime;exports.computeStickyLeftOffsets=e.computeStickyLeftOffsets;exports.darkColors=e.darkColors;exports.darkTheme=e.darkTheme;exports.dashboardCardDimension=e.designDimension;exports.defaultCardPolicyFormValues=e.defaultCardPolicyFormValues;exports.formatReconAccountDisplayName=e.formatReconAccountDisplayName;exports.getAlpha2=e.getAlpha2;exports.getAlpha3=e.getAlpha3;exports.getColorForALabel=e.getColorForALabel;exports.getCountries=e.getCountries;exports.getCustomerDataFromAutoComplete=e.getCustomerDataFromAutoComplete;exports.getFullName=e.getFullName;exports.getInitialOpenThreadRequestFromSearch=e.getInitialOpenThreadRequestFromSearch;exports.getRecipientTotalAmount=e.getRecipientTotalAmount;exports.getReconAccountDisplayName=e.getReconAccountDisplayName;exports.getShowNegativeAmountInParenthesisDefaultValue=e.getShowNegativeAmountInParenthesisDefaultValue;exports.getShowNegativeAmountInParenthesisForPercentDefaultValue=e.getShowNegativeAmountInParenthesisForPercentDefaultValue;exports.getStableTransactionId=e.getStableTransactionId;exports.getStatementParseTransactionCount=e.getStatementParseTransactionCount;exports.invoicingMenuList=e.invoicingMenuList;exports.isBackdatedInvoiceDate=e.isBackdatedInvoiceDate;exports.isCloseManagementMenu=e.isCloseManagementMenu;exports.isClosedCardStatus=e.isClosedCardStatus;exports.isCollaborationEntityType=e.isCollaborationEntityType;exports.isCommentNotificationKind=e.isCommentNotificationKind;exports.isMobileOrTabletView=e.isMobileOrTabletView;exports.isMobilePhoneScreen=e.isMobilePhoneScreen;exports.lightColors=e.lightColors;exports.lightTheme=e.lightTheme;exports.menuList=e.menuList;exports.mergeColumnDeclarativeWithRenderers=e.mergeColumnDeclarativeWithRenderers;exports.mergeLayoutDefaults=e.mergeLayoutDefaults;exports.percentValueToString=e.percentValueToString;exports.resolveBackgroundStatementProcessingCompletedSteps=e.resolveBackgroundStatementProcessingCompletedSteps;exports.resolveColumnWidth=e.resolveColumnWidth;exports.roundAmountIfNeeded=e.roundAmountIfNeeded;exports.roundOffNumberToTwoDecimal=e.roundOffNumberToTwoDecimal;exports.setAutoLogoutContext=e.setAutoLogoutContext;exports.setShowNegativeAmountInParenthesisDefaultValue=e.setShowNegativeAmountInParenthesisDefaultValue;exports.setShowNegativeAmountInParenthesisForPercentDefaultValue=e.setShowNegativeAmountInParenthesisForPercentDefaultValue;exports.settingMenuList=e.settingMenuList;exports.shouldDefaultAdjustmentCreditNote=e.shouldDefaultAdjustmentCreditNote;exports.sp=e.sp;exports.textAlignForCell=e.textAlignForCell;exports.textStyles=e.textStyles;exports.toInstitutionLogoDataUri=e.toInstitutionLogoDataUri;exports.toInvoicingMenuOptionType=e.toInvoicingMenuOptionType;exports.toInvoicingMenuOptionTypeStrict=e.toInvoicingMenuOptionTypeStrict;exports.toMccCategoryChipFieldValue=e.toMccCategoryChipFieldValue;exports.toMenuOptionType=e.toMenuOptionType;exports.toSettingsMenuOptionTypeStrict=e.toSettingsMenuOptionTypeStrict;exports.toSupportedLocaleStrict=e.toSupportedLocaleStrict;exports.toVendorChipFieldValue=e.toVendorChipFieldValue;exports.trackTreasuryTransferAnalytics=e.trackTreasuryTransferAnalytics;exports.uploadAttachmentReceipts=e.uploadAttachmentReceipts;exports.useApprovalRulesV3Config=e.useApprovalRulesV3Config;exports.useBackNavigation=e.useBackNavigation;exports.useCollaborationInfoContext=e.useCollaborationInfoContext;exports.useCommentsDrawer=e.useCommentsDrawer;exports.useDropdownPortal=e.useDropdownPortal;exports.useExpenseAutomationEnabledForUser=e.useExpenseAutomationEnabledForUser;exports.useGlobalInfoContext=e.useGlobalInfoContext;exports.useLockBodyScroll=e.useLockBodyScroll;exports.usePanelInternal=e.usePanelInternal;exports.usePrevious=e.usePrevious;exports.useQuickViewMode=e.useQuickViewMode;exports.useRegisterBackHandler=e.useRegisterBackHandler;exports.useRequestCloseAllCommentDrawers=e.useRequestCloseAllCommentDrawers;exports.useSchedulePanelInternal=e.useSchedulePanelInternal;exports.useSessionAutoLogoutConfig=e.useSessionAutoLogoutConfig;exports.useSidePanelContext=e.useSidePanelContext;exports.useToolkitContext=e.useToolkitContext;exports.useTransactionPanelInternal=e.useTransactionPanelInternal;exports.useWindowSizeContext=e.useWindowSizeContext;exports.useZeniCardsVisibilityConfig=e.useZeniCardsVisibilityConfig;exports.useZeniFeatureContext=e.useZeniFeatureContext;exports.useZeniThemeContext=e.useZeniThemeContext;exports.waitFor=e.waitFor;exports.useZeniTheme=a.useTheme;exports.zeniStyled=a.styled;Object.defineProperty(exports,"buildInvoicingEntityPath",{enumerable:!0,get:()=>i.buildInvoicingEntityPath});Object.defineProperty(exports,"isInvoicingEntityLinkable",{enumerable:!0,get:()=>i.isInvoicingEntityLinkable});exports.zeniEmotionStyled=t;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as i, b as t, c as n, d as o, e as r, f as g, h as l, i as c, j as P, k as d, l as u, m as C, n as m, q as I, r as S, s as p, t as D, u as v, v as A, w as h, x as b, y as T, z as y, B as L, E as R, F as f, G as N, H as V, I as w, J as E, K as k, L as O, M as F, N as M, O as B, P as _, S as x, T as U, U as W, V as H, W as G, X as j, Y as Z, Z as q, _ as z, f4 as Q, $ as X, a0 as K, a1 as Y, a2 as J, a5 as $, a6 as aa, a7 as ea, aa as sa, ab as ia, ac as ta, ad as na, ae as oa, af as ra, ag as ga, ah as la, ai as ca, aj as Pa, ak as da, al as ua, am as Ca, an as ma, ao as Ia, ap as Sa, aq as pa, ar as Da, as as va, at as Aa, au as ha, av as ba, aw as Ta, ax as ya, ay as La, az as Ra, f4 as fa, aA as Na, aB as Va, aC as wa, aD as Ea, aE as ka, aG as Oa, aH as Fa, aI as Ma, aJ as Ba, aK as _a, aM as xa, aN as Ua, aP as Wa, aQ as Ha, aR as Ga, aS as ja, aT as Za, aU as qa, aX as za, aY as Qa, a$ as Xa, b0 as Ka, b1 as Ya, b2 as Ja, b3 as $a, b4 as ae, b5 as ee, b6 as se, b7 as ie, ba as te, bb as ne, bc as oe, bd as re, be as ge, bf as le, bg as ce, bi as Pe, bl as de, bo as ue, bp as Ce, bq as me, bv as Ie, bw as Se, bx as pe, by as De, bz as ve, bA as Ae, bB as he, bm as be, bM as Te, bN as ye, bO as Le, bS as Re, bU as fe, bW as Ne, bX as Ve, c4 as we, c5 as Ee, c6 as ke, c7 as Oe, c8 as Fe, c9 as Me, ca as Be, cb as _e, cc as xe, cd as Ue, ce as We, cf as He, cg as Ge, ch as je, ci as Ze, cj as qe, ck as ze, cl as Qe, cm as Xe, cn as Ke, co as Ye, cp as Je, cq as $e, cr as as, cs as es, ct as ss, cu as is, cv as ts, cw as ns, cx as os, cy as rs, cz as gs, cA as ls, cB as cs, cC as Ps, cD as ds, cE as us, cF as Cs, cG as ms, cH as Is, cI as Ss, cJ as ps, cK as Ds, cL as vs, cM as As, cN as hs, cO as bs, cP as Ts, cQ as ys, cR as Ls, cS as Rs, cT as fs, cU as Ns, cV as Vs, cV as ws, cW as Es, cX as ks, cY as Os, cZ as Fs, c_ as Ms, c$ as Bs, d0 as _s, dn as xs, dp as Us, dr as Ws, ds as Hs, dt as Gs, dA as js, dB as Zs, dC as qs, dD as zs, dF as Qs, dH as Xs, dL as Ks, dM as Ys, dN as Js, dQ as $s, dR as ai, dT as ei, dU as si, dV as ii, fT as ti, dW as ni, dX as oi, dY as ri, e3 as gi, e4 as li, e5 as ci, e6 as Pi, e7 as di, e8 as ui, e9 as Ci, ea as mi, eb as Ii, ec as Si, ed as pi, ee as Di, ef as vi, eg as Ai, eh as hi, ei as bi, ej as Ti, el as yi, bj as Li, em as Ri, en as fi, eo as Ni, ep as Vi, eq as wi, er as Ei, es as ki, f4 as Oi, ev as Fi, et as Mi, ew as Bi, ex as _i, ez as xi, eA as Ui, eB as Wi, eC as Hi, eD as Gi, eE as ji, eF as Zi, eG as qi, eI as zi, eJ as Qi, eK as Xi, eL as Ki, eM as Yi, f0 as Ji, f1 as $i, f2 as at, f3 as et, fg as st, fh as it, fi as tt, fk as nt, fn as ot, fp as rt, g3 as gt, g4 as lt, g5 as ct, g6 as Pt, g7 as dt, g8 as ut, ga as Ct, ge as mt, gg as It, gh as St, gi as pt, gj as Dt, gk as vt, gl as At, gm as ht, gn as bt, go as Tt, gp as yt, gq as Lt, gr as Rt, gs as ft, gt as Nt, gu as Vt, gv as wt, gw as Et, gx as kt, gy as Ot, gz as Ft, gA as Mt, gD as Bt, gE as _t, gF as xt, gG as Ut, gH as Wt, gI as Ht, gJ as Gt, gK as jt, gL as Zt, gM as qt, gN as zt, gO as Qt, gP as Xt, gQ as Kt, gR as Yt, gS as Jt, gT as $t, gU as an, gV as en, gW as sn, gX as tn, gY as nn, gZ as on, g_ as rn, g$ as gn, h0 as ln, h1 as cn, h2 as Pn, h5 as dn, h6 as un, h7 as Cn, h8 as mn, h9 as In, ha as Sn, hb as pn, hd as Dn, he as vn, hf as An, hg as hn, hh as bn, hi as Tn, hj as yn, hk as Ln, hm as Rn, hn as fn, ho as Nn, hp as Vn, hq as wn, hs as En, ht as kn, hv as On, hu as Fn, hy as Mn, hA as Bn, hB as _n, hD as xn, hE as Un, hF as Wn, hJ as Hn, hM as Gn, hQ as jn, hR as Zn, hV as qn, hW as zn, hX as Qn, hY as Xn, i3 as Kn, i4 as Yn, i5 as Jn, i6 as $n, i7 as ao, i8 as eo, i9 as so, ia as io, ic as to, id as no, ie as oo, ig as ro, ih as go, ii as lo, ij as co, ik as Po, il as uo, im as Co, ip as mo, iq as Io, ir as So, is as po, it as Do, iu as vo, iv as Ao, iw as ho, iy as bo, iz as To, iA as yo, iB as Lo, iC as Ro, iD as fo, iE as No, iF as Vo, iG as wo, iH as Eo, iJ as ko, iK as Oo, iL as Fo, iM as Mo, iO as Bo, iP as _o, iS as xo, iU as Uo, iV as Wo, iW as Ho, iX as Go, iY as jo, iZ as Zo, i_ as qo, i$ as zo, j0 as Qo, j1 as Xo, j2 as Ko, j3 as Yo, j4 as Jo, j5 as $o, j6 as ar, j7 as er } from "./SessionTimeoutPopup-
|
|
1
|
+
import { A as s, a as i, b as t, c as n, d as o, e as r, f as g, h as l, i as c, j as P, k as d, l as u, m as C, n as m, q as I, r as S, s as p, t as D, u as v, v as A, w as h, x as b, y as T, z as y, B as L, E as R, F as f, G as N, H as V, I as w, J as E, K as k, L as O, M as F, N as M, O as B, P as _, S as x, T as U, U as W, V as H, W as G, X as j, Y as Z, Z as q, _ as z, f4 as Q, $ as X, a0 as K, a1 as Y, a2 as J, a5 as $, a6 as aa, a7 as ea, aa as sa, ab as ia, ac as ta, ad as na, ae as oa, af as ra, ag as ga, ah as la, ai as ca, aj as Pa, ak as da, al as ua, am as Ca, an as ma, ao as Ia, ap as Sa, aq as pa, ar as Da, as as va, at as Aa, au as ha, av as ba, aw as Ta, ax as ya, ay as La, az as Ra, f4 as fa, aA as Na, aB as Va, aC as wa, aD as Ea, aE as ka, aG as Oa, aH as Fa, aI as Ma, aJ as Ba, aK as _a, aM as xa, aN as Ua, aP as Wa, aQ as Ha, aR as Ga, aS as ja, aT as Za, aU as qa, aX as za, aY as Qa, a$ as Xa, b0 as Ka, b1 as Ya, b2 as Ja, b3 as $a, b4 as ae, b5 as ee, b6 as se, b7 as ie, ba as te, bb as ne, bc as oe, bd as re, be as ge, bf as le, bg as ce, bi as Pe, bl as de, bo as ue, bp as Ce, bq as me, bv as Ie, bw as Se, bx as pe, by as De, bz as ve, bA as Ae, bB as he, bm as be, bM as Te, bN as ye, bO as Le, bS as Re, bU as fe, bW as Ne, bX as Ve, c4 as we, c5 as Ee, c6 as ke, c7 as Oe, c8 as Fe, c9 as Me, ca as Be, cb as _e, cc as xe, cd as Ue, ce as We, cf as He, cg as Ge, ch as je, ci as Ze, cj as qe, ck as ze, cl as Qe, cm as Xe, cn as Ke, co as Ye, cp as Je, cq as $e, cr as as, cs as es, ct as ss, cu as is, cv as ts, cw as ns, cx as os, cy as rs, cz as gs, cA as ls, cB as cs, cC as Ps, cD as ds, cE as us, cF as Cs, cG as ms, cH as Is, cI as Ss, cJ as ps, cK as Ds, cL as vs, cM as As, cN as hs, cO as bs, cP as Ts, cQ as ys, cR as Ls, cS as Rs, cT as fs, cU as Ns, cV as Vs, cV as ws, cW as Es, cX as ks, cY as Os, cZ as Fs, c_ as Ms, c$ as Bs, d0 as _s, dn as xs, dp as Us, dr as Ws, ds as Hs, dt as Gs, dA as js, dB as Zs, dC as qs, dD as zs, dF as Qs, dH as Xs, dL as Ks, dM as Ys, dN as Js, dQ as $s, dR as ai, dT as ei, dU as si, dV as ii, fT as ti, dW as ni, dX as oi, dY as ri, e3 as gi, e4 as li, e5 as ci, e6 as Pi, e7 as di, e8 as ui, e9 as Ci, ea as mi, eb as Ii, ec as Si, ed as pi, ee as Di, ef as vi, eg as Ai, eh as hi, ei as bi, ej as Ti, el as yi, bj as Li, em as Ri, en as fi, eo as Ni, ep as Vi, eq as wi, er as Ei, es as ki, f4 as Oi, ev as Fi, et as Mi, ew as Bi, ex as _i, ez as xi, eA as Ui, eB as Wi, eC as Hi, eD as Gi, eE as ji, eF as Zi, eG as qi, eI as zi, eJ as Qi, eK as Xi, eL as Ki, eM as Yi, f0 as Ji, f1 as $i, f2 as at, f3 as et, fg as st, fh as it, fi as tt, fk as nt, fn as ot, fp as rt, g3 as gt, g4 as lt, g5 as ct, g6 as Pt, g7 as dt, g8 as ut, ga as Ct, ge as mt, gg as It, gh as St, gi as pt, gj as Dt, gk as vt, gl as At, gm as ht, gn as bt, go as Tt, gp as yt, gq as Lt, gr as Rt, gs as ft, gt as Nt, gu as Vt, gv as wt, gw as Et, gx as kt, gy as Ot, gz as Ft, gA as Mt, gD as Bt, gE as _t, gF as xt, gG as Ut, gH as Wt, gI as Ht, gJ as Gt, gK as jt, gL as Zt, gM as qt, gN as zt, gO as Qt, gP as Xt, gQ as Kt, gR as Yt, gS as Jt, gT as $t, gU as an, gV as en, gW as sn, gX as tn, gY as nn, gZ as on, g_ as rn, g$ as gn, h0 as ln, h1 as cn, h2 as Pn, h5 as dn, h6 as un, h7 as Cn, h8 as mn, h9 as In, ha as Sn, hb as pn, hd as Dn, he as vn, hf as An, hg as hn, hh as bn, hi as Tn, hj as yn, hk as Ln, hm as Rn, hn as fn, ho as Nn, hp as Vn, hq as wn, hs as En, ht as kn, hv as On, hu as Fn, hy as Mn, hA as Bn, hB as _n, hD as xn, hE as Un, hF as Wn, hJ as Hn, hM as Gn, hQ as jn, hR as Zn, hV as qn, hW as zn, hX as Qn, hY as Xn, i3 as Kn, i4 as Yn, i5 as Jn, i6 as $n, i7 as ao, i8 as eo, i9 as so, ia as io, ic as to, id as no, ie as oo, ig as ro, ih as go, ii as lo, ij as co, ik as Po, il as uo, im as Co, ip as mo, iq as Io, ir as So, is as po, it as Do, iu as vo, iv as Ao, iw as ho, iy as bo, iz as To, iA as yo, iB as Lo, iC as Ro, iD as fo, iE as No, iF as Vo, iG as wo, iH as Eo, iJ as ko, iK as Oo, iL as Fo, iM as Mo, iO as Bo, iP as _o, iS as xo, iU as Uo, iV as Wo, iW as Ho, iX as Go, iY as jo, iZ as Zo, i_ as qo, i$ as zo, j0 as Qo, j1 as Xo, j2 as Ko, j3 as Yo, j4 as Jo, j5 as $o, j6 as ar, j7 as er } from "./SessionTimeoutPopup-C22uSV5s.js";
|
|
2
2
|
import { aN as ir, aC as tr } from "./vendor-.pnpm-DaZ4hAq4.js";
|
|
3
3
|
import { buildInvoicingEntityPath as or, isInvoicingEntityLinkable as rr } from "@zeniai/client-epic-state";
|
|
4
4
|
import { default as lr } from "@emotion/styled";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-components",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@statsig/react-bindings": "^3.14.0",
|
|
50
50
|
"@stripe/react-stripe-js": "^2.7.3",
|
|
51
51
|
"@stripe/stripe-js": "^4.4.0",
|
|
52
|
-
"@zeniai/client-analytics": "2.0.
|
|
52
|
+
"@zeniai/client-analytics": "2.0.69",
|
|
53
53
|
"@zeniai/client-epic-state": "5.1.92",
|
|
54
54
|
"autosuggest-highlight": "^3.2.1",
|
|
55
55
|
"browser-image-compression": "^2.0.2",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"@types/color": "^3.0.2",
|
|
211
211
|
"@types/react-select": "^4.0.18",
|
|
212
212
|
"@types/react-window": "^1.8.8",
|
|
213
|
-
"@zeniai/client-analytics": "2.0.
|
|
213
|
+
"@zeniai/client-analytics": "2.0.69",
|
|
214
214
|
"@zeniai/client-epic-state": "5.1.92",
|
|
215
215
|
"color": "^3.1.3",
|
|
216
216
|
"react": "18.3.1",
|