appmax-client-vue3 5.2.0 → 5.4.0

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 (846) hide show
  1. package/dist/AD-Ct_GVBfr-Bd5ZmNR6.js +16 -0
  2. package/dist/AE-DiMVenwy-CWAV4obx.js +16 -0
  3. package/dist/AF-DOrptOkS-CHAQ0hS1.js +16 -0
  4. package/dist/AG-CzBMAtom-D230qTCA.js +16 -0
  5. package/dist/AI-A2DnDGPS-B2_jkBvf.js +16 -0
  6. package/dist/AL-BcGdPXjJ-TPv6VjEX.js +16 -0
  7. package/dist/AM-BC_r4gTd-qcF4VZIc.js +16 -0
  8. package/dist/AO-D6GK49nd-DkhfG3AF.js +16 -0
  9. package/dist/AQ-Eeziry42-BWZoK-Vq.js +16 -0
  10. package/dist/AR-AbqVWszQ-CV09rKe0.js +16 -0
  11. package/dist/AS-BWe_Gq8Z-C8aIVvuM.js +16 -0
  12. package/dist/AT-b5CS9jSt-DcT5lkX9.js +16 -0
  13. package/dist/AU-BUbOyX6Q-wsXvOQnA.js +16 -0
  14. package/dist/AW-CjVdJTYe-DmDdQ7Oi.js +16 -0
  15. package/dist/AX-lNtwEmw2-ALqQktQn.js +16 -0
  16. package/dist/AZ-f8zSo9ut-DVsUGYop.js +16 -0
  17. package/dist/AmBulletLegend-4PjWRwae.js +23 -0
  18. package/dist/AmCardV3-BLr7Srwb.js +22 -0
  19. package/dist/AmChip.vue_vue_type_script_setup_true_lang-DwJkCLRa-CnAo6crt.js +36 -0
  20. package/dist/AmDoughnutChartAdapted-DM-boeXA.js +203 -0
  21. package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-C0So4WbN.js +86 -0
  22. package/dist/AmFilterLevelDateSelect-BbVyzCa5-B7-flfY1.js +40 -0
  23. package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-BF14VaC5.js +46 -0
  24. package/dist/AmFilterLevelSelectFilter-Be3LFJno-Crp_phPJ.js +63 -0
  25. package/dist/AmHelper.vue_vue_type_script_setup_true_lang-4vSpYa8P-DxkH8bpU.js +53 -0
  26. package/dist/AmLayoutFeedbackState-ClPW1p3a.js +48 -0
  27. package/dist/AmLayoutInnerData-ufFWPi6w.js +162 -0
  28. package/dist/AmModalV3-D_-nzNY9.js +105 -0
  29. package/dist/AmOutlineCard-BPkPZW4i.js +25 -0
  30. package/dist/AmSkeleton-D3lwqjae.js +35 -0
  31. package/dist/AmText-BHIr8R4l.js +33 -0
  32. package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-DdsMNcUN.js +64 -0
  33. package/dist/ApiService-BJ-yA8hE.js +11 -0
  34. package/dist/AppInstallationConfirmationPasswordModal-CcGEco5V.js +535 -0
  35. package/dist/AppstoreAppView-BiuPcVvW.js +315 -0
  36. package/dist/AppstoreHomeView-CLGJFWfX.js +1372 -0
  37. package/dist/BA-BfV7_7RP-B_Xdq9GS.js +16 -0
  38. package/dist/BB-CC4768VM-C289DJLx.js +16 -0
  39. package/dist/BD-YQdTTbhg-QKlpQDzG.js +16 -0
  40. package/dist/BE-DUYoRyei-0m6_-m4d.js +16 -0
  41. package/dist/BF-XZRLkaHX-COAJeRlK.js +16 -0
  42. package/dist/BG-BAb8lAFP-C_rXnUK9.js +16 -0
  43. package/dist/BH-C1LTB8Fj-B-zg7RL7.js +16 -0
  44. package/dist/BI-RjDfMipp-Cxb_mEHh.js +16 -0
  45. package/dist/BJ-DAv61IMB-oNj71vX3.js +16 -0
  46. package/dist/BL-CFW4iaQd-BzSOI5CG.js +16 -0
  47. package/dist/BM-DuK3dA1G-CWxpTuaT.js +16 -0
  48. package/dist/BN-BXHGopan-yW7NNyVH.js +16 -0
  49. package/dist/BO-CzuoErsx-DErxgePD.js +16 -0
  50. package/dist/BQ-BO-BlM1Uin3-Dk7gFlMd.js +16 -0
  51. package/dist/BQ-SA-BninfeHy-cj6q0xM5.js +16 -0
  52. package/dist/BQ-SE-tq-mCvpl-BhppA6bF.js +16 -0
  53. package/dist/BR-B1GEJ05L-dA2TBuu1.js +16 -0
  54. package/dist/BS-MeULPH4e-DBiVnGB4.js +16 -0
  55. package/dist/BT-BCfQJS6a-RiYgW9TF.js +16 -0
  56. package/dist/BV-CfaYWvM--B1CRk0Oo.js +16 -0
  57. package/dist/BW-jYbPMHhQ-BHRjer87.js +16 -0
  58. package/dist/BY-Ddffd2rT-tV6d9tew.js +16 -0
  59. package/dist/BZ-B7mGW2Jg-hXZ31d2f.js +16 -0
  60. package/dist/BankAccountCrossborderNew.page-BEHGYtwA.js +152 -0
  61. package/dist/BankAccountList.page-DLsCSb5R.js +331 -0
  62. package/dist/BankAccountNew.page-DibHAlIV.js +982 -0
  63. package/dist/CA-CHl-cqJL-iIGUE4jr.js +16 -0
  64. package/dist/CC-DSLZRwFz-Da8t6reA.js +16 -0
  65. package/dist/CD-D4NJYkQm-CHT0ed9W.js +16 -0
  66. package/dist/CF-DoxRpaA9-Cm4dyyUE.js +16 -0
  67. package/dist/CG-Auzp6pC_-C_YxIkUk.js +16 -0
  68. package/dist/CH-B5eEo1aL-n8YtbaF9.js +16 -0
  69. package/dist/CI-DFfmdeVw-CxspS9up.js +16 -0
  70. package/dist/CK-CKWUhjXV-CQXevmgN.js +16 -0
  71. package/dist/CL-Di6p-p6X-DKGSrl50.js +16 -0
  72. package/dist/CM-B0ht31e3-CHae1z_1.js +16 -0
  73. package/dist/CN-CKHlOciI-oe5DrzFs.js +16 -0
  74. package/dist/CO-GBUkcePt-Crd3tasl.js +16 -0
  75. package/dist/CR-Daw5JsjF-IWm1qhjZ.js +16 -0
  76. package/dist/CU-CVOkcTvR-BSxwukR2.js +16 -0
  77. package/dist/CV-cyPoze-o-DumWiygu.js +16 -0
  78. package/dist/CW-Bt-Pwg4j-n_K6mjFh.js +16 -0
  79. package/dist/CX-uhIZlYzy-b7ypn9QU.js +16 -0
  80. package/dist/CY-un4rgwPX-DJoRGBE9.js +16 -0
  81. package/dist/CZ-equ-r4iN-cBzgk7Ri.js +16 -0
  82. package/dist/CashoutAntecipateContent-Dx9u5_Rz.js +42 -0
  83. package/dist/ChargebackAnalytics-BhwTqu2r.js +1701 -0
  84. package/dist/ChargebackDetail-B4fUB9Cg.js +3469 -0
  85. package/dist/ChargebackRate-iZnejOtP.js +77 -0
  86. package/dist/ChatPlayground.page-8B2hswBl.js +508 -0
  87. package/dist/ConfirmationModal-CIKu-V4t.js +105 -0
  88. package/dist/Create.page-BPydpdI-.js +1390 -0
  89. package/dist/CreatePaymentLink-CnB-m8_F.js +856 -0
  90. package/dist/DE-zx7UmJ-V-Cp8fD1KI.js +16 -0
  91. package/dist/DJ-BN1kIFYT-CqC0539K.js +16 -0
  92. package/dist/DK-CrXXNH_h-BHgJKNcT.js +16 -0
  93. package/dist/DM-B4nVdNww-DYywrazc.js +16 -0
  94. package/dist/DO-C7-NF2JD-D05gs8wW.js +16 -0
  95. package/dist/DZ-DSDLbNRb-CK7oQyjO.js +16 -0
  96. package/dist/DashboardAmountDetailsContent-CfnEVs2o.js +65 -0
  97. package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-DFz_R6Rh.js +151 -0
  98. package/dist/DashboardApprovalRateInternationalContent-B6uJqN3A.js +19 -0
  99. package/dist/DashboardApprovalRateNationalContent-RVzx622B.js +74 -0
  100. package/dist/DashboardCarouselContent-DS757F4I.js +958 -0
  101. package/dist/DashboardDetailsContent-DFx8sTqd.js +58 -0
  102. package/dist/DashboardHome-DCKMlnks.js +4247 -0
  103. package/dist/DetailSubscriptionRecurring-BjZ2RfSw.js +1296 -0
  104. package/dist/EC-C_bjTYWm-D_T6EiUi.js +16 -0
  105. package/dist/EE-CQIjuoWO--aXKhjk6.js +16 -0
  106. package/dist/EG-Bs_BHfVR-Bp8CBGVc.js +16 -0
  107. package/dist/EH-CnWam84F-DZMSJzBy.js +16 -0
  108. package/dist/ER-Dcl4hJzq-B17Zsb8s.js +16 -0
  109. package/dist/ES-Bpj2gAdj-CSHU77rl.js +16 -0
  110. package/dist/ET-Dm3q0Ruz-DJTWLyyD.js +16 -0
  111. package/dist/ExternalPendenciesList-DQ8gtd-D.js +651 -0
  112. package/dist/FI-DCqfJeiQ-BGwpFigw.js +16 -0
  113. package/dist/FJ-C6UrGUgI-PQ8_soDV.js +16 -0
  114. package/dist/FK-CAaec31K-BRuERR1x.js +16 -0
  115. package/dist/FM-Cf2SIJ7h-BcYxaIVO.js +16 -0
  116. package/dist/FO-DBb4psBV-B0y2-gBx.js +16 -0
  117. package/dist/FR-CFW4iaQd-BAl-4SkO.js +16 -0
  118. package/dist/FeatureFlagsPage-BMUKC3Mk.js +271 -0
  119. package/dist/GA-D3NTxgTl-0zLGxauc.js +16 -0
  120. package/dist/GB-ENG-Cmkg6Zq8-DvT-QH12.js +16 -0
  121. package/dist/GB-NIR-DKszcfHi-D-99R70n.js +16 -0
  122. package/dist/GB-SCT-BiivwJ71-Bcrwm1LZ.js +16 -0
  123. package/dist/GB-UKM-DgMBd3ib-CNP9rsQK.js +16 -0
  124. package/dist/GB-WLS-DLoDy9iv-T_HcZVx3.js +16 -0
  125. package/dist/GD-Bs1d4We7-BaIihe9V.js +16 -0
  126. package/dist/GE-DXG9iLk5-C89OGNS2.js +16 -0
  127. package/dist/GF-B20s5gtx-CPT3kdi3.js +16 -0
  128. package/dist/GG-BAyrpIoO-BeUbM86y.js +16 -0
  129. package/dist/GH-v3jh5r1X-DnAivaIy.js +16 -0
  130. package/dist/GI-D39Krd4s-auO_v7Un.js +16 -0
  131. package/dist/GL-BDd_W5AU-DkmIIpXU.js +16 -0
  132. package/dist/GM-BNEHspzj-5WzqwnaI.js +16 -0
  133. package/dist/GN-DdIZ0X6d-0dzfgpJt.js +16 -0
  134. package/dist/GP-CFW4iaQd-DoN4z59W.js +16 -0
  135. package/dist/GQ-CC3X6AMz-BpcNb63L.js +16 -0
  136. package/dist/GR-C_0rusTd-DM78Vz0F.js +16 -0
  137. package/dist/GS-Db5l22a1-g1wpVbCk.js +16 -0
  138. package/dist/GT-BhbkqUft-BokZZEPm.js +16 -0
  139. package/dist/GU-C0HeItm1-CK3NMaKC.js +16 -0
  140. package/dist/GW-BjLM1vg--Bb0vh4FM.js +16 -0
  141. package/dist/GY-BreBVlhN-BSZ_J8Zd.js +16 -0
  142. package/dist/HK-BZn9ZQGS-B_G2UEXQ.js +16 -0
  143. package/dist/HM-BUbOyX6Q-CBTHnK8w.js +16 -0
  144. package/dist/HN-D4wujIPC-DDOtdLYZ.js +16 -0
  145. package/dist/HR-Jhi3QQ9F-DjFev7_L.js +16 -0
  146. package/dist/HT-MMjMjr-R-DNm13_JB.js +16 -0
  147. package/dist/HU-CN5KmQ7F-Bhg0fCkc.js +16 -0
  148. package/dist/Home-hBBbcfgJ.js +997 -0
  149. package/dist/ID-hVVUTKNG-C84lqN8r.js +16 -0
  150. package/dist/IE-WN_vdKcS-BCsThQaP.js +16 -0
  151. package/dist/IL-D5Wr_Xxh-BsTH0_1Q.js +16 -0
  152. package/dist/IM-B-putc0k-CEJesk0F.js +16 -0
  153. package/dist/IN-CK40zbQD-YKf-WDvU.js +16 -0
  154. package/dist/IO-CdvLck7D-qGjzKcAA.js +16 -0
  155. package/dist/IQ-f_9wyurt-D6yW63sz.js +16 -0
  156. package/dist/IR-B0yfWttH-9GL9LGQQ.js +16 -0
  157. package/dist/IS-Dvf-XQTq-B1Gi2T7b.js +16 -0
  158. package/dist/IT-uY7cjdFI-CGQW9SCb.js +16 -0
  159. package/dist/ImportTrackingCode-DRkKUB2E.js +1007 -0
  160. package/dist/InternalCompanyIssuesDetail-BmQQ0qBt.js +862 -0
  161. package/dist/InternalCompanyList-Cfs4T8MU.js +351 -0
  162. package/dist/InternalPendencyDetail-BYvZrkBI.js +717 -0
  163. package/dist/JE-C95tN_VG-0snvENdj.js +16 -0
  164. package/dist/JM-zOuEwaB3-DP2FNo63.js +16 -0
  165. package/dist/JO-Cq88rrOD-DAYUZ_9d.js +16 -0
  166. package/dist/JP-5evXgWxq-BqPrtm23.js +16 -0
  167. package/dist/KE-PHx0d97Z-C-Xkidlw.js +16 -0
  168. package/dist/KG-DT4JnieX-DbgG6igj.js +16 -0
  169. package/dist/KH-ChwV2WTT-TyKbWD-O.js +16 -0
  170. package/dist/KI-D212g4Lh-IhpiUyPB.js +16 -0
  171. package/dist/KM-mPVp7AKS-DsMX3gp5.js +16 -0
  172. package/dist/KN-AdXLXICN-dEvywFxw.js +16 -0
  173. package/dist/KP-CC6UIrEF-C9V2ASuz.js +16 -0
  174. package/dist/KR-BtnmWR6C-CqP0yrnA.js +16 -0
  175. package/dist/KW-gqahWVaw-Be5XycK8.js +16 -0
  176. package/dist/KY-DjIb70VQ-B7qjhpUZ.js +16 -0
  177. package/dist/KZ-C_fRihiO-CkqwPRDj.js +16 -0
  178. package/dist/LA-KIULJHAb-6V8PE7UC.js +16 -0
  179. package/dist/LB-CrF8WJiI-Ds8QmDZN.js +16 -0
  180. package/dist/LC-DGiHXm5V-BaQexC5C.js +16 -0
  181. package/dist/LI-BwB0b8M1-C7uFEcvm.js +16 -0
  182. package/dist/LK-BOC44ZgS-IDJmlLil.js +16 -0
  183. package/dist/LR-CWjRlWOZ-DQOYP-31.js +16 -0
  184. package/dist/LS-B_EgU3p5-CPGiYN_N.js +16 -0
  185. package/dist/LT-BPyPiVx2-D_zUYxQu.js +16 -0
  186. package/dist/LU-B-De6aB--Co5ldo0f.js +16 -0
  187. package/dist/LV-D2Ewe3XC-p5OVxRBg.js +16 -0
  188. package/dist/LY-D1TSt6YI-e1UP1DI9.js +16 -0
  189. package/dist/MA-QY5gm-vM-C2WO3oMv.js +16 -0
  190. package/dist/MC-BjlCjfCP-BoLj6z6H.js +16 -0
  191. package/dist/MD-rh-6rlSt-BX8Tc87h.js +16 -0
  192. package/dist/ME-D1euo0V2-CvMo4JW8.js +16 -0
  193. package/dist/MF-CFW4iaQd-Bkjt9y9x.js +16 -0
  194. package/dist/MG-ONnxn_5g-DvUoQXXU.js +16 -0
  195. package/dist/MH-B8oC_VMS-DnLx3n4w.js +16 -0
  196. package/dist/MK-ByjICisj-BnQ7mmNt.js +16 -0
  197. package/dist/ML-CKVAuhox-BmU671B6.js +16 -0
  198. package/dist/MM-doJuUjVT-Cpng9kzz.js +16 -0
  199. package/dist/MN-BFP303GE-Cnet8fPI.js +16 -0
  200. package/dist/MO-Dp4PTSYU-CmDiynhO.js +16 -0
  201. package/dist/MP-CqKsnjHV-FUAVNGyw.js +16 -0
  202. package/dist/MQ-CFW4iaQd-XdOF3z0F.js +16 -0
  203. package/dist/MR-D73q_PiY-BjRVagls.js +16 -0
  204. package/dist/MS-qhjKl9TO-CJbbL4Nv.js +16 -0
  205. package/dist/MT-CZjbs1U--B56GIRNc.js +16 -0
  206. package/dist/MU-D0EQOl0S-CPMJBZY-.js +16 -0
  207. package/dist/MV-BtwHRTMn-CEUMywhy.js +16 -0
  208. package/dist/MW-CVnAR98j-CywjjDiA.js +16 -0
  209. package/dist/MX-C7vXnCDY-vgoj60da.js +16 -0
  210. package/dist/MY-DJcgH_o3-CIeie-uR.js +16 -0
  211. package/dist/MZ-BbLwl9DA-Cq31M3XS.js +16 -0
  212. package/dist/Max.page-Dcn85hoh.js +599 -0
  213. package/dist/MostSoldCountries-COPCqZos.js +22 -0
  214. package/dist/NA-5FKNjRGT-DRkHVQ9Y.js +16 -0
  215. package/dist/NC-CFW4iaQd-RNcTVT1j.js +16 -0
  216. package/dist/NE-DpLZJa7D-DhfNivVc.js +16 -0
  217. package/dist/NF-BT-wIfwf-CaiD3aUC.js +16 -0
  218. package/dist/NG-BAiR_q0H-CTz9q1XE.js +16 -0
  219. package/dist/NI-DylPDojG-SIw_VW_0.js +16 -0
  220. package/dist/NL-iozeFKPM-BOODwZiT.js +16 -0
  221. package/dist/NO-CfaYWvM--Bh0WieSh.js +16 -0
  222. package/dist/NP-BGR_ZaqA-SwhN9ZxU.js +16 -0
  223. package/dist/NR-DHGW5Y3Q-BbnfBi3h.js +16 -0
  224. package/dist/NU-CcpcSx_x-CmNKWCMY.js +16 -0
  225. package/dist/NZ-DDYt6DcJ-B2Pz0Ftu.js +16 -0
  226. package/dist/OM-D6hiar1r-CpSs2A93.js +16 -0
  227. package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-Bn2cbExN.js +760 -0
  228. package/dist/OrderStatusChip-C1J1ks-7.js +30 -0
  229. package/dist/Orders.page-CyzFwzOO.js +1636 -0
  230. package/dist/OrdersChartDataContent-CsR6xEDY.js +221 -0
  231. package/dist/OrdersDetails.page-ygHwYPZu.js +6158 -0
  232. package/dist/PA-Bi2blxjJ-CiC6L-sG.js +16 -0
  233. package/dist/PE-D4DjQOlP-B9xHtj9T.js +16 -0
  234. package/dist/PF-DmOSfnYB-DUK8RODQ.js +16 -0
  235. package/dist/PG-DeOlZ7TA-Bm0BFeAt.js +16 -0
  236. package/dist/PH-Dv4KdxU--BXLkyPbu.js +16 -0
  237. package/dist/PK-CRhM95F8-wLWbDQj3.js +16 -0
  238. package/dist/PL-BIdMQAtx-DroEfnKF.js +16 -0
  239. package/dist/PM-BDa53dEz-Wuh9DXsJ.js +16 -0
  240. package/dist/PN-Csu7Dufn-DM8OoDFi.js +16 -0
  241. package/dist/PR-C_Acdbc_-BV_cjvog.js +16 -0
  242. package/dist/PS-Dmg0ofZr-D_vqnUqW.js +16 -0
  243. package/dist/PT-Bsck4nv8-n44lsZH9.js +16 -0
  244. package/dist/PW-CBMqjpxh-CWdEMQxj.js +16 -0
  245. package/dist/PY-Be6zNh15-BApM1Zdq.js +16 -0
  246. package/dist/PaymentsLinks-BkBLxOhv.js +675 -0
  247. package/dist/QA-CZmcW85r-BIaN_BKE.js +16 -0
  248. package/dist/RE-CFW4iaQd-C-LtwLD_.js +16 -0
  249. package/dist/RO-6H4O-gQF-umgKrrOo.js +16 -0
  250. package/dist/RS-DM7vMnHL-ByaPPQdU.js +16 -0
  251. package/dist/RU-HqKQeTq2-CdQa3Rea.js +16 -0
  252. package/dist/RW-DkH4VhfP-Dln4W9aO.js +16 -0
  253. package/dist/RecurringSubscription-5YV9JLCN.js +548 -0
  254. package/dist/RecurringSubscriptionDashView-CZieelLA.js +2012 -0
  255. package/dist/RiskPendenciesInternalService-Da0r9bx9.js +145 -0
  256. package/dist/SA-C2hBi4Lh-B-_V_tRn.js +16 -0
  257. package/dist/SB-CBu9QLGP-DoLcG5D0.js +16 -0
  258. package/dist/SC-CR6esM-V-DM9Ih8UH.js +16 -0
  259. package/dist/SD-VCXqBHrW-iWeZ8UWU.js +16 -0
  260. package/dist/SE-DbI0jJm9-Ct6AxmgQ.js +16 -0
  261. package/dist/SG-DgprfMyV-BIWB9G5I.js +16 -0
  262. package/dist/SH-qhjKl9TO-lN2voGkq.js +16 -0
  263. package/dist/SI-C3dA03Yk-JXsAbYc5.js +16 -0
  264. package/dist/SJ-CfaYWvM--DtPsDNQE.js +16 -0
  265. package/dist/SK-CxbHN7aU-Ce3QQWFt.js +16 -0
  266. package/dist/SL-GXAaRXng-DS4r85x6.js +16 -0
  267. package/dist/SM-B2SteTdO-utOO6NF0.js +16 -0
  268. package/dist/SN-B7Q__Lx_-CbDgdw5W.js +16 -0
  269. package/dist/SO-Bnd5-U9z-Ds0rRlBb.js +16 -0
  270. package/dist/SR-BHMDOkL2-BHBQa6-_.js +16 -0
  271. package/dist/SS-CsTgWca1-bEoQnWqh.js +16 -0
  272. package/dist/ST-DLqO0boT-Pcs4DY17.js +16 -0
  273. package/dist/SV-DNZizmQg-Cll7LfXj.js +16 -0
  274. package/dist/SX-DWuXjLwS-CkTnX-X9.js +16 -0
  275. package/dist/SY-DeOQEBum-BvQqTa6l.js +16 -0
  276. package/dist/SZ-Bhe0qU5K-LUsSuHEM.js +16 -0
  277. package/dist/SalesRecovery-BwahdiAP.js +594 -0
  278. package/dist/SalesRecoveryIA-CsRmsa8r.js +199 -0
  279. package/dist/SendCustomerRefundLinkPage-nf7UvlCi.js +137 -0
  280. package/dist/StatusDescriptionModal-OEBHl2pa.js +60 -0
  281. package/dist/StatusTag.vue_vue_type_script_setup_true_lang-BjLniAr8.js +28 -0
  282. package/dist/TC-D5HTaKiF-C95JRPuC.js +16 -0
  283. package/dist/TD-DyIWvaGg-iM7m9_fs.js +16 -0
  284. package/dist/TF-BRsv64iE-BhHjQKQs.js +16 -0
  285. package/dist/TG-OhNa5jmt-Dbrq5Rx2.js +16 -0
  286. package/dist/TH-F_ODV0JW-WAfbvhJx.js +16 -0
  287. package/dist/TJ-BFkbbSmN-CMuzEe9m.js +16 -0
  288. package/dist/TK-Ct75yy7V-DvfBTH_c.js +16 -0
  289. package/dist/TL-BzqVkHGw-subCl4Yv.js +16 -0
  290. package/dist/TM-CCAvd8qV-COdGELb6.js +16 -0
  291. package/dist/TN-CmYqbPEz-Dq8lpxeK.js +16 -0
  292. package/dist/TO-BQQk9Xq_-Dej6OD5K.js +16 -0
  293. package/dist/TR-_MKkCnUV-CfwBUkpC.js +16 -0
  294. package/dist/TT-DoRURl1c-Cfh7EpBs.js +16 -0
  295. package/dist/TV-Dt8uZCP4-DidZHEG0.js +16 -0
  296. package/dist/TW-CvHugvex-Behsayb7.js +16 -0
  297. package/dist/TZ-RbwBgiwb-Bdf4nAwf.js +16 -0
  298. package/dist/TopSellingProductsContent-Bc4suvpo.js +80 -0
  299. package/dist/UA-BiXHPMqV-DFlKImJw.js +16 -0
  300. package/dist/UG--it_LhSj-BIDg1dUg.js +16 -0
  301. package/dist/UM-BFcTdeDD-CraE9IXj.js +16 -0
  302. package/dist/US-BFcTdeDD-CraE9IXj.js +16 -0
  303. package/dist/UY-C26Ndi4P-CihzTcdn.js +16 -0
  304. package/dist/UZ-BK5ADwFW-COECMMjT.js +16 -0
  305. package/dist/UserIndicationsPage-BaZPtbEa.js +723 -0
  306. package/dist/VA-Cpq1n4yW-C5xbwie0.js +16 -0
  307. package/dist/VC-D1Fjbog5-DL3lXb38.js +16 -0
  308. package/dist/VE-CeM-hea7-Bp7YI746.js +16 -0
  309. package/dist/VG-qhjKl9TO-BuXR1oE7.js +16 -0
  310. package/dist/VI-C-kcu42_-B6s7UkEl.js +16 -0
  311. package/dist/VN-2yoryeK1-CTR1plTA.js +16 -0
  312. package/dist/VU-CkLlsgzP-DbQoQksi.js +16 -0
  313. package/dist/WF-BDa53dEz-dpILUZKA.js +16 -0
  314. package/dist/WS-CNi2O6Qm-Iz1xmQsa.js +16 -0
  315. package/dist/WithdrawAdvance-CzV3HOoZ.js +17 -0
  316. package/dist/WithdrawBankAccountStore-DI8PJABd.js +283 -0
  317. package/dist/WithdrawBlocked-Ck2-UZ-6.js +133 -0
  318. package/dist/WithdrawCompanyStore-VtmOEfn4.js +80 -0
  319. package/dist/WithdrawGuaranteeExtract-Ckve3qpm.js +994 -0
  320. package/dist/WithdrawHome-BDiiGKO9.js +1843 -0
  321. package/dist/WithdrawHome-BH9UB_YH.js +2448 -0
  322. package/dist/WithdrawInternational-Cf6PPDxA.js +17 -0
  323. package/dist/WithdrawMaxStore-_kMO1KAL.js +772 -0
  324. package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-C17v5RK3.js +530 -0
  325. package/dist/WithdrawNoAccountWarning-CWEPATpz.js +233 -0
  326. package/dist/WithdrawPermissionGuard-Ds4weXTr.js +338 -0
  327. package/dist/WithdrawRequest-BeJ0CzV8.js +944 -0
  328. package/dist/WithdrawRequest-Belqd9FQ.js +17 -0
  329. package/dist/WithdrawRequestDetail-C-WVfmtf.js +284 -0
  330. package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-CVJKPPN4.js +936 -0
  331. package/dist/YE-DxPZysMs-D8U9xTY-.js +16 -0
  332. package/dist/YT-BMJJ1U_T-Dyhn61oK.js +16 -0
  333. package/dist/ZA-BjQXS8mc-Dtk6uhWA.js +16 -0
  334. package/dist/ZM-Dw0PmMTO-Be-k3eVm.js +16 -0
  335. package/dist/ZW-D0UStZMr-BJEO4ES1.js +16 -0
  336. package/dist/affiliate-Bgt9fadK-B97_ZGmU.js +22 -0
  337. package/dist/amex-CvNwRHhS-DaTqPDaL.js +16 -0
  338. package/dist/api-CYsDG6hO.js +11 -0
  339. package/dist/apple_pay-DtsAzVjF-DQpS7OlA.js +20 -0
  340. package/dist/archive-CFoPOir7-D4BfZJNe.js +18 -0
  341. package/dist/aura-D1VyKb6w-WVSNhtND.js +23 -0
  342. package/dist/boleto-BQZRi0Q5-Diu5q0E0.js +18 -0
  343. package/dist/box-DNrK38w2-9e8P-Cx-.js +20 -0
  344. package/dist/cart-p5jccB8o-B87Exl7e.js +15 -0
  345. package/dist/cash-FZcelZV1-qB5QhIpR.js +20 -0
  346. package/dist/chart-YJ27XOr3-Df_obCky.js +22 -0
  347. package/dist/chat.page-DoGRG_uB.js +424 -0
  348. package/dist/credit_card-CGrPYCJP-Z2tLiAjJ.js +15 -0
  349. package/dist/csv-CYa6aPS5-DihTGghi.js +18 -0
  350. package/dist/dayjs.min-CcK7VWyt.js +282 -0
  351. package/dist/diners-CN_1suUM-DWt3rKws.js +26 -0
  352. package/dist/discover-vVTOFEvv-BANjMjsv.js +22 -0
  353. package/dist/ds-appmax-v322-BjI3DR8g.js +52 -0
  354. package/dist/ds-appmax-v327-DsNzYiM2.js +69 -0
  355. package/dist/ds-appmax-v330-qNvYNKwR.js +48 -0
  356. package/dist/ds-appmax-v335-hFGO1Lbs.js +278 -0
  357. package/dist/elo-BaNbqhYS-D2F5aG-j.js +15 -0
  358. package/dist/gear-BHOWpd7b-CUwDAzRq.js +18 -0
  359. package/dist/grid-B7I0mWry-HiHZ_Kwp.js +18 -0
  360. package/dist/hipercard-DBsszwxC-tN9V0-pw.js +22 -0
  361. package/dist/index-7HL3gx2Z.js +409 -0
  362. package/dist/index-BOsWLnPs.js +1204 -0
  363. package/dist/index-BPKLoPUK.js +200 -0
  364. package/dist/index-BSJzT1I8.js +21 -0
  365. package/dist/index-BcBnYA3I.js +534 -0
  366. package/dist/index-BeCSVECV.js +219 -0
  367. package/dist/index-BlOkAQXW.js +230 -0
  368. package/dist/index-Bt8xvm45.js +83 -0
  369. package/dist/index-C36HlqfG.js +1790 -0
  370. package/dist/index-CH5dTSvu.js +4133 -0
  371. package/dist/index-CRPIzPvI.js +11240 -0
  372. package/dist/index-CSg04cEs.js +219 -0
  373. package/dist/index-CZyRC_sJ.js +721 -0
  374. package/dist/index-CkulPi3f.js +62 -0
  375. package/dist/index-CpNYJR7K.js +106 -0
  376. package/dist/index-D-WIVMdu.js +275 -0
  377. package/dist/index-DDgF9Xvz.js +18 -0
  378. package/dist/index-DGQfHY2_.js +332 -0
  379. package/dist/index-DLT4u8_2.js +21 -0
  380. package/dist/index-DPZxRQEY.js +776 -0
  381. package/dist/index-DRs5aUNv.js +11 -0
  382. package/dist/index-DV8E7noR.js +217 -0
  383. package/dist/index-DYjK1G8m.js +92 -0
  384. package/dist/index-DcJMV4RI.js +1567 -0
  385. package/dist/index-Dr0HIcB0.js +67 -0
  386. package/dist/index-DtMp4pBF.js +681 -0
  387. package/dist/index-EA1RZqrI.js +169 -0
  388. package/dist/index-c5y6NpG3.js +117 -0
  389. package/dist/index-jIS4ivdd.js +35 -0
  390. package/dist/index.page-BTom4qDX.js +737 -0
  391. package/dist/index.page-COjbXPxC.js +827 -0
  392. package/dist/index.page-DbIxA4sB.js +165 -0
  393. package/dist/infos-8KGPLXoE-CYr6zwG9.js +18 -0
  394. package/dist/integrations-UOltVEyj-DH3ghkHr.js +19 -0
  395. package/dist/logs-Ce3fZY0v-CGOkFuKx.js +28 -0
  396. package/dist/maestro-BMomgHxO-BkKnnY5u.js +27 -0
  397. package/dist/main-B2MCvgMD.js +106861 -0
  398. package/dist/main.js +1 -1
  399. package/dist/mastercard-5I-dcOVV-ZsxmNZk0.js +30 -0
  400. package/dist/max_brand-Crj-SFUw-SBwwl5Xw.js +29 -0
  401. package/dist/max_brand_active-BIkS5qkP-KEyHvPYE.js +27 -0
  402. package/dist/max_brand_negative-BxvdIegN-CXKTCHl_.js +30 -0
  403. package/dist/max_brand_white-DdKi2YVX-CTnOAgZW.js +29 -0
  404. package/dist/menu.page-BXujZ-40.js +274 -0
  405. package/dist/money-DZpB5eTf-CGe8vcYj.js +19 -0
  406. package/dist/notification-DMezLtAj-1_IsrGTz.js +18 -0
  407. package/dist/paypal-DMYjfEw0-2VfwB0aq.js +15 -0
  408. package/dist/pix-DXdX91yj-DH1pfeCs.js +22 -0
  409. package/dist/pix_outline-D_xXXgCN-CsfjJmzi.js +16 -0
  410. package/dist/pix_white-CcVsnEF2-BekdWo87.js +24 -0
  411. package/dist/pusher-sOpTjbdI.js +4010 -0
  412. package/dist/shield-DS-Xf4WH-BmkNT9w0.js +15 -0
  413. package/dist/solid_help-DNaqfgoc-Dz7vftiS.js +20 -0
  414. package/dist/solid_home-BDUiJDVY-DYF8Kuln.js +18 -0
  415. package/dist/solid_leaderboard-DtqK7q9Y-CLwx5tpS.js +18 -0
  416. package/dist/solid_store-Cfv6o4b8-Cuvsenob.js +18 -0
  417. package/dist/ticket_icon-DwvyLm7c-C5eVGhUU.js +22 -0
  418. package/dist/usePendingMessage-C2WvHUkD.js +191 -0
  419. package/dist/useQueryFilter-BkJhzQQm.js +93 -0
  420. package/dist/useRecurringTable-CFcBE6Qa.js +160 -0
  421. package/dist/user-BRpwqYx8-CnJwt2SQ.js +18 -0
  422. package/dist/validateURL.helper-Br0evPJN.js +126 -0
  423. package/dist/visa-tPjWcMbi-tL5AKgbk.js +18 -0
  424. package/package.json +1 -1
  425. package/dist/AD-Ct_GVBfr-StkZNwKG.js +0 -16
  426. package/dist/AE-DiMVenwy-DxJiXpGV.js +0 -16
  427. package/dist/AF-DOrptOkS-XegbzW-w.js +0 -16
  428. package/dist/AG-CzBMAtom-3SnT-5Uu.js +0 -16
  429. package/dist/AI-A2DnDGPS-CRjXjwoJ.js +0 -16
  430. package/dist/AL-BcGdPXjJ-a6zDxVMc.js +0 -16
  431. package/dist/AM-BC_r4gTd-D4MMWySB.js +0 -16
  432. package/dist/AO-D6GK49nd-CRMJFOm-.js +0 -16
  433. package/dist/AQ-Eeziry42-iwkWssf1.js +0 -16
  434. package/dist/AR-AbqVWszQ-BLrhhG4H.js +0 -16
  435. package/dist/AS-BWe_Gq8Z-CGYxjZdZ.js +0 -16
  436. package/dist/AT-b5CS9jSt-jCk4CN1Q.js +0 -16
  437. package/dist/AU-BUbOyX6Q-_oWZ4t5s.js +0 -16
  438. package/dist/AW-CjVdJTYe-BUkLY2f-.js +0 -16
  439. package/dist/AX-lNtwEmw2-Dyvu77aH.js +0 -16
  440. package/dist/AZ-f8zSo9ut-08cW-_Ne.js +0 -16
  441. package/dist/AmBulletLegend-TLfX-igU.js +0 -23
  442. package/dist/AmCardV3-Lq-pDk8I.js +0 -22
  443. package/dist/AmChip.vue_vue_type_script_setup_true_lang-DwJkCLRa-CWW7FYuq.js +0 -36
  444. package/dist/AmDoughnutChartAdapted-Sc1PXFRp.js +0 -203
  445. package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-CK5ScPbD.js +0 -86
  446. package/dist/AmFilterLevelDateSelect-BbVyzCa5-DhLqJYa3.js +0 -40
  447. package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-n7ZDlDFc.js +0 -46
  448. package/dist/AmFilterLevelSelectFilter-Be3LFJno-CSgyEEl4.js +0 -63
  449. package/dist/AmHelper.vue_vue_type_script_setup_true_lang-4vSpYa8P-eMwsOwkH.js +0 -53
  450. package/dist/AmLayoutFeedbackState-Dmk2iK7m.js +0 -48
  451. package/dist/AmLayoutInnerData-jknggN9g.js +0 -162
  452. package/dist/AmModalV3-SnC7z-f1.js +0 -105
  453. package/dist/AmOutlineCard-TsZMM0uk.js +0 -25
  454. package/dist/AmSkeleton-CvModGAs.js +0 -35
  455. package/dist/AmText-Ix8DK3Xq.js +0 -33
  456. package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-CudRZsqY.js +0 -64
  457. package/dist/ApiService-DRzbmsKC.js +0 -11
  458. package/dist/AppInstallationConfirmationPasswordModal-J4K4jdAF.js +0 -535
  459. package/dist/AppstoreAppView-CiuQGC__.js +0 -315
  460. package/dist/AppstoreHomeView-BVTYPaA7.js +0 -1372
  461. package/dist/BA-BfV7_7RP-BmWvA7Az.js +0 -16
  462. package/dist/BB-CC4768VM-BrSXHBwy.js +0 -16
  463. package/dist/BD-YQdTTbhg-CsC8onAg.js +0 -16
  464. package/dist/BE-DUYoRyei-Cir1ALU_.js +0 -16
  465. package/dist/BF-XZRLkaHX-DjkqOK_I.js +0 -16
  466. package/dist/BG-BAb8lAFP-iIReheFM.js +0 -16
  467. package/dist/BH-C1LTB8Fj-C7u05hot.js +0 -16
  468. package/dist/BI-RjDfMipp-B6ky4VmW.js +0 -16
  469. package/dist/BJ-DAv61IMB-CZQvrwne.js +0 -16
  470. package/dist/BL-CFW4iaQd-vZjnKF5I.js +0 -16
  471. package/dist/BM-DuK3dA1G-CoDTQ8M1.js +0 -16
  472. package/dist/BN-BXHGopan-BsZXW4-r.js +0 -16
  473. package/dist/BO-CzuoErsx-Bp8LCvZk.js +0 -16
  474. package/dist/BQ-BO-BlM1Uin3-BH3lwALm.js +0 -16
  475. package/dist/BQ-SA-BninfeHy-5BXY4Pjt.js +0 -16
  476. package/dist/BQ-SE-tq-mCvpl-D2PYuSfE.js +0 -16
  477. package/dist/BR-B1GEJ05L-R3viz22_.js +0 -16
  478. package/dist/BS-MeULPH4e-CtTP5gDM.js +0 -16
  479. package/dist/BT-BCfQJS6a-DX6wGh8L.js +0 -16
  480. package/dist/BV-CfaYWvM--DBvI1GXv.js +0 -16
  481. package/dist/BW-jYbPMHhQ-DY6P1xlK.js +0 -16
  482. package/dist/BY-Ddffd2rT-COy4OMfV.js +0 -16
  483. package/dist/BZ-B7mGW2Jg-DaMlt_nO.js +0 -16
  484. package/dist/BankAccountCrossborderNew.page-DUwRE4gI.js +0 -152
  485. package/dist/BankAccountList.page-BSDHYGub.js +0 -331
  486. package/dist/BankAccountNew.page-C21O0_jS.js +0 -982
  487. package/dist/CA-CHl-cqJL-BtpvOOcu.js +0 -16
  488. package/dist/CC-DSLZRwFz-DDnxA_BE.js +0 -16
  489. package/dist/CD-D4NJYkQm-DQ6messd.js +0 -16
  490. package/dist/CF-DoxRpaA9-BTYIt_Vx.js +0 -16
  491. package/dist/CG-Auzp6pC_-BhNbuOmx.js +0 -16
  492. package/dist/CH-B5eEo1aL-5DHkWvgz.js +0 -16
  493. package/dist/CI-DFfmdeVw-jXEKQCoa.js +0 -16
  494. package/dist/CK-CKWUhjXV-DpYhyfzy.js +0 -16
  495. package/dist/CL-Di6p-p6X-CS-iO5wu.js +0 -16
  496. package/dist/CM-B0ht31e3-C_nJbzMB.js +0 -16
  497. package/dist/CN-CKHlOciI-KVe2Eb8p.js +0 -16
  498. package/dist/CO-GBUkcePt-T2c6qTQs.js +0 -16
  499. package/dist/CR-Daw5JsjF-CxEK9f-r.js +0 -16
  500. package/dist/CU-CVOkcTvR-Ch6PPqDZ.js +0 -16
  501. package/dist/CV-cyPoze-o-VEDXWOox.js +0 -16
  502. package/dist/CW-Bt-Pwg4j-koWsygmq.js +0 -16
  503. package/dist/CX-uhIZlYzy-CLgj3zMe.js +0 -16
  504. package/dist/CY-un4rgwPX-BCZvAZao.js +0 -16
  505. package/dist/CZ-equ-r4iN-lt0FzSxo.js +0 -16
  506. package/dist/CashoutAntecipateContent-SfCGolcD.js +0 -42
  507. package/dist/ChargebackAnalytics-DMevdeDv.js +0 -1701
  508. package/dist/ChargebackDetail-2d1DN7U0.js +0 -3469
  509. package/dist/ChargebackRate-7Uy-H1DI.js +0 -77
  510. package/dist/ChatPlayground.page-CO4jfzTo.js +0 -508
  511. package/dist/ConfirmationModal-CF_U-frW.js +0 -105
  512. package/dist/Create.page-DPbBOsj8.js +0 -1390
  513. package/dist/CreatePaymentLink-DSyQYfVP.js +0 -856
  514. package/dist/DE-zx7UmJ-V-DeXIS-VO.js +0 -16
  515. package/dist/DJ-BN1kIFYT-C5T2N2HN.js +0 -16
  516. package/dist/DK-CrXXNH_h-B5zm5lvp.js +0 -16
  517. package/dist/DM-B4nVdNww-NQlqLUyy.js +0 -16
  518. package/dist/DO-C7-NF2JD-BLUIGfTI.js +0 -16
  519. package/dist/DZ-DSDLbNRb-w7_Desad.js +0 -16
  520. package/dist/DashboardAmountDetailsContent-DsRKiy13.js +0 -65
  521. package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-W9oze5aE.js +0 -151
  522. package/dist/DashboardApprovalRateInternationalContent-DwZ_iCPM.js +0 -19
  523. package/dist/DashboardApprovalRateNationalContent-DPTDddWe.js +0 -74
  524. package/dist/DashboardCarouselContent-2fwlwNaA.js +0 -958
  525. package/dist/DashboardDetailsContent-DOaBSX6C.js +0 -58
  526. package/dist/DashboardHome-BWUDE46A.js +0 -4247
  527. package/dist/DetailSubscriptionRecurring-BwhVWSFe.js +0 -1296
  528. package/dist/EC-C_bjTYWm-CkIPnXtp.js +0 -16
  529. package/dist/EE-CQIjuoWO-eJzWYuFv.js +0 -16
  530. package/dist/EG-Bs_BHfVR-BUc-7Y5M.js +0 -16
  531. package/dist/EH-CnWam84F-BfLD5WtO.js +0 -16
  532. package/dist/ER-Dcl4hJzq-Cdnfo4Bc.js +0 -16
  533. package/dist/ES-Bpj2gAdj-CUZuk00J.js +0 -16
  534. package/dist/ET-Dm3q0Ruz-Xp4Kooq8.js +0 -16
  535. package/dist/ExternalPendenciesList-DaK1hoWT.js +0 -651
  536. package/dist/FI-DCqfJeiQ-Dg65w44y.js +0 -16
  537. package/dist/FJ-C6UrGUgI-BmqTBfls.js +0 -16
  538. package/dist/FK-CAaec31K-uu8TXGVh.js +0 -16
  539. package/dist/FM-Cf2SIJ7h-CjnhxBFa.js +0 -16
  540. package/dist/FO-DBb4psBV-B5mQD8--.js +0 -16
  541. package/dist/FR-CFW4iaQd-DcZT61H2.js +0 -16
  542. package/dist/FeatureFlagsPage-CBsbRl6D.js +0 -271
  543. package/dist/GA-D3NTxgTl-D2YIwQmr.js +0 -16
  544. package/dist/GB-ENG-Cmkg6Zq8-CAQ7T31R.js +0 -16
  545. package/dist/GB-NIR-DKszcfHi-BFFEYwvB.js +0 -16
  546. package/dist/GB-SCT-BiivwJ71-CxDx6od6.js +0 -16
  547. package/dist/GB-UKM-DgMBd3ib-CieAaPe1.js +0 -16
  548. package/dist/GB-WLS-DLoDy9iv-DMFfCAzk.js +0 -16
  549. package/dist/GD-Bs1d4We7-C-0qWGiJ.js +0 -16
  550. package/dist/GE-DXG9iLk5-lkTA9W--.js +0 -16
  551. package/dist/GF-B20s5gtx-BdEJtlYi.js +0 -16
  552. package/dist/GG-BAyrpIoO-CEp4nlb4.js +0 -16
  553. package/dist/GH-v3jh5r1X-sEdkkQNp.js +0 -16
  554. package/dist/GI-D39Krd4s-DFnkEJH8.js +0 -16
  555. package/dist/GL-BDd_W5AU-Bxy42WRY.js +0 -16
  556. package/dist/GM-BNEHspzj-Xqe99wsg.js +0 -16
  557. package/dist/GN-DdIZ0X6d-DUxQZuSu.js +0 -16
  558. package/dist/GP-CFW4iaQd-DOzMIWUU.js +0 -16
  559. package/dist/GQ-CC3X6AMz-6icEgnXe.js +0 -16
  560. package/dist/GR-C_0rusTd-mIM3xNh0.js +0 -16
  561. package/dist/GS-Db5l22a1-CdrX2Y5A.js +0 -16
  562. package/dist/GT-BhbkqUft-K3nNsWBc.js +0 -16
  563. package/dist/GU-C0HeItm1-D5xOZvA1.js +0 -16
  564. package/dist/GW-BjLM1vg--Cc2TkCJW.js +0 -16
  565. package/dist/GY-BreBVlhN-CRsMuRPu.js +0 -16
  566. package/dist/HK-BZn9ZQGS-i1VD08IL.js +0 -16
  567. package/dist/HM-BUbOyX6Q-CU-q_zyK.js +0 -16
  568. package/dist/HN-D4wujIPC-KAMhtxSX.js +0 -16
  569. package/dist/HR-Jhi3QQ9F-DFlEUgwE.js +0 -16
  570. package/dist/HT-MMjMjr-R-BqgEZJlK.js +0 -16
  571. package/dist/HU-CN5KmQ7F-DpYWZQce.js +0 -16
  572. package/dist/Home-w0zEZPLM.js +0 -997
  573. package/dist/ID-hVVUTKNG-DenQFi4u.js +0 -16
  574. package/dist/IE-WN_vdKcS-DmakqYH_.js +0 -16
  575. package/dist/IL-D5Wr_Xxh-DR1JQJAG.js +0 -16
  576. package/dist/IM-B-putc0k-BrB5mOrT.js +0 -16
  577. package/dist/IN-CK40zbQD-Cd_SCL4Q.js +0 -16
  578. package/dist/IO-CdvLck7D-B8cB7w_l.js +0 -16
  579. package/dist/IQ-f_9wyurt-Cn0ZuRNc.js +0 -16
  580. package/dist/IR-B0yfWttH-CI8EW92A.js +0 -16
  581. package/dist/IS-Dvf-XQTq-sfzt_VIB.js +0 -16
  582. package/dist/IT-uY7cjdFI-BdmhxsvZ.js +0 -16
  583. package/dist/ImportTrackingCode-Cwki8VEu.js +0 -1007
  584. package/dist/InternalCompanyIssuesDetail-BTFa349q.js +0 -862
  585. package/dist/InternalCompanyList-RZqevqas.js +0 -351
  586. package/dist/InternalPendencyDetail-Bi_kiYAJ.js +0 -717
  587. package/dist/JE-C95tN_VG-BM1b2jWY.js +0 -16
  588. package/dist/JM-zOuEwaB3-DakMHpsR.js +0 -16
  589. package/dist/JO-Cq88rrOD-Cz8lW1sE.js +0 -16
  590. package/dist/JP-5evXgWxq-CzBr_SVP.js +0 -16
  591. package/dist/KE-PHx0d97Z-DVzS4EC1.js +0 -16
  592. package/dist/KG-DT4JnieX-wDEt1dH0.js +0 -16
  593. package/dist/KH-ChwV2WTT-l5DkNXqr.js +0 -16
  594. package/dist/KI-D212g4Lh-Q_UgITmW.js +0 -16
  595. package/dist/KM-mPVp7AKS-BzQctsLg.js +0 -16
  596. package/dist/KN-AdXLXICN-Dz28lwO2.js +0 -16
  597. package/dist/KP-CC6UIrEF-DThiWjzQ.js +0 -16
  598. package/dist/KR-BtnmWR6C-CR6fjMs0.js +0 -16
  599. package/dist/KW-gqahWVaw-BkPvGzS_.js +0 -16
  600. package/dist/KY-DjIb70VQ-UuqAEB55.js +0 -16
  601. package/dist/KZ-C_fRihiO-B_za94A_.js +0 -16
  602. package/dist/LA-KIULJHAb-BPkxBWgt.js +0 -16
  603. package/dist/LB-CrF8WJiI-BdKdWg13.js +0 -16
  604. package/dist/LC-DGiHXm5V-CkJUFxuV.js +0 -16
  605. package/dist/LI-BwB0b8M1-BfCwQGk-.js +0 -16
  606. package/dist/LK-BOC44ZgS-BF3UITew.js +0 -16
  607. package/dist/LR-CWjRlWOZ-NgX1jbDo.js +0 -16
  608. package/dist/LS-B_EgU3p5-BPTRxTGe.js +0 -16
  609. package/dist/LT-BPyPiVx2-E20bXXtS.js +0 -16
  610. package/dist/LU-B-De6aB--CmvB2fVr.js +0 -16
  611. package/dist/LV-D2Ewe3XC-B1zMor1e.js +0 -16
  612. package/dist/LY-D1TSt6YI-bpysz8fH.js +0 -16
  613. package/dist/MA-QY5gm-vM-CsAOe4dd.js +0 -16
  614. package/dist/MC-BjlCjfCP-BNZJn2aT.js +0 -16
  615. package/dist/MD-rh-6rlSt-Bt22Bm16.js +0 -16
  616. package/dist/ME-D1euo0V2-Cf03c9AO.js +0 -16
  617. package/dist/MF-CFW4iaQd-9BRJjN4v.js +0 -16
  618. package/dist/MG-ONnxn_5g-CXZ-2z9e.js +0 -16
  619. package/dist/MH-B8oC_VMS-Dz9UrfiW.js +0 -16
  620. package/dist/MK-ByjICisj-COt2IDzo.js +0 -16
  621. package/dist/ML-CKVAuhox-Cp9dFrhj.js +0 -16
  622. package/dist/MM-doJuUjVT-BucIUrC-.js +0 -16
  623. package/dist/MN-BFP303GE-DYme6HEg.js +0 -16
  624. package/dist/MO-Dp4PTSYU-xjOpJPAh.js +0 -16
  625. package/dist/MP-CqKsnjHV-ChPYn2wP.js +0 -16
  626. package/dist/MQ-CFW4iaQd-DToalkVz.js +0 -16
  627. package/dist/MR-D73q_PiY-CYTp9zgT.js +0 -16
  628. package/dist/MS-qhjKl9TO-EYVm0-3d.js +0 -16
  629. package/dist/MT-CZjbs1U--CYxNYkeO.js +0 -16
  630. package/dist/MU-D0EQOl0S-DJ4m7oVM.js +0 -16
  631. package/dist/MV-BtwHRTMn-tJRMar24.js +0 -16
  632. package/dist/MW-CVnAR98j-C2m-9Drd.js +0 -16
  633. package/dist/MX-C7vXnCDY-BOFNqu0o.js +0 -16
  634. package/dist/MY-DJcgH_o3-D4O6580m.js +0 -16
  635. package/dist/MZ-BbLwl9DA-CdsWcHp4.js +0 -16
  636. package/dist/Max.page-ChNsHLUy.js +0 -599
  637. package/dist/MostSoldCountries-CX3vbXrx.js +0 -22
  638. package/dist/NA-5FKNjRGT-jKJ6qgWe.js +0 -16
  639. package/dist/NC-CFW4iaQd-ByYw5Ypb.js +0 -16
  640. package/dist/NE-DpLZJa7D-C65mma0D.js +0 -16
  641. package/dist/NF-BT-wIfwf-BzyXhqwy.js +0 -16
  642. package/dist/NG-BAiR_q0H-Cb8DUYFq.js +0 -16
  643. package/dist/NI-DylPDojG-D7w7ZfJ6.js +0 -16
  644. package/dist/NL-iozeFKPM-Cmjh0elD.js +0 -16
  645. package/dist/NO-CfaYWvM--CVbeIcbk.js +0 -16
  646. package/dist/NP-BGR_ZaqA-BImMeiCD.js +0 -16
  647. package/dist/NR-DHGW5Y3Q-C07PCDYH.js +0 -16
  648. package/dist/NU-CcpcSx_x-CYx4Kp7G.js +0 -16
  649. package/dist/NZ-DDYt6DcJ-Cif-Kw1W.js +0 -16
  650. package/dist/OM-D6hiar1r-4gACbfUf.js +0 -16
  651. package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-BbJIJmF8.js +0 -760
  652. package/dist/OrderStatusChip-Cds7Y7LK.js +0 -30
  653. package/dist/Orders.page-BtraAP-w.js +0 -1636
  654. package/dist/OrdersChartDataContent-8rFRC_RD.js +0 -221
  655. package/dist/OrdersDetails.page-BNevKFTI.js +0 -6158
  656. package/dist/PA-Bi2blxjJ-EvrqyGIe.js +0 -16
  657. package/dist/PE-D4DjQOlP-DpBNRnfU.js +0 -16
  658. package/dist/PF-DmOSfnYB-tINNWwnc.js +0 -16
  659. package/dist/PG-DeOlZ7TA-SBQflY15.js +0 -16
  660. package/dist/PH-Dv4KdxU--DR0uWmjE.js +0 -16
  661. package/dist/PK-CRhM95F8-B-JTqeWR.js +0 -16
  662. package/dist/PL-BIdMQAtx-DdwoxqMc.js +0 -16
  663. package/dist/PM-BDa53dEz-Z8n5-v2E.js +0 -16
  664. package/dist/PN-Csu7Dufn-Djck72yV.js +0 -16
  665. package/dist/PR-C_Acdbc_-BMguztAs.js +0 -16
  666. package/dist/PS-Dmg0ofZr-DHluTVpa.js +0 -16
  667. package/dist/PT-Bsck4nv8-CKdXVXaH.js +0 -16
  668. package/dist/PW-CBMqjpxh-C6TlBXby.js +0 -16
  669. package/dist/PY-Be6zNh15-Dvds5o_H.js +0 -16
  670. package/dist/PaymentsLinks-B30T5Q-g.js +0 -675
  671. package/dist/QA-CZmcW85r-De7cr0fM.js +0 -16
  672. package/dist/RE-CFW4iaQd-Ts9mumW3.js +0 -16
  673. package/dist/RO-6H4O-gQF-DlgiGUnn.js +0 -16
  674. package/dist/RS-DM7vMnHL-C0Ig11Dy.js +0 -16
  675. package/dist/RU-HqKQeTq2-Dakt9zzw.js +0 -16
  676. package/dist/RW-DkH4VhfP-djhs6njt.js +0 -16
  677. package/dist/RecurringSubscription-CbXWwUXZ.js +0 -548
  678. package/dist/RecurringSubscriptionDashView-DCLHpkB5.js +0 -2012
  679. package/dist/RiskPendenciesInternalService-CIkqWsf1.js +0 -145
  680. package/dist/SA-C2hBi4Lh-CEMgfmhc.js +0 -16
  681. package/dist/SB-CBu9QLGP-xJhpee_b.js +0 -16
  682. package/dist/SC-CR6esM-V-CjE9cQu2.js +0 -16
  683. package/dist/SD-VCXqBHrW-AGD4JnfB.js +0 -16
  684. package/dist/SE-DbI0jJm9-7a1GWcRl.js +0 -16
  685. package/dist/SG-DgprfMyV-BkfCZ_qU.js +0 -16
  686. package/dist/SH-qhjKl9TO-CvKK803k.js +0 -16
  687. package/dist/SI-C3dA03Yk-Bbg9awoo.js +0 -16
  688. package/dist/SJ-CfaYWvM--BOTuOUXE.js +0 -16
  689. package/dist/SK-CxbHN7aU-B-SPe9-l.js +0 -16
  690. package/dist/SL-GXAaRXng-DWdJyCQp.js +0 -16
  691. package/dist/SM-B2SteTdO-DutV2C0n.js +0 -16
  692. package/dist/SN-B7Q__Lx_-DCrQvK0i.js +0 -16
  693. package/dist/SO-Bnd5-U9z-D7i2PmVP.js +0 -16
  694. package/dist/SR-BHMDOkL2-DF_csy-l.js +0 -16
  695. package/dist/SS-CsTgWca1-B1BO_mMW.js +0 -16
  696. package/dist/ST-DLqO0boT-CSHITGDi.js +0 -16
  697. package/dist/SV-DNZizmQg-oXtH8Qo0.js +0 -16
  698. package/dist/SX-DWuXjLwS-BVmitxTF.js +0 -16
  699. package/dist/SY-DeOQEBum-Z56UhCsj.js +0 -16
  700. package/dist/SZ-Bhe0qU5K-BcbdfEaj.js +0 -16
  701. package/dist/SalesRecovery-rSlU4lBQ.js +0 -594
  702. package/dist/SalesRecoveryIA-BpZzq0Vs.js +0 -199
  703. package/dist/SendCustomerRefundLinkPage-w7W2n7-k.js +0 -137
  704. package/dist/StatusDescriptionModal-BY_a33a6.js +0 -60
  705. package/dist/StatusTag.vue_vue_type_script_setup_true_lang-DncPsF1g.js +0 -28
  706. package/dist/TC-D5HTaKiF-CTS2rJXb.js +0 -16
  707. package/dist/TD-DyIWvaGg-MZHpuz-U.js +0 -16
  708. package/dist/TF-BRsv64iE-C2_DF6G-.js +0 -16
  709. package/dist/TG-OhNa5jmt-BYGtjBEn.js +0 -16
  710. package/dist/TH-F_ODV0JW-BKdbGGvG.js +0 -16
  711. package/dist/TJ-BFkbbSmN-OjycTQth.js +0 -16
  712. package/dist/TK-Ct75yy7V-D37cowKt.js +0 -16
  713. package/dist/TL-BzqVkHGw-BHUqs5iR.js +0 -16
  714. package/dist/TM-CCAvd8qV-DJhm6ozi.js +0 -16
  715. package/dist/TN-CmYqbPEz-DG69dHnw.js +0 -16
  716. package/dist/TO-BQQk9Xq_-B8H_cU7r.js +0 -16
  717. package/dist/TR-_MKkCnUV-Ce8wrpJl.js +0 -16
  718. package/dist/TT-DoRURl1c-CqqJJH8i.js +0 -16
  719. package/dist/TV-Dt8uZCP4-CZ10Z60G.js +0 -16
  720. package/dist/TW-CvHugvex-CjuFIYLC.js +0 -16
  721. package/dist/TZ-RbwBgiwb-DN4WP_pA.js +0 -16
  722. package/dist/TopSellingProductsContent-B4dMSJOf.js +0 -80
  723. package/dist/UA-BiXHPMqV-D9Q0BnEU.js +0 -16
  724. package/dist/UG--it_LhSj-DVs7EoOP.js +0 -16
  725. package/dist/UM-BFcTdeDD-C2lQ620l.js +0 -16
  726. package/dist/US-BFcTdeDD-C2lQ620l.js +0 -16
  727. package/dist/UY-C26Ndi4P-BjClgfOW.js +0 -16
  728. package/dist/UZ-BK5ADwFW-DELXMWtL.js +0 -16
  729. package/dist/UserIndicationsPage-D5biAnZg.js +0 -723
  730. package/dist/VA-Cpq1n4yW-BexKS0bf.js +0 -16
  731. package/dist/VC-D1Fjbog5-BW8vaqSu.js +0 -16
  732. package/dist/VE-CeM-hea7-DZOWIOL5.js +0 -16
  733. package/dist/VG-qhjKl9TO-WsxCZhFN.js +0 -16
  734. package/dist/VI-C-kcu42_-DT17Uhx1.js +0 -16
  735. package/dist/VN-2yoryeK1-DeZyduWc.js +0 -16
  736. package/dist/VU-CkLlsgzP-DEOXeeOV.js +0 -16
  737. package/dist/WF-BDa53dEz-CXGhtx-6.js +0 -16
  738. package/dist/WS-CNi2O6Qm-CRGlGEFW.js +0 -16
  739. package/dist/WithdrawAdvance-Dqgu7kEr.js +0 -17
  740. package/dist/WithdrawBankAccountStore-CG3n2xu4.js +0 -283
  741. package/dist/WithdrawBlocked-CYHm42m2.js +0 -133
  742. package/dist/WithdrawCompanyStore-Ce2bG9Yf.js +0 -80
  743. package/dist/WithdrawGuaranteeExtract-DANbCSJl.js +0 -994
  744. package/dist/WithdrawHome-CYfRTuDN.js +0 -1843
  745. package/dist/WithdrawHome-N7nxIpRo.js +0 -2448
  746. package/dist/WithdrawInternational-CCGb0go1.js +0 -17
  747. package/dist/WithdrawMaxStore-Dwa--YNG.js +0 -772
  748. package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-CngvT-dM.js +0 -530
  749. package/dist/WithdrawNoAccountWarning-Bh2JLj6D.js +0 -233
  750. package/dist/WithdrawPermissionGuard-ByGCCs5c.js +0 -338
  751. package/dist/WithdrawRequest-DT2sn05r.js +0 -944
  752. package/dist/WithdrawRequest-DY_JlRRv.js +0 -17
  753. package/dist/WithdrawRequestDetail-B6aA7mvt.js +0 -284
  754. package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-BMgmOd3V.js +0 -936
  755. package/dist/YE-DxPZysMs-hp44jVzE.js +0 -16
  756. package/dist/YT-BMJJ1U_T--VLywbnY.js +0 -16
  757. package/dist/ZA-BjQXS8mc-jYojguAB.js +0 -16
  758. package/dist/ZM-Dw0PmMTO-DxJT8_H6.js +0 -16
  759. package/dist/ZW-D0UStZMr-CdsJJWqf.js +0 -16
  760. package/dist/affiliate-Bgt9fadK-DVa1p2Ax.js +0 -22
  761. package/dist/amex-CvNwRHhS-D7QA0ot0.js +0 -16
  762. package/dist/api-BXmQVd1G.js +0 -11
  763. package/dist/apple_pay-DtsAzVjF-B7P96imw.js +0 -20
  764. package/dist/archive-CFoPOir7-BqaAZDzV.js +0 -18
  765. package/dist/aura-D1VyKb6w-Dh2s6DM6.js +0 -23
  766. package/dist/boleto-BQZRi0Q5-Uqd1V5oX.js +0 -18
  767. package/dist/box-DNrK38w2-BPc8uAtv.js +0 -20
  768. package/dist/cart-p5jccB8o-Dk4jWhkE.js +0 -15
  769. package/dist/cash-FZcelZV1-BbEVmp6V.js +0 -20
  770. package/dist/chart-YJ27XOr3-_WmeeRjk.js +0 -22
  771. package/dist/chat.page-SnZZL-fu.js +0 -424
  772. package/dist/credit_card-CGrPYCJP-Dv3LRPJa.js +0 -15
  773. package/dist/csv-CYa6aPS5-r3Sm58wj.js +0 -18
  774. package/dist/dayjs.min-Da92Laf1.js +0 -282
  775. package/dist/diners-CN_1suUM-ByIzOVLB.js +0 -26
  776. package/dist/discover-vVTOFEvv-kW1bABpz.js +0 -22
  777. package/dist/ds-appmax-v322-DKdELPv0.js +0 -52
  778. package/dist/ds-appmax-v327-D_Ngcqh7.js +0 -69
  779. package/dist/ds-appmax-v330-BSYYSV8c.js +0 -48
  780. package/dist/ds-appmax-v335-DlWYejCt.js +0 -278
  781. package/dist/elo-BaNbqhYS-BL5vqnG1.js +0 -15
  782. package/dist/gear-BHOWpd7b-BXY-eNB8.js +0 -18
  783. package/dist/grid-B7I0mWry-6Fw-n1cc.js +0 -18
  784. package/dist/hipercard-DBsszwxC-CxTNMODi.js +0 -22
  785. package/dist/index-0erj0q9D.js +0 -106
  786. package/dist/index-5IxPxMNJ.js +0 -721
  787. package/dist/index-6YMHy5G2.js +0 -117
  788. package/dist/index-9BO81TgH.js +0 -200
  789. package/dist/index-B9ST15pA.js +0 -219
  790. package/dist/index-BA4Xl2x9.js +0 -21
  791. package/dist/index-BJqiiqE8.js +0 -18
  792. package/dist/index-BQAOXvOU.js +0 -409
  793. package/dist/index-BlfKgrZo.js +0 -681
  794. package/dist/index-BnJQRIjy.js +0 -1567
  795. package/dist/index-BwWFp7ZG.js +0 -83
  796. package/dist/index-CI3ydT1C.js +0 -62
  797. package/dist/index-CLX_IUEF.js +0 -332
  798. package/dist/index-CQBs9Ilw.js +0 -219
  799. package/dist/index-CuIL96-m.js +0 -230
  800. package/dist/index-CxvFaCZh.js +0 -1790
  801. package/dist/index-D079H_tW.js +0 -67
  802. package/dist/index-D8vz1ACh.js +0 -1204
  803. package/dist/index-DEQ5vo-Z.js +0 -169
  804. package/dist/index-DPZR8RXN.js +0 -11
  805. package/dist/index-DWqYaXlT.js +0 -92
  806. package/dist/index-D_ZU71du.js +0 -217
  807. package/dist/index-DrC8NJmf.js +0 -11240
  808. package/dist/index-FoTemvuc.js +0 -35
  809. package/dist/index-VHrwEDUR.js +0 -4133
  810. package/dist/index-VethgG0j.js +0 -21
  811. package/dist/index-WGpB5fbm.js +0 -534
  812. package/dist/index-Zc4sTzsf.js +0 -275
  813. package/dist/index-v9F6Flhh.js +0 -776
  814. package/dist/index.page-BNy_Hhbx.js +0 -165
  815. package/dist/index.page-CpvA2mnU.js +0 -737
  816. package/dist/index.page-DibEmry6.js +0 -827
  817. package/dist/infos-8KGPLXoE-CIlMJOwI.js +0 -18
  818. package/dist/integrations-UOltVEyj-BJ_hoiYF.js +0 -19
  819. package/dist/logs-Ce3fZY0v-BnG_9gF8.js +0 -28
  820. package/dist/maestro-BMomgHxO-DQUi6dYg.js +0 -27
  821. package/dist/main-B6czt4K3.js +0 -106858
  822. package/dist/mastercard-5I-dcOVV-dTf8yRon.js +0 -30
  823. package/dist/max_brand-Crj-SFUw-BxyRxraT.js +0 -29
  824. package/dist/max_brand_active-BIkS5qkP-DrWBa4Uz.js +0 -27
  825. package/dist/max_brand_negative-BxvdIegN-BIpVXAwH.js +0 -30
  826. package/dist/max_brand_white-DdKi2YVX-07zrB9Wd.js +0 -29
  827. package/dist/menu.page-C1f1VZ8V.js +0 -274
  828. package/dist/money-DZpB5eTf-D6BDmOZ7.js +0 -19
  829. package/dist/notification-DMezLtAj-DztcvB1_.js +0 -18
  830. package/dist/paypal-DMYjfEw0-D9u0bFsI.js +0 -15
  831. package/dist/pix-DXdX91yj-B8magsA0.js +0 -22
  832. package/dist/pix_outline-D_xXXgCN-D0MAR0H3.js +0 -16
  833. package/dist/pix_white-CcVsnEF2-y3M5kTGL.js +0 -24
  834. package/dist/pusher-Ctw2IJ_B.js +0 -4010
  835. package/dist/shield-DS-Xf4WH-CBSNQhR3.js +0 -15
  836. package/dist/solid_help-DNaqfgoc-D_TryZm4.js +0 -20
  837. package/dist/solid_home-BDUiJDVY-mXhot9z0.js +0 -18
  838. package/dist/solid_leaderboard-DtqK7q9Y-Di6Yx0Sk.js +0 -18
  839. package/dist/solid_store-Cfv6o4b8-BWBVlfl_.js +0 -18
  840. package/dist/ticket_icon-DwvyLm7c-Cql3ePbM.js +0 -22
  841. package/dist/usePendingMessage-B3Zd8A-q.js +0 -191
  842. package/dist/useQueryFilter-Co3MS7ew.js +0 -93
  843. package/dist/useRecurringTable-DjuqnEEK.js +0 -160
  844. package/dist/user-BRpwqYx8-rhpaCbxY.js +0 -18
  845. package/dist/validateURL.helper-CYNyNkTD.js +0 -126
  846. package/dist/visa-tPjWcMbi-BnoQ5R40.js +0 -18
@@ -1,4247 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { Y as BaseStyle, Z as script$4, a0 as $dt, g as createElementBlock, h as openBlock, D as mergeProps, j as createBaseVNode, k as createCommentVNode, t as toDisplayString, a1 as Ripple, a2 as cn, a3 as isNotEmpty, a4 as resolveDirective, a5 as withDirectives, a6 as renderSlot, n as normalizeClass, a7 as equals, a8 as resolveFieldData, a9 as resolveComponent, F as Fragment, p as renderList, q as createBlock, aa as createSlots, w as withCtx, E as ApiService, ab as userService, ac as formatFloatMoney, r as ref, z as watch, o as onMounted, l as unref, A as w, K as script$5, ad as defineComponent, c as useRouter, ae as useModel, e as computed, af as t, i as createVNode, m as createTextVNode, P, _ as _export_sfc, u as useI18n, ag as toaster, y, H as withModifiers, $, x as reactive, d as useBreakpoint, S as normalizeStyle, ah as resolveDynamicComponent, ai as defineAsyncComponent, aj as useAlertsStore, Q as onUnmounted, ak as formatPhoneNumber, al as common, am as required, an as useVuelidate, ao as useUserStore, ap as C, R, aq as postOnboardingService, ar as usePostOnboarding, as as toRefs, at as isRef, au as relativeSrc, b as useRoute } from "./main-B6czt4K3.js";
5
- import { a as api } from "./ApiService-DRzbmsKC.js";
6
- import { i as isYesterday, a as isToday, f as formatDateWithTimezone, g as getTodayDate, b as getOffsetDate, o as orderByDate, c as formatToDateBR, d as diffDaysBetweenDates } from "./date-BKOoGpIP.js";
7
- import { A as AmCardV3 } from "./AmCardV3-Lq-pDk8I.js";
8
- import { h as he } from "./index-CuIL96-m.js";
9
- import { T as Te } from "./index-D8vz1ACh.js";
10
- import { A as AmSkeleton } from "./AmSkeleton-CvModGAs.js";
11
- import { s as script$7 } from "./index-D_ZU71du.js";
12
- import { s as script$6 } from "./index-WGpB5fbm.js";
13
- import { A as AmText } from "./AmText-Ix8DK3Xq.js";
14
- import { P as Pusher } from "./pusher-Ctw2IJ_B.js";
15
- import { A as AmModalV3 } from "./AmModalV3-SnC7z-f1.js";
16
- var style$2 = ({ dt: n }) => `
17
- .p-knob-range {
18
- fill: none;
19
- transition: stroke 0.1s ease-in;
20
- }
21
-
22
- .p-knob-value {
23
- animation-name: p-knob-dash-frame;
24
- animation-fill-mode: forwards;
25
- fill: none;
26
- }
27
-
28
- .p-knob-text {
29
- font-size: 1.3rem;
30
- text-align: center;
31
- }
32
-
33
- .p-knob svg {
34
- border-radius: 50%;
35
- outline-color: transparent;
36
- transition: background ${n("knob.transition.duration")}, color ${n("knob.transition.duration")}, outline-color ${n("knob.transition.duration")}, box-shadow ${n("knob.transition.duration")};
37
- }
38
-
39
- .p-knob svg:focus-visible {
40
- box-shadow: ${n("knob.focus.ring.shadow")};
41
- outline: ${n("knob.focus.ring.width")} ${n("knob.focus.ring.style")} ${n("knob.focus.ring.color")};
42
- outline-offset: ${n("knob.focus.ring.offset")};
43
- }
44
-
45
- @keyframes p-knob-dash-frame {
46
- 100% {
47
- stroke-dashoffset: 0;
48
- }
49
- }
50
- `;
51
- var classes$2 = {
52
- root: function root(_ref) {
53
- var instance = _ref.instance, props = _ref.props;
54
- return ["p-knob p-component", {
55
- "p-disabled": props.disabled,
56
- "p-invalid": instance.$invalid
57
- }];
58
- },
59
- range: "p-knob-range",
60
- value: "p-knob-value",
61
- text: "p-knob-text"
62
- };
63
- var KnobStyle = BaseStyle.extend({
64
- name: "knob",
65
- style: style$2,
66
- classes: classes$2
67
- });
68
- var script$1$2 = {
69
- name: "BaseKnob",
70
- "extends": script$4,
71
- props: {
72
- size: {
73
- type: Number,
74
- "default": 100
75
- },
76
- readonly: {
77
- type: Boolean,
78
- "default": false
79
- },
80
- step: {
81
- type: Number,
82
- "default": 1
83
- },
84
- min: {
85
- type: Number,
86
- "default": 0
87
- },
88
- max: {
89
- type: Number,
90
- "default": 100
91
- },
92
- valueColor: {
93
- type: String,
94
- "default": function _default() {
95
- return $dt("knob.value.background").variable;
96
- }
97
- },
98
- rangeColor: {
99
- type: String,
100
- "default": function _default2() {
101
- return $dt("knob.range.background").variable;
102
- }
103
- },
104
- textColor: {
105
- type: String,
106
- "default": function _default3() {
107
- return $dt("knob.text.color").variable;
108
- }
109
- },
110
- strokeWidth: {
111
- type: Number,
112
- "default": 14
113
- },
114
- showValue: {
115
- type: Boolean,
116
- "default": true
117
- },
118
- valueTemplate: {
119
- type: [String, Function],
120
- "default": "{value}"
121
- },
122
- tabindex: {
123
- type: Number,
124
- "default": 0
125
- },
126
- ariaLabelledby: {
127
- type: String,
128
- "default": null
129
- },
130
- ariaLabel: {
131
- type: String,
132
- "default": null
133
- }
134
- },
135
- style: KnobStyle,
136
- provide: function provide() {
137
- return {
138
- $pcKnob: this,
139
- $parentInstance: this
140
- };
141
- }
142
- };
143
- var Math_PI = 3.14159265358979;
144
- var script$3 = {
145
- name: "Knob",
146
- "extends": script$1$2,
147
- inheritAttrs: false,
148
- emits: ["change"],
149
- data: function data() {
150
- return {
151
- radius: 40,
152
- midX: 50,
153
- midY: 50,
154
- minRadians: 4 * Math_PI / 3,
155
- maxRadians: -3.14159265358979 / 3
156
- };
157
- },
158
- methods: {
159
- updateValueByOffset: function updateValueByOffset(offsetX, offsetY) {
160
- var dx = offsetX - this.size / 2;
161
- var dy = this.size / 2 - offsetY;
162
- var angle = Math.atan2(dy, dx);
163
- var start = -3.14159265358979 / 2 - Math_PI / 6;
164
- this.updateModel(angle, start);
165
- },
166
- updateModel: function updateModel(angle, start) {
167
- var mappedValue;
168
- if (angle > this.maxRadians) mappedValue = this.mapRange(angle, this.minRadians, this.maxRadians, this.min, this.max);
169
- else if (angle < start) mappedValue = this.mapRange(angle + 2 * Math_PI, this.minRadians, this.maxRadians, this.min, this.max);
170
- else return;
171
- var newValue = Math.round((mappedValue - this.min) / this.step) * this.step + this.min;
172
- this.writeValue(newValue);
173
- this.$emit("change", newValue);
174
- },
175
- updateModelValue: function updateModelValue(newValue) {
176
- if (newValue > this.max) this.writeValue(this.max);
177
- else if (newValue < this.min) this.writeValue(this.min);
178
- else this.writeValue(newValue);
179
- },
180
- mapRange: function mapRange(x, inMin, inMax, outMin, outMax) {
181
- return (x - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
182
- },
183
- onClick: function onClick(event) {
184
- if (!this.disabled && !this.readonly) {
185
- this.updateValueByOffset(event.offsetX, event.offsetY);
186
- }
187
- },
188
- onBlur: function onBlur(event) {
189
- var _this$formField$onBlu, _this$formField;
190
- (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
191
- },
192
- onMouseDown: function onMouseDown(event) {
193
- if (!this.disabled && !this.readonly) {
194
- window.addEventListener("mousemove", this.onMouseMove);
195
- window.addEventListener("mouseup", this.onMouseUp);
196
- event.preventDefault();
197
- }
198
- },
199
- onMouseUp: function onMouseUp(event) {
200
- if (!this.disabled && !this.readonly) {
201
- window.removeEventListener("mousemove", this.onMouseMove);
202
- window.removeEventListener("mouseup", this.onMouseUp);
203
- event.preventDefault();
204
- }
205
- },
206
- onTouchStart: function onTouchStart(event) {
207
- if (!this.disabled && !this.readonly) {
208
- window.addEventListener("touchmove", this.onTouchMove);
209
- window.addEventListener("touchend", this.onTouchEnd);
210
- event.preventDefault();
211
- }
212
- },
213
- onTouchEnd: function onTouchEnd(event) {
214
- if (!this.disabled && !this.readonly) {
215
- window.removeEventListener("touchmove", this.onTouchMove);
216
- window.removeEventListener("touchend", this.onTouchEnd);
217
- event.preventDefault();
218
- }
219
- },
220
- onMouseMove: function onMouseMove(event) {
221
- if (!this.disabled && !this.readonly) {
222
- this.updateValueByOffset(event.offsetX, event.offsetY);
223
- event.preventDefault();
224
- }
225
- },
226
- onTouchMove: function onTouchMove(event) {
227
- if (!this.disabled && !this.readonly && event.touches.length == 1) {
228
- var rect = this.$el.getBoundingClientRect();
229
- var touch = event.targetTouches.item(0);
230
- var offsetX = touch.clientX - rect.left;
231
- var offsetY = touch.clientY - rect.top;
232
- this.updateValueByOffset(offsetX, offsetY);
233
- }
234
- },
235
- onKeyDown: function onKeyDown(event) {
236
- if (!this.disabled && !this.readonly) {
237
- switch (event.code) {
238
- case "ArrowRight":
239
- case "ArrowUp": {
240
- event.preventDefault();
241
- this.updateModelValue(this.d_value + this.step);
242
- break;
243
- }
244
- case "ArrowLeft":
245
- case "ArrowDown": {
246
- event.preventDefault();
247
- this.updateModelValue(this.d_value - this.step);
248
- break;
249
- }
250
- case "Home": {
251
- event.preventDefault();
252
- this.writeValue(this.min);
253
- break;
254
- }
255
- case "End": {
256
- event.preventDefault();
257
- this.writeValue(this.max);
258
- break;
259
- }
260
- case "PageUp": {
261
- event.preventDefault();
262
- this.updateModelValue(this.d_value + 10);
263
- break;
264
- }
265
- case "PageDown": {
266
- event.preventDefault();
267
- this.updateModelValue(this.d_value - 10);
268
- break;
269
- }
270
- }
271
- }
272
- }
273
- },
274
- computed: {
275
- rangePath: function rangePath() {
276
- return "M ".concat(this.minX, " ").concat(this.minY, " A ").concat(this.radius, " ").concat(this.radius, " 0 1 1 ").concat(this.maxX, " ").concat(this.maxY);
277
- },
278
- valuePath: function valuePath() {
279
- return "M ".concat(this.zeroX, " ").concat(this.zeroY, " A ").concat(this.radius, " ").concat(this.radius, " 0 ").concat(this.largeArc, " ").concat(this.sweep, " ").concat(this.valueX, " ").concat(this.valueY);
280
- },
281
- zeroRadians: function zeroRadians() {
282
- if (this.min > 0 && this.max > 0) return this.mapRange(this.min, this.min, this.max, this.minRadians, this.maxRadians);
283
- else return this.mapRange(0, this.min, this.max, this.minRadians, this.maxRadians);
284
- },
285
- valueRadians: function valueRadians() {
286
- return this.mapRange(this.d_value, this.min, this.max, this.minRadians, this.maxRadians);
287
- },
288
- minX: function minX() {
289
- return this.midX + Math.cos(this.minRadians) * this.radius;
290
- },
291
- minY: function minY() {
292
- return this.midY - Math.sin(this.minRadians) * this.radius;
293
- },
294
- maxX: function maxX() {
295
- return this.midX + Math.cos(this.maxRadians) * this.radius;
296
- },
297
- maxY: function maxY() {
298
- return this.midY - Math.sin(this.maxRadians) * this.radius;
299
- },
300
- zeroX: function zeroX() {
301
- return this.midX + Math.cos(this.zeroRadians) * this.radius;
302
- },
303
- zeroY: function zeroY() {
304
- return this.midY - Math.sin(this.zeroRadians) * this.radius;
305
- },
306
- valueX: function valueX() {
307
- return this.midX + Math.cos(this.valueRadians) * this.radius;
308
- },
309
- valueY: function valueY() {
310
- return this.midY - Math.sin(this.valueRadians) * this.radius;
311
- },
312
- largeArc: function largeArc() {
313
- return Math.abs(this.zeroRadians - this.valueRadians) < Math_PI ? 0 : 1;
314
- },
315
- sweep: function sweep() {
316
- return this.valueRadians > this.zeroRadians ? 0 : 1;
317
- },
318
- valueToDisplay: function valueToDisplay() {
319
- if (typeof this.valueTemplate === "string") {
320
- return this.valueTemplate.replace(/{value}/g, this.d_value);
321
- } else {
322
- return this.valueTemplate(this.d_value);
323
- }
324
- }
325
- }
326
- };
327
- var _hoisted_1$g = ["width", "height", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-label"];
328
- var _hoisted_2$9 = ["d", "stroke-width", "stroke"];
329
- var _hoisted_3$5 = ["d", "stroke-width", "stroke"];
330
- var _hoisted_4$3 = ["fill"];
331
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
332
- return openBlock(), createElementBlock("div", mergeProps({
333
- "class": _ctx.cx("root")
334
- }, _ctx.ptmi("root")), [(openBlock(), createElementBlock("svg", mergeProps({
335
- viewBox: "0 0 100 100",
336
- role: "slider",
337
- width: _ctx.size,
338
- height: _ctx.size,
339
- tabindex: _ctx.readonly || _ctx.disabled ? -1 : _ctx.tabindex,
340
- "aria-valuemin": _ctx.min,
341
- "aria-valuemax": _ctx.max,
342
- "aria-valuenow": _ctx.d_value,
343
- "aria-labelledby": _ctx.ariaLabelledby,
344
- "aria-label": _ctx.ariaLabel,
345
- onClick: _cache[0] || (_cache[0] = function() {
346
- return $options.onClick && $options.onClick.apply($options, arguments);
347
- }),
348
- onBlur: _cache[1] || (_cache[1] = function() {
349
- return $options.onBlur && $options.onBlur.apply($options, arguments);
350
- }),
351
- onKeydown: _cache[2] || (_cache[2] = function() {
352
- return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
353
- }),
354
- onMousedown: _cache[3] || (_cache[3] = function() {
355
- return $options.onMouseDown && $options.onMouseDown.apply($options, arguments);
356
- }),
357
- onMouseup: _cache[4] || (_cache[4] = function() {
358
- return $options.onMouseUp && $options.onMouseUp.apply($options, arguments);
359
- }),
360
- onTouchstart: _cache[5] || (_cache[5] = function() {
361
- return $options.onTouchStart && $options.onTouchStart.apply($options, arguments);
362
- }),
363
- onTouchend: _cache[6] || (_cache[6] = function() {
364
- return $options.onTouchEnd && $options.onTouchEnd.apply($options, arguments);
365
- })
366
- }, _ctx.ptm("svg")), [createBaseVNode("path", mergeProps({
367
- d: $options.rangePath,
368
- "stroke-width": _ctx.strokeWidth,
369
- stroke: _ctx.rangeColor,
370
- "class": _ctx.cx("range")
371
- }, _ctx.ptm("range")), null, 16, _hoisted_2$9), createBaseVNode("path", mergeProps({
372
- d: $options.valuePath,
373
- "stroke-width": _ctx.strokeWidth,
374
- stroke: _ctx.valueColor,
375
- "class": _ctx.cx("value")
376
- }, _ctx.ptm("value")), null, 16, _hoisted_3$5), _ctx.showValue ? (openBlock(), createElementBlock("text", mergeProps({
377
- key: 0,
378
- x: 50,
379
- y: 57,
380
- "text-anchor": "middle",
381
- fill: _ctx.textColor,
382
- "class": _ctx.cx("text")
383
- }, _ctx.ptm("text")), toDisplayString($options.valueToDisplay), 17, _hoisted_4$3)) : createCommentVNode("", true)], 16, _hoisted_1$g))], 16);
384
- }
385
- script$3.render = render$2;
386
- var style$1 = ({ dt: o }) => `
387
- .p-togglebutton {
388
- display: inline-flex;
389
- cursor: pointer;
390
- user-select: none;
391
- overflow: hidden;
392
- position: relative;
393
- color: ${o("togglebutton.color")};
394
- background: ${o("togglebutton.background")};
395
- border: 1px solid ${o("togglebutton.border.color")};
396
- padding: ${o("togglebutton.padding")};
397
- font-size: 1rem;
398
- font-family: inherit;
399
- font-feature-settings: inherit;
400
- transition: background ${o("togglebutton.transition.duration")}, color ${o("togglebutton.transition.duration")}, border-color ${o("togglebutton.transition.duration")},
401
- outline-color ${o("togglebutton.transition.duration")}, box-shadow ${o("togglebutton.transition.duration")};
402
- border-radius: ${o("togglebutton.border.radius")};
403
- outline-color: transparent;
404
- font-weight: ${o("togglebutton.font.weight")};
405
- }
406
-
407
- .p-togglebutton-content {
408
- display: inline-flex;
409
- flex: 1 1 auto;
410
- align-items: center;
411
- justify-content: center;
412
- gap: ${o("togglebutton.gap")};
413
- padding: ${o("togglebutton.content.padding")};
414
- background: transparent;
415
- border-radius: ${o("togglebutton.content.border.radius")};
416
- transition: background ${o("togglebutton.transition.duration")}, color ${o("togglebutton.transition.duration")}, border-color ${o("togglebutton.transition.duration")},
417
- outline-color ${o("togglebutton.transition.duration")}, box-shadow ${o("togglebutton.transition.duration")};
418
- }
419
-
420
- .p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
421
- background: ${o("togglebutton.hover.background")};
422
- color: ${o("togglebutton.hover.color")};
423
- }
424
-
425
- .p-togglebutton.p-togglebutton-checked {
426
- background: ${o("togglebutton.checked.background")};
427
- border-color: ${o("togglebutton.checked.border.color")};
428
- color: ${o("togglebutton.checked.color")};
429
- }
430
-
431
- .p-togglebutton-checked .p-togglebutton-content {
432
- background: ${o("togglebutton.content.checked.background")};
433
- box-shadow: ${o("togglebutton.content.checked.shadow")};
434
- }
435
-
436
- .p-togglebutton:focus-visible {
437
- box-shadow: ${o("togglebutton.focus.ring.shadow")};
438
- outline: ${o("togglebutton.focus.ring.width")} ${o("togglebutton.focus.ring.style")} ${o("togglebutton.focus.ring.color")};
439
- outline-offset: ${o("togglebutton.focus.ring.offset")};
440
- }
441
-
442
- .p-togglebutton.p-invalid {
443
- border-color: ${o("togglebutton.invalid.border.color")};
444
- }
445
-
446
- .p-togglebutton:disabled {
447
- opacity: 1;
448
- cursor: default;
449
- background: ${o("togglebutton.disabled.background")};
450
- border-color: ${o("togglebutton.disabled.border.color")};
451
- color: ${o("togglebutton.disabled.color")};
452
- }
453
-
454
- .p-togglebutton-label,
455
- .p-togglebutton-icon {
456
- position: relative;
457
- transition: none;
458
- }
459
-
460
- .p-togglebutton-icon {
461
- color: ${o("togglebutton.icon.color")};
462
- }
463
-
464
- .p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
465
- color: ${o("togglebutton.icon.hover.color")};
466
- }
467
-
468
- .p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
469
- color: ${o("togglebutton.icon.checked.color")};
470
- }
471
-
472
- .p-togglebutton:disabled .p-togglebutton-icon {
473
- color: ${o("togglebutton.icon.disabled.color")};
474
- }
475
-
476
- .p-togglebutton-sm {
477
- padding: ${o("togglebutton.sm.padding")};
478
- font-size: ${o("togglebutton.sm.font.size")};
479
- }
480
-
481
- .p-togglebutton-sm .p-togglebutton-content {
482
- padding: ${o("togglebutton.content.sm.padding")};
483
- }
484
-
485
- .p-togglebutton-lg {
486
- padding: ${o("togglebutton.lg.padding")};
487
- font-size: ${o("togglebutton.lg.font.size")};
488
- }
489
-
490
- .p-togglebutton-lg .p-togglebutton-content {
491
- padding: ${o("togglebutton.content.lg.padding")};
492
- }
493
- `;
494
- var classes$1 = {
495
- root: function root2(_ref) {
496
- var instance = _ref.instance, props = _ref.props;
497
- return ["p-togglebutton p-component", {
498
- "p-togglebutton-checked": instance.active,
499
- "p-invalid": instance.$invalid,
500
- "p-togglebutton-sm p-inputfield-sm": props.size === "small",
501
- "p-togglebutton-lg p-inputfield-lg": props.size === "large"
502
- }];
503
- },
504
- content: "p-togglebutton-content",
505
- icon: "p-togglebutton-icon",
506
- label: "p-togglebutton-label"
507
- };
508
- var ToggleButtonStyle = BaseStyle.extend({
509
- name: "togglebutton",
510
- style: style$1,
511
- classes: classes$1
512
- });
513
- var script$1$1 = {
514
- name: "BaseToggleButton",
515
- "extends": script$4,
516
- props: {
517
- onIcon: String,
518
- offIcon: String,
519
- onLabel: {
520
- type: String,
521
- "default": "Yes"
522
- },
523
- offLabel: {
524
- type: String,
525
- "default": "No"
526
- },
527
- iconPos: {
528
- type: String,
529
- "default": "left"
530
- },
531
- readonly: {
532
- type: Boolean,
533
- "default": false
534
- },
535
- tabindex: {
536
- type: Number,
537
- "default": null
538
- },
539
- ariaLabelledby: {
540
- type: String,
541
- "default": null
542
- },
543
- ariaLabel: {
544
- type: String,
545
- "default": null
546
- },
547
- size: {
548
- type: String,
549
- "default": null
550
- }
551
- },
552
- style: ToggleButtonStyle,
553
- provide: function provide2() {
554
- return {
555
- $pcToggleButton: this,
556
- $parentInstance: this
557
- };
558
- }
559
- };
560
- function _typeof(o) {
561
- "@babel/helpers - typeof";
562
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
563
- return typeof o2;
564
- } : function(o2) {
565
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
566
- }, _typeof(o);
567
- }
568
- function _defineProperty(e, r, t2) {
569
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t2, enumerable: true, configurable: true, writable: true }) : e[r] = t2, e;
570
- }
571
- function _toPropertyKey(t2) {
572
- var i = _toPrimitive(t2, "string");
573
- return "symbol" == _typeof(i) ? i : i + "";
574
- }
575
- function _toPrimitive(t2, r) {
576
- if ("object" != _typeof(t2) || !t2) return t2;
577
- var e = t2[Symbol.toPrimitive];
578
- if (void 0 !== e) {
579
- var i = e.call(t2, r);
580
- if ("object" != _typeof(i)) return i;
581
- throw new TypeError("@@toPrimitive must return a primitive value.");
582
- }
583
- return ("string" === r ? String : Number)(t2);
584
- }
585
- var script$2 = {
586
- name: "ToggleButton",
587
- "extends": script$1$1,
588
- inheritAttrs: false,
589
- emits: ["change"],
590
- methods: {
591
- getPTOptions: function getPTOptions(key) {
592
- var _ptm = key === "root" ? this.ptmi : this.ptm;
593
- return _ptm(key, {
594
- context: {
595
- active: this.active,
596
- disabled: this.disabled
597
- }
598
- });
599
- },
600
- onChange: function onChange(event) {
601
- if (!this.disabled && !this.readonly) {
602
- this.writeValue(!this.d_value, event);
603
- this.$emit("change", event);
604
- }
605
- },
606
- onBlur: function onBlur2(event) {
607
- var _this$formField$onBlu, _this$formField;
608
- (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
609
- }
610
- },
611
- computed: {
612
- active: function active() {
613
- return this.d_value === true;
614
- },
615
- hasLabel: function hasLabel() {
616
- return isNotEmpty(this.onLabel) && isNotEmpty(this.offLabel);
617
- },
618
- label: function label() {
619
- return this.hasLabel ? this.d_value ? this.onLabel : this.offLabel : " ";
620
- },
621
- dataP: function dataP() {
622
- return cn(_defineProperty({
623
- checked: this.active,
624
- invalid: this.$invalid
625
- }, this.size, this.size));
626
- }
627
- },
628
- directives: {
629
- ripple: Ripple
630
- }
631
- };
632
- var _hoisted_1$f = ["tabindex", "disabled", "aria-pressed", "aria-label", "aria-labelledby", "data-p-checked", "data-p-disabled", "data-p"];
633
- var _hoisted_2$8 = ["data-p"];
634
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
635
- var _directive_ripple = resolveDirective("ripple");
636
- return withDirectives((openBlock(), createElementBlock("button", mergeProps({
637
- type: "button",
638
- "class": _ctx.cx("root"),
639
- tabindex: _ctx.tabindex,
640
- disabled: _ctx.disabled,
641
- "aria-pressed": _ctx.d_value,
642
- onClick: _cache[0] || (_cache[0] = function() {
643
- return $options.onChange && $options.onChange.apply($options, arguments);
644
- }),
645
- onBlur: _cache[1] || (_cache[1] = function() {
646
- return $options.onBlur && $options.onBlur.apply($options, arguments);
647
- })
648
- }, $options.getPTOptions("root"), {
649
- "aria-label": _ctx.ariaLabel,
650
- "aria-labelledby": _ctx.ariaLabelledby,
651
- "data-p-checked": $options.active,
652
- "data-p-disabled": _ctx.disabled,
653
- "data-p": $options.dataP
654
- }), [createBaseVNode("span", mergeProps({
655
- "class": _ctx.cx("content")
656
- }, $options.getPTOptions("content"), {
657
- "data-p": $options.dataP
658
- }), [renderSlot(_ctx.$slots, "default", {}, function() {
659
- return [renderSlot(_ctx.$slots, "icon", {
660
- value: _ctx.d_value,
661
- "class": normalizeClass(_ctx.cx("icon"))
662
- }, function() {
663
- return [_ctx.onIcon || _ctx.offIcon ? (openBlock(), createElementBlock("span", mergeProps({
664
- key: 0,
665
- "class": [_ctx.cx("icon"), _ctx.d_value ? _ctx.onIcon : _ctx.offIcon]
666
- }, $options.getPTOptions("icon")), null, 16)) : createCommentVNode("", true)];
667
- }), createBaseVNode("span", mergeProps({
668
- "class": _ctx.cx("label")
669
- }, $options.getPTOptions("label")), toDisplayString($options.label), 17)];
670
- })], 16, _hoisted_2$8)], 16, _hoisted_1$f)), [[_directive_ripple]]);
671
- }
672
- script$2.render = render$1;
673
- var style = ({ dt: t2 }) => `
674
- .p-selectbutton {
675
- display: inline-flex;
676
- user-select: none;
677
- vertical-align: bottom;
678
- outline-color: transparent;
679
- border-radius: ${t2("selectbutton.border.radius")};
680
- }
681
-
682
- .p-selectbutton .p-togglebutton {
683
- border-radius: 0;
684
- border-width: 1px 1px 1px 0;
685
- }
686
-
687
- .p-selectbutton .p-togglebutton:focus-visible {
688
- position: relative;
689
- z-index: 1;
690
- }
691
-
692
- .p-selectbutton .p-togglebutton:first-child {
693
- border-inline-start-width: 1px;
694
- border-start-start-radius: ${t2("selectbutton.border.radius")};
695
- border-end-start-radius: ${t2("selectbutton.border.radius")};
696
- }
697
-
698
- .p-selectbutton .p-togglebutton:last-child {
699
- border-start-end-radius: ${t2("selectbutton.border.radius")};
700
- border-end-end-radius: ${t2("selectbutton.border.radius")};
701
- }
702
-
703
- .p-selectbutton.p-invalid {
704
- outline: 1px solid ${t2("selectbutton.invalid.border.color")};
705
- outline-offset: 0;
706
- }
707
- `;
708
- var classes = {
709
- root: function root3(_ref) {
710
- var instance = _ref.instance;
711
- return ["p-selectbutton p-component", {
712
- "p-invalid": instance.$invalid
713
- // @todo: check
714
- }];
715
- }
716
- };
717
- var SelectButtonStyle = BaseStyle.extend({
718
- name: "selectbutton",
719
- style,
720
- classes
721
- });
722
- var script$1 = {
723
- name: "BaseSelectButton",
724
- "extends": script$4,
725
- props: {
726
- options: Array,
727
- optionLabel: null,
728
- optionValue: null,
729
- optionDisabled: null,
730
- multiple: Boolean,
731
- allowEmpty: {
732
- type: Boolean,
733
- "default": true
734
- },
735
- dataKey: null,
736
- ariaLabelledby: {
737
- type: String,
738
- "default": null
739
- },
740
- size: {
741
- type: String,
742
- "default": null
743
- }
744
- },
745
- style: SelectButtonStyle,
746
- provide: function provide3() {
747
- return {
748
- $pcSelectButton: this,
749
- $parentInstance: this
750
- };
751
- }
752
- };
753
- function _createForOfIteratorHelper(r, e) {
754
- var t2 = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
755
- if (!t2) {
756
- if (Array.isArray(r) || (t2 = _unsupportedIterableToArray(r)) || e) {
757
- t2 && (r = t2);
758
- var _n = 0, F = function F2() {
759
- };
760
- return { s: F, n: function n() {
761
- return _n >= r.length ? { done: true } : { done: false, value: r[_n++] };
762
- }, e: function e2(r2) {
763
- throw r2;
764
- }, f: F };
765
- }
766
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
767
- }
768
- var o, a = true, u = false;
769
- return { s: function s() {
770
- t2 = t2.call(r);
771
- }, n: function n() {
772
- var r2 = t2.next();
773
- return a = r2.done, r2;
774
- }, e: function e2(r2) {
775
- u = true, o = r2;
776
- }, f: function f() {
777
- try {
778
- a || null == t2["return"] || t2["return"]();
779
- } finally {
780
- if (u) throw o;
781
- }
782
- } };
783
- }
784
- function _toConsumableArray(r) {
785
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
786
- }
787
- function _nonIterableSpread() {
788
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
789
- }
790
- function _unsupportedIterableToArray(r, a) {
791
- if (r) {
792
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
793
- var t2 = {}.toString.call(r).slice(8, -1);
794
- return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r, a) : void 0;
795
- }
796
- }
797
- function _iterableToArray(r) {
798
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
799
- }
800
- function _arrayWithoutHoles(r) {
801
- if (Array.isArray(r)) return _arrayLikeToArray(r);
802
- }
803
- function _arrayLikeToArray(r, a) {
804
- (null == a || a > r.length) && (a = r.length);
805
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
806
- return n;
807
- }
808
- var script = {
809
- name: "SelectButton",
810
- "extends": script$1,
811
- inheritAttrs: false,
812
- emits: ["change"],
813
- methods: {
814
- getOptionLabel: function getOptionLabel(option) {
815
- return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;
816
- },
817
- getOptionValue: function getOptionValue(option) {
818
- return this.optionValue ? resolveFieldData(option, this.optionValue) : option;
819
- },
820
- getOptionRenderKey: function getOptionRenderKey(option) {
821
- return this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
822
- },
823
- isOptionDisabled: function isOptionDisabled(option) {
824
- return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;
825
- },
826
- isOptionReadonly: function isOptionReadonly(option) {
827
- if (this.allowEmpty) return false;
828
- var selected = this.isSelected(option);
829
- if (this.multiple) {
830
- return selected && this.d_value.length === 1;
831
- } else {
832
- return selected;
833
- }
834
- },
835
- onOptionSelect: function onOptionSelect(event, option, index) {
836
- var _this = this;
837
- if (this.disabled || this.isOptionDisabled(option) || this.isOptionReadonly(option)) {
838
- return;
839
- }
840
- var selected = this.isSelected(option);
841
- var optionValue = this.getOptionValue(option);
842
- var newValue;
843
- if (this.multiple) {
844
- if (selected) {
845
- newValue = this.d_value.filter(function(val) {
846
- return !equals(val, optionValue, _this.equalityKey);
847
- });
848
- if (!this.allowEmpty && newValue.length === 0) return;
849
- } else {
850
- newValue = this.d_value ? [].concat(_toConsumableArray(this.d_value), [optionValue]) : [optionValue];
851
- }
852
- } else {
853
- if (selected && !this.allowEmpty) return;
854
- newValue = selected ? null : optionValue;
855
- }
856
- this.writeValue(newValue, event);
857
- this.$emit("change", {
858
- event,
859
- value: newValue
860
- });
861
- },
862
- isSelected: function isSelected(option) {
863
- var selected = false;
864
- var optionValue = this.getOptionValue(option);
865
- if (this.multiple) {
866
- if (this.d_value) {
867
- var _iterator = _createForOfIteratorHelper(this.d_value), _step;
868
- try {
869
- for (_iterator.s(); !(_step = _iterator.n()).done; ) {
870
- var val = _step.value;
871
- if (equals(val, optionValue, this.equalityKey)) {
872
- selected = true;
873
- break;
874
- }
875
- }
876
- } catch (err) {
877
- _iterator.e(err);
878
- } finally {
879
- _iterator.f();
880
- }
881
- }
882
- } else {
883
- selected = equals(this.d_value, optionValue, this.equalityKey);
884
- }
885
- return selected;
886
- }
887
- },
888
- computed: {
889
- equalityKey: function equalityKey() {
890
- return this.optionValue ? null : this.dataKey;
891
- },
892
- dataP: function dataP2() {
893
- return cn({
894
- invalid: this.$invalid
895
- });
896
- }
897
- },
898
- directives: {
899
- ripple: Ripple
900
- },
901
- components: {
902
- ToggleButton: script$2
903
- }
904
- };
905
- var _hoisted_1$e = ["aria-labelledby", "data-p"];
906
- function render(_ctx, _cache, $props, $setup, $data, $options) {
907
- var _component_ToggleButton = resolveComponent("ToggleButton");
908
- return openBlock(), createElementBlock("div", mergeProps({
909
- "class": _ctx.cx("root"),
910
- role: "group",
911
- "aria-labelledby": _ctx.ariaLabelledby
912
- }, _ctx.ptmi("root"), {
913
- "data-p": $options.dataP
914
- }), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, function(option, index) {
915
- return openBlock(), createBlock(_component_ToggleButton, {
916
- key: $options.getOptionRenderKey(option),
917
- modelValue: $options.isSelected(option),
918
- onLabel: $options.getOptionLabel(option),
919
- offLabel: $options.getOptionLabel(option),
920
- disabled: _ctx.disabled || $options.isOptionDisabled(option),
921
- unstyled: _ctx.unstyled,
922
- size: _ctx.size,
923
- readonly: $options.isOptionReadonly(option),
924
- onChange: function onChange2($event) {
925
- return $options.onOptionSelect($event, option, index);
926
- },
927
- pt: _ctx.ptm("pcToggleButton")
928
- }, createSlots({
929
- _: 2
930
- }, [_ctx.$slots.option ? {
931
- name: "default",
932
- fn: withCtx(function() {
933
- return [renderSlot(_ctx.$slots, "option", {
934
- option,
935
- index
936
- }, function() {
937
- return [createBaseVNode("span", mergeProps({
938
- ref_for: true
939
- }, _ctx.ptm("pcToggleButton")["label"]), toDisplayString($options.getOptionLabel(option)), 17)];
940
- })];
941
- }),
942
- key: "0"
943
- } : void 0]), 1032, ["modelValue", "onLabel", "offLabel", "disabled", "unstyled", "size", "readonly", "onChange", "pt"]);
944
- }), 128))], 16, _hoisted_1$e);
945
- }
946
- script.render = render;
947
- class DashboardService {
948
- constructor(apiService, cacheService) {
949
- __publicField(this, "urlFether", {});
950
- __publicField(this, "enableCache", false);
951
- this.apiService = apiService;
952
- this.cacheService = cacheService;
953
- this.enableCache = !!this.cacheService;
954
- }
955
- async getCardDataByRange(route, date, isSecondTypeDate, isChargebackService2) {
956
- const searchParams = this.getSearchParams(date, isSecondTypeDate);
957
- const url = `${route}${searchParams}`;
958
- if (this.enableCache) return this.fetchWithCache(url, isChargebackService2);
959
- return this.fetchWithoutCache(url, isChargebackService2);
960
- }
961
- async clearCache() {
962
- this.urlFether = {};
963
- if (this.cacheService) this.cacheService.clear();
964
- }
965
- getSearchParams(date, isSecondTypeDate) {
966
- return isSecondTypeDate ? `?date_from=${date.start}&date_to=${date.end}` : `?startDate=${date.start}&endDate=${date.end}`;
967
- }
968
- async fetchWithoutCache(url, isChargebackService2) {
969
- try {
970
- if (!this.urlFether[url]) {
971
- this.urlFether[url] = isChargebackService2 ? api.get(url) : this.fetch(url);
972
- ;
973
- }
974
- return await this.urlFether[url];
975
- } catch (error) {
976
- delete this.urlFether[url];
977
- throw error;
978
- }
979
- }
980
- async fetchWithCache(url, isChargebackService2) {
981
- if (this.urlFether[url]) return this.urlFether[url];
982
- if (await this.cacheService.has(url)) {
983
- this.urlFether[url] = this.cacheService.get(url);
984
- } else {
985
- this.urlFether[url] = this.fetchAndCache(url, isChargebackService2);
986
- }
987
- return this.urlFether[url];
988
- }
989
- async fetchAndCache(url, isChargebackService2) {
990
- try {
991
- const data2 = isChargebackService2 ? await api.get(url) : await this.fetch(url);
992
- await this.cacheService.set(url, data2);
993
- return data2;
994
- } catch (error) {
995
- delete this.urlFether[url];
996
- await this.cacheService.delete(url);
997
- throw error;
998
- }
999
- }
1000
- async fetch(url) {
1001
- const { data: data2 } = await this.apiService.get(url);
1002
- if (data2.list) delete data2.list;
1003
- return data2;
1004
- }
1005
- }
1006
- const dashboardService = new DashboardService(ApiService);
1007
- const parseError = (error) => {
1008
- var _a, _b, _c, _d;
1009
- const message = ((_b = (_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) == null ? void 0 : _b.message) || ((_d = (_c = error == null ? void 0 : error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.status) || "";
1010
- return {
1011
- message,
1012
- expiredToken: message === "Token is Expired",
1013
- notAllowed: message === "Invalid user privileges",
1014
- emptyFilter: userService.data.newDashboardAllowed && message === "Producer does not have sites available for filter"
1015
- };
1016
- };
1017
- const handleFetchError = (error, defaultData) => {
1018
- const parsedError = parseError(error);
1019
- if (parsedError.expiredToken) return location.reload();
1020
- if (parsedError.notAllowed || parsedError.emptyFilter) return defaultData;
1021
- throw error;
1022
- };
1023
- const fetchData = async (route, date, parser, defaultData, isSecondTypeDate) => {
1024
- try {
1025
- const response = await dashboardService.getCardDataByRange(route, date, isSecondTypeDate);
1026
- return typeof parser === "function" ? parser(response) : response;
1027
- } catch (error) {
1028
- return handleFetchError(error, defaultData);
1029
- }
1030
- };
1031
- const DEFAULT_DATA$a = {
1032
- national: {
1033
- anticipate_value: 0
1034
- },
1035
- international: [
1036
- {
1037
- total: 0,
1038
- currency: "USD"
1039
- }
1040
- ]
1041
- };
1042
- const WITHDRAW_ROUTE = {
1043
- NEW: "/v2/client/integration/withdraw",
1044
- OLD: "/cash-out/request/by-company"
1045
- };
1046
- const WITHDRAW_PERMISSION = {
1047
- NEW: "admin:balance.companies.withdraw-request",
1048
- OLD: "admin:cash-out.request"
1049
- };
1050
- const ROUTES = {
1051
- NATIONAL: "/api/dashboard/cash-out-anticipate",
1052
- INTERNATIONAL: "/api/dashboard/international/available-for-withdraw"
1053
- };
1054
- const CURRENCIES = {
1055
- NATIONAL: "BRL",
1056
- INTERNATIONAL: "USD"
1057
- };
1058
- const cashOutAntipateFetcher = async (dateRange) => {
1059
- const result = await fetchData(
1060
- ROUTES.NATIONAL,
1061
- dateRange,
1062
- false,
1063
- DEFAULT_DATA$a.national
1064
- );
1065
- return serialize$4({
1066
- currency: CURRENCIES.NATIONAL,
1067
- value: result.anticipate_value || 0
1068
- });
1069
- };
1070
- const cashOutInternationalAntipateFetcher = async (dateRange) => {
1071
- const result = await fetchData(
1072
- ROUTES.INTERNATIONAL,
1073
- dateRange,
1074
- false,
1075
- DEFAULT_DATA$a.international
1076
- );
1077
- const data2 = result.find(({ currency }) => currency === CURRENCIES.INTERNATIONAL) || {
1078
- total: 0
1079
- };
1080
- return serialize$4({
1081
- currency: CURRENCIES.INTERNATIONAL,
1082
- value: data2.total || 0
1083
- });
1084
- };
1085
- const getUserWithdrawRoute = () => {
1086
- if (userService.hasNewWithdrawPermission() && userService.hasPermission(WITHDRAW_PERMISSION.NEW)) {
1087
- return WITHDRAW_ROUTE.NEW;
1088
- }
1089
- if (userService.hasPermission(WITHDRAW_PERMISSION.OLD)) {
1090
- return WITHDRAW_ROUTE.OLD;
1091
- }
1092
- return void 0;
1093
- };
1094
- const serialize$4 = ({ value, currency }) => {
1095
- const buttonDisabled = value <= 0;
1096
- const route = getUserWithdrawRoute();
1097
- const buttonTo = buttonDisabled ? void 0 : route;
1098
- const isInternational = currency === CURRENCIES.INTERNATIONAL;
1099
- const buttonLabel = isInternational ? "cashoutButton" : "cashoutantecipateButton";
1100
- const id = isInternational ? cashoutInternationalConfig.id : cashoutNationalConfig.id;
1101
- return {
1102
- id,
1103
- value: formatFloatMoney(value, currency),
1104
- currency,
1105
- button: {
1106
- label: buttonLabel,
1107
- disabled: buttonDisabled,
1108
- show: !!route,
1109
- to: buttonTo
1110
- }
1111
- };
1112
- };
1113
- const commonConfig$5 = {
1114
- ignoreDateRange: true,
1115
- component: () => import("./CashoutAntecipateContent-SfCGolcD.js")
1116
- };
1117
- const cashoutNationalConfig = {
1118
- ...commonConfig$5,
1119
- id: "cashout-national",
1120
- size: { md: 3, lg: 2 },
1121
- title: "card.cashoutantecipate",
1122
- fetcher: cashOutAntipateFetcher
1123
- };
1124
- const cashoutInternationalConfig = {
1125
- ...commonConfig$5,
1126
- id: "cashout-international",
1127
- size: 3,
1128
- title: "card.cashout",
1129
- fetcher: cashOutInternationalAntipateFetcher
1130
- };
1131
- const NATIONAL_ROUTES = {
1132
- creditCard: "/api/dashboard/conversion-rate-credit-card",
1133
- pix: "/api/dashboard/conversion-rate-pix",
1134
- billet: "/api/dashboard/conversion-rate-billet"
1135
- };
1136
- const INTERNATIONAL_ROUTES = {
1137
- creditCard: "/api/dashboard/international/conversion-rate-credit-card"
1138
- };
1139
- const CHART_COLORS = ["#9B6AFA", "#4f3582", "#D6D6D6"];
1140
- const DEFAULT_DATA$9 = {
1141
- national: {
1142
- creditCard: {
1143
- id: "dashboard-credit_card-sales",
1144
- label: "approvalRate.paymentMethods.credit_card",
1145
- quantity: 0,
1146
- percentage: 0,
1147
- infos: [
1148
- {
1149
- id: "authorized",
1150
- label: "approvalRate.credit_card.authorized",
1151
- quantity: 0,
1152
- percentage: 0
1153
- },
1154
- {
1155
- id: "refused_by_card_issuer",
1156
- label: "approvalRate.credit_card.refused_by_card_issuer",
1157
- quantity: 0,
1158
- percentage: 0
1159
- }
1160
- ],
1161
- details: [
1162
- {
1163
- id: "approved",
1164
- label: "approvalRate.credit_card.approved",
1165
- quantity: 0,
1166
- percentage: 0,
1167
- tooltip: "approvalRate.creditCardHelper"
1168
- },
1169
- {
1170
- id: "refused_by_antifraud",
1171
- label: "approvalRate.credit_card.refused_by_antifraud",
1172
- quantity: 0,
1173
- percentage: 0
1174
- }
1175
- ]
1176
- },
1177
- pix: {
1178
- id: "dashboard-pix-sales",
1179
- label: "approvalRate.paymentMethods.pix",
1180
- quantity: 0,
1181
- percentage: 0,
1182
- infos: [],
1183
- details: [
1184
- {
1185
- id: "approved",
1186
- label: "approvalRate.pix.approved",
1187
- quantity: 0,
1188
- percentage: 0
1189
- },
1190
- {
1191
- id: "pending",
1192
- label: "approvalRate.pix.pending",
1193
- quantity: 0,
1194
- percentage: 0
1195
- },
1196
- {
1197
- id: "expireds",
1198
- label: "approvalRate.pix.expired",
1199
- quantity: 0,
1200
- percentage: 0
1201
- }
1202
- ]
1203
- },
1204
- billet: {
1205
- id: "dashboard-boleto-sales",
1206
- label: "approvalRate.paymentMethods.boleto",
1207
- quantity: 0,
1208
- percentage: 0,
1209
- infos: [],
1210
- details: [
1211
- {
1212
- id: "approved",
1213
- label: "approvalRate.boleto.approved",
1214
- quantity: 0,
1215
- percentage: 0
1216
- },
1217
- {
1218
- id: "pending",
1219
- label: "approvalRate.boleto.pending",
1220
- quantity: 0,
1221
- percentage: 0
1222
- },
1223
- {
1224
- id: "expireds",
1225
- label: "approvalRate.boleto.expired",
1226
- quantity: 0,
1227
- percentage: 0
1228
- }
1229
- ]
1230
- },
1231
- charts: [
1232
- {
1233
- id: "dashboard-credit_card-sales",
1234
- label: "approvalRate.paymentMethods.credit_card",
1235
- percentage: 0,
1236
- values: [0, 0],
1237
- colors: ["#9B6AFA", "#4f3582", "#D6D6D6"],
1238
- tooltip: "{approvalRate.credit_card.authorized}: 0 | \n{approvalRate.credit_card.refused_by_card_issuer}: 0 | \n{approvalRate.credit_card.approved}: 0 | \n{approvalRate.credit_card.refused_by_antifraud}: 0"
1239
- },
1240
- {
1241
- id: "dashboard-pix-sales",
1242
- label: "approvalRate.paymentMethods.pix",
1243
- percentage: 0,
1244
- values: [0, 0, 0],
1245
- colors: ["#9B6AFA", "#4f3582", "#D6D6D6"],
1246
- tooltip: "{approvalRate.pix.approved}: 0 | \n{approvalRate.pix.pending}: 0 | \n{approvalRate.pix.expired}: 0"
1247
- },
1248
- {
1249
- id: "dashboard-boleto-sales",
1250
- label: "approvalRate.paymentMethods.boleto",
1251
- percentage: 0,
1252
- values: [0, 0, 0],
1253
- colors: ["#9B6AFA", "#4f3582", "#D6D6D6"],
1254
- tooltip: "{approvalRate.boleto.approved}: 0 | \n{approvalRate.boleto.pending}: 0 | \n{approvalRate.boleto.expired}: 0"
1255
- }
1256
- ]
1257
- },
1258
- international: {
1259
- id: "dashboard-credit_card-sales",
1260
- label: "approvalRate.paymentMethods.credit_card",
1261
- quantity: 0,
1262
- percentage: 0,
1263
- infos: [
1264
- {
1265
- id: "authorized",
1266
- label: "approvalRate.credit_card.authorized",
1267
- quantity: 0,
1268
- percentage: 0
1269
- },
1270
- {
1271
- id: "refused_by_card_issuer",
1272
- label: "approvalRate.credit_card.refused_by_card_issuer",
1273
- quantity: 0,
1274
- percentage: 0
1275
- }
1276
- ],
1277
- details: [
1278
- {
1279
- id: "approved",
1280
- label: "approvalRate.credit_card.approved",
1281
- quantity: 0,
1282
- percentage: 0,
1283
- tooltip: "approvalRate.creditCardHelper"
1284
- },
1285
- {
1286
- id: "refused_by_antifraud",
1287
- label: "approvalRate.credit_card.refused_by_antifraud",
1288
- quantity: 0,
1289
- percentage: 0
1290
- }
1291
- ]
1292
- }
1293
- };
1294
- const approvalRateNationalFetcher = async (dateRange) => {
1295
- try {
1296
- const [creditCard, pix, billet] = await Promise.all([
1297
- fetchData(
1298
- NATIONAL_ROUTES.creditCard,
1299
- dateRange,
1300
- (response) => parseApprovalRateCreditCard("credit_card", response),
1301
- DEFAULT_DATA$9.national.creditCard
1302
- ),
1303
- fetchData(
1304
- NATIONAL_ROUTES.pix,
1305
- dateRange,
1306
- (response) => parseApprovalRate("pix", response),
1307
- DEFAULT_DATA$9.national.pix
1308
- ),
1309
- fetchData(
1310
- NATIONAL_ROUTES.billet,
1311
- dateRange,
1312
- (response) => parseApprovalRate("boleto", response),
1313
- DEFAULT_DATA$9.national.billet
1314
- )
1315
- ]);
1316
- const charts = [creditCard, pix, billet].map(parseChart);
1317
- return { creditCard, pix, billet, charts };
1318
- } catch (error) {
1319
- throw error;
1320
- }
1321
- };
1322
- const approvalRateInternationalFetcher = async (dateRange) => {
1323
- const creditCard = await fetchData(
1324
- INTERNATIONAL_ROUTES.creditCard,
1325
- dateRange,
1326
- (response) => parseApprovalRateCreditCard("credit_card", response),
1327
- DEFAULT_DATA$9.international
1328
- );
1329
- return { creditCard };
1330
- };
1331
- const calculatePercentage = (value, total) => {
1332
- if (!total) return 0;
1333
- return Number((value / total * 100).toFixed(1));
1334
- };
1335
- const makeTooltip = (item) => {
1336
- let tooltip = "";
1337
- for (const info of item.infos) {
1338
- if (tooltip) tooltip += " | \n";
1339
- tooltip += `{${info.label}}: ${info.quantity}`;
1340
- }
1341
- for (const detail of item.details) {
1342
- if (tooltip) tooltip += " | \n";
1343
- tooltip += `{${detail.label}}: ${detail.quantity}`;
1344
- }
1345
- return tooltip;
1346
- };
1347
- const parseChart = (item) => ({
1348
- id: item.id,
1349
- label: item.label,
1350
- percentage: item.percentage,
1351
- values: item.details.map((detail) => detail.quantity),
1352
- colors: CHART_COLORS,
1353
- tooltip: makeTooltip(item)
1354
- });
1355
- const parseApprovalRate = (type, response) => {
1356
- const { approveds, expireds, pending } = response;
1357
- const total = approveds + expireds + pending;
1358
- return {
1359
- id: `dashboard-${type}-sales`,
1360
- label: `approvalRate.paymentMethods.${type}`,
1361
- quantity: total,
1362
- percentage: calculatePercentage(approveds, total),
1363
- infos: [],
1364
- details: [
1365
- {
1366
- id: "approved",
1367
- label: `approvalRate.${type}.approved`,
1368
- quantity: approveds,
1369
- percentage: calculatePercentage(approveds, total)
1370
- },
1371
- {
1372
- id: "pending",
1373
- label: `approvalRate.${type}.pending`,
1374
- quantity: pending,
1375
- percentage: calculatePercentage(pending, total)
1376
- },
1377
- {
1378
- id: "expireds",
1379
- label: `approvalRate.${type}.expired`,
1380
- quantity: expireds,
1381
- percentage: calculatePercentage(expireds, total)
1382
- }
1383
- ]
1384
- };
1385
- };
1386
- const parseApprovalRateCreditCard = (type, response) => {
1387
- const { approveds, authorized, refused_by_antifraud, refused_by_card_issuer } = response;
1388
- const detailsTotal = approveds + refused_by_antifraud;
1389
- const infosTotal = authorized + refused_by_card_issuer;
1390
- return {
1391
- id: `dashboard-${type}-sales`,
1392
- label: `approvalRate.paymentMethods.${type}`,
1393
- quantity: detailsTotal,
1394
- percentage: calculatePercentage(approveds, detailsTotal),
1395
- infos: [
1396
- {
1397
- id: "authorized",
1398
- label: `approvalRate.${type}.authorized`,
1399
- quantity: authorized,
1400
- percentage: calculatePercentage(authorized, infosTotal)
1401
- },
1402
- {
1403
- id: "refused_by_card_issuer",
1404
- label: `approvalRate.${type}.refused_by_card_issuer`,
1405
- quantity: refused_by_card_issuer,
1406
- percentage: calculatePercentage(refused_by_card_issuer, infosTotal)
1407
- }
1408
- ],
1409
- details: [
1410
- {
1411
- id: "approved",
1412
- label: `approvalRate.${type}.approved`,
1413
- quantity: approveds,
1414
- percentage: calculatePercentage(approveds, detailsTotal),
1415
- tooltip: "approvalRate.creditCardHelper"
1416
- },
1417
- {
1418
- id: "refused_by_antifraud",
1419
- label: `approvalRate.${type}.refused_by_antifraud`,
1420
- quantity: refused_by_antifraud,
1421
- percentage: calculatePercentage(refused_by_antifraud, detailsTotal)
1422
- }
1423
- ]
1424
- };
1425
- };
1426
- const commonConfig$4 = {
1427
- ignoreDateRange: false,
1428
- size: { md: 3, lg: 2 },
1429
- title: "card.approvalRate"
1430
- };
1431
- const approvalRateNationalConfig = {
1432
- ...commonConfig$4,
1433
- id: "approval-rate-national",
1434
- component: () => import("./DashboardApprovalRateNationalContent-DPTDddWe.js"),
1435
- fetcher: approvalRateNationalFetcher,
1436
- minHeight: 225
1437
- };
1438
- const approvalRateInternationalConfig = {
1439
- ...commonConfig$4,
1440
- id: "approval-rate-international",
1441
- component: () => import("./DashboardApprovalRateInternationalContent-DwZ_iCPM.js"),
1442
- fetcher: approvalRateInternationalFetcher,
1443
- minHeight: 205
1444
- };
1445
- const DEFAULT_DATA$8 = {
1446
- id: "sales-by-payment-type-national",
1447
- items: [
1448
- {
1449
- value: "R$ 0,00",
1450
- quantity: "0",
1451
- name: "paymentMethods.creditCard",
1452
- icon: "credit_card",
1453
- id: "credit-card",
1454
- isSvgIcon: false
1455
- },
1456
- {
1457
- value: "R$ 0,00",
1458
- quantity: "0",
1459
- name: "paymentMethods.pix",
1460
- icon: "pix_outline",
1461
- id: "pix",
1462
- isSvgIcon: false
1463
- },
1464
- {
1465
- value: "R$ 0,00",
1466
- quantity: "0",
1467
- name: "paymentMethods.billet",
1468
- icon: "boleto",
1469
- id: "boleto",
1470
- isSvgIcon: true
1471
- }
1472
- ]
1473
- };
1474
- const ROUTE$3 = "/api/dashboard/total-sales-by-payment-type-collection";
1475
- const salesPaymentTypeFetcher = async (dateRange) => await fetchData(ROUTE$3, dateRange, serialize$3, DEFAULT_DATA$8);
1476
- const serialize$3 = (response) => {
1477
- return {
1478
- id: salesByPaymentTypeNationalConfig.id,
1479
- items: [
1480
- {
1481
- value: formatFloatMoney(response.creditcard.amount || 0),
1482
- quantity: String(response.creditcard.quantity || 0),
1483
- name: "paymentMethods.creditCard",
1484
- icon: "credit_card",
1485
- id: "credit-card",
1486
- isSvgIcon: false
1487
- },
1488
- {
1489
- value: formatFloatMoney(response.pix.amount || 0),
1490
- quantity: String(response.pix.quantity || 0),
1491
- name: "paymentMethods.pix",
1492
- icon: "pix_outline",
1493
- id: "pix",
1494
- isSvgIcon: false
1495
- },
1496
- {
1497
- value: formatFloatMoney(response.boleto.amount || 0),
1498
- quantity: String(response.boleto.quantity || 0),
1499
- name: "paymentMethods.billet",
1500
- icon: "boleto",
1501
- id: "boleto",
1502
- isSvgIcon: true
1503
- }
1504
- ]
1505
- };
1506
- };
1507
- const salesByPaymentTypeNationalConfig = {
1508
- id: "sales-by-payment-type-national",
1509
- size: { md: 3, lg: 2 },
1510
- component: () => import("./DashboardDetailsContent-DOaBSX6C.js"),
1511
- title: "card.paymentMethods",
1512
- fetcher: salesPaymentTypeFetcher,
1513
- to: "/v2/client/integration/orders?status=aprovado&tab=1"
1514
- };
1515
- const DEFAULT_DATA$7 = {
1516
- average_ticket: 0
1517
- };
1518
- const ROUTE$2 = "/api/dashboard/average-ticket";
1519
- const CURRENCY$3 = "BRL";
1520
- const averageTicketFetcher = async (dateRange) => {
1521
- const { average_ticket } = await fetchData(
1522
- ROUTE$2,
1523
- dateRange,
1524
- false,
1525
- DEFAULT_DATA$7
1526
- );
1527
- const validAverageTicket = typeof average_ticket === "number" && !isNaN(average_ticket) ? average_ticket : 0;
1528
- return {
1529
- value: formatFloatMoney(validAverageTicket, CURRENCY$3)
1530
- };
1531
- };
1532
- const DEFAULT_DATA$6 = {
1533
- currency: "BRL",
1534
- value: "R$ 0,00",
1535
- id: "dashboard-sales",
1536
- details: [
1537
- {
1538
- id: "amount-count",
1539
- currency: "BRL",
1540
- label: "totalSales.count",
1541
- value: "0"
1542
- },
1543
- {
1544
- id: "average-ticket",
1545
- currency: "BRL",
1546
- label: "card.averageTicket",
1547
- value: "R$ 0,00"
1548
- }
1549
- ]
1550
- };
1551
- const makeTotalSalesFetcher = (isInternational) => {
1552
- return async (dateRange) => {
1553
- const route = isInternational ? "/api/dashboard/international/total-sales" : "/api/dashboard/total-sales";
1554
- const { value: average_ticket } = await averageTicketFetcher(dateRange);
1555
- const parser = (response) => {
1556
- const modifiedResponse = {
1557
- ...response,
1558
- average_ticket
1559
- };
1560
- return serialize$2(modifiedResponse, isInternational);
1561
- };
1562
- const result = await fetchData(route, dateRange, parser, DEFAULT_DATA$6);
1563
- return !isInternational ? { ...result, average_ticket } : result;
1564
- };
1565
- };
1566
- const serialize$2 = (response, isInternational) => {
1567
- const currency = isInternational ? "USD" : "BRL";
1568
- const details = [
1569
- {
1570
- id: "amount-count",
1571
- currency,
1572
- label: "totalSales.count",
1573
- value: String(response.orders_quantity || 0)
1574
- }
1575
- ];
1576
- if (!isInternational) {
1577
- details.push({
1578
- id: "average-ticket",
1579
- currency,
1580
- label: "card.averageTicket",
1581
- value: response.average_ticket
1582
- });
1583
- }
1584
- return {
1585
- currency,
1586
- value: formatFloatMoney(response.amount || 0, currency),
1587
- id: "dashboard-sales",
1588
- details
1589
- };
1590
- };
1591
- const totalNationalSalesFetcher = makeTotalSalesFetcher(false);
1592
- const totalInternationalSalesFetcher = makeTotalSalesFetcher(true);
1593
- const commonConfig$3 = {
1594
- title: "card.salesAmount",
1595
- component: () => import("./DashboardAmountDetailsContent-DsRKiy13.js"),
1596
- to: "/v2/client/integration/orders"
1597
- };
1598
- const totalSalesNationalConfig = {
1599
- ...commonConfig$3,
1600
- id: "total-sales-national",
1601
- size: { md: 3, lg: 2 },
1602
- fetcher: totalNationalSalesFetcher
1603
- };
1604
- const totalSalesInternationalConfig = {
1605
- ...commonConfig$3,
1606
- id: "total-sales-international",
1607
- size: 3,
1608
- fetcher: totalInternationalSalesFetcher
1609
- };
1610
- const DEFAULT_DATA$5 = {
1611
- paid: {
1612
- quantity: 0,
1613
- total: 0
1614
- },
1615
- generated: {
1616
- quantity: 0,
1617
- total: 0
1618
- }
1619
- };
1620
- const ROUTE$1 = "/api/dashboard/pix-sales";
1621
- const CURRENCY$2 = "BRL";
1622
- const conversionRatePixFetcher = async (dateRange) => {
1623
- const { paid, generated } = await fetchData(
1624
- ROUTE$1,
1625
- dateRange,
1626
- false,
1627
- DEFAULT_DATA$5
1628
- );
1629
- return {
1630
- currency: CURRENCY$2,
1631
- value: formatFloatMoney(paid.total, CURRENCY$2),
1632
- id: "dashboard-pix-sales",
1633
- details: [
1634
- {
1635
- id: "generated-quantity",
1636
- label: "pixSales.generated",
1637
- value: String(generated.quantity)
1638
- },
1639
- {
1640
- id: "paid-quantity",
1641
- label: "pixSales.paid",
1642
- value: String(paid.quantity)
1643
- }
1644
- ]
1645
- };
1646
- };
1647
- const pixSalesConfig = {
1648
- id: "conversion-rate-pix",
1649
- size: 2,
1650
- component: () => import("./DashboardAmountDetailsContent-DsRKiy13.js"),
1651
- fetcher: conversionRatePixFetcher,
1652
- title: "card.pixSales",
1653
- to: "/v2/client/integration/orders?paymentType=pix"
1654
- };
1655
- const DEFAULT_DATA$4 = {
1656
- id: "sales-recovery-chargeback",
1657
- value: "R$ 0,00",
1658
- description: "salesRecovery.chargeback",
1659
- details: []
1660
- };
1661
- const salesRecoveryChargebackFetcher = async (dateRange) => {
1662
- const route = "/api/dashboard/total-sales-appcall";
1663
- return await fetchData(route, dateRange, serialize$1, DEFAULT_DATA$4);
1664
- };
1665
- const serialize$1 = (response) => {
1666
- return {
1667
- id: salesRecoveryChargebackNationalConfig.id,
1668
- value: formatFloatMoney(response.chargeback.total || 0),
1669
- description: "salesRecovery.chargeback",
1670
- details: []
1671
- };
1672
- };
1673
- const salesRecoveryChargebackNationalConfig = {
1674
- id: "sales-recovery-chargeback",
1675
- size: 2,
1676
- component: () => import("./DashboardAmountDetailsContent-DsRKiy13.js"),
1677
- title: "card.salesRecovery",
1678
- fetcher: salesRecoveryChargebackFetcher,
1679
- to: "/v2/sales/orders?origin=appmarketing&status=aprovado",
1680
- hasPermissionSalesRecovery: false
1681
- };
1682
- const DEFAULT_DATA$3 = {
1683
- paid: {
1684
- amount: 0,
1685
- quantity: 0
1686
- },
1687
- generated: {
1688
- amount: 0,
1689
- quantity: 0
1690
- }
1691
- };
1692
- const ROUTE = "/api/dashboard/total-boleto-sales";
1693
- const CURRENCY$1 = "BRL";
1694
- const billetSalesFetcher = async (dateRange) => {
1695
- const { paid, generated } = await fetchData(
1696
- ROUTE,
1697
- dateRange,
1698
- false,
1699
- DEFAULT_DATA$3
1700
- );
1701
- return {
1702
- currency: CURRENCY$1,
1703
- value: formatFloatMoney(paid.amount, CURRENCY$1),
1704
- id: "dashboard-pix-sales",
1705
- details: [
1706
- {
1707
- id: "generated-quantity",
1708
- label: "pixSales.generated",
1709
- value: String(generated.quantity)
1710
- },
1711
- {
1712
- id: "paid-quantity",
1713
- label: "pixSales.paid",
1714
- value: String(paid.quantity)
1715
- }
1716
- ]
1717
- };
1718
- };
1719
- const billetSalesConfig = {
1720
- id: "conversion-rate-billet",
1721
- size: 2,
1722
- component: () => import("./DashboardAmountDetailsContent-DsRKiy13.js"),
1723
- fetcher: billetSalesFetcher,
1724
- title: "card.totalBoletoSales",
1725
- to: "/v2/client/integration/orders?paymentType=boleto"
1726
- };
1727
- const CURRENCY = "USD";
1728
- const EMPTY_ITEM = {
1729
- value: formatFloatMoney(0, CURRENCY),
1730
- icon: "",
1731
- id: "country-empty",
1732
- name: "bestSellingCountries.noSales",
1733
- quantity: "",
1734
- isSvgIcon: false
1735
- };
1736
- const mostSoldCountriesFetcher = async (dateRange) => {
1737
- const { id } = mostSoldCountriesConfig;
1738
- const route = "/api/dashboard/international/most-sold-countries";
1739
- const { consolidated = [] } = await dashboardService.getCardDataByRange(route, dateRange);
1740
- const hasData = consolidated.length > 0;
1741
- const items = hasData ? consolidated.map(({ country, country_total }, index) => ({
1742
- id: `country-${country}`,
1743
- value: formatFloatMoney(country_total, CURRENCY),
1744
- icon: `filter_${index + 1}`,
1745
- name: country,
1746
- quantity: "",
1747
- isSvgIcon: false
1748
- })) : [EMPTY_ITEM];
1749
- const showAmount = items.length <= 1;
1750
- const amountProps = showAmount ? {
1751
- id,
1752
- value: items[0].value,
1753
- description: items[0].name,
1754
- details: []
1755
- } : {
1756
- id,
1757
- value: items[0].value,
1758
- description: items[0].name,
1759
- details: items.map((item) => ({
1760
- id: item.id,
1761
- label: item.name,
1762
- value: item.value
1763
- }))
1764
- };
1765
- const title = items.length > 1 ? "card.bestSellingCountries" : "card.bestSellingCountry";
1766
- return {
1767
- id,
1768
- title,
1769
- items,
1770
- showAmount,
1771
- amountProps
1772
- };
1773
- };
1774
- const mostSoldCountriesConfig = {
1775
- id: "most-sold-countries",
1776
- size: { md: 3, lg: 2 },
1777
- component: () => import("./MostSoldCountries-CX3vbXrx.js"),
1778
- fetcher: mostSoldCountriesFetcher
1779
- };
1780
- const totalSalesRecoveryFetcher = async (dateRange) => {
1781
- const route = `/api/dashboard/get-total-sales-recovery/${dateRange.start}/${dateRange.end}`;
1782
- const { data: data2, message } = await dashboardService.getCardDataByRange(route, dateRange);
1783
- const isActive = message == null ? void 0 : message.includes("active");
1784
- const getChartType = (type) => getChartValueByType(type, data2.charts);
1785
- return {
1786
- isActive,
1787
- dateRange,
1788
- value: formatFloatMoney(data2.value_total),
1789
- abandonedCart: getChartType("abandoned_cart"),
1790
- recoveryBankIssuer: getChartType("recovery_bank_issuer"),
1791
- recoveryFunnel: getChartType("recovery_funnel"),
1792
- recoveryPix: getChartType("recovery_pix"),
1793
- recoveryTotal: {
1794
- id: "recovered_sales",
1795
- label: "salesRecovery.slide.recovered_sales",
1796
- value: data2.count_orders_recoveries.toString(),
1797
- count: data2.count_orders_recoveries,
1798
- percentage: data2.percentage_recovery
1799
- }
1800
- };
1801
- };
1802
- const getChartValueByType = (type, charts) => {
1803
- const chart = charts.find((chart2) => chart2.type === type);
1804
- return {
1805
- id: type,
1806
- label: `salesRecovery.slide.${type}`,
1807
- value: formatFloatMoney((chart == null ? void 0 : chart.amount) || 0),
1808
- count: (chart == null ? void 0 : chart.count) || 0,
1809
- percentage: (chart == null ? void 0 : chart.approvalRate) || 0
1810
- };
1811
- };
1812
- const isActiveSalesRecoveryFetcher = async (dateRange) => {
1813
- const route = "/api/dashboard/is-active-sales-recovery";
1814
- const { data: isActive } = await dashboardService.getCardDataByRange(route, dateRange);
1815
- return { isActive };
1816
- };
1817
- const salesRecoveryFetcher = async (dateRange) => {
1818
- const [totalSalesRecovery, { isActive }] = await Promise.all([
1819
- totalSalesRecoveryFetcher(dateRange),
1820
- isActiveSalesRecoveryFetcher(dateRange)
1821
- ]);
1822
- return { ...totalSalesRecovery, isActive };
1823
- };
1824
- const salesRecoveryNationalConfig = {
1825
- ignoreDateRange: false,
1826
- component: () => import("./SalesRecoveryIA-BpZzq0Vs.js"),
1827
- id: "sales-recovery-national",
1828
- size: { md: 3, lg: 2 },
1829
- title: "card.salesRecoveryWithIA",
1830
- fetcher: salesRecoveryFetcher,
1831
- hasPermissionSalesRecovery: true
1832
- };
1833
- const DEFAULT_DATA$2 = {
1834
- data: {
1835
- count_chargeback: 0,
1836
- valor_chargeback_vencido: 0,
1837
- valor_chargeback: 0,
1838
- count_chargeback_vencido: 0,
1839
- porcentagem_cbk: 0,
1840
- porcentagem_recuperado: "0",
1841
- user_id: 0
1842
- }
1843
- };
1844
- const secondDataType = false;
1845
- const isChargebackService = true;
1846
- const getUserId = () => {
1847
- const IS_QA_ORIGIN = window.location.origin.includes("qa");
1848
- const QA_ID = 597;
1849
- if (IS_QA_ORIGIN) return QA_ID;
1850
- return userService.data.user.id;
1851
- };
1852
- const isChargebackNotFoundError = (error) => {
1853
- var _a;
1854
- return ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.status) === 404;
1855
- };
1856
- const handleChargebackNotFoundError = () => ({
1857
- ...DEFAULT_DATA$2,
1858
- data: { ...DEFAULT_DATA$2.data, user_id: getUserId() }
1859
- });
1860
- const getChargebackRateFetcher = async (dateRange) => {
1861
- try {
1862
- const route = `/card_dashboard/${getUserId()}`;
1863
- const { data: data2 } = await dashboardService.getCardDataByRange(
1864
- route,
1865
- dateRange,
1866
- secondDataType,
1867
- isChargebackService
1868
- );
1869
- return data2;
1870
- } catch (error) {
1871
- if (isChargebackNotFoundError(error)) {
1872
- const { data: data2 } = handleChargebackNotFoundError();
1873
- return data2;
1874
- }
1875
- throw error;
1876
- }
1877
- };
1878
- const ChargebackRateNationalConfig = {
1879
- id: "chargeback-config-national",
1880
- size: 2,
1881
- title: "card.chargeback",
1882
- component: () => import("./ChargebackRate-7Uy-H1DI.js"),
1883
- fetcher: getChargebackRateFetcher,
1884
- ignoreDateRange: false
1885
- };
1886
- const DEFAULT_DATA$1 = [];
1887
- const makeTopSellingProductsFetcher = (isInternational = false) => {
1888
- return async (dateRange) => {
1889
- const route = isInternational ? "/api/dashboard/international/top-selling-products" : "/api/dashboard/top-selling-products";
1890
- const response = await fetchData(route, dateRange, false, DEFAULT_DATA$1);
1891
- const parsedItems = parseItems(response);
1892
- return {
1893
- id: isInternational ? topSellingProductsInternationalConfig.id : topSellingProductsNationalConfig.id,
1894
- items: parsedItems
1895
- };
1896
- };
1897
- };
1898
- const topSellingProductsNationalFetcher = makeTopSellingProductsFetcher();
1899
- const topSellingProductsInternationalFetcher = makeTopSellingProductsFetcher(true);
1900
- const parseItems = ({ consolidated = [] }) => {
1901
- return consolidated.reduce((acc, { name, quantity }, index) => {
1902
- if (quantity <= 0) return acc;
1903
- const id = `top-selling-products-${index + 1}`;
1904
- const item = { id, label: name, value: quantity };
1905
- return [...acc, item];
1906
- }, []);
1907
- };
1908
- const commonConfig$2 = {
1909
- align: "center",
1910
- title: "card.topSellingProducts",
1911
- size: 6,
1912
- component: () => import("./TopSellingProductsContent-B4dMSJOf.js")
1913
- };
1914
- const topSellingProductsNationalConfig = {
1915
- ...commonConfig$2,
1916
- id: "top-selling-products-national",
1917
- fetcher: topSellingProductsNationalFetcher
1918
- };
1919
- const topSellingProductsInternationalConfig = {
1920
- ...commonConfig$2,
1921
- id: "top-selling-products-international",
1922
- fetcher: topSellingProductsInternationalFetcher
1923
- };
1924
- const DEFAULT_DATA = {
1925
- refundOrders: {
1926
- data: []
1927
- },
1928
- refundAntifraude: {
1929
- quantity: 0,
1930
- amount: 0
1931
- }
1932
- };
1933
- const getRefundOrders = async (dateRange, isInternational) => {
1934
- const routeRefundOrders = isInternational ? "/api/dashboard/international/refunded-orders" : "/api/dashboard/refunded-orders";
1935
- const secondDataType2 = !isInternational;
1936
- return await fetchData(
1937
- routeRefundOrders,
1938
- dateRange,
1939
- false,
1940
- DEFAULT_DATA.refundOrders,
1941
- secondDataType2
1942
- );
1943
- };
1944
- const getRefundAntifraude = async (dateRange, isInternational) => {
1945
- const route = isInternational ? "/api/dashboard/international/refunded-orders-antifraude" : "/api/orders/refunded-orders-antifraude";
1946
- return await fetchData(
1947
- route,
1948
- dateRange,
1949
- false,
1950
- DEFAULT_DATA.refundAntifraude
1951
- );
1952
- };
1953
- const makeRefundFetcher = (isInternational) => {
1954
- return async (dateRange) => {
1955
- const [{ data: refundOrdersData }, refundAntifraude] = await Promise.all([
1956
- getRefundOrders(dateRange, isInternational),
1957
- getRefundAntifraude(dateRange, isInternational)
1958
- ]);
1959
- const refundOrders = Array.isArray(refundOrdersData) ? {
1960
- refundeds: { orders_quantity: 0, value: 0 },
1961
- chargebacks: { orders_quantity: 0, value: 0 }
1962
- } : refundOrdersData;
1963
- const refundData = {
1964
- ...refundOrders,
1965
- antifraude: refundAntifraude
1966
- };
1967
- return serialize(refundData, isInternational);
1968
- };
1969
- };
1970
- const serialize = (response, isInternational) => {
1971
- const currency = isInternational ? "USD" : "BRL";
1972
- return {
1973
- id: isInternational ? refundInternacionalConfig.id : refundNationalConfig.id,
1974
- items: [
1975
- {
1976
- value: formatFloatMoney(response.refundeds.value, currency),
1977
- quantity: String(response.refundeds.orders_quantity || 0),
1978
- name: "refund.refund",
1979
- icon: "sync_alt",
1980
- id: "refund",
1981
- isSvgIcon: false
1982
- },
1983
- {
1984
- value: formatFloatMoney(response.chargebacks.value, currency),
1985
- quantity: String(response.chargebacks.orders_quantity || 0),
1986
- name: "refund.chargeback",
1987
- icon: "sync_disabled",
1988
- id: "chargeback",
1989
- isSvgIcon: false
1990
- },
1991
- {
1992
- value: "",
1993
- quantity: String(response.antifraude.quantity || 0),
1994
- name: "refund.antifraud",
1995
- icon: "manage_search",
1996
- id: "antifraud",
1997
- isSvgIcon: false
1998
- }
1999
- ]
2000
- };
2001
- };
2002
- const refundNationalFetcher = makeRefundFetcher(false);
2003
- const refundInternationalFetcher = makeRefundFetcher(true);
2004
- const commonConfig$1 = {
2005
- title: "card.refunds",
2006
- component: () => import("./DashboardDetailsContent-DOaBSX6C.js"),
2007
- to: "/v2/client/integration/orders?status=estornado,chargeback,recusado_por_risco&dataType=refunded_at&tab=3",
2008
- size: 2
2009
- };
2010
- const refundNationalConfig = {
2011
- ...commonConfig$1,
2012
- id: "refund-national",
2013
- fetcher: refundNationalFetcher,
2014
- size: { md: 3, lg: 2 }
2015
- };
2016
- const refundInternacionalConfig = {
2017
- ...commonConfig$1,
2018
- id: "refund-international",
2019
- fetcher: refundInternationalFetcher,
2020
- size: { md: 6, lg: 2 }
2021
- };
2022
- const useDefaultData = (dateRange) => {
2023
- const returnObject = { consolidated: {} };
2024
- const diff = getTotalDays(dateRange);
2025
- const endDate = new Date(dateRange.end);
2026
- for (let i = 1; i <= diff; i++) {
2027
- const currentDate = new Date(endDate);
2028
- currentDate.setDate(endDate.getDate() - i);
2029
- const dateString = currentDate.toISOString().split("T")[0];
2030
- returnObject.consolidated[dateString] = {
2031
- sales: {
2032
- quantity: 0,
2033
- value: 0
2034
- }
2035
- };
2036
- }
2037
- return returnObject;
2038
- };
2039
- const makeOrdersChartDataFetcher = (isInternational = false) => {
2040
- return async (dateRange) => {
2041
- const route = isInternational ? "/api/dashboard/international/orders-chart-data" : "/api/dashboard/orders-chart-data";
2042
- const fixedDateRange = fixDateRange(dateRange);
2043
- const response = await fetchData(route, fixedDateRange, false, useDefaultData(dateRange));
2044
- const currency = isInternational ? "USD" : "BRL";
2045
- const items = serializeItems(response);
2046
- const title = getTitle(items, dateRange);
2047
- const id = isInternational ? ordersChartDataInternationalConfig.id : ordersChartDataNationalConfig.id;
2048
- return { id, items, title, currency };
2049
- };
2050
- };
2051
- const ordersChartDataNationalFetcher = makeOrdersChartDataFetcher();
2052
- const ordersChartDataInternationalFetcher = makeOrdersChartDataFetcher(true);
2053
- const serializeItems = (response) => {
2054
- const itemsArray = Object.entries(response.consolidated);
2055
- const itemsOrderedByDate = itemsArray.sort(([dateA], [dateB]) => orderByDate(dateA, dateB));
2056
- return itemsOrderedByDate.map(([date, { sales }]) => ({
2057
- date: formatToDateBR(date),
2058
- amount: sales.value
2059
- }));
2060
- };
2061
- const getTitle = (items, dateRange) => {
2062
- if (isTodayEnd(dateRange)) return `Últimos ${items.length} dias`;
2063
- if (items.length === 1) return formatToDateBR(dateRange.start);
2064
- return `De ${formatToDateBR(dateRange.start)} a ${formatToDateBR(dateRange.end)} (${items.length} dias)`;
2065
- };
2066
- const SEVEN_DAYS = 7;
2067
- const FOURTEEN_DAYS = 14;
2068
- const THIRTY_DAYS = 30;
2069
- const SIXTY_DAYS = 60;
2070
- const isTodayEnd = (dateRange) => isToday(`${dateRange.end}T03:00:00.000Z`);
2071
- const fixDateRange = (dateRange) => {
2072
- const startDate = `${dateRange.start}T03:00:00.000Z`;
2073
- const endDate = `${dateRange.end}T03:00:00.000Z`;
2074
- const isYesterdayRange = isYesterday(startDate) && isYesterday(endDate);
2075
- if (!isYesterdayRange && !isToday(endDate)) return dateRange;
2076
- const totalDays = isYesterdayRange ? SEVEN_DAYS : getTotalDays(dateRange);
2077
- const today = getTodayDate();
2078
- const end = formatDateWithTimezone(today);
2079
- const offset = totalDays - 1;
2080
- const start = getOffsetDate(-offset);
2081
- return { start, end };
2082
- };
2083
- const getTotalDays = (dateRange) => {
2084
- const diff = diffDaysBetweenDates(dateRange.start, dateRange.end) + 1;
2085
- if (diff < FOURTEEN_DAYS) return SEVEN_DAYS;
2086
- if (diff < THIRTY_DAYS) return FOURTEEN_DAYS;
2087
- if (diff < SIXTY_DAYS) return THIRTY_DAYS;
2088
- return SIXTY_DAYS;
2089
- };
2090
- const commonConfig = {
2091
- title: "card.revenueChart",
2092
- size: 6,
2093
- component: () => import("./OrdersChartDataContent-8rFRC_RD.js"),
2094
- minHeight: 350
2095
- };
2096
- const internationalConfig = {
2097
- title: "card.revenueChart",
2098
- size: 6,
2099
- component: () => import("./OrdersChartDataContent-8rFRC_RD.js"),
2100
- minHeight: 350
2101
- };
2102
- const ordersChartDataNationalConfig = {
2103
- ...commonConfig,
2104
- id: "orders-chart-data-national",
2105
- fetcher: ordersChartDataNationalFetcher
2106
- };
2107
- const ordersChartDataInternationalConfig = {
2108
- ...internationalConfig,
2109
- id: "orders-chart-data-international",
2110
- fetcher: ordersChartDataInternationalFetcher
2111
- };
2112
- const producerTeamConfig = {
2113
- nationalCards: [
2114
- salesByPaymentTypeNationalConfig,
2115
- totalSalesNationalConfig,
2116
- approvalRateNationalConfig,
2117
- salesRecoveryChargebackNationalConfig,
2118
- billetSalesConfig,
2119
- pixSalesConfig,
2120
- topSellingProductsNationalConfig,
2121
- ordersChartDataNationalConfig
2122
- ],
2123
- internationalCards: [
2124
- cashoutInternationalConfig,
2125
- totalSalesInternationalConfig,
2126
- mostSoldCountriesConfig,
2127
- approvalRateInternationalConfig,
2128
- refundInternacionalConfig,
2129
- ordersChartDataInternationalConfig,
2130
- topSellingProductsInternationalConfig
2131
- ]
2132
- };
2133
- const defaultConfig = {
2134
- nationalCards: [
2135
- cashoutNationalConfig,
2136
- salesByPaymentTypeNationalConfig,
2137
- refundNationalConfig,
2138
- totalSalesNationalConfig,
2139
- approvalRateNationalConfig,
2140
- salesRecoveryChargebackNationalConfig,
2141
- salesRecoveryNationalConfig,
2142
- ordersChartDataNationalConfig,
2143
- ChargebackRateNationalConfig,
2144
- pixSalesConfig,
2145
- billetSalesConfig,
2146
- topSellingProductsNationalConfig
2147
- ],
2148
- internationalCards: [
2149
- cashoutInternationalConfig,
2150
- totalSalesInternationalConfig,
2151
- mostSoldCountriesConfig,
2152
- approvalRateInternationalConfig,
2153
- refundInternacionalConfig,
2154
- ordersChartDataInternationalConfig,
2155
- topSellingProductsInternationalConfig
2156
- ]
2157
- };
2158
- const dashboardConfig = {
2159
- profiles: {
2160
- isProducerTeam: producerTeamConfig,
2161
- default: defaultConfig
2162
- }
2163
- };
2164
- const showSurvey = function() {
2165
- ApiService.get(`/users/show-nps-survey`).then(({ data: data2 }) => {
2166
- this.showModal = data2.result.show_nps_survey;
2167
- }).catch((error) => {
2168
- console.log(error);
2169
- });
2170
- };
2171
- const stopToShowNpsSurvey = function() {
2172
- ApiService.post("/users/stop-show-nps-survey", { showNpsSurvey: false }).catch((error) => {
2173
- console.log(error);
2174
- });
2175
- };
2176
- function getSurvey() {
2177
- ApiService.get(`/users/show-survey`).then(({ data: data2 }) => {
2178
- this.appTrackObj.key = data2.result.survey_key;
2179
- if (data2.result.survey_key) {
2180
- this.showModal = true;
2181
- }
2182
- }).catch((error) => {
2183
- console.log(error);
2184
- });
2185
- }
2186
- function deactivateSurvey() {
2187
- ApiService.post("/users/stop-show-survey", {
2188
- survey_key: this.appTrackObj.key
2189
- }).catch((error) => {
2190
- console.log(error);
2191
- });
2192
- }
2193
- function checkPermissionSalesRecovery() {
2194
- return ApiService.get("/api/dashboard/check-permission-sales-recovery").then(({ data: data2 }) => {
2195
- return data2.data;
2196
- }).catch(() => {
2197
- return false;
2198
- });
2199
- }
2200
- const AppTrackService = {
2201
- showSurvey,
2202
- stopToShowNpsSurvey,
2203
- getSurvey,
2204
- deactivateSurvey,
2205
- checkPermissionSalesRecovery
2206
- };
2207
- const __default__$g = { name: "AppTrack" };
2208
- const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$g, {
2209
- setup(__props) {
2210
- const showModal = ref(false);
2211
- const componentStatus = ref("start-survey");
2212
- const scriptInsert = document.createElement("script");
2213
- const getAppTrackData = () => {
2214
- const { user } = userService.data;
2215
- customer = {
2216
- name: user.name || "",
2217
- email: user.email || "",
2218
- phone: user.phone || "",
2219
- user_id: user.id.toString() || ""
2220
- };
2221
- return {
2222
- key: "",
2223
- appendTo: "nps_survey",
2224
- customer,
2225
- onCreate: () => {
2226
- TrackWidget.showWidget(showModal.value);
2227
- }
2228
- };
2229
- };
2230
- const stopToShowNpsSurvey2 = AppTrackService.deactivateSurvey;
2231
- const elementScript = () => {
2232
- scriptInsert.id = "trackwidget-js";
2233
- scriptInsert.src = "https://app.track.co/widget.min.js";
2234
- scriptInsert.type = "text/javascript";
2235
- scriptInsert.async = true;
2236
- };
2237
- const insertScript = () => {
2238
- const objAppTrack = getAppTrackData();
2239
- const htmlElement = document.getElementsByTagName("script")[0];
2240
- if (document.getElementById("trackwidget-js")) {
2241
- return;
2242
- }
2243
- elementScript();
2244
- scriptInsert.onload = scriptInsert.onreadystatechange = function() {
2245
- const { readyState } = this;
2246
- if (readyState && readyState !== "complete" && readyStates !== "loaded") {
2247
- return;
2248
- }
2249
- try {
2250
- const trackWidget = new TrackWidget();
2251
- trackWidget.createWidget(objAppTrack);
2252
- } catch (err) {
2253
- console.log(err);
2254
- }
2255
- };
2256
- htmlElement.parentNode.insertBefore(scriptInsert, htmlElement);
2257
- };
2258
- const container = ref(null);
2259
- const changeStatus = () => {
2260
- setTimeout(() => {
2261
- if (componentStatus.value === "survey-finalized") {
2262
- stopToShowNpsSurvey2();
2263
- return;
2264
- }
2265
- if (container.value.childElementCount === 1) {
2266
- componentStatus.value = "survey-loaded";
2267
- }
2268
- if (container.value.childElementCount === 0 && componentStatus.value === "survey-loaded") {
2269
- componentStatus.value = "survey-finalized";
2270
- stopToShowNpsSurvey2();
2271
- showModal.value = false;
2272
- }
2273
- if (componentStatus.value !== "survey-finalized") {
2274
- changeStatus();
2275
- }
2276
- }, 500);
2277
- };
2278
- watch(showModal, (newValue) => {
2279
- if (newValue) {
2280
- changeStatus();
2281
- insertScript();
2282
- }
2283
- });
2284
- onMounted(() => {
2285
- AppTrackService.getSurvey();
2286
- });
2287
- return (_ctx, _cache) => {
2288
- return openBlock(), createBlock(unref(script$5), {
2289
- visible: showModal.value,
2290
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => showModal.value = $event),
2291
- modal: "",
2292
- style: { width: "auto", maxWidth: "90vw" },
2293
- "pt:header": "!flex-row-reverse"
2294
- }, {
2295
- default: withCtx(() => [
2296
- componentStatus.value === "start-survey" || componentStatus.value === "survey-finalized" ? (openBlock(), createBlock(unref(w), {
2297
- key: 0,
2298
- class: "mx-32"
2299
- })) : createCommentVNode("", true),
2300
- createBaseVNode("div", {
2301
- ref_key: "container",
2302
- ref: container,
2303
- id: "nps_survey"
2304
- }, null, 512)
2305
- ]),
2306
- _: 1
2307
- }, 8, ["visible"]);
2308
- };
2309
- }
2310
- });
2311
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
2312
- ...{ name: "InternationalizationModal" },
2313
- __name: "InternationalizationModal",
2314
- props: {
2315
- "show": { type: Boolean },
2316
- "showModifiers": {}
2317
- },
2318
- emits: ["update:show"],
2319
- setup(__props) {
2320
- const router = useRouter();
2321
- const show2 = useModel(__props, "show");
2322
- const AssetsBaseUrl = `${"https://unpkg.com/appmax-client-vue3@5.0.7/dist"}/`;
2323
- const handleInternationalizationRedirect = async () => {
2324
- const { user } = await userService.getData();
2325
- sessionStorage.setItem("internationalization-enable", user.name);
2326
- router.push("/v2/client/integration/appstore");
2327
- return;
2328
- };
2329
- watch(show2, async (newVal) => {
2330
- if (newVal) {
2331
- if (window.clarity) {
2332
- const { user } = await userService.getData();
2333
- clarity("set", "internationalization_modal", "open");
2334
- clarity("set", "internationalization_modal", user.name);
2335
- }
2336
- }
2337
- });
2338
- return (_ctx, _cache) => {
2339
- return openBlock(), createBlock(unref(Te), {
2340
- modelValue: show2.value,
2341
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => show2.value = $event),
2342
- "show-briefing": "",
2343
- "briefing-props": {
2344
- title: _ctx.$t("briefingModal.title"),
2345
- subtitle: _ctx.$t("briefingModal.subtitle"),
2346
- description: _ctx.$t("briefingModal.description"),
2347
- buttonTitle: _ctx.$t("briefingModal.titleButton"),
2348
- buttonLabel: _ctx.$t("briefingModal.labelButton"),
2349
- image: `${unref(AssetsBaseUrl)}images/internationalization-briefing.webp`
2350
- },
2351
- "whats-new-props": {
2352
- finishButtonText: _ctx.$t("whatsnew.finishButtonText"),
2353
- backButtonText: _ctx.$t("whatsnew.backButtonText"),
2354
- nextButtonText: _ctx.$t("whatsnew.nextButtonText"),
2355
- integrationMenuButtonText: _ctx.$t("whatsnew.integrationMenuButtonText"),
2356
- items: [
2357
- {
2358
- image: `${unref(AssetsBaseUrl)}images/whats-new-1.webp`,
2359
- subtitle: _ctx.$t("whatsnew.carrouselItens.firstSlide.subtitle"),
2360
- description: _ctx.$t("whatsnew.carrouselItens.firstSlide.description")
2361
- },
2362
- {
2363
- image: `${unref(AssetsBaseUrl)}images/whats-new-2.webp`,
2364
- subtitle: _ctx.$t("whatsnew.carrouselItens.secondSlide.subtitle"),
2365
- description: _ctx.$t("whatsnew.carrouselItens.secondSlide.description")
2366
- },
2367
- {
2368
- image: `${unref(AssetsBaseUrl)}images/whats-new-3.webp`,
2369
- subtitle: _ctx.$t("whatsnew.carrouselItens.thirdSlide.subtitle"),
2370
- description: _ctx.$t("whatsnew.carrouselItens.thirdSlide.description")
2371
- },
2372
- {
2373
- image: `${unref(AssetsBaseUrl)}images/whats-new-4.webp`,
2374
- subtitle: _ctx.$t("whatsnew.carrouselItens.fourthSlide.subtitle"),
2375
- description: _ctx.$t("whatsnew.carrouselItens.fourthSlide.description"),
2376
- linkHint: _ctx.$t("whatsnew.carrouselItens.fourthSlide.linkHint"),
2377
- url: "https://help.appmax.com.br/pt-br/central-de-ajuda/como-integrar-lojas-internacionais-na-shopify-"
2378
- }
2379
- ]
2380
- },
2381
- onNextStep: handleInternationalizationRedirect
2382
- }, null, 8, ["modelValue", "briefing-props", "whats-new-props"]);
2383
- };
2384
- }
2385
- });
2386
- const DASHBOARD_SELECTED_INDEX = "dashboardInternational";
2387
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
2388
- ...{ name: "DashboardInternationalFilter" },
2389
- __name: "DashboardInternationalFilter",
2390
- props: {
2391
- hasInternationalFeature: { type: Boolean },
2392
- internationalFeatureIsLoading: { type: Boolean },
2393
- isCrossborderInInternationalFlow: { type: Boolean }
2394
- },
2395
- emits: ["changeInternationalTab"],
2396
- setup(__props, { emit: __emit }) {
2397
- const props = __props;
2398
- const emit = __emit;
2399
- const selectedIndex = ref(0);
2400
- const showInternationalizationModal = ref(false);
2401
- const internalSelectedIndex = ref(0);
2402
- const handleSelectButtonClick = (event) => {
2403
- const newValue = event.value;
2404
- if (!props.hasInternationalFeature) {
2405
- showInternationalizationModal.value = true;
2406
- setTimeout(() => {
2407
- internalSelectedIndex.value = selectedIndex.value;
2408
- }, 0);
2409
- return;
2410
- }
2411
- selectedIndex.value = newValue;
2412
- internalSelectedIndex.value = newValue;
2413
- };
2414
- const selectOptions = computed(() => [
2415
- { label: t("home.national"), value: 0 },
2416
- {
2417
- label: t("home.international"),
2418
- value: 1,
2419
- icon: props.hasInternationalFeature || props.internationalFeatureIsLoading ? "" : "brightness_alert"
2420
- }
2421
- ]);
2422
- watch(
2423
- () => selectedIndex.value,
2424
- (newIndex) => {
2425
- if (!props.hasInternationalFeature) return;
2426
- sessionStorage.setItem(DASHBOARD_SELECTED_INDEX, newIndex.toString());
2427
- emit("changeInternationalTab", newIndex === 1);
2428
- }
2429
- );
2430
- onMounted(() => {
2431
- if (!props.hasInternationalFeature) {
2432
- selectedIndex.value = 0;
2433
- internalSelectedIndex.value = 0;
2434
- return;
2435
- }
2436
- const storedIndex = sessionStorage.getItem(DASHBOARD_SELECTED_INDEX);
2437
- if (storedIndex) {
2438
- selectedIndex.value = parseInt(storedIndex) || 0;
2439
- internalSelectedIndex.value = parseInt(storedIndex) || 0;
2440
- }
2441
- });
2442
- return (_ctx, _cache) => {
2443
- return openBlock(), createElementBlock(Fragment, null, [
2444
- createVNode(unref(script), {
2445
- modelValue: internalSelectedIndex.value,
2446
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalSelectedIndex.value = $event),
2447
- options: selectOptions.value,
2448
- size: "small",
2449
- optionLabel: "label",
2450
- optionValue: "value",
2451
- allowEmpty: false,
2452
- class: "order-3 md:!col-span-3 md:!order-2 lg:!col-span-2 lg:!col-start-3 shadow-[2px_2px_12px_0px_rgba(51,51,51,0.16)]",
2453
- "pt:pcToggleButton:root": "!flex-1 !border-0 !border-r last:!border-r-0",
2454
- onChange: handleSelectButtonClick,
2455
- disabled: _ctx.internationalFeatureIsLoading
2456
- }, {
2457
- option: withCtx((slotProps) => [
2458
- createTextVNode(toDisplayString(slotProps.option.label) + " ", 1),
2459
- slotProps.option.icon ? (openBlock(), createBlock(unref(P), {
2460
- key: 0,
2461
- icon: slotProps.option.icon,
2462
- class: "text-primary"
2463
- }, null, 8, ["icon"])) : createCommentVNode("", true)
2464
- ]),
2465
- _: 1
2466
- }, 8, ["modelValue", "options", "disabled"]),
2467
- createVNode(_sfc_main$p, {
2468
- show: showInternationalizationModal.value,
2469
- "onUpdate:show": _cache[1] || (_cache[1] = ($event) => showInternationalizationModal.value = $event)
2470
- }, null, 8, ["show"])
2471
- ], 64);
2472
- };
2473
- }
2474
- });
2475
- const DashboardInternationalFilter = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-aaedf9dc"]]);
2476
- const filterDatesToRange = ([startDate, endDate]) => ({
2477
- start: formatDateWithTimezone(startDate),
2478
- end: formatDateWithTimezone(endDate)
2479
- });
2480
- const rangeToFilterDates = ({ start, end }) => [
2481
- new Date(start),
2482
- new Date(end)
2483
- ];
2484
- const __default__$f = { name: "DashboardFilters" };
2485
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
2486
- ...__default__$f,
2487
- props: {
2488
- hasInternationalFeature: { type: Boolean },
2489
- internationalFeatureIsLoading: { type: Boolean },
2490
- isCrossborderInInternationalFlow: { type: Boolean }
2491
- },
2492
- emits: ["changeInternationalTab", "changeDateRange"],
2493
- setup(__props, { emit: __emit }) {
2494
- const DASHBOARD_DATE_RANGE = "dashboardDateRange";
2495
- const { t: t2 } = useI18n();
2496
- const emit = __emit;
2497
- const today = getTodayDate();
2498
- const dateFilter = ref();
2499
- onMounted(() => {
2500
- try {
2501
- const storedDateRange = sessionStorage.getItem(DASHBOARD_DATE_RANGE);
2502
- if (!storedDateRange) throw new Error();
2503
- const [start, end] = JSON.parse(storedDateRange);
2504
- if (!start || !end) throw new Error();
2505
- dateFilter.value = rangeToFilterDates({ start, end });
2506
- } catch {
2507
- dateFilter.value = [getTodayDate(), getTodayDate()];
2508
- }
2509
- });
2510
- watch(
2511
- () => dateFilter.value,
2512
- (newDates) => {
2513
- if (!newDates) return;
2514
- if (diffDaysBetweenDates(newDates[0], newDates[1]) > 60) {
2515
- toaster.warning(t2("withdraw.alertWarningTitle"), t2("home.sixtyDaysLimitWarning"));
2516
- return;
2517
- }
2518
- sessionStorage.setItem(DASHBOARD_DATE_RANGE, JSON.stringify(newDates));
2519
- const dateRange = filterDatesToRange(newDates);
2520
- emit("changeDateRange", dateRange);
2521
- }
2522
- );
2523
- const minDate = computed(() => {
2524
- if (sessionStorage.getItem("enable-dashboard-custom-filter") || userService.hasPermission("admin:dashboard.complete-filter")) {
2525
- return null;
2526
- }
2527
- return new Date(getOffsetDate(-60));
2528
- });
2529
- const handleInternationalTabChange = (isActive) => {
2530
- emit("changeInternationalTab", isActive);
2531
- };
2532
- return (_ctx, _cache) => {
2533
- return openBlock(), createElementBlock(Fragment, null, [
2534
- createVNode(DashboardInternationalFilter, {
2535
- hasInternationalFeature: _ctx.hasInternationalFeature,
2536
- internationalFeatureIsLoading: _ctx.internationalFeatureIsLoading,
2537
- isCrossborderInInternationalFlow: _ctx.isCrossborderInInternationalFlow,
2538
- onChangeInternationalTab: handleInternationalTabChange
2539
- }, null, 8, ["hasInternationalFeature", "internationalFeatureIsLoading", "isCrossborderInInternationalFlow"]),
2540
- createVNode(AmCardV3, { class: "dashboard-date-filter !p-0" }, {
2541
- default: withCtx(() => [
2542
- createVNode(unref(he), {
2543
- modelValue: dateFilter.value,
2544
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dateFilter.value = $event),
2545
- "min-date": minDate.value,
2546
- "max-date": new Date(unref(today))
2547
- }, null, 8, ["modelValue", "min-date", "max-date"])
2548
- ]),
2549
- _: 1
2550
- })
2551
- ], 64);
2552
- };
2553
- }
2554
- });
2555
- const DashboardFilters = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-6bbd84d5"]]);
2556
- const __default__$e = { name: "DashboardTitle" };
2557
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
2558
- ...__default__$e,
2559
- props: {
2560
- testName: {},
2561
- isLoading: { type: Boolean },
2562
- title: {}
2563
- },
2564
- setup(__props) {
2565
- return (_ctx, _cache) => {
2566
- return openBlock(), createBlock(AmSkeleton, { isLoading: _ctx.isLoading }, {
2567
- default: withCtx(() => [
2568
- createVNode(unref(y), {
2569
- variant: "subtitle",
2570
- isStrong: "",
2571
- "data-test": `${_ctx.testName}-title`
2572
- }, {
2573
- default: withCtx(() => [
2574
- createTextVNode(toDisplayString(_ctx.title), 1)
2575
- ]),
2576
- _: 1
2577
- }, 8, ["data-test"])
2578
- ]),
2579
- _: 1
2580
- }, 8, ["isLoading"]);
2581
- };
2582
- }
2583
- });
2584
- const _hoisted_1$d = { class: "dashboard-loading-state-content" };
2585
- const __default__$d = { name: "DashboardLoadingStateContent" };
2586
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
2587
- ...__default__$d,
2588
- setup(__props) {
2589
- return (_ctx, _cache) => {
2590
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
2591
- createVNode(AmSkeleton, {
2592
- width: 120,
2593
- inline: ""
2594
- }),
2595
- _cache[0] || (_cache[0] = createBaseVNode("br", null, null, -1)),
2596
- createVNode(AmSkeleton, {
2597
- width: 160,
2598
- inline: ""
2599
- })
2600
- ]);
2601
- };
2602
- }
2603
- });
2604
- const __default__$c = { name: "DashboardErrorStateContent" };
2605
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
2606
- ...__default__$c,
2607
- props: {
2608
- testName: {}
2609
- },
2610
- emits: ["retry"],
2611
- setup(__props, { emit: __emit }) {
2612
- const { t: t2 } = useI18n();
2613
- const emit = __emit;
2614
- const handleClick = () => emit("retry");
2615
- return (_ctx, _cache) => {
2616
- return openBlock(), createElementBlock(Fragment, null, [
2617
- createVNode(unref(y), {
2618
- "data-test": `${_ctx.testName}-error-message`,
2619
- class: "text-error mb-2 font-medium"
2620
- }, {
2621
- default: withCtx(() => [
2622
- createTextVNode(toDisplayString(unref(t2)("card.errorMessage")), 1)
2623
- ]),
2624
- _: 1
2625
- }, 8, ["data-test"]),
2626
- createVNode(unref($), {
2627
- icon: "refresh",
2628
- iconPos: "right",
2629
- label: unref(t2)("card.tryAgain"),
2630
- "data-test": `${_ctx.testName}-error-button`,
2631
- size: "small",
2632
- onClick: withModifiers(handleClick, ["stop"])
2633
- }, null, 8, ["label", "data-test"])
2634
- ], 64);
2635
- };
2636
- }
2637
- });
2638
- const _hoisted_1$c = { class: "dashboard-card__header" };
2639
- const _hoisted_2$7 = { class: "dashboard-card__main" };
2640
- const __default__$b = { name: "DashboardCardLoader" };
2641
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
2642
- ...__default__$b,
2643
- props: {
2644
- id: {},
2645
- align: {},
2646
- to: {},
2647
- title: {},
2648
- fetcher: {},
2649
- size: {},
2650
- component: {},
2651
- ignoreDateRange: { type: Boolean },
2652
- noCache: { type: Boolean },
2653
- hasPermissionSalesRecovery: { type: Boolean },
2654
- minHeight: {},
2655
- dateRange: {},
2656
- isLoading: { type: Boolean },
2657
- errorMessage: {}
2658
- },
2659
- setup(__props) {
2660
- const { t: t2 } = useI18n();
2661
- const router = useRouter();
2662
- const index = ref(0);
2663
- const props = __props;
2664
- const state2 = reactive({
2665
- fetching: false,
2666
- error: false,
2667
- success: false,
2668
- data: []
2669
- });
2670
- const isContentFetching = computed(() => state2.fetching || props.isLoading);
2671
- const fetchData2 = async (force = false) => {
2672
- if (props.errorMessage) return;
2673
- if (props.isLoading) return;
2674
- if (!props.dateRange) return;
2675
- if (state2.fetching) index.value += 1;
2676
- const currentIndex = index.value;
2677
- try {
2678
- state2.fetching = true;
2679
- state2.error = false;
2680
- state2.success = false;
2681
- if (force) {
2682
- await dashboardService.clearCache();
2683
- }
2684
- const data2 = await props.fetcher(props.dateRange);
2685
- if (currentIndex !== index.value) return;
2686
- state2.data = data2;
2687
- state2.success = true;
2688
- } catch {
2689
- state2.error = true;
2690
- } finally {
2691
- state2.fetching = false;
2692
- }
2693
- };
2694
- onMounted(fetchData2);
2695
- watch(
2696
- () => props.dateRange,
2697
- () => {
2698
- if (!props.ignoreDateRange) fetchData2();
2699
- }
2700
- );
2701
- watch(
2702
- () => props.isLoading,
2703
- () => {
2704
- if (!props.isLoading) fetchData2();
2705
- }
2706
- );
2707
- watch(
2708
- () => props.errorMessage,
2709
- () => {
2710
- if (!props.errorMessage) fetchData2();
2711
- }
2712
- );
2713
- const handleClick = () => {
2714
- if (!props.to || props.errorMessage || state2.fetching) return;
2715
- if (!props.dateRange) return router.push(props.to);
2716
- const dateParams = `date=${props.dateRange.start},${props.dateRange.end}`;
2717
- if (typeof props.to === "function") return window.location.replace(`${window.location.origin}${props.to()}`);
2718
- const concat = props.to.includes("?") ? "&" : "?";
2719
- const path = `${props.to}${concat}${dateParams}`;
2720
- if (path.includes("integration")) {
2721
- router.push(path);
2722
- } else {
2723
- window.location.replace(path);
2724
- }
2725
- };
2726
- const cardSize = computed(() => {
2727
- if (typeof props.size === "number") return props.size;
2728
- if (useBreakpoint("desktop").value) return props.size.lg;
2729
- if (useBreakpoint("tablet").value) return props.size.md;
2730
- if (useBreakpoint("mobile").value) return 1;
2731
- });
2732
- return (_ctx, _cache) => {
2733
- return openBlock(), createBlock(AmCardV3, {
2734
- class: normalizeClass(["dashboard-card", { "dashboard-card--link": !_ctx.errorMessage && _ctx.to, [`dashboard-card--${_ctx.align}`]: _ctx.align }]),
2735
- "data-test": _ctx.id,
2736
- id: _ctx.id,
2737
- style: normalizeStyle({ "--size": cardSize.value, "--minHeight": `${_ctx.minHeight || 190}px` }),
2738
- onClick: handleClick
2739
- }, {
2740
- default: withCtx(() => [
2741
- createBaseVNode("header", _hoisted_1$c, [
2742
- _ctx.title ? (openBlock(), createBlock(_sfc_main$m, {
2743
- key: 0,
2744
- isLoading: _ctx.isLoading,
2745
- testName: _ctx.id,
2746
- title: unref(t2)(_ctx.title)
2747
- }, null, 8, ["isLoading", "testName", "title"])) : renderSlot(_ctx.$slots, "header", {
2748
- key: 1,
2749
- data: state2.data
2750
- }, void 0, true)
2751
- ]),
2752
- createBaseVNode("main", _hoisted_2$7, [
2753
- _ctx.errorMessage ? (openBlock(), createBlock(unref(y), {
2754
- key: 0,
2755
- class: "text-muted-color"
2756
- }, {
2757
- default: withCtx(() => [
2758
- createTextVNode(toDisplayString(_ctx.errorMessage), 1)
2759
- ]),
2760
- _: 1
2761
- })) : isContentFetching.value ? (openBlock(), createBlock(_sfc_main$l, { key: 1 })) : state2.error ? (openBlock(), createBlock(_sfc_main$k, {
2762
- key: 2,
2763
- testName: _ctx.id,
2764
- onRetry: _cache[0] || (_cache[0] = ($event) => fetchData2(true))
2765
- }, null, 8, ["testName"])) : state2.success ? renderSlot(_ctx.$slots, "default", {
2766
- key: 3,
2767
- data: state2.data
2768
- }, void 0, true) : createCommentVNode("", true)
2769
- ])
2770
- ]),
2771
- _: 3
2772
- }, 8, ["class", "data-test", "id", "style"]);
2773
- };
2774
- }
2775
- });
2776
- const DashboardCardLoader = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-74ae18a0"]]);
2777
- const _hoisted_1$b = ["data-test"];
2778
- const __default__$a = { name: "DashboardMain" };
2779
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
2780
- ...__default__$a,
2781
- props: {
2782
- cards: {},
2783
- dateRange: {},
2784
- isLoading: { type: Boolean },
2785
- errorMessage: {},
2786
- testName: {}
2787
- },
2788
- setup(__props) {
2789
- const loadComponent = (loader) => defineAsyncComponent({ loader, loadingComponent: _sfc_main$l });
2790
- return (_ctx, _cache) => {
2791
- return openBlock(), createElementBlock("div", {
2792
- "data-test": _ctx.testName,
2793
- class: "dashboard-main"
2794
- }, [
2795
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.cards, (card) => {
2796
- return openBlock(), createBlock(DashboardCardLoader, mergeProps({
2797
- key: `${_ctx.testName}-${card.id}`,
2798
- ref_for: true
2799
- }, card, {
2800
- dateRange: _ctx.dateRange,
2801
- isLoading: _ctx.isLoading,
2802
- errorMessage: _ctx.errorMessage
2803
- }), {
2804
- header: withCtx(({ data: data2 }) => [
2805
- data2.title ? (openBlock(), createBlock(_sfc_main$m, {
2806
- key: 0,
2807
- testName: card.id,
2808
- title: unref(t)(data2.title),
2809
- "is-loading": false
2810
- }, null, 8, ["testName", "title"])) : createCommentVNode("", true)
2811
- ]),
2812
- default: withCtx(({ data: data2 }) => [
2813
- (openBlock(), createBlock(resolveDynamicComponent(loadComponent(card.component)), mergeProps({ ref_for: true }, data2), null, 16))
2814
- ]),
2815
- _: 2
2816
- }, 1040, ["dateRange", "isLoading", "errorMessage"]);
2817
- }), 128))
2818
- ], 8, _hoisted_1$b);
2819
- };
2820
- }
2821
- });
2822
- const DashboardMain = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-b34295f0"]]);
2823
- const _hoisted_1$a = { class: "document-modal__container" };
2824
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
2825
- ...{ name: "DashboardOnboardingModal" },
2826
- __name: "DashboardOnboardingModal",
2827
- props: {
2828
- alert: { default: void 0 }
2829
- },
2830
- setup(__props, { expose: __expose }) {
2831
- const { addAlert, removeAlert } = useAlertsStore();
2832
- const props = __props;
2833
- const isOpen = ref(true);
2834
- const openModal = () => {
2835
- isOpen.value = true;
2836
- };
2837
- const closeModal = () => {
2838
- isOpen.value = false;
2839
- };
2840
- __expose({ isOpen, openModal, closeModal });
2841
- onMounted(() => {
2842
- if (props.alert) {
2843
- addAlert({
2844
- name: "dashboard-onboarding-modal",
2845
- description: t(props.alert.message),
2846
- action: t(props.alert.cta),
2847
- severity: "warning",
2848
- actionCallback: openModal
2849
- });
2850
- }
2851
- });
2852
- onUnmounted(() => {
2853
- if (props.alert) {
2854
- removeAlert("dashboard-onboarding-modal");
2855
- }
2856
- });
2857
- return (_ctx, _cache) => {
2858
- return openBlock(), createBlock(unref(script$5), {
2859
- class: "max-w-md w-[90%]",
2860
- "pt:header": "!flex-row-reverse !pb-0",
2861
- visible: isOpen.value,
2862
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event),
2863
- modal: ""
2864
- }, {
2865
- default: withCtx(() => [
2866
- createBaseVNode("div", _hoisted_1$a, [
2867
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
2868
- ])
2869
- ]),
2870
- _: 3
2871
- }, 8, ["visible"]);
2872
- };
2873
- }
2874
- });
2875
- const DashboardOnboardingModal = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-175c592e"]]);
2876
- const _hoisted_1$9 = { class: "hightlight-box bg-surface-200 flex gap-3 py-4 px-3 rounded-md" };
2877
- const _hoisted_2$6 = { class: "hightlight-box__icon" };
2878
- const _hoisted_3$4 = { class: "hightlight-box__text flex flex-col gap-1" };
2879
- const __default__$9 = { name: "AmHighlightBox" };
2880
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
2881
- ...__default__$9,
2882
- props: {
2883
- icon: {},
2884
- title: {},
2885
- description: {}
2886
- },
2887
- setup(__props) {
2888
- return (_ctx, _cache) => {
2889
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
2890
- createBaseVNode("div", _hoisted_2$6, [
2891
- createVNode(unref(P), {
2892
- icon: _ctx.icon,
2893
- size: "lg"
2894
- }, null, 8, ["icon"])
2895
- ]),
2896
- createBaseVNode("div", _hoisted_3$4, [
2897
- createVNode(unref(y), {
2898
- variant: "title",
2899
- size: "small"
2900
- }, {
2901
- default: withCtx(() => [
2902
- createTextVNode(toDisplayString(_ctx.title), 1)
2903
- ]),
2904
- _: 1
2905
- }),
2906
- createVNode(unref(y), { class: "text-muted-color" }, {
2907
- default: withCtx(() => [
2908
- createTextVNode(toDisplayString(_ctx.description), 1)
2909
- ]),
2910
- _: 1
2911
- })
2912
- ])
2913
- ]);
2914
- };
2915
- }
2916
- });
2917
- const _hoisted_1$8 = { class: "almost-there" };
2918
- const __default__$8 = { name: "AlmostThere" };
2919
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
2920
- ...__default__$8,
2921
- setup(__props) {
2922
- return (_ctx, _cache) => {
2923
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
2924
- createVNode(unref(y), {
2925
- variant: "title",
2926
- isStrong: ""
2927
- }, {
2928
- default: withCtx(() => [
2929
- createTextVNode(toDisplayString(_ctx.$t("faceScanModal.almostThere.encouragementMessage")), 1)
2930
- ]),
2931
- _: 1
2932
- }),
2933
- createVNode(unref(y), {
2934
- variant: "subtitle",
2935
- class: "text-center py-1"
2936
- }, {
2937
- default: withCtx(() => [
2938
- createTextVNode(toDisplayString(_ctx.$t("faceScanModal.almostThere.facialVerificationRequirementMessage")), 1)
2939
- ]),
2940
- _: 1
2941
- }),
2942
- createVNode(unref(y), { class: "text-center text-muted-color" }, {
2943
- default: withCtx(() => [
2944
- createTextVNode(toDisplayString(_ctx.$t("faceScanModal.almostThere.verificationStepInstruction")), 1)
2945
- ]),
2946
- _: 1
2947
- }),
2948
- createVNode(_sfc_main$g, {
2949
- icon: "phone_iphone",
2950
- title: _ctx.$t("faceScanModal.almostThere.cardContent.phoneTitle"),
2951
- description: _ctx.$t("faceScanModal.almostThere.cardContent.phoneDescription")
2952
- }, null, 8, ["title", "description"]),
2953
- createVNode(_sfc_main$g, {
2954
- icon: "badge",
2955
- title: _ctx.$t("faceScanModal.almostThere.cardContent.documentTitle"),
2956
- description: _ctx.$t("faceScanModal.almostThere.cardContent.documentDescription")
2957
- }, null, 8, ["title", "description"]),
2958
- createVNode(unref($), {
2959
- label: _ctx.$t("faceScanModal.almostThere.startAction"),
2960
- class: "almost-there__button mt-4",
2961
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("nextStep")),
2962
- size: "small"
2963
- }, null, 8, ["label"])
2964
- ]);
2965
- };
2966
- }
2967
- });
2968
- const AlmostThere = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c5a87145"]]);
2969
- const TWO_MINUTES_IN_SECONDS = 2 * 60;
2970
- const DEFAULT_EXPIRATION_TIME = TWO_MINUTES_IN_SECONDS;
2971
- class FacematchService {
2972
- constructor(apiService = ApiService) {
2973
- __publicField(this, "phoneNumber", "");
2974
- this.apiService = apiService;
2975
- }
2976
- async getSmsInfo() {
2977
- try {
2978
- const url = "/api/auth/onboarding/user-face-match-information";
2979
- const { data: { data: data2 } } = await this.apiService.get(url);
2980
- const timeToExpire = this.getExpirationTime(data2);
2981
- const isExpired = timeToExpire <= 0;
2982
- return { isExpired, timeToExpire };
2983
- } catch {
2984
- return {
2985
- isExpired: false,
2986
- timeToExpire: DEFAULT_EXPIRATION_TIME
2987
- };
2988
- }
2989
- }
2990
- async sendPhone(value = "") {
2991
- const url = "/api/auth/onboarding/face-match";
2992
- const phone = value.replace(/[^\d]/g, "");
2993
- if (phone.length < 11) throw new Error("invalid");
2994
- this.phoneNumber = phone;
2995
- const payload = { phone };
2996
- const { data: data2 } = await this.apiService.post(url, payload);
2997
- return data2;
2998
- }
2999
- getPhoneNumber() {
3000
- return formatPhoneNumber(this.phoneNumber);
3001
- }
3002
- async checkIfFinish() {
3003
- try {
3004
- const url = "/api/auth/onboarding/check-match";
3005
- const { data: data2 } = await this.apiService.post(url);
3006
- return !!data2;
3007
- } catch {
3008
- return false;
3009
- }
3010
- }
3011
- getExpirationTime(data2 = {}) {
3012
- const { smsExpirationDate } = data2;
3013
- if (!smsExpirationDate) return DEFAULT_EXPIRATION_TIME;
3014
- const now = (/* @__PURE__ */ new Date()).getTime();
3015
- const futureTime = new Date(smsExpirationDate).getTime();
3016
- const difTimerInSeconds = Math.ceil((futureTime - now) / 1e3);
3017
- return Math.max(difTimerInSeconds, 0);
3018
- }
3019
- }
3020
- const FacematchService$1 = new FacematchService();
3021
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
3022
- ...{
3023
- name: "FaceScanSmsPhoneStep"
3024
- },
3025
- __name: "FaceScanSmsPhoneStep",
3026
- emits: ["nextStep"],
3027
- setup(__props, { emit: __emit }) {
3028
- const { t: t2 } = useI18n();
3029
- const cleanString = (value) => value.replace(/\D/g, "");
3030
- const phoneNumber = ref("");
3031
- const inputValidations = {
3032
- required: common.withMessage(t2("faceScanModal.faceScanSms.required"), required),
3033
- isValid: common.withMessage(t2("faceScanModal.faceScanSms.invalid"), (value) => {
3034
- const cleaned = cleanString(value || "");
3035
- return cleaned.length === 11;
3036
- })
3037
- };
3038
- const rules = { phoneNumber: inputValidations };
3039
- const v$ = useVuelidate(rules, { phoneNumber });
3040
- watch(
3041
- phoneNumber,
3042
- () => {
3043
- if (v$.value.phoneNumber.$dirty) {
3044
- v$.value.phoneNumber.$validate();
3045
- }
3046
- },
3047
- { immediate: true }
3048
- );
3049
- const validate = async () => await v$.value.phoneNumber.$validate();
3050
- const handleInput = () => {
3051
- v$.value.phoneNumber.$touch();
3052
- v$.value.phoneNumber.$validate();
3053
- };
3054
- const emit = __emit;
3055
- const submitSms = async () => {
3056
- if (await validate()) {
3057
- FacematchService$1.sendPhone(cleanString(phoneNumber.value));
3058
- emit("nextStep");
3059
- }
3060
- return;
3061
- };
3062
- onMounted(() => {
3063
- var _a, _b;
3064
- const store = useUserStore();
3065
- phoneNumber.value = (_b = (_a = store.userModule) == null ? void 0 : _a.user) == null ? void 0 : _b.phone;
3066
- });
3067
- return (_ctx, _cache) => {
3068
- return openBlock(), createElementBlock(Fragment, null, [
3069
- createVNode(unref(y), { class: "font-semibold" }, {
3070
- default: withCtx(() => [
3071
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.faceScanSms.smsAccess")), 1)
3072
- ]),
3073
- _: 1
3074
- }),
3075
- createVNode(unref(y), { class: "text-center text-muted-color" }, {
3076
- default: withCtx(() => [
3077
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.faceScanSms.smsVerificationInstructions")), 1)
3078
- ]),
3079
- _: 1
3080
- }),
3081
- createVNode(unref(C), {
3082
- label: unref(t2)("faceScanModal.faceScanSms.phone"),
3083
- error: unref(v$).phoneNumber.$error ? unref(v$).phoneNumber.$errors[0].$message : void 0,
3084
- "data-test-prefix": "face-scan-sms-phone-field"
3085
- }, {
3086
- default: withCtx(() => [
3087
- createVNode(unref(script$6), {
3088
- id: "basic",
3089
- modelValue: phoneNumber.value,
3090
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => phoneNumber.value = $event),
3091
- mask: "(99) 99999-9999",
3092
- placeholder: unref(t2)("faceScanModal.faceScanSms.inputPlaceholder"),
3093
- autoClear: false,
3094
- invalid: unref(v$).phoneNumber.$error,
3095
- onInput: handleInput,
3096
- onBlur: handleInput
3097
- }, null, 8, ["modelValue", "placeholder", "invalid"])
3098
- ]),
3099
- _: 1
3100
- }, 8, ["label", "error"]),
3101
- createVNode(unref(R), {
3102
- title: unref(t2)("faceScanModal.error.title"),
3103
- message: unref(t2)("faceScanModal.faceScanSms.updateInformation")
3104
- }, null, 8, ["title", "message"]),
3105
- createVNode(unref($), {
3106
- label: unref(t2)("faceScanModal.faceScanSms.receiveAccessBySms"),
3107
- disabled: unref(v$).phoneNumber.$invalid,
3108
- size: "small",
3109
- onClick: submitSms
3110
- }, null, 8, ["label", "disabled"])
3111
- ], 64);
3112
- };
3113
- }
3114
- });
3115
- const _hoisted_1$7 = { class: "relative flex items-center justify-center w-[100px] aspect-square" };
3116
- const _hoisted_2$5 = { class: "absolute flex flex-col items-center" };
3117
- const _sfc_main$d = {
3118
- __name: "AmTimer",
3119
- props: {
3120
- total: {
3121
- type: Number,
3122
- required: true
3123
- },
3124
- isReverse: {
3125
- type: Boolean,
3126
- default: false
3127
- },
3128
- autoPlay: {
3129
- type: Boolean,
3130
- default: false
3131
- },
3132
- color: {
3133
- type: String,
3134
- default: "#9b6afa"
3135
- }
3136
- },
3137
- emits: ["start", "stop"],
3138
- setup(__props, { emit: __emit }) {
3139
- const props = __props;
3140
- const { t: t2 } = useI18n();
3141
- const timeLeft = ref(props.total);
3142
- const interval = ref(null);
3143
- const timeLeftPercent = computed(() => {
3144
- const percent = timeLeft.value * 100 / props.total;
3145
- return props.isReverse ? 100 - percent : percent;
3146
- });
3147
- const emit = __emit;
3148
- const start = () => {
3149
- if (interval.value) return;
3150
- timeLeft.value = props.total;
3151
- interval.value = setInterval(() => {
3152
- if (timeLeft.value === 0) {
3153
- stop();
3154
- return;
3155
- }
3156
- timeLeft.value -= 1;
3157
- }, 1e3);
3158
- emit("start");
3159
- };
3160
- const stop = () => {
3161
- clearInterval(interval.value);
3162
- interval.value = null;
3163
- emit("stop");
3164
- };
3165
- onMounted(() => {
3166
- if (props.autoPlay) start();
3167
- });
3168
- return (_ctx, _cache) => {
3169
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
3170
- createVNode(unref(script$3), {
3171
- modelValue: timeLeftPercent.value,
3172
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => timeLeftPercent.value = $event),
3173
- size: 100,
3174
- readonly: "",
3175
- min: 0,
3176
- max: 100,
3177
- strokeWidth: 8,
3178
- valueColor: __props.color,
3179
- rangeColor: __props.isReverse ? __props.color : "#e0e0e0",
3180
- showValue: false
3181
- }, null, 8, ["modelValue", "valueColor", "rangeColor"]),
3182
- createBaseVNode("div", _hoisted_2$5, [
3183
- createVNode(unref(y), {
3184
- variant: "title",
3185
- isStrong: ""
3186
- }, {
3187
- default: withCtx(() => [
3188
- createTextVNode(toDisplayString(timeLeft.value), 1)
3189
- ]),
3190
- _: 1
3191
- }),
3192
- createVNode(unref(y), null, {
3193
- default: withCtx(() => [
3194
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.smsTimer.secounds")), 1)
3195
- ]),
3196
- _: 1
3197
- })
3198
- ])
3199
- ]);
3200
- };
3201
- }
3202
- };
3203
- const __default__$7 = { name: "FaceScanSmsTimerStep" };
3204
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
3205
- ...__default__$7,
3206
- emits: ["nextStep"],
3207
- setup(__props, { emit: __emit }) {
3208
- const { t: t2 } = useI18n();
3209
- const phoneNumber = computed(() => FacematchService$1.getPhoneNumber());
3210
- const interval = ref();
3211
- const TOTAL_TIMER_IN_SECONDS = 60;
3212
- const emit = __emit;
3213
- const nextStep = () => {
3214
- clearInterval(interval.value);
3215
- emit("nextStep");
3216
- };
3217
- const onTimerEnd = () => {
3218
- nextStep();
3219
- };
3220
- const getCheckMatchResponse = async () => {
3221
- if (!await FacematchService$1.checkIfFinish()) return;
3222
- clearInterval(interval.value);
3223
- nextStep();
3224
- };
3225
- onMounted(() => {
3226
- interval.value = setInterval(getCheckMatchResponse, 5e3);
3227
- });
3228
- onUnmounted(() => {
3229
- clearInterval(interval.value);
3230
- });
3231
- return (_ctx, _cache) => {
3232
- return openBlock(), createElementBlock(Fragment, null, [
3233
- createVNode(unref(y), null, {
3234
- default: withCtx(() => [
3235
- createBaseVNode("span", null, [
3236
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.timer.wait")) + " ", 1),
3237
- createBaseVNode("strong", null, toDisplayString(phoneNumber.value) + ". ", 1),
3238
- createTextVNode(" " + toDisplayString(unref(t2)("faceScanModal.timer.message")), 1)
3239
- ])
3240
- ]),
3241
- _: 1
3242
- }),
3243
- createVNode(_sfc_main$d, {
3244
- ref: "timer",
3245
- total: TOTAL_TIMER_IN_SECONDS,
3246
- "is-reverse": false,
3247
- "auto-play": "",
3248
- onStop: onTimerEnd
3249
- }, null, 512),
3250
- createVNode(unref(y), {
3251
- variant: "subtitle",
3252
- isStrong: "",
3253
- class: "text-primary"
3254
- }, {
3255
- default: withCtx(() => [
3256
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.timer.send")), 1)
3257
- ]),
3258
- _: 1
3259
- })
3260
- ], 64);
3261
- };
3262
- }
3263
- });
3264
- const _hoisted_1$6 = { class: "flex gap-1 w-full items-center" };
3265
- const __default__$6 = { name: "FaceScanSms" };
3266
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3267
- ...__default__$6,
3268
- emits: ["nextStep"],
3269
- setup(__props, { emit: __emit }) {
3270
- const { t: t2 } = useI18n();
3271
- const isPhoneStepActive = ref(true);
3272
- const emit = __emit;
3273
- const handleNextStep = () => {
3274
- if (isPhoneStepActive.value) {
3275
- isPhoneStepActive.value = false;
3276
- } else {
3277
- emit("nextStep");
3278
- }
3279
- };
3280
- return (_ctx, _cache) => {
3281
- return openBlock(), createElementBlock(Fragment, null, [
3282
- createVNode(unref(y), {
3283
- variant: "title",
3284
- isStrong: ""
3285
- }, {
3286
- default: withCtx(() => [
3287
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.title")), 1)
3288
- ]),
3289
- _: 1
3290
- }),
3291
- createBaseVNode("div", _hoisted_1$6, [
3292
- createVNode(unref(script$7), {
3293
- class: "w-full !h-2",
3294
- value: 50,
3295
- showValue: false
3296
- }),
3297
- createVNode(unref(y), null, {
3298
- default: withCtx(() => _cache[0] || (_cache[0] = [
3299
- createBaseVNode("strong", { class: "text-primary" }, "1", -1),
3300
- createBaseVNode("span", { class: "text-muted-color" }, "/2", -1)
3301
- ])),
3302
- _: 1
3303
- })
3304
- ]),
3305
- isPhoneStepActive.value ? (openBlock(), createBlock(_sfc_main$e, {
3306
- key: 0,
3307
- onNextStep: handleNextStep
3308
- })) : (openBlock(), createBlock(_sfc_main$c, {
3309
- key: 1,
3310
- onNextStep: handleNextStep
3311
- }))
3312
- ], 64);
3313
- };
3314
- }
3315
- });
3316
- const _hoisted_1$5 = { class: "flex gap-1 w-full items-center" };
3317
- const _hoisted_2$4 = { class: "pending-verification__warning" };
3318
- const _hoisted_3$3 = { class: "flex flex-col bg-warning-100 rounded p-4" };
3319
- const _hoisted_4$2 = { class: "alert-title" };
3320
- const _hoisted_5$1 = { class: "mt-2" };
3321
- const _hoisted_6$1 = {
3322
- key: 0,
3323
- class: "button-loading"
3324
- };
3325
- const _hoisted_7 = {
3326
- key: 1,
3327
- class: "flex flex-col justify-center gap-2"
3328
- };
3329
- const _hoisted_8 = { key: 0 };
3330
- const __default__$5 = { name: "PendingVerification" };
3331
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
3332
- ...__default__$5,
3333
- emits: ["resetSteps"],
3334
- setup(__props, { emit: __emit }) {
3335
- const { t: t2 } = useI18n();
3336
- const loadingFaceMatchInfo = ref(false);
3337
- const isSmsExpired = ref(false);
3338
- const timer = ref(0);
3339
- const interval = ref();
3340
- const formattedTime = computed(() => {
3341
- const minutes = Math.floor(timer.value / 60);
3342
- const seconds = timer.value % 60;
3343
- return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}`;
3344
- });
3345
- const canResendSms = computed(() => isSmsExpired.value);
3346
- const startTimer = () => {
3347
- interval.value = setInterval(() => {
3348
- timer.value = Math.max(0, timer.value - 1);
3349
- if (timer.value === 0) {
3350
- clearInterval(interval.value);
3351
- isSmsExpired.value = true;
3352
- }
3353
- }, 1e3);
3354
- };
3355
- const checkSms = async () => {
3356
- loadingFaceMatchInfo.value = true;
3357
- const { isExpired, timeToExpire } = await FacematchService$1.getSmsInfo();
3358
- timer.value = timeToExpire;
3359
- isSmsExpired.value = isExpired;
3360
- if (!isExpired) startTimer();
3361
- loadingFaceMatchInfo.value = false;
3362
- };
3363
- onMounted(() => {
3364
- checkSms();
3365
- });
3366
- onUnmounted(() => {
3367
- clearInterval(interval.value);
3368
- });
3369
- const emit = __emit;
3370
- const resetSteps = () => emit("resetSteps");
3371
- return (_ctx, _cache) => {
3372
- return openBlock(), createElementBlock(Fragment, null, [
3373
- createVNode(unref(y), {
3374
- variant: "title",
3375
- isStrong: ""
3376
- }, {
3377
- default: withCtx(() => [
3378
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.title")), 1)
3379
- ]),
3380
- _: 1
3381
- }),
3382
- createBaseVNode("div", _hoisted_1$5, [
3383
- createVNode(unref(script$7), {
3384
- class: "w-full h-2",
3385
- value: 100,
3386
- showValue: false
3387
- }),
3388
- createVNode(unref(y), {
3389
- isStrong: "",
3390
- class: "text-muted-color"
3391
- }, {
3392
- default: withCtx(() => _cache[0] || (_cache[0] = [
3393
- createBaseVNode("span", { class: "text-primary font-bold" }, "2", -1),
3394
- createTextVNode("/2")
3395
- ])),
3396
- _: 1
3397
- })
3398
- ]),
3399
- createVNode(unref(y), {
3400
- class: "text-muted-color",
3401
- isStrong: ""
3402
- }, {
3403
- default: withCtx(() => [
3404
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.msLinkInstructions")), 1)
3405
- ]),
3406
- _: 1
3407
- }),
3408
- createBaseVNode("div", _hoisted_2$4, [
3409
- createBaseVNode("div", _hoisted_3$3, [
3410
- createBaseVNode("div", _hoisted_4$2, [
3411
- createVNode(unref(P), {
3412
- icon: "warning",
3413
- class: "text-warning-500"
3414
- }),
3415
- createVNode(unref(y), { class: "font-semibold" }, {
3416
- default: withCtx(() => [
3417
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.warning")), 1)
3418
- ]),
3419
- _: 1
3420
- })
3421
- ]),
3422
- createBaseVNode("div", _hoisted_5$1, [
3423
- createVNode(unref(y), { class: "font-semibold" }, {
3424
- default: withCtx(() => [
3425
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.facialVerificationPendingMessage")), 1)
3426
- ]),
3427
- _: 1
3428
- }),
3429
- createVNode(unref(y), null, {
3430
- default: withCtx(() => [
3431
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.smsLinkExpirationMessage")), 1)
3432
- ]),
3433
- _: 1
3434
- }),
3435
- _cache[1] || (_cache[1] = createBaseVNode("hr", { class: "m-3" }, null, -1)),
3436
- createVNode(unref(y), { class: "font-semibold" }, {
3437
- default: withCtx(() => [
3438
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.facialVerificationCompletionQuestion")), 1)
3439
- ]),
3440
- _: 1
3441
- }),
3442
- createVNode(unref(y), null, {
3443
- default: withCtx(() => [
3444
- createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.facialVerificationAwaitMessage")), 1)
3445
- ]),
3446
- _: 1
3447
- })
3448
- ])
3449
- ])
3450
- ]),
3451
- loadingFaceMatchInfo.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
3452
- createVNode(unref(w))
3453
- ])) : (openBlock(), createElementBlock("div", _hoisted_7, [
3454
- createVNode(unref($), {
3455
- label: unref(t2)("faceScanModal.pendingVerification.resendSms"),
3456
- size: "small",
3457
- disabled: !canResendSms.value,
3458
- onClick: resetSteps
3459
- }, null, 8, ["label", "disabled"]),
3460
- !canResendSms.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
3461
- createVNode(unref(y), { class: "text-xs" }, {
3462
- default: withCtx(() => [
3463
- createTextVNode(toDisplayString(`${unref(t2)("faceScanModal.pendingVerification.resendSmsDelayMessage")} ${formattedTime.value}`), 1)
3464
- ]),
3465
- _: 1
3466
- })
3467
- ])) : createCommentVNode("", true)
3468
- ]))
3469
- ], 64);
3470
- };
3471
- }
3472
- });
3473
- const PendingVerification = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-d2cdfc64"]]);
3474
- const __default__$4 = { name: "FaceScanModal" };
3475
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3476
- ...__default__$4,
3477
- setup(__props) {
3478
- const COMPONENTS = [AlmostThere, _sfc_main$b, PendingVerification];
3479
- const index = ref(0);
3480
- const interval = ref();
3481
- const resetSteps = () => {
3482
- index.value = 1;
3483
- };
3484
- const handleNextStep = () => {
3485
- index.value++;
3486
- };
3487
- onMounted(() => {
3488
- interval.value = setInterval(async () => {
3489
- const isFinished = await postOnboardingService.checkIfFinished();
3490
- if (!isFinished) return;
3491
- clearInterval(interval.value);
3492
- location.reload();
3493
- }, 3e4);
3494
- });
3495
- onUnmounted(() => {
3496
- clearInterval(interval.value);
3497
- });
3498
- const alertProps = {
3499
- message: "faceScanModal.index.facialVerificationMessage",
3500
- cta: "faceScanModal.index.continuePrompt"
3501
- };
3502
- return (_ctx, _cache) => {
3503
- return openBlock(), createBlock(DashboardOnboardingModal, { alert: alertProps }, {
3504
- default: withCtx(() => [
3505
- (openBlock(), createBlock(resolveDynamicComponent(COMPONENTS[index.value]), {
3506
- onResetSteps: resetSteps,
3507
- onNextStep: handleNextStep
3508
- }, null, 32))
3509
- ]),
3510
- _: 1
3511
- });
3512
- };
3513
- }
3514
- });
3515
- const __default__$3 = { name: "DocumentModal" };
3516
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3517
- ...__default__$3,
3518
- setup(__props) {
3519
- const { t: t2 } = useI18n();
3520
- const alertProps = computed(() => ({
3521
- message: "documentModal.dataAnalysisProcessMessage",
3522
- cta: "documentModal.waitMessage"
3523
- }));
3524
- return (_ctx, _cache) => {
3525
- return openBlock(), createBlock(DashboardOnboardingModal, {
3526
- class: "document-modal",
3527
- alert: alertProps.value
3528
- }, {
3529
- default: withCtx(() => [
3530
- createVNode(unref(y), {
3531
- variant: "title",
3532
- isStrong: ""
3533
- }, {
3534
- default: withCtx(() => [
3535
- createTextVNode(toDisplayString(unref(t2)("documentModal.title")), 1)
3536
- ]),
3537
- _: 1
3538
- }),
3539
- createVNode(unref(y), null, {
3540
- default: withCtx(() => [
3541
- createTextVNode(toDisplayString(unref(t2)("documentModal.dataSubmissionSuccessMessage")), 1)
3542
- ]),
3543
- _: 1
3544
- }),
3545
- createVNode(unref(R), {
3546
- title: unref(t2)("documentModal.warning"),
3547
- message: unref(t2)("documentModal.phoneContactAlert")
3548
- }, null, 8, ["title", "message"]),
3549
- createVNode(unref(y), { class: "text-center text-xs" }, {
3550
- default: withCtx(() => [
3551
- createTextVNode(toDisplayString(unref(t2)("documentModal.analysisCompletionMessage")), 1)
3552
- ]),
3553
- _: 1
3554
- })
3555
- ]),
3556
- _: 1
3557
- }, 8, ["alert"]);
3558
- };
3559
- }
3560
- });
3561
- const __default__$2 = { name: "FaceScanDisabled" };
3562
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3563
- ...__default__$2,
3564
- setup(__props) {
3565
- const modal = ref();
3566
- const closeModal = () => {
3567
- var _a;
3568
- (_a = modal.value) == null ? void 0 : _a.closeModal();
3569
- };
3570
- return (_ctx, _cache) => {
3571
- return openBlock(), createBlock(DashboardOnboardingModal, {
3572
- ref_key: "modal",
3573
- ref: modal,
3574
- class: "facescan-disabled",
3575
- height: "auto"
3576
- }, {
3577
- default: withCtx(() => [
3578
- createVNode(unref(y), {
3579
- class: "facescan-disabled__title",
3580
- as: "h2",
3581
- variant: "title",
3582
- isStrong: ""
3583
- }, {
3584
- default: withCtx(() => [
3585
- createTextVNode(toDisplayString(_ctx.$t("faceScanModal.title")), 1)
3586
- ]),
3587
- _: 1
3588
- }),
3589
- createVNode(unref(R), {
3590
- class: "facescan-disabled__content",
3591
- dataTestPrefix: "face-scan-disabled",
3592
- type: "warning",
3593
- title: _ctx.$t("faceScanModal.warning"),
3594
- message: _ctx.$t("faceScanModal.unstable")
3595
- }, null, 8, ["title", "message"]),
3596
- createVNode(unref($), {
3597
- class: "facescan-disabled__btn",
3598
- label: "Tentar mais tarde",
3599
- size: "small",
3600
- onClick: closeModal
3601
- })
3602
- ]),
3603
- _: 1
3604
- }, 512);
3605
- };
3606
- }
3607
- });
3608
- const FaceScanDisabled = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5ba9154a"]]);
3609
- const __default__$1 = { name: "DashboardOnboarding" };
3610
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3611
- ...__default__$1,
3612
- setup(__props) {
3613
- const { step } = usePostOnboarding();
3614
- const STEP_COMPONENTS = {
3615
- facescan: _sfc_main$9,
3616
- document: _sfc_main$8,
3617
- "facescan-disabled": FaceScanDisabled
3618
- };
3619
- return (_ctx, _cache) => {
3620
- return unref(step) ? (openBlock(), createBlock(resolveDynamicComponent(STEP_COMPONENTS[unref(step)]), { key: 0 })) : createCommentVNode("", true);
3621
- };
3622
- }
3623
- });
3624
- const _hoisted_1$4 = { class: "dashboard-welcome" };
3625
- const __default__ = { name: "DashboardWelcome" };
3626
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3627
- ...__default__,
3628
- setup(__props) {
3629
- return (_ctx, _cache) => {
3630
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
3631
- createVNode(AmText, {
3632
- as: "h1",
3633
- variant: "body",
3634
- "data-test": "dashboard-welcome-subtitle"
3635
- }, {
3636
- default: withCtx(() => [
3637
- createTextVNode(toDisplayString(_ctx.$t("home.home_subtitle")), 1)
3638
- ]),
3639
- _: 1
3640
- })
3641
- ]);
3642
- };
3643
- }
3644
- });
3645
- const DashboardWelcome = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-055d9185"]]);
3646
- const NOTATION = {
3647
- K: 10 ** 3,
3648
- M: 10 ** 6,
3649
- B: 10 ** 9
3650
- };
3651
- const mountNumber = (num, unity) => {
3652
- const divisor = unity ? NOTATION[unity] : 1;
3653
- const value = (num / divisor).toFixed(2).replace(".00", "").replace(".", ",");
3654
- return unity ? `${value}${unity}` : value;
3655
- };
3656
- const abbreviateNumber = (num) => {
3657
- if (num < NOTATION.K) return mountNumber(num);
3658
- if (num < NOTATION.M) return mountNumber(num, "K");
3659
- if (num < NOTATION.B) return mountNumber(num, "M");
3660
- return mountNumber(num, "B");
3661
- };
3662
- const GAMIFICATION_PUSHER_KEY = "13180f6f668fb558d0c1";
3663
- const GAMIFICATION_PUSHER_CLUSTER = "mt1";
3664
- const GAMIFICATION_PUSHER_EVENT_UPDATE_TPV = "notify.gamification-tpv";
3665
- const GAMIFICATION_LANDING_PAGE_URL = "https://appmax.com.br/conquistamax/";
3666
- const GAMIFICATION_ADDRESS_UPDATE_FORM_URL = "https://appmax-1.hubspotpagebuilder.com/appmaxattendereco";
3667
- const CROSS_BORDER_ID = 2;
3668
- const INFO_DATA_ADDRESS = {
3669
- icon: "add_location_alt",
3670
- url: GAMIFICATION_ADDRESS_UPDATE_FORM_URL,
3671
- tooltip: "gamification.address.tooltip"
3672
- };
3673
- const INFO_DATA_CONQUEST = {
3674
- icon: "workspace_premium",
3675
- url: GAMIFICATION_LANDING_PAGE_URL,
3676
- tooltip: "gamition.conquest.tooltip"
3677
- };
3678
- class GamificationService {
3679
- constructor(apiService = ApiService, userService2) {
3680
- this.apiService = apiService;
3681
- this.userService = userService2;
3682
- }
3683
- async getData() {
3684
- const conquestInfo = await this.getConquestInfo();
3685
- if (conquestInfo) return { progress: void 0, addressInfo: INFO_DATA_ADDRESS, conquestInfo };
3686
- const route = "/api/dashboard/info-gamification-progress-bar";
3687
- const response = await this.apiService.get(route);
3688
- const data2 = response.data;
3689
- const progress = this.serializeProgressData(data2);
3690
- return { progress, addressInfo: INFO_DATA_ADDRESS, conquestInfo: void 0 };
3691
- }
3692
- serializeProgressData(data2) {
3693
- const goal = Math.round(data2.achievement_medals.end_revenue_range);
3694
- const value = Math.round(data2.tpv_bruto);
3695
- const percentage = Math.min(Math.round(value / goal * 100), 100);
3696
- const signalCurrency = "R$";
3697
- return {
3698
- uuid: data2.uuid,
3699
- icon: INFO_DATA_CONQUEST.icon,
3700
- url: INFO_DATA_CONQUEST.url,
3701
- percentage,
3702
- value,
3703
- goal,
3704
- formattedPercentage: `${percentage}%`,
3705
- formattedValue: `${signalCurrency} ${abbreviateNumber(value)}`,
3706
- formattedGoal: `${abbreviateNumber(goal)}`
3707
- };
3708
- }
3709
- async getConquestInfo() {
3710
- const isCrossBorder = await this.isUserCrossBorder();
3711
- if (isCrossBorder) return INFO_DATA_CONQUEST;
3712
- }
3713
- async isUserCrossBorder() {
3714
- const { user } = await this.userService.getData();
3715
- return user.typeId === CROSS_BORDER_ID;
3716
- }
3717
- }
3718
- const gamificationService = new GamificationService(ApiService, userService);
3719
- class GamificationPusher {
3720
- constructor(gamificationService2) {
3721
- __publicField(this, "pusher");
3722
- this.gamificationService = gamificationService2;
3723
- this.pusher = new Pusher(GAMIFICATION_PUSHER_KEY, { cluster: GAMIFICATION_PUSHER_CLUSTER });
3724
- }
3725
- on(uuid, callback) {
3726
- this.subscribe(
3727
- uuid,
3728
- GAMIFICATION_PUSHER_EVENT_UPDATE_TPV,
3729
- (data2) => {
3730
- try {
3731
- const progress = this.gamificationService.serializeProgressData({ ...data2, uuid });
3732
- callback(progress);
3733
- } catch {
3734
- }
3735
- }
3736
- );
3737
- }
3738
- off(channel) {
3739
- this.unsubscribe(channel);
3740
- }
3741
- subscribe(channel, event, callback) {
3742
- this.pusher.subscribe(channel).bind(event, callback);
3743
- }
3744
- unsubscribe(channel) {
3745
- this.pusher.unsubscribe(channel);
3746
- }
3747
- }
3748
- const gamificationPusher = new GamificationPusher(gamificationService);
3749
- const state = reactive({
3750
- isLoading: true,
3751
- error: false,
3752
- addressInfo: void 0,
3753
- conquestInfo: void 0,
3754
- progress: void 0,
3755
- showModal: false
3756
- });
3757
- const show = computed(() => !state.error && !state.isLoading);
3758
- const startGamificationPusher = () => {
3759
- var _a;
3760
- const uuid = (_a = state.progress) == null ? void 0 : _a.uuid;
3761
- if (!uuid) return;
3762
- gamificationPusher.on(uuid, (data2) => {
3763
- state.progress = data2;
3764
- });
3765
- };
3766
- const fetchGamificationData = async () => {
3767
- try {
3768
- state.error = false;
3769
- state.isLoading = true;
3770
- const data2 = await gamificationService.getData();
3771
- state.addressInfo = data2.addressInfo;
3772
- state.conquestInfo = data2.conquestInfo;
3773
- state.progress = data2.progress;
3774
- } catch {
3775
- state.error = true;
3776
- } finally {
3777
- state.isLoading = false;
3778
- }
3779
- };
3780
- const useGamification = () => {
3781
- return {
3782
- ...toRefs(state),
3783
- show,
3784
- fetchGamificationData,
3785
- startGamificationPusher
3786
- };
3787
- };
3788
- const _hoisted_1$3 = { class: "flex" };
3789
- const _hoisted_2$3 = { class: "flex-1 flex flex-col gap-4" };
3790
- const _hoisted_3$2 = { class: "flex-1 hidden lg:!block" };
3791
- const _hoisted_4$1 = ["src"];
3792
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3793
- ...{ name: "GamificationModal" },
3794
- __name: "GamificationModal",
3795
- setup(__props) {
3796
- const { showModal } = useGamification();
3797
- return (_ctx, _cache) => {
3798
- return openBlock(), createBlock(unref(script$5), {
3799
- header: _ctx.$t("gamification.modal.title"),
3800
- class: "!w-[800px] !max-w-[90%]",
3801
- modal: "",
3802
- visible: unref(showModal),
3803
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(showModal) ? showModal.value = $event : null)
3804
- }, {
3805
- default: withCtx(() => [
3806
- createBaseVNode("div", _hoisted_1$3, [
3807
- createBaseVNode("div", _hoisted_2$3, [
3808
- createVNode(unref(y), { variant: "subtitle" }, {
3809
- default: withCtx(() => [
3810
- createTextVNode(toDisplayString(_ctx.$t("gamification.modal.description1")), 1)
3811
- ]),
3812
- _: 1
3813
- }),
3814
- createVNode(unref($), {
3815
- text: "",
3816
- label: _ctx.$t("gamification.modal.addresBtn"),
3817
- href: unref(GAMIFICATION_ADDRESS_UPDATE_FORM_URL),
3818
- target: "_blank"
3819
- }, null, 8, ["label", "href"]),
3820
- createVNode(unref(y), { variant: "subtitle" }, {
3821
- default: withCtx(() => [
3822
- createTextVNode(toDisplayString(_ctx.$t("gamification.modal.description2")), 1)
3823
- ]),
3824
- _: 1
3825
- }),
3826
- createVNode(unref($), {
3827
- class: "!w-fit m-auto lg:!m-0",
3828
- label: _ctx.$t("gamification.modal.blogBtn"),
3829
- href: unref(GAMIFICATION_LANDING_PAGE_URL),
3830
- target: "_blank"
3831
- }, null, 8, ["label", "href"])
3832
- ]),
3833
- createBaseVNode("div", _hoisted_3$2, [
3834
- createBaseVNode("img", {
3835
- src: unref(relativeSrc)("/images/gamification-placas.webp"),
3836
- alt: "Gamification placas",
3837
- loading: "lazy",
3838
- decoding: "async",
3839
- class: "w-full h-auto"
3840
- }, null, 8, _hoisted_4$1)
3841
- ])
3842
- ])
3843
- ]),
3844
- _: 1
3845
- }, 8, ["header", "visible"]);
3846
- };
3847
- }
3848
- });
3849
- const _hoisted_1$2 = { "data-test": "gamification-value" };
3850
- const _hoisted_2$2 = { "data-test": "gamification-goal" };
3851
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3852
- __name: "Gamification",
3853
- setup(__props) {
3854
- const { fetchGamificationData: fetchGamificationData2, startGamificationPusher: startGamificationPusher2, show: show2, progress, showModal } = useGamification();
3855
- onMounted(async () => {
3856
- await fetchGamificationData2();
3857
- startGamificationPusher2();
3858
- });
3859
- return (_ctx, _cache) => {
3860
- return openBlock(), createElementBlock(Fragment, null, [
3861
- unref(show2) ? (openBlock(), createBlock(AmCardV3, {
3862
- key: 0,
3863
- class: "gamification",
3864
- placement: "center",
3865
- onClick: _cache[0] || (_cache[0] = ($event) => showModal.value = true)
3866
- }, {
3867
- default: withCtx(() => {
3868
- var _a;
3869
- return [
3870
- createVNode(unref(P), {
3871
- icon: "workspace_premium",
3872
- size: "md",
3873
- class: "text-primary"
3874
- }),
3875
- createVNode(unref(y), { class: "text-primary font-semibold" }, {
3876
- default: withCtx(() => {
3877
- var _a2;
3878
- return [
3879
- createTextVNode(toDisplayString((_a2 = unref(progress)) == null ? void 0 : _a2.formattedPercentage), 1)
3880
- ];
3881
- }),
3882
- _: 1
3883
- }),
3884
- createVNode(unref(script$7), {
3885
- class: "flex-1 h-2",
3886
- value: (_a = unref(progress)) == null ? void 0 : _a.percentage,
3887
- showValue: false
3888
- }, null, 8, ["value"]),
3889
- createVNode(unref(y), { class: "flex text-[13px] items-center text-muted-color" }, {
3890
- default: withCtx(() => {
3891
- var _a2, _b;
3892
- return [
3893
- _cache[1] || (_cache[1] = createTextVNode("   ")),
3894
- createBaseVNode("strong", _hoisted_1$2, toDisplayString((_a2 = unref(progress)) == null ? void 0 : _a2.formattedValue), 1),
3895
- _cache[2] || (_cache[2] = createTextVNode("  /  ")),
3896
- createBaseVNode("span", _hoisted_2$2, toDisplayString((_b = unref(progress)) == null ? void 0 : _b.formattedGoal), 1)
3897
- ];
3898
- }),
3899
- _: 1
3900
- })
3901
- ];
3902
- }),
3903
- _: 1
3904
- })) : createCommentVNode("", true),
3905
- createVNode(_sfc_main$4)
3906
- ], 64);
3907
- };
3908
- }
3909
- });
3910
- const Gamification = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6a14e29d"]]);
3911
- const _hoisted_1$1 = {
3912
- key: 0,
3913
- id: "vitrine"
3914
- };
3915
- const _hoisted_2$1 = ["id"];
3916
- const _hoisted_3$1 = { draggable: "false" };
3917
- const _hoisted_4 = ["srcset"];
3918
- const _hoisted_5 = ["src"];
3919
- const _hoisted_6 = { class: "grid sm:grid-cols-2 gap-3 mt-6" };
3920
- const APP_STORE_URL = "https://apps.apple.com/br/app/max-banco-digital-100-por-ia/id6746756335";
3921
- const PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=br.com.appmax";
3922
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3923
- __name: "Vitrine",
3924
- setup(__props) {
3925
- const isActive = (initialDate, finalDate) => {
3926
- const now = /* @__PURE__ */ new Date();
3927
- if (!initialDate && true) return false;
3928
- if (!initialDate) return finalDate > now;
3929
- return initialDate < now;
3930
- };
3931
- const showModal = ref(false);
3932
- const openModal = () => {
3933
- showModal.value = true;
3934
- };
3935
- const closeModal = () => {
3936
- showModal.value = false;
3937
- };
3938
- const data2 = {
3939
- active: isActive(/* @__PURE__ */ new Date("2025-11-23")),
3940
- id: "vitrine--max-app",
3941
- desktop: relativeSrc("/images/ads/vitrine/20251124-max-app-desktop.png"),
3942
- mobile: relativeSrc("/images/ads/vitrine/20251124-max-app-mobile.png")
3943
- // link: MAX_LINK,
3944
- };
3945
- return (_ctx, _cache) => {
3946
- return data2.active ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
3947
- createVNode(AmCardV3, { style: { "padding": "0", "overflow": "hidden" } }, {
3948
- default: withCtx(() => [
3949
- createBaseVNode("div", {
3950
- id: data2.id,
3951
- class: "block cursor-pointer",
3952
- onClick: openModal
3953
- }, [
3954
- createBaseVNode("picture", _hoisted_3$1, [
3955
- createBaseVNode("source", {
3956
- media: "(min-width: 800px)",
3957
- srcset: data2.desktop,
3958
- width: "1600",
3959
- height: "400"
3960
- }, null, 8, _hoisted_4),
3961
- createBaseVNode("img", {
3962
- src: data2.mobile,
3963
- alt: "Vitrine",
3964
- width: "400",
3965
- height: "200",
3966
- class: "w-full h-auto",
3967
- draggable: "false"
3968
- }, null, 8, _hoisted_5)
3969
- ])
3970
- ], 8, _hoisted_2$1)
3971
- ]),
3972
- _: 1
3973
- }),
3974
- createVNode(AmModalV3, {
3975
- modelValue: showModal.value,
3976
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal.value = $event),
3977
- title: "Baixe o app do Max",
3978
- maxWidth: 500,
3979
- dataTestPrefix: "vitrine-app-download-modal",
3980
- onClose: closeModal
3981
- }, {
3982
- default: withCtx(() => [
3983
- createVNode(unref(y), { variant: "body" }, {
3984
- default: withCtx(() => _cache[1] || (_cache[1] = [
3985
- createTextVNode(" Experimente o app com a melhor usabilidade. ")
3986
- ])),
3987
- _: 1
3988
- }),
3989
- createBaseVNode("div", _hoisted_6, [
3990
- createVNode(unref($), {
3991
- id: `${data2.id}--appstore`,
3992
- onClose: closeModal,
3993
- href: APP_STORE_URL,
3994
- target: "_blank",
3995
- rel: "noopener noreferrer",
3996
- style: { "--p-button-outlined-primary-border-color": "#ccc" },
3997
- outlined: ""
3998
- }, {
3999
- default: withCtx(() => [
4000
- _cache[4] || (_cache[4] = createBaseVNode("div", null, [
4001
- createBaseVNode("svg", {
4002
- xmlns: "http://www.w3.org/2000/svg",
4003
- viewBox: "0 0 50 50",
4004
- width: "32px",
4005
- height: "32px"
4006
- }, [
4007
- createBaseVNode("path", {
4008
- fill: "black",
4009
- d: "M 44.527344 34.75 C 43.449219 37.144531 42.929688 38.214844 41.542969 40.328125 C 39.601563 43.28125 36.863281 46.96875 33.480469 46.992188 C 30.46875 47.019531 29.691406 45.027344 25.601563 45.0625 C 21.515625 45.082031 20.664063 47.03125 17.648438 47 C 14.261719 46.96875 11.671875 43.648438 9.730469 40.699219 C 4.300781 32.429688 3.726563 22.734375 7.082031 17.578125 C 9.457031 13.921875 13.210938 11.773438 16.738281 11.773438 C 20.332031 11.773438 22.589844 13.746094 25.558594 13.746094 C 28.441406 13.746094 30.195313 11.769531 34.351563 11.769531 C 37.492188 11.769531 40.8125 13.480469 43.1875 16.433594 C 35.421875 20.691406 36.683594 31.78125 44.527344 34.75 Z M 31.195313 8.46875 C 32.707031 6.527344 33.855469 3.789063 33.4375 1 C 30.972656 1.167969 28.089844 2.742188 26.40625 4.78125 C 24.878906 6.640625 23.613281 9.398438 24.105469 12.066406 C 26.796875 12.152344 29.582031 10.546875 31.195313 8.46875 Z"
4010
- })
4011
- ])
4012
- ], -1)),
4013
- createBaseVNode("div", null, [
4014
- createVNode(unref(y), {
4015
- size: "small",
4016
- style: { "line-height": "10px" },
4017
- class: "text-muted-color"
4018
- }, {
4019
- default: withCtx(() => _cache[2] || (_cache[2] = [
4020
- createTextVNode("Baixe na")
4021
- ])),
4022
- _: 1
4023
- }),
4024
- createVNode(unref(y), {
4025
- variant: "subtitle",
4026
- size: "large"
4027
- }, {
4028
- default: withCtx(() => _cache[3] || (_cache[3] = [
4029
- createTextVNode("App Store")
4030
- ])),
4031
- _: 1
4032
- })
4033
- ])
4034
- ]),
4035
- _: 1
4036
- }, 8, ["id"]),
4037
- createVNode(unref($), {
4038
- id: `${data2.id}--playstore`,
4039
- onClose: closeModal,
4040
- href: PLAY_STORE_URL,
4041
- target: "_blank",
4042
- rel: "noopener noreferrer",
4043
- style: { "--p-button-outlined-primary-border-color": "#ccc" },
4044
- outlined: ""
4045
- }, {
4046
- default: withCtx(() => [
4047
- _cache[7] || (_cache[7] = createBaseVNode("div", null, [
4048
- createBaseVNode("svg", {
4049
- viewBox: "0 0 40 40",
4050
- xmlns: "http://www.w3.org/2000/svg",
4051
- width: "32px",
4052
- height: "32px"
4053
- }, [
4054
- createBaseVNode("path", {
4055
- fill: "none",
4056
- d: "M0,0h40v40H0V0z"
4057
- }),
4058
- createBaseVNode("g", null, [
4059
- createBaseVNode("path", {
4060
- d: "M19.7,19.2L4.3,35.3c0,0,0,0,0,0c0.5,1.7,2.1,3,4,3c0.8,0,1.5-0.2,2.1-0.6l0,0l17.4-9.9L19.7,19.2z",
4061
- fill: "#EA4335"
4062
- }),
4063
- createBaseVNode("path", {
4064
- d: "M35.3,16.4L35.3,16.4l-7.5-4.3l-8.4,7.4l8.5,8.3l7.5-4.2c1.3-0.7,2.2-2.1,2.2-3.6C37.5,18.5,36.6,17.1,35.3,16.4z",
4065
- fill: "#FBBC04"
4066
- }),
4067
- createBaseVNode("path", {
4068
- d: "M4.3,4.7C4.2,5,4.2,5.4,4.2,5.8v28.5c0,0.4,0,0.7,0.1,1.1l16-15.7L4.3,4.7z",
4069
- fill: "#4285F4"
4070
- }),
4071
- createBaseVNode("path", {
4072
- d: "M19.8,20l8-7.9L10.5,2.3C9.9,1.9,9.1,1.7,8.3,1.7c-1.9,0-3.6,1.3-4,3c0,0,0,0,0,0L19.8,20z",
4073
- fill: "#34A853"
4074
- })
4075
- ])
4076
- ])
4077
- ], -1)),
4078
- createBaseVNode("div", null, [
4079
- createVNode(unref(y), {
4080
- size: "small",
4081
- style: { "line-height": "10px" },
4082
- class: "text-muted-color"
4083
- }, {
4084
- default: withCtx(() => _cache[5] || (_cache[5] = [
4085
- createTextVNode("Baixe no")
4086
- ])),
4087
- _: 1
4088
- }),
4089
- createVNode(unref(y), {
4090
- variant: "subtitle",
4091
- size: "large"
4092
- }, {
4093
- default: withCtx(() => _cache[6] || (_cache[6] = [
4094
- createTextVNode("Google Play")
4095
- ])),
4096
- _: 1
4097
- })
4098
- ])
4099
- ]),
4100
- _: 1
4101
- }, 8, ["id"])
4102
- ])
4103
- ]),
4104
- _: 1
4105
- }, 8, ["modelValue"])
4106
- ])) : createCommentVNode("", true);
4107
- };
4108
- }
4109
- });
4110
- const _hoisted_1 = { class: "dashboard" };
4111
- const _hoisted_2 = { class: "dashboard__header" };
4112
- const _hoisted_3 = { class: "dashboard__body" };
4113
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4114
- __name: "DashboardLayout",
4115
- setup(__props) {
4116
- const { show: showGamification } = useGamification();
4117
- const isMobile = useBreakpoint("mobile");
4118
- const isDesktop = useBreakpoint("desktop");
4119
- const route = useRoute();
4120
- const { t: t2 } = useI18n();
4121
- const isProducerTeam = userService.isProducerTeam();
4122
- const userProfile = isProducerTeam ? "isProducerTeam" : "default";
4123
- const profileConfig = dashboardConfig.profiles[userProfile];
4124
- const isLoading = ref(true);
4125
- const error = ref(false);
4126
- const isInternationalTabActive = ref(false);
4127
- const isSalesRecoveryAllowed = ref(false);
4128
- const dateRange = ref();
4129
- const dashboardKey = ref(0);
4130
- const hasInternationalFeature = ref(false);
4131
- const internationalFeatureIsLoading = ref(true);
4132
- const isCrossborderInInternationalFlow = ref(false);
4133
- const showInternationalHint = ref(false);
4134
- const cards = computed(() => {
4135
- let nationalFilteredCards = profileConfig.nationalCards.filter(validateCard);
4136
- if (isMobile && nationalFilteredCards.length >= 4) {
4137
- const [fourthItem] = nationalFilteredCards.splice(3, 1);
4138
- nationalFilteredCards.splice(1, 0, fourthItem);
4139
- }
4140
- if (!hasInternationalFeature.value) return nationalFilteredCards;
4141
- const internationalFilteredCards = profileConfig.internationalCards.filter(validateCard);
4142
- return isInternationalTabActive.value ? internationalFilteredCards : nationalFilteredCards;
4143
- });
4144
- const errorMessage = computed(() => error.value ? t2("card.errorEmptySiteFilter") : "");
4145
- const onDateRangeChange = (range) => dateRange.value = range;
4146
- const onInternationalTabChange = (isActive) => isInternationalTabActive.value = isActive;
4147
- const checkPermissionSalesRecovery2 = async () => {
4148
- isLoading.value = true;
4149
- const hasPermission = await AppTrackService.checkPermissionSalesRecovery();
4150
- isSalesRecoveryAllowed.value = !!hasPermission;
4151
- isLoading.value = false;
4152
- };
4153
- const validateCard = (card) => {
4154
- const shouldValidate = typeof card.hasPermissionSalesRecovery === "boolean";
4155
- if (!shouldValidate) return true;
4156
- return card.hasPermissionSalesRecovery === isSalesRecoveryAllowed.value;
4157
- };
4158
- const updateFiltersSites = async (event) => {
4159
- try {
4160
- error.value = !event.detail.hasGlobalSites;
4161
- if (error.value) return;
4162
- isLoading.value = true;
4163
- await dashboardService.clearCache();
4164
- dashboardKey.value += 1;
4165
- isLoading.value = false;
4166
- } catch {
4167
- console.error("Error updating filters sites");
4168
- }
4169
- };
4170
- const initialize = async () => {
4171
- await dashboardService.clearCache();
4172
- await checkPermissionSalesRecovery2();
4173
- const userData = await userService.getData();
4174
- hasInternationalFeature.value = userData.internationalFeatureAllowed;
4175
- isCrossborderInInternationalFlow.value = userData.isCrossborderInInternationalFlow;
4176
- internationalFeatureIsLoading.value = false;
4177
- };
4178
- onMounted(() => {
4179
- const storageHistory = localStorage.getItem("routeHistory");
4180
- const routeHistory = storageHistory ? JSON.parse(storageHistory) : [];
4181
- const initialPath = route.fullPath;
4182
- if (routeHistory[routeHistory.length - 1] !== initialPath) {
4183
- routeHistory.push(initialPath);
4184
- localStorage.setItem("routeHistory", JSON.stringify(routeHistory));
4185
- }
4186
- document.addEventListener("updateFiltersSites", updateFiltersSites);
4187
- initialize();
4188
- const storedHint = localStorage.getItem("showInternationalHint");
4189
- showInternationalHint.value = storedHint === "true";
4190
- const urlParams = new URLSearchParams(window.location.search);
4191
- if (urlParams.has("openChat")) {
4192
- const openChat = urlParams.get("openChat");
4193
- if (openChat === "1") {
4194
- Intercom("showNewMessage");
4195
- }
4196
- }
4197
- });
4198
- onUnmounted(() => {
4199
- document.removeEventListener("updateFiltersSites", updateFiltersSites);
4200
- });
4201
- return (_ctx, _cache) => {
4202
- return openBlock(), createElementBlock("div", _hoisted_1, [
4203
- createVNode(unref(_sfc_main$2)),
4204
- createBaseVNode("div", _hoisted_2, [
4205
- unref(isDesktop) && !unref(showGamification) ? (openBlock(), createBlock(DashboardWelcome, { key: 0 })) : createCommentVNode("", true),
4206
- createVNode(Gamification),
4207
- createVNode(DashboardFilters, {
4208
- hasInternationalFeature: hasInternationalFeature.value,
4209
- internationalFeatureIsLoading: internationalFeatureIsLoading.value,
4210
- isCrossborderInInternationalFlow: isCrossborderInInternationalFlow.value,
4211
- onChangeInternationalTab: onInternationalTabChange,
4212
- onChangeDateRange: onDateRangeChange
4213
- }, null, 8, ["hasInternationalFeature", "internationalFeatureIsLoading", "isCrossborderInInternationalFlow"])
4214
- ]),
4215
- createBaseVNode("div", _hoisted_3, [
4216
- createVNode(_sfc_main$6),
4217
- (openBlock(), createBlock(DashboardMain, {
4218
- key: dashboardKey.value,
4219
- testName: isInternationalTabActive.value ? "international" : "national",
4220
- cards: cards.value,
4221
- dateRange: dateRange.value,
4222
- isLoading: isLoading.value,
4223
- errorMessage: errorMessage.value
4224
- }, null, 8, ["testName", "cards", "dateRange", "isLoading", "errorMessage"])),
4225
- createVNode(_sfc_main$q)
4226
- ])
4227
- ]);
4228
- };
4229
- }
4230
- });
4231
- const DashboardLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d9cd69f9"]]);
4232
- const _sfc_main = /* @__PURE__ */ defineComponent({
4233
- __name: "DashboardHome",
4234
- setup(__props) {
4235
- return (_ctx, _cache) => {
4236
- return openBlock(), createBlock(unref(DashboardLayout));
4237
- };
4238
- }
4239
- });
4240
- const DashboardHome = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4241
- __proto__: null,
4242
- default: _sfc_main
4243
- }, Symbol.toStringTag, { value: "Module" }));
4244
- export {
4245
- CHART_COLORS as C,
4246
- DashboardHome as D
4247
- };