@tap-payments/os-micro-frontend-shared 0.3.242 → 0.3.244

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/build/_chunks/chunk-26JDD265.js +1 -0
  2. package/build/_chunks/{chunk-TDFNWFK7.js → chunk-2LEYPKDY.js} +1 -1
  3. package/build/_chunks/{chunk-7R6GKSYQ.js → chunk-2ZJH27XO.js} +1 -1
  4. package/build/_chunks/{chunk-AVTZV3J7.js → chunk-3DFGUAHQ.js} +1 -1
  5. package/build/_chunks/{chunk-GRKRA3TP.js → chunk-3MBZ55DP.js} +1 -1
  6. package/build/_chunks/{chunk-B5TZKBR5.js → chunk-3VJ65CKN.js} +1 -1
  7. package/build/_chunks/chunk-4FJ26UVI.js +2 -0
  8. package/build/_chunks/{chunk-7PLZT2KW.js → chunk-4N3FBJNL.js} +1 -1
  9. package/build/_chunks/{chunk-EGFHFXWK.js → chunk-4S23GCB4.js} +1 -1
  10. package/build/_chunks/{chunk-KVC3QSDQ.js → chunk-55OTIRJ3.js} +1 -1
  11. package/build/_chunks/{chunk-S4ZHXBPB.js → chunk-5HM27XEJ.js} +1 -1
  12. package/build/_chunks/{chunk-QWWU4QAA.js → chunk-6BJANCV7.js} +1 -1
  13. package/build/_chunks/{chunk-5H7MD7LO.js → chunk-6ELMQ3AM.js} +1 -1
  14. package/build/_chunks/chunk-7HYRJMV7.js +2 -0
  15. package/build/_chunks/{chunk-SYEHTDS6.js → chunk-7OM4OZ7R.js} +1 -1
  16. package/build/_chunks/{chunk-GUXJEFPL.js → chunk-AJJSWLJL.js} +1 -1
  17. package/build/_chunks/{chunk-LXD5Y42H.js → chunk-BHSKFHRE.js} +1 -1
  18. package/build/_chunks/chunk-BYJ7JVY3.js +1 -0
  19. package/build/_chunks/{chunk-LFBTKZ3V.js → chunk-C76GGOHP.js} +1 -1
  20. package/build/_chunks/{chunk-EJ2GRPAY.js → chunk-CC7EFANR.js} +1 -1
  21. package/build/_chunks/{chunk-QDW7GZN6.js → chunk-CWB7XNU7.js} +1 -1
  22. package/build/_chunks/{chunk-BQWD3KO4.js → chunk-CXHNLMKI.js} +1 -1
  23. package/build/_chunks/{chunk-NPCTL2R7.js → chunk-DFFLKF4P.js} +1 -1
  24. package/build/_chunks/{chunk-BUPWQI3W.js → chunk-DV25U65X.js} +2 -2
  25. package/build/_chunks/{chunk-JI5U3KGK.js → chunk-DZFU4QPT.js} +1 -1
  26. package/build/_chunks/{chunk-FWPVRT34.js → chunk-EJ6HUZR5.js} +1 -1
  27. package/build/_chunks/{chunk-6ASQZ2RI.js → chunk-FLQCQEHB.js} +1 -1
  28. package/build/_chunks/{chunk-LOFKIY7J.js → chunk-G2HCO4KW.js} +1 -1
  29. package/build/_chunks/{chunk-V4YG7AP4.js → chunk-GDTR32HP.js} +1 -1
  30. package/build/_chunks/{chunk-BA5OFEBT.js → chunk-GXUVKR7C.js} +1 -1
  31. package/build/_chunks/chunk-H6KCP5WM.js +1 -0
  32. package/build/_chunks/{chunk-YNOCNDOA.js → chunk-HKC2AO7Q.js} +1 -1
  33. package/build/_chunks/{chunk-5WL77ZBM.js → chunk-HROFC3Z7.js} +2 -2
  34. package/build/_chunks/{chunk-VV5IC3DP.js → chunk-IDE2FEIW.js} +1 -1
  35. package/build/_chunks/{chunk-G3QKYZM2.js → chunk-IRSOFOW4.js} +1 -1
  36. package/build/_chunks/{chunk-6USHHZAA.js → chunk-IZDDMEFF.js} +1 -1
  37. package/build/_chunks/{chunk-6E2SGPTJ.js → chunk-J76ZW2JS.js} +1 -1
  38. package/build/_chunks/{chunk-KTFIN54Q.js → chunk-JJX36QPC.js} +1 -1
  39. package/build/_chunks/{chunk-52SSIU72.js → chunk-JO5WFWAJ.js} +1 -1
  40. package/build/_chunks/{chunk-D23EYDCG.js → chunk-JR2SE6NE.js} +1 -1
  41. package/build/_chunks/{chunk-HWDODLOQ.js → chunk-JVG5UN4Z.js} +2 -2
  42. package/build/_chunks/{chunk-OMISGJLX.js → chunk-K5ICBD7X.js} +1 -1
  43. package/build/_chunks/{chunk-R6Y42OPH.js → chunk-KHWWD7J3.js} +1 -1
  44. package/build/_chunks/{chunk-3Z6ULCGA.js → chunk-KT5N4ENC.js} +1 -1
  45. package/build/_chunks/{chunk-QLF4C46U.js → chunk-KZGSM2JY.js} +1 -1
  46. package/build/_chunks/{chunk-QLXQSDL7.js → chunk-L65TSVYE.js} +1 -1
  47. package/build/_chunks/{chunk-6RTZSBSD.js → chunk-LYLC5A5R.js} +1 -1
  48. package/build/_chunks/{chunk-OBK62FOF.js → chunk-MKMNDEWM.js} +1 -1
  49. package/build/_chunks/{chunk-CWNHOUN5.js → chunk-MQN2MT2R.js} +1 -1
  50. package/build/_chunks/{chunk-WZQR2LCT.js → chunk-MSWKK36W.js} +1 -1
  51. package/build/_chunks/chunk-MX4PENFY.js +1 -0
  52. package/build/_chunks/{chunk-ZEQDF7FG.js → chunk-N4JQPHMV.js} +1 -1
  53. package/build/_chunks/{chunk-QHK62NO3.js → chunk-OIWYMPWX.js} +1 -1
  54. package/build/_chunks/{chunk-JG5OM35T.js → chunk-OSHM7QKM.js} +1 -1
  55. package/build/_chunks/{chunk-7FWE55BT.js → chunk-OUR46KNI.js} +1 -1
  56. package/build/_chunks/{chunk-BMSJV3FH.js → chunk-PHYUVPED.js} +1 -1
  57. package/build/_chunks/chunk-PW65L7RT.js +1 -0
  58. package/build/_chunks/{chunk-I7KBFAH7.js → chunk-Q4LS63CQ.js} +1 -1
  59. package/build/_chunks/{chunk-VNHVDZKL.js → chunk-RTBDYNH2.js} +1 -1
  60. package/build/_chunks/{chunk-MXQFATMM.js → chunk-SHM2FONS.js} +1 -1
  61. package/build/_chunks/{chunk-7THWDMHL.js → chunk-U5UZTT2I.js} +1 -1
  62. package/build/_chunks/{chunk-GLTYG62E.js → chunk-UA5TIEDO.js} +1 -1
  63. package/build/_chunks/{chunk-6JLKJPL3.js → chunk-UD4BRMOT.js} +1 -1
  64. package/build/_chunks/{chunk-X5HJKL6O.js → chunk-UKTF67RR.js} +1 -1
  65. package/build/_chunks/{chunk-GEJI7SEX.js → chunk-V6DYLCV6.js} +1 -1
  66. package/build/_chunks/{chunk-J7R6JFXM.js → chunk-VQBMOP6H.js} +1 -1
  67. package/build/_chunks/{chunk-I6RRJ7ME.js → chunk-W7J5RYUV.js} +1 -1
  68. package/build/_chunks/{chunk-SR3UFTU3.js → chunk-XA6PS7NH.js} +1 -1
  69. package/build/_chunks/{chunk-JCFOE4DQ.js → chunk-YPDHRUOH.js} +1 -1
  70. package/build/_chunks/{chunk-GP7PBSOF.js → chunk-YWA3HTWT.js} +1 -1
  71. package/build/_chunks/{chunk-CTGKNHG3.js → chunk-Z6KCOMOK.js} +1 -1
  72. package/build/_chunks/{chunk-KDRRRYZL.js → chunk-ZNG2PLND.js} +1 -1
  73. package/build/_chunks/{chunk-U2PXB4YH.js → chunk-ZOOP22CX.js} +1 -1
  74. package/build/components/ActionsDropdownMenu/index.js +1 -1
  75. package/build/components/ActiveFilterChip/index.js +1 -1
  76. package/build/components/Alert/index.js +1 -1
  77. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  78. package/build/components/AppServices/index.js +1 -1
  79. package/build/components/AppServicesBar/index.js +1 -1
  80. package/build/components/AppWindowWrapper/index.js +1 -1
  81. package/build/components/AreaChart/index.js +1 -1
  82. package/build/components/Autocomplete/index.js +1 -1
  83. package/build/components/AvatarStack/index.js +1 -1
  84. package/build/components/Calender/index.js +1 -1
  85. package/build/components/ColorPicker/index.js +1 -1
  86. package/build/components/ColumnViews/index.js +1 -1
  87. package/build/components/ConfirmDialog/index.js +1 -1
  88. package/build/components/CountryFilter/index.js +1 -1
  89. package/build/components/CountryFlag/index.js +1 -1
  90. package/build/components/CurrenciesMenu/index.js +1 -1
  91. package/build/components/CurrencyAmount/index.js +1 -1
  92. package/build/components/CurrencyAmountInput/index.js +1 -1
  93. package/build/components/CurrencySymbol/index.js +1 -1
  94. package/build/components/DateFilter/index.js +1 -1
  95. package/build/components/DeviceIcon/index.js +1 -1
  96. package/build/components/DropdownMenu/index.js +1 -1
  97. package/build/components/EmptyState/index.js +1 -1
  98. package/build/components/ErrorToast/index.js +1 -1
  99. package/build/components/FileDropbox/index.js +1 -1
  100. package/build/components/FilePreview/index.js +1 -1
  101. package/build/components/FileUploader/index.js +1 -1
  102. package/build/components/FilterDropdown/index.js +1 -1
  103. package/build/components/Filters/index.js +1 -1
  104. package/build/components/FlippingCard/index.js +1 -1
  105. package/build/components/FormSelect/index.js +1 -1
  106. package/build/components/GroupedSelect/index.js +1 -1
  107. package/build/components/HeatMap/index.js +1 -1
  108. package/build/components/IconWithBadge/index.js +1 -1
  109. package/build/components/InputBase/index.js +1 -1
  110. package/build/components/Inputs/index.js +1 -1
  111. package/build/components/JSONViewer/index.js +1 -1
  112. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  113. package/build/components/ListColumnFilter/index.js +1 -1
  114. package/build/components/ListHeader/index.js +1 -1
  115. package/build/components/ListLayout/index.js +1 -1
  116. package/build/components/Loader/index.js +1 -1
  117. package/build/components/Logo/index.js +1 -1
  118. package/build/components/MFWidgetLoader/index.js +1 -1
  119. package/build/components/MaskedText/index.js +1 -1
  120. package/build/components/MultiSelect/index.js +1 -1
  121. package/build/components/NestedDropdown/index.js +1 -1
  122. package/build/components/NestedMultiSelect/index.js +1 -1
  123. package/build/components/PaymentSourceFilter/index.js +1 -1
  124. package/build/components/PhoneFilter/index.js +1 -1
  125. package/build/components/PhoneInput/index.js +1 -1
  126. package/build/components/ProgressRing/index.js +1 -1
  127. package/build/components/RadioGroup/index.js +1 -1
  128. package/build/components/RangeCalender/index.js +1 -1
  129. package/build/components/RatingCount/index.js +1 -1
  130. package/build/components/ReferenceTypeFilter/index.js +1 -1
  131. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  132. package/build/components/SearchButton/index.js +1 -1
  133. package/build/components/SearchInput/index.js +1 -1
  134. package/build/components/SheetViewChip/index.js +1 -1
  135. package/build/components/Sidebar/index.js +1 -1
  136. package/build/components/StatusBar/index.js +1 -1
  137. package/build/components/StatusButton/index.js +1 -1
  138. package/build/components/StatusFilter/index.js +1 -1
  139. package/build/components/StatusIcons/index.js +1 -1
  140. package/build/components/StatusLabel/index.js +1 -1
  141. package/build/components/TableCells/index.js +1 -1
  142. package/build/components/TableReports/index.js +1 -1
  143. package/build/components/TextInput/index.js +1 -1
  144. package/build/components/Timepicker/index.js +1 -1
  145. package/build/components/ToggleView/index.js +1 -1
  146. package/build/components/Toolbar/index.js +1 -1
  147. package/build/components/ToolbarIcon/index.js +1 -1
  148. package/build/components/TreeDropdown/index.js +1 -1
  149. package/build/components/VerificationIcon/index.js +1 -1
  150. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  151. package/build/components/VirtualTables/index.js +1 -1
  152. package/build/components/Widget/index.js +1 -1
  153. package/build/components/index.js +1 -1
  154. package/build/components/primitives/index.js +1 -1
  155. package/build/constants/assets.d.ts +1 -0
  156. package/build/constants/index.js +1 -1
  157. package/build/hooks/index.js +1 -1
  158. package/build/index.js +1 -1
  159. package/build/utils/index.js +1 -1
  160. package/package.json +1 -1
  161. package/build/_chunks/chunk-3T7G4PAY.js +0 -1
  162. package/build/_chunks/chunk-7DMSRKG7.js +0 -1
  163. package/build/_chunks/chunk-ECBP7JZ6.js +0 -1
  164. package/build/_chunks/chunk-GCJPCGH3.js +0 -2
  165. package/build/_chunks/chunk-L7L22FDR.js +0 -1
  166. package/build/_chunks/chunk-LKQ24TL4.js +0 -2
  167. package/build/_chunks/chunk-MFZ3F3JQ.js +0 -1
@@ -1 +0,0 @@
1
- import {Gn,oo as oo$1,mo,no as no$1,lo,Bn as Bn$1,jo as jo$1,In as In$1,uo,io as io$1,ho as ho$1,go as go$1,fo as fo$1,eo,do as _do,Qn as Qn$1,Vn,co as co$1,Zn as Zn$1,_n as _n$1,Yn as Yn$1,ao as ao$1,Xn,Wn as Wn$1,Tn as Tn$1,bo as bo$1,Un as Un$1,Rn as Rn$1,$n,Sn,Jn,Kn as Kn$1,fp,Ve as Ve$1,Go as Go$1,Fo as Fo$1,Ho as Ho$1}from'./chunk-GCJPCGH3.js';import Xe from'lodash/orderBy';import Oe from'lodash/get';import l from'dayjs';import et from'dayjs/plugin/relativeTime';import tt from'dayjs/plugin/timezone';import rt from'dayjs/plugin/utc';import nt from'dayjs/plugin/calendar';import ot from'dayjs/plugin/isToday';import st from'dayjs/plugin/isYesterday';import dt from'axios';import ut from'lodash/forOwn';import Ue from'color';import Ke from'lodash/capitalize';import We from'lodash/startCase';import {getTimezone,getCountryForTimezone,getCountry}from'countries-and-timezones';import qe from'dompurify';function Jt({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?Xe(e,t,r):e}var qt=(e=[],t)=>e.length?e.sort((r,n)=>Oe(r,t).localeCompare(Oe(n,t))):[];function Xt(e){return (e||[]).filter(t=>!!t)}var Zt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var er=e=>typeof e=="number"&&!isNaN(e)&&isFinite(e)&&e>0;function tr(e){if(!e)return "";let t=e%10,r=e%100;return `${e}${r>9&&r<14?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}`}var Ze=Intl.NumberFormat("en-US");function rr(e){return Ze.format(e)}var Qe=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(e==null)return 0;let t=String(e).trim();if(t==="")return 0;let r=t.includes(",")&&!t.includes(".")?t.replace(/,/g,"."):t.replace(/,/g,""),n=Number(r);return Number.isFinite(n)?n:0},nr=e=>Qe(e),or=(e,t)=>t?e.toFixed(t):e.toString();function f(e,t=2){return e.toString().padStart(t,"0")}var sr=e=>`0.${"0".repeat(e)}`;l.extend(ot);l.extend(st);l.extend(rt);l.extend(tt);l.extend(et);l.extend(nt);var S=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(!e)return 0;let t=e.trim().match(/^(?:UTC|GMT)?\s*([+-])?(\d{1,2})(?::?(\d{2}))?$/i);if(!t)return 0;let[,r,n,o]=t,s=Number(n)+Number(o??0)/60;return r==="-"?-s:s},xr=(e=0)=>{let t=e<0?"-":"+",r=Math.abs(e),n=Math.floor(r),o=Math.round((r-n)*60);return `UTC${t}${f(n)}:${f(o)}`},yr=(e=6)=>{let t=Number.isFinite(e)&&e>=0?e:0,r=l(),n=r.subtract(t,"day").startOf("day"),o=r.endOf("day");return [n.toDate(),o.toDate()]},Tr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()-r*6e4,s=new Date(n).toISOString();return l(s).valueOf()},hr=(e,t=jo$1.KW)=>{if(!e)return;let r=new Date(e),n=r.getTimezoneOffset(),s=S(t)*60-n,i=r.getTime()+s*6e4,u=new Date(i).toISOString();return l(u).valueOf()},Cr=(e,t=0)=>e?l(e).utc(true).subtract(t,"hour").valueOf():void 0,br=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()+r*6e4;return new Date(n)},Sr=(e,{currentTimezone:t,targetTimezone:r})=>{if(!e)return "";let n=new Date(e);if(Number.isNaN(n.getTime()))return "";if(t==null||r==null||t==null||r==null)return n;let o=S(t),i=S(r)-o,a=n.getTime()+i*6e4*60;return new Date(a)},Dr=e=>Array.from({length:e??31},(t,r)=>r+1).map(t=>({id:t,label:t})),Er=e=>Array.from({length:e??12},(t,r)=>r+1).map(t=>({id:t,label:t})),Ne=({length:e=10,startYear:t,direction:r="future"}={})=>{let n=new Date().getFullYear(),o=t!==void 0?n-t+1:e,s=t!==void 0||r==="past"?-1:1;return Array.from({length:o},(i,a)=>{let u=n+s*a;return {id:u,label:u}})},T=(e,t,r,n,o=true)=>{if(e==null||e==="")return "";let s=new Date(e);if(Number.isNaN(s.getTime()))return "";let i=n??r,a=C=>i==null?C:C.utcOffset(Math.round(S(i)*60)),u=a(l(s)),d=a(l()),m=o?", h:mma":"",p=u.isSame(d,"year")?"MMM DD":"MMM DD, YYYY",E={sameDay:`[Today]${m}`,nextDay:`[Tomorrow]${m}`,lastDay:`[Yesterday]${m}`,sameElse:`${p}${m}`,lastWeek:`${p}${m}`,nextWeek:`${p}${m}`};return u.calendar(d,t??E)},wr=(e,t="YYYY-MM-DD")=>{let r=new Date(e);return Number.isNaN(r.getTime())?"":l(e).format(t)},Ar=e=>l(e).endOf("day").toDate().valueOf();function _r(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${f(t)}:${f(r)}:${f(n)}`:`${f(r)}:${f(n)}`}function Ie(e,t,r="seconds"){let n={seconds:1,minutes:60,hours:3600,days:86400};return (Date.now()-e)/1e3<t*n[r]}var Or=e=>{let t=Date.now(),r=Math.floor((t-e)/1e3),n=Math.floor(r/60);return Ie(e,60,"seconds")?"just now":Ie(e,60,"minutes")?`${n} min${n===1?"":"s"} ago`:"1 hour ago"},Ir=e=>l(e).isToday(),Nr=e=>l(e).isYesterday(),it=1970,Lr=()=>Ne({startYear:it}),Fr=(e=10)=>Ne({length:e,direction:"past"});function Pr(e,t){if(!e)return null;let r=l(e);if(!r.isValid())return null;try{return new Date(r.tz(t).format("YYYY-MM-DDTHH:mm:ss.SSS"))}catch{return null}}var b=["sun","mon","tue","wed","thur","fri","sat"];function Rr(e="sun"){let t=b.indexOf(e.toLowerCase());return t===-1?(console.error(`${e} is not a valid day`),b):[...b.slice(t),...b.slice(0,t)]}var vr=e=>{if(e==null)return;let t=l(e);return t.isValid()?t.valueOf():void 0};var Le=e=>{let r=e.reduce((n,o)=>{let s=o.entities?.find(i=>i.default);return s&&n.push({entityId:s.id,country:o}),n},[])[0]?.country||e[0];return e.find(n=>n.id===r?.id)};var Fe=(e,t,r)=>{let n=e.find(a=>a.id===t)??{},o=r.find(a=>a.id===t)??{},s=o.countries.length===1?n.countries.find(a=>a.id===o.countries?.[0].id):Le(n?.countries),i=s?.entities?.find(a=>a.default);return {...n,defaultCountry:s,defaultEntity:i}},at=({merchantsIds:e,options:t})=>!e||!e?.length?{}:{business:{merchant:e,...t}},ct=e=>["payment_facilitator_14po8231419aIsi1fN7F385"].includes(e),Ur=({segmentCode:e,segmentId:t,segmentTypeCode:r,merchantsIds:n=[],options:o={}})=>{let s="PSP"===r?e:r;return ct(t)?at({merchantsIds:n,options:o}):s==="PAYMENT_TECHNOLOGY"?{payment_provider:{technology:{orchestrator:[t],...o}}}:s==="PAYMENT_GATEWAY"||s==="PAYMENT_GATEWAY_PROVIDER"?{payment_provider:{technology:{gateway:[t],...o}}}:s==="PAYMENT_FACILITATOR"?{payment_provider:{institution:{facilitator:[t],...o}}}:s==="PAYMENT_ACQUIRER"?{payment_provider:{institution:{acquirer:[t],...o}}}:s==="PLATFORM"?{platform:[t],...o}:s==="DEVELOPMENT"?{development_agency:[t],...o}:{}};var Pe="Test_Fixed_Secret_Key",_="tap-dashboard-navigation-data",Re="tap-dashboard-user-data",O="tap-dashboard-user-jwt",I="tap-dashboard-report",N="tap-dashboard-calender-timezone",L="tap-dashboard-calender-timezone-history",F="tap-dashboard-global-table-mode",ve="sheetview_columns",P="dock-preview-windows",A="views";function Yr(){localStorage.setItem(Pe,In$1);}function Me(){return localStorage.getItem(Pe)}function Hr(e){localStorage.setItem(_,JSON.stringify(e));}function Gr(){try{let e=localStorage.getItem(_);if(!e)return null;let t=JSON.parse(e);return ut(t,r=>{r?.forEach(n=>{n.payload&&n.payload.dateRange&&(n.payload.dateRange=n.payload.dateRange.map(o=>new Date(o)));});})}catch{return null}}function Kr(){localStorage.removeItem(_);}var jr=e=>{localStorage.setItem(O,e);},R=()=>localStorage.getItem(O),Jr=()=>{localStorage.removeItem(O);},qr=e=>{localStorage.setItem(Re,JSON.stringify(e));},v=()=>{let e=localStorage.getItem(Re);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Xr=()=>{let e=v();return e?Fe(e?.segments,e?.active_segment_id,e?.active_segments):null},Zr=()=>{let e=v();return e?e?.active_segments.find(t=>t.id===e.active_segment_id):null},lt=()=>{let e=R();if(!e)return true;try{let[,t]=e.split(".");if(!t)return !0;let r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"="),{exp:o}=JSON.parse(atob(n));return typeof o!="number"?!0:Date.now()>=o*1e3}catch{return true}},Qr=()=>!lt()&&!!v(),en=(e,t)=>{localStorage.setItem(`${I}-${e}`,t);},tn=e=>localStorage.getItem(`${I}-${e}`),rn=e=>{localStorage.removeItem(`${I}-${e}`);},nn=e=>{localStorage.setItem(N,JSON.stringify(e));},on=e=>{localStorage.setItem(L,JSON.stringify(e));},sn=()=>{try{let e=localStorage.getItem(N);return e?JSON.parse(e):null}catch{return null}},an=()=>{try{let e=localStorage.getItem(L);return e?JSON.parse(e):null}catch{return null}},cn=()=>{localStorage.removeItem(N);},un=()=>{localStorage.removeItem(L);},ln=e=>{localStorage.setItem(F,e);},dn=()=>localStorage.getItem(F)||"default",mn=()=>{localStorage.removeItem(F);},pn=e=>localStorage.setItem(ve,JSON.stringify(e)),gn=()=>JSON.parse(localStorage.getItem(ve)||"{}"),fn=e=>{try{localStorage.setItem(P,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},xn=()=>{try{let e=localStorage.getItem(P);return e?JSON.parse(e):[]}catch{return []}},yn=()=>{try{localStorage.removeItem(P);}catch(e){console.warn("Failed to remove preview storage:",e);}},Tn=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(A)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},hn=(e,t,r,n)=>{try{let o=JSON.parse(localStorage.getItem(A)??"{}");localStorage.setItem(A,JSON.stringify({...o,[e]:{...o[e],[t]:{...o[e]?.[t],[r]:{...o[e]?.[t]?.[r],selectedViewId:n}}}}));}catch{return null}},$e=()=>{localStorage.clear();};var mt={headers:{"Content-Type":"application/json",Accept:"application/json"}},M=dt.create({baseURL:Gn,headers:{...mt}}),pt=["users/switch-segment","users/update-segment"];M.interceptors.request.use(e=>new Promise(t=>{let r=false;if(pt.includes(e.url??"")){t(e);return}let n=s=>{let i=s.data;if(i==="network_request_waiting"){r=true;return}i==="resume_network_request"&&(r=false);};window.addEventListener("message",n);let o=setInterval(()=>{r||(t(e),clearInterval(o),window.removeEventListener("message",n));},0);}));M.interceptors.request.use(e=>{e.headers.Authorization=R();let t=Me();return t&&!e.headers["x-test-secret"]&&(e.headers["x-test-secret"]=t),e});M.interceptors.response.use(e=>e,e=>(e.response?.data?.force_logout&&($e(),window.location.href="/login"),Promise.reject(e)));function wn(e){let{sandboxMode:t,fixedSecretKey:r,applicationId:n,serviceId:o,functionId:s,userFunctionId:i,segmentId:a,...u}=e??{};return {...u,live_mode:t?"false":"true",...!!r&&{"x-test-secret":r},...!!n&&{application_id:n},...!!o&&{service_id:o},...!!s&&{function_id:s},...!!i&&{user_function_id:i}}}function _n(e){let r=(e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"")).toLowerCase();if(r.includes("edg"))return "edge";if(r.includes("opr")||r.includes("opera"))return "opera";if(r.includes("chrome")&&!r.includes("edg")&&!r.includes("opr"))return "chrome";if(r.includes("safari")&&!r.includes("chrome"))return "safari";if(r.includes("firefox"))return "firefox";if(r.includes("msie")||r.includes("trident"))return "ie";if(r.includes("tor"))return "tor";if(r.includes("uc"))return "uc";if(r.includes("yandex"))return "yandex"}var On=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),In=e=>{let t=e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"");if(!t)return;let r=t.toLowerCase();if(/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(r))return "TABLET";if(/mobile|iphone|ipod|android.*mobile|blackberry|iemobile|opera mini|windows phone/.test(r))return "MOBILE";if(/desktop|laptop|macintosh|windows|linux|unix|freebsd|openbsd|netbsd|chromeos|solaris|beos|os/.test(r))return "DESKTOP"};function Pn(){let e=["#D6D6D6","#BFF192","#E4EE92","#FDFCAB","#FFE78E","#FFCE6B","#FFBC8C","#FF947C","#C88FA3","#B988C9","#9A8BBB","#89B6FF","#ACD4E1","#ADBABE","#C0DAAA","#D5DA91","#EAE7A2","#DFCE9C","#C9A997","#858585","#000000"];return e[Math.trunc(Math.random()*e.length)]}function Rn(){let e=["linear-gradient(135deg, #31D5C8 0%, #1186C5 100%)","linear-gradient(135deg, #A2E9BD 0%, #44BB74 100%)","linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #6BF6EB 0%, #32D6C9 100%)","linear-gradient(135deg, #61AFC9 0%, #7FBFD4 100%)","linear-gradient(135deg, #9DB7A4 0%, #7FBFD4 100%)","linear-gradient(135deg, #D7B38C 0%, #FFE09F 100%)","linear-gradient(135deg, #ADD6A2 0%, #FFDDB2 100%)"];return e[Math.trunc(Math.random()*e.length)]}var ke={r:0,g:0,b:0,alpha:1},vn=e=>{try{let t=Ue(e).rgb(),{r,g:n,b:o,alpha:s=1}=t.object();return {value:{r,g:n,b:o,alpha:s},stringified:`rgba(${r},${n},${o},${s})`}}catch(t){console.error(t),console.warn(`Invalid hex color: "${e}". Falling back to black.`);let{r,g:n,b:o,alpha:s}=ke;return {value:ke,stringified:`rgba(${r},${n},${o},${s})`}}},Mn=e=>Ue(e).hexa();var Un={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},ze={BHD:3,KWD:3,JOD:3,OMR:3},$=new Map,zn=(e,t)=>{if(Number.isNaN(e))return "0";try{return $.has(t)||$.set(t,new Intl.NumberFormat("en-US",{currency:t,minimumFractionDigits:ze[t]?3:2})),$.get(t).format(e)}catch(r){return console.error(r),"0"}},gt=e=>e%1===0,ft=e=>e%.1===0,xt=e=>Math.abs(e*10%1)===.1,Bn=(e,t)=>{let r=ze[t],n=e.toString();return Number.isInteger(e)&&gt(e)?n=e.toFixed(r?3:2):xt(e)?n=`${n}${r?"00":"0"}`:ft(e)&&(n=`${n}${r?"00":"0"}`),n};function yt(e,t=2){let r=parseFloat(e.toString());if(isNaN(r)){let[a,u]=0 .toFixed(t).split("."),d=`${a}.${u}`;return {integerAmount:a,decimalAmount:u,fullAmount:d}}let n=r.toFixed(t),[o,s]=n.split("."),i=parseInt(o).toLocaleString();return {integerAmount:i,decimalAmount:s,fullAmount:`${i}.${s}`}}function Wn(e=0,t=""){return yt(e,uo[t]?.decimals??2)}function Yn(e){let t=e.request.currency,r=e.select.currency,n=e.merchant.currency,o=r!==n&&r===t&&t&&n&&r,s=r!==t&&t&&n&&r,i=o?"fx":void 0;i=s?"dcc":i;let a=o?e.merchant:void 0;return a=s?e.request:a,{type:i,shownAmount:a}}var Hn=e=>typeof e=="number"?e:Number(e.replace(/,/g,""));var Tt=new Intl.DisplayNames(["en"],{type:"region"});function Be(e){try{return Tt.of(e)}catch(t){console.error(t?.response?.data?.error?.message);}}function Kn(e){return e==="SA"}function jn(e){return e==="OM"}var h=e=>T(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM DD",lastWeek:"MMM DD",nextWeek:"MMM DD"}),Zn=(e,t)=>{if(!e)return "";let r=new Date,n=l(e).isSame(r,"year");return t?T(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow at] h:mm A",lastDay:"[Yesterday at] h:mm A",sameElse:"[on] MMM DD [at] h:mm A",lastWeek:"[on] MMM DD [at] h:mm A",nextWeek:"[on] MMM DD [at] h:mm A"}):n?T(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD",lastWeek:"[on] MMM DD",nextWeek:"[on] MMM DD"}):T(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD, YYYY",lastWeek:"[on] MMM DD, YYYY",nextWeek:"[on] MMM DD, YYYY"})},Qn=e=>{let t=e?.payout,r=e?.settlement;if(!e)return {tooltip:[],status:void 0};if(!["PAID_OUT","SETTLED"].includes(e?.status||""))return {tooltip:[...r?.scheduled?[{left:"settlement_scheduled",right:`${h(r?.scheduled)}`}]:[],...t?.scheduled?[{left:"payment_scheduled",right:`${h(t?.scheduled)}`}]:[]],status:"PENDING"};if(e?.status==="PAID_OUT"){let n=t?.activities.find(o=>o.status==="PAID_OUT");return {tooltip:[{left:"paidOut",right:`${h(n?.date)}`}],status:"PAID_OUT"}}if(e?.status==="SETTLED"){let n=r?.activities.find(o=>o.status==="SETTLED");return {tooltip:[{left:"settled",right:`${h(n?.date)}`},...t?.scheduled?[{left:"payment_scheduled",right:`${h(t?.scheduled)}`}]:[]],status:"SETTLED"}}};var ro=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},no=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return Sn[t][r];case "refund":return $n[t][r];case "authorization":return Rn$1[t][r];case "intents":return Un$1[t][r];case "topups":return bo$1[t][r];case "destinations":return Tn$1[t][r];case "leads":return Wn$1[t][r];case "orders":return Xn[t][r];case "tokens":return ao$1[t][r];case "payouts":return Yn$1[t][r];case "protectCharges":return _n$1[t][r];case "protectAuthorizations":return Zn$1[t][r];case "wallet":return co$1[t][r];case "invoices":return Vn[t][r];case "authentications":return Qn$1[t][r];case "walletDetails":return _do[t][r];case "walletStatement":return eo[t][r];case "merchants":return fo$1[t][r];case "terminals":return go$1[t][r];case "orchestrationTerminals":return ho$1[t][r];case "orchestrationRouting":return io$1[t][r];default:return "100px"}},oo=(e,t)=>{let r,n=window.innerHeight-24-264;return e?r=window.innerHeight/1.7:t?r=n-100:r=n-20,Math.floor(r/(e||t?52:70))},Ct=()=>{let e=window.innerHeight*.82/1.24-57;return Math.floor(e/70)},so=e=>{let t=Ct();return e<t+1},io=e=>e==="default",ao=e=>e==="sheet",co=()=>({charge:{prefixes:["chg_","payout_","settlement_","terminal_"],accessor:e=>[e.id,e.capture?.charge?.map(t=>t.id),e.charge?.id,e.transactions?.map(t=>t.id),e.charge_id],label:"Charge",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.intents.code,icon:"capture"},refunds:{prefixes:["re_","payout_"],accessor:e=>[e?.refunds?.refund?.map(t=>t.id),e?.id,...e?.refunds?.length?[e?.refunds?.map(t=>t.id)]:[]],label:"Refunds",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:Bn$1.authentication.code,serviceCode:Bn$1.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:Bn$1.order.code,serviceCode:Bn$1.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Bn$1.protect.code,serviceCode:Bn$1.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Bn$1.protect.code,serviceCode:Bn$1.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:Bn$1.tokens.code,serviceCode:Bn$1.tokens.services.tokens.code,icon:"capture"},destination:{prefixes:["trf_","payout_"],accessor:e=>[e?.destinations?.destination?.map(t=>t?.transfer?.id),e?.id],label:"Destination",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:Bn$1.payouts.code,serviceCode:Bn$1.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:Bn$1.acceptance.code,serviceCode:Bn$1.acceptance.services.topups.code,icon:"capture"}});var po=e=>typeof e=="string"&&e.trim().length>0,U=(e,t)=>{if(!t)return e;let r=e.indexOf(t);return e.substring(r+t.length)},k=new Map,z=(e,t)=>(k.has(t)||k.set(t,new RegExp(t,"gi")),e.match(k.get(t))?.length??0),go=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),fo=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),xo=e=>{if(navigator.clipboard)navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove();}},yo=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),To=e=>{let[t]=e.split("%");return parseFloat(t)||0},ho=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,Co=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return We(n)},bo=e=>Ke(We(e));var Do=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,Eo=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function Ao({unCapturedCode:e,unCapturedMessage:t,acquirerCode:r,acquirerMessage:n,gatewayCode:o,gatewayMessage:s}){let i=e&&t&&`${e} - ${t}`,a=r&&n&&`${r} - ${n}`,u=o&&s&&`${o} - ${s}`;return {unCapturedTooltip:i,acquirerTooltip:a,gatewayTooltip:u}}function Oo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var B=e=>e==null||e==="";function Io(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>Array.isArray(t)?t.length>0&&t?.some(r=>!B(r)):typeof t=="object"?Object.values(t||{}).some(r=>!B(r)):!B(t)))}var Fo=()=>Jn===Kn$1.TAPSTERS_FRONTEND;var Ro=e=>e.replace(/[^0-9]/g,"");function ko({rowData:e,prefixes:t,keys:r=[],accessor:n}){let o=!!n;return (o?n?.(e):r)?.filter(Boolean)?.reduce((a,u)=>{let d=o?u:Oe(e,u);return typeof d=="string"&&t?.some(m=>d.includes(m)&&z(U(d,m),"_")===0)&&a.push(d),Array.isArray(d)&&d.length>0&&d.every(m=>typeof m=="string"&&t?.some(p=>m.includes(p)&&z(U(m,p),"_")===0))&&a.push(...d),a},[])}var zo=450,Bo=600;var Wo=3;var Vo=20,Dt=(r=>(r.Index="index",r.Date="date",r))(Dt||{}),Yo={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Ho={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},Go={date:"Date",index:"Index"},Ko={sheet:["sheet"],default:["advanced","default"],text:["text"]},jo={sheet:"Advanced",default:"Sheet",text:"text"},Et={id:"default",label:"Default"},Jo={id:"custom",label:"Custom view"},qo=[Et];function es(e,t,r){return e.filter(n=>{let o=n?.id?.toString(),s=t.find(p=>{let E=p.code?.toLowerCase()===o?.toLowerCase(),C=p.name?.toLowerCase()===o?.toLowerCase();return (E||C)&&p.selected}),i=!!n.tableViewId&&(s?.menuItems?.length||0)>0,a=s?.menuItems?.find(p=>p.name?.toLowerCase()===n.tableViewId?.toString()?.toLowerCase())?.selected,u=!!s&&(a||!i),m=["actions","action_icon",...r?["index","date"]:[]].includes(o?.toLowerCase()??"");return !!(u||m)})}function ts(e,t){if(t.toLowerCase()==="index")return 0;let r=e.findIndex(o=>o.code?.toLowerCase()===t?.toLowerCase()),n=e[r];return r>=0?n?.sort_order??r:999}function rs(e,t,r){return e?.find(n=>{let o=n.code?.toLowerCase()===t.toLowerCase(),s=n.name?.toLowerCase()===t.toLowerCase();return o||s})?.menuItems?.find(n=>n.name?.toLowerCase()===r.toLowerCase()&&n.selected)?.selected||false}function ns(e,t){return e?.filter(r=>!!r.name?.[0]?.text)?.map(r=>({code:r.code,label:y(r.name,t),name:y(r.name,t)||"",selected:r?.selected!==false,sort_order:r.sort_order,menuItems:r.fields?.map(n=>n.parameters?.filter(o=>!!o.code)?.map(o=>({code:o.code,label:We(o.code),name:`${o.code}`,selected:o?.selected!==false})))?.flat()?.filter(n=>!!n.name)}))||[]}function os(e){return e.map(t=>({...t.code?{code:t.code}:{},name:[{text:t.name,lang:"en"}],selected:t.selected,sort_order:1,sorting:"descending",fields:t.menuItems?.map(r=>({code:r.name,type:"single",parameters:[{parameter:r.name,code:r.name,selected:r.selected}]}))||[]}))}var ss=({columnsView:e,columnsIds:t,selected:r})=>{let n=new Set(t.map(s=>s?.toLowerCase())),o=s=>({...s,selected:r,fields:s.fields?.map(i=>({...i,parameters:i.parameters?.map(a=>({...a,selected:r}))??[]}))});return e.map(s=>n.has(s.code?.toLowerCase()??"")||n.has(s.name?.[0]?.text?.toLowerCase()??"")?o(s):s)};function as(e){return {fullPhone:e?.number?`${e?.country_code||""} ${e?.number}`:"",code:e?.country_code||"",number:e?.number||""}}var Ve=(e,t)=>{let r=e.type==="url"?e.url:window.URL.createObjectURL(new Blob([e.content])),n=document.createElement("a");n.href=r,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove(),e.type==="content"&&window.URL.revokeObjectURL(r);},us=(e,t)=>Ve({type:"content",content:e},t),ls=(e,t)=>Ve({type:"url",url:e},t);var At=e=>!!(e?.isAxiosError&&!e?.response),ms=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,ps=e=>!!e,_t=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,gs=e=>!!(e?.response?.status===404||e?.response?.status===400&&e?.response?.data?.error?.message?.toLowerCase().includes("not found")),D=({code:e,message:t})=>e?`${t} - ${e}`:t,fs=({error:e,fallbackMessage:t})=>{if(At(e)){let n=t??"networkError";return {code:null,message:n,formatted:D({code:null,message:n})}}if(_t(e)){let n=t??"yourRequestOutPleaseTryAgain";return {code:null,message:n,formatted:D({code:null,message:n})}}if(e?.response&&typeof e.response.data=="object"&&"error"in e.response.data){let{code:n,message:o}=e.response.data.error;return {code:n,message:o,formatted:D({code:n,message:o})}}let r=t??"somethingWentWrong";return {code:null,message:r,formatted:D({code:null,message:r})}};var ys=(e,t)=>e.find(r=>r.code===t),Ts=(e,t)=>e.find(r=>r.code===t);var bs=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:We(e)}));function Ds(e,t=2){let n=e??0;if(!n)return "0 kb";let o=n/1024;return o>1024?`${(o/1024).toFixed(t)} mb`:`${o.toFixed(t)} kb`}function It(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}function Nt(e,t){return e.name===t.name&&e.size===t.size}function Es(e,t){return t?.length?t.some(r=>It(r)?Nt(r.file,e):r.name===e.name):false}var _s=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return fp[t]??Ve$1},Os=(e,t,r)=>`${e}-${t}-${r}`;var Ns=e=>e?/[\u0600-\u06FF]/g.test(e):false;function Ls(e,t="en"){return (e||[]).find(r=>(r?.lang||r?.locale)===t)||e?.[0]}var y=(e,t="en")=>(e||[]).find(r=>r?.lang===t)?.text,Fs=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var Rs=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},Lt={AMERICAN_EXPRESS:"AMEX"},Ye=e=>Lt[e.toUpperCase()]??e.toUpperCase(),vs=(e,t)=>!!e&&!!t&&Ye(e)===Ye(t);var $s=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var zs=(e,t)=>{if(t==null)return "";let r=Go$1[e];return e===Fo$1.COUNT?t===1?r:`${r}s`:r};var g={primary:"#1F88D0",background:"white",border:"#F2F2F2",transparent:"transparent"},x={thin:"0.5px",thick:"1px",none:"0px"},He={minHeight:"28px",fullHeight:"100%"},Ws=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?Ft():t&&!r?Pt():r?Rt(o):{}:{},Ft=()=>({backgroundColor:g.background,color:g.primary}),Pt=()=>({border:`${x.thin} solid ${g.primary}`,backgroundColor:g.background,color:g.primary,borderRadius:"2px"}),Rt=e=>{let t=vt(),r=Mt(e);return {borderWidth:t,borderStyle:"solid",borderColor:g.primary,borderBottom:r,height:He.fullHeight,minHeight:He.minHeight,display:"flex",alignItems:"center"}},vt=()=>{let{none:e,thin:t}=x;return `${e} ${t} ${t} ${t}`},Mt=e=>e?`${x.thick} solid ${g.primary}`:`${x.thin} solid ${g.border}`,Vs=({effectiveFirst:e,isPinnedStart:t,isPinnedEnd:r})=>({borderTop:`${x.thin} solid ${g.primary}`,borderBottom:`${x.thin} solid ${g.primary}`,borderRight:`${x.thin} solid ${r?g.primary:"none"}`,borderLeft:`${x.thin} solid ${t&&e?g.primary:"transparent"}`}),Ys={left:"flex-start",center:"center",right:"flex-end"};function Hs(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function Gs(...e){return e.filter(Boolean).join(" ")||void 0}var W=V(lo,no$1,mo);function V(e,t,r){let n=getTimezone(r);return n?{countryCode:e,label:`(GMT${n.utcOffsetStr}) ${Be(e)??t}`,timezone:r,offset:n.utcOffset/oo$1}:W}var Ut=e=>{let t=getCountry(e),r=t?.timezones[0];if(!(!t||!r))return V(e,t.name,r)},Xs=e=>Ut(e)??W,Zs=e=>{let t=getCountryForTimezone(e),r=getTimezone(e);return !t||!r?W:V(t.id,t.name,e)};function oi(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:Ke(We(y(t?.name))),type:t?.code,icon:Ho$1[t.code]??Ho$1.CARD,options:t.payment_methods?.map(r=>({name:y(r.name),type:r.code}))}))}}function si(e=[]){return {name:"Payment Schemes",type:"payment_scheme",options:e.filter(t=>t.code).map(t=>({name:Ke(We(y(t?.name))),type:t?.code}))}}var Je=["120px","180px","100px","150px","200px","140px","160px","110px","190px","130px"],zt={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Bt={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Wt={id:"action_icon",header:"",width:"36px",order:Je.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Vt=(e=Je)=>{let t=e.map((r,n)=>({id:`skeleton-col-${n}`,header:"",width:r,order:n+2,hidden:false,sortable:false,pinnable:false}));return [zt,Bt,...t,Wt]},ai=(e,t,r)=>r&&t?Vt():[...e];var ui=(e,t)=>e.map(r=>{let n=Object.entries(t);if(!r.default||!r.layout?.length||!n.length)return r;let o=new Map(n.map(([i,a])=>[i.toLowerCase(),a])),s=r.layout.map(i=>({...i,columns:i.columns?.map(a=>{let u=a.code?.toLowerCase();if(!u||!o.has(u))return a;let d=o.get(u)??false;return {...a,default:d,fields:a.fields?.map(m=>({...m,default:d}))}})}));return {...r,layout:s}});var mi=(e,t)=>t.some(r=>!!e[r]),pi=(e,t,r)=>t?e:e.map(n=>{if(r.hiddenFilterColumnIds.includes(n.id)){let{filter:s,...i}=n,a=n.id,u=typeof i.header=="function"?We(a):i.header;return {...i,header:u}}let{hiddenFilterOptionKeys:o}=r;if(o&&n.filter&&"options"in n.filter&&n.filter.options){let s=n.filter.options,i=s.filter(a=>!a.apiKey||!o.includes(a.apiKey));if(i.length!==s.length)return {...n,filter:{...n.filter,options:i}}}return n});typeof window<"u"&&qe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer");});var Ht={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},xi=e=>typeof window>"u"?"":String(qe.sanitize(e||"",Ht));var Ti=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),hi=e=>e.toISOString();function bi(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}function Gt(e){return e!=null&&e!==""}function Di(e,t){let r=e!=null,n=t&&"message"in t?t.message:e?.message,o=Gt(n);return {isProvided:r,isVisible:o,type:o?e?.type:void 0}}export{Qr as $,go as $a,Os as $b,_r as A,Rn as Aa,Et as Ab,hi as Ac,Ie as B,vn as Ba,Jo as Bb,bi as Bc,Or as C,Mn as Ca,qo as Cb,Gt as Cc,Ir as D,Un as Da,es as Db,Di as Dc,Nr as E,ze as Ea,ts as Eb,Lr as F,zn as Fa,rs as Fb,Fr as G,Bn as Ga,ns as Gb,Pr as H,yt as Ha,os as Hb,Rr as I,Wn as Ia,ss as Ib,vr as J,Yn as Ja,as as Jb,Fe as K,Hn as Ka,Ve as Kb,at as L,Be as La,us as Lb,ct as M,Kn as Ma,ls as Mb,Ur as N,jn as Na,At as Nb,Yr as O,h as Oa,ms as Ob,Me as P,Zn as Pa,ps as Pb,Hr as Q,Qn as Qa,_t as Qb,Gr as R,ro as Ra,gs as Rb,Kr as S,no as Sa,fs as Sb,jr as T,oo as Ta,ys as Tb,R as U,so as Ua,Ts as Ub,Jr as V,io as Va,bs as Vb,qr as W,ao as Wa,Ds as Wb,v as X,co as Xa,It as Xb,Xr as Y,po as Ya,Nt as Yb,Zr as Z,U as Za,Es as Zb,lt as _,z as _a,_s as _b,Jt as a,en as aa,fo as ab,Ns as ac,qt as b,tn as ba,xo as bb,Ls as bc,Xt as c,rn as ca,yo as cb,y as cc,Zt as d,nn as da,To as db,Fs as dc,er as e,on as ea,ho as eb,Rs as ec,tr as f,sn as fa,Co as fb,vs as fc,rr as g,an as ga,bo as gb,$s as gc,Qe as h,cn as ha,Do as hb,zs as hc,nr as i,un as ia,Eo as ib,g as ic,or as j,ln as ja,Ao as jb,Ws as jc,f as k,dn as ka,Oo as kb,Vs as kc,sr as l,mn as la,B as lb,Ys as lc,S as m,pn as ma,Io as mb,Hs as mc,xr as n,gn as na,Fo as nb,Gs as nc,yr as o,fn as oa,Ro as ob,Xs as oc,Tr as p,xn as pa,ko as pb,Zs as pc,hr as q,yn as qa,zo as qb,oi as qc,Cr as r,Tn as ra,Bo as rb,si as rc,br as s,hn as sa,Wo as sb,Je as sc,Sr as t,$e as ta,Vo as tb,Vt as tc,Dr as u,M as ua,Dt as ub,ai as uc,Er as v,wn as va,Yo as vb,ui as vc,Ne as w,_n as wa,Ho as wb,mi as wc,T as x,On as xa,Go as xb,pi as xc,wr as y,In as ya,Ko as yb,xi as yc,Ar as z,Pn as za,jo as zb,Ti as zc};