@tap-payments/auth-jsconnect 2.5.22-test → 3.0.0-test

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 (442) hide show
  1. package/build/@types/app.d.ts +4 -0
  2. package/build/@types/app.js +5 -0
  3. package/build/api/country.d.ts +1 -0
  4. package/build/api/country.js +11 -1
  5. package/build/api/index.d.ts +1 -0
  6. package/build/app/settings.d.ts +5 -2
  7. package/build/app/settings.js +13 -3
  8. package/build/assets/locales/ar.json +107 -5
  9. package/build/assets/locales/en.json +108 -7
  10. package/build/components/AnimationFlow/AnimationFlow.d.ts +3 -3
  11. package/build/components/AnimationFlow/AnimationFlow.js +4 -4
  12. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -4
  13. package/build/components/AnimationFlow/BottomSheet.js +33 -27
  14. package/build/components/AnimationFlow/Dialog.d.ts +3 -4
  15. package/build/components/AnimationFlow/Dialog.js +17 -54
  16. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +3 -1
  17. package/build/components/ArabicDatePicker/ArabicDatePicker.js +12 -5
  18. package/build/components/ArabicDatePicker/style.css +2 -0
  19. package/build/components/Button/Button.js +21 -10
  20. package/build/components/CheckBox/CheckBox.d.ts +2 -1
  21. package/build/components/CheckBox/CheckBox.js +41 -19
  22. package/build/components/DatePicker/DatePicker.d.ts +3 -1
  23. package/build/components/DatePicker/DatePicker.js +12 -6
  24. package/build/components/DatePicker/customStyle.css +1 -0
  25. package/build/components/ExpandIcon/ExpandIcon.js +8 -5
  26. package/build/components/FileInput/DragAndDrop.js +43 -39
  27. package/build/components/Icon/Icon.js +1 -1
  28. package/build/components/OTPField/OTPField.js +5 -4
  29. package/build/components/OTPTimer/OTPTimer.js +2 -6
  30. package/build/components/Popover/Popover.d.ts +6 -0
  31. package/build/components/Popover/Popover.js +79 -0
  32. package/build/components/Popover/index.d.ts +3 -0
  33. package/build/components/Popover/index.js +2 -0
  34. package/build/components/ProgressBar/CircularProgressBar.js +14 -15
  35. package/build/components/Radio/Radio.js +16 -6
  36. package/build/components/RadioLabel/RadioLabel.js +3 -2
  37. package/build/components/SimpleList/SimpleList.d.ts +15 -1
  38. package/build/components/SimpleList/SimpleList.js +48 -37
  39. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  40. package/build/components/SocialMediaGroup/SocialMediaGroup.js +1 -1
  41. package/build/components/TextField/TextField.d.ts +17 -0
  42. package/build/components/TextField/TextField.js +89 -0
  43. package/build/components/TextField/index.d.ts +3 -0
  44. package/build/components/TextField/index.js +2 -0
  45. package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +2 -1
  46. package/build/components/Tooltip/Tooltip.js +38 -7
  47. package/build/components/Warning/Warning.js +4 -4
  48. package/build/constants/app.js +35 -11
  49. package/build/constants/assets.d.ts +72 -0
  50. package/build/constants/assets.js +131 -59
  51. package/build/constants/date.d.ts +1 -0
  52. package/build/constants/date.js +14 -0
  53. package/build/constants/index.d.ts +1 -0
  54. package/build/constants/index.js +1 -0
  55. package/build/features/app/brand/brandStore.d.ts +3 -2
  56. package/build/features/app/brand/brandStore.js +4 -1
  57. package/build/features/app/business/businessStore.d.ts +4 -2
  58. package/build/features/app/business/businessStore.js +12 -6
  59. package/build/features/app/entity/entityStore.d.ts +3 -2
  60. package/build/features/app/entity/entityStore.js +4 -1
  61. package/build/features/app/individual/individualStore.d.ts +3 -2
  62. package/build/features/app/individual/individualStore.js +4 -1
  63. package/build/features/bank/Bank.js +3 -3
  64. package/build/features/bank/screens/BankDetails/BankDetails.js +3 -8
  65. package/build/features/bank/screens/BankDetails/BankName.js +7 -3
  66. package/build/features/bank/screens/BankDetails/BankStatement.js +1 -1
  67. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -3
  68. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +7 -16
  69. package/build/features/bank/screens/BankDetails/IBAN.js +7 -2
  70. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  71. package/build/features/bank/screens/Success/Success.js +14 -2
  72. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  73. package/build/features/bank/screens/Verify/Verify.js +5 -8
  74. package/build/features/brand/Brand.js +3 -3
  75. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -51
  76. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +17 -55
  77. package/build/features/brand/screens/BrandActivities/BrandActivities.js +9 -7
  78. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +2 -31
  79. package/build/features/brand/screens/BrandActivities/CustomerBase.js +14 -32
  80. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  81. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +12 -13
  82. package/build/features/brand/screens/BrandActivities/ExpectedSaleField.d.ts +8 -0
  83. package/build/features/brand/screens/BrandActivities/ExpectedSaleField.js +55 -0
  84. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +9 -16
  85. package/build/features/brand/screens/BrandActivities/TAC.js +8 -21
  86. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +4 -2
  87. package/build/features/brand/screens/BrandInfo/BrandInfo.js +2 -2
  88. package/build/features/brand/screens/BrandInfo/BrandLogo.js +1 -1
  89. package/build/features/brand/screens/BrandInfo/BrandName.js +7 -51
  90. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +8 -4
  91. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
  92. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +11 -5
  93. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
  94. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +10 -4
  95. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
  96. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +10 -4
  97. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
  98. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.js +10 -4
  99. package/build/features/brand/screens/ExpectedSales/ExpectedSaleList.d.ts +29 -0
  100. package/build/features/brand/screens/ExpectedSales/ExpectedSaleList.js +136 -0
  101. package/build/features/brand/screens/ExpectedSales/ExpectedSales.d.ts +5 -0
  102. package/build/features/brand/screens/ExpectedSales/ExpectedSales.js +91 -0
  103. package/build/features/brand/screens/ExpectedSales/index.d.ts +2 -0
  104. package/build/features/brand/screens/ExpectedSales/index.js +2 -0
  105. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  106. package/build/features/brand/screens/Success/Success.js +13 -1
  107. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  108. package/build/features/brand/screens/Verify/Verify.js +5 -8
  109. package/build/features/business/Business.js +3 -3
  110. package/build/features/business/screens/Activities/Activities.js +7 -11
  111. package/build/features/business/screens/Activities/ActivityField.d.ts +22 -0
  112. package/build/features/business/screens/Activities/ActivityField.js +63 -0
  113. package/build/features/business/screens/Activities/LicenseName.js +4 -2
  114. package/build/features/business/screens/Activities/OperationStartDate.js +3 -3
  115. package/build/features/business/screens/BrandDetails/BrandDetails.js +3 -2
  116. package/build/features/business/screens/BrandDetails/BrandName.js +5 -9
  117. package/build/features/business/screens/BrandDetails/Header.js +4 -3
  118. package/build/features/business/screens/BrandDetails/LicenseInfo.js +5 -9
  119. package/build/features/business/screens/BrandDetails/SalesChannel.js +9 -5
  120. package/build/features/business/screens/BusinessActivities/ActivityList.d.ts +30 -0
  121. package/build/features/business/screens/BusinessActivities/ActivityList.js +265 -0
  122. package/build/features/business/screens/BusinessActivities/BusinessActivities.d.ts +5 -0
  123. package/build/features/business/screens/BusinessActivities/BusinessActivities.js +90 -0
  124. package/build/features/business/screens/BusinessActivities/index.d.ts +2 -0
  125. package/build/features/business/screens/BusinessActivities/index.js +2 -0
  126. package/build/features/business/screens/BusinessType/Article.js +1 -1
  127. package/build/features/business/screens/BusinessType/BusinessType.js +6 -4
  128. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +2 -1
  129. package/build/features/business/screens/BusinessType/EntityLicenseList.js +9 -11
  130. package/build/features/business/screens/BusinessType/EntityName.js +6 -3
  131. package/build/features/business/screens/BusinessType/LicenseList.d.ts +2 -1
  132. package/build/features/business/screens/BusinessType/LicenseList.js +9 -6
  133. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -3
  134. package/build/features/business/screens/BusinessType/LicenseType.js +16 -11
  135. package/build/features/business/screens/CivilID/CivilID.js +8 -16
  136. package/build/features/business/screens/CivilID/IDNumber.js +5 -18
  137. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -18
  138. package/build/features/business/screens/Customers/CustomerLocations.js +11 -26
  139. package/build/features/business/screens/Customers/Customers.js +12 -10
  140. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
  141. package/build/features/business/screens/Customers/ExpectedCustomers.js +10 -13
  142. package/build/features/business/screens/Customers/ExpectedSaleField.d.ts +6 -0
  143. package/build/features/business/screens/Customers/ExpectedSaleField.js +49 -0
  144. package/build/features/business/screens/Customers/RefundPolicy.js +8 -16
  145. package/build/features/business/screens/Customers/TransactionPolicy.js +4 -2
  146. package/build/features/business/screens/ExpectedSales/ExpectedSaleList.d.ts +29 -0
  147. package/build/features/business/screens/ExpectedSales/ExpectedSaleList.js +136 -0
  148. package/build/features/business/screens/ExpectedSales/ExpectedSales.d.ts +5 -0
  149. package/build/features/business/screens/ExpectedSales/ExpectedSales.js +91 -0
  150. package/build/features/business/screens/ExpectedSales/index.d.ts +2 -0
  151. package/build/features/business/screens/ExpectedSales/index.js +2 -0
  152. package/build/features/business/screens/IDBOD/DOB.js +3 -12
  153. package/build/features/business/screens/IDBOD/ID.js +2 -2
  154. package/build/features/business/screens/IDBOD/IDBOD.js +9 -16
  155. package/build/features/business/screens/OTP/OTP.js +10 -22
  156. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  157. package/build/features/business/screens/Success/Success.js +13 -1
  158. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  159. package/build/features/business/screens/Verify/Verify.js +5 -8
  160. package/build/features/connect/Connect.js +3 -3
  161. package/build/features/connect/screens/BrandSegment/BrandSegment.js +8 -4
  162. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +2 -1
  163. package/build/features/connect/screens/BrandSegment/SegmentLocations.js +9 -5
  164. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +2 -1
  165. package/build/features/connect/screens/BrandSegment/SegmentProfits.js +8 -4
  166. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +2 -1
  167. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +8 -4
  168. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +2 -1
  169. package/build/features/connect/screens/BrandSegment/TeamSize.js +8 -4
  170. package/build/features/connect/screens/CivilID/CivilID.js +11 -12
  171. package/build/features/connect/screens/CivilID/IDNumber.js +3 -18
  172. package/build/features/connect/screens/Individual/Email.js +6 -2
  173. package/build/features/connect/screens/Individual/Individual.js +11 -9
  174. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -0
  175. package/build/features/connect/screens/Individual/MobileNumber.js +29 -22
  176. package/build/features/connect/screens/Individual/Name.js +4 -2
  177. package/build/features/connect/screens/Merchant/BrandList.d.ts +2 -1
  178. package/build/features/connect/screens/Merchant/BrandList.js +8 -4
  179. package/build/features/connect/screens/Merchant/BrandName.d.ts +2 -1
  180. package/build/features/connect/screens/Merchant/BrandName.js +7 -42
  181. package/build/features/connect/screens/Merchant/Merchant.js +8 -4
  182. package/build/features/connect/screens/Merchant/TAC.js +12 -24
  183. package/build/features/connect/screens/Mobile/Mobile.js +19 -21
  184. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -0
  185. package/build/features/connect/screens/Mobile/MobileNumber.js +22 -19
  186. package/build/features/connect/screens/NID/DOB.d.ts +1 -1
  187. package/build/features/connect/screens/NID/DOB.js +5 -26
  188. package/build/features/connect/screens/NID/IDNumber.js +3 -18
  189. package/build/features/connect/screens/NID/NID.js +13 -14
  190. package/build/features/connect/screens/OTP/OTP.js +5 -8
  191. package/build/features/connect/screens/ThankYou/ThankYou.js +13 -1
  192. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +0 -61
  193. package/build/features/connectExpress/ConnectExpress.js +3 -3
  194. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +13 -1
  195. package/build/features/connectExpress/screens/Brand/Brand.js +4 -2
  196. package/build/features/connectExpress/screens/CivilID/CivilID.js +7 -8
  197. package/build/features/connectExpress/screens/CivilID/IDNumber.js +3 -18
  198. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -2
  199. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +3 -18
  200. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -40
  201. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +9 -5
  202. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +2 -1
  203. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +11 -6
  204. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +8 -3
  205. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +9 -17
  206. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -4
  207. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +6 -2
  208. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -0
  209. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +33 -26
  210. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +6 -2
  211. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +5 -8
  212. package/build/features/connectExpress/screens/Mobile/Mobile.js +21 -12
  213. package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -0
  214. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +33 -26
  215. package/build/features/connectExpress/screens/Mobile/TAC.js +12 -24
  216. package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -1
  217. package/build/features/connectExpress/screens/NID/DOB.js +4 -24
  218. package/build/features/connectExpress/screens/NID/IDNumber.js +8 -18
  219. package/build/features/connectExpress/screens/NID/NID.js +7 -8
  220. package/build/features/connectExpress/screens/NID/TAC.js +9 -17
  221. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -1
  222. package/build/features/connectExpress/screens/NIDMissed/DOB.js +3 -24
  223. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +5 -18
  224. package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
  225. package/build/features/connectExpress/screens/OTP/OTP.js +5 -8
  226. package/build/features/connectExpress/screens/OTP/OTPInput.js +1 -1
  227. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  228. package/build/features/entity/Entity.js +3 -3
  229. package/build/features/entity/screens/EntityActivities/ActivityList.d.ts +30 -0
  230. package/build/features/entity/screens/EntityActivities/ActivityList.js +265 -0
  231. package/build/features/entity/screens/EntityActivities/EntityActivities.d.ts +5 -0
  232. package/build/features/entity/screens/EntityActivities/EntityActivities.js +89 -0
  233. package/build/features/entity/screens/EntityActivities/index.d.ts +2 -0
  234. package/build/features/entity/screens/EntityActivities/index.js +2 -0
  235. package/build/features/entity/screens/EntityCapital/ActivityField.d.ts +22 -0
  236. package/build/features/entity/screens/EntityCapital/ActivityField.js +63 -0
  237. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -3
  238. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +6 -2
  239. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -3
  240. package/build/features/entity/screens/EntityCapital/EntityCapital.js +10 -11
  241. package/build/features/entity/screens/EntityName/Article.js +1 -1
  242. package/build/features/entity/screens/EntityName/EntityName.js +6 -4
  243. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +1 -50
  244. package/build/features/entity/screens/EntityName/EntityTypeList.js +19 -50
  245. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -15
  246. package/build/features/entity/screens/EntityName/ExpiryDate.js +5 -11
  247. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -15
  248. package/build/features/entity/screens/EntityName/IssuingDate.js +5 -11
  249. package/build/features/entity/screens/EntityName/LegalName.js +6 -2
  250. package/build/features/entity/screens/EntityName/LicenseNumber.js +4 -2
  251. package/build/features/entity/screens/EntityName/UnifiedNumber.js +6 -2
  252. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  253. package/build/features/entity/screens/Success/Success.js +13 -1
  254. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  255. package/build/features/entity/screens/Verify/Verify.js +5 -8
  256. package/build/features/featuresScreens.js +26 -1
  257. package/build/features/individual/Individual.js +3 -3
  258. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +8 -9
  259. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +3 -3
  260. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -0
  261. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +9 -3
  262. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -3
  263. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -100
  264. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +14 -7
  265. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +6 -2
  266. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -3
  267. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -0
  268. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +9 -3
  269. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +1 -1
  270. package/build/features/individual/screens/IndividualList/Email.js +4 -2
  271. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +1 -27
  272. package/build/features/individual/screens/IndividualList/IndividualList.js +2 -21
  273. package/build/features/individual/screens/IndividualList/MobileNumber.js +30 -24
  274. package/build/features/individual/screens/IndividualList/UserList.js +36 -15
  275. package/build/features/individual/screens/IndividualOccupation/IndividualOccupation.d.ts +5 -0
  276. package/build/features/individual/screens/IndividualOccupation/IndividualOccupation.js +91 -0
  277. package/build/features/individual/screens/IndividualOccupation/OccupationList.d.ts +29 -0
  278. package/build/features/individual/screens/IndividualOccupation/OccupationList.js +136 -0
  279. package/build/features/individual/screens/IndividualOccupation/index.d.ts +2 -0
  280. package/build/features/individual/screens/IndividualOccupation/index.js +2 -0
  281. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
  282. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +10 -4
  283. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
  284. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +10 -4
  285. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  286. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +4 -13
  287. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +6 -2
  288. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  289. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +4 -13
  290. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +16 -12
  291. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +7 -2
  292. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +7 -4
  293. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
  294. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +10 -4
  295. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
  296. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +31 -24
  297. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +6 -2
  298. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
  299. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +10 -4
  300. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -0
  301. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +34 -30
  302. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +10 -2
  303. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  304. package/build/features/individual/screens/Success/Success.js +13 -1
  305. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  306. package/build/features/individual/screens/Verify/Verify.js +5 -8
  307. package/build/features/password/Password.js +3 -3
  308. package/build/features/password/screens/CreatePassword/ConditionText.js +2 -1
  309. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +15 -2
  310. package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -3
  311. package/build/features/password/screens/CreatePassword/Password.js +17 -9
  312. package/build/features/password/screens/CreatePassword/PasswordBar.js +4 -4
  313. package/build/features/password/screens/OTP/OTP.js +10 -22
  314. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  315. package/build/features/password/screens/Success/Success.js +13 -1
  316. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  317. package/build/features/password/screens/Verify/Verify.js +5 -8
  318. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +16 -11
  319. package/build/features/shared/Background/Background.js +11 -2
  320. package/build/features/shared/Button/AbsherButton.js +12 -2
  321. package/build/features/shared/Button/Button.js +16 -11
  322. package/build/features/shared/Button/EmailProvidersButtons.js +34 -22
  323. package/build/features/shared/Button/FlowsButtons.d.ts +3 -1
  324. package/build/features/shared/Button/FlowsButtons.js +79 -69
  325. package/build/features/shared/Button/IndividualActionButtons.js +39 -40
  326. package/build/features/shared/Button/MobileButton.js +16 -2
  327. package/build/features/shared/Button/SuccessButton.d.ts +1 -1
  328. package/build/features/shared/Button/SuccessButton.js +10 -15
  329. package/build/features/shared/Calender/Calender.d.ts +3 -1
  330. package/build/features/shared/Calender/Calender.js +4 -4
  331. package/build/features/shared/Calender/CustomCalender.d.ts +15 -0
  332. package/build/features/shared/Calender/CustomCalender.js +46 -0
  333. package/build/features/shared/Calender/CustomDatePicker.d.ts +29 -0
  334. package/build/features/shared/Calender/CustomDatePicker.js +252 -0
  335. package/build/features/shared/Calender/CustomHijriDatePicker.d.ts +29 -0
  336. package/build/features/shared/Calender/CustomHijriDatePicker.js +258 -0
  337. package/build/features/shared/Calender/DatePicker.d.ts +29 -0
  338. package/build/features/shared/Calender/DatePicker.js +229 -0
  339. package/build/features/shared/Calender/index.d.ts +2 -0
  340. package/build/features/shared/Calender/index.js +2 -0
  341. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -2
  342. package/build/features/shared/CheckIcon/CheckIcon.js +9 -7
  343. package/build/features/shared/Chip/Chip.js +2 -1
  344. package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -0
  345. package/build/features/shared/ClearIcon/ClearIcon.js +2 -1
  346. package/build/features/shared/Containers/ContainerWithHeader.d.ts +11 -0
  347. package/build/features/shared/Containers/ContainerWithHeader.js +52 -0
  348. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -2
  349. package/build/features/shared/Containers/FeatureContainer.js +6 -4
  350. package/build/features/shared/Containers/index.d.ts +2 -1
  351. package/build/features/shared/Containers/index.js +2 -1
  352. package/build/features/shared/CountryPopup/CountryPopup.d.ts +7 -0
  353. package/build/features/shared/CountryPopup/CountryPopup.js +166 -0
  354. package/build/features/shared/CountryPopup/index.d.ts +2 -0
  355. package/build/features/shared/CountryPopup/index.js +2 -0
  356. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +6 -6
  357. package/build/features/shared/DataLoading/DataLoading.js +6 -6
  358. package/build/features/shared/DropDownStyle/DropDownStyle.d.ts +24 -0
  359. package/build/features/shared/DropDownStyle/DropDownStyle.js +61 -0
  360. package/build/features/shared/DropDownStyle/index.d.ts +2 -0
  361. package/build/features/shared/DropDownStyle/index.js +2 -0
  362. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
  363. package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +2 -2
  364. package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -2
  365. package/build/features/shared/Footer/PoweredByFooter.js +3 -3
  366. package/build/features/shared/GenericError/GenericError.js +3 -2
  367. package/build/features/shared/Header/Header.d.ts +8 -0
  368. package/build/features/shared/Header/Header.js +88 -0
  369. package/build/features/shared/Header/index.d.ts +3 -0
  370. package/build/features/shared/Header/index.js +2 -0
  371. package/build/features/shared/InputSelect/InputSelect.js +0 -1
  372. package/build/features/shared/LanguagePopup/LanguagePopup.d.ts +5 -0
  373. package/build/features/shared/LanguagePopup/LanguagePopup.js +178 -0
  374. package/build/features/shared/LanguagePopup/index.d.ts +2 -0
  375. package/build/features/shared/LanguagePopup/index.js +2 -0
  376. package/build/features/shared/Mandatory/Mandatory.js +2 -2
  377. package/build/features/shared/OTP/OTP.js +10 -11
  378. package/build/features/shared/PaciVerification/PaciVerification.js +5 -4
  379. package/build/features/shared/PasswordIcon/PasswordIcon.js +3 -2
  380. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +47 -22
  381. package/build/features/shared/SalesChannels/SalesChannel.d.ts +13 -0
  382. package/build/features/shared/SalesChannels/SalesChannel.js +11 -24
  383. package/build/features/shared/Search/Search.d.ts +3 -1
  384. package/build/features/shared/Search/Search.js +39 -3
  385. package/build/features/shared/SearchIcon/SearchIcon.d.ts +0 -1
  386. package/build/features/shared/SearchIcon/SearchIcon.js +6 -7
  387. package/build/features/shared/SearchIcon/index.d.ts +2 -0
  388. package/build/features/shared/SearchIcon/index.js +2 -0
  389. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +23 -8
  390. package/build/features/shared/SuccessScreen/SuccessScreen.js +9 -7
  391. package/build/features/shared/{UploadFile/UploadFile.d.ts → TextField/TextField.d.ts} +14 -24
  392. package/build/features/shared/TextField/TextField.js +63 -0
  393. package/build/features/shared/TextField/index.d.ts +3 -0
  394. package/build/features/shared/TextField/index.js +2 -0
  395. package/build/features/shared/TextFieldSelect/TextFieldSelect.d.ts +4 -0
  396. package/build/features/shared/TextFieldSelect/TextFieldSelect.js +32 -0
  397. package/build/features/shared/TextFieldSelect/index.d.ts +2 -0
  398. package/build/features/shared/TextFieldSelect/index.js +2 -0
  399. package/build/features/shared/TitleDescription/TitleDescription.d.ts +9 -0
  400. package/build/features/shared/TitleDescription/TitleDescription.js +77 -0
  401. package/build/features/shared/TitleDescription/index.d.ts +2 -0
  402. package/build/features/shared/TitleDescription/index.js +2 -0
  403. package/build/features/shared/UploadFile/FileUpload.d.ts +8 -2
  404. package/build/features/shared/UploadFile/FileUpload.js +58 -31
  405. package/build/features/shared/UploadFile/UploadWrapper.js +7 -3
  406. package/build/features/shared/UploadFile/index.d.ts +1 -2
  407. package/build/features/shared/UploadFile/index.js +1 -2
  408. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +8 -2
  409. package/build/features/shared/UploadMultipleFile/UploadFile.js +58 -31
  410. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +14 -9
  411. package/build/features/signIn/SignIn.js +3 -3
  412. package/build/features/signIn/screens/Mobile/MobileNumber.js +7 -4
  413. package/build/features/tax/Tax.js +3 -3
  414. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
  415. package/build/features/tax/screens/Success/Success.js +13 -1
  416. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
  417. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +7 -16
  418. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -2
  419. package/build/features/tax/screens/TaxDetails/TaxDocument.js +2 -2
  420. package/build/features/tax/screens/TaxDetails/VATId.js +7 -2
  421. package/build/features/tax/screens/Verify/Verify.js +9 -9
  422. package/build/hooks/useAppConfig.js +10 -1
  423. package/build/theme/palette.js +81 -27
  424. package/build/theme/shadows.js +7 -7
  425. package/build/theme/typography.js +3 -3
  426. package/build/utils/array.d.ts +1 -1
  427. package/build/utils/array.js +2 -2
  428. package/build/utils/string.js +14 -16
  429. package/package.json +3 -1
  430. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +0 -10
  431. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +0 -143
  432. package/build/features/business/screens/Activities/ActivitiesList.d.ts +0 -37
  433. package/build/features/business/screens/Activities/ActivitiesList.js +0 -292
  434. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +0 -8
  435. package/build/features/business/screens/Customers/ExpectedSalesRange.js +0 -138
  436. package/build/features/connect/screens/Mobile/Title.d.ts +0 -8
  437. package/build/features/connect/screens/Mobile/Title.js +0 -29
  438. package/build/features/connectExpress/screens/Mobile/Title.d.ts +0 -8
  439. package/build/features/connectExpress/screens/Mobile/Title.js +0 -29
  440. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +0 -38
  441. package/build/features/entity/screens/EntityCapital/ActivityList.js +0 -290
  442. package/build/features/shared/UploadFile/UploadFile.js +0 -91
@@ -0,0 +1,55 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useTranslation } from 'react-i18next';
14
+ import { useController, useFormContext } from 'react-hook-form';
15
+ import { styled } from '@mui/material/styles';
16
+ import { findCurrencyByIso2 } from '../../../../utils';
17
+ import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
18
+ import { handleCurrentActiveScreen, settingsSelector } from '../../../../app/settings';
19
+ import Collapse from '../../../../components/Collapse';
20
+ import ExpandIcon from '../../../../components/ExpandIcon';
21
+ import { ScreenContainer } from '../../../shared/Containers';
22
+ import InputSelect from '../../../shared/TextFieldSelect';
23
+ import CheckIcon from '../../../shared/CheckIcon';
24
+ var InputStyled = styled(InputSelect)(function () { return ({}); });
25
+ var ExpandIconStyled = styled(ExpandIcon)(function (_a) {
26
+ var theme = _a.theme;
27
+ return ({
28
+ transform: theme.direction === 'rtl' ? 'rotate(90deg)' : 'rotate(-90deg)'
29
+ });
30
+ });
31
+ var ExpectedSaleField = function (_a) {
32
+ var _b, _c;
33
+ var show = _a.show, readOnly = _a.readOnly, isVerified = _a.isVerified;
34
+ var t = useTranslation().t;
35
+ var isAr = useLanguage().isAr;
36
+ var control = useFormContext().control;
37
+ var dispatch = useAppDispatch();
38
+ var expectedSaleControl = useController({ name: 'expectedSale', control: control });
39
+ var settingsData = useAppSelector(settingsSelector).data;
40
+ var expectedSalesRangeValue = expectedSaleControl.field.value;
41
+ var countryCode = settingsData.businessCountry;
42
+ var openSalesScreen = function () {
43
+ if (readOnly)
44
+ return;
45
+ dispatch(handleCurrentActiveScreen('BRAND_EXCEPTED_SALES_STEP'));
46
+ };
47
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(InputStyled, { label: t('expected_sales_monthly', {
48
+ currency: t(findCurrencyByIso2(countryCode.iso2))
49
+ }), InputProps: {
50
+ endAdornment: (_jsxs(_Fragment, { children: [_jsx(CheckIcon, { isVerified: isVerified, sx: { marginInlineEnd: '10px' } }), _jsx(ExpandIconStyled, {})] }))
51
+ }, inputProps: {
52
+ readOnly: readOnly
53
+ }, value: isAr ? (_b = expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name.ar) !== null && _b !== void 0 ? _b : '' : (_c = expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name.en) !== null && _c !== void 0 ? _c : '', onClick: openSalesScreen, placeholder: t('choose_expected_sales') }) }) })));
54
+ };
55
+ export default ExpectedSaleField;
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import Box from '@mui/material/Box';
15
- import { styled, alpha } from '@mui/material/styles';
15
+ import { styled, useTheme } from '@mui/material/styles';
16
16
  import CheckBox from '../../../../components/CheckBox';
17
17
  import Collapse from '../../../../components/Collapse';
18
18
  import { useTranslation } from 'react-i18next';
@@ -28,24 +28,14 @@ import { useAppSelector } from '../../../../hooks';
28
28
  import { brandSelector } from '../../../app/brand/brandStore';
29
29
  export var ContainerStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'readOnly'; } })(function (_a) {
30
30
  var theme = _a.theme, readOnly = _a.readOnly;
31
- return (__assign({ display: 'flex', flexDirection: 'row', alignItems: 'center', padding: theme.spacing(0, 2.5, 1.5, 2.5) }, (readOnly && {
31
+ return (__assign({ display: 'flex', flexDirection: 'row', alignItems: 'center', padding: theme.spacing(0, 3, 0, 3) }, (readOnly && {
32
32
  opacity: '0.6'
33
33
  })));
34
34
  });
35
35
  export var CheckboxStyled = styled(CheckBox)(function (_a) {
36
36
  var theme = _a.theme;
37
37
  return ({
38
- margin: theme.spacing(0),
39
- padding: theme.spacing(0),
40
- marginInlineEnd: theme.spacing(1),
41
- color: theme.palette.primary.main,
42
- '& .MuiSvgIcon-root': {
43
- fontSize: 30
44
- },
45
- '&.Mui-checked': {
46
- color: theme.palette.text.primary,
47
- borderRadius: theme.spacing(2.5)
48
- }
38
+ marginInlineStart: theme.spacing(-1.125)
49
39
  });
50
40
  });
51
41
  var CollapseStyled = styled(Collapse)(function () { return ({
@@ -53,14 +43,16 @@ var CollapseStyled = styled(Collapse)(function () { return ({
53
43
  }); });
54
44
  export var TextStyled = styled(Text)(function (_a) {
55
45
  var theme = _a.theme;
56
- return (__assign({ color: alpha(theme.palette.text.primary, 0.4), fontWeight: theme.typography.fontWeightLight, whiteSpace: 'pre' }, theme.typography.body2));
46
+ return (__assign({ color: theme.palette.secondary.main, fontWeight: theme.typography.fontWeightLight, whiteSpace: 'pre' }, theme.typography.caption));
57
47
  });
58
48
  export var LinkStyled = styled(Link)(function (_a) {
59
49
  var theme = _a.theme;
60
50
  return ({
61
51
  color: theme.palette.primary.main,
62
52
  fontWeight: theme.typography.fontWeightMedium,
63
- letterSpacing: theme.spacing(0)
53
+ letterSpacing: theme.spacing(0),
54
+ textDecorationColor: theme.palette.primary.main,
55
+ textDecorationThickness: theme.spacing(0.125)
64
56
  });
65
57
  });
66
58
  var RefundPolicy = function (_a) {
@@ -68,6 +60,7 @@ var RefundPolicy = function (_a) {
68
60
  var readOnly = _a.readOnly;
69
61
  var t = useTranslation().t;
70
62
  var isAr = useLanguage().isAr;
63
+ var theme = useTheme();
71
64
  var control = useFormContext().control;
72
65
  var settingsData = useAppSelector(settingsSelector).data;
73
66
  var data = useAppSelector(brandSelector).data;
@@ -88,6 +81,6 @@ var RefundPolicy = function (_a) {
88
81
  return;
89
82
  refundControl.field.onChange(checked);
90
83
  };
91
- return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, { children: [_jsxs(ContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: refundChecked, onChange: handleRefundCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_refund_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_EN, target: '_blank', underline: 'always' }, { children: t('refund_policy_compliance') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] }) })));
84
+ return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: theme.spacing(-0.625) } }, { children: [_jsxs(ContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: refundChecked, onChange: handleRefundCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_refund_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.REFUND_EN, target: '_blank', underline: 'always' }, { children: t('refund_policy_compliance') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Box, __assign({ sx: { ml: 3, mr: 3, mb: 1 } }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) })) }))] })) })));
92
85
  };
93
86
  export default RefundPolicy;
@@ -14,7 +14,7 @@ import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
16
  import Box from '@mui/material/Box';
17
- import { styled, alpha } from '@mui/material/styles';
17
+ import { styled } from '@mui/material/styles';
18
18
  import Link from '@mui/material/Link';
19
19
  import CheckBox from '../../../../components/CheckBox';
20
20
  import { ScreenContainer } from '../../../shared/Containers';
@@ -28,38 +28,25 @@ import { useAppSelector } from '../../../../hooks';
28
28
  import { brandSelector } from '../../../app/brand/brandStore';
29
29
  export var TACContainerStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'readOnly'; } })(function (_a) {
30
30
  var theme = _a.theme, readOnly = _a.readOnly;
31
- return (__assign({ display: 'flex', flexDirection: 'row', alignItems: 'center', padding: theme.spacing(0, 2.5, 1.5, 2.5) }, (readOnly && {
31
+ return (__assign({ display: 'flex', flexDirection: 'row', alignItems: 'center', padding: theme.spacing(0, 3, 0, 3) }, (readOnly && {
32
32
  opacity: '0.6'
33
33
  })));
34
34
  });
35
35
  var TextStyled = styled(Text)(function (_a) {
36
36
  var theme = _a.theme;
37
- return (__assign({ color: alpha(theme.palette.text.primary, 0.4), fontWeight: theme.typography.fontWeightLight, whiteSpace: 'pre-line', height: 'fit-content' }, theme.typography.body2));
37
+ return (__assign({ color: theme.palette.secondary.main, fontWeight: theme.typography.fontWeightLight, whiteSpace: 'pre-line', height: 'fit-content' }, theme.typography.caption));
38
38
  });
39
39
  var LinkStyled = styled(Link)(function (_a) {
40
40
  var theme = _a.theme;
41
41
  return ({
42
42
  color: theme.palette.primary.main,
43
43
  fontWeight: theme.typography.fontWeightMedium,
44
- letterSpacing: theme.spacing(0)
45
- });
46
- });
47
- var CheckboxStyled = styled(CheckBox)(function (_a) {
48
- var theme = _a.theme;
49
- return ({
50
- margin: theme.spacing(0),
51
- padding: theme.spacing(0),
52
- marginInlineEnd: theme.spacing(1),
53
- color: theme.palette.primary.main,
54
- '& .MuiSvgIcon-root': {
55
- fontSize: theme.spacing(3.75)
56
- },
57
- '&.Mui-checked': {
58
- color: theme.palette.text.primary,
59
- borderRadius: theme.spacing(2.5)
60
- }
44
+ letterSpacing: theme.spacing(0),
45
+ textDecorationColor: theme.palette.primary.main,
46
+ textDecorationThickness: theme.spacing(0.125)
61
47
  });
62
48
  });
49
+ var CheckboxStyled = styled(CheckBox)(function () { return ({}); });
63
50
  var CollapseStyled = styled(Collapse)(function () { return ({
64
51
  width: '100%'
65
52
  }); });
@@ -88,6 +75,6 @@ var TAC = function (_a) {
88
75
  return;
89
76
  tacControl.field.onChange(checked);
90
77
  };
91
- return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.75 } }, { children: [_jsxs(TACContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: tacChecked, onChange: handleTACCheckedChange }), _jsxs(TextStyled, { children: [t('read_agree_terms_and_conditions_message'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TOS_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TOS_EN, target: '_blank', underline: 'always' }, { children: t('terms_and_conditions_link_title') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] })) })));
78
+ return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2 } }, { children: [_jsxs(TACContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { sx: { mt: 0 }, disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: tacChecked, onChange: handleTACCheckedChange }), _jsxs(TextStyled, { children: [t('read_agree_terms_and_conditions_message'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TOS_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TOS_EN, target: '_blank', underline: 'always' }, { children: t('terms_and_conditions_link_title') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Box, __assign({ sx: { ml: 3, mr: 3, mb: 1 } }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) })) }))] })) })));
92
79
  };
93
80
  export default React.memo(TAC);
@@ -11,7 +11,8 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
- import { styled } from '@mui/material/styles';
14
+ import { styled, useTheme } from '@mui/material/styles';
15
+ import Box from '@mui/material/Box';
15
16
  import Collapse from '../../../../components/Collapse';
16
17
  import { useTranslation } from 'react-i18next';
17
18
  import { useLanguage } from '../../../../hooks';
@@ -31,6 +32,7 @@ var TransactionPolicy = function (_a) {
31
32
  var readOnly = _a.readOnly;
32
33
  var t = useTranslation().t;
33
34
  var isAr = useLanguage().isAr;
35
+ var theme = useTheme();
34
36
  var control = useFormContext().control;
35
37
  var settingsData = useAppSelector(settingsSelector).data;
36
38
  var data = useAppSelector(brandSelector).data;
@@ -51,6 +53,6 @@ var TransactionPolicy = function (_a) {
51
53
  return;
52
54
  transactionControl.field.onChange(checked);
53
55
  };
54
- return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, { children: [_jsxs(ContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: transactionChecked, onChange: handleTransactionCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_chargeback_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_EN, target: '_blank', underline: 'always' }, { children: t('chargeback_policy') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] }) })));
56
+ return (_jsx(Collapse, __assign({ in: !isChecked }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: theme.spacing(-0.625) } }, { children: [_jsxs(ContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { sx: { mt: 0 }, disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: transactionChecked, onChange: handleTransactionCheckedChange }), _jsxs(TextStyled, { children: [t('agree_on_chargeback_policy'), _jsx(LinkStyled, __assign({ href: isAr ? TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_AR : TAP_WEBSITE + countryCode + EXTERNAL_LINKS.TRANSACTION_EN, target: '_blank', underline: 'always' }, { children: t('chargeback_policy') }))] })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Box, __assign({ sx: { ml: 3, mr: 3 } }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) })) }))] })) })));
55
57
  };
56
58
  export default TransactionPolicy;
@@ -21,7 +21,7 @@ import Form from '../../../../components/Form';
21
21
  import { deepCopy, mapSalesChannel } from '../../../../utils';
22
22
  import Button from '../../../shared/Button';
23
23
  import { clearError, brandSelector, updateBrand, retrieveBoardStatus } from '../../../app/brand/brandStore';
24
- import { ScreenContainer } from '../../../shared/Containers';
24
+ import { ContainerWithHeader } from '../../../shared/Containers';
25
25
  import BrandName from './BrandName';
26
26
  import SalesChannels from './SalesChannels';
27
27
  import BrandLogo from './BrandLogo';
@@ -81,6 +81,6 @@ var BrandInfo = function (_a) {
81
81
  }, [responseBody]);
82
82
  var brandErrChecks = !methods.formState.isValid || !!methods.formState.errors.brandName || !!error;
83
83
  var disabled = brandErrChecks || brandNameChecking || uploadingBrandLogo;
84
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(BrandName, { readOnly: readOnly['brandName'] || (noneEditable['name.en'] && noneEditable['name.ar']), brandNameChecking: brandNameChecking, fetchingBrandName: setBrandNameChecking, isVerified: isBrandNameVerified }), _jsx(BrandLogo, { defaultFile: defaultBrandLogoFile, readOnly: readOnly['brandLogoId'], isVerified: dataVerified['logo'] }), _jsx(SalesChannels, { readOnly: readOnly['salesChannels'] || noneEditable['channel_services'] }), _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, error: t(error || ''), loading: loading }, { children: t('next') }))] })) })) }));
84
+ return (_jsx(ContainerWithHeader, __assign({ onBack: function () { return onBack(); }, title: 'brand_info_title', description: 'brand_info_description' }, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(BrandName, { readOnly: readOnly['brandName'] || (noneEditable['name.en'] && noneEditable['name.ar']), brandNameChecking: brandNameChecking, fetchingBrandName: setBrandNameChecking, isVerified: isBrandNameVerified }), _jsx(BrandLogo, { defaultFile: defaultBrandLogoFile, readOnly: readOnly['brandLogoId'], isVerified: dataVerified['logo'] }), _jsx(SalesChannels, { readOnly: readOnly['salesChannels'] || noneEditable['channel_services'] }), _jsx(Button, __assign({ disableBack: true, disabled: disabled, isAr: isAr, error: t(error || ''), loading: loading }, { children: t('next') }))] })) })) })));
85
85
  };
86
86
  export default BrandInfo;
@@ -6,7 +6,7 @@ import { useAppDispatch, useAppSelector } from '../../../../hooks';
6
6
  import { DocumentPurpose } from '../../../../@types';
7
7
  import { FileRemoveType, VALID_FILE_FORMATS_FOR_IMAGE } from '../../../../constants';
8
8
  import { ScreenContainer } from '../../../shared/Containers';
9
- import { UploadWrapper } from '../../../shared/UploadFile';
9
+ import UploadWrapper from '../../../shared/UploadFile';
10
10
  import { brandSelector, uploadingBrandLogoStatus, clearBrandLogo, clearError } from '../../../app/brand/brandStore';
11
11
  var FeatureStyled = styled(ScreenContainer)(function (_a) {
12
12
  var theme = _a.theme;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -45,60 +34,23 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
45
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
35
  }
47
36
  };
48
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
37
+ import { jsx as _jsx } from "react/jsx-runtime";
49
38
  import * as React from 'react';
50
39
  import { debounce } from 'lodash-es';
51
40
  import axios from 'axios';
52
41
  import { useTranslation } from 'react-i18next';
53
42
  import { useController, useFormContext } from 'react-hook-form';
54
- import Box from '@mui/material/Box';
55
- import { styled, alpha } from '@mui/material/styles';
56
- import InfoIcon from '@mui/icons-material/Info';
57
- import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
58
43
  import { FieldType } from '../../../../@types';
59
44
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
60
- import Tooltip from '../../../../components/Tooltip';
61
- import Text from '../../../../components/Text';
62
- import Input from '../../../shared/Input';
45
+ import Input from '../../../shared/TextField';
63
46
  import { ScreenContainer } from '../../../shared/Containers';
64
47
  import { checkBrandNameAvailability, brandSelector } from '../../../app/brand/brandStore';
65
48
  import { EndAdornment } from '../../../shared/EndAdornment';
66
- var LabelContainerStyled = styled(Box)(function (_a) {
67
- var theme = _a.theme;
68
- return ({
69
- display: 'flex',
70
- justifyContent: 'space-between',
71
- padding: theme.spacing(0, 2.5, 1, 2.5)
72
- });
73
- });
74
- var InputLabelStyled = styled(Text)(function (_a) {
75
- var theme = _a.theme;
76
- return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
77
- });
78
- var InfoOutlinedIconStyled = styled(InfoOutlinedIcon)(function (_a) {
79
- var theme = _a.theme;
80
- return ({
81
- width: theme.spacing(2.75),
82
- height: theme.spacing(2.125),
83
- cursor: 'pointer',
84
- color: alpha(theme.palette.text.primary, 0.4)
85
- });
86
- });
87
- var InfoIconStyled = styled(InfoIcon)(function (_a) {
88
- var theme = _a.theme;
89
- return ({
90
- width: theme.spacing(2.75),
91
- height: theme.spacing(2.125),
92
- cursor: 'pointer',
93
- color: alpha(theme.palette.text.primary, 0.4)
94
- });
95
- });
96
49
  var cancelToken = null;
97
50
  var BrandName = function (_a) {
98
51
  var _b, _c;
99
52
  var brandNameChecking = _a.brandNameChecking, fetchingBrandName = _a.fetchingBrandName, readOnly = _a.readOnly, isVerified = _a.isVerified;
100
53
  var dispatch = useAppDispatch();
101
- var _d = React.useState(false), isHovered = _d[0], setIsHovered = _d[1];
102
54
  var t = useTranslation().t;
103
55
  var data = useAppSelector(brandSelector).data;
104
56
  var control = useFormContext().control;
@@ -135,6 +87,10 @@ var BrandName = function (_a) {
135
87
  var clearBrandName = function () {
136
88
  brandControl.field.onChange('');
137
89
  };
138
- return (_jsxs(ScreenContainer, __assign({ sx: { mt: 2.5, mb: 0 } }, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: t('signup_brand_name_label') }), _jsx(Tooltip, __assign({ title: t('brand_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(Input, { readOnly: readOnly, onChange: handleBrandNameChange, value: brandNameValue || '', disabled: isNonEditable, placeholder: t('signup_brand_name_placeholder'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: brandNameValue, loading: brandNameChecking, isVerified: isVerified, error: error, onClear: clearBrandName }) })] })));
90
+ return (_jsx(ScreenContainer, { children: _jsx(Input, { label: t('signup_brand_name_label'), inputProps: {
91
+ readOnly: readOnly
92
+ }, InputProps: {
93
+ endAdornment: (_jsx(EndAdornment, { value: brandNameValue, loading: brandNameChecking, isVerified: isVerified, error: error, onClear: clearBrandName }))
94
+ }, required: true, onChange: handleBrandNameChange, value: brandNameValue || '', disabled: isNonEditable, placeholder: t('signup_brand_name_placeholder'), helperText: error && t(error) }) }));
139
95
  };
140
96
  export default React.memo(BrandName);
@@ -15,12 +15,13 @@ import { useTranslation } from 'react-i18next';
15
15
  import { FormProvider, useForm } from 'react-hook-form';
16
16
  import { styled } from '@mui/material/styles';
17
17
  import { useAppDispatch, useAppSelector, useDataNoneEditable, useFormReadOnly, useLanguage, useSetFromDefaultValues, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '../../../../hooks';
18
- import { handlePrevScreenStep } from '../../../../app/settings';
18
+ import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
19
19
  import { yupResolver } from '@hookform/resolvers/yup';
20
+ import { DropDownMode } from '../../../../@types';
20
21
  import Collapse from '../../../../components/Collapse';
21
22
  import Form from '../../../../components/Form';
23
+ import { ContainerWithHeader } from '../../../shared/Containers';
22
24
  import { deepCopy } from '../../../../utils';
23
- import { ScreenContainer } from '../../../shared/Containers';
24
25
  import { clearError, brandSelector, updateSegmentBrand } from '../../../app/brand/brandStore';
25
26
  import Button from '../../../shared/Button';
26
27
  import SegmentLocations from './SegmentLocations';
@@ -46,9 +47,11 @@ var BrandInfo = function (_a) {
46
47
  var t = useTranslation().t;
47
48
  var isAr = useLanguage().isAr;
48
49
  var _l = useAppSelector(brandSelector), data = _l.data, loading = _l.loading, error = _l.error;
50
+ var settingsStore = useAppSelector(settingsSelector);
49
51
  var _m = data.brandSegmentData, segmentLocation = _m.segmentLocation, segmentProfit = _m.segmentProfit, segmentTech = _m.segmentTech, teamSize = _m.teamSize;
50
52
  var brand = (data.verify.responseBody || {}).brand;
51
53
  var _o = brand || {}, data_status = _o.data_status, data_verification = _o.data_verification, resSegment = _o.segment;
54
+ var isPopupMode = settingsStore.data.dropDownOpenMode === DropDownMode.popup;
52
55
  var methods = useForm({
53
56
  resolver: yupResolver(BrandValidationSchema()),
54
57
  defaultValues: {
@@ -92,12 +95,13 @@ var BrandInfo = function (_a) {
92
95
  }, [methods.formState.isValid]);
93
96
  var disabled = !methods.formState.isValid || !!error;
94
97
  var handleMenuClick = function (flag) {
95
- setListActive(flag);
98
+ if (!isPopupMode)
99
+ setListActive(flag);
96
100
  };
97
101
  var isSegmentLocationListActive = listActive === ListType.SegmentLocationList;
98
102
  var isSegmentProfitListActive = listActive === ListType.SegmentProfitList;
99
103
  var isSegmentTechListActive = listActive === ListType.SegmentTechList;
100
104
  var isTeamSizeListActive = listActive === ListType.TeamSizeList;
101
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(SegmentLocations, { readOnly: readOnly['segmentLocation'], show: !isTeamSizeListActive && !isSegmentProfitListActive && !isSegmentTechListActive, onListOpen: function () { return handleMenuClick(ListType.SegmentLocationList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isSegmentLocationVerified }), _jsx(SegmentProfits, { readOnly: readOnly['segmentProfit'], show: !isTeamSizeListActive && !isSegmentLocationListActive && !isSegmentTechListActive, onListOpen: function () { return handleMenuClick(ListType.SegmentProfitList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isSegmentProfitVerified }), _jsx(SegmentTechs, { readOnly: readOnly['segmentTech'], show: !isTeamSizeListActive && !isSegmentLocationListActive && !isSegmentProfitListActive, onListOpen: function () { return handleMenuClick(ListType.SegmentTechList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isSegmentTechVerified }), _jsx(TeamSize, { readOnly: readOnly['teamSize'] || noneEditable['segment.teams'], show: !isSegmentLocationListActive && !isSegmentProfitListActive && !isSegmentTechListActive, onListOpen: function () { return handleMenuClick(ListType.TeamSizeList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isTeamSizeVerified }), _jsx(Collapse, __assign({ in: !listActive }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, error: t(error || ''), loading: loading }, { children: t('next') })) }))] })) })) }));
105
+ return (_jsx(ContainerWithHeader, __assign({ onBack: function () { return onBack(); }, title: 'brand_segment_title', description: 'brand_segment_description' }, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(SegmentLocations, { isPopupMode: isPopupMode, readOnly: readOnly['segmentLocation'], show: !isTeamSizeListActive && !isSegmentProfitListActive && !isSegmentTechListActive, onListOpen: function () { return handleMenuClick(ListType.SegmentLocationList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isSegmentLocationVerified }), _jsx(SegmentProfits, { isPopupMode: isPopupMode, readOnly: readOnly['segmentProfit'], show: !isTeamSizeListActive && !isSegmentLocationListActive && !isSegmentTechListActive, onListOpen: function () { return handleMenuClick(ListType.SegmentProfitList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isSegmentProfitVerified }), _jsx(SegmentTechs, { isPopupMode: isPopupMode, readOnly: readOnly['segmentTech'], show: !isTeamSizeListActive && !isSegmentLocationListActive && !isSegmentProfitListActive, onListOpen: function () { return handleMenuClick(ListType.SegmentTechList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isSegmentTechVerified }), _jsx(TeamSize, { isPopupMode: isPopupMode, readOnly: readOnly['teamSize'] || noneEditable['segment.teams'], show: !isSegmentLocationListActive && !isSegmentProfitListActive && !isSegmentTechListActive, onListOpen: function () { return handleMenuClick(ListType.TeamSizeList); }, onListClose: function () { return handleMenuClick(); }, isVerified: isTeamSizeVerified }), _jsx(Collapse, __assign({ in: !listActive }, { children: _jsx(Button, __assign({ disableBack: true, disabled: disabled, isAr: isAr, error: t(error || ''), loading: loading }, { children: t('next') })) }))] })) })) })));
102
106
  };
103
107
  export default BrandInfo;
@@ -5,6 +5,7 @@ interface SegmentLocationsProps {
5
5
  onListClose?: () => void;
6
6
  readOnly?: boolean;
7
7
  isVerified?: boolean;
8
+ isPopupMode: boolean;
8
9
  }
9
- declare const SegmentLocations: ({ show, onListOpen, onListClose, readOnly, isVerified }: SegmentLocationsProps) => JSX.Element;
10
+ declare const SegmentLocations: ({ show, onListOpen, onListClose, readOnly, isVerified, isPopupMode }: SegmentLocationsProps) => JSX.Element;
10
11
  export default SegmentLocations;
@@ -16,21 +16,23 @@ import { useController, useFormContext } from 'react-hook-form';
16
16
  import Box from '@mui/material/Box';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import { useAppSelector, useLanguage } from '../../../../hooks';
19
+ import { ThemeMode } from '../../../../@types';
19
20
  import SimpleList from '../../../../components/SimpleList';
20
21
  import Text from '../../../../components/Text';
21
22
  import Collapse from '../../../../components/Collapse';
22
23
  import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
23
24
  import { ScreenContainer } from '../../../shared/Containers';
24
- import InputSelect from '../../../shared/InputSelect';
25
+ import InputSelect from '../../../shared/TextFieldSelect';
25
26
  import CheckIcon from '../../../shared/CheckIcon';
26
27
  import { brandSelector } from '../../../app/brand/brandStore';
28
+ import DropDownStyle from '../../../shared/DropDownStyle';
27
29
  var IncomeText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
28
30
  var theme = _a.theme, isSelected = _a.isSelected;
29
- return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
31
+ return (__assign(__assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
30
32
  });
31
33
  var SegmentLocations = function (_a) {
32
34
  var _b, _c, _d;
33
- var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified;
35
+ var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified, isPopupMode = _a.isPopupMode;
34
36
  var _e = React.useState([]), segmentList = _e[0], setSegmentList = _e[1];
35
37
  var _f = React.useState(null), anchorEl = _f[0], setAnchorEl = _f[1];
36
38
  var t = useTranslation().t;
@@ -61,9 +63,13 @@ var SegmentLocations = function (_a) {
61
63
  onCloseList();
62
64
  segmentControl.field.onChange(segment);
63
65
  };
64
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5, mb: 0 } }, { children: [_jsx(InputSelect, { required: true, label: t('segment_location_title'), readOnly: readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified }), placeholder: t('choose_any_segment'), value: (isAr ? (_c = segment === null || segment === void 0 ? void 0 : segment.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = segment === null || segment === void 0 ? void 0 : segment.name) === null || _d === void 0 ? void 0 : _d.en) || '', warningMessage: error && t(error) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.en', searchValuePath: ['name.ar', 'name.en'], list: segmentList, onSelectItem: onSelectItem, renderItem: function (item) {
66
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputSelect, { required: true, InputProps: {
67
+ endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified })
68
+ }, inputProps: {
69
+ readOnly: readOnly
70
+ }, label: t('segment_location_title'), onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_segment'), value: (isAr ? (_c = segment === null || segment === void 0 ? void 0 : segment.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = segment === null || segment === void 0 ? void 0 : segment.name) === null || _d === void 0 ? void 0 : _d.en) || '', helperText: error && t(error) }), _jsx(DropDownStyle, __assign({ isPopupMode: isPopupMode, anchorEl: anchorEl, onClosePopup: onCloseList }, { children: _jsx(SimpleList, { isPopupMode: isPopupMode, list: segmentList, onSelectItem: onSelectItem, renderItem: function (item) {
65
71
  var _a, _b;
66
72
  return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (segment === null || segment === void 0 ? void 0 : segment.id) }, { children: isAr ? (_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en })) })), item.id === (segment === null || segment === void 0 ? void 0 : segment.id) && _jsx(CheckIcon, { isVerified: isVerified })] }));
67
- } }) }))] })) })));
73
+ } }) }))] }) })));
68
74
  };
69
75
  export default SegmentLocations;
@@ -5,6 +5,7 @@ interface SegmentProfitsProps {
5
5
  onListClose?: () => void;
6
6
  readOnly?: boolean;
7
7
  isVerified?: boolean;
8
+ isPopupMode: boolean;
8
9
  }
9
- declare const SegmentProfits: ({ show, onListOpen, onListClose, readOnly, isVerified }: SegmentProfitsProps) => JSX.Element;
10
+ declare const SegmentProfits: ({ show, onListOpen, onListClose, readOnly, isVerified, isPopupMode }: SegmentProfitsProps) => JSX.Element;
10
11
  export default SegmentProfits;
@@ -16,21 +16,23 @@ import { useController, useFormContext } from 'react-hook-form';
16
16
  import Box from '@mui/material/Box';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import { useAppSelector, useLanguage } from '../../../../hooks';
19
+ import { ThemeMode } from '../../../../@types';
19
20
  import SimpleList from '../../../../components/SimpleList';
20
21
  import Text from '../../../../components/Text';
21
22
  import Collapse from '../../../../components/Collapse';
22
23
  import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
23
24
  import { ScreenContainer } from '../../../shared/Containers';
24
- import InputSelect from '../../../shared/InputSelect';
25
+ import InputSelect from '../../../shared/TextFieldSelect';
25
26
  import CheckIcon from '../../../shared/CheckIcon';
27
+ import DropDownStyle from '../../../shared/DropDownStyle';
26
28
  import { brandSelector } from '../../../app/brand/brandStore';
27
29
  var IncomeText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
28
30
  var theme = _a.theme, isSelected = _a.isSelected;
29
- return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
31
+ return (__assign(__assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
30
32
  });
31
33
  var SegmentProfits = function (_a) {
32
34
  var _b, _c, _d;
33
- var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified;
35
+ var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified, isPopupMode = _a.isPopupMode;
34
36
  var _e = React.useState([]), segmentList = _e[0], setSegmentList = _e[1];
35
37
  var _f = React.useState(null), anchorEl = _f[0], setAnchorEl = _f[1];
36
38
  var t = useTranslation().t;
@@ -61,7 +63,11 @@ var SegmentProfits = function (_a) {
61
63
  onCloseList();
62
64
  segmentControl.field.onChange(segment);
63
65
  };
64
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5, mb: 0 } }, { children: [_jsx(InputSelect, { required: true, label: t('segment_profit_title'), readOnly: readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified }), placeholder: t('choose_any_segment'), value: (isAr ? (_c = segment === null || segment === void 0 ? void 0 : segment.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = segment === null || segment === void 0 ? void 0 : segment.name) === null || _d === void 0 ? void 0 : _d.en) || '', warningMessage: error && t(error) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.en', searchValuePath: ['name.ar', 'name.en'], list: segmentList, onSelectItem: onSelectItem, renderItem: function (item) {
66
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 1.5 } }, { children: [_jsx(InputSelect, { required: true, label: t('segment_profit_title'), InputProps: {
67
+ endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified })
68
+ }, inputProps: {
69
+ readOnly: readOnly
70
+ }, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_segment'), value: (isAr ? (_c = segment === null || segment === void 0 ? void 0 : segment.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = segment === null || segment === void 0 ? void 0 : segment.name) === null || _d === void 0 ? void 0 : _d.en) || '', helperText: error && t(error) }), _jsx(DropDownStyle, __assign({ isPopupMode: isPopupMode, anchorEl: anchorEl, onClosePopup: onCloseList }, { children: _jsx(SimpleList, { isPopupMode: isPopupMode, list: segmentList, onSelectItem: onSelectItem, renderItem: function (item) {
65
71
  var _a, _b;
66
72
  return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (segment === null || segment === void 0 ? void 0 : segment.id) }, { children: isAr ? (_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en })) })), item.id === (segment === null || segment === void 0 ? void 0 : segment.id) && _jsx(CheckIcon, { isVerified: isVerified })] }));
67
73
  } }) }))] })) })));
@@ -5,6 +5,7 @@ interface SegmentTechsProps {
5
5
  onListClose?: () => void;
6
6
  readOnly?: boolean;
7
7
  isVerified?: boolean;
8
+ isPopupMode: boolean;
8
9
  }
9
- declare const SegmentTechs: ({ show, onListOpen, onListClose, readOnly, isVerified }: SegmentTechsProps) => JSX.Element;
10
+ declare const SegmentTechs: ({ show, onListOpen, onListClose, readOnly, isVerified, isPopupMode }: SegmentTechsProps) => JSX.Element;
10
11
  export default SegmentTechs;
@@ -16,21 +16,23 @@ import { useController, useFormContext } from 'react-hook-form';
16
16
  import Box from '@mui/material/Box';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import { useAppSelector, useLanguage } from '../../../../hooks';
19
+ import { ThemeMode } from '../../../../@types';
19
20
  import SimpleList from '../../../../components/SimpleList';
20
21
  import Text from '../../../../components/Text';
21
22
  import Collapse from '../../../../components/Collapse';
22
23
  import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
23
24
  import { ScreenContainer } from '../../../shared/Containers';
24
- import InputSelect from '../../../shared/InputSelect';
25
+ import InputSelect from '../../../shared/TextFieldSelect';
25
26
  import CheckIcon from '../../../shared/CheckIcon';
27
+ import DropDownStyle from '../../../shared/DropDownStyle';
26
28
  import { brandSelector } from '../../../app/brand/brandStore';
27
29
  var IncomeText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
28
30
  var theme = _a.theme, isSelected = _a.isSelected;
29
- return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
31
+ return (__assign(__assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
30
32
  });
31
33
  var SegmentTechs = function (_a) {
32
34
  var _b, _c, _d;
33
- var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified;
35
+ var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified, isPopupMode = _a.isPopupMode;
34
36
  var _e = React.useState([]), segmentList = _e[0], setSegmentList = _e[1];
35
37
  var _f = React.useState(null), anchorEl = _f[0], setAnchorEl = _f[1];
36
38
  var t = useTranslation().t;
@@ -61,7 +63,11 @@ var SegmentTechs = function (_a) {
61
63
  onCloseList();
62
64
  segmentControl.field.onChange(segment);
63
65
  };
64
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5, mb: 0 } }, { children: [_jsx(InputSelect, { required: true, label: t('segment_tech_title'), readOnly: readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified }), placeholder: t('choose_any_segment'), value: (isAr ? (_c = segment === null || segment === void 0 ? void 0 : segment.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = segment === null || segment === void 0 ? void 0 : segment.name) === null || _d === void 0 ? void 0 : _d.en) || '', warningMessage: error && t(error) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.en', searchValuePath: ['name.ar', 'name.en'], list: segmentList, onSelectItem: onSelectItem, renderItem: function (item) {
66
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 1.5 } }, { children: [_jsx(InputSelect, { required: true, label: t('segment_tech_title'), InputProps: {
67
+ endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified })
68
+ }, inputProps: {
69
+ readOnly: readOnly
70
+ }, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_segment'), value: (isAr ? (_c = segment === null || segment === void 0 ? void 0 : segment.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = segment === null || segment === void 0 ? void 0 : segment.name) === null || _d === void 0 ? void 0 : _d.en) || '', helperText: error && t(error) }), _jsx(DropDownStyle, __assign({ isPopupMode: isPopupMode, anchorEl: anchorEl, onClosePopup: onCloseList }, { children: _jsx(SimpleList, { isPopupMode: isPopupMode, list: segmentList, onSelectItem: onSelectItem, renderItem: function (item) {
65
71
  var _a, _b;
66
72
  return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (segment === null || segment === void 0 ? void 0 : segment.id) }, { children: isAr ? (_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en })) })), item.id === (segment === null || segment === void 0 ? void 0 : segment.id) && _jsx(CheckIcon, { isVerified: isVerified })] }));
67
73
  } }) }))] })) })));
@@ -5,6 +5,7 @@ interface TeamSizeProps {
5
5
  onListClose?: () => void;
6
6
  readOnly?: boolean;
7
7
  isVerified?: boolean;
8
+ isPopupMode: boolean;
8
9
  }
9
- declare const TeamSize: ({ show, onListOpen, onListClose, readOnly, isVerified }: TeamSizeProps) => JSX.Element;
10
+ declare const TeamSize: ({ show, onListOpen, onListClose, readOnly, isVerified, isPopupMode }: TeamSizeProps) => JSX.Element;
10
11
  export default TeamSize;
@@ -19,18 +19,20 @@ import SimpleList from '../../../../components/SimpleList';
19
19
  import Text from '../../../../components/Text';
20
20
  import Collapse from '../../../../components/Collapse';
21
21
  import { useAppSelector, useLanguage } from '../../../../hooks';
22
+ import { ThemeMode } from '../../../../@types';
22
23
  import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
23
24
  import { ScreenContainer } from '../../../shared/Containers';
24
- import InputSelect from '../../../shared/InputSelect';
25
+ import InputSelect from '../../../shared/TextFieldSelect';
25
26
  import CheckIcon from '../../../shared/CheckIcon';
27
+ import DropDownStyle from '../../../shared/DropDownStyle';
26
28
  import { brandSelector } from '../../../app/brand/brandStore';
27
29
  var IncomeText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
28
30
  var theme = _a.theme, isSelected = _a.isSelected;
29
- return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
31
+ return (__assign(__assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
30
32
  });
31
33
  var TeamSize = function (_a) {
32
34
  var _b, _c, _d;
33
- var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified;
35
+ var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified, isPopupMode = _a.isPopupMode;
34
36
  var _e = React.useState([]), teamSizeList = _e[0], setTeamSizeList = _e[1];
35
37
  var _f = React.useState(null), anchorEl = _f[0], setAnchorEl = _f[1];
36
38
  var t = useTranslation().t;
@@ -61,7 +63,11 @@ var TeamSize = function (_a) {
61
63
  onCloseList();
62
64
  teamSizeControl.field.onChange(teamSize);
63
65
  };
64
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5, mb: 0 } }, { children: [_jsx(InputSelect, { required: true, label: t('team_size_title'), readOnly: readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified }), placeholder: t('choose_team_size'), value: (isAr ? (_c = teamSize === null || teamSize === void 0 ? void 0 : teamSize.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = teamSize === null || teamSize === void 0 ? void 0 : teamSize.name) === null || _d === void 0 ? void 0 : _d.en) || '', warningMessage: error && t(error) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.en', searchValuePath: ['name.ar', 'name.en'], list: teamSizeList, onSelectItem: onSelectItem, renderItem: function (item) {
66
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 1.5 } }, { children: [_jsx(InputSelect, { required: true, label: t('team_size_title'), InputProps: {
67
+ endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified })
68
+ }, inputProps: {
69
+ readOnly: readOnly
70
+ }, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_team_size'), value: (isAr ? (_c = teamSize === null || teamSize === void 0 ? void 0 : teamSize.name) === null || _c === void 0 ? void 0 : _c.ar : (_d = teamSize === null || teamSize === void 0 ? void 0 : teamSize.name) === null || _d === void 0 ? void 0 : _d.en) || '', helperText: error && t(error) }), _jsx(DropDownStyle, __assign({ isPopupMode: isPopupMode, anchorEl: anchorEl, onClosePopup: onCloseList }, { children: _jsx(SimpleList, { isPopupMode: isPopupMode, list: teamSizeList, onSelectItem: onSelectItem, renderItem: function (item) {
65
71
  var _a, _b;
66
72
  return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (teamSize === null || teamSize === void 0 ? void 0 : teamSize.id) }, { children: isAr ? (_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en })) })), item.id === (teamSize === null || teamSize === void 0 ? void 0 : teamSize.id) && _jsx(CheckIcon, { isVerified: isVerified })] }));
67
73
  } }) }))] })) })));