@tap-payments/os-micro-frontend-shared 0.3.219-test.11 → 0.3.219-test.22
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-32FV6NCN.js → chunk-22TPUHWC.js} +1 -1
- package/build/_chunks/{chunk-VWFJNIS6.js → chunk-2KJAJEX5.js} +1 -1
- package/build/_chunks/{chunk-2GIBPPKW.js → chunk-2KL5IQPU.js} +1 -1
- package/build/_chunks/{chunk-IQRA43OV.js → chunk-3TQTETIW.js} +1 -1
- package/build/_chunks/{chunk-EBY66HDS.js → chunk-3ZHAO2EY.js} +1 -1
- package/build/_chunks/chunk-5H7DAS3H.js +2 -0
- package/build/_chunks/{chunk-5VZHYPFP.js → chunk-5S4RM2Z2.js} +1 -1
- package/build/_chunks/{chunk-JK3V4FT5.js → chunk-5U72UJMI.js} +1 -1
- package/build/_chunks/{chunk-DF7YGDHF.js → chunk-6XWLDOFJ.js} +1 -1
- package/build/_chunks/{chunk-NQ7BU6UU.js → chunk-77BLVPSN.js} +1 -1
- package/build/_chunks/chunk-77CJKFPL.js +1 -0
- package/build/_chunks/{chunk-STSV7NAV.js → chunk-7GJDTTGW.js} +1 -1
- package/build/_chunks/{chunk-FCQZSF6C.js → chunk-7HINDK4C.js} +1 -1
- package/build/_chunks/{chunk-AB3JAJHF.js → chunk-7LGB6YM3.js} +1 -1
- package/build/_chunks/{chunk-7DF4OCNS.js → chunk-AMIDNGQQ.js} +1 -1
- package/build/_chunks/{chunk-B5EVH3FW.js → chunk-AP4W2P6I.js} +1 -1
- package/build/_chunks/{chunk-CYONSJOA.js → chunk-AR3KEUAZ.js} +1 -1
- package/build/_chunks/{chunk-7Y422WAK.js → chunk-CCX7J3SH.js} +1 -1
- package/build/_chunks/{chunk-BBR3H3KM.js → chunk-CH5QS4B5.js} +1 -1
- package/build/_chunks/{chunk-UBHPOQSK.js → chunk-CO5KY4J3.js} +1 -1
- package/build/_chunks/{chunk-BIY6O5KE.js → chunk-CRZ4RM7J.js} +1 -1
- package/build/_chunks/{chunk-LSKSOVDA.js → chunk-DN4OVHCL.js} +1 -1
- package/build/_chunks/{chunk-2ZTDZMQV.js → chunk-DOE5YK7Z.js} +1 -1
- package/build/_chunks/{chunk-DILJTXAK.js → chunk-DWLCLBEU.js} +1 -1
- package/build/_chunks/chunk-EGJV4FA6.js +1 -0
- package/build/_chunks/{chunk-4KBICMEZ.js → chunk-EPBDDA5A.js} +1 -1
- package/build/_chunks/{chunk-74FYV7XE.js → chunk-FBCVPPBP.js} +1 -1
- package/build/_chunks/{chunk-2ZC24DCN.js → chunk-GJQ6SFIN.js} +1 -1
- package/build/_chunks/{chunk-EHHY7NAU.js → chunk-GMLZWKDZ.js} +1 -1
- package/build/_chunks/{chunk-DNVGTZES.js → chunk-GSRK5GJH.js} +1 -1
- package/build/_chunks/{chunk-GYFZ73GR.js → chunk-GWZET3W4.js} +1 -1
- package/build/_chunks/{chunk-CPXC2HIM.js → chunk-H5GMJ5PD.js} +1 -1
- package/build/_chunks/{chunk-SFJXGJ6O.js → chunk-HIU3QO5T.js} +1 -1
- package/build/_chunks/{chunk-VJPODV3I.js → chunk-HO5LJAUC.js} +1 -1
- package/build/_chunks/{chunk-K223QU64.js → chunk-ISBGISGN.js} +1 -1
- package/build/_chunks/{chunk-DTQFVATX.js → chunk-IUTE4C2F.js} +1 -1
- package/build/_chunks/{chunk-DSKS3MZK.js → chunk-JHWBRTPH.js} +1 -1
- package/build/_chunks/{chunk-XX5Q5MBU.js → chunk-JLBRPAFF.js} +1 -1
- package/build/_chunks/{chunk-IRYRPNQZ.js → chunk-K6YFQLOS.js} +1 -1
- package/build/_chunks/{chunk-NHNYMEO4.js → chunk-KCANQYNP.js} +1 -1
- package/build/_chunks/{chunk-BN5OZACX.js → chunk-KQMMNYC6.js} +1 -1
- package/build/_chunks/{chunk-TGWIC62V.js → chunk-KXEOI4UZ.js} +1 -1
- package/build/_chunks/{chunk-XIUJHYEE.js → chunk-KYRAVGUZ.js} +1 -1
- package/build/_chunks/{chunk-CSKIZJMP.js → chunk-LXEZL3C4.js} +1 -1
- package/build/_chunks/{chunk-45YGTVZP.js → chunk-MBEFFI74.js} +1 -1
- package/build/_chunks/{chunk-SIPE5HWZ.js → chunk-N4BENCI5.js} +1 -1
- package/build/_chunks/{chunk-7JTOHX7G.js → chunk-NFYCBAPK.js} +1 -1
- package/build/_chunks/{chunk-KNCLMG4I.js → chunk-NS2XRWO5.js} +1 -1
- package/build/_chunks/{chunk-IARFCKXQ.js → chunk-NXEQA2NY.js} +1 -1
- package/build/_chunks/{chunk-OFUQV2S7.js → chunk-P3Y5CNRT.js} +1 -1
- package/build/_chunks/{chunk-ZL23AW36.js → chunk-PL4EQPZW.js} +1 -1
- package/build/_chunks/{chunk-RDK2KF63.js → chunk-PZKBWKCJ.js} +1 -1
- package/build/_chunks/{chunk-32QJM33C.js → chunk-Q56KGKBE.js} +1 -1
- package/build/_chunks/{chunk-NE7LDEJD.js → chunk-Q6RVR42B.js} +1 -1
- package/build/_chunks/{chunk-DIOBCQQT.js → chunk-QT3YVHRK.js} +1 -1
- package/build/_chunks/{chunk-FVQ3OAN4.js → chunk-QU4KH4UZ.js} +1 -1
- package/build/_chunks/{chunk-RNECVM7G.js → chunk-RIBPDIJ5.js} +1 -1
- package/build/_chunks/chunk-RRN7KV7S.js +1 -0
- package/build/_chunks/{chunk-GHCK3XPZ.js → chunk-SCVFZO5Q.js} +1 -1
- package/build/_chunks/{chunk-OHP3DSFR.js → chunk-TCTDIEZ5.js} +1 -1
- package/build/_chunks/{chunk-MOFWTHBX.js → chunk-TL3CYJAC.js} +1 -1
- package/build/_chunks/{chunk-7LVTTKBG.js → chunk-U46PDMQK.js} +1 -1
- package/build/_chunks/{chunk-3F5ATMQB.js → chunk-U7WCWUOF.js} +1 -1
- package/build/_chunks/{chunk-WUVLXFRD.js → chunk-UUOYYUZB.js} +1 -1
- package/build/_chunks/{chunk-KU2GYOVJ.js → chunk-VQTO2YAB.js} +1 -1
- package/build/_chunks/{chunk-YIZ2SJ2R.js → chunk-WBF34RHS.js} +1 -1
- package/build/_chunks/{chunk-HCO33BCV.js → chunk-WM4P33A3.js} +1 -1
- package/build/_chunks/{chunk-NUN7SFUM.js → chunk-XJXEZG6P.js} +1 -1
- package/build/_chunks/{chunk-SRYFBQ3L.js → chunk-YAYIWB5E.js} +1 -1
- package/build/_chunks/{chunk-RXZVFV7R.js → chunk-YRSJX6IG.js} +1 -1
- package/build/_chunks/{chunk-YRQ3E36X.js → chunk-ZEA6DWZL.js} +1 -1
- package/build/_chunks/{chunk-S7DGEHY2.js → chunk-ZWCTSXKU.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +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/BrandLogo/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +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/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/DateFilter.d.ts +13 -5
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/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/ExpandableSideBar/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/FlippingCard/style.d.ts +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +2 -2
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +4 -4
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/JSONViewer/style.d.ts +2 -2
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +3 -3
- 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/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/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/RFH/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/RangeCalender.d.ts +1 -1
- package/build/components/RangeCalender/components/Timezone/Timezone.d.ts +6 -6
- package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.d.ts +5 -5
- package/build/components/RangeCalender/components/Timezone/components/UserTimezone.d.ts +5 -5
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RangeCalender/type.d.ts +14 -7
- package/build/components/RangeCalender/utils.d.ts +8 -5
- 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/RightLeftExpandingCenterChip/style.d.ts +13 -13
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/styles.d.ts +2 -2
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SheetViewChip/index.js +1 -1
- 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/AuthIcons/style.d.ts +2 -2
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +6 -6
- package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DateCell/DateViewer.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/utils.d.ts +4 -3
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/InvoiceStatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/type.d.ts +3 -0
- package/build/components/TableCells/CustomCells/PayoutDateCell/PayoutDateCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +5 -5
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +6 -6
- package/build/components/TableCells/CustomCells/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/type.d.ts +6 -2
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TableReports/style.d.ts +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timeline/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/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/components/style.d.ts +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/datetime/index.d.ts +3 -2
- package/build/datetime/index.js +1 -1
- package/build/datetime/instant.d.ts +10 -16
- package/build/datetime/zone.d.ts +0 -3
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/build/utils/payout.d.ts +4 -3
- package/package.json +2 -2
- package/build/_chunks/chunk-5NJT3KT7.js +0 -1
- package/build/_chunks/chunk-DPXDHE2P.js +0 -2
- package/build/_chunks/chunk-ELLSLTUV.js +0 -1
- package/build/_chunks/chunk-MOCDGJR4.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import I from'dayjs';import O from'dayjs/plugin/calendar.js';import {getTimezone,getCountry}from'countries-and-timezones';var S=new Intl.DisplayNames(["en"],{type:"region"}),T=e=>{try{return S.of(e)}catch{return}},C={US:"America/New_York",CA:"America/Toronto",BR:"America/Sao_Paulo",MX:"America/Mexico_City",AR:"America/Argentina/Buenos_Aires",CL:"America/Santiago",AU:"Australia/Sydney",NZ:"Pacific/Auckland",RU:"Europe/Moscow",UA:"Europe/Kyiv",ES:"Europe/Madrid",PT:"Europe/Lisbon",ID:"Asia/Jakarta",KZ:"Asia/Almaty",UZ:"Asia/Tashkent",MN:"Asia/Ulaanbaatar"},Z={id:"UTC",countryCode:"UTC",countryName:"UTC"},b=e=>{if(!e)return false;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch{return false}},p=e=>{if(!e)return;if(e==="UTC")return Z;let n=getTimezone(e);if(n){let[t]=n.countries;return {id:e,countryCode:t??"",countryName:T(t)??t??e}}return b(e)?{id:e,countryCode:"",countryName:e}:void 0},$=e=>{let n=e?.trim().toUpperCase();if(!n)return;if(n==="UTC")return Z;let t=getCountry(n),o=C[n]??t?.timezones[0];if(o)return {id:o,countryCode:n,countryName:T(n)??t?.name??n}},E=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch{return}},R=e=>typeof e=="string"?e:"id"in e?e.id:e.timezone;I.extend(O);var N=(e,n=Date.now())=>`${p(e)?.countryName??e} (${F(e,n)})`,_=(e,n=Date.now())=>({countryCode:e.countryCode,label:N(e.id,n),timezone:e.id,offset:(s(e.id,n)??0)/60}),c=6e4,Y=/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?)?$/,g=/(?:Z|[+-]\d{2}:?\d{2})$/i,D=e=>Number.isNaN(e.getTime())?void 0:{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),ms:e.getMilliseconds()},x=e=>{let n=e.trim().match(Y);if(!n)return;let[,t,o,r,a="0",i="0",d="0",u="0"]=n;return {year:Number(t),month:Number(o),day:Number(r),hour:Number(a),minute:Number(i),second:Number(d),ms:Number(u.padEnd(3,"0"))}},A=e=>{let n=t=>Number(e.find(o=>o.type===t)?.value??0);return {year:n("year"),month:n("month"),day:n("day"),hour:n("hour"),minute:n("minute"),second:n("second"),ms:0}},h=new Map,w=e=>{let n=h.get(e);if(n)return n;try{let t=new Intl.DateTimeFormat("en-US",{timeZone:e,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});return h.set(e,t),t}catch{return}},y=e=>{if(e==null||e==="")return;if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e;if(typeof e=="number")return Number.isFinite(e)?new Date(e):void 0;let n=e.trim();if(!g.test(n))return;let t=new Date(n);return Number.isNaN(t.getTime())?void 0:t},s=(e,n=Date.now())=>{let t=y(n),o=w(e);if(!t||!o)return;let{year:r,month:a,day:i,hour:d,minute:u,second:l}=A(o.formatToParts(t)),M=Date.UTC(r,a-1,i,d,u,l);return Math.round((M-t.getTime())/c)},F=(e,n=Date.now())=>{let t=s(e,n);if(t===void 0)return "";let o=a=>String(a).padStart(2,"0"),r=Math.abs(t);return `UTC${t<0?"-":"+"}${o(Math.floor(r/60))}:${o(r%60)}`},f=(e,n)=>{if(e==null||e==="")return;if(!(e instanceof Date)){if(typeof e=="number")return Number.isFinite(e)?new Date(e):void 0;if(g.test(e.trim()))return y(e)}let t=typeof e=="string"?x(e):D(e);if(!t)return;let o=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.ms),r=s(n,o);if(r===void 0)return;let a=s(n,o-r*c)??r;return new Date(o-Math.min(r,a)*c)},L=(e,n)=>{if(!(typeof e!="number"||!Number.isFinite(e)))return f(new Date(e).toISOString().replace(/Z$/,""),n)},P=(e,n)=>{let t=y(e);if(!t)return;let o=s(n,t);if(o!==void 0)return t.getTime()+o*c},m=(e,n)=>{let t=y(e),o=w(n);if(!t||!o)return;let{year:r,month:a,day:i,hour:d,minute:u,second:l}=A(o.formatToParts(t));return new Date(r,a-1,i,d,u,l,t.getMilliseconds())},W=(e,n)=>{if(e==null||e==="")return;if(e instanceof Date)return D(e);if(typeof e=="string"&&!g.test(e.trim()))return x(e);let t=m(e,n);return t?D(t):void 0},B=(e,n)=>{let t=f(e?.[0],n);if(!t)return {};let o=W(e?.[1],n);if(!o)return {from:t.getTime()};let r=f(new Date(o.year,o.month-1,o.day+1),n);return r?{from:t.getTime(),to:r.getTime()-1}:{from:t.getTime()}},z=(e,n)=>{let t=", h:mma",o=e.isSame(n,"year")?"MMM DD":"MMM DD, YYYY";return {sameDay:`[Today]${t}`,nextDay:`[Tomorrow]${t}`,lastDay:`[Yesterday]${t}`,sameElse:`${o}${t}`,lastWeek:`${o}${t}`,nextWeek:`${o}${t}`}},j=(e,n,t)=>{let o=m(e,n),r=m(Date.now(),n);if(!o||!r)return "";let a=I(o),i=I(r);return a.calendar(i,t??z(a,i))},K=(e,n)=>{let t=m(Date.now(),n);if(!t)return;let o=Number.isFinite(e)&&e>=1?Math.floor(e):1,{year:r,month:a,day:i}={year:t.getFullYear(),month:t.getMonth(),day:t.getDate()};return [new Date(r,a,i-(o-1)),new Date(r,a,i,23,59,59,999)]};export{C as a,b,p as c,$ as d,E as e,R as f,N as g,_ as h,s as i,F as j,f as k,L as l,P as m,m as n,B as o,j as p,K as q};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {Fn as Fn$1,no as no$1,lo as lo$1,mo as mo$1,ko as ko$1,An as An$1,io as io$1,Hn as Hn$1,oo as oo$1,ho as ho$1,go as go$1,fo as fo$1,eo as eo$1,do as _do,co,Pn as Pn$1,Un as Un$1,bo as bo$1,Yn,Zn,Xn as Xn$1,$n as $n$1,Wn as Wn$1,Vn as Vn$1,Sn,ao,Tn,Qn,_n as _n$1,Rn as Rn$1,In,Jn,ap,Ve as Ve$1,Ao as Ao$1,zo as zo$1,Bo as Bo$1}from'./chunk-M5HS3EYQ.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 Kt({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?Xe(e,t,r):e}var jt=(e=[],t)=>e.length?e.sort((r,n)=>Oe(r,t).localeCompare(Oe(n,t))):[];function Jt(e){return (e||[]).filter(t=>!!t)}var qt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var Zt=e=>typeof e=="number"&&!isNaN(e)&&isFinite(e)&&e>0;function Qt(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 er(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},tr=e=>Qe(e),rr=(e,t)=>t?e.toFixed(t):e.toString();function f(e,t=2){return e.toString().padStart(t,"0")}var nr=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},gr=(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)}`},fr=(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()]},xr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()-r*6e4,s=new Date(n).toISOString();return l(s).valueOf()},yr=(e,t=io$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()},Tr=(e,t=0)=>e?l(e).utc(true).subtract(t,"hour").valueOf():void 0,hr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()+r*6e4;return new Date(n)},Cr=(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)},br=e=>Array.from({length:e??31},(t,r)=>r+1).map(t=>({id:t,label:t})),Sr=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)},Dr=(e,t="YYYY-MM-DD")=>{let r=new Date(e);return Number.isNaN(r.getTime())?"":l(e).format(t)},Er=e=>l(e).endOf("day").toDate().valueOf();function wr(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 Ar=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"},_r=e=>l(e).isToday(),Or=e=>l(e).isYesterday(),it=1970,Ir=()=>Ne({startYear:it}),Nr=(e=10)=>Ne({length:e,direction:"past"});function Lr(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 Fr(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 Pr=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),$r=({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 Wr(){localStorage.setItem(Pe,Hn$1);}function Me(){return localStorage.getItem(Pe)}function Vr(e){localStorage.setItem(_,JSON.stringify(e));}function Yr(){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 Hr(){localStorage.removeItem(_);}var Gr=e=>{localStorage.setItem(O,e);},R=()=>localStorage.getItem(O),Kr=()=>{localStorage.removeItem(O);},jr=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}},Jr=()=>{let e=v();return e?Fe(e?.segments,e?.active_segment_id,e?.active_segments):null},qr=()=>{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}},Xr=()=>!lt()&&!!v(),Zr=(e,t)=>{localStorage.setItem(`${I}-${e}`,t);},Qr=e=>localStorage.getItem(`${I}-${e}`),en=e=>{localStorage.removeItem(`${I}-${e}`);},tn=e=>{localStorage.setItem(N,JSON.stringify(e));},rn=e=>{localStorage.setItem(L,JSON.stringify(e));},nn=()=>{try{let e=localStorage.getItem(N);return e?JSON.parse(e):null}catch{return null}},on=()=>{try{let e=localStorage.getItem(L);return e?JSON.parse(e):null}catch{return null}},sn=()=>{localStorage.removeItem(N);},an=()=>{localStorage.removeItem(L);},cn=e=>{localStorage.setItem(F,e);},un=()=>localStorage.getItem(F)||"default",ln=()=>{localStorage.removeItem(F);},dn=e=>localStorage.setItem(ve,JSON.stringify(e)),mn=()=>JSON.parse(localStorage.getItem(ve)||"{}"),pn=e=>{try{localStorage.setItem(P,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},gn=()=>{try{let e=localStorage.getItem(P);return e?JSON.parse(e):[]}catch{return []}},fn=()=>{try{localStorage.removeItem(P);}catch(e){console.warn("Failed to remove preview storage:",e);}},xn=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(A)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},yn=(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:Fn$1,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 Dn(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 wn(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 An=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_n=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 Ln(){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 Fn(){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},Pn=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})`}}},Rn=e=>Ue(e).hexa();var $n={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},ze={BHD:3,KWD:3,JOD:3,OMR:3},$=new Map,kn=(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,Un=(e,t)=>{let r=ze[t],n=e.toString();return Number.isInteger(e)&>(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 zn(e=0,t=""){return yt(e,oo$1[t]?.decimals??2)}function Wn(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 Vn=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 Hn(e){return e==="SA"}function Gn(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"}),qn=(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"})},Xn=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 eo=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},to=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return Rn$1[t][r];case "refund":return _n$1[t][r];case "authorization":return Qn[t][r];case "intents":return Tn[t][r];case "topups":return ao[t][r];case "destinations":return Sn[t][r];case "leads":return Vn$1[t][r];case "orders":return Wn$1[t][r];case "tokens":return $n$1[t][r];case "payouts":return Xn$1[t][r];case "protectCharges":return Zn[t][r];case "protectAuthorizations":return Yn[t][r];case "wallet":return bo$1[t][r];case "invoices":return Un$1[t][r];case "authentications":return Pn$1[t][r];case "walletDetails":return co[t][r];case "walletStatement":return _do[t][r];case "merchants":return eo$1[t][r];case "terminals":return fo$1[t][r];case "orchestrationTerminals":return go$1[t][r];case "orchestrationRouting":return ho$1[t][r];default:return "100px"}},ro=(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)},no=e=>{let t=Ct();return e<t+1},oo=e=>e==="default",so=e=>e==="sheet",io=()=>({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:An$1.acceptance.code,serviceCode:An$1.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:An$1.acceptance.code,serviceCode:An$1.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:An$1.acceptance.code,serviceCode:An$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:An$1.acceptance.code,serviceCode:An$1.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:An$1.authentication.code,serviceCode:An$1.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:An$1.order.code,serviceCode:An$1.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:An$1.protect.code,serviceCode:An$1.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:An$1.protect.code,serviceCode:An$1.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:An$1.tokens.code,serviceCode:An$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:An$1.acceptance.code,serviceCode:An$1.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:An$1.payouts.code,serviceCode:An$1.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:An$1.acceptance.code,serviceCode:An$1.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:An$1.acceptance.code,serviceCode:An$1.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:An$1.acceptance.code,serviceCode:An$1.acceptance.services.topups.code,icon:"capture"}});var lo=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),mo=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),po=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),go=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();}},fo=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),xo=e=>{let[t]=e.split("%");return parseFloat(t)||0},yo=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,To=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return We(n)},ho=e=>Ke(We(e));var bo=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,So=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function Eo({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 Ao(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var B=e=>e==null||e==="";function _o(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 No=()=>In===Jn.TAPSTERS_FRONTEND;var Fo=e=>e.replace(/[^0-9]/g,"");function Mo({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 ko=450,Uo=600;var zo=3;var Bo=20,Dt=(r=>(r.Index="index",r.Date="date",r))(Dt||{}),Wo={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Vo={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},Yo={date:"Date",index:"Index"},Ho={sheet:["sheet"],default:["advanced","default"],text:["text"]},Go={sheet:"Advanced",default:"Sheet",text:"text"},Et={id:"default",label:"Default"},Ko={id:"custom",label:"Custom view"},jo=[Et];function Zo(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 Qo(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 es(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 ts(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 rs(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 ns=({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 ss(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);},as=(e,t)=>Ve({type:"content",content:e},t),cs=(e,t)=>Ve({type:"url",url:e},t);var At=e=>!!(e?.isAxiosError&&!e?.response),ls=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,ds=e=>!!e,_t=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,ms=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,ps=({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 fs=(e,t)=>e.find(r=>r.code===t),xs=(e,t)=>e.find(r=>r.code===t);var hs=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:We(e)}));function bs(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 Ss(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}var ws=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return ap[t]??Ve$1},As=(e,t,r)=>`${e}-${t}-${r}`;var Os=e=>e?/[\u0600-\u06FF]/g.test(e):false;function Is(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,Ns=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var Fs=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},It={AMERICAN_EXPRESS:"AMEX"},Ye=e=>It[e.toUpperCase()]??e.toUpperCase(),Ps=(e,t)=>!!e&&!!t&&Ye(e)===Ye(t);var vs=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var ks=(e,t)=>{if(t==null)return "";let r=Ao$1[e];return e===zo$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%"},zs=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?Nt():t&&!r?Lt():r?Ft(o):{}:{},Nt=()=>({backgroundColor:g.background,color:g.primary}),Lt=()=>({border:`${x.thin} solid ${g.primary}`,backgroundColor:g.background,color:g.primary,borderRadius:"2px"}),Ft=e=>{let t=Pt(),r=Rt(e);return {borderWidth:t,borderStyle:"solid",borderColor:g.primary,borderBottom:r,height:He.fullHeight,minHeight:He.minHeight,display:"flex",alignItems:"center"}},Pt=()=>{let{none:e,thin:t}=x;return `${e} ${t} ${t} ${t}`},Rt=e=>e?`${x.thick} solid ${g.primary}`:`${x.thin} solid ${g.border}`,Bs=({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"}`}),Ws={left:"flex-start",center:"center",right:"flex-end"};function Vs(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function Ys(...e){return e.filter(Boolean).join(" ")||void 0}var W=V(ko$1,mo$1,lo$1);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/no$1}:W}var $t=e=>{let t=getCountry(e),r=t?.timezones[0];if(!(!t||!r))return V(e,t.name,r)},Js=e=>$t(e)??W,qs=e=>{let t=getCountryForTimezone(e),r=getTimezone(e);return !t||!r?W:V(t.id,t.name,e)};function ri(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:Ke(We(y(t?.name))),type:t?.code,icon:Bo$1[t.code]??Bo$1.CARD,options:t.payment_methods?.map(r=>({name:y(r.name),type:r.code}))}))}}function ni(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"],kt={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Ut={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},zt={id:"action_icon",header:"",width:"36px",order:Je.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Bt=(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 [kt,Ut,...t,zt]},si=(e,t,r)=>r&&t?Bt():[...e];var ai=(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 li=(e,t)=>t.some(r=>!!e[r]),di=(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 Vt={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},gi=e=>typeof window>"u"?"":String(qe.sanitize(e||"",Vt));var xi=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),yi=e=>e.toISOString();function hi(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}function Yt(e){return e!=null&&e!==""}function bi(e,t){let r=e!=null,n=t&&"message"in t?t.message:e?.message,o=Yt(n);return {isProvided:r,isVisible:o,type:o?e?.type:void 0}}function Di(e){let t=new Set;return (r,n)=>{let o=String(r??"");return o!==""&&!t.has(o)?(t.add(o),`${e}-${o}`):`${e}-idx-${n}-${o}`}}export{Xr as $,mo as $a,Is as $b,wr as A,Fn as Aa,Et as Ab,Yt as Ac,Ie as B,Pn as Ba,Ko as Bb,bi as Bc,Ar as C,Rn as Ca,jo as Cb,Di as Cc,_r as D,$n as Da,Zo as Db,Or as E,ze as Ea,Qo as Eb,Ir as F,kn as Fa,es as Fb,Nr as G,Un as Ga,ts as Gb,Lr as H,yt as Ha,rs as Hb,Fr as I,zn as Ia,ns as Ib,Pr as J,Wn as Ja,ss as Jb,Fe as K,Vn as Ka,Ve as Kb,at as L,Be as La,as as Lb,ct as M,Hn as Ma,cs as Mb,$r as N,Gn as Na,At as Nb,Wr as O,h as Oa,ls as Ob,Me as P,qn as Pa,ds as Pb,Vr as Q,Xn as Qa,_t as Qb,Yr as R,eo as Ra,ms as Rb,Hr as S,to as Sa,ps as Sb,Gr as T,ro as Ta,fs as Tb,R as U,no as Ua,xs as Ub,Kr as V,oo as Va,hs as Vb,jr as W,so as Wa,bs as Wb,v as X,io as Xa,Ss as Xb,Jr as Y,lo as Ya,ws as Yb,qr as Z,U as Za,As as Zb,lt as _,z as _a,Os as _b,Kt as a,Zr as aa,po as ab,y as ac,jt as b,Qr as ba,go as bb,Ns as bc,Jt as c,en as ca,fo as cb,Fs as cc,qt as d,tn as da,xo as db,Ps as dc,Zt as e,rn as ea,yo as eb,vs as ec,Qt as f,nn as fa,To as fb,ks as fc,er as g,on as ga,ho as gb,g as gc,Qe as h,sn as ha,bo as hb,zs as hc,tr as i,an as ia,So as ib,Bs as ic,rr as j,cn as ja,Eo as jb,Ws as jc,f as k,un as ka,Ao as kb,Vs as kc,nr as l,ln as la,B as lb,Ys as lc,S as m,dn as ma,_o as mb,Js as mc,gr as n,mn as na,No as nb,qs as nc,fr as o,pn as oa,Fo as ob,ri as oc,xr as p,gn as pa,Mo as pb,ni as pc,yr as q,fn as qa,ko as qb,Je as qc,Tr as r,xn as ra,Uo as rb,Bt as rc,hr as s,yn as sa,zo as sb,si as sc,Cr as t,$e as ta,Bo as tb,ai as tc,br as u,M as ua,Dt as ub,li as uc,Sr as v,Dn as va,Wo as vb,di as vc,Ne as w,wn as wa,Vo as wb,gi as wc,T as x,An as xa,Yo as xb,xi as xc,Dr as y,_n as ya,Ho as yb,yi as yc,Er as z,Ln as za,Go as zb,hi as zc};
|