@tap-payments/os-micro-frontend-shared 0.3.191 → 0.3.192-test.2

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 (185) hide show
  1. package/build/_chunks/{chunk-4GZ7XOYY.js → chunk-65DHLOE2.js} +1 -1
  2. package/build/_chunks/{chunk-TWCRVIMF.js → chunk-7G4HONFM.js} +1 -1
  3. package/build/_chunks/chunk-BUZ4SKVB.js +1 -0
  4. package/build/_chunks/{chunk-K227MKFN.js → chunk-EQVRICVJ.js} +1 -1
  5. package/build/_chunks/chunk-GTUAFX7H.js +1 -0
  6. package/build/_chunks/chunk-HDCNWBW5.js +1 -0
  7. package/build/_chunks/{chunk-AQBSQEMA.js → chunk-HL4IRO4S.js} +1 -1
  8. package/build/_chunks/{chunk-WNU66KFJ.js → chunk-HOCMRLLW.js} +1 -1
  9. package/build/_chunks/chunk-JHXPO26H.js +1 -0
  10. package/build/_chunks/chunk-N7IZEJPM.js +2 -0
  11. package/build/_chunks/chunk-QM55EFW3.js +1 -0
  12. package/build/_chunks/chunk-WWHRZD52.js +1 -0
  13. package/build/_chunks/{chunk-CKN5W76E.js → chunk-XALHNKAF.js} +2 -2
  14. package/build/_chunks/{chunk-PGNIENI6.js → chunk-YMCYR4NV.js} +1 -1
  15. package/build/_chunks/{chunk-HWJESKWC.js → chunk-YVGMG3J7.js} +1 -1
  16. package/build/components/ActionMenu/index.js +1 -1
  17. package/build/components/ActionsDropdownMenu/index.js +1 -1
  18. package/build/components/ActiveFilterChip/index.js +1 -1
  19. package/build/components/ActivityAreaChart/index.js +1 -1
  20. package/build/components/AmountConversionFilter/index.js +1 -1
  21. package/build/components/AmountInput/index.js +1 -1
  22. package/build/components/AmountSlider/index.js +1 -1
  23. package/build/components/AmountStatusChip/index.js +1 -1
  24. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  25. package/build/components/AppServices/index.js +1 -1
  26. package/build/components/AppServicesBar/index.js +1 -1
  27. package/build/components/AppWindowWrapper/index.js +1 -1
  28. package/build/components/AuthenticationTypeChip/index.js +1 -1
  29. package/build/components/Autocomplete/index.js +1 -1
  30. package/build/components/BetaBanner/index.js +1 -1
  31. package/build/components/BrandLogo/index.js +1 -1
  32. package/build/components/Calender/index.js +1 -1
  33. package/build/components/CardEmptyState/index.js +1 -1
  34. package/build/components/Chip/index.js +1 -1
  35. package/build/components/ChipStack/index.js +1 -1
  36. package/build/components/ColorPicker/index.js +1 -1
  37. package/build/components/ColumnViews/index.js +1 -1
  38. package/build/components/ConfirmDialog/index.js +1 -1
  39. package/build/components/CountryFilter/index.js +1 -1
  40. package/build/components/CountryFlag/index.js +1 -1
  41. package/build/components/CurrencyAmount/index.js +1 -1
  42. package/build/components/CurrencyFilter/index.js +1 -1
  43. package/build/components/CurrencySymbol/index.js +1 -1
  44. package/build/components/CustomBackdrop/index.js +1 -1
  45. package/build/components/Customer/index.js +1 -1
  46. package/build/components/DateFilter/index.js +1 -1
  47. package/build/components/DeviceIcon/index.js +1 -1
  48. package/build/components/Discount/index.js +1 -1
  49. package/build/components/DisplayAmount/index.js +1 -1
  50. package/build/components/Dropdown2/index.js +1 -1
  51. package/build/components/DropdownChevronIcon/index.d.ts +2 -0
  52. package/build/components/DropdownChevronIcon/index.js +1 -0
  53. package/build/components/DropdownChevronIcon/type.d.ts +3 -0
  54. package/build/components/DropdownMenu/index.js +1 -1
  55. package/build/components/Error/index.js +1 -1
  56. package/build/components/ErrorToast/index.js +1 -1
  57. package/build/components/ExpandableSideBar/index.js +1 -1
  58. package/build/components/FileInputPreview/index.js +1 -1
  59. package/build/components/FilePreview/index.js +1 -1
  60. package/build/components/FileUpload/index.js +1 -1
  61. package/build/components/FileUploader/index.js +1 -1
  62. package/build/components/FilterDropdown/index.js +1 -1
  63. package/build/components/Filters/index.js +1 -1
  64. package/build/components/FlippingCard/index.js +1 -1
  65. package/build/components/HeatMap/index.js +1 -1
  66. package/build/components/Icon/index.js +1 -1
  67. package/build/components/IconWithBadge/index.js +1 -1
  68. package/build/components/Input/index.js +1 -1
  69. package/build/components/InputBase/index.js +1 -1
  70. package/build/components/InputNumber/index.js +1 -1
  71. package/build/components/Inputs/index.js +1 -1
  72. package/build/components/JSONViewer/index.js +1 -1
  73. package/build/components/LanguageDropdown/index.js +1 -1
  74. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  75. package/build/components/ListColumnFilter/index.js +1 -1
  76. package/build/components/ListHeader/index.js +1 -1
  77. package/build/components/ListLayout/index.js +1 -1
  78. package/build/components/Loader/index.js +1 -1
  79. package/build/components/MFWidgetLoader/index.js +1 -1
  80. package/build/components/MaskedText/index.js +1 -1
  81. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  82. package/build/components/MerchantLogo/index.js +1 -1
  83. package/build/components/MerchantsDropdown/index.js +1 -1
  84. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  85. package/build/components/NestedDropdown/index.js +1 -1
  86. package/build/components/NestedMultiSelect/BranchMenuItem.d.ts +12 -0
  87. package/build/components/NestedMultiSelect/FieldSelectedValues.d.ts +8 -0
  88. package/build/components/NestedMultiSelect/NestedMultiSelect.d.ts +4 -0
  89. package/build/components/NestedMultiSelect/NodeMenuItem.d.ts +10 -0
  90. package/build/components/NestedMultiSelect/SelectableOption.d.ts +9 -0
  91. package/build/components/NestedMultiSelect/constants.d.ts +13 -0
  92. package/build/components/NestedMultiSelect/index.d.ts +4 -0
  93. package/build/components/NestedMultiSelect/index.js +1 -0
  94. package/build/components/NestedMultiSelect/style.d.ts +45 -0
  95. package/build/components/NestedMultiSelect/type.d.ts +52 -0
  96. package/build/components/NestedMultiSelect/utils.d.ts +15 -0
  97. package/build/components/NoInternet/index.js +1 -1
  98. package/build/components/OpenFileInNewTab/index.js +1 -1
  99. package/build/components/PartnersFilter/index.js +1 -1
  100. package/build/components/PaymentSourceFilter/index.js +1 -1
  101. package/build/components/PhoneFilter/index.js +1 -1
  102. package/build/components/ProgressRing/index.js +1 -1
  103. package/build/components/RFH/index.js +1 -1
  104. package/build/components/RadioGroup/index.js +1 -1
  105. package/build/components/RangeCalender/index.js +1 -1
  106. package/build/components/RatingCount/index.js +1 -1
  107. package/build/components/ReceiptsViewer/index.js +1 -1
  108. package/build/components/ReferenceTypeFilter/index.js +1 -1
  109. package/build/components/ResizableHeightInput/index.js +1 -1
  110. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  111. package/build/components/SalesChannelFilter/index.js +1 -1
  112. package/build/components/SalesChannelFilter/style.d.ts +1 -1
  113. package/build/components/SearchButton/index.js +1 -1
  114. package/build/components/SearchListInput/index.js +1 -1
  115. package/build/components/SelectDropdown/index.js +1 -1
  116. package/build/components/StatusBar/index.js +1 -1
  117. package/build/components/StatusButton/index.js +1 -1
  118. package/build/components/StatusChip/index.js +1 -1
  119. package/build/components/StatusChipWithCopy/index.js +1 -1
  120. package/build/components/StatusFilter/index.js +1 -1
  121. package/build/components/StatusGroupChips/index.js +1 -1
  122. package/build/components/StatusIcons/index.js +1 -1
  123. package/build/components/StatusLabel/index.js +1 -1
  124. package/build/components/TableCells/index.js +1 -1
  125. package/build/components/TableReports/index.js +1 -1
  126. package/build/components/Timepicker/index.js +1 -1
  127. package/build/components/Toaster/index.js +1 -1
  128. package/build/components/ToggleView/index.js +1 -1
  129. package/build/components/Toolbar/index.js +1 -1
  130. package/build/components/ToolbarIcon/index.js +1 -1
  131. package/build/components/TooltipChip/index.js +1 -1
  132. package/build/components/TreeDropdown/index.js +1 -1
  133. package/build/components/VAT/index.js +1 -1
  134. package/build/components/VerificationIcon/index.js +1 -1
  135. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  136. package/build/components/VirtualTables/index.js +1 -1
  137. package/build/components/Widget/index.js +1 -1
  138. package/build/components/Window/index.js +1 -1
  139. package/build/components/WindowAppIcon/index.js +1 -1
  140. package/build/components/WindowSideBar/index.js +1 -1
  141. package/build/components/index.d.ts +2 -5
  142. package/build/components/index.js +1 -1
  143. package/build/components/primitives/index.js +1 -1
  144. package/build/constants/index.js +1 -1
  145. package/build/hooks/index.js +1 -1
  146. package/build/index.js +1 -1
  147. package/build/types/account.d.ts +1 -0
  148. package/build/types/accountWidget.d.ts +10 -1
  149. package/build/types/index.js +1 -1
  150. package/build/utils/index.js +1 -1
  151. package/package.json +2 -2
  152. package/build/_chunks/chunk-4AT6MVPS.js +0 -2
  153. package/build/_chunks/chunk-4H7CRAGJ.js +0 -1
  154. package/build/_chunks/chunk-A73QNHW7.js +0 -1
  155. package/build/_chunks/chunk-CF5MCUMN.js +0 -1
  156. package/build/_chunks/chunk-JARFVM2P.js +0 -1
  157. package/build/_chunks/chunk-P3QRKBID.js +0 -1
  158. package/build/_chunks/chunk-W6ULJ2HR.js +0 -1
  159. package/build/_chunks/chunk-ZDU6AH4F.js +0 -1
  160. package/build/components/AccountDropdown/Dropdown.d.ts +0 -13
  161. package/build/components/AccountDropdown/index.d.ts +0 -2
  162. package/build/components/AccountDropdown/index.js +0 -1
  163. package/build/components/AccountDropdown/style.d.ts +0 -18
  164. package/build/components/DropdownButton/DropdownButton.d.ts +0 -8
  165. package/build/components/DropdownButton/constants.d.ts +0 -13
  166. package/build/components/DropdownButton/index.d.ts +0 -4
  167. package/build/components/DropdownButton/index.js +0 -1
  168. package/build/components/DropdownButton/style.d.ts +0 -31
  169. package/build/components/DropdownButton/type.d.ts +0 -14
  170. package/build/components/MultiSelectWithSearch/ChildMenuItem.d.ts +0 -10
  171. package/build/components/MultiSelectWithSearch/FlatMenuItem.d.ts +0 -9
  172. package/build/components/MultiSelectWithSearch/MultiSelectWithSearch.d.ts +0 -4
  173. package/build/components/MultiSelectWithSearch/ParentMenuItem.d.ts +0 -13
  174. package/build/components/MultiSelectWithSearch/index.d.ts +0 -6
  175. package/build/components/MultiSelectWithSearch/index.js +0 -1
  176. package/build/components/MultiSelectWithSearch/style.d.ts +0 -32
  177. package/build/components/MultiSelectWithSearch/type.d.ts +0 -23
  178. package/build/components/MultiSelectWithSearch/utils.d.ts +0 -4
  179. package/build/components/SelectWithSearch/SearchIcon.d.ts +0 -8
  180. package/build/components/SelectWithSearch/SelectWithSearch.d.ts +0 -4
  181. package/build/components/SelectWithSearch/index.d.ts +0 -4
  182. package/build/components/SelectWithSearch/index.js +0 -1
  183. package/build/components/SelectWithSearch/style.d.ts +0 -28
  184. package/build/components/SelectWithSearch/type.d.ts +0 -34
  185. /package/build/components/{DropdownButton/ChevronIcon.d.ts → DropdownChevronIcon/DropdownChevronIcon.d.ts} +0 -0
@@ -1 +1 @@
1
- var e=(s=>(s.DARK="dark",s.LIGHT="light",s))(e||{}),I=(s=>(s.AR="ar",s.EN="en",s))(I||{});var O=(i=>(i.ONE_TIME="oneTime",i.DAILY="daily",i.MONTHLY="monthly",i))(O||{}),d=(a=>(a.WHATSAPP="whatsapp",a.EMAIL="email",a.SMS="sms",a.CUSTOMER="customer",a))(d||{});var p=(r=>(r.MOBILE_APP="mobile_app",r.WEBSITE="website",r.CALL_CENTER="call_center",r.PHYSICAL_STORE="physical_store",r.SOCIAL_MEDIA="social_media",r.IOS="ios",r.ANDROID="android",r.LINKEDIN="linkedin",r.INSTAGRAM="instagram",r.TWITTER="twitter",r))(p||{});var T=(r=>(r.SAR="SAR",r.BHD="BHD",r.EGP="EGP",r.PKR="PKR",r.KWD="KWD",r.AED="AED",r.QAR="QAR",r.LBP="LBP",r.EUR="EUR",r.USD="USD",r))(T||{});var S=(n=>(n.BUSINESS="BUSINESS",n.PLATFORM="PLATFORM",n.DEVELOPMENT="DEVELOPMENT",n.PSP="PSP",n.PAYMENT_TECHNOLOGY="PAYMENT_TECHNOLOGY",n.PAYMENT_FACILITATOR="PAYMENT_FACILITATOR",n.PAYMENT_ACQUIRER="PAYMENT_ACQUIRER",n.PAYMENT_GATEWAY="PAYMENT_GATEWAY",n.PAYMENT_ISSUER="PAYMENT_ISSUER",n.APP_PLATFORM="APP_PLATFORM",n.BILLING_PLATFORM="BILLING_PLATFORM",n.COMMERCE_PLATFORM="COMMERCE_PLATFORM",n.DEVELOPMENT_HOUSE="DEVELOPMENT_HOUSE",n.PAYMENT_GATEWAY_PROVIDER="PAYMENT_GATEWAY_PROVIDER",n.RETAIL_PLATFORM="RETAIL_PLATFORM",n.MASTER_ORCHESTRATOR="MASTER_ORCHESTRATOR",n))(S||{});var g=(E=>(E.PaymentMethod="PAYMENT_METHOD",E.PaymentCurrency="PAYMENT_CURRENCY",E.PaymentScheme="PAYMENT_SCHEME",E.PaymentType="PAYMENT_TYPE",E.PaymentLocation="PAYMENT_LOCATION",E.PaymentIssuer="PAYMENT_ISSUER",E.PaymentAcquirer="PAYMENT_ACQUIRER",E.PaymentGateway="PAYMENT_GATEWAY",E))(g||{});var m=(_=>(_.TAPOS_FEATURE_EVENT="TAPOS_FEATURE_EVENT",_))(m||{}),D=(o=>(o.PERIOD_ACTION="PERIOD_ACTION",o.WINDOW_ACTION="WINDOW_ACTION",o.REPORT_ACTION="REPORT_ACTION",o.SEARCH_ACTION="SEARCH_ACTION",o.VIEW_ACTION="VIEW_ACTION",o.JSON_ACTION="JSON_ACTION",o.FILTER_ACTION="FILTER_ACTION",o.COPY_ACTION="COPY_ACTION",o.IN_APP_ACTION="IN_APP_ACTION",o.DATA_ENVIRONMENT_ACTION="DATA_ENVIRONMENT_ACTION",o.CALENDAR="CALENDAR",o.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",o.IN_APP_NAVIGATION="IN_APP_NAVIGATION",o.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",o.SIGN_IN_ACTION="SIGN_IN_ACTION",o.SIGN_OUT_ACTION="SIGN_OUT_ACTION",o.SWITCH_SEGMENT_ACTION="SWITCH_SEGMENT_ACTION",o))(D||{}),P=(t=>(t.PREDEFINED_PERIOD="PREDEFINED_PERIOD",t.TIMEZONE_USER="TIMEZONE_USER",t.TIMEZONE_MERCHANT="TIMEZONE_MERCHANT",t.OPEN_WINDOW="OPEN_WINDOW",t.TILE_WINDOW="TILE_WINDOW",t.CLOSE_WINDOW="CLOSE_WINDOW",t.FULL_SCREEN_WINDOW="FULL_SCREEN_WINDOW",t.MINIMIZE_WINDOW="MINIMIZE_WINDOW",t.NORMAL_WINDOW="NORMAL_WINDOW",t.REPORT_CSV="REPORT_CSV",t.SEARCH="SEARCH",t.SHEET_VIEW="SHEET_VIEW",t.STANDARD_VIEW="STANDARD_VIEW",t.CARD_VIEW="CARD_VIEW",t.USER_TEMPLATE="USER_TEMPLATE",t.JSON_RESPONSE="JSON_RESPONSE",t.JSON_COPY="JSON_COPY",t.JSON_COPY_ID="JSON_COPY_ID",t.JSON_REQUEST="JSON_REQUEST",t.JSON_SEARCH="JSON_SEARCH",t.COLLAPSE_JSON_NODES="COLLAPSE_JSON_NODES",t.EXPAND_JSON_NODES="EXPAND_JSON_NODES",t.COLUMN_FILTER="COLUMN_FILTER",t.GENERAL_FILTER="GENERAL_FILTER",t.CALENDAR_GREGORIAN="GREGORIAN",t.CALENDAR_HIJRI="HIJRI",t.SANDBOX_MODE="SANDBOX_MODE",t.LIVE_MODE="LIVE_MODE",t.COPY_ID="COPY_ID",t.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",t.IN_APP_NAVIGATION="IN_APP_NAVIGATION",t.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",t.SIGN_IN="SIGN_IN",t.SIGN_OUT="SIGN_OUT",t.SWITCH_SEGMENT="SWITCH_SEGMENT",t.SEND_REMINDER="SEND_REMINDER",t.CANCEL_INVOICE="CANCEL_INVOICE",t.SEND_INVOICE="SEND_INVOICE",t.VIEW_INVOICE="VIEW_INVOICE",t.REFUND_INVOICE="REFUND_INVOICE",t.UPDATE_METADATA="UPDATE_METADATA",t.CREATE_INVOICE="CREATE_INVOICE",t.CREATE_CHARGE="CREATE_CHARGE",t.VIEW_RECEIPT="VIEW_RECEIPT",t.VOID_AUTHORIZATION="VOID_AUTHORIZATION",t.CAPTURE_AUTHORIZATION="CAPTURE_AUTHORIZATION",t.ADD_USER="ADD_USER",t.UPDATE_USER="UPDATE_USER",t.REMOVE_USER="REMOVE_USER",t.ADD_USER_ROLE="ADD_USER_ROLE",t.REMOVE_USER_ROLE="REMOVE_USER_ROLE",t.ADD_ACCESS_PERMISSION="ADD_ACCESS_PERMISSION",t.REMOVE_ACCESS_PERMISSION="REMOVE_ACCESS_PERMISSION",t.ADD_APP_PERMISSION="ADD_APP_PERMISSION",t.REMOVE_APP_PERMISSION="REMOVE_APP_PERMISSION",t.ADD_FEATURE_PERMISSION="ADD_FEATURE_PERMISSION",t.REMOVE_FEATURE_PERMISSION="REMOVE_FEATURE_PERMISSION",t.ADD_BRAND="ADD_BRAND",t.UPDATE_BRAND="UPDATE_BRAND",t.REMOVE_BRAND="REMOVE_BRAND",t.ADD_BRAND_SALES_CHANNEL="ADD_BRAND_SALES_CHANNEL",t.REMOVE_BRAND_SALES_CHANNEL="REMOVE_BRAND_SALES_CHANNEL",t.DOWNLOAD_REPORT_FILE="DOWNLOAD_REPORT_FILE",t.UPDATE_TEAM_ASSIGNEE="UPDATE_TEAM_ASSIGNEE",t.ADD_TEAM_MEMBER="ADD_TEAM_MEMBER",t.UPDATE_BUSINESS_NAME="UPDATE_BUSINESS_NAME",t.DETAILED_STATEMENT="DETAILED_STATEMENT",t.AGGREGATE_STATEMENT_PER_DAY="AGGREGATE_STATEMENT_PER_DAY",t.AGGREGATE_STATEMENT_PER_MONTH="AGGREGATE_STATEMENT_PER_MONTH",t.AGGREGATE_STATEMENT_PER_QUARTER="AGGREGATE_STATEMENT_PER_QUARTER",t.AGGREGATE_STATEMENT_PER_YEAR="AGGREGATE_STATEMENT_PER_YEAR",t))(P||{});var R=(A=>(A.BRAND="brand",A.ENTITY="entity",A.USERS="users",A.USER_ROLES="userRoles",A.APP_SETTINGS="appSettings",A))(R||{}),c=(i=>(i.ACCEPTANCE="ACCEPTANCE",i.WALLET="WALLET",i.RISK="RISK",i))(c||{});var M=(n=>(n.OnClickTableAction="on-click-table-action",n.OnRightClickTableAction="on-right-click-table-action",n.OnToggleTableMode="on-toggle-table-mode",n.OnChangeTableMode="on-change-table-mode",n.OnChangeCalenderMode="on-change-calender-mode",n.OnChangeTimezone="on-change-timezone",n.OnNavigate="on-navigate",n.OnStartDrag="on-start-drag",n.OnChangeAppToolbar="on-change-app-toolbar",n.OnToast="on-toast",n.OnInvalidateQueries="on-invalidate_queries",n.OnCloseApp="on-close-app",n.OnOpenChildApp="on-open-child-app",n.OnModifyRemotePayload="on-modify-remote-payload",n.OnAccountDataChanged="on-account-data-changed",n.OnPreloadApps="on-preload-apps",n))(M||{});var f=(i=>(i.NO_DISCOUNT="noDiscount",i.PERCENT="percent",i.FLAT="flat",i))(f||{});var b=(i=>(i.ALL="all",i.ENABLED="enabled",i.DISABLED="disabled",i))(b||{});var u=(a=>(a.COMPLETED="COMPLETED",a.FAILED="FAILED",a.PROCESSING="PROCESSING",a.INITIATED="INITIATED",a))(u||{});export{e as a,I as b,O as c,d,p as e,T as f,S as g,g as h,m as i,D as j,P as k,R as l,c as m,M as n,f as o,b as p,u as q};
1
+ var e=(A=>(A.DARK="dark",A.LIGHT="light",A))(e||{}),I=(A=>(A.AR="ar",A.EN="en",A))(I||{});var d=(i=>(i.ONE_TIME="oneTime",i.DAILY="daily",i.MONTHLY="monthly",i))(d||{}),O=(a=>(a.WHATSAPP="whatsapp",a.EMAIL="email",a.SMS="sms",a.CUSTOMER="customer",a))(O||{});var p=(r=>(r.MOBILE_APP="mobile_app",r.WEBSITE="website",r.CALL_CENTER="call_center",r.PHYSICAL_STORE="physical_store",r.SOCIAL_MEDIA="social_media",r.IOS="ios",r.ANDROID="android",r.LINKEDIN="linkedin",r.INSTAGRAM="instagram",r.TWITTER="twitter",r))(p||{});var S=(r=>(r.SAR="SAR",r.BHD="BHD",r.EGP="EGP",r.PKR="PKR",r.KWD="KWD",r.AED="AED",r.QAR="QAR",r.LBP="LBP",r.EUR="EUR",r.USD="USD",r))(S||{});var T=(n=>(n.BUSINESS="BUSINESS",n.PLATFORM="PLATFORM",n.DEVELOPMENT="DEVELOPMENT",n.PSP="PSP",n.PAYMENT_TECHNOLOGY="PAYMENT_TECHNOLOGY",n.PAYMENT_FACILITATOR="PAYMENT_FACILITATOR",n.PAYMENT_ACQUIRER="PAYMENT_ACQUIRER",n.PAYMENT_GATEWAY="PAYMENT_GATEWAY",n.PAYMENT_ISSUER="PAYMENT_ISSUER",n.APP_PLATFORM="APP_PLATFORM",n.BILLING_PLATFORM="BILLING_PLATFORM",n.COMMERCE_PLATFORM="COMMERCE_PLATFORM",n.DEVELOPMENT_HOUSE="DEVELOPMENT_HOUSE",n.PAYMENT_GATEWAY_PROVIDER="PAYMENT_GATEWAY_PROVIDER",n.RETAIL_PLATFORM="RETAIL_PLATFORM",n.MASTER_ORCHESTRATOR="MASTER_ORCHESTRATOR",n))(T||{});var g=(E=>(E.PaymentMethod="PAYMENT_METHOD",E.PaymentCurrency="PAYMENT_CURRENCY",E.PaymentScheme="PAYMENT_SCHEME",E.PaymentType="PAYMENT_TYPE",E.PaymentLocation="PAYMENT_LOCATION",E.PaymentIssuer="PAYMENT_ISSUER",E.PaymentAcquirer="PAYMENT_ACQUIRER",E.PaymentGateway="PAYMENT_GATEWAY",E))(g||{});var m=(_=>(_.TAPOS_FEATURE_EVENT="TAPOS_FEATURE_EVENT",_))(m||{}),D=(o=>(o.PERIOD_ACTION="PERIOD_ACTION",o.WINDOW_ACTION="WINDOW_ACTION",o.REPORT_ACTION="REPORT_ACTION",o.SEARCH_ACTION="SEARCH_ACTION",o.VIEW_ACTION="VIEW_ACTION",o.JSON_ACTION="JSON_ACTION",o.FILTER_ACTION="FILTER_ACTION",o.COPY_ACTION="COPY_ACTION",o.IN_APP_ACTION="IN_APP_ACTION",o.DATA_ENVIRONMENT_ACTION="DATA_ENVIRONMENT_ACTION",o.CALENDAR="CALENDAR",o.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",o.IN_APP_NAVIGATION="IN_APP_NAVIGATION",o.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",o.SIGN_IN_ACTION="SIGN_IN_ACTION",o.SIGN_OUT_ACTION="SIGN_OUT_ACTION",o.SWITCH_SEGMENT_ACTION="SWITCH_SEGMENT_ACTION",o))(D||{}),P=(t=>(t.PREDEFINED_PERIOD="PREDEFINED_PERIOD",t.TIMEZONE_USER="TIMEZONE_USER",t.TIMEZONE_MERCHANT="TIMEZONE_MERCHANT",t.OPEN_WINDOW="OPEN_WINDOW",t.TILE_WINDOW="TILE_WINDOW",t.CLOSE_WINDOW="CLOSE_WINDOW",t.FULL_SCREEN_WINDOW="FULL_SCREEN_WINDOW",t.MINIMIZE_WINDOW="MINIMIZE_WINDOW",t.NORMAL_WINDOW="NORMAL_WINDOW",t.REPORT_CSV="REPORT_CSV",t.SEARCH="SEARCH",t.SHEET_VIEW="SHEET_VIEW",t.STANDARD_VIEW="STANDARD_VIEW",t.CARD_VIEW="CARD_VIEW",t.USER_TEMPLATE="USER_TEMPLATE",t.JSON_RESPONSE="JSON_RESPONSE",t.JSON_COPY="JSON_COPY",t.JSON_COPY_ID="JSON_COPY_ID",t.JSON_REQUEST="JSON_REQUEST",t.JSON_SEARCH="JSON_SEARCH",t.COLLAPSE_JSON_NODES="COLLAPSE_JSON_NODES",t.EXPAND_JSON_NODES="EXPAND_JSON_NODES",t.COLUMN_FILTER="COLUMN_FILTER",t.GENERAL_FILTER="GENERAL_FILTER",t.CALENDAR_GREGORIAN="GREGORIAN",t.CALENDAR_HIJRI="HIJRI",t.SANDBOX_MODE="SANDBOX_MODE",t.LIVE_MODE="LIVE_MODE",t.COPY_ID="COPY_ID",t.APP_SERVICE_NAVIGATION="APP_SERVICE_NAVIGATION",t.IN_APP_NAVIGATION="IN_APP_NAVIGATION",t.CROSS_APP_NAVIGATION="CROSS_APP_NAVIGATION",t.SIGN_IN="SIGN_IN",t.SIGN_OUT="SIGN_OUT",t.SWITCH_SEGMENT="SWITCH_SEGMENT",t.SEND_REMINDER="SEND_REMINDER",t.CANCEL_INVOICE="CANCEL_INVOICE",t.SEND_INVOICE="SEND_INVOICE",t.VIEW_INVOICE="VIEW_INVOICE",t.REFUND_INVOICE="REFUND_INVOICE",t.UPDATE_METADATA="UPDATE_METADATA",t.CREATE_INVOICE="CREATE_INVOICE",t.CREATE_CHARGE="CREATE_CHARGE",t.VIEW_RECEIPT="VIEW_RECEIPT",t.VOID_AUTHORIZATION="VOID_AUTHORIZATION",t.CAPTURE_AUTHORIZATION="CAPTURE_AUTHORIZATION",t.ADD_USER="ADD_USER",t.UPDATE_USER="UPDATE_USER",t.REMOVE_USER="REMOVE_USER",t.ADD_USER_ROLE="ADD_USER_ROLE",t.REMOVE_USER_ROLE="REMOVE_USER_ROLE",t.ADD_ACCESS_PERMISSION="ADD_ACCESS_PERMISSION",t.REMOVE_ACCESS_PERMISSION="REMOVE_ACCESS_PERMISSION",t.ADD_APP_PERMISSION="ADD_APP_PERMISSION",t.REMOVE_APP_PERMISSION="REMOVE_APP_PERMISSION",t.ADD_FEATURE_PERMISSION="ADD_FEATURE_PERMISSION",t.REMOVE_FEATURE_PERMISSION="REMOVE_FEATURE_PERMISSION",t.ADD_BRAND="ADD_BRAND",t.UPDATE_BRAND="UPDATE_BRAND",t.REMOVE_BRAND="REMOVE_BRAND",t.ADD_BRAND_SALES_CHANNEL="ADD_BRAND_SALES_CHANNEL",t.REMOVE_BRAND_SALES_CHANNEL="REMOVE_BRAND_SALES_CHANNEL",t.DOWNLOAD_REPORT_FILE="DOWNLOAD_REPORT_FILE",t.UPDATE_TEAM_ASSIGNEE="UPDATE_TEAM_ASSIGNEE",t.ADD_TEAM_MEMBER="ADD_TEAM_MEMBER",t.UPDATE_BUSINESS_NAME="UPDATE_BUSINESS_NAME",t.DETAILED_STATEMENT="DETAILED_STATEMENT",t.AGGREGATE_STATEMENT_PER_DAY="AGGREGATE_STATEMENT_PER_DAY",t.AGGREGATE_STATEMENT_PER_MONTH="AGGREGATE_STATEMENT_PER_MONTH",t.AGGREGATE_STATEMENT_PER_QUARTER="AGGREGATE_STATEMENT_PER_QUARTER",t.AGGREGATE_STATEMENT_PER_YEAR="AGGREGATE_STATEMENT_PER_YEAR",t))(P||{});var R=(s=>(s.BRAND="brand",s.ENTITY="entity",s.USERS="users",s.USER_ROLES="userRoles",s.SHAREHOLDERS="shareholders",s.APP_SETTINGS="appSettings",s))(R||{}),c=(i=>(i.ACCEPTANCE="ACCEPTANCE",i.WALLET="WALLET",i.RISK="RISK",i))(c||{});var M=(n=>(n.OnClickTableAction="on-click-table-action",n.OnRightClickTableAction="on-right-click-table-action",n.OnToggleTableMode="on-toggle-table-mode",n.OnChangeTableMode="on-change-table-mode",n.OnChangeCalenderMode="on-change-calender-mode",n.OnChangeTimezone="on-change-timezone",n.OnNavigate="on-navigate",n.OnStartDrag="on-start-drag",n.OnChangeAppToolbar="on-change-app-toolbar",n.OnToast="on-toast",n.OnInvalidateQueries="on-invalidate_queries",n.OnCloseApp="on-close-app",n.OnOpenChildApp="on-open-child-app",n.OnModifyRemotePayload="on-modify-remote-payload",n.OnAccountDataChanged="on-account-data-changed",n.OnPreloadApps="on-preload-apps",n))(M||{});var f=(i=>(i.NO_DISCOUNT="noDiscount",i.PERCENT="percent",i.FLAT="flat",i))(f||{});var b=(i=>(i.ALL="all",i.ENABLED="enabled",i.DISABLED="disabled",i))(b||{});var u=(a=>(a.COMPLETED="COMPLETED",a.FAILED="FAILED",a.PROCESSING="PROCESSING",a.INITIATED="INITIATED",a))(u||{});export{e as a,I as b,d as c,O as d,p as e,S as f,T as g,g as h,m as i,D as j,P as k,R as l,c as m,M as n,f as o,b as p,u as q};
@@ -1,4 +1,4 @@
1
- import {a as a$3}from'./chunk-QVGSIVO2.js';import {a,b,f as f$1,d,c,h as h$1,i,e}from'./chunk-ZDU6AH4F.js';import {a as a$4}from'./chunk-2DC5PMER.js';import {a as a$1}from'./chunk-VWIY6RR5.js';import {a as a$2,b as b$1}from'./chunk-MUR4ILTY.js';import {f,aa,j,P,O,h,ba}from'./chunk-YHKF6F6S.js';import {yc,Ac}from'./chunk-PLMJIRXJ.js';import {Pc,A}from'./chunk-YKKS24ES.js';import*as de from'react';import de__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import ne from'@mui/material/Box';import Ft from'@mui/material/Button';import Ct from'@mui/material/Input';import lo from'@mui/material/ListSubheader';import io from'@mui/material/MenuItem';import {keyframes,styled,alpha}from'@mui/material/styles';import Rt from'@mui/material/Popper';import Lt from'@mui/material/TextField';function st({onSubmit:e,methods:o,children:t}){let r=yc(useId(),"default-form");return jsx(FormProvider,{...o,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:t})})}var ut=de__default.memo(st);var Xe=de.forwardRef(({name:e,helperText:o,hideArrows:t,feedback:r,...n},l)=>{let{control:s}=useFormContext();return jsx(Controller,{name:e,control:s,defaultValue:n.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...n,...d,ref:l,hasError:!!u.error,helperText:o??u.error?.message,feedback:r,hideArrows:t,onChange:h=>{d.onChange(h),n.onChange?.(h);},onWheel:h=>{h.target instanceof HTMLElement&&h.target.blur();}})})});Xe.displayName="RFHFormInput";var Ze=de.memo(Xe);var ht=Ze;function oo({phoneName:e,countries:o,countryName:t,helperText:r,isCountriesLoading:n,disabled:l,feedback:s,...d}){let{control:u,watch:h,setValue:f}=useFormContext(),F=h(t),S=x=>{f(t,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:m},fieldState:a})=>jsx(h$1,{...d,phoneValue:m,countries:o,hasError:!!a.error,helperText:r??a.error?.message,feedback:s,onPhoneChange:C=>{x(C);},disabled:l,countryValue:F,onCountryChange:S,isCountriesLoading:n})})}oo.displayName="RFHPhoneInput";var to=oo;var gt=to;var Ie=(e,o)=>e.toFixed(o);function ro({amountName:e,currencies:o,currencyName:t,helperText:r,isCurrenciesLoading:n,...l}){let{control:s,watch:d,setValue:u}=useFormContext(),h=d(t),f=d(e),F=S=>{u(t,S),u(e,Ie(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:s,render:({field:{onChange:S,value:x},fieldState:m})=>jsx(i,{...l,amountValue:x??"",currencies:o,hasError:!!m.error,helperText:r??m.error?.message,onAmountChange:a=>{S(a);},onAmountBlur:a=>{S(Ie(Number(a),h?.decimals||2));},currencyValue:h,onCurrencyChange:F,isCurrenciesLoading:n})})}ro.displayName="RFHAmountInput";var ao=ro;var yt=ao;var Mt=keyframes`
1
+ import {a as a$3}from'./chunk-QVGSIVO2.js';import {a,b,f as f$1,d,c,h as h$1,i,e}from'./chunk-QM55EFW3.js';import {a as a$4}from'./chunk-2DC5PMER.js';import {a as a$1}from'./chunk-VWIY6RR5.js';import {a as a$2,b as b$1}from'./chunk-MUR4ILTY.js';import {f,aa,j,P,O,h,ba}from'./chunk-YHKF6F6S.js';import {yc,Ac}from'./chunk-PLMJIRXJ.js';import {Pc,A}from'./chunk-YKKS24ES.js';import*as de from'react';import de__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import ne from'@mui/material/Box';import Ft from'@mui/material/Button';import Ct from'@mui/material/Input';import lo from'@mui/material/ListSubheader';import io from'@mui/material/MenuItem';import {keyframes,styled,alpha}from'@mui/material/styles';import Rt from'@mui/material/Popper';import Lt from'@mui/material/TextField';function st({onSubmit:e,methods:o,children:t}){let r=yc(useId(),"default-form");return jsx(FormProvider,{...o,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:t})})}var ut=de__default.memo(st);var Xe=de.forwardRef(({name:e,helperText:o,hideArrows:t,feedback:r,...n},l)=>{let{control:s}=useFormContext();return jsx(Controller,{name:e,control:s,defaultValue:n.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...n,...d,ref:l,hasError:!!u.error,helperText:o??u.error?.message,feedback:r,hideArrows:t,onChange:h=>{d.onChange(h),n.onChange?.(h);},onWheel:h=>{h.target instanceof HTMLElement&&h.target.blur();}})})});Xe.displayName="RFHFormInput";var Ze=de.memo(Xe);var ht=Ze;function oo({phoneName:e,countries:o,countryName:t,helperText:r,isCountriesLoading:n,disabled:l,feedback:s,...d}){let{control:u,watch:h,setValue:f}=useFormContext(),F=h(t),S=x=>{f(t,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:m},fieldState:a})=>jsx(h$1,{...d,phoneValue:m,countries:o,hasError:!!a.error,helperText:r??a.error?.message,feedback:s,onPhoneChange:C=>{x(C);},disabled:l,countryValue:F,onCountryChange:S,isCountriesLoading:n})})}oo.displayName="RFHPhoneInput";var to=oo;var gt=to;var Ie=(e,o)=>e.toFixed(o);function ro({amountName:e,currencies:o,currencyName:t,helperText:r,isCurrenciesLoading:n,...l}){let{control:s,watch:d,setValue:u}=useFormContext(),h=d(t),f=d(e),F=S=>{u(t,S),u(e,Ie(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:s,render:({field:{onChange:S,value:x},fieldState:m})=>jsx(i,{...l,amountValue:x??"",currencies:o,hasError:!!m.error,helperText:r??m.error?.message,onAmountChange:a=>{S(a);},onAmountBlur:a=>{S(Ie(Number(a),h?.decimals||2));},currencyValue:h,onCurrencyChange:F,isCurrenciesLoading:n})})}ro.displayName="RFHAmountInput";var ao=ro;var yt=ao;var Mt=keyframes`
2
2
  0% {
3
3
  transform: rotate(-90deg);
4
4
  }
@@ -0,0 +1 @@
1
+ import {yc,Wb}from'./chunk-PLMJIRXJ.js';import {Eb}from'./chunk-YKKS24ES.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=yc(useId(),"file-preview");return jsx(Fragment,{children:e?.map((t,d)=>{let a=Wb(t)?b(t.file):null,k=Wb(t)&&t.file.type.includes("application/pdf"),l=Wb(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:Wb(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}),!Wb(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 +1 @@
1
- import {f,b as b$1,g,a as a$2,e,d,c as c$1}from'./chunk-DGAX7HUY.js';import {a as a$4}from'./chunk-GPH7KOOS.js';import {a as a$1}from'./chunk-2DC5PMER.js';import {c}from'./chunk-ITYEJ5K7.js';import {a}from'./chunk-ZONDSLTR.js';import {o,j as j$1,k,l,p as p$1}from'./chunk-U7VUIT37.js';import {a as a$3}from'./chunk-54RTNLV2.js';import {b}from'./chunk-AWNFVAW7.js';import {p,z}from'./chunk-YHKF6F6S.js';import {Va,yc,Ha,Ia,bc,f as f$1}from'./chunk-PLMJIRXJ.js';import {s}from'./chunk-WHXHVOBY.js';import {T,yi,Ai,zi,xi,Ei,ch,Vg,bh,Rj,Sj,tb,gk,jk,Ak,hk,ub,va,ua,sk,h,Ug}from'./chunk-YKKS24ES.js';import {useId,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {styled,Box,useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {motion}from'framer-motion';import {styled as styled$1,useTheme as useTheme$1}from'@mui/material/styles';import _ from'lodash/camelCase';import Qe from'@mui/material/Box';var lt={ORDER:{label:"order",icon:xi,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:zi,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:Ai,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:yi,color:"#32ADE6"}},dt={SAVED_TOKEN:{label:"savedToken",icon:T,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)}));styled("img")(()=>({width:"35px",height:"16px",display:"block"}));styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled("img")(()=>({maxWidth:"100%",width:"100%"}));var ct=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),mt=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function Ie({type:t,hasSavedCard:o,totalPaymentsCount:e,isTextShown:r}){let l=yc(useId(),"agreement-icon"),p$1=useTheme(),{t:a$2}=useTranslation(),n=useMemo(()=>[...o?[dt.SAVED_TOKEN]:[],...(e||0)>0?[dt.COUNT]:[],...t&&lt[t]?[lt[t]]:[]],[o,e,t]),d=c=>r?jsx(a,{"data-testid":"AgreementCell_countBadge",children:jsx(p,{title:a$2("totalPaymentCount",{amount:f$1(e)}),children:jsx(mt,{children:jsxs(ct,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:dt.COUNT.color},children:["x",e]})})})},c):jsx(a$4,{value:e,index:c},c),s=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(p,{title:a$2(c.label),children:jsx(a,{children:r?jsx(mt,{children:jsx(ct,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:a$2(c.label)})}):jsx(a$1,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(p,{title:"No agreement",children:jsx(a,{children:r?jsx(mt,{children:jsx(ct,{"data-testid":"AgreementCell_agreementType",sx:{color:p$1.palette.text.secondary},children:"No agreement"})}):jsx(a$1,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:Ei,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:s?.length>0?s:f})}var To=Ie;var Ce=To;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));styled("img")(()=>({maxWidth:"36px",maxHeight:"24px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var Ao=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),Po=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var Wo=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var kt={"3DS":{tooltip:"3DS",icon:Sj,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Rj,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:bh,borderColor:"rgba(31, 136, 208, 0.10)"}},vo={FAILED:{tooltip:"Failed",icon:Vg,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:ch,borderColor:"rgba(255, 61, 0, 0.10)"}};function be({transactionStatus:t,eci:o,authType:e,isTextShown:r}){let l=yc(useId(),"auth-icons"),p$1=useMemo(()=>{let n=t?vo[t]:null,d=n?.tooltip,s=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:s,type:r?"text":"icon"},...e?[{tooltip:e,content:r?kt[e]?.tooltip:kt[e]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:o?`ECI ${o}`:"",type:"text"}]},[t,r,e,o]),a=useMemo(()=>p$1.filter(n=>!!n.content).map((n,d)=>{let s=n.type==="text"?jsx(Po,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(Ao,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$1,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(p,{title:n.tooltip,children:s},`${n.tooltip}-${d}`)}),[p$1]);return jsx(Wo,{id:l,"data-testid":"AuthIcons",children:a})}var ko=be;var Se=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:e?t*e:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o,...t>0&&{opacity:1}}});var Te=ko;var tt={VOID:{icon:hk},CAPTURED:{icon:gk}};var ut=styled$1(motion.div)(({theme:t,isCapture:o})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:o?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),ft=styled$1("div")(({theme:t,percentage:o,isCapture:e})=>({border:`0.6px ${[0,100].includes(o)?"solid":"dashed"} ${e?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:e?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),xt=styled$1("div")(({percentage:t,isCapture:o,theme:e})=>({background:`conic-gradient(${o?e.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?e.palette.info.dark:"#656565"}`})),gt=styled$1("img")({width:"14px",height:"14px"}),j=styled$1(o)({width:"16px",height:"16px"}),N=styled$1("img")({width:"16px",height:"16px"}),Bo=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function It(t){return t<5?5:t===100?95:t}function Be({voidPercentage:t,capturePercentage:o,captureCount:e,autoType:r,captureAmount:l,voidAmount:p$1,currency:a,isTextShown:n,remainingAmount:d,isSheetViewShown:s,selectionProps:f={}}){let c=Number(o)+Number(t)===100||d<=0,g=yc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Ha(d||0),L=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),J=useCallback(C=>{let X=C==="Capture"?l:p$1,{integerAmount:D,decimalAmount:v}=Ia(X,a);return `Partial ${C} - ${a} ${D}.${v}`},[l,p$1,a]),x=o>0?jsx(p,{title:J("Capture"),children:jsxs(ut,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(gt,{src:tb,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(ft,{isCapture:true,percentage:o,children:[o,"% ",jsx(xt,{isCapture:true,percentage:It(o)})]}),e>1&&jsxs(z,{compact:true,color:"dark",children:[e,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(p,{title:L("Capture"),children:jsx(j,{children:jsx(N,{src:tt.CAPTURED?.icon,alt:"auto"})})}):jsx(p,{title:L("Capture"),children:jsx(j,{children:jsx(N,{src:tt.CAPTURED?.icon,alt:"auto"})})}),I=o===100?jsx(p,{title:A("captured"),children:jsx(Bo,{children:jsx(N,{src:jk,alt:"captured"})})}):x,W=useMemo(()=>s&&I?jsx(b,{chipIndex:4,copyText:A("captured"),selectionProps:f,children:A("captured")}):n&&I?jsx(k,{children:A("captured")}):I,[n,I,s,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var Do=Be;function Ve({voidPercentage:t,capturePercentage:o,voidCount:e,autoType:r,captureAmount:l$1,voidAmount:p$1,currency:a,isTextShown:n,isSheetViewShown:d,selectionProps:s={},remainingAmount:f}){let c=Number(o)+Number(t)===100||f<=0,g=yc(useId(),"void-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Ha(f||0),L=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),J=useCallback(C=>{let X=C==="Capture"?l$1:p$1,{integerAmount:D,decimalAmount:v}=Ia(X,a);return `Partial ${C} - ${a} ${D}.${v}`},[l$1,p$1,a]),x=t>0||p$1?jsx(p,{title:J("Void"),children:jsxs(ut,{isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:T.palette.common.white,border:`0.75px solid ${T.palette.grey[600]}1A`},variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(gt,{src:Ak,alt:"void"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(ft,{percentage:t,children:[t,"% ",jsx(xt,{percentage:It(t)})]}),e>0&&jsxs(z,{compact:true,color:"neutral",children:[e,"x"]})]})]})}):r==="VOID"&&!c?jsx(p,{title:L("Void"),children:jsx(j,{children:jsx(N,{src:tt.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(p,{title:A("void"),children:jsx(j,{children:jsx(N,{src:Ak,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b,{chipIndex:5,copyText:A("void"),selectionProps:s,children:A("void")}):n&&I?jsx(l,{children:A("void")}):I,[n,I,d,s]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var $o=Ve;var Me=Do;var Fe=({authorizedStatus:t,isTextShown:o,iconStyles:e,tableMode:r,chipIndex:l=0,selectionProps:p$1={}})=>{let{t:a}=useTranslation(),n=useTheme$1(),d=a(_(t));return Va(r)?jsx(b,{copyText:d,chipIndex:l,selectionProps:p$1,children:d}):jsx(p,{title:d,children:o?jsx(j$1,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$1,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:e})})};var _o=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,display:"block",fontWeight:t.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:t.spacing(.45)})),Vo=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Bt=styled$1("img")(()=>({width:"10px",height:"10px"})),Lt=styled$1(motion.span)(({theme:t})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),Dt=styled$1(motion.div,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!t&&{padding:"0 !important"}})),Mo=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),zo=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),No={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Go={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},Fo={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},Uo={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},Et={fadeIn:{duration:.3},animate:{duration:.1}},Oo={fadeIn:{opacity:1}},jo=styled$1(j$1)(()=>({width:"88px",height:"100%"})),$t=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function qe({chargeStatus:t,gatewayTooltip:o$1,acquirerTooltip:e,chargeTooltip:r,errorCode:l,isTextShown:p$2,gatewayCode:a,acquirerCode:n,unCapturedStyles:d,iconStyles:s$1,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:A=true,isSheetViewShown:P=false,selectionProps:L={},chipIndex:J=0}){let x=t?b$1[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),X=yc(useId(),"charge-status-icon"),D=r&&jsx(Fragment,{children:jsx("div",{children:r})}),v=e&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:e})]}),Y=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:o$1})]}),Ft=t&&a$2[t]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:x?"50%":"",...f},children:jsx(p$1,{src:a$2[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...s$1}})});return P?jsxs($t,{children:[jsxs(b,{copyText:C(_(t)),chipIndex:J,selectionProps:L,children:[C(_(t))," ",l]}),x&&jsxs(Fragment,{children:[a&&jsxs(b,{copyText:"Gateway",chipIndex:1,selectionProps:L,children:["Gateway ",a]}),n&&jsxs(b,{copyText:"Acquirer",chipIndex:2,selectionProps:L,children:["Acquirer ",n]})]})]}):p$2?jsxs($t,{children:[jsx(p,{title:D,children:jsxs(jo,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark,borderColor:`${x?.color||I?.color||W.palette.info.dark}1A`},children:[C(_(t))," ",l]})}),x&&jsxs(Fragment,{children:[a&&jsx(p,{title:Y,children:jsxs(j$1,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",a]})}),n&&jsx(p,{title:v,children:jsxs(j$1,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:X,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:s?.includes(t||"")&&(D||v||Y)?jsxs(zo,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...A&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Mo,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(p,{title:D??C(_(t)),children:jsxs(Fragment,{children:[Ft,jsx(Vo,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:Uo,style:{...l&&{padding:"0 !important"}},children:jsx(_o,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:No,variants:Oo,initial:{opacity:0},children:l})})]})})}),jsx(Dt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:Et,variants:Go,style:g$1,isVisible:!!Y,children:Y&&jsx(p,{title:Y,children:jsx(Lt,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx(Bt,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx(Dt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:Et,variants:Fo,style:g$1,isVisible:!!v,children:v&&jsx(p,{title:v,children:jsx(Lt,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx(Bt,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(p,{title:D??C(_(t)),children:jsx(o,{children:Ft})})})}var Xe=()=>{let{t}=useTranslation(),o=yc(useId(),"customer-initiated-icon");return jsx(p,{title:t("merchantInitiated"),children:jsx("img",{id:o,"data-testid":"merchantInitiatedIcon",src:ub,alt:"merchant",style:{width:"16px",height:"16px"}})})};var Ye={G:"Global",R:"Regional",L:"Local"},ot=({geographyVariant:t,countryCode:o,isTextShown:e})=>{let r=t?Ye[t]:void 0,l=r||o?`${r||""} ${r&&o?"-":""} ${o?`Country - ${o}`:""}`:void 0;return e||!o?null:jsx(p,{title:l,children:jsx(a$3,{countryCode:o})})};var tr=({geographyVariant:t,isTextShown:o,deviceCountry:e,deviceType:r,tableMode:l})=>{let p=yc(useId(),"device-icon-chip");return jsxs(Qe,{id:p,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...Va(l)&&{height:"18px"}},children:[jsx(ot,{geographyVariant:t,isTextShown:o,countryCode:e}),jsx(c,{type:r,isTextShown:o,tableMode:l})]})};var rr=({isDisputeOpen:t,iconStyles:o})=>{let e=yc(useId(),"dispute-icon");return jsx(p$1,{id:e,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?va:ua,alt:"dispute-icon",style:o})};var Xo=styled$1(Qe,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:o})=>({display:"flex",gap:t.spacing(.5),...Va(o)&&{height:"18px"},alignItems:"center"})),Yo=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Vt({countryCode:t,isTextShown:o,cardNumber:e,bankName:r,tableMode:l}){let p$1=yc(useId(),"issuer-icon"),a=e?.slice(0,4),n=e?.slice(-4);return jsxs(Xo,{id:p$1,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(ot,{countryCode:t,isTextShown:o}),jsx(p,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(Yo,{children:`${a||""} ${n||""}`})})]})}var sr=Vt;styled(motion.div)(({theme:t,background:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:o,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Ra=styled("img")(()=>({height:"13.125px",width:"12px"})),bt=styled("div")(()=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",width:"65px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4.5px 8px",borderRadius:"24px"})),ka=styled("div")(({theme:t})=>({color:t.palette.common.white,background:t.palette.error.main,fontSize:"0.6rem",fontWeight:600,borderRadius:"16px",padding:"2px 8px",display:"flex",alignItems:"center",justifyContent:"center"})),Ba=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var ur=({payoutStatus:t="PENDING",isTextShown:o,payoutTooltip:e$1,iconStyles:r,isSheetViewShown:l,chipIndex:p$2=0,selectionProps:a={}})=>{let{t:n}=useTranslation(),d=yc(useId(),"payout-icon"),s=n(_(t)),f=e$1||s;return l?jsx(b,{chipIndex:p$2,copyText:s,selectionProps:a,children:s}):jsx(p,{title:f,children:o?jsx(bt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:s}):jsx(p$1,{id:d,src:e[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var Qo=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),Zo=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,borderRadius:t.spacing(.5),height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600,backgroundColor:t.palette.secondary.main})),Mt=styled$1(motion.div)(({theme:t})=>({height:"16px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${t.palette.secondary.main}1A`,paddingInline:t.spacing(.5),borderRadius:"56px"})),qa=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:e?t*e:t*49,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o}}),Ka=styled$1(motion.span)(({isTextShown:t,theme:o})=>({border:`1px solid ${o.palette.divider}`,borderRadius:"12px",backgroundColor:o.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),Ja=styled$1(motion.div,{shouldForwardProp:t=>t!=="order"})(({order:t=0})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:0,left:0,zIndex:t+6,width:"fit-content",height:"24px",cursor:"pointer",borderRadius:"16px","&:hover":{zIndex:200}})),Xa=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t=1})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",minWidth:`${t*6+36}px`,height:"24px",cursor:"pointer",borderRadius:"16px",overflow:"visible"})),Ya=styled$1("div")(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var hr=({isTextShown:t,refundStatus:o="PENDING",refundTooltip:e="",refundCount:r,iconStyles:l,isSheetViewShown:p$2,chipIndex:a=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),s=useTheme$1(),f=yc(useId(),"refund-icon"),c=(r||0)>1,g=d$1(_(o));if(p$2)return jsxs(b,{chipIndex:a,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(Zo,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[r,"x"]});return t?jsx(p,{title:jsx("div",{children:jsx("div",{children:e})}),children:jsx(bt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[o].color,backgroundColor:d[o].backgroundColor,width:"90px"},children:jsxs(Mt,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(p,{title:jsx("div",{children:jsx("div",{children:e})}),children:c?jsxs(Mt,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[jsx(Qo,{src:sk,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p$1,{id:f,src:c$1[o],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},te=hr;var Cr=te;var yr={american_express:"AMEX",debit:"card",credit:"card",unionpay:"UnionPay",jaywan:"JAYWAN"},B=t=>yr[t?.toLowerCase()||""]||t;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var oe=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var ee=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),re=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));var ne=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function At({source:t,isTextShown:o,title:e,width:r,height:l,imgSx:p$1}){let{t:a}=useTranslation(),n=h(t);return jsx(p,{title:e,children:o?jsx(re,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(ee,{"data-testid":"SourceCell_TextLabel","data-source":t,children:a(_(t))})}):jsx(oe,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:p$1})})}function vr({payment:t,card:o,isTextShown:e,firstIcon:r}){let l=yc(useId(),"source-icons"),{t:p}=useTranslation(),a=useCallback(()=>{let s=[],f=bc(t),c=t?.method,g=t?.scheme;return B(c)?.toLowerCase()===B(g)?.toLowerCase()?s.push(B(c),B(f)):s.push(B(c),B(f),B(g)),s},[t]),n=useMemo(()=>jsx(At,{source:r,isTextShown:e,title:p(_(r))},r),[r,e,p]),d=useMemo(()=>a()?.filter(s=>!!s&&s!==r)?.map((s,f,c)=>{let g=t?.wallet===p("sv_wallet")?p("storedValueWallet"):p("passThruWallet"),T=f===c.length-1&&o?.last_four?`${p(_(s))} - ${o?.last_four}`:p(_(s));return jsx(At,{source:s,isTextShown:e,title:f===0&&s==="Wallet"?g:T},`${s}-${f}`)}),[a,t,o,e,p,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,o?.last_four&&jsxs(ne,{children:["\xB7\xB7\xB7 ",o?.last_four]})]})}var rt={PROCESSED:Ug,FAILED:""};var se=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),le=styled("img")(()=>({width:"16px",height:"16px"})),de=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));function ce({status:t,isTextShown:o,isSheetViewShown:e,chipIndex:r=0,selectionProps:l={}}){let p$1=useTheme(),{t:a}=useTranslation(),n=yc(useId(),"destination-icon"),d=a(_(t));return e&&rt[t]?jsx(b,{copyText:d,chipIndex:r,selectionProps:l,children:d}):o&&rt[t]?jsx(se,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?p$1.palette.info.dark:p$1.palette.common.black},children:d}):jsx(de,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&rt[t]&&jsx(p,{title:a(_(t)),children:jsx(le,{src:rt[t],alt:"destination-icon"})})})}export{qa as a,Ka as b,Ja as c,Xa as d,Ya as e,Ce as f,Se as g,Te as h,$o as i,Me as j,Fe as k,qe as l,Xe as m,ot as n,tr as o,rr as p,sr as q,Ra as r,ka as s,Ba as t,ur as u,Cr as v,B as w,At as x,vr as y,ce as z};
1
+ import {f,b as b$1,g,a as a$2,e,d,c as c$1}from'./chunk-DGAX7HUY.js';import {a as a$4}from'./chunk-GPH7KOOS.js';import {c}from'./chunk-ITYEJ5K7.js';import {a as a$1}from'./chunk-2DC5PMER.js';import {o,j as j$1,k,l,p as p$1}from'./chunk-U7VUIT37.js';import {b}from'./chunk-AWNFVAW7.js';import {a}from'./chunk-ZONDSLTR.js';import {p,z}from'./chunk-YHKF6F6S.js';import {a as a$3}from'./chunk-54RTNLV2.js';import {Va,yc,Ha,Ia,bc,f as f$1}from'./chunk-PLMJIRXJ.js';import {s}from'./chunk-WHXHVOBY.js';import {T,yi,Ai,zi,xi,Ei,ch,Vg,bh,Rj,Sj,tb,gk,jk,Ak,hk,ub,va,ua,sk,h,Ug}from'./chunk-YKKS24ES.js';import {useId,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {styled,Box,useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {motion}from'framer-motion';import {styled as styled$1,useTheme as useTheme$1}from'@mui/material/styles';import _ from'lodash/camelCase';import Qe from'@mui/material/Box';var lt={ORDER:{label:"order",icon:xi,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:zi,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:Ai,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:yi,color:"#32ADE6"}},dt={SAVED_TOKEN:{label:"savedToken",icon:T,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)}));styled("img")(()=>({width:"35px",height:"16px",display:"block"}));styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled("img")(()=>({maxWidth:"100%",width:"100%"}));var ct=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),mt=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function Ie({type:t,hasSavedCard:o,totalPaymentsCount:e,isTextShown:r}){let l=yc(useId(),"agreement-icon"),p$1=useTheme(),{t:a$2}=useTranslation(),n=useMemo(()=>[...o?[dt.SAVED_TOKEN]:[],...(e||0)>0?[dt.COUNT]:[],...t&&lt[t]?[lt[t]]:[]],[o,e,t]),d=c=>r?jsx(a,{"data-testid":"AgreementCell_countBadge",children:jsx(p,{title:a$2("totalPaymentCount",{amount:f$1(e)}),children:jsx(mt,{children:jsxs(ct,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:dt.COUNT.color},children:["x",e]})})})},c):jsx(a$4,{value:e,index:c},c),s=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(p,{title:a$2(c.label),children:jsx(a,{children:r?jsx(mt,{children:jsx(ct,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:a$2(c.label)})}):jsx(a$1,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(p,{title:"No agreement",children:jsx(a,{children:r?jsx(mt,{children:jsx(ct,{"data-testid":"AgreementCell_agreementType",sx:{color:p$1.palette.text.secondary},children:"No agreement"})}):jsx(a$1,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:Ei,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:s?.length>0?s:f})}var To=Ie;var Ce=To;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));styled("img")(()=>({maxWidth:"36px",maxHeight:"24px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var Ao=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),Po=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var Wo=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var kt={"3DS":{tooltip:"3DS",icon:Sj,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Rj,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:bh,borderColor:"rgba(31, 136, 208, 0.10)"}},vo={FAILED:{tooltip:"Failed",icon:Vg,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:ch,borderColor:"rgba(255, 61, 0, 0.10)"}};function be({transactionStatus:t,eci:o,authType:e,isTextShown:r}){let l=yc(useId(),"auth-icons"),p$1=useMemo(()=>{let n=t?vo[t]:null,d=n?.tooltip,s=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:s,type:r?"text":"icon"},...e?[{tooltip:e,content:r?kt[e]?.tooltip:kt[e]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:o?`ECI ${o}`:"",type:"text"}]},[t,r,e,o]),a=useMemo(()=>p$1.filter(n=>!!n.content).map((n,d)=>{let s=n.type==="text"?jsx(Po,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(Ao,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$1,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(p,{title:n.tooltip,children:s},`${n.tooltip}-${d}`)}),[p$1]);return jsx(Wo,{id:l,"data-testid":"AuthIcons",children:a})}var ko=be;var Se=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:e?t*e:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o,...t>0&&{opacity:1}}});var Te=ko;var tt={VOID:{icon:hk},CAPTURED:{icon:gk}};var ut=styled$1(motion.div)(({theme:t,isCapture:o})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:o?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),ft=styled$1("div")(({theme:t,percentage:o,isCapture:e})=>({border:`0.6px ${[0,100].includes(o)?"solid":"dashed"} ${e?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:e?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),xt=styled$1("div")(({percentage:t,isCapture:o,theme:e})=>({background:`conic-gradient(${o?e.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?e.palette.info.dark:"#656565"}`})),gt=styled$1("img")({width:"14px",height:"14px"}),j=styled$1(o)({width:"16px",height:"16px"}),N=styled$1("img")({width:"16px",height:"16px"}),Bo=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function It(t){return t<5?5:t===100?95:t}function Be({voidPercentage:t,capturePercentage:o,captureCount:e,autoType:r,captureAmount:l,voidAmount:p$1,currency:a,isTextShown:n,remainingAmount:d,isSheetViewShown:s,selectionProps:f={}}){let c=Number(o)+Number(t)===100||d<=0,g=yc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Ha(d||0),L=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),J=useCallback(C=>{let X=C==="Capture"?l:p$1,{integerAmount:D,decimalAmount:v}=Ia(X,a);return `Partial ${C} - ${a} ${D}.${v}`},[l,p$1,a]),x=o>0?jsx(p,{title:J("Capture"),children:jsxs(ut,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(gt,{src:tb,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(ft,{isCapture:true,percentage:o,children:[o,"% ",jsx(xt,{isCapture:true,percentage:It(o)})]}),e>1&&jsxs(z,{compact:true,color:"dark",children:[e,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(p,{title:L("Capture"),children:jsx(j,{children:jsx(N,{src:tt.CAPTURED?.icon,alt:"auto"})})}):jsx(p,{title:L("Capture"),children:jsx(j,{children:jsx(N,{src:tt.CAPTURED?.icon,alt:"auto"})})}),I=o===100?jsx(p,{title:A("captured"),children:jsx(Bo,{children:jsx(N,{src:jk,alt:"captured"})})}):x,W=useMemo(()=>s&&I?jsx(b,{chipIndex:4,copyText:A("captured"),selectionProps:f,children:A("captured")}):n&&I?jsx(k,{children:A("captured")}):I,[n,I,s,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var Do=Be;function Ve({voidPercentage:t,capturePercentage:o,voidCount:e,autoType:r,captureAmount:l$1,voidAmount:p$1,currency:a,isTextShown:n,isSheetViewShown:d,selectionProps:s={},remainingAmount:f}){let c=Number(o)+Number(t)===100||f<=0,g=yc(useId(),"void-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Ha(f||0),L=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),J=useCallback(C=>{let X=C==="Capture"?l$1:p$1,{integerAmount:D,decimalAmount:v}=Ia(X,a);return `Partial ${C} - ${a} ${D}.${v}`},[l$1,p$1,a]),x=t>0||p$1?jsx(p,{title:J("Void"),children:jsxs(ut,{isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:T.palette.common.white,border:`0.75px solid ${T.palette.grey[600]}1A`},variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(gt,{src:Ak,alt:"void"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(ft,{percentage:t,children:[t,"% ",jsx(xt,{percentage:It(t)})]}),e>0&&jsxs(z,{compact:true,color:"neutral",children:[e,"x"]})]})]})}):r==="VOID"&&!c?jsx(p,{title:L("Void"),children:jsx(j,{children:jsx(N,{src:tt.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(p,{title:A("void"),children:jsx(j,{children:jsx(N,{src:Ak,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b,{chipIndex:5,copyText:A("void"),selectionProps:s,children:A("void")}):n&&I?jsx(l,{children:A("void")}):I,[n,I,d,s]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var $o=Ve;var Me=Do;var Fe=({authorizedStatus:t,isTextShown:o,iconStyles:e,tableMode:r,chipIndex:l=0,selectionProps:p$1={}})=>{let{t:a}=useTranslation(),n=useTheme$1(),d=a(_(t));return Va(r)?jsx(b,{copyText:d,chipIndex:l,selectionProps:p$1,children:d}):jsx(p,{title:d,children:o?jsx(j$1,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$1,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:e})})};var _o=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,display:"block",fontWeight:t.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:t.spacing(.45)})),Vo=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Bt=styled$1("img")(()=>({width:"10px",height:"10px"})),Lt=styled$1(motion.span)(({theme:t})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),Dt=styled$1(motion.div,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!t&&{padding:"0 !important"}})),Mo=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),zo=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),No={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Go={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},Fo={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},Uo={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},Et={fadeIn:{duration:.3},animate:{duration:.1}},Oo={fadeIn:{opacity:1}},jo=styled$1(j$1)(()=>({width:"88px",height:"100%"})),$t=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function qe({chargeStatus:t,gatewayTooltip:o$1,acquirerTooltip:e,chargeTooltip:r,errorCode:l,isTextShown:p$2,gatewayCode:a,acquirerCode:n,unCapturedStyles:d,iconStyles:s$1,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:A=true,isSheetViewShown:P=false,selectionProps:L={},chipIndex:J=0}){let x=t?b$1[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),X=yc(useId(),"charge-status-icon"),D=r&&jsx(Fragment,{children:jsx("div",{children:r})}),v=e&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:e})]}),Y=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:o$1})]}),Ft=t&&a$2[t]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:x?"50%":"",...f},children:jsx(p$1,{src:a$2[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...s$1}})});return P?jsxs($t,{children:[jsxs(b,{copyText:C(_(t)),chipIndex:J,selectionProps:L,children:[C(_(t))," ",l]}),x&&jsxs(Fragment,{children:[a&&jsxs(b,{copyText:"Gateway",chipIndex:1,selectionProps:L,children:["Gateway ",a]}),n&&jsxs(b,{copyText:"Acquirer",chipIndex:2,selectionProps:L,children:["Acquirer ",n]})]})]}):p$2?jsxs($t,{children:[jsx(p,{title:D,children:jsxs(jo,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark,borderColor:`${x?.color||I?.color||W.palette.info.dark}1A`},children:[C(_(t))," ",l]})}),x&&jsxs(Fragment,{children:[a&&jsx(p,{title:Y,children:jsxs(j$1,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",a]})}),n&&jsx(p,{title:v,children:jsxs(j$1,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:X,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:s?.includes(t||"")&&(D||v||Y)?jsxs(zo,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...A&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Mo,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(p,{title:D??C(_(t)),children:jsxs(Fragment,{children:[Ft,jsx(Vo,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:Uo,style:{...l&&{padding:"0 !important"}},children:jsx(_o,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:No,variants:Oo,initial:{opacity:0},children:l})})]})})}),jsx(Dt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:Et,variants:Go,style:g$1,isVisible:!!Y,children:Y&&jsx(p,{title:Y,children:jsx(Lt,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx(Bt,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx(Dt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:Et,variants:Fo,style:g$1,isVisible:!!v,children:v&&jsx(p,{title:v,children:jsx(Lt,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx(Bt,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(p,{title:D??C(_(t)),children:jsx(o,{children:Ft})})})}var Xe=()=>{let{t}=useTranslation(),o=yc(useId(),"customer-initiated-icon");return jsx(p,{title:t("merchantInitiated"),children:jsx("img",{id:o,"data-testid":"merchantInitiatedIcon",src:ub,alt:"merchant",style:{width:"16px",height:"16px"}})})};var Ye={G:"Global",R:"Regional",L:"Local"},ot=({geographyVariant:t,countryCode:o,isTextShown:e})=>{let r=t?Ye[t]:void 0,l=r||o?`${r||""} ${r&&o?"-":""} ${o?`Country - ${o}`:""}`:void 0;return e||!o?null:jsx(p,{title:l,children:jsx(a$3,{countryCode:o})})};var tr=({geographyVariant:t,isTextShown:o,deviceCountry:e,deviceType:r,tableMode:l})=>{let p=yc(useId(),"device-icon-chip");return jsxs(Qe,{id:p,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...Va(l)&&{height:"18px"}},children:[jsx(ot,{geographyVariant:t,isTextShown:o,countryCode:e}),jsx(c,{type:r,isTextShown:o,tableMode:l})]})};var rr=({isDisputeOpen:t,iconStyles:o})=>{let e=yc(useId(),"dispute-icon");return jsx(p$1,{id:e,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?va:ua,alt:"dispute-icon",style:o})};var Xo=styled$1(Qe,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:o})=>({display:"flex",gap:t.spacing(.5),...Va(o)&&{height:"18px"},alignItems:"center"})),Yo=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Vt({countryCode:t,isTextShown:o,cardNumber:e,bankName:r,tableMode:l}){let p$1=yc(useId(),"issuer-icon"),a=e?.slice(0,4),n=e?.slice(-4);return jsxs(Xo,{id:p$1,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(ot,{countryCode:t,isTextShown:o}),jsx(p,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(Yo,{children:`${a||""} ${n||""}`})})]})}var sr=Vt;styled(motion.div)(({theme:t,background:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:o,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Ra=styled("img")(()=>({height:"13.125px",width:"12px"})),bt=styled("div")(()=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",width:"65px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4.5px 8px",borderRadius:"24px"})),ka=styled("div")(({theme:t})=>({color:t.palette.common.white,background:t.palette.error.main,fontSize:"0.6rem",fontWeight:600,borderRadius:"16px",padding:"2px 8px",display:"flex",alignItems:"center",justifyContent:"center"})),Ba=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var ur=({payoutStatus:t="PENDING",isTextShown:o,payoutTooltip:e$1,iconStyles:r,isSheetViewShown:l,chipIndex:p$2=0,selectionProps:a={}})=>{let{t:n}=useTranslation(),d=yc(useId(),"payout-icon"),s=n(_(t)),f=e$1||s;return l?jsx(b,{chipIndex:p$2,copyText:s,selectionProps:a,children:s}):jsx(p,{title:f,children:o?jsx(bt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:s}):jsx(p$1,{id:d,src:e[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var Qo=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),Zo=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,borderRadius:t.spacing(.5),height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600,backgroundColor:t.palette.secondary.main})),Mt=styled$1(motion.div)(({theme:t})=>({height:"16px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${t.palette.secondary.main}1A`,paddingInline:t.spacing(.5),borderRadius:"56px"})),qa=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:e?t*e:t*49,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o}}),Ka=styled$1(motion.span)(({isTextShown:t,theme:o})=>({border:`1px solid ${o.palette.divider}`,borderRadius:"12px",backgroundColor:o.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),Ja=styled$1(motion.div,{shouldForwardProp:t=>t!=="order"})(({order:t=0})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:0,left:0,zIndex:t+6,width:"fit-content",height:"24px",cursor:"pointer",borderRadius:"16px","&:hover":{zIndex:200}})),Xa=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t=1})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",minWidth:`${t*6+36}px`,height:"24px",cursor:"pointer",borderRadius:"16px",overflow:"visible"})),Ya=styled$1("div")(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var hr=({isTextShown:t,refundStatus:o="PENDING",refundTooltip:e="",refundCount:r,iconStyles:l,isSheetViewShown:p$2,chipIndex:a=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),s=useTheme$1(),f=yc(useId(),"refund-icon"),c=(r||0)>1,g=d$1(_(o));if(p$2)return jsxs(b,{chipIndex:a,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(Zo,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[r,"x"]});return t?jsx(p,{title:jsx("div",{children:jsx("div",{children:e})}),children:jsx(bt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[o].color,backgroundColor:d[o].backgroundColor,width:"90px"},children:jsxs(Mt,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(p,{title:jsx("div",{children:jsx("div",{children:e})}),children:c?jsxs(Mt,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[jsx(Qo,{src:sk,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p$1,{id:f,src:c$1[o],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},te=hr;var Cr=te;var yr={american_express:"AMEX",debit:"card",credit:"card",unionpay:"UnionPay",jaywan:"JAYWAN"},B=t=>yr[t?.toLowerCase()||""]||t;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var oe=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var ee=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),re=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));var ne=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function At({source:t,isTextShown:o,title:e,width:r,height:l,imgSx:p$1}){let{t:a}=useTranslation(),n=h(t);return jsx(p,{title:e,children:o?jsx(re,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(ee,{"data-testid":"SourceCell_TextLabel","data-source":t,children:a(_(t))})}):jsx(oe,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:p$1})})}function vr({payment:t,card:o,isTextShown:e,firstIcon:r}){let l=yc(useId(),"source-icons"),{t:p}=useTranslation(),a=useCallback(()=>{let s=[],f=bc(t),c=t?.method,g=t?.scheme;return B(c)?.toLowerCase()===B(g)?.toLowerCase()?s.push(B(c),B(f)):s.push(B(c),B(f),B(g)),s},[t]),n=useMemo(()=>jsx(At,{source:r,isTextShown:e,title:p(_(r))},r),[r,e,p]),d=useMemo(()=>a()?.filter(s=>!!s&&s!==r)?.map((s,f,c)=>{let g=t?.wallet===p("sv_wallet")?p("storedValueWallet"):p("passThruWallet"),T=f===c.length-1&&o?.last_four?`${p(_(s))} - ${o?.last_four}`:p(_(s));return jsx(At,{source:s,isTextShown:e,title:f===0&&s==="Wallet"?g:T},`${s}-${f}`)}),[a,t,o,e,p,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,o?.last_four&&jsxs(ne,{children:["\xB7\xB7\xB7 ",o?.last_four]})]})}var rt={PROCESSED:Ug,FAILED:""};var se=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),le=styled("img")(()=>({width:"16px",height:"16px"})),de=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));function ce({status:t,isTextShown:o,isSheetViewShown:e,chipIndex:r=0,selectionProps:l={}}){let p$1=useTheme(),{t:a}=useTranslation(),n=yc(useId(),"destination-icon"),d=a(_(t));return e&&rt[t]?jsx(b,{copyText:d,chipIndex:r,selectionProps:l,children:d}):o&&rt[t]?jsx(se,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":_(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?p$1.palette.info.dark:p$1.palette.common.black},children:d}):jsx(de,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&rt[t]&&jsx(p,{title:a(_(t)),children:jsx(le,{src:rt[t],alt:"destination-icon"})})})}export{qa as a,Ka as b,Ja as c,Xa as d,Ya as e,Ce as f,Se as g,Te as h,$o as i,Me as j,Fe as k,qe as l,Xe as m,ot as n,tr as o,rr as p,sr as q,Ra as r,ka as s,Ba as t,ur as u,Cr as v,B as w,At as x,vr as y,ce as z};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-HDCNWBW5.js';import {a}from'./chunk-2DC5PMER.js';import {R as R$1,L,V as V$1}from'./chunk-YHKF6F6S.js';import {kc}from'./chunk-PLMJIRXJ.js';import {Eb,A as A$1,Pc,vb}from'./chunk-YKKS24ES.js';import {forwardRef,useState,useMemo,memo,useRef,useLayoutEffect}from'react';import qe from'@mui/material/ClickAwayListener';import {CircularProgress}from'@mui/material';import M from'@mui/material/Box';import j from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var N="os-shared-NestedMultiSelect",c={root:`${N}-root`,open:`${N}-open`,label:`${N}-label`,placeholder:`${N}-placeholder`,arrow:`${N}-arrow`,menu:`${N}-menu`,search:`${N}-search`,selectedBadge:`${N}-selectedBadge`,fieldRow:`${N}-fieldRow`};var ee=e=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:e,fontSize:"10px",fontWeight:500,cursor:"pointer"}),te=styled(M,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>{let{base:l}=e.v2.palette;return {width:"100%",boxSizing:"border-box",minHeight:47,textAlign:"left",flexDirection:"column",border:`1px solid ${t?"#FAFBFB":"transparent"}`,borderRadius:"4px",backgroundColor:t?"#FAFBFB":e.palette.grey[400],minWidth:"89px",position:"relative",cursor:t?"not-allowed":"pointer",...t&&{color:alpha(l.black,.6),[`& .${c.label}`]:{opacity:.7,cursor:"not-allowed"},[`& .${c.placeholder}`]:{color:alpha(l.black,.6)},[`& .${c.arrow}`]:{opacity:.6},[`& .${c.fieldRow}`]:{opacity:.7},[`& .${c.fieldRow} *`]:{cursor:"not-allowed"}},[`&.${c.open} .${c.arrow}`]:{transform:"rotate(180deg)"}}}),le=styled(j)(({theme:e})=>({position:"absolute",top:9,left:8,margin:0,cursor:"pointer",fontSize:"10px",fontWeight:500,lineHeight:"100%",color:e.palette.grey[700],display:"block",pointerEvents:"none"})),oe=styled(j)(()=>({margin:0,fontWeight:500,fontSize:"11px",lineHeight:"18px",padding:"22px 24px 8px 8px"})),ne=styled(M)(({theme:e})=>({position:"absolute",top:15,right:4,width:16,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"inherit",lineHeight:0,transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})})),ie=styled(M)(()=>({display:"flex",flexDirection:"column",padding:"8px"})),re=styled(M)(()=>({display:"flex",columnGap:"8px",rowGap:"8px",flexWrap:"wrap",paddingInlineEnd:"20px"})),se=styled(M)(({theme:e})=>({...ee(`${e.palette.info.dark}1a`),maxWidth:"150px"})),ae=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),ce=styled(M)(()=>({position:"relative",width:"100%",minWidth:0})),de=styled(M)(()=>({display:"flex",flexWrap:"nowrap",alignItems:"center",gap:"4px",width:"100%",minWidth:0,overflow:"hidden",padding:"22px 24px 8px 8px"})),k=styled(M,{shouldForwardProp:e=>e!=="$truncate"})(({theme:e,$truncate:t})=>({...ee(`${e.palette.info.dark}1a`),overflow:"hidden",cursor:"inherit",flex:t?"1 1 auto":"0 0 auto",width:"max-content",maxWidth:t?"100%":"none",minWidth:t?0:"auto"})),ue=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0})),pe=styled("span")(()=>({position:"fixed",left:0,top:0,visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",width:"max-content",display:"inline-flex",padding:"4px 8px 4px 6px",fontSize:"10px",fontWeight:500})),Se=styled(M)(()=>({flex:1,maxWidth:"220px",minWidth:"89px"})),me=styled(M,{shouldForwardProp:e=>e!=="$maxWidth"})(({$maxWidth:e})=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:e,minWidth:"89px"}));var C=4,ke=48;function $e(e,t,l){let i=C*Math.max(e.length-1,0);if(e.reduce((s,a)=>s+a,0)+i<=t)return {count:e.length,truncateLast:false};let r=0,n=0;for(let s=0;s<e.length;s+=1){let a=n>0?C:0,d=s===e.length-1?0:C+l;if(r+a+e[s]+d<=t){r+=a+e[s],n+=1;continue}let x=t-r-a-d;if(n===0||x>=ke)return {count:n+1,truncateLast:true};break}return {count:Math.max(n,1),truncateLast:false}}function Ae(e,t,l,i){let o=e.length;if(o===0)return {count:0,truncateLast:false};let r=C*Math.max(o-1,0),s=e.reduce((a,h)=>a+h,0)+r+(i?C+l:0);return {count:o,truncateLast:s>t}}function He({options:e,maxVisibleSelected:t}){let l=useRef(null),i=useRef(null),o=typeof t=="number"&&Number.isFinite(t),r=o?Math.max(0,Math.floor(t)):e.length,[n,s]=useState({count:Math.min(r,e.length),truncateLast:false});useLayoutEffect(()=>{let d=l.current,f=i.current;if(!d||!f)return;let x=()=>{let y=e.slice(0,r).map(g=>(f.textContent=g.label,f.offsetWidth));f.textContent=`+${e.length}`;let v=f.offsetWidth,L=getComputedStyle(d),b=d.clientWidth-parseFloat(L.paddingLeft)-parseFloat(L.paddingRight),m=o?Ae(y,b,v,e.length>y.length):$e(y,b,v);s(g=>g.count===m.count&&g.truncateLast===m.truncateLast?g:m);};x();let w=new ResizeObserver(x);return w.observe(d),()=>w.disconnect()},[r,o,e]);let a=e.slice(0,n.count),h=e.length-n.count;return jsxs(ce,{children:[jsx(pe,{ref:i,"aria-hidden":true}),jsxs(de,{ref:l,className:c.fieldRow,children:[a.map((d,f)=>{let x=n.truncateLast&&f===a.length-1;return jsx(k,{$truncate:x,children:jsx(ue,{children:d.label})},d.value)}),h>0?jsx(k,{children:jsxs("span",{children:["+",h]})}):null]})]})}var Me=He;function xe({label:e,maxWidth:t,itemCount:l,isSelected:i,isIndeterminate:o,onToggle:r,children:n}){let[s,a]=useState(null);return jsxs(V$1,{isSelected:i,isIndeterminate:o,onClick:d=>{d.stopPropagation(),d.preventDefault(),r();},onMouseEnter:d=>{l>0&&a(d.currentTarget);},onMouseLeave:()=>{s&&a(null);},children:[jsxs(me,{$maxWidth:t,children:[e,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(R$1,{sx:{maxHeight:"450px",overflow:"auto"},open:!!s,anchorEl:s,placement:"right-start",children:n})]})}var E=e=>!e.options&&typeof e.value=="string",I=e=>e.value??e.label,R=(e,t)=>t?.some(l=>l.value===e.value)??false,ge=(e,t,l)=>{if(R(e,t)){l(t?.filter(i=>i.value!==e.value)||[]);return}l([...t||[],e]);},A=e=>E(e)?[e]:(e.options??[]).flatMap(A),H=(e,t)=>{let l=e.filter(i=>R(i,t)).length;return {allSelected:e.length>0&&l===e.length,someSelected:l>0&&l<e.length}},ye=(e,t,l)=>{let i=new Set(e.map(n=>n.value));if(H(e,t).allSelected){l((t??[]).filter(n=>!i.has(n.value)));return}let o=new Set((t??[]).map(n=>n.value)),r=e.filter(n=>!o.has(n.value));l([...t??[],...r]);},_e=(e,t)=>{let l=e[t];return typeof l=="string"?l:""},Ve=(e,t,l)=>l.some(i=>_e(e,i).toLowerCase().includes(t)),D=(e,t,l)=>{if(!t)return e;let i=t.toLowerCase();return e.reduce((o,r)=>{if(E(r))return Ve(r,i,l)&&o.push(r),o;let n=D(r.options??[],t,l);return n.length>0&&o.push({...r,options:n}),o},[])};function we({option:e,value:t,onChange:l}){let i=o=>{o.stopPropagation(),o.preventDefault(),ge(e,t,l);};return jsx(V$1,{isSelected:R(e,t),onClick:i,children:jsx(Se,{children:e.label})})}var ze=340,Ge=220;function V({node:e,depth:t,value:l,onChange:i}){if(E(e))return jsx(we,{option:e,value:l,onChange:i});if(!e.options)return null;let o=e.options,r=A(e),{allSelected:n,someSelected:s}=H(r,l);return jsx(xe,{label:e.label,maxWidth:t===0?ze:Ge,itemCount:o.length,isSelected:n,isIndeterminate:s,onToggle:()=>ye(r,l,i),children:o.map(a=>jsx(V,{node:a,depth:t+1,value:l,onChange:i},I(a)))})}var Je=["label"],Ce=forwardRef(({options:e,onChange:t,value:l,maxVisibleSelected:i,placeholder:o,label:r,isLoading:n,searchBy:s=Je,disabled:a$2,className:h,sx:d,searchable:f=true,searchPlaceholder:x,onOpen:w,onClose:y},v)=>{let[L$1,b]=useState(null),[m,g]=useState(""),P=!!L$1,ve=r??o,Pe=r?o??"Please Select":"Please Select",Be=u=>{if(P){b(null),y?.();return}b(u.currentTarget),w?.();},Fe=()=>{b(null),y?.();},Oe=()=>{m&&g("");},We=useMemo(()=>D(e,m,s),[e,m,s]),G=l?.length??0,Ee=n?jsx(CircularProgress,{size:16}):jsx(a,{src:m?Eb:A$1,alt:m?"close":"search",onClick:Oe,sx:{width:12,height:12,cursor:m?"pointer":"default"}});return jsx(qe,{onClickAway:()=>{P&&Fe();},children:jsxs(te,{ref:v,id:"FieldWrapper","data-testid":"NestedMultiSelect",$disabled:a$2,"aria-disabled":a$2||void 0,className:kc(c.root,P&&c.open,h),sx:d,onClick:u=>!a$2&&Be(u),children:[jsx(le,{className:c.label,component:"label",children:ve}),G===0&&jsx(oe,{className:c.placeholder,component:"p",children:Pe}),jsx(ne,{className:c.arrow,"aria-hidden":true,children:jsx(a$1,{})}),G>0&&l?jsx(Me,{options:l,maxVisibleSelected:i}):null,jsx(R$1,{open:P,anchorEl:L$1,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},panelProps:{className:c.menu},children:jsxs(ie,{children:[f?jsx(L,{className:c.search,fullWidth:true,size:"md",placeholder:x??o??"Select",endAdornment:Ee,value:m,onClick:u=>{u.stopPropagation();},onMouseDown:u=>{u.stopPropagation();},onChange:u=>{g(u.target.value);},sx:{mb:"4px"}}):null,jsx(re,{children:l?.map(u=>jsxs(se,{className:c.selectedBadge,onClick:K=>{K.stopPropagation(),K.preventDefault(),t(l?.filter(Ie=>Ie.value!==u.value)||[]);},children:[jsx(a,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx(ae,{children:u.label}),jsx(a,{src:Eb,alt:"close",sx:{width:9,height:9}})]},u.value))}),We.map(u=>jsx(V,{node:u,depth:0,value:l,onChange:t},I(u)))]})})]})})});Ce.displayName="NestedMultiSelect";var Qe=memo(Ce);export{c as a,Qe as b};
@@ -0,0 +1 @@
1
+ import {forwardRef}from'react';import n from'@mui/material/SvgIcon';import {jsx}from'react/jsx-runtime';var e=forwardRef((t,C)=>jsx(n,{ref:C,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...t,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));e.displayName="DefaultSelectIcon";var r=e;export{r as a};