@tap-payments/os-micro-frontend-shared 0.3.224-test.1 → 0.3.225-test.1

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 (212) hide show
  1. package/build/_chunks/{chunk-KV7KQ6MZ.js → chunk-2BBA55M3.js} +1 -1
  2. package/build/_chunks/{chunk-64ILCI3S.js → chunk-2ZWFGV3F.js} +1 -1
  3. package/build/_chunks/chunk-3I7Q6P3F.js +1 -0
  4. package/build/_chunks/{chunk-BIJMWICZ.js → chunk-3MX37GZ7.js} +1 -1
  5. package/build/_chunks/{chunk-MBTSXCJW.js → chunk-4JYZ34V4.js} +1 -1
  6. package/build/_chunks/{chunk-TH5E43JD.js → chunk-4YMI72ND.js} +1 -1
  7. package/build/_chunks/{chunk-7GVPGH6A.js → chunk-5A3ZU24R.js} +1 -1
  8. package/build/_chunks/{chunk-MHZSYMQP.js → chunk-5NWZSJEV.js} +1 -1
  9. package/build/_chunks/{chunk-ACYZKBPV.js → chunk-6F3QB4JU.js} +2 -2
  10. package/build/_chunks/{chunk-KSTOW7O3.js → chunk-6QHZAVV2.js} +1 -1
  11. package/build/_chunks/{chunk-OBHJVUFA.js → chunk-6W3US26G.js} +1 -1
  12. package/build/_chunks/{chunk-W3D5YN4V.js → chunk-6XP6LAYC.js} +1 -1
  13. package/build/_chunks/{chunk-4AFJCOBN.js → chunk-75IIJ5YW.js} +1 -1
  14. package/build/_chunks/{chunk-WE7NB24K.js → chunk-7PORSSYZ.js} +1 -1
  15. package/build/_chunks/{chunk-TETJCQSC.js → chunk-BGSIOIUT.js} +1 -1
  16. package/build/_chunks/{chunk-VQ4INPUZ.js → chunk-BT7QXEEC.js} +1 -1
  17. package/build/_chunks/{chunk-P57UJVYY.js → chunk-BWMUGH7D.js} +1 -1
  18. package/build/_chunks/{chunk-GAL3X7PR.js → chunk-C74ERGXF.js} +1 -1
  19. package/build/_chunks/{chunk-5DLQTR4L.js → chunk-CF7FJLH7.js} +1 -1
  20. package/build/_chunks/{chunk-GIUONT72.js → chunk-CJQNU6AL.js} +1 -1
  21. package/build/_chunks/{chunk-TY3LDUTP.js → chunk-CUN74BRZ.js} +1 -1
  22. package/build/_chunks/{chunk-GNNMQUBT.js → chunk-E4U5H5AD.js} +1 -1
  23. package/build/_chunks/{chunk-TIO3V7XA.js → chunk-EQWBC5CH.js} +1 -1
  24. package/build/_chunks/{chunk-UO33K26R.js → chunk-EWD4KDIM.js} +1 -1
  25. package/build/_chunks/{chunk-W4PURLBP.js → chunk-F3XZRUZT.js} +1 -1
  26. package/build/_chunks/{chunk-EI4VQCCM.js → chunk-F7JKAS5Y.js} +1 -1
  27. package/build/_chunks/{chunk-4SWNFKMX.js → chunk-FRHT4WYE.js} +1 -1
  28. package/build/_chunks/{chunk-FTG5LY7I.js → chunk-GBX2WJF7.js} +1 -1
  29. package/build/_chunks/{chunk-LIHS4ZYZ.js → chunk-GDS3EXWW.js} +1 -1
  30. package/build/_chunks/{chunk-DKMFQFZU.js → chunk-HS6GKFBH.js} +1 -1
  31. package/build/_chunks/{chunk-KS7YB4UX.js → chunk-IKC4WBT5.js} +1 -1
  32. package/build/_chunks/{chunk-OAEOQ7AZ.js → chunk-IMYF5VGM.js} +1 -1
  33. package/build/_chunks/chunk-J3ZBLABV.js +1 -0
  34. package/build/_chunks/{chunk-XBUO2UHM.js → chunk-JADN4RVW.js} +1 -1
  35. package/build/_chunks/{chunk-5EP3LEOE.js → chunk-JKSQYXDY.js} +1 -1
  36. package/build/_chunks/{chunk-YPVFVBG3.js → chunk-JNOU3LRW.js} +1 -1
  37. package/build/_chunks/{chunk-HKQY74IJ.js → chunk-KIKP7C33.js} +1 -1
  38. package/build/_chunks/{chunk-UD33MPJX.js → chunk-KTC27FFB.js} +1 -1
  39. package/build/_chunks/{chunk-32CPM4J3.js → chunk-LJW2H2XL.js} +1 -1
  40. package/build/_chunks/{chunk-LOGPCQ24.js → chunk-M27SVGQU.js} +1 -1
  41. package/build/_chunks/{chunk-QZAVOGKZ.js → chunk-MCHLV3GW.js} +1 -1
  42. package/build/_chunks/{chunk-6VQVT7U4.js → chunk-MQV5C7RO.js} +1 -1
  43. package/build/_chunks/{chunk-MMFW3YZV.js → chunk-MT6C56MW.js} +1 -1
  44. package/build/_chunks/chunk-MWNS7Z2C.js +1 -0
  45. package/build/_chunks/{chunk-O4UZRDVR.js → chunk-MY2XGM5P.js} +1 -1
  46. package/build/_chunks/{chunk-U62XSJM5.js → chunk-N66BWDVD.js} +1 -1
  47. package/build/_chunks/{chunk-VTJJFPK5.js → chunk-NBG5MZSN.js} +1 -1
  48. package/build/_chunks/{chunk-PHVELRMX.js → chunk-NJDDCJNI.js} +1 -1
  49. package/build/_chunks/{chunk-BL45EG5I.js → chunk-NQJCXG6I.js} +1 -1
  50. package/build/_chunks/{chunk-WAY7BWQL.js → chunk-PUIJEGMD.js} +1 -1
  51. package/build/_chunks/chunk-Q5OCFXN2.js +2 -0
  52. package/build/_chunks/{chunk-44UNMXKS.js → chunk-Q7CRGZ2S.js} +2 -2
  53. package/build/_chunks/{chunk-CAKSLKXG.js → chunk-RSMSWHS5.js} +1 -1
  54. package/build/_chunks/{chunk-JORNMG4I.js → chunk-SK3LVT5J.js} +1 -1
  55. package/build/_chunks/{chunk-33C463YL.js → chunk-SPQNZJPO.js} +1 -1
  56. package/build/_chunks/chunk-TQJTUYWX.js +1 -0
  57. package/build/_chunks/{chunk-XSRIBZ5H.js → chunk-TSAKIFYQ.js} +1 -1
  58. package/build/_chunks/{chunk-MQOX7MKN.js → chunk-TVYCS6E2.js} +1 -1
  59. package/build/_chunks/{chunk-F2LUAXXO.js → chunk-TXKTCFKO.js} +1 -1
  60. package/build/_chunks/{chunk-ND2SYD7Y.js → chunk-U5NVLQNN.js} +1 -1
  61. package/build/_chunks/{chunk-AFDB2YM6.js → chunk-U6NZQDEH.js} +1 -1
  62. package/build/_chunks/{chunk-TKU4GMEV.js → chunk-UJ4MDCBB.js} +1 -1
  63. package/build/_chunks/{chunk-T5WRDF6Z.js → chunk-WAWQR2DA.js} +1 -1
  64. package/build/_chunks/chunk-WQ45I4RF.js +1 -0
  65. package/build/_chunks/{chunk-KD4RSWN6.js → chunk-X2II7JE5.js} +1 -1
  66. package/build/_chunks/{chunk-DPOBKAVX.js → chunk-XS6A547O.js} +1 -1
  67. package/build/_chunks/{chunk-FNWPZLRV.js → chunk-XWOMR2DZ.js} +1 -1
  68. package/build/_chunks/{chunk-QGQRTANO.js → chunk-Y3UJY4BI.js} +1 -1
  69. package/build/_chunks/{chunk-R5PUIGMB.js → chunk-Y4BRXVRK.js} +2 -2
  70. package/build/_chunks/{chunk-FAKPBQH3.js → chunk-Y64KM7GD.js} +1 -1
  71. package/build/_chunks/{chunk-545BCGVE.js → chunk-YLASBEZC.js} +1 -1
  72. package/build/_chunks/{chunk-DEQ2OTPX.js → chunk-YMPXNONU.js} +1 -1
  73. package/build/_chunks/{chunk-ZGZK4AZ3.js → chunk-YZIGCUO6.js} +1 -1
  74. package/build/_chunks/{chunk-SWXXEAIZ.js → chunk-ZFIY23WW.js} +1 -1
  75. package/build/_chunks/{chunk-JEYLI22W.js → chunk-ZRBA5PR7.js} +1 -1
  76. package/build/components/ActionsDropdownMenu/index.js +1 -1
  77. package/build/components/ActiveFilterChip/index.js +1 -1
  78. package/build/components/AmountInput/index.js +1 -1
  79. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  80. package/build/components/AppServices/index.js +1 -1
  81. package/build/components/AppServicesBar/index.js +1 -1
  82. package/build/components/AppWindowWrapper/index.js +1 -1
  83. package/build/components/AreaChart/index.js +1 -1
  84. package/build/components/Autocomplete/index.js +1 -1
  85. package/build/components/BrandLogo/index.js +1 -1
  86. package/build/components/Calender/index.js +1 -1
  87. package/build/components/ChipStack/index.js +1 -1
  88. package/build/components/ColorPicker/index.js +1 -1
  89. package/build/components/ColumnViews/index.js +1 -1
  90. package/build/components/ConfirmDialog/index.js +1 -1
  91. package/build/components/CountryFilter/index.js +1 -1
  92. package/build/components/CountryFlag/index.js +1 -1
  93. package/build/components/CurrenciesMenu/CountryFlag.d.ts +10 -0
  94. package/build/components/CurrenciesMenu/OptionContent.d.ts +1 -1
  95. package/build/components/CurrenciesMenu/OptionRow.d.ts +1 -1
  96. package/build/components/CurrenciesMenu/index.d.ts +1 -1
  97. package/build/components/CurrenciesMenu/index.js +1 -1
  98. package/build/components/CurrenciesMenu/style.d.ts +3 -5
  99. package/build/components/CurrenciesMenu/type.d.ts +7 -22
  100. package/build/components/CurrenciesMenu/utils.d.ts +0 -4
  101. package/build/components/CurrencyAmount/index.js +1 -1
  102. package/build/components/CurrencySymbol/index.js +1 -1
  103. package/build/components/CustomBackdrop/index.js +1 -1
  104. package/build/components/Customer/index.js +1 -1
  105. package/build/components/DateFilter/index.js +1 -1
  106. package/build/components/DeviceIcon/index.js +1 -1
  107. package/build/components/DisplayAmount/index.js +1 -1
  108. package/build/components/DropdownMenu/index.js +1 -1
  109. package/build/components/EmptyState/index.js +1 -1
  110. package/build/components/Error/index.js +1 -1
  111. package/build/components/ErrorToast/index.js +1 -1
  112. package/build/components/ExpandableSideBar/index.js +1 -1
  113. package/build/components/FileDropbox/FileDropbox.d.ts +4 -0
  114. package/build/components/FileDropbox/constants.d.ts +13 -0
  115. package/build/components/FileDropbox/index.d.ts +3 -0
  116. package/build/components/FileDropbox/index.js +1 -0
  117. package/build/components/FileDropbox/style.d.ts +19 -0
  118. package/build/components/FileDropbox/type.d.ts +65 -0
  119. package/build/components/FilePreview/FilePreview.d.ts +3 -3
  120. package/build/components/FilePreview/constants.d.ts +10 -0
  121. package/build/components/FilePreview/index.d.ts +3 -3
  122. package/build/components/FilePreview/index.js +1 -1
  123. package/build/components/FilePreview/style.d.ts +8 -21
  124. package/build/components/FilePreview/type.d.ts +19 -6
  125. package/build/components/FileUploader/FileUploader.d.ts +3 -3
  126. package/build/components/FileUploader/constants.d.ts +11 -0
  127. package/build/components/FileUploader/index.d.ts +3 -3
  128. package/build/components/FileUploader/index.js +1 -1
  129. package/build/components/FileUploader/style.d.ts +7 -22
  130. package/build/components/FileUploader/type.d.ts +31 -10
  131. package/build/components/FilterDropdown/index.js +1 -1
  132. package/build/components/Filters/index.js +1 -1
  133. package/build/components/FlippingCard/index.js +1 -1
  134. package/build/components/FormSelect/index.js +1 -1
  135. package/build/components/GroupedSelect/index.js +1 -1
  136. package/build/components/HeatMap/index.js +1 -1
  137. package/build/components/IconWithBadge/index.js +1 -1
  138. package/build/components/InputBase/index.js +1 -1
  139. package/build/components/Inputs/index.js +1 -1
  140. package/build/components/JSONViewer/index.js +1 -1
  141. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  142. package/build/components/ListColumnFilter/index.js +1 -1
  143. package/build/components/ListHeader/index.js +1 -1
  144. package/build/components/ListLayout/index.js +1 -1
  145. package/build/components/Loader/index.js +1 -1
  146. package/build/components/MFWidgetLoader/index.js +1 -1
  147. package/build/components/MaskedText/index.js +1 -1
  148. package/build/components/MerchantLogo/index.js +1 -1
  149. package/build/components/MerchantsDropdown/index.js +1 -1
  150. package/build/components/MultiSelect/index.js +1 -1
  151. package/build/components/NestedDropdown/index.js +1 -1
  152. package/build/components/NestedMultiSelect/index.js +1 -1
  153. package/build/components/OpenFileInNewTab/index.js +1 -1
  154. package/build/components/PaymentSourceFilter/index.js +1 -1
  155. package/build/components/PhoneFilter/index.js +1 -1
  156. package/build/components/PhoneInput/index.js +1 -1
  157. package/build/components/ProgressRing/index.js +1 -1
  158. package/build/components/RHFGroupedSelect/index.js +1 -1
  159. package/build/components/RHFInput/index.js +1 -1
  160. package/build/components/RHFPhoneInput/index.js +1 -1
  161. package/build/components/RHFSwitch/index.js +1 -1
  162. package/build/components/RadioGroup/index.js +1 -1
  163. package/build/components/RangeCalender/index.js +1 -1
  164. package/build/components/RatingCount/index.js +1 -1
  165. package/build/components/ReferenceTypeFilter/index.js +1 -1
  166. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  167. package/build/components/SearchButton/index.js +1 -1
  168. package/build/components/SearchInput/index.js +1 -1
  169. package/build/components/SheetViewChip/index.js +1 -1
  170. package/build/components/StatusBar/index.js +1 -1
  171. package/build/components/StatusButton/index.js +1 -1
  172. package/build/components/StatusFilter/index.js +1 -1
  173. package/build/components/StatusIcons/index.js +1 -1
  174. package/build/components/StatusLabel/index.js +1 -1
  175. package/build/components/TableCells/index.js +1 -1
  176. package/build/components/TableReports/index.js +1 -1
  177. package/build/components/TextInput/index.js +1 -1
  178. package/build/components/Timepicker/index.js +1 -1
  179. package/build/components/ToggleView/index.js +1 -1
  180. package/build/components/Toolbar/index.js +1 -1
  181. package/build/components/TreeDropdown/index.js +1 -1
  182. package/build/components/VerificationIcon/index.js +1 -1
  183. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  184. package/build/components/VirtualTables/index.js +1 -1
  185. package/build/components/Widget/index.js +1 -1
  186. package/build/components/WindowSideBar/index.js +1 -1
  187. package/build/components/index.d.ts +4 -5
  188. package/build/components/index.js +1 -1
  189. package/build/components/primitives/index.js +1 -1
  190. package/build/hooks/index.js +1 -1
  191. package/build/index.js +1 -1
  192. package/build/utils/file.d.ts +2 -0
  193. package/build/utils/index.js +1 -1
  194. package/package.json +1 -1
  195. package/build/_chunks/chunk-4HUXFXAF.js +0 -2
  196. package/build/_chunks/chunk-4XXNGLS6.js +0 -1
  197. package/build/_chunks/chunk-AIT2A7YM.js +0 -1
  198. package/build/_chunks/chunk-IFTEZN3F.js +0 -1
  199. package/build/_chunks/chunk-J4V7VRJY.js +0 -1
  200. package/build/_chunks/chunk-OYJYQKLK.js +0 -1
  201. package/build/components/FileInputPreview/FileInputPreview.d.ts +0 -5
  202. package/build/components/FileInputPreview/index.d.ts +0 -1
  203. package/build/components/FileInputPreview/index.js +0 -1
  204. package/build/components/FileInputPreview/style.d.ts +0 -9
  205. package/build/components/FileInputPreview/type.d.ts +0 -21
  206. package/build/components/FileInputPreview/utils.d.ts +0 -3
  207. package/build/components/FileUpload/FileUpload.d.ts +0 -4
  208. package/build/components/FileUpload/FileUploadBase.d.ts +0 -4
  209. package/build/components/FileUpload/index.d.ts +0 -3
  210. package/build/components/FileUpload/index.js +0 -1
  211. package/build/components/FileUpload/style.d.ts +0 -39
  212. package/build/components/FileUpload/type.d.ts +0 -24
@@ -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,$o,Ve as Ve$1,Ao as Ao$1,zo as zo$1,Bo as Bo$1}from'./chunk-V2RLDP5A.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 Pr(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 Fr=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 Pe=(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 Fe="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",P="tap-dashboard-global-table-mode",ve="sheetview_columns",F="dock-preview-windows",A="views";function Wr(){localStorage.setItem(Fe,Hn$1);}function Me(){return localStorage.getItem(Fe)}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?Pe(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(P,e);},un=()=>localStorage.getItem(P)||"default",ln=()=>{localStorage.removeItem(P);},dn=e=>localStorage.setItem(ve,JSON.stringify(e)),mn=()=>JSON.parse(localStorage.getItem(ve)||"{}"),pn=e=>{try{localStorage.setItem(F,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},gn=()=>{try{let e=localStorage.getItem(F);return e?JSON.parse(e):[]}catch{return []}},fn=()=>{try{localStorage.removeItem(F);}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 Pn(){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},Fn=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)&&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 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 Po=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 $o[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 Ps=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(),Fs=(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?Pt(o):{}:{},Nt=()=>({backgroundColor:g.background,color:g.primary}),Lt=()=>({border:`${x.thin} solid ${g.primary}`,backgroundColor:g.background,color:g.primary,borderRadius:"2px"}),Pt=e=>{let t=Ft(),r=Rt(e);return {borderWidth:t,borderStyle:"solid",borderColor:g.primary,borderBottom:r,height:He.fullHeight,minHeight:He.minHeight,display:"flex",alignItems:"center"}},Ft=()=>{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}}export{Xr as $,mo as $a,Is as $b,wr as A,Pn as Aa,Et as Ab,Yt as Ac,Ie as B,Fn as Ba,Ko as Bb,bi as Bc,Ar as C,Rn as Ca,jo as Cb,_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,Pr as I,zn as Ia,ns as Ib,Fr as J,Wn as Ja,ss as Jb,Pe 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,Ps as cc,qt as d,tn as da,xo as db,Fs 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,Po 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};
@@ -1 +0,0 @@
1
- import {j,b,d as d$1,n}from'./chunk-TIO3V7XA.js';import {Wb,zc}from'./chunk-4XXNGLS6.js';import {Bj,Cj,Ij,Oe as Oe$1}from'./chunk-V2RLDP5A.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(j,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.v2.palette.base.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(j)(({theme:e})=>({color:alpha(e.v2.palette.base.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),w=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),O=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Q=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var Y=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:oe,error:R,errorHint:te,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:b$1,successFooter:pe,progressVariant:ae},ne)=>{let{t:a}=useTranslation(),[n$1,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:v,isDragReject:j,fileRejections:s}=useDropzone(x);useImperativeHandle(ne,()=>({open:f}),[f]),useEffect(()=>{H(v);},[v]);let B=Wb(x?.maxSize||0,0).toUpperCase(),c=useMemo(()=>{let ce=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),me=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return j||ce?a("invalidFileType"):me?`File is larger than ${B}`:R},[j,R,s,B,a]),C=useMemo(()=>n$1.length?jsxs(w,{sx:{fontWeight:600},children:[jsx(p,{children:n$1[0].name}),jsx(z,{children:Wb(n$1[0].size)})]}):null,[n$1]);return P&&n$1.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Bj,width:56,height:56}),C]})}),pe??jsxs(Q,{children:[jsx(b,{variant:"secondary",size:"md",icon:jsx(d$1,{src:Cj,alt:"delete"}),onClick:()=>{H([]);},"aria-label":"delete"}),jsx(O,{disabled:ie,onClick:()=>{re?.(n$1);},children:"Bulk Send"})]})]}):U&&n$1.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??a("uploading")}),jsx(g,{children:a("wait")})]}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[U&&jsx(n,{size:56,value:oe,variant:ae??"determinate"}),C]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[c?jsx(d,{isError:true,children:c}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:a("uploadBulkFile")}),S||!!c&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:b$1,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:c?Ij:Oe$1,width:56,height:56}),te,C,c?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:a("uploadAgain")})}):jsxs(w,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",B]}),e&&jsx(g,{children:a("supportedFormats",{accept:e})})]})]})]}),i]})});Y.displayName="FileUploadBase";var Z=memo(Y);var L=forwardRef((e,i)=>{let x=zc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Z,{...e,ref:i})})});L.displayName="FileUpload";var ee=memo(L);var Oe=ee;export{Oe as a};
@@ -1 +0,0 @@
1
- import {j as j$1,V,U,n,d,R}from'./chunk-TIO3V7XA.js';import {lc}from'./chunk-4XXNGLS6.js';import {Nj,m}from'./chunk-V2RLDP5A.js';import {memo,forwardRef,useState,useMemo,useCallback}from'react';import Ve from'@mui/material/ClickAwayListener';import we from'@mui/material/SvgIcon';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import {styled}from'@mui/material/styles';var c="os-shared-CurrenciesMenu",r={root:`${c}-root`,trigger:`${c}-trigger`,triggerInfo:`${c}-triggerInfo`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,static:`${c}-static`,flag:`${c}-flag`,category:`${c}-category`,categoryLabel:`${c}-categoryLabel`,option:`${c}-option`,optionLabel:`${c}-optionLabel`};var j=e=>jsx(we,{viewBox:"0 0 8 5",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"})});function ke(e){return typeof e!="string"}function T(e){if(!e)return "";for(let t of e){if(typeof t=="string")return t;let o=t.items??[];if(o.length>0)return o[0]}return ""}function z(e,t){if(!(!e||!t)){for(let o of e)if(ke(o)&&(o.items??[]).includes(t))return o.groupValue}}function ee(e){if(!e||e.length===0)return [];let t=[],o=[],i=0,p=()=>{o.length>0&&(t.push({key:`flat-${i++}`,items:o}),o=[]);};for(let l of e)if(typeof l=="string")o.push(l);else {p();let u=l.items??[];if(u.length===0)continue;t.push({key:`group-${l.groupValue}-${i++}`,groupValue:l.groupValue,label:l.label,items:u});}return p(),t}function re(e){if(!e)return 0;let t=0;for(let o of e)typeof o=="string"?t+=1:t+=o.items?.length??0;return t}function M(e){if(!e)return Nj;try{return m(e)}catch{return Nj}}function Pe({currency:e,groupValue:t,selected:o,renderOption:i}){return i?jsx(Fragment,{children:i(e,{selected:o,groupValue:t})}):jsxs(Fragment,{children:[jsx(d,{src:M(e),alt:e,className:r.flag,sx:{width:14,height:14}}),jsx(j$1,{sx:{fontSize:11},className:r.optionLabel,children:e})]})}var oe=memo(Pe);var b=styled(C)(()=>({display:"inline-block"})),P=styled(C,{shouldForwardProp:e=>e!=="$open"&&e!=="$disabled"&&e!=="$loading"})(({theme:e,$open:t=false,$disabled:o=false,$loading:i=false})=>{let{base:p,border:l,brand:u}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"space-between",cursor:o?"not-allowed":"pointer",height:32,border:`1px solid ${l.default}`,borderRadius:e.v2.radius(4),backgroundColor:p.white,minWidth:74,padding:e.v2.spacing(8),color:p.black,...Re(t,u[500]),...o&&{opacity:.7,pointerEvents:"none"},...i&&{pointerEvents:"none"}}});function Re(e,t){return e?{borderColor:t}:{}}var S=styled(C)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0})),h=styled(j$1)(()=>({fontSize:"11px",fontWeight:500,lineHeight:1.1})),G=styled(C,{shouldForwardProp:e=>e!=="$open"})(({$open:e=false})=>({display:"flex",alignItems:"center",flexShrink:0,transition:"transform 200ms cubic-bezier(0.4, 0, 0.2, 1)",...e&&{transform:"rotate(180deg)"}})),ne=styled(C)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0,padding:e.v2.spacing(8)})),se=styled(C)(({theme:e})=>({borderBottom:`1px solid ${e.v2.palette.border.default}`,paddingBottom:e.v2.spacing(8),"&:last-child":{borderBottom:"none",paddingBottom:0}})),ie=styled(j$1)(({theme:e})=>({color:e.v2.palette.grey[500],fontSize:"10px",fontWeight:500,lineHeight:"100%",padding:e.v2.spacing(8)})),ae=styled(V)({gap:"4px",borderTop:"none !important",height:24,[`& .${U.indicator}`]:{fontSize:11},"&:hover":{boxShadow:"7px 0px 8px 0px #F2F2F2"}});function Be({currency:e,groupValue:t,selected:o,onSelect:i,renderOption:p}){return jsx(ae,{isSelected:o,startAdornment:null,onClick:()=>i(e,t),className:lc(r.option),children:jsx(oe,{currency:e,groupValue:t,selected:o,renderOption:p})})}var ue=memo(Be);var pe=forwardRef(({value:e,defaultValue:t,onChange:o,options:i,isLoading:p=false,disabled:l=false,id:u,className:I,sx:N,menuPlacement:me,menuProps:fe,placeholder:$="",triggerIcon:D,renderOption:de,renderSelected:L,...v},w)=>{let[Z,q]=useState(null),[Ce,ye]=useState(()=>t??T(i)),B=e!==void 0,f=B?e:Ce,xe=useMemo(()=>z(i,f),[i,f]),k=!!Z,Me=useMemo(()=>ee(i),[i]),J=useMemo(()=>re(i),[i]),be=useCallback(a=>{l||q(a.currentTarget);},[l]),F=useCallback(()=>{q(null);},[]),he=useCallback((a,m)=>{B||ye(a),o?.(a,m),F();},[B,o,F]),O=D===void 0?jsx(j,{}):D,{placement:Ie,sx:E,...Ne}=fe??{},$e=Ie??me,Le=useMemo(()=>[{margin:"8px 0",minWidth:74},...Array.isArray(E)?E:[E]],[]);if(p)return jsx(b,{ref:w,id:u,"data-testid":u??"CurrenciesMenu",className:lc(r.root,I),sx:N,...v,children:jsxs(P,{$loading:true,tabIndex:-1,"aria-disabled":true,className:lc(r.trigger),children:[jsx(S,{className:lc(r.triggerInfo),children:jsx(h,{className:lc(r.triggerLabel),children:$})}),jsx(n,{size:12})]})});if(J===0)return jsx(b,{ref:w,id:u,"data-testid":u??"CurrenciesMenu",className:lc(r.root,I),sx:N,...v,children:jsxs(P,{$disabled:true,tabIndex:-1,"aria-disabled":true,className:lc(r.trigger),children:[jsx(S,{className:lc(r.triggerInfo),children:jsx(h,{className:lc(r.triggerLabel),children:$})}),O?jsx(G,{$open:false,className:lc(r.triggerArrow),children:O}):null]})});if(J===1){let a=T(i),m=z(i,a);return jsx(b,{ref:w,id:u,"data-testid":u??"CurrenciesMenu",className:lc(r.root,I),sx:N,...v,children:jsx(ne,{className:lc(r.static),children:L?jsx(Fragment,{children:L(a,m)}):jsxs(Fragment,{children:[jsx(d,{src:M(a),alt:a||"flag",className:lc(r.flag),sx:{width:14,height:14}}),jsx(h,{className:lc(r.triggerLabel),children:a||$})]})})})}return jsx(Ve,{onClickAway:F,children:jsxs(b,{ref:w,id:u,"data-testid":u??"CurrenciesMenu",className:lc(r.root,I),sx:N,...v,children:[jsxs(P,{$open:k,$disabled:l,onClick:be,role:"button",tabIndex:l?-1:0,"aria-haspopup":"listbox","aria-expanded":k,"aria-disabled":l,className:lc(r.trigger),children:[jsx(S,{className:lc(r.triggerInfo),children:L?jsx(Fragment,{children:L(f,xe)}):jsxs(Fragment,{children:[jsx(d,{src:M(f),alt:f||"flag",className:lc(r.flag),sx:{width:14,height:14}}),jsx(h,{className:lc(r.triggerLabel),children:f||$})]})}),O?jsx(G,{$open:k,className:lc(r.triggerArrow),children:O}):null]}),jsx(R,{open:k,anchorEl:Z,placement:$e,sx:Le,...Ne,children:Me.map(a=>jsxs(se,{className:lc(r.category),children:[a.label?jsx(ie,{className:lc(r.categoryLabel),children:a.label}):null,a.items.map((m,ve)=>jsx(ue,{currency:m,groupValue:a.groupValue,selected:m===f,onSelect:he,renderOption:de},a.groupValue?`${a.groupValue}:${m}`:`${a.key}:${m}-${ve}`))]},a.key))})]})})});pe.displayName="CurrenciesMenu";var ge=memo(pe);export{r as a,ge as b};
@@ -1 +0,0 @@
1
- import {j}from'./chunk-TIO3V7XA.js';import {zc}from'./chunk-4XXNGLS6.js';import {Ij,Oe,Eb}from'./chunk-V2RLDP5A.js';import {useId,useCallback}from'react';import S from'@mui/material/Box';import A from'@mui/material/Stack';import {Box}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var I=styled(Box,{shouldForwardProp:t=>t!=="disabled"})(({theme:t,disabled:a})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:t.palette.grey[400],gap:"8px",cursor:a?"default":"pointer",position:"relative",'& [data-slot="input"]':{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"},...a&&{'& [data-slot="content"], & [data-slot="icon-wrapper"]':{cursor:"default",opacity:.6}}})),b=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),s=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),c=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),w=styled(Box)(({theme:t})=>({color:alpha(t.palette.text.primary,.3),fontSize:"8px",fontWeight:500})),F=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,padding:"7px",background:t.palette.common.white,borderRadius:"4px",border:`1px solid ${t.palette.divider}`})),U=styled(j)(()=>({color:"#FF3D00",fontSize:"8px",fontWeight:500})),k=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16}));var H=({getRootProps:t,getInputProps:a,open:W,onChangeFiles:B,processFiles:x,disabled:i,errorMessage:l,onResetError:d,maxFileSize:M,preventDuplicates:T,label:v="Click to upload",hintText:E,sx:j})=>{let z=zc(useId(),"file-uploader"),m=a(),D=useCallback(p=>{p.stopPropagation(),d?.(p);},[d]);return jsxs(I,{id:z,"data-testid":"FileUploader_root",...t(),sx:j,disabled:i,onClick:i?void 0:W,children:[jsx("input",{"data-slot":"input",...m,onChange:p=>{if(m.onChange?.(p),!x)return;let f=x(Array.from(p.target.files||[]));(f.length>0||!T)&&B?.(f);},disabled:i}),jsxs(b,{"data-slot":"content",flex:1,children:[jsx(F,{"data-slot":"icon-wrapper",children:jsx(S,{component:"img",src:l?Ij:Oe,width:16,height:16})}),l?jsxs(A,{direction:"row",alignItems:"center",flex:1,children:[jsxs(c,{flex:1,children:[jsx(U,{children:l}),jsx(s,{children:"Click to upload again"})]}),d&&jsx(k,{component:"button","data-slot":"close-icon-wrapper",onClick:D,children:jsx(S,{component:"img",src:Eb,width:10,height:10})})]}):jsxs(c,{children:[jsx(s,{children:v}),jsx(w,{children:E||`PDF, JPG or PNG files up to ${M}`})]})]})]})},P=H;var ot=P;export{ot as a};
@@ -1 +0,0 @@
1
- import {zc,Xb}from'./chunk-4XXNGLS6.js';import {Eb}from'./chunk-V2RLDP5A.js';import {useId}from'react';import p from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var x=styled(p,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:n})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:e.palette.grey[400],gap:"8px",...n&&{opacity:.6,cursor:"default"}})),f=styled(p)(()=>({width:"100%",minWidth:0,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"})),u=styled(p)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,minWidth:0,overflow:"hidden",color:e.palette.text.primary,cursor:"pointer",gap:"8px"})),w=styled("span")(({theme:e})=>({display:"block",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:500,color:e.palette.text.primary,cursor:"pointer",fontSize:"9px"})),g=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,minWidth:0,overflow:"hidden",gap:"4px",color:e.palette.text.primary})),h=styled(p)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,overflow:"hidden",background:e.palette.common.white,borderRadius:"4px",border:`1px solid ${e.palette.divider}`})),y=styled(p)(()=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:"auto",cursor:"pointer"}));var R=({files:e,disabled:n,sx:F,onRemoveFile:W,getFilePreview:b,renderBrandLogo:C,renderOpenFileInNewTab:v})=>{let P=zc(useId(),"file-preview");return jsx(Fragment,{children:e?.map((t,d)=>{let a=Xb(t)?b(t.file):null,k=Xb(t)&&t.file.type.includes("application/pdf"),l=Xb(t)?t.file:t;return jsx(x,{id:`${P}-${d}`,"data-testid":"FilePreview",sx:F,disabled:n,children:jsxs(f,{"data-slot":"file-wrapper",children:[jsxs(u,{"data-slot":"file-Content",children:[jsx(h,{"data-slot":"file-icon-wrapper",children:Xb(t)&&a?jsx(p,{component:"img",src:a,width:32,height:32,sx:{borderRadius:"50%",objectFit:k?"none":"cover"},onError:j=>{j.currentTarget.src=l.name;}}):C?.(l.id)}),jsxs(g,{"data-slot":"text-wrapper",children:[jsx(w,{"data-slot":"filename",children:l.name}),!Xb(t)&&!a&&v?.(l.id)]})]}),!n&&jsx(y,{"data-slot":"close-icon-wrapper",onClick:()=>{W?.(t);},children:jsx(p,{component:"img",src:Eb,width:10,height:10})})]})},d)})})},T=R;export{x as a,f as b,u as c,w as d,g as e,h as f,y as g,T as h};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { FileInputPreviewProps } from './type';
3
- declare function FileInputPreview({ options, error, files, label, disabled, hideUpload, preventDuplicates, onChangeFiles, onRemoveFile, renderBrandLogo, renderOpenFileInNewTab, }: Readonly<FileInputPreviewProps>): import("react").JSX.Element;
4
- declare const _default: import("react").MemoExoticComponent<typeof FileInputPreview>;
5
- export default _default;
@@ -1 +0,0 @@
1
- export { default as FileInputPreview } from './FileInputPreview';
@@ -1 +0,0 @@
1
- export{Jc as FileInputPreview}from'../../_chunks/chunk-4HUXFXAF.js';import'../../_chunks/chunk-TH5E43JD.js';import'../../_chunks/chunk-TETJCQSC.js';import'../../_chunks/chunk-33C463YL.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-JEYLI22W.js';import'../../_chunks/chunk-545BCGVE.js';import'../../_chunks/chunk-DPOBKAVX.js';import'../../_chunks/chunk-QGQRTANO.js';import'../../_chunks/chunk-MMFW3YZV.js';import'../../_chunks/chunk-KV7KQ6MZ.js';import'../../_chunks/chunk-MBTSXCJW.js';import'../../_chunks/chunk-GNNMQUBT.js';import'../../_chunks/chunk-W4PURLBP.js';import'../../_chunks/chunk-GIUONT72.js';import'../../_chunks/chunk-XSRIBZ5H.js';import'../../_chunks/chunk-ZGZK4AZ3.js';import'../../_chunks/chunk-XBUO2UHM.js';import'../../_chunks/chunk-4SWNFKMX.js';import'../../_chunks/chunk-DEQ2OTPX.js';import'../../_chunks/chunk-KD4RSWN6.js';import'../../_chunks/chunk-P57UJVYY.js';import'../../_chunks/chunk-PHVELRMX.js';import'../../_chunks/chunk-FNWPZLRV.js';import'../../_chunks/chunk-WAY7BWQL.js';import'../../_chunks/chunk-EI4VQCCM.js';import'../../_chunks/chunk-MQOX7MKN.js';import'../../_chunks/chunk-YPVFVBG3.js';import'../../_chunks/chunk-F2LUAXXO.js';import'../../_chunks/chunk-AFDB2YM6.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-DKMFQFZU.js';import'../../_chunks/chunk-OAEOQ7AZ.js';import'../../_chunks/chunk-R5PUIGMB.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-ACYZKBPV.js';import'../../_chunks/chunk-SWXXEAIZ.js';import'../../_chunks/chunk-UO33K26R.js';import'../../_chunks/chunk-O4UZRDVR.js';import'../../_chunks/chunk-KS7YB4UX.js';import'../../_chunks/chunk-AIT2A7YM.js';import'../../_chunks/chunk-J4V7VRJY.js';import'../../_chunks/chunk-LOGPCQ24.js';import'../../_chunks/chunk-7GVPGH6A.js';import'../../_chunks/chunk-VTJJFPK5.js';import'../../_chunks/chunk-TY3LDUTP.js';import'../../_chunks/chunk-KSTOW7O3.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-ND2SYD7Y.js';import'../../_chunks/chunk-FAKPBQH3.js';import'../../_chunks/chunk-U62XSJM5.js';import'../../_chunks/chunk-5DLQTR4L.js';import'../../_chunks/chunk-HKQY74IJ.js';import'../../_chunks/chunk-OYJYQKLK.js';import'../../_chunks/chunk-32CPM4J3.js';import'../../_chunks/chunk-IFTEZN3F.js';import'../../_chunks/chunk-VQ4INPUZ.js';import'../../_chunks/chunk-BL45EG5I.js';import'../../_chunks/chunk-6VQVT7U4.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-44UNMXKS.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-WE7NB24K.js';import'../../_chunks/chunk-64ILCI3S.js';import'../../_chunks/chunk-CAKSLKXG.js';import'../../_chunks/chunk-4AFJCOBN.js';import'../../_chunks/chunk-T5WRDF6Z.js';import'../../_chunks/chunk-5EP3LEOE.js';import'../../_chunks/chunk-JORNMG4I.js';import'../../_chunks/chunk-TKU4GMEV.js';import'../../_chunks/chunk-QZAVOGKZ.js';import'../../_chunks/chunk-UD33MPJX.js';import'../../_chunks/chunk-MHZSYMQP.js';import'../../_chunks/chunk-GAL3X7PR.js';import'../../_chunks/chunk-FTG5LY7I.js';import'../../_chunks/chunk-JQTHWXQR.js';import'../../_chunks/chunk-TIO3V7XA.js';import'../../_chunks/chunk-W3D5YN4V.js';import'../../_chunks/chunk-OBHJVUFA.js';import'../../_chunks/chunk-BIJMWICZ.js';import'../../_chunks/chunk-LIHS4ZYZ.js';import'../../_chunks/chunk-4XXNGLS6.js';import'../../_chunks/chunk-V2RLDP5A.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
- disabled?: boolean | undefined;
6
- }, {}, {}>;
7
- export declare const Title: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
8
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
9
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import { DropzoneProps } from 'react-dropzone';
3
- import { FileType } from '../../types/index.js';
4
- import { SxProps } from '@mui/material/styles';
5
- export interface FileInputPreviewProps {
6
- accept?: string;
7
- options?: DropzoneProps;
8
- error?: string;
9
- files: FileType[];
10
- label?: string | null;
11
- disabled?: boolean;
12
- hideUpload?: boolean;
13
- preventDuplicates?: boolean;
14
- sx?: SxProps;
15
- hideTitle?: boolean;
16
- hidePreview?: boolean;
17
- onChangeFiles: (files: FileType[]) => void;
18
- onRemoveFile?: (file: FileType) => void;
19
- renderBrandLogo: (fileId: string) => React.ReactNode;
20
- renderOpenFileInNewTab: (fileId: string) => React.ReactNode;
21
- }
@@ -1,3 +0,0 @@
1
- import { FileType } from '../../types/index.js';
2
- export declare const areFilesEqual: (file1: File, file2: File) => boolean;
3
- export declare const isDuplicateFile: (newFile: File, existingFiles: FileType[]) => boolean;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { FileUploadProps, FileUploadRef } from './type';
3
- declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FileUploadProps & import("react").RefAttributes<FileUploadRef>>>;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { FileUploadProps, FileUploadRef } from './type';
3
- declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FileUploadProps & import("react").RefAttributes<FileUploadRef>>>;
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import FileUpload from './FileUpload';
2
- export default FileUpload;
3
- export type { FileUploadProps, FileUploadRef } from './type';
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-AIT2A7YM.js';import'../../_chunks/chunk-TIO3V7XA.js';import'../../_chunks/chunk-4XXNGLS6.js';import'../../_chunks/chunk-V2RLDP5A.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,39 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const StyledFileUploadHeader: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
- export declare const Title: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
9
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
10
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
11
- isError?: boolean | undefined;
12
- }, {}, {}>;
13
- export declare const UploadAgain: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
16
- export declare const Format: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
17
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
18
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
19
- export declare const FileUploader: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
21
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
22
- width?: string | number | undefined;
23
- }, {}, {}>;
24
- export declare const Content: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
25
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
26
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
27
- export declare const Upload: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
28
- export declare const TextWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
30
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
31
- export declare const Maximum: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
32
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
33
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
34
- export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
35
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
36
- }, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "variant" | "size" | "startIcon" | "endIcon" | "fullWidth" | "href" | "disableFocusRipple" | "disableElevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
37
- export declare const SendBulkContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
38
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
39
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- import { DropzoneProps } from 'react-dropzone';
3
- import { CircularProgressProps } from '@mui/material/CircularProgress';
4
- export interface FileUploadProps {
5
- accept?: string;
6
- options?: DropzoneProps;
7
- footer?: React.ReactNode;
8
- isCreateLoading?: boolean;
9
- progress?: number;
10
- progressVariant?: CircularProgressProps['variant'];
11
- error?: string;
12
- errorHint?: React.ReactNode;
13
- subtitleComponent?: React.ReactNode;
14
- isSuccess?: boolean;
15
- errorActionComponent?: React.ReactNode;
16
- onConfirm?: (acceptedFiles: File[]) => void;
17
- isSendDisabled?: boolean;
18
- title?: React.ReactNode;
19
- width?: number | string;
20
- successFooter?: React.ReactNode;
21
- }
22
- export interface FileUploadRef {
23
- open: () => void;
24
- }