@tap-payments/os-micro-frontend-shared 0.3.230 → 0.3.231-test.3
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/build/_chunks/{chunk-O4UZRDVR.js → chunk-2CFJDRNN.js} +1 -1
- package/build/_chunks/{chunk-DKMFQFZU.js → chunk-2DO3S6CR.js} +1 -1
- package/build/_chunks/chunk-2GCV2QGO.js +1 -0
- package/build/_chunks/{chunk-JEYLI22W.js → chunk-2LXD3KW3.js} +1 -1
- package/build/_chunks/{chunk-TY3LDUTP.js → chunk-34WBIZS4.js} +1 -1
- package/build/_chunks/{chunk-FAKPBQH3.js → chunk-36EQOLOI.js} +1 -1
- package/build/_chunks/{chunk-545BCGVE.js → chunk-3N5C5EHR.js} +1 -1
- package/build/_chunks/{chunk-VTJJFPK5.js → chunk-4AT66FAZ.js} +1 -1
- package/build/_chunks/{chunk-W3D5YN4V.js → chunk-4FXYCB2G.js} +1 -1
- package/build/_chunks/{chunk-W4PURLBP.js → chunk-54YKDFJR.js} +1 -1
- package/build/_chunks/{chunk-5DLQTR4L.js → chunk-5MXKPAWT.js} +1 -1
- package/build/_chunks/{chunk-MBTSXCJW.js → chunk-5O5AZFVS.js} +1 -1
- package/build/_chunks/chunk-5QJLTM3A.js +2 -0
- package/build/_chunks/{chunk-JORNMG4I.js → chunk-5ZOZEDO7.js} +1 -1
- package/build/_chunks/{chunk-KV7KQ6MZ.js → chunk-65T5SO3C.js} +1 -1
- package/build/_chunks/{chunk-UD33MPJX.js → chunk-6BYD6AAC.js} +1 -1
- package/build/_chunks/{chunk-QZAVOGKZ.js → chunk-6QN3UC7E.js} +1 -1
- package/build/_chunks/{chunk-LIHS4ZYZ.js → chunk-6XIQX2CT.js} +1 -1
- package/build/_chunks/{chunk-CAKSLKXG.js → chunk-7A6ONTBG.js} +1 -1
- package/build/_chunks/{chunk-AIT2A7YM.js → chunk-7EI76QZP.js} +1 -1
- package/build/_chunks/{chunk-5EP3LEOE.js → chunk-A3KQZ3FZ.js} +1 -1
- package/build/_chunks/{chunk-FNWPZLRV.js → chunk-A7XTZT7S.js} +1 -1
- package/build/_chunks/{chunk-J4V7VRJY.js → chunk-AKUEQCIL.js} +1 -1
- package/build/_chunks/{chunk-VQ4INPUZ.js → chunk-BJGXVCQA.js} +1 -1
- package/build/_chunks/{chunk-7GVPGH6A.js → chunk-COYXLMJQ.js} +1 -1
- package/build/_chunks/{chunk-MMFW3YZV.js → chunk-CWZZGLQK.js} +1 -1
- package/build/_chunks/{chunk-GIUONT72.js → chunk-DGCFTXF7.js} +1 -1
- package/build/_chunks/{chunk-TH5E43JD.js → chunk-DKK2FDF6.js} +1 -1
- package/build/_chunks/chunk-DX2QPWW3.js +1 -0
- package/build/_chunks/{chunk-P57UJVYY.js → chunk-DZDKHLMV.js} +1 -1
- package/build/_chunks/{chunk-DPOBKAVX.js → chunk-EYXAB442.js} +1 -1
- package/build/_chunks/{chunk-DEQ2OTPX.js → chunk-FVEBYLO6.js} +1 -1
- package/build/_chunks/{chunk-4SWNFKMX.js → chunk-FVMDYSZO.js} +1 -1
- package/build/_chunks/{chunk-F2LUAXXO.js → chunk-FXM43QJ6.js} +1 -1
- package/build/_chunks/{chunk-KSTOW7O3.js → chunk-GH4CX2DA.js} +1 -1
- package/build/_chunks/{chunk-6VQVT7U4.js → chunk-GKRBJO4D.js} +1 -1
- package/build/_chunks/{chunk-T5WRDF6Z.js → chunk-H3LIK3OI.js} +1 -1
- package/build/_chunks/chunk-H4GGHBYG.js +1 -0
- package/build/_chunks/{chunk-32CPM4J3.js → chunk-H4SPBDKI.js} +1 -1
- package/build/_chunks/{chunk-JQTHWXQR.js → chunk-HHKYHDOJ.js} +1 -1
- package/build/_chunks/{chunk-BIJMWICZ.js → chunk-IKVA7QMC.js} +1 -1
- package/build/_chunks/{chunk-XSRIBZ5H.js → chunk-IM6VQO45.js} +1 -1
- package/build/_chunks/{chunk-EI4VQCCM.js → chunk-ITFUR3BG.js} +1 -1
- package/build/_chunks/{chunk-OBHJVUFA.js → chunk-J45BSGPS.js} +1 -1
- package/build/_chunks/{chunk-4AFJCOBN.js → chunk-J56XF4LW.js} +1 -1
- package/build/_chunks/{chunk-AFDB2YM6.js → chunk-J6MTBQ2Y.js} +1 -1
- package/build/_chunks/{chunk-KS7YB4UX.js → chunk-JEOCBURK.js} +1 -1
- package/build/_chunks/{chunk-SWXXEAIZ.js → chunk-KCBCOFXG.js} +1 -1
- package/build/_chunks/{chunk-FTG5LY7I.js → chunk-KT4LK4OP.js} +1 -1
- package/build/_chunks/chunk-LGOBWVPJ.js +2 -0
- package/build/_chunks/{chunk-QGQRTANO.js → chunk-N2GIJ5VD.js} +1 -1
- package/build/_chunks/{chunk-ZGZK4AZ3.js → chunk-N4YV342A.js} +1 -1
- package/build/_chunks/{chunk-64ILCI3S.js → chunk-NR5LUI2H.js} +1 -1
- package/build/_chunks/{chunk-OAEOQ7AZ.js → chunk-OIKVZRLM.js} +1 -1
- package/build/_chunks/{chunk-TJMTDLBH.js → chunk-OLMDFRVN.js} +1 -1
- package/build/_chunks/{chunk-XBUO2UHM.js → chunk-OPRPEPCN.js} +1 -1
- package/build/_chunks/chunk-PIBMVEP6.js +1 -0
- package/build/_chunks/{chunk-R5PUIGMB.js → chunk-PYA3WRGL.js} +1 -1
- package/build/_chunks/{chunk-DBFH6OKQ.js → chunk-PZF7H3GF.js} +1 -1
- package/build/_chunks/{chunk-TKU4GMEV.js → chunk-Q7D6LBXP.js} +1 -1
- package/build/_chunks/chunk-QBNNRDS4.js +1 -0
- package/build/_chunks/{chunk-44UNMXKS.js → chunk-RHRIPQC4.js} +1 -1
- package/build/_chunks/{chunk-RZJSME6H.js → chunk-RNNPAR2K.js} +1 -1
- package/build/_chunks/{chunk-33C463YL.js → chunk-S2PJVK7F.js} +1 -1
- package/build/_chunks/{chunk-TIO3V7XA.js → chunk-SG7TXVQB.js} +1 -1
- package/build/_chunks/chunk-THYUB3QC.js +1 -0
- package/build/_chunks/{chunk-4QF66SHZ.js → chunk-UKQ7HQSN.js} +1 -1
- package/build/_chunks/{chunk-GNNMQUBT.js → chunk-UVFLY3VX.js} +1 -1
- package/build/_chunks/{chunk-S3YBXSFG.js → chunk-VENWDCC2.js} +1 -1
- package/build/_chunks/{chunk-LQOS3MF6.js → chunk-VGXJIBBQ.js} +1 -1
- package/build/_chunks/{chunk-LOGPCQ24.js → chunk-VJ7WF65J.js} +1 -1
- package/build/_chunks/{chunk-PHVELRMX.js → chunk-WQ3LEL6S.js} +1 -1
- package/build/_chunks/{chunk-KD4RSWN6.js → chunk-XZHYIGXT.js} +1 -1
- package/build/_chunks/{chunk-WAY7BWQL.js → chunk-YUNZ6N3Z.js} +1 -1
- package/build/_chunks/{chunk-OYJYQKLK.js → chunk-ZSJB76QS.js} +1 -1
- package/build/_chunks/{chunk-MHZSYMQP.js → chunk-ZWSYJEHH.js} +1 -1
- package/build/_chunks/{chunk-YPVFVBG3.js → chunk-ZZVT2QWP.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/AppWindow/constant.d.ts +1 -5
- package/build/components/AppWindowWrapper/AppWindow/index.d.ts +1 -1
- package/build/components/AppWindowWrapper/index.d.ts +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/AnimatedStack.d.ts +9 -0
- package/build/components/AvatarStack/AvatarStack.d.ts +5 -0
- package/build/components/AvatarStack/AvatarStackItem.d.ts +4 -0
- package/build/components/AvatarStack/StaticStack.d.ts +4 -0
- package/build/components/AvatarStack/constants.d.ts +40 -0
- package/build/components/AvatarStack/hooks/useAnimatedStack.d.ts +25 -0
- package/build/components/AvatarStack/index.d.ts +4 -0
- package/build/components/AvatarStack/index.js +1 -0
- package/build/components/AvatarStack/style.d.ts +303 -0
- package/build/components/AvatarStack/type.d.ts +122 -0
- package/build/components/AvatarStack/utils.d.ts +63 -0
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/FormSelect/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/JSONViewer/style.d.ts +0 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MultiSelect/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RHFGroupedSelect/index.js +1 -1
- package/build/components/RHFInput/index.js +1 -1
- package/build/components/RHFPhoneInput/index.js +1 -1
- package/build/components/RHFSwitch/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/Sidebar.d.ts +4 -0
- package/build/components/Sidebar/constants.d.ts +10 -0
- package/build/components/Sidebar/index.d.ts +3 -0
- package/build/components/Sidebar/index.js +1 -0
- package/build/components/Sidebar/style.d.ts +18 -0
- package/build/components/Sidebar/type.d.ts +35 -0
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/index.d.ts +4 -4
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -1
- package/build/constants/style.d.ts +1 -0
- package/build/constants/window.d.ts +5 -0
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-4XXNGLS6.js +0 -1
- package/build/_chunks/chunk-FKG3SYY6.js +0 -1
- package/build/_chunks/chunk-GAL3X7PR.js +0 -1
- package/build/_chunks/chunk-MQOX7MKN.js +0 -1
- package/build/_chunks/chunk-OF3Z5SNR.js +0 -2
- package/build/_chunks/chunk-U62XSJM5.js +0 -1
- package/build/_chunks/chunk-V2RLDP5A.js +0 -2
- package/build/_chunks/chunk-WE7NB24K.js +0 -1
- package/build/components/ChipStack/ChipStack.d.ts +0 -67
- package/build/components/ChipStack/components/AnimatedStack.d.ts +0 -24
- package/build/components/ChipStack/components/ChipStackFaceSlot.d.ts +0 -11
- package/build/components/ChipStack/components/OverlapChip.d.ts +0 -9
- package/build/components/ChipStack/components/StaticStack.d.ts +0 -12
- package/build/components/ChipStack/constants.d.ts +0 -14
- package/build/components/ChipStack/hooks/useAnimatedStack.d.ts +0 -28
- package/build/components/ChipStack/index.d.ts +0 -10
- package/build/components/ChipStack/index.js +0 -1
- package/build/components/ChipStack/style.d.ts +0 -31
- package/build/components/ChipStack/types.d.ts +0 -127
- package/build/components/ChipStack/util.d.ts +0 -74
- package/build/components/ExpandableSideBar/ExpandableSideBar.d.ts +0 -5
- package/build/components/ExpandableSideBar/constant.d.ts +0 -1
- package/build/components/ExpandableSideBar/index.d.ts +0 -3
- package/build/components/ExpandableSideBar/index.js +0 -1
- package/build/components/ExpandableSideBar/style.d.ts +0 -22
- package/build/components/ExpandableSideBar/type.d.ts +0 -17
- package/build/components/WindowSideBar/WindowSideBar.d.ts +0 -11
- package/build/components/WindowSideBar/constant.d.ts +0 -1
- package/build/components/WindowSideBar/index.d.ts +0 -5
- package/build/components/WindowSideBar/index.js +0 -1
- package/build/components/WindowSideBar/style.d.ts +0 -14
- package/build/components/WindowSideBar/type.d.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
import {p}from'./chunk-
|
|
1
|
+
import {p}from'./chunk-SG7TXVQB.js';import {Wa,zc,cb}from'./chunk-THYUB3QC.js';import {Rk,ya,xa,wa,Oj}from'./chunk-5QJLTM3A.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:Wa(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Rk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=zc(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${cb((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Oj:Oj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-THYUB3QC.js';import {Nj,j,m as m$1}from'./chunk-5QJLTM3A.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {jsx}from'react/jsx-runtime';function g({countryCode:o,currencyCode:t,...n}){let l=zc(useId(),"country-flag");return jsx(d,{...n,id:l,"data-testid":"CountryFlag",component:"img",src:o&&j(o)||t&&m$1(t)||Nj,width:n.width||16,alt:o??t??"flag",loading:"lazy",onError:u=>{u.currentTarget.src=Nj;}})}g.displayName="CountryFlag";var m=memo(g);var h=m;export{h as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {t,p}from'./chunk-SG7TXVQB.js';import {lc}from'./chunk-THYUB3QC.js';import {forwardRef,memo,useMemo,Fragment,useState,useRef,useCallback,useEffect,useLayoutEffect}from'react';import Tt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var N="os-shared-AvatarStack",s={root:`${N}-root`,track:`${N}-track`,slot:`${N}-slot`,overlapSlot:`${N}-overlapSlot`,overlapItem:`${N}-overlapItem`,overflow:`${N}-overflow`},Xt="chip-stack-overlap-slot",E=`${s.overlapSlot} ${Xt}`,h=24,z=.22,et={duration:z,ease:"easeOut"},rt=1e3,at=120,Ut=["static","fanout-right","fanout-left","fanout-center"],K="static";function nt({items:t,getItemKey:e,renderItem:r}){return t?.length&&e&&r?{items:t,getItemKey:e,renderItem:r}:null}function it(t){return t==="fanout-left"?"left":t==="fanout-center"?"center":"right"}function lt(t,e){return e===void 0||e<1||t.length<e?{visibleItems:t,hiddenItems:[]}:{visibleItems:t.slice(0,e-1),hiddenItems:t.slice(e-1)}}function st(t,e){return lt(t,e).hiddenItems.length>0}function W({source:{items:t,getItemKey:e,renderItem:r},maxItems:a,slotSize:i,renderOverflow:o}){let{visibleItems:n,hiddenItems:c}=lt(t,a),d={slotSize:i},m=n.map((S,A)=>({key:e(S,A),render:()=>r(S,A,d)}));return c.length>0&&m.push({key:`avatar-stack-overflow-${c.length}-${n.length}`,render:()=>o({items:t,overflowItems:c,size:i})}),m}var jt=3,ot=60;function ct(t){let e=t.size??h,r=a=>Math.round(e*a/h);return {size:e,stackStep:t.stackStep??Math.round(e/2),gap:t.gap??Math.max(1,r(jt)),minTrackWidth:t.minTrackWidth??Math.max(ot,r(ot))}}function mt(t,e){return t<=0||e==="right"?0:e==="left"?t-1:Math.floor((t-1)/2)}function ut(t,e,r){return t<=0?0:(t-1)*e+r}function dt({slotCount:t,anchorIndex:e,slotWidths:r,gap:a,stackStep:i}){if(t===0)return [];let o=new Array(t);o[e]=e*i;for(let n=e-1;n>=0;n-=1)o[n]=o[n+1]-r[n]-a;for(let n=e+1;n<t;n+=1)o[n]=o[n-1]+r[n-1]+a;return o}function ft(t,e,r,a){return Array.from({length:t},(i,o)=>t<=1||!e?0:r[o]-o*a)}function St(t,e,r){if(t.length===0)return 0;let a=Math.min(...t),i=Math.max(...t.map((o,n)=>o+e[n]));return Math.max(r,i-a)}function At(t,e,r){return Array.from({length:t},(a,i)=>e.current[i]?.offsetWidth??r)}function pt(t,e){return t.length===e.length&&t.every((r,a)=>r===e[a])}function H(t){return t==null?[]:Array.isArray(t)?t:[t]}function X(t,e){return Array.from({length:t},()=>e)}function C(t){t.current&&clearTimeout(t.current);}function ht({slotCount:t,anchorIndex:e,size:r,stackStep:a,gap:i,isFanOutEnabled:o,compact:n}){let[c,d]=useState(false),m=useRef(null),S=useCallback(()=>{o&&(C(m),d(true));},[o]),A=useCallback(()=>{o&&(C(m),m.current=setTimeout(()=>d(false),at));},[o]);useEffect(()=>()=>C(m),[]),useEffect(()=>{o||d(false);},[o]);let u=useRef([]),l=useRef(null),[p,I]=useState(()=>X(t,r)),f=useCallback(()=>{let v=At(t,u,r);I(T=>pt(T,v)?T:v);},[t,r]);useLayoutEffect(()=>{I(X(t,r));},[t,r]),useLayoutEffect(()=>{f();},[t,r,f]),useEffect(()=>{let v=()=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(f);};return v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v),l.current&&cancelAnimationFrame(l.current);}},[f]);let y=o&&c,R=useMemo(()=>Array.from({length:t},(v,T)=>p[T]??r),[t,p,r]),_=useMemo(()=>dt({slotCount:t,anchorIndex:e,slotWidths:R,gap:i,stackStep:a}),[t,e,R,i,a]),M=useMemo(()=>ft(t,y,_,a),[t,y,_,a]),k=ut(t,a,r),D=useMemo(()=>St(_,R,k),[_,R,k]),V=y?D:n?r:k,L=useMemo(()=>Array.from({length:t},(v,T)=>!n||c||T===e?1:0),[t,n,c,e]);return {slotRefs:u,handleMouseEnter:S,handleMouseLeave:A,isExpanded:y,collapsedWidth:k,trackWidth:V,translateX:M,slotOpacity:L}}var x=t=>typeof t=="string"&&!t.startsWith("$")&&t!=="sx"&&t!=="theme"&&t!=="ownerState"&&t!=="as";function q(){return `var(--avatar-stack-slot-size, ${h}px)`}function qt(t){return `${Math.max(8,8.5*t/h)}px`}function yt(t){let{base:e,grey:r}=t.v2.palette,a=e.white;return {display:"flex",alignItems:"center",justifyContent:"center",width:q(),height:q(),borderRadius:"50%",border:`1px solid ${r[100]}`,background:a,backgroundColor:a,flexShrink:0,"&.MuiAvatar-colorDefault":{background:a,backgroundColor:a,color:"inherit"}}}var gt=styled(Tt,{shouldForwardProp:x})(({theme:t,$slotSize:e})=>({"--avatar-stack-slot-size":`${e}px`,display:"flex",alignItems:"center",paddingRight:t.v2.spacing(8),[`& .${s.overlapSlot}`]:{marginRight:`-${t.v2.spacing(8)}`,position:"relative",zIndex:1},[`& .${s.overlapSlot}:hover`]:{zIndex:2}})),bt=styled(t,{shouldForwardProp:x})(({theme:t})=>({...yt(t),overflow:"hidden",lineHeight:0,boxSizing:"border-box",padding:0,fontSize:"inherit","& > *":{width:"100%",height:"100%",minWidth:0,minHeight:0},"& img":{display:"block",width:"100%",height:"100%",objectFit:"contain"}})),xt=styled(t,{shouldForwardProp:x})(({theme:t})=>({...yt(t),fontSize:`max(8px, calc(${q()} * 8.5 / ${h}))`,fontWeight:t.v2.typography.fontWeightMedium,color:"rgba(0, 0, 0, 0.38)","&.MuiAvatar-colorDefault":{background:t.v2.palette.base.white,backgroundColor:t.v2.palette.base.white,color:"rgba(0, 0, 0, 0.38)"}})),Rt=styled(Tt,{shouldForwardProp:x})(({theme:t,$isFullWidth:e})=>({display:"flex",justifyContent:"flex-start",gap:t.v2.spacing(8),overflow:"visible",...e?{width:"100%"}:{}})),_t=styled("div",{shouldForwardProp:x})(({$width:t,$minWidth:e,$height:r,$zIndex:a})=>({position:"relative",overflow:"visible",width:t,minWidth:e,height:r,transition:`width ${z}s ease-out`,...a!==void 0?{zIndex:a}:{}})),wt=styled(motion.div,{shouldForwardProp:x})(({$index:t,$left:e,$size:r,$isHidden:a})=>({position:"absolute",top:0,left:e,zIndex:t,width:r,height:r,pointerEvents:a?"none":"auto"})),Nt=styled(t,{shouldForwardProp:x})(({theme:t,$size:e})=>({width:e,height:e,borderRadius:"50%",border:`1px solid ${t.v2.palette.grey[100]}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:qt(e),fontWeight:t.v2.typography.fontWeightBold,background:"#F5F5F5",backgroundColor:"#F5F5F5",flexShrink:0,"&.MuiAvatar-colorDefault":{background:"#F5F5F5",backgroundColor:"#F5F5F5",color:"inherit"}}));function Bt({overflowItems:t,size:e}){return jsxs(Nt,{className:s.overflow,$size:e,children:["+",t.length]})}function J({source:t,maxItems:e,renderOverflow:r,fanOutDirection:a,compact:i,slotProps:o,rootRef:n,id:c,"data-testid":d,className:m,sx:S}){let{zIndex:A=rt,size:u,stackStep:l,gap:p,minTrackWidth:I}=o?.layout??{},{size:f,stackStep:y,gap:R,minTrackWidth:_}=useMemo(()=>ct({size:u,stackStep:l,gap:p,minTrackWidth:I}),[u,l,p,I]),M=i||!st(t.items,e),k=useMemo(()=>W({source:t,maxItems:e,slotSize:f,renderOverflow:r??Bt}),[t,e,f,r]),D=mt(k.length,a),{slotRefs:Q,handleMouseEnter:V,handleMouseLeave:L,isExpanded:v,collapsedWidth:T,trackWidth:$t,translateX:Ft,slotOpacity:tt}=ht({slotCount:k.length,anchorIndex:D,size:f,stackStep:y,gap:R,isFanOutEnabled:M,compact:i});if(k.length===0)return null;let{className:Wt,sx:Ct,...Dt}=o?.shell??{},{className:Vt,...Lt}=o?.track??{};return jsx(Rt,{ref:n,...Dt,className:lc(s.root,m,Wt),sx:[...H(S),...H(Ct)],$isFullWidth:M,children:jsx(_t,{id:c,"data-testid":d,...Lt,className:lc(s.track,Vt),onMouseEnter:V,onMouseLeave:L,$width:$t,$minWidth:i?f:Math.max(_,T),$height:f,$zIndex:v?A:void 0,children:k.map(({key:zt,render:Kt},w)=>jsx(wt,{ref:Ht=>{Q.current[w]=Ht;},className:s.slot,initial:false,animate:{x:Ft[w]??0,opacity:tt[w]??1},transition:et,$index:w,$left:w*y,$size:f,$isHidden:tt[w]===0,children:Kt()},zt))})})}var Pt=forwardRef(({title:t,id:e,className:r,...a},i)=>{let o=t!=null&&t!=="",n=jsx(bt,{ref:i,id:e,"data-testid":e??"AvatarStackItem",className:lc(s.overlapItem,!o&&E,r),...a});return o?jsx(p,{title:t,wrapperProps:{className:E},children:n}):n});Pt.displayName="AvatarStackItem";var Y=memo(Pt);function te(t){return jsx(p,{title:`${t} more`,wrapperProps:{className:E},children:jsx(xt,{className:s.overflow,children:jsxs("span",{children:["+",t]})})})}function G({source:t,maxItems:e,renderOverflow:r,slotProps:a,rootRef:i,id:o,"data-testid":n,className:c,sx:d}){let m=a?.layout?.size??h,{renderItem:S}=t,A=W({source:{...t,renderItem:(u,l,p)=>jsx(Y,{children:S(u,l,p)})},maxItems:e,slotSize:m,renderOverflow:u=>r?.(u)??te(u.overflowItems.length)});return jsx(gt,{ref:i,id:o,"data-testid":n,className:lc(s.root,c),sx:d,$slotSize:m,children:A.map(({key:u,render:l})=>jsx(Fragment,{children:l()},u))})}function ne({variant:t=K,items:e,getItemKey:r,renderItem:a,maxItems:i,renderOverflow:o,compact:n=false,id:c,"data-testid":d,slotProps:m,sx:S,className:A},u){let l=useMemo(()=>nt({items:e,getItemKey:r,renderItem:a}),[e,r,a]);if(!l)return null;let p={source:l,maxItems:i,renderOverflow:o,slotProps:m,rootRef:u,id:c,"data-testid":d??c??"AvatarStack",className:A,sx:S};return t==="static"?jsx(G,{...p}):jsx(J,{...p,fanOutDirection:it(t),compact:n})}var Mt=forwardRef(ne);Mt.displayName="AvatarStack";var ie=memo(Mt),le=ie;export{s as a,Ut as b,K as c,Y as d,le as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-SG7TXVQB.js';import {styled,Box,Button}from'@mui/material';var d=styled(j)(({theme:o})=>{let{grey:r}=o.v2.palette;return {fontWeight:o.v2.typography.fontWeightMedium,fontSize:"0.6875rem",color:r[500],paddingInlineStart:o.v2.spacing(16),paddingTop:o.v2.spacing(8),paddingBottom:o.v2.spacing(8),paddingInlineEnd:o.v2.spacing(8),borderBottom:`1px solid ${r[100]}`}}),l=styled(Box)(({theme:o})=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center",position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999,borderTop:`1px solid ${o.palette.divider}`})),c=styled(Button)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),s=styled(Button)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}}));export{d as a,l as b,c,s as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ra,Qa,$a,Pa,ze,Ae}from'./chunk-
|
|
1
|
+
import {Ra,Qa,$a,Pa,ze,Ae}from'./chunk-5QJLTM3A.js';import {styled}from'@mui/material/styles';import P from'@mui/material/Box';import {jsx,jsxs}from'react/jsx-runtime';import k from'@mui/material/Typography';var e=styled(P)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var d=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.error.main}}));function S(o){return jsx(d,{...o,className:"header-icon",children:jsx("img",{src:Ra,alt:"close"})})}var x=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.warning.main}}));function U(o){return jsx(x,{...o,className:"header-icon",children:jsx("img",{src:Qa,alt:"minimize"})})}var u=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.info.dark}}));function ro({isMaximized:o,...r}){return jsx(u,{...r,className:"header-icon",children:jsx("img",{src:o?$a:Pa,alt:"maximize"})})}var g=styled(e,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},...r&&{backgroundColor:`${o.palette.success.main} !important`}})),h=styled(P)(({theme:o})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px","&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),y=styled(k,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({fontSize:"10px",color:o.palette.success.main,opacity:r?1:0}));function fo({isExpanded:o,isHovered:r,children:b,...B}){return jsxs(h,{...B,children:[jsx(g,{className:"header-icon",isHovered:r,children:jsx(P,{component:"img",sx:{...r&&{opacity:1}},src:o?ze:Ae,alt:"arrow"})}),jsx(y,{className:"request-text",isHovered:r,children:b})]})}export{S as a,U as b,ro as c,fo as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-6XIQX2CT.js';import {zc,ac}from'./chunk-THYUB3QC.js';import {Bi,yk,ja,Ud,Tj,E,ml,C,vb}from'./chunk-5QJLTM3A.js';import {useId,useMemo,useState,useCallback}from'react';import {useTranslation}from'react-i18next';import b from'@mui/material/Box';import V from'@mui/material/Popper';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var L=styled(b)(({theme:n})=>({background:n.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:148,width:"max-content",marginTop:"8px"})),l=styled(b,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:s})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",fontSize:"11px",fontWeight:500,color:n.palette.text.primary,"&:hover":{boxShadow:n.shadows[3]},...s&&{boxShadow:n.shadows[3]}})),u=styled(b)(()=>({display:"flex",alignItems:"center",gap:"8px"})),d=styled("img")(()=>({width:16,height:16,objectFit:"contain"})),$=styled(b)(()=>({height:27,display:"flex",alignItems:"center",padding:"0 12px",fontFamily:"Tap Sans",fontWeight:500,fontSize:"11px",lineHeight:"100%",letterSpacing:"0%",color:"#8D8D94",pointerEvents:"none",userSelect:"none"}));var F={refund:ml,flag:E,viewReceipt:Tj,viewApi:Ud,capture:ja,void:yk,clipboard:Bi};var X=({anchorEl:n,onClose:s,actions:h=[],linkedActions:M=[]})=>{let v=zc(useId(),"actions-dropdown-menu"),{t:E}=useTranslation(),I=!!n,f=useMemo(()=>h.filter(e=>e.isShown!==false),[h]),g=useMemo(()=>M.filter(e=>e.isShown!==false),[M]);return I?jsxs(b,{id:v,"data-testid":"ActionsDropdownMenu",children:[jsx(a,{onClick:s}),jsx(V,{open:I,anchorEl:n,placement:"bottom-end",sx:{zIndex:1e3},children:jsxs(L,{children:[f.map((e,r)=>jsx(l,{onClick:p=>{p.stopPropagation(),e.onClick?.(p);},sx:r===f.length-1&&g.length>0?{borderBottom:"1px solid",borderColor:"divider"}:void 0,children:jsxs(u,{children:[jsx(d,{src:F[e.icon]??e.icon??C,alt:"action-icon"}),jsx("span",{children:e.label})]})},`direct-${r}`)),g.length>0&&jsx($,{children:E("linkedActions")}),g.map(({render:e,icon:r,label:p,onClick:T,onRightClick:i},c)=>{let m=e?.();return e&&!m?null:m?jsx(b,{children:m},`linked-${c}`):jsxs(l,{onClick:a=>{a.stopPropagation(),T?.(a),s();},onContextMenu:i?a=>{i(a);}:void 0,children:[jsxs(u,{children:[r&&jsx(d,{src:r,alt:"linked-action-icon"}),jsx("span",{children:p})]}),jsx("img",{src:vb,alt:""})]},`linked-${c}`)})]})})]}):null};var ne=({appCode:n,appIcon:s,appName:h,appInfo:M,menuItems:v})=>{let[E,I]=useState(null),f=!!E,g=useCallback(i=>{let c=i.currentTarget.firstElementChild;I(c);},[]),e=useCallback(()=>{I(null);},[]),r=useMemo(()=>v?.filter(({isShown:i=true})=>i),[v]);if(!r?.length)return null;let p=M?.iconUrl??s,T=ac(M?.name)??h;return jsxs(b,{onMouseEnter:g,onMouseLeave:e,children:[jsxs(l,{open:f,children:[jsxs(u,{children:[p&&jsx(d,{src:p,alt:"app"}),jsx("span",{children:T})]}),jsx("img",{src:vb,alt:""})]}),jsx(V,{open:f,anchorEl:E,placement:"left-start",sx:{zIndex:1301},children:jsx(L,{sx:{marginTop:0},children:r.map(({render:i,label:c,icon:m,onClick:a,onContextMenu:k},J)=>jsx(b,{children:i?.()??jsx(l,{onClick:C=>{C.stopPropagation(),a?.(C);},onContextMenu:k?C=>{k(C);}:void 0,children:jsxs(u,{children:[m&&jsx(d,{src:m,alt:"icon"}),jsx("span",{children:c})]})})},`app-${J}`))})})]})};export{X as a,ne as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-ZONDSLTR.js';import {p}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ZONDSLTR.js';import {p}from'./chunk-SG7TXVQB.js';import {zc,f as f$1}from'./chunk-THYUB3QC.js';import {mb}from'./chunk-5QJLTM3A.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs}from'react/jsx-runtime';var m=t=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}});var d=({children:t})=>jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},children:t});function f({value:t,index:e}){let s=zc(useId(),"rating-count"),{t:u}=useTranslation();return jsx(p,{title:u("totalPaymentCount",{amount:f$1(t)}),wrapperProps:{display:"inline-flex"},children:jsx(a,{id:s,order:e,variants:m(e),"data-testid":"RatingCount",children:jsxs(d,{children:[jsx("img",{src:mb,alt:"star",style:{width:"10px",height:"10px"}})," ",(t||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:t})]})})})}export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {L,ba,aa}from'./chunk-
|
|
1
|
+
import {L,ba,aa}from'./chunk-SG7TXVQB.js';import {zc,Bc,kc,lc,Ya}from'./chunk-THYUB3QC.js';import {forwardRef,useId,memo}from'react';import ee from'@mui/material/Box';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n="os-shared-TextInput",s={root:`${n}-root`,field:`${n}-field`,label:`${n}-label`,input:`${n}-input`,helperText:`${n}-helperText`};var h=styled(ee)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%"}));function S(e,t){let{borderColor:o}=aa(e,t),r=e.v2.radius(4);return {borderColor:o,borderBottom:"none",borderRadius:`${r} ${r} 0 0`,"&:focus-within":{borderColor:o,boxShadow:"none"}}}var g=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.v2.palette.base.black,.6),fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));function C(e,t){let o=typeof e=="string"&&Ya(e)?e:void 0;return {resolvedLabel:o??t??void 0,resolvedPlaceholder:o&&typeof t=="string"?t:void 0}}var P=forwardRef(({onChange:e,error:t=false,helperText:o,feedback:r,label:i,placeholder:v,disabled:F,fullWidth:$=true,startAdornment:k,endAdornment:L$1,readOnly:w,inputProps:A,InputProps:E,InputLabelProps:ae,className:H,sx:B,id:l="TextInput",...R},W)=>{let O=useTheme(),D=zc(useId(),"text-input"),M=Z=>{e?.(Z.target.value??"");},{isProvided:a,isVisible:V,type:z}=Bc(r),{resolvedLabel:_,resolvedPlaceholder:j}=C(i,v),m=!!t&&!a,{sx:q,startAdornment:G,endAdornment:J,readOnly:K,inputProps:Q,disabled:U}=E??{},X=V?S(O,z):{},Y=kc(kc(X,q),B);return jsxs(ee,{className:s.root,children:[jsx(h,{id:D,"data-testid":"TextInput",children:jsx(L,{id:l,...R,ref:W,label:_,placeholder:j,disabled:F??U,fullWidth:$,error:m,startAdornment:k??G,endAdornment:L$1??J,readOnly:w??K,inputProps:{...Q,...A},onChange:M,className:lc(s.field,H),sx:Y})}),a?jsx(ba,{...r}):null,!a&&o?jsx(g,{className:s.helperText,id:l?`${l}-helper-text`:void 0,$error:m,children:o}):null]})});P.displayName="TextInput";var N=memo(P);export{s as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {$,Fb,A,uc,vc}from'./chunk-
|
|
1
|
+
import {$,Fb,A,uc,vc}from'./chunk-THYUB3QC.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function H(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function ge(){let[e,n]=useState(H);return useEffect(()=>{let t;function o(){cancelAnimationFrame(t),t=requestAnimationFrame(()=>{n(H());});}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),cancelAnimationFrame(t);}},[]),e}var Te=()=>{let[e,n]=useState(false),[t,o]=useState(false),r=useCallback(()=>{n(true);},[]),s=useCallback(()=>{n(false);},[]),i=useCallback(()=>{o(true);},[]),a=useCallback(()=>{o(false);},[]);return {onMouseContentEnter:i,onMouseContentLeave:a,isHovered:e,isContentHovered:t,onMouseEnter:r,onMouseLeave:s}};function be({value:e,delay:n}){let[t,o]=useState(e);return useEffect(()=>{let r;return e?o(e):r=setTimeout(()=>{o(e);},n),()=>{clearTimeout(r);}},[e]),t}function Me(e,n){let[t,o]=useState({});return useEffect(()=>{e&&o(s=>({...s,[e]:n||0}));},[n,e]),{getBadgeCount:useCallback(s=>s?t[s]:"",[t])}}var ke=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{$()||(window.location.href="/login");},[e]);};function He(e){return {isParameterSelected:(o,r)=>r?.map(s=>Fb(e,o,s)),getColumnOrder:o=>{let r=e.findIndex(s=>s.name?.toLowerCase()===o?.toLowerCase());return r===-1?100:r}}}var De=e=>{let[n,t]=useState(false);return useEffect(()=>{let o=e?.current;if(!o)return;let r=new IntersectionObserver(([s])=>{t(!s.isIntersecting);});return r.observe(o),()=>r.disconnect()},[e]),{showShadow:n}};var Pe=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function ze(){let[e,n]=useState(0),t=useRef(null),o=A(e),r=()=>{t.current&&(clearInterval(t.current),t.current=null);},s=()=>{r(),n(0);},i=a=>{a<=0||(t.current&&r(),n(a),t.current=setInterval(()=>{n(c=>{let u=c-1;return u<=0&&r(),u});},1e3));};return useEffect(()=>()=>{r();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:r,resetTimer:s}}var Ne=e=>{let n=useMemo(()=>new Map(e.map(i=>[i.code.toLowerCase(),i])),[e]),t=useCallback(i=>n.get(i.toLowerCase()),[n]),o=useCallback(({appCode:i,serviceCode:a})=>t(i)?.app_services.find(({code:c})=>c.toLowerCase()===a.toLowerCase()),[t]),r=useCallback(({appCode:i,serviceCode:a})=>o({appCode:i,serviceCode:a})?.functions??[],[o]),s=useCallback(({appCode:i,serviceCode:a,functionCode:c})=>r({appCode:i,serviceCode:a}).find(({code:u})=>u?.toLowerCase()===c.toLowerCase()),[r]);return {getAppInfo:t,getServiceInfo:o,getServiceFunctions:r,getFunctionInfo:s}};function F(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function Xe(e,n){let t=useRef(n);t.current=n,useEffect(()=>{let o=r=>{let s=r;t.current(...s.detail||[]);};return window.addEventListener(e,o),()=>{window.removeEventListener(e,o);}},[e]);}var et=(e,n)=>{let{selectedEntity:t,selectedMerchant:o,displayName:r}=useMemo(()=>{let s=n?.entities.find(c=>c.id===e?.entityId),i=s?.merchants?.find(c=>c.id===e?.merchantId),a=i?.display_name??i?.legacy_id??"Select";return {selectedEntity:s,selectedMerchant:i,displayName:a}},[n,e?.entityId,e?.merchantId]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:r}};var se=()=>crypto.randomUUID();function rt(){let e=F("on-toast"),n=useCallback(t=>(o,r)=>{let s=r?.id??se();return e({action:"show",variant:t,message:o,options:{...r,id:s}}),s},[e]);return useMemo(()=>{let t=n("default");return t.success=n("success"),t.error=n("error"),t.loading=n("loading"),t.custom=n("custom"),t.dismiss=o=>{e({action:"dismiss",variant:"dismiss",toastId:o});},t.remove=o=>{e({action:"remove",variant:"remove",toastId:o});},t},[n,e])}var ae=10;function at({threshold:e=ae,containerRef:n}={}){let[t,o]=useState(true),[r,s]=useState(false),[i,a]=useState(false),c=useCallback(l=>{let{scrollTop:m,scrollHeight:p,clientHeight:f}=l;a(p>f+e),o(m<=e),s(p-(m+f)<=e);},[e]),u=useCallback(l=>{if(l){if("currentTarget"in l){c(l.currentTarget);return}c(l);}},[c]);return useEffect(()=>{if(!n?.current)return;let l=n.current;u(l);let m=new ResizeObserver(()=>{u(l);});return m.observe(l),()=>{m.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:r,scrollable:i}}var lt=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:r=5e3}=e,s=typeof window<"u"&&typeof navigator<"u",[i,a]=useState(s?navigator.onLine:true),[c,u]=useState(false),[l,m]=useState(null),p=useRef(null),f=useRef(null),g=useCallback(d=>{p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{a(d),p.current=null;},o);},[o]);return useEffect(()=>{if(!s)return;let d=null,w=()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null);},v=async()=>{u(true),m(null),d?.abort(),d=new AbortController;try{let M=window.setTimeout(()=>{d?.abort();},r),y=await fetch(n,{method:"GET",cache:"no-store",signal:d.signal});window.clearTimeout(M);let x=y.ok;g(x),x?w():m(`Health check failed with status ${y.status}`);}catch{g(false),m("Unable to reach network");}finally{u(false);}},S=()=>{w(),g(true);},C=()=>{g(false),w(),v(),f.current=window.setInterval(v,t);};return window.addEventListener("online",S),window.addEventListener("offline",C),navigator.onLine||(v(),f.current=window.setInterval(v,t)),()=>{window.removeEventListener("online",S),window.removeEventListener("offline",C),p.current!==null&&window.clearTimeout(p.current),w(),d?.abort();}},[s,n,t,o,r,g]),s?{isOnline:i,isChecking:c,error:l}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};var dt=(e={},n,t)=>{let o=uc(e,t.requiredFilterKeys);return {columns:useMemo(()=>vc(n,o,t),[n,o])}};function ht(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}function Ct(){let[e,n]=useState(true);return {onScrollHandler:useCallback(o=>{let{scrollTop:r,scrollHeight:s,clientHeight:i}=o.currentTarget,a=r===0||i<s-r-1;n(c=>c===a?c:a);},[]),showShadow:e}}export{ge as a,Te as b,be as c,Me as d,ke as e,He as f,De as g,Pe as h,ze as i,Ne as j,F as k,Xe as l,et as m,rt as n,at as o,lt as p,dt as q,ht as r,Ct as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {T,S,b as b$1}from'./chunk-
|
|
1
|
+
import {T,S,b as b$1}from'./chunk-SG7TXVQB.js';import {forwardRef,memo,createContext,useState,useRef,useCallback,useMemo,useContext}from'react';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var u=styled(T)(({theme:o})=>({[`& .${S.title}`]:{fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary}})),x=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:o.spacing(2)})),d=styled(b$1)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),minWidth:64,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:o.palette.text.primary,textTransform:"none",border:`1px solid ${o.palette.divider}`,boxShadow:"none","&:hover":{boxShadow:"none",backgroundColor:o.palette.action.hover}})),y=styled("p")(({theme:o})=>({margin:0,fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight})),D=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"}));var v=forwardRef(({message:o,title:t,confirmText:a,cancelText:i,onConfirm:r,onCancel:s,className:m,sx:e,...n},T)=>jsx(u,{ref:T,"data-testid":"ConfirmDialog",heading:t,className:m,sx:e,...n,children:jsxs(x,{children:[jsx(y,{children:o}),jsxs(D,{children:[jsx(d,{variant:"ghost",onClick:s,children:i||"No"}),jsx(d,{variant:"ghost",onClick:r,children:a||"Yes"})]})]})}));v.displayName="ConfirmDialog";var b=memo(v);var p=createContext(null);function W(){let o=useContext(p);if(!o)throw new Error("useConfirm must be used within <ConfirmDialogProvider>");return o}var R={open:false,message:null,title:void 0,confirmText:void 0,cancelText:void 0,sx:void 0,dismissible:true};function z({children:o}){let[t,a]=useState(R),i=useRef(null),r=useCallback(e=>{let n=i.current;n&&(i.current=null,a(R),n(e));},[]),s=useCallback(e=>new Promise(n=>{i.current?.(false),i.current=n,a({open:true,dismissible:e.dismissible??true,message:e.message,title:e.title,confirmText:e.confirmText,cancelText:e.cancelText,sx:e.sx});}),[]),m=useMemo(()=>({confirm:s}),[s]);return jsxs(p.Provider,{value:m,children:[o,jsx(b,{open:t.open,message:t.message,title:t.title,confirmText:t.confirmText,cancelText:t.cancelText,onConfirm:()=>r(true),onCancel:()=>r(false),onClose:t.dismissible?()=>r(false):void 0,sx:t.sx})]})}var O=memo(z);export{W as a,O as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-THYUB3QC.js';import {Bn}from'./chunk-5QJLTM3A.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=zc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=zc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===Bn.reports.code||o===Bn.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-THYUB3QC.js';import {memo,useId}from'react';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(a)(()=>({flex:1,position:"relative",display:"flex",flexDirection:"column",height:"100%"}));function e({children:p,...r}){let s=zc(useId(),"list-layout");return jsx(o,{id:s,component:"article","data-testid":"ListLayout",...r,children:p})}e.displayName="ListLayout";var i=memo(e);var C=i;export{C as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-SG7TXVQB.js';import e from'@mui/material/Box';import l from'@mui/material/Button';import d from'@mui/material/Input';import n from'@mui/material/ListSubheader';import r from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';var c=keyframes`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(-90deg);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-SG7TXVQB.js';import {Td,Pi,Qi,Ri,Si,Ti}from'./chunk-5QJLTM3A.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var x=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),y=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:t})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...t&&{cursor:"move"},margin:0})),$=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},position:"relative",zIndex:1,margin:0})),f=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:t})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...t&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),W=styled(y)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"})),u=styled(j)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.v2.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var w=new Map([["json",Td],["brand",Pi],["entity",Qi],["bank",Ri],["individual",Si],["password",Ti]]);function C({title:o,icon:t}){let a=w.get(t||"")??(w.get(o?.toLowerCase())||t);return jsxs(h,{className:"action-box","data-testid":"ToolbarAppIcon",children:[a&&jsx(I,{src:a,alt:"icon"}),jsx(u,{className:"title",children:o})]})}var S=C;function L({onMouseEnter:o,onMouseLeave:t,isMaximized:a,isHovered:z,rightActions:k,leftActions:n,title:A,icon:B,...H}){return jsx(f,{onMouseEnter:o,onMouseLeave:t,maximized:a,id:"toolbar","data-testid":"Toolbar",isHovered:z,...H,children:jsxs(b,{className:"toolbar-wrapper",children:[n?jsx(x,{className:"action-box",children:n}):jsx("div",{}),jsx(S,{title:A,icon:B}),k||jsx("div",{})]})})}var T=memo(L);var Z=T;export{y as a,$ as b,W as c,Z as d};
|