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.
- package/dist/AD-Ct_GVBfr-Bd5ZmNR6.js +16 -0
- package/dist/AE-DiMVenwy-CWAV4obx.js +16 -0
- package/dist/AF-DOrptOkS-CHAQ0hS1.js +16 -0
- package/dist/AG-CzBMAtom-D230qTCA.js +16 -0
- package/dist/AI-A2DnDGPS-B2_jkBvf.js +16 -0
- package/dist/AL-BcGdPXjJ-TPv6VjEX.js +16 -0
- package/dist/AM-BC_r4gTd-qcF4VZIc.js +16 -0
- package/dist/AO-D6GK49nd-DkhfG3AF.js +16 -0
- package/dist/AQ-Eeziry42-BWZoK-Vq.js +16 -0
- package/dist/AR-AbqVWszQ-CV09rKe0.js +16 -0
- package/dist/AS-BWe_Gq8Z-C8aIVvuM.js +16 -0
- package/dist/AT-b5CS9jSt-DcT5lkX9.js +16 -0
- package/dist/AU-BUbOyX6Q-wsXvOQnA.js +16 -0
- package/dist/AW-CjVdJTYe-DmDdQ7Oi.js +16 -0
- package/dist/AX-lNtwEmw2-ALqQktQn.js +16 -0
- package/dist/AZ-f8zSo9ut-DVsUGYop.js +16 -0
- package/dist/AmBulletLegend-4PjWRwae.js +23 -0
- package/dist/AmCardV3-BLr7Srwb.js +22 -0
- package/dist/AmChip.vue_vue_type_script_setup_true_lang-DwJkCLRa-CnAo6crt.js +36 -0
- package/dist/AmDoughnutChartAdapted-DM-boeXA.js +203 -0
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-C0So4WbN.js +86 -0
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-B7-flfY1.js +40 -0
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-BF14VaC5.js +46 -0
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-Crp_phPJ.js +63 -0
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-4vSpYa8P-DxkH8bpU.js +53 -0
- package/dist/AmLayoutFeedbackState-ClPW1p3a.js +48 -0
- package/dist/AmLayoutInnerData-ufFWPi6w.js +162 -0
- package/dist/AmModalV3-D_-nzNY9.js +105 -0
- package/dist/AmOutlineCard-BPkPZW4i.js +25 -0
- package/dist/AmSkeleton-D3lwqjae.js +35 -0
- package/dist/AmText-BHIr8R4l.js +33 -0
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-DdsMNcUN.js +64 -0
- package/dist/ApiService-BJ-yA8hE.js +11 -0
- package/dist/AppInstallationConfirmationPasswordModal-CcGEco5V.js +535 -0
- package/dist/AppstoreAppView-BiuPcVvW.js +315 -0
- package/dist/AppstoreHomeView-CLGJFWfX.js +1372 -0
- package/dist/BA-BfV7_7RP-B_Xdq9GS.js +16 -0
- package/dist/BB-CC4768VM-C289DJLx.js +16 -0
- package/dist/BD-YQdTTbhg-QKlpQDzG.js +16 -0
- package/dist/BE-DUYoRyei-0m6_-m4d.js +16 -0
- package/dist/BF-XZRLkaHX-COAJeRlK.js +16 -0
- package/dist/BG-BAb8lAFP-C_rXnUK9.js +16 -0
- package/dist/BH-C1LTB8Fj-B-zg7RL7.js +16 -0
- package/dist/BI-RjDfMipp-Cxb_mEHh.js +16 -0
- package/dist/BJ-DAv61IMB-oNj71vX3.js +16 -0
- package/dist/BL-CFW4iaQd-BzSOI5CG.js +16 -0
- package/dist/BM-DuK3dA1G-CWxpTuaT.js +16 -0
- package/dist/BN-BXHGopan-yW7NNyVH.js +16 -0
- package/dist/BO-CzuoErsx-DErxgePD.js +16 -0
- package/dist/BQ-BO-BlM1Uin3-Dk7gFlMd.js +16 -0
- package/dist/BQ-SA-BninfeHy-cj6q0xM5.js +16 -0
- package/dist/BQ-SE-tq-mCvpl-BhppA6bF.js +16 -0
- package/dist/BR-B1GEJ05L-dA2TBuu1.js +16 -0
- package/dist/BS-MeULPH4e-DBiVnGB4.js +16 -0
- package/dist/BT-BCfQJS6a-RiYgW9TF.js +16 -0
- package/dist/BV-CfaYWvM--B1CRk0Oo.js +16 -0
- package/dist/BW-jYbPMHhQ-BHRjer87.js +16 -0
- package/dist/BY-Ddffd2rT-tV6d9tew.js +16 -0
- package/dist/BZ-B7mGW2Jg-hXZ31d2f.js +16 -0
- package/dist/BankAccountCrossborderNew.page-BEHGYtwA.js +152 -0
- package/dist/BankAccountList.page-DLsCSb5R.js +331 -0
- package/dist/BankAccountNew.page-DibHAlIV.js +982 -0
- package/dist/CA-CHl-cqJL-iIGUE4jr.js +16 -0
- package/dist/CC-DSLZRwFz-Da8t6reA.js +16 -0
- package/dist/CD-D4NJYkQm-CHT0ed9W.js +16 -0
- package/dist/CF-DoxRpaA9-Cm4dyyUE.js +16 -0
- package/dist/CG-Auzp6pC_-C_YxIkUk.js +16 -0
- package/dist/CH-B5eEo1aL-n8YtbaF9.js +16 -0
- package/dist/CI-DFfmdeVw-CxspS9up.js +16 -0
- package/dist/CK-CKWUhjXV-CQXevmgN.js +16 -0
- package/dist/CL-Di6p-p6X-DKGSrl50.js +16 -0
- package/dist/CM-B0ht31e3-CHae1z_1.js +16 -0
- package/dist/CN-CKHlOciI-oe5DrzFs.js +16 -0
- package/dist/CO-GBUkcePt-Crd3tasl.js +16 -0
- package/dist/CR-Daw5JsjF-IWm1qhjZ.js +16 -0
- package/dist/CU-CVOkcTvR-BSxwukR2.js +16 -0
- package/dist/CV-cyPoze-o-DumWiygu.js +16 -0
- package/dist/CW-Bt-Pwg4j-n_K6mjFh.js +16 -0
- package/dist/CX-uhIZlYzy-b7ypn9QU.js +16 -0
- package/dist/CY-un4rgwPX-DJoRGBE9.js +16 -0
- package/dist/CZ-equ-r4iN-cBzgk7Ri.js +16 -0
- package/dist/CashoutAntecipateContent-Dx9u5_Rz.js +42 -0
- package/dist/ChargebackAnalytics-BhwTqu2r.js +1701 -0
- package/dist/ChargebackDetail-B4fUB9Cg.js +3469 -0
- package/dist/ChargebackRate-iZnejOtP.js +77 -0
- package/dist/ChatPlayground.page-8B2hswBl.js +508 -0
- package/dist/ConfirmationModal-CIKu-V4t.js +105 -0
- package/dist/Create.page-BPydpdI-.js +1390 -0
- package/dist/CreatePaymentLink-CnB-m8_F.js +856 -0
- package/dist/DE-zx7UmJ-V-Cp8fD1KI.js +16 -0
- package/dist/DJ-BN1kIFYT-CqC0539K.js +16 -0
- package/dist/DK-CrXXNH_h-BHgJKNcT.js +16 -0
- package/dist/DM-B4nVdNww-DYywrazc.js +16 -0
- package/dist/DO-C7-NF2JD-D05gs8wW.js +16 -0
- package/dist/DZ-DSDLbNRb-CK7oQyjO.js +16 -0
- package/dist/DashboardAmountDetailsContent-CfnEVs2o.js +65 -0
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-DFz_R6Rh.js +151 -0
- package/dist/DashboardApprovalRateInternationalContent-B6uJqN3A.js +19 -0
- package/dist/DashboardApprovalRateNationalContent-RVzx622B.js +74 -0
- package/dist/DashboardCarouselContent-DS757F4I.js +958 -0
- package/dist/DashboardDetailsContent-DFx8sTqd.js +58 -0
- package/dist/DashboardHome-DCKMlnks.js +4247 -0
- package/dist/DetailSubscriptionRecurring-BjZ2RfSw.js +1296 -0
- package/dist/EC-C_bjTYWm-D_T6EiUi.js +16 -0
- package/dist/EE-CQIjuoWO--aXKhjk6.js +16 -0
- package/dist/EG-Bs_BHfVR-Bp8CBGVc.js +16 -0
- package/dist/EH-CnWam84F-DZMSJzBy.js +16 -0
- package/dist/ER-Dcl4hJzq-B17Zsb8s.js +16 -0
- package/dist/ES-Bpj2gAdj-CSHU77rl.js +16 -0
- package/dist/ET-Dm3q0Ruz-DJTWLyyD.js +16 -0
- package/dist/ExternalPendenciesList-DQ8gtd-D.js +651 -0
- package/dist/FI-DCqfJeiQ-BGwpFigw.js +16 -0
- package/dist/FJ-C6UrGUgI-PQ8_soDV.js +16 -0
- package/dist/FK-CAaec31K-BRuERR1x.js +16 -0
- package/dist/FM-Cf2SIJ7h-BcYxaIVO.js +16 -0
- package/dist/FO-DBb4psBV-B0y2-gBx.js +16 -0
- package/dist/FR-CFW4iaQd-BAl-4SkO.js +16 -0
- package/dist/FeatureFlagsPage-BMUKC3Mk.js +271 -0
- package/dist/GA-D3NTxgTl-0zLGxauc.js +16 -0
- package/dist/GB-ENG-Cmkg6Zq8-DvT-QH12.js +16 -0
- package/dist/GB-NIR-DKszcfHi-D-99R70n.js +16 -0
- package/dist/GB-SCT-BiivwJ71-Bcrwm1LZ.js +16 -0
- package/dist/GB-UKM-DgMBd3ib-CNP9rsQK.js +16 -0
- package/dist/GB-WLS-DLoDy9iv-T_HcZVx3.js +16 -0
- package/dist/GD-Bs1d4We7-BaIihe9V.js +16 -0
- package/dist/GE-DXG9iLk5-C89OGNS2.js +16 -0
- package/dist/GF-B20s5gtx-CPT3kdi3.js +16 -0
- package/dist/GG-BAyrpIoO-BeUbM86y.js +16 -0
- package/dist/GH-v3jh5r1X-DnAivaIy.js +16 -0
- package/dist/GI-D39Krd4s-auO_v7Un.js +16 -0
- package/dist/GL-BDd_W5AU-DkmIIpXU.js +16 -0
- package/dist/GM-BNEHspzj-5WzqwnaI.js +16 -0
- package/dist/GN-DdIZ0X6d-0dzfgpJt.js +16 -0
- package/dist/GP-CFW4iaQd-DoN4z59W.js +16 -0
- package/dist/GQ-CC3X6AMz-BpcNb63L.js +16 -0
- package/dist/GR-C_0rusTd-DM78Vz0F.js +16 -0
- package/dist/GS-Db5l22a1-g1wpVbCk.js +16 -0
- package/dist/GT-BhbkqUft-BokZZEPm.js +16 -0
- package/dist/GU-C0HeItm1-CK3NMaKC.js +16 -0
- package/dist/GW-BjLM1vg--Bb0vh4FM.js +16 -0
- package/dist/GY-BreBVlhN-BSZ_J8Zd.js +16 -0
- package/dist/HK-BZn9ZQGS-B_G2UEXQ.js +16 -0
- package/dist/HM-BUbOyX6Q-CBTHnK8w.js +16 -0
- package/dist/HN-D4wujIPC-DDOtdLYZ.js +16 -0
- package/dist/HR-Jhi3QQ9F-DjFev7_L.js +16 -0
- package/dist/HT-MMjMjr-R-DNm13_JB.js +16 -0
- package/dist/HU-CN5KmQ7F-Bhg0fCkc.js +16 -0
- package/dist/Home-hBBbcfgJ.js +997 -0
- package/dist/ID-hVVUTKNG-C84lqN8r.js +16 -0
- package/dist/IE-WN_vdKcS-BCsThQaP.js +16 -0
- package/dist/IL-D5Wr_Xxh-BsTH0_1Q.js +16 -0
- package/dist/IM-B-putc0k-CEJesk0F.js +16 -0
- package/dist/IN-CK40zbQD-YKf-WDvU.js +16 -0
- package/dist/IO-CdvLck7D-qGjzKcAA.js +16 -0
- package/dist/IQ-f_9wyurt-D6yW63sz.js +16 -0
- package/dist/IR-B0yfWttH-9GL9LGQQ.js +16 -0
- package/dist/IS-Dvf-XQTq-B1Gi2T7b.js +16 -0
- package/dist/IT-uY7cjdFI-CGQW9SCb.js +16 -0
- package/dist/ImportTrackingCode-DRkKUB2E.js +1007 -0
- package/dist/InternalCompanyIssuesDetail-BmQQ0qBt.js +862 -0
- package/dist/InternalCompanyList-Cfs4T8MU.js +351 -0
- package/dist/InternalPendencyDetail-BYvZrkBI.js +717 -0
- package/dist/JE-C95tN_VG-0snvENdj.js +16 -0
- package/dist/JM-zOuEwaB3-DP2FNo63.js +16 -0
- package/dist/JO-Cq88rrOD-DAYUZ_9d.js +16 -0
- package/dist/JP-5evXgWxq-BqPrtm23.js +16 -0
- package/dist/KE-PHx0d97Z-C-Xkidlw.js +16 -0
- package/dist/KG-DT4JnieX-DbgG6igj.js +16 -0
- package/dist/KH-ChwV2WTT-TyKbWD-O.js +16 -0
- package/dist/KI-D212g4Lh-IhpiUyPB.js +16 -0
- package/dist/KM-mPVp7AKS-DsMX3gp5.js +16 -0
- package/dist/KN-AdXLXICN-dEvywFxw.js +16 -0
- package/dist/KP-CC6UIrEF-C9V2ASuz.js +16 -0
- package/dist/KR-BtnmWR6C-CqP0yrnA.js +16 -0
- package/dist/KW-gqahWVaw-Be5XycK8.js +16 -0
- package/dist/KY-DjIb70VQ-B7qjhpUZ.js +16 -0
- package/dist/KZ-C_fRihiO-CkqwPRDj.js +16 -0
- package/dist/LA-KIULJHAb-6V8PE7UC.js +16 -0
- package/dist/LB-CrF8WJiI-Ds8QmDZN.js +16 -0
- package/dist/LC-DGiHXm5V-BaQexC5C.js +16 -0
- package/dist/LI-BwB0b8M1-C7uFEcvm.js +16 -0
- package/dist/LK-BOC44ZgS-IDJmlLil.js +16 -0
- package/dist/LR-CWjRlWOZ-DQOYP-31.js +16 -0
- package/dist/LS-B_EgU3p5-CPGiYN_N.js +16 -0
- package/dist/LT-BPyPiVx2-D_zUYxQu.js +16 -0
- package/dist/LU-B-De6aB--Co5ldo0f.js +16 -0
- package/dist/LV-D2Ewe3XC-p5OVxRBg.js +16 -0
- package/dist/LY-D1TSt6YI-e1UP1DI9.js +16 -0
- package/dist/MA-QY5gm-vM-C2WO3oMv.js +16 -0
- package/dist/MC-BjlCjfCP-BoLj6z6H.js +16 -0
- package/dist/MD-rh-6rlSt-BX8Tc87h.js +16 -0
- package/dist/ME-D1euo0V2-CvMo4JW8.js +16 -0
- package/dist/MF-CFW4iaQd-Bkjt9y9x.js +16 -0
- package/dist/MG-ONnxn_5g-DvUoQXXU.js +16 -0
- package/dist/MH-B8oC_VMS-DnLx3n4w.js +16 -0
- package/dist/MK-ByjICisj-BnQ7mmNt.js +16 -0
- package/dist/ML-CKVAuhox-BmU671B6.js +16 -0
- package/dist/MM-doJuUjVT-Cpng9kzz.js +16 -0
- package/dist/MN-BFP303GE-Cnet8fPI.js +16 -0
- package/dist/MO-Dp4PTSYU-CmDiynhO.js +16 -0
- package/dist/MP-CqKsnjHV-FUAVNGyw.js +16 -0
- package/dist/MQ-CFW4iaQd-XdOF3z0F.js +16 -0
- package/dist/MR-D73q_PiY-BjRVagls.js +16 -0
- package/dist/MS-qhjKl9TO-CJbbL4Nv.js +16 -0
- package/dist/MT-CZjbs1U--B56GIRNc.js +16 -0
- package/dist/MU-D0EQOl0S-CPMJBZY-.js +16 -0
- package/dist/MV-BtwHRTMn-CEUMywhy.js +16 -0
- package/dist/MW-CVnAR98j-CywjjDiA.js +16 -0
- package/dist/MX-C7vXnCDY-vgoj60da.js +16 -0
- package/dist/MY-DJcgH_o3-CIeie-uR.js +16 -0
- package/dist/MZ-BbLwl9DA-Cq31M3XS.js +16 -0
- package/dist/Max.page-Dcn85hoh.js +599 -0
- package/dist/MostSoldCountries-COPCqZos.js +22 -0
- package/dist/NA-5FKNjRGT-DRkHVQ9Y.js +16 -0
- package/dist/NC-CFW4iaQd-RNcTVT1j.js +16 -0
- package/dist/NE-DpLZJa7D-DhfNivVc.js +16 -0
- package/dist/NF-BT-wIfwf-CaiD3aUC.js +16 -0
- package/dist/NG-BAiR_q0H-CTz9q1XE.js +16 -0
- package/dist/NI-DylPDojG-SIw_VW_0.js +16 -0
- package/dist/NL-iozeFKPM-BOODwZiT.js +16 -0
- package/dist/NO-CfaYWvM--Bh0WieSh.js +16 -0
- package/dist/NP-BGR_ZaqA-SwhN9ZxU.js +16 -0
- package/dist/NR-DHGW5Y3Q-BbnfBi3h.js +16 -0
- package/dist/NU-CcpcSx_x-CmNKWCMY.js +16 -0
- package/dist/NZ-DDYt6DcJ-B2Pz0Ftu.js +16 -0
- package/dist/OM-D6hiar1r-CpSs2A93.js +16 -0
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-Bn2cbExN.js +760 -0
- package/dist/OrderStatusChip-C1J1ks-7.js +30 -0
- package/dist/Orders.page-CyzFwzOO.js +1636 -0
- package/dist/OrdersChartDataContent-CsR6xEDY.js +221 -0
- package/dist/OrdersDetails.page-ygHwYPZu.js +6158 -0
- package/dist/PA-Bi2blxjJ-CiC6L-sG.js +16 -0
- package/dist/PE-D4DjQOlP-B9xHtj9T.js +16 -0
- package/dist/PF-DmOSfnYB-DUK8RODQ.js +16 -0
- package/dist/PG-DeOlZ7TA-Bm0BFeAt.js +16 -0
- package/dist/PH-Dv4KdxU--BXLkyPbu.js +16 -0
- package/dist/PK-CRhM95F8-wLWbDQj3.js +16 -0
- package/dist/PL-BIdMQAtx-DroEfnKF.js +16 -0
- package/dist/PM-BDa53dEz-Wuh9DXsJ.js +16 -0
- package/dist/PN-Csu7Dufn-DM8OoDFi.js +16 -0
- package/dist/PR-C_Acdbc_-BV_cjvog.js +16 -0
- package/dist/PS-Dmg0ofZr-D_vqnUqW.js +16 -0
- package/dist/PT-Bsck4nv8-n44lsZH9.js +16 -0
- package/dist/PW-CBMqjpxh-CWdEMQxj.js +16 -0
- package/dist/PY-Be6zNh15-BApM1Zdq.js +16 -0
- package/dist/PaymentsLinks-BkBLxOhv.js +675 -0
- package/dist/QA-CZmcW85r-BIaN_BKE.js +16 -0
- package/dist/RE-CFW4iaQd-C-LtwLD_.js +16 -0
- package/dist/RO-6H4O-gQF-umgKrrOo.js +16 -0
- package/dist/RS-DM7vMnHL-ByaPPQdU.js +16 -0
- package/dist/RU-HqKQeTq2-CdQa3Rea.js +16 -0
- package/dist/RW-DkH4VhfP-Dln4W9aO.js +16 -0
- package/dist/RecurringSubscription-5YV9JLCN.js +548 -0
- package/dist/RecurringSubscriptionDashView-CZieelLA.js +2012 -0
- package/dist/RiskPendenciesInternalService-Da0r9bx9.js +145 -0
- package/dist/SA-C2hBi4Lh-B-_V_tRn.js +16 -0
- package/dist/SB-CBu9QLGP-DoLcG5D0.js +16 -0
- package/dist/SC-CR6esM-V-DM9Ih8UH.js +16 -0
- package/dist/SD-VCXqBHrW-iWeZ8UWU.js +16 -0
- package/dist/SE-DbI0jJm9-Ct6AxmgQ.js +16 -0
- package/dist/SG-DgprfMyV-BIWB9G5I.js +16 -0
- package/dist/SH-qhjKl9TO-lN2voGkq.js +16 -0
- package/dist/SI-C3dA03Yk-JXsAbYc5.js +16 -0
- package/dist/SJ-CfaYWvM--DtPsDNQE.js +16 -0
- package/dist/SK-CxbHN7aU-Ce3QQWFt.js +16 -0
- package/dist/SL-GXAaRXng-DS4r85x6.js +16 -0
- package/dist/SM-B2SteTdO-utOO6NF0.js +16 -0
- package/dist/SN-B7Q__Lx_-CbDgdw5W.js +16 -0
- package/dist/SO-Bnd5-U9z-Ds0rRlBb.js +16 -0
- package/dist/SR-BHMDOkL2-BHBQa6-_.js +16 -0
- package/dist/SS-CsTgWca1-bEoQnWqh.js +16 -0
- package/dist/ST-DLqO0boT-Pcs4DY17.js +16 -0
- package/dist/SV-DNZizmQg-Cll7LfXj.js +16 -0
- package/dist/SX-DWuXjLwS-CkTnX-X9.js +16 -0
- package/dist/SY-DeOQEBum-BvQqTa6l.js +16 -0
- package/dist/SZ-Bhe0qU5K-LUsSuHEM.js +16 -0
- package/dist/SalesRecovery-BwahdiAP.js +594 -0
- package/dist/SalesRecoveryIA-CsRmsa8r.js +199 -0
- package/dist/SendCustomerRefundLinkPage-nf7UvlCi.js +137 -0
- package/dist/StatusDescriptionModal-OEBHl2pa.js +60 -0
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-BjLniAr8.js +28 -0
- package/dist/TC-D5HTaKiF-C95JRPuC.js +16 -0
- package/dist/TD-DyIWvaGg-iM7m9_fs.js +16 -0
- package/dist/TF-BRsv64iE-BhHjQKQs.js +16 -0
- package/dist/TG-OhNa5jmt-Dbrq5Rx2.js +16 -0
- package/dist/TH-F_ODV0JW-WAfbvhJx.js +16 -0
- package/dist/TJ-BFkbbSmN-CMuzEe9m.js +16 -0
- package/dist/TK-Ct75yy7V-DvfBTH_c.js +16 -0
- package/dist/TL-BzqVkHGw-subCl4Yv.js +16 -0
- package/dist/TM-CCAvd8qV-COdGELb6.js +16 -0
- package/dist/TN-CmYqbPEz-Dq8lpxeK.js +16 -0
- package/dist/TO-BQQk9Xq_-Dej6OD5K.js +16 -0
- package/dist/TR-_MKkCnUV-CfwBUkpC.js +16 -0
- package/dist/TT-DoRURl1c-Cfh7EpBs.js +16 -0
- package/dist/TV-Dt8uZCP4-DidZHEG0.js +16 -0
- package/dist/TW-CvHugvex-Behsayb7.js +16 -0
- package/dist/TZ-RbwBgiwb-Bdf4nAwf.js +16 -0
- package/dist/TopSellingProductsContent-Bc4suvpo.js +80 -0
- package/dist/UA-BiXHPMqV-DFlKImJw.js +16 -0
- package/dist/UG--it_LhSj-BIDg1dUg.js +16 -0
- package/dist/UM-BFcTdeDD-CraE9IXj.js +16 -0
- package/dist/US-BFcTdeDD-CraE9IXj.js +16 -0
- package/dist/UY-C26Ndi4P-CihzTcdn.js +16 -0
- package/dist/UZ-BK5ADwFW-COECMMjT.js +16 -0
- package/dist/UserIndicationsPage-BaZPtbEa.js +723 -0
- package/dist/VA-Cpq1n4yW-C5xbwie0.js +16 -0
- package/dist/VC-D1Fjbog5-DL3lXb38.js +16 -0
- package/dist/VE-CeM-hea7-Bp7YI746.js +16 -0
- package/dist/VG-qhjKl9TO-BuXR1oE7.js +16 -0
- package/dist/VI-C-kcu42_-B6s7UkEl.js +16 -0
- package/dist/VN-2yoryeK1-CTR1plTA.js +16 -0
- package/dist/VU-CkLlsgzP-DbQoQksi.js +16 -0
- package/dist/WF-BDa53dEz-dpILUZKA.js +16 -0
- package/dist/WS-CNi2O6Qm-Iz1xmQsa.js +16 -0
- package/dist/WithdrawAdvance-CzV3HOoZ.js +17 -0
- package/dist/WithdrawBankAccountStore-DI8PJABd.js +283 -0
- package/dist/WithdrawBlocked-Ck2-UZ-6.js +133 -0
- package/dist/WithdrawCompanyStore-VtmOEfn4.js +80 -0
- package/dist/WithdrawGuaranteeExtract-Ckve3qpm.js +994 -0
- package/dist/WithdrawHome-BDiiGKO9.js +1843 -0
- package/dist/WithdrawHome-BH9UB_YH.js +2448 -0
- package/dist/WithdrawInternational-Cf6PPDxA.js +17 -0
- package/dist/WithdrawMaxStore-_kMO1KAL.js +772 -0
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-C17v5RK3.js +530 -0
- package/dist/WithdrawNoAccountWarning-CWEPATpz.js +233 -0
- package/dist/WithdrawPermissionGuard-Ds4weXTr.js +338 -0
- package/dist/WithdrawRequest-BeJ0CzV8.js +944 -0
- package/dist/WithdrawRequest-Belqd9FQ.js +17 -0
- package/dist/WithdrawRequestDetail-C-WVfmtf.js +284 -0
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-CVJKPPN4.js +936 -0
- package/dist/YE-DxPZysMs-D8U9xTY-.js +16 -0
- package/dist/YT-BMJJ1U_T-Dyhn61oK.js +16 -0
- package/dist/ZA-BjQXS8mc-Dtk6uhWA.js +16 -0
- package/dist/ZM-Dw0PmMTO-Be-k3eVm.js +16 -0
- package/dist/ZW-D0UStZMr-BJEO4ES1.js +16 -0
- package/dist/affiliate-Bgt9fadK-B97_ZGmU.js +22 -0
- package/dist/amex-CvNwRHhS-DaTqPDaL.js +16 -0
- package/dist/api-CYsDG6hO.js +11 -0
- package/dist/apple_pay-DtsAzVjF-DQpS7OlA.js +20 -0
- package/dist/archive-CFoPOir7-D4BfZJNe.js +18 -0
- package/dist/aura-D1VyKb6w-WVSNhtND.js +23 -0
- package/dist/boleto-BQZRi0Q5-Diu5q0E0.js +18 -0
- package/dist/box-DNrK38w2-9e8P-Cx-.js +20 -0
- package/dist/cart-p5jccB8o-B87Exl7e.js +15 -0
- package/dist/cash-FZcelZV1-qB5QhIpR.js +20 -0
- package/dist/chart-YJ27XOr3-Df_obCky.js +22 -0
- package/dist/chat.page-DoGRG_uB.js +424 -0
- package/dist/credit_card-CGrPYCJP-Z2tLiAjJ.js +15 -0
- package/dist/csv-CYa6aPS5-DihTGghi.js +18 -0
- package/dist/dayjs.min-CcK7VWyt.js +282 -0
- package/dist/diners-CN_1suUM-DWt3rKws.js +26 -0
- package/dist/discover-vVTOFEvv-BANjMjsv.js +22 -0
- package/dist/ds-appmax-v322-BjI3DR8g.js +52 -0
- package/dist/ds-appmax-v327-DsNzYiM2.js +69 -0
- package/dist/ds-appmax-v330-qNvYNKwR.js +48 -0
- package/dist/ds-appmax-v335-hFGO1Lbs.js +278 -0
- package/dist/elo-BaNbqhYS-D2F5aG-j.js +15 -0
- package/dist/gear-BHOWpd7b-CUwDAzRq.js +18 -0
- package/dist/grid-B7I0mWry-HiHZ_Kwp.js +18 -0
- package/dist/hipercard-DBsszwxC-tN9V0-pw.js +22 -0
- package/dist/index-7HL3gx2Z.js +409 -0
- package/dist/index-BOsWLnPs.js +1204 -0
- package/dist/index-BPKLoPUK.js +200 -0
- package/dist/index-BSJzT1I8.js +21 -0
- package/dist/index-BcBnYA3I.js +534 -0
- package/dist/index-BeCSVECV.js +219 -0
- package/dist/index-BlOkAQXW.js +230 -0
- package/dist/index-Bt8xvm45.js +83 -0
- package/dist/index-C36HlqfG.js +1790 -0
- package/dist/index-CH5dTSvu.js +4133 -0
- package/dist/index-CRPIzPvI.js +11240 -0
- package/dist/index-CSg04cEs.js +219 -0
- package/dist/index-CZyRC_sJ.js +721 -0
- package/dist/index-CkulPi3f.js +62 -0
- package/dist/index-CpNYJR7K.js +106 -0
- package/dist/index-D-WIVMdu.js +275 -0
- package/dist/index-DDgF9Xvz.js +18 -0
- package/dist/index-DGQfHY2_.js +332 -0
- package/dist/index-DLT4u8_2.js +21 -0
- package/dist/index-DPZxRQEY.js +776 -0
- package/dist/index-DRs5aUNv.js +11 -0
- package/dist/index-DV8E7noR.js +217 -0
- package/dist/index-DYjK1G8m.js +92 -0
- package/dist/index-DcJMV4RI.js +1567 -0
- package/dist/index-Dr0HIcB0.js +67 -0
- package/dist/index-DtMp4pBF.js +681 -0
- package/dist/index-EA1RZqrI.js +169 -0
- package/dist/index-c5y6NpG3.js +117 -0
- package/dist/index-jIS4ivdd.js +35 -0
- package/dist/index.page-BTom4qDX.js +737 -0
- package/dist/index.page-COjbXPxC.js +827 -0
- package/dist/index.page-DbIxA4sB.js +165 -0
- package/dist/infos-8KGPLXoE-CYr6zwG9.js +18 -0
- package/dist/integrations-UOltVEyj-DH3ghkHr.js +19 -0
- package/dist/logs-Ce3fZY0v-CGOkFuKx.js +28 -0
- package/dist/maestro-BMomgHxO-BkKnnY5u.js +27 -0
- package/dist/main-B2MCvgMD.js +106861 -0
- package/dist/main.js +1 -1
- package/dist/mastercard-5I-dcOVV-ZsxmNZk0.js +30 -0
- package/dist/max_brand-Crj-SFUw-SBwwl5Xw.js +29 -0
- package/dist/max_brand_active-BIkS5qkP-KEyHvPYE.js +27 -0
- package/dist/max_brand_negative-BxvdIegN-CXKTCHl_.js +30 -0
- package/dist/max_brand_white-DdKi2YVX-CTnOAgZW.js +29 -0
- package/dist/menu.page-BXujZ-40.js +274 -0
- package/dist/money-DZpB5eTf-CGe8vcYj.js +19 -0
- package/dist/notification-DMezLtAj-1_IsrGTz.js +18 -0
- package/dist/paypal-DMYjfEw0-2VfwB0aq.js +15 -0
- package/dist/pix-DXdX91yj-DH1pfeCs.js +22 -0
- package/dist/pix_outline-D_xXXgCN-CsfjJmzi.js +16 -0
- package/dist/pix_white-CcVsnEF2-BekdWo87.js +24 -0
- package/dist/pusher-sOpTjbdI.js +4010 -0
- package/dist/shield-DS-Xf4WH-BmkNT9w0.js +15 -0
- package/dist/solid_help-DNaqfgoc-Dz7vftiS.js +20 -0
- package/dist/solid_home-BDUiJDVY-DYF8Kuln.js +18 -0
- package/dist/solid_leaderboard-DtqK7q9Y-CLwx5tpS.js +18 -0
- package/dist/solid_store-Cfv6o4b8-Cuvsenob.js +18 -0
- package/dist/ticket_icon-DwvyLm7c-C5eVGhUU.js +22 -0
- package/dist/usePendingMessage-C2WvHUkD.js +191 -0
- package/dist/useQueryFilter-BkJhzQQm.js +93 -0
- package/dist/useRecurringTable-CFcBE6Qa.js +160 -0
- package/dist/user-BRpwqYx8-CnJwt2SQ.js +18 -0
- package/dist/validateURL.helper-Br0evPJN.js +126 -0
- package/dist/visa-tPjWcMbi-tL5AKgbk.js +18 -0
- package/package.json +1 -1
- package/dist/AD-Ct_GVBfr-StkZNwKG.js +0 -16
- package/dist/AE-DiMVenwy-DxJiXpGV.js +0 -16
- package/dist/AF-DOrptOkS-XegbzW-w.js +0 -16
- package/dist/AG-CzBMAtom-3SnT-5Uu.js +0 -16
- package/dist/AI-A2DnDGPS-CRjXjwoJ.js +0 -16
- package/dist/AL-BcGdPXjJ-a6zDxVMc.js +0 -16
- package/dist/AM-BC_r4gTd-D4MMWySB.js +0 -16
- package/dist/AO-D6GK49nd-CRMJFOm-.js +0 -16
- package/dist/AQ-Eeziry42-iwkWssf1.js +0 -16
- package/dist/AR-AbqVWszQ-BLrhhG4H.js +0 -16
- package/dist/AS-BWe_Gq8Z-CGYxjZdZ.js +0 -16
- package/dist/AT-b5CS9jSt-jCk4CN1Q.js +0 -16
- package/dist/AU-BUbOyX6Q-_oWZ4t5s.js +0 -16
- package/dist/AW-CjVdJTYe-BUkLY2f-.js +0 -16
- package/dist/AX-lNtwEmw2-Dyvu77aH.js +0 -16
- package/dist/AZ-f8zSo9ut-08cW-_Ne.js +0 -16
- package/dist/AmBulletLegend-TLfX-igU.js +0 -23
- package/dist/AmCardV3-Lq-pDk8I.js +0 -22
- package/dist/AmChip.vue_vue_type_script_setup_true_lang-DwJkCLRa-CWW7FYuq.js +0 -36
- package/dist/AmDoughnutChartAdapted-Sc1PXFRp.js +0 -203
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-CK5ScPbD.js +0 -86
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-DhLqJYa3.js +0 -40
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-n7ZDlDFc.js +0 -46
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-CSgyEEl4.js +0 -63
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-4vSpYa8P-eMwsOwkH.js +0 -53
- package/dist/AmLayoutFeedbackState-Dmk2iK7m.js +0 -48
- package/dist/AmLayoutInnerData-jknggN9g.js +0 -162
- package/dist/AmModalV3-SnC7z-f1.js +0 -105
- package/dist/AmOutlineCard-TsZMM0uk.js +0 -25
- package/dist/AmSkeleton-CvModGAs.js +0 -35
- package/dist/AmText-Ix8DK3Xq.js +0 -33
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-CudRZsqY.js +0 -64
- package/dist/ApiService-DRzbmsKC.js +0 -11
- package/dist/AppInstallationConfirmationPasswordModal-J4K4jdAF.js +0 -535
- package/dist/AppstoreAppView-CiuQGC__.js +0 -315
- package/dist/AppstoreHomeView-BVTYPaA7.js +0 -1372
- package/dist/BA-BfV7_7RP-BmWvA7Az.js +0 -16
- package/dist/BB-CC4768VM-BrSXHBwy.js +0 -16
- package/dist/BD-YQdTTbhg-CsC8onAg.js +0 -16
- package/dist/BE-DUYoRyei-Cir1ALU_.js +0 -16
- package/dist/BF-XZRLkaHX-DjkqOK_I.js +0 -16
- package/dist/BG-BAb8lAFP-iIReheFM.js +0 -16
- package/dist/BH-C1LTB8Fj-C7u05hot.js +0 -16
- package/dist/BI-RjDfMipp-B6ky4VmW.js +0 -16
- package/dist/BJ-DAv61IMB-CZQvrwne.js +0 -16
- package/dist/BL-CFW4iaQd-vZjnKF5I.js +0 -16
- package/dist/BM-DuK3dA1G-CoDTQ8M1.js +0 -16
- package/dist/BN-BXHGopan-BsZXW4-r.js +0 -16
- package/dist/BO-CzuoErsx-Bp8LCvZk.js +0 -16
- package/dist/BQ-BO-BlM1Uin3-BH3lwALm.js +0 -16
- package/dist/BQ-SA-BninfeHy-5BXY4Pjt.js +0 -16
- package/dist/BQ-SE-tq-mCvpl-D2PYuSfE.js +0 -16
- package/dist/BR-B1GEJ05L-R3viz22_.js +0 -16
- package/dist/BS-MeULPH4e-CtTP5gDM.js +0 -16
- package/dist/BT-BCfQJS6a-DX6wGh8L.js +0 -16
- package/dist/BV-CfaYWvM--DBvI1GXv.js +0 -16
- package/dist/BW-jYbPMHhQ-DY6P1xlK.js +0 -16
- package/dist/BY-Ddffd2rT-COy4OMfV.js +0 -16
- package/dist/BZ-B7mGW2Jg-DaMlt_nO.js +0 -16
- package/dist/BankAccountCrossborderNew.page-DUwRE4gI.js +0 -152
- package/dist/BankAccountList.page-BSDHYGub.js +0 -331
- package/dist/BankAccountNew.page-C21O0_jS.js +0 -982
- package/dist/CA-CHl-cqJL-BtpvOOcu.js +0 -16
- package/dist/CC-DSLZRwFz-DDnxA_BE.js +0 -16
- package/dist/CD-D4NJYkQm-DQ6messd.js +0 -16
- package/dist/CF-DoxRpaA9-BTYIt_Vx.js +0 -16
- package/dist/CG-Auzp6pC_-BhNbuOmx.js +0 -16
- package/dist/CH-B5eEo1aL-5DHkWvgz.js +0 -16
- package/dist/CI-DFfmdeVw-jXEKQCoa.js +0 -16
- package/dist/CK-CKWUhjXV-DpYhyfzy.js +0 -16
- package/dist/CL-Di6p-p6X-CS-iO5wu.js +0 -16
- package/dist/CM-B0ht31e3-C_nJbzMB.js +0 -16
- package/dist/CN-CKHlOciI-KVe2Eb8p.js +0 -16
- package/dist/CO-GBUkcePt-T2c6qTQs.js +0 -16
- package/dist/CR-Daw5JsjF-CxEK9f-r.js +0 -16
- package/dist/CU-CVOkcTvR-Ch6PPqDZ.js +0 -16
- package/dist/CV-cyPoze-o-VEDXWOox.js +0 -16
- package/dist/CW-Bt-Pwg4j-koWsygmq.js +0 -16
- package/dist/CX-uhIZlYzy-CLgj3zMe.js +0 -16
- package/dist/CY-un4rgwPX-BCZvAZao.js +0 -16
- package/dist/CZ-equ-r4iN-lt0FzSxo.js +0 -16
- package/dist/CashoutAntecipateContent-SfCGolcD.js +0 -42
- package/dist/ChargebackAnalytics-DMevdeDv.js +0 -1701
- package/dist/ChargebackDetail-2d1DN7U0.js +0 -3469
- package/dist/ChargebackRate-7Uy-H1DI.js +0 -77
- package/dist/ChatPlayground.page-CO4jfzTo.js +0 -508
- package/dist/ConfirmationModal-CF_U-frW.js +0 -105
- package/dist/Create.page-DPbBOsj8.js +0 -1390
- package/dist/CreatePaymentLink-DSyQYfVP.js +0 -856
- package/dist/DE-zx7UmJ-V-DeXIS-VO.js +0 -16
- package/dist/DJ-BN1kIFYT-C5T2N2HN.js +0 -16
- package/dist/DK-CrXXNH_h-B5zm5lvp.js +0 -16
- package/dist/DM-B4nVdNww-NQlqLUyy.js +0 -16
- package/dist/DO-C7-NF2JD-BLUIGfTI.js +0 -16
- package/dist/DZ-DSDLbNRb-w7_Desad.js +0 -16
- package/dist/DashboardAmountDetailsContent-DsRKiy13.js +0 -65
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-W9oze5aE.js +0 -151
- package/dist/DashboardApprovalRateInternationalContent-DwZ_iCPM.js +0 -19
- package/dist/DashboardApprovalRateNationalContent-DPTDddWe.js +0 -74
- package/dist/DashboardCarouselContent-2fwlwNaA.js +0 -958
- package/dist/DashboardDetailsContent-DOaBSX6C.js +0 -58
- package/dist/DashboardHome-BWUDE46A.js +0 -4247
- package/dist/DetailSubscriptionRecurring-BwhVWSFe.js +0 -1296
- package/dist/EC-C_bjTYWm-CkIPnXtp.js +0 -16
- package/dist/EE-CQIjuoWO-eJzWYuFv.js +0 -16
- package/dist/EG-Bs_BHfVR-BUc-7Y5M.js +0 -16
- package/dist/EH-CnWam84F-BfLD5WtO.js +0 -16
- package/dist/ER-Dcl4hJzq-Cdnfo4Bc.js +0 -16
- package/dist/ES-Bpj2gAdj-CUZuk00J.js +0 -16
- package/dist/ET-Dm3q0Ruz-Xp4Kooq8.js +0 -16
- package/dist/ExternalPendenciesList-DaK1hoWT.js +0 -651
- package/dist/FI-DCqfJeiQ-Dg65w44y.js +0 -16
- package/dist/FJ-C6UrGUgI-BmqTBfls.js +0 -16
- package/dist/FK-CAaec31K-uu8TXGVh.js +0 -16
- package/dist/FM-Cf2SIJ7h-CjnhxBFa.js +0 -16
- package/dist/FO-DBb4psBV-B5mQD8--.js +0 -16
- package/dist/FR-CFW4iaQd-DcZT61H2.js +0 -16
- package/dist/FeatureFlagsPage-CBsbRl6D.js +0 -271
- package/dist/GA-D3NTxgTl-D2YIwQmr.js +0 -16
- package/dist/GB-ENG-Cmkg6Zq8-CAQ7T31R.js +0 -16
- package/dist/GB-NIR-DKszcfHi-BFFEYwvB.js +0 -16
- package/dist/GB-SCT-BiivwJ71-CxDx6od6.js +0 -16
- package/dist/GB-UKM-DgMBd3ib-CieAaPe1.js +0 -16
- package/dist/GB-WLS-DLoDy9iv-DMFfCAzk.js +0 -16
- package/dist/GD-Bs1d4We7-C-0qWGiJ.js +0 -16
- package/dist/GE-DXG9iLk5-lkTA9W--.js +0 -16
- package/dist/GF-B20s5gtx-BdEJtlYi.js +0 -16
- package/dist/GG-BAyrpIoO-CEp4nlb4.js +0 -16
- package/dist/GH-v3jh5r1X-sEdkkQNp.js +0 -16
- package/dist/GI-D39Krd4s-DFnkEJH8.js +0 -16
- package/dist/GL-BDd_W5AU-Bxy42WRY.js +0 -16
- package/dist/GM-BNEHspzj-Xqe99wsg.js +0 -16
- package/dist/GN-DdIZ0X6d-DUxQZuSu.js +0 -16
- package/dist/GP-CFW4iaQd-DOzMIWUU.js +0 -16
- package/dist/GQ-CC3X6AMz-6icEgnXe.js +0 -16
- package/dist/GR-C_0rusTd-mIM3xNh0.js +0 -16
- package/dist/GS-Db5l22a1-CdrX2Y5A.js +0 -16
- package/dist/GT-BhbkqUft-K3nNsWBc.js +0 -16
- package/dist/GU-C0HeItm1-D5xOZvA1.js +0 -16
- package/dist/GW-BjLM1vg--Cc2TkCJW.js +0 -16
- package/dist/GY-BreBVlhN-CRsMuRPu.js +0 -16
- package/dist/HK-BZn9ZQGS-i1VD08IL.js +0 -16
- package/dist/HM-BUbOyX6Q-CU-q_zyK.js +0 -16
- package/dist/HN-D4wujIPC-KAMhtxSX.js +0 -16
- package/dist/HR-Jhi3QQ9F-DFlEUgwE.js +0 -16
- package/dist/HT-MMjMjr-R-BqgEZJlK.js +0 -16
- package/dist/HU-CN5KmQ7F-DpYWZQce.js +0 -16
- package/dist/Home-w0zEZPLM.js +0 -997
- package/dist/ID-hVVUTKNG-DenQFi4u.js +0 -16
- package/dist/IE-WN_vdKcS-DmakqYH_.js +0 -16
- package/dist/IL-D5Wr_Xxh-DR1JQJAG.js +0 -16
- package/dist/IM-B-putc0k-BrB5mOrT.js +0 -16
- package/dist/IN-CK40zbQD-Cd_SCL4Q.js +0 -16
- package/dist/IO-CdvLck7D-B8cB7w_l.js +0 -16
- package/dist/IQ-f_9wyurt-Cn0ZuRNc.js +0 -16
- package/dist/IR-B0yfWttH-CI8EW92A.js +0 -16
- package/dist/IS-Dvf-XQTq-sfzt_VIB.js +0 -16
- package/dist/IT-uY7cjdFI-BdmhxsvZ.js +0 -16
- package/dist/ImportTrackingCode-Cwki8VEu.js +0 -1007
- package/dist/InternalCompanyIssuesDetail-BTFa349q.js +0 -862
- package/dist/InternalCompanyList-RZqevqas.js +0 -351
- package/dist/InternalPendencyDetail-Bi_kiYAJ.js +0 -717
- package/dist/JE-C95tN_VG-BM1b2jWY.js +0 -16
- package/dist/JM-zOuEwaB3-DakMHpsR.js +0 -16
- package/dist/JO-Cq88rrOD-Cz8lW1sE.js +0 -16
- package/dist/JP-5evXgWxq-CzBr_SVP.js +0 -16
- package/dist/KE-PHx0d97Z-DVzS4EC1.js +0 -16
- package/dist/KG-DT4JnieX-wDEt1dH0.js +0 -16
- package/dist/KH-ChwV2WTT-l5DkNXqr.js +0 -16
- package/dist/KI-D212g4Lh-Q_UgITmW.js +0 -16
- package/dist/KM-mPVp7AKS-BzQctsLg.js +0 -16
- package/dist/KN-AdXLXICN-Dz28lwO2.js +0 -16
- package/dist/KP-CC6UIrEF-DThiWjzQ.js +0 -16
- package/dist/KR-BtnmWR6C-CR6fjMs0.js +0 -16
- package/dist/KW-gqahWVaw-BkPvGzS_.js +0 -16
- package/dist/KY-DjIb70VQ-UuqAEB55.js +0 -16
- package/dist/KZ-C_fRihiO-B_za94A_.js +0 -16
- package/dist/LA-KIULJHAb-BPkxBWgt.js +0 -16
- package/dist/LB-CrF8WJiI-BdKdWg13.js +0 -16
- package/dist/LC-DGiHXm5V-CkJUFxuV.js +0 -16
- package/dist/LI-BwB0b8M1-BfCwQGk-.js +0 -16
- package/dist/LK-BOC44ZgS-BF3UITew.js +0 -16
- package/dist/LR-CWjRlWOZ-NgX1jbDo.js +0 -16
- package/dist/LS-B_EgU3p5-BPTRxTGe.js +0 -16
- package/dist/LT-BPyPiVx2-E20bXXtS.js +0 -16
- package/dist/LU-B-De6aB--CmvB2fVr.js +0 -16
- package/dist/LV-D2Ewe3XC-B1zMor1e.js +0 -16
- package/dist/LY-D1TSt6YI-bpysz8fH.js +0 -16
- package/dist/MA-QY5gm-vM-CsAOe4dd.js +0 -16
- package/dist/MC-BjlCjfCP-BNZJn2aT.js +0 -16
- package/dist/MD-rh-6rlSt-Bt22Bm16.js +0 -16
- package/dist/ME-D1euo0V2-Cf03c9AO.js +0 -16
- package/dist/MF-CFW4iaQd-9BRJjN4v.js +0 -16
- package/dist/MG-ONnxn_5g-CXZ-2z9e.js +0 -16
- package/dist/MH-B8oC_VMS-Dz9UrfiW.js +0 -16
- package/dist/MK-ByjICisj-COt2IDzo.js +0 -16
- package/dist/ML-CKVAuhox-Cp9dFrhj.js +0 -16
- package/dist/MM-doJuUjVT-BucIUrC-.js +0 -16
- package/dist/MN-BFP303GE-DYme6HEg.js +0 -16
- package/dist/MO-Dp4PTSYU-xjOpJPAh.js +0 -16
- package/dist/MP-CqKsnjHV-ChPYn2wP.js +0 -16
- package/dist/MQ-CFW4iaQd-DToalkVz.js +0 -16
- package/dist/MR-D73q_PiY-CYTp9zgT.js +0 -16
- package/dist/MS-qhjKl9TO-EYVm0-3d.js +0 -16
- package/dist/MT-CZjbs1U--CYxNYkeO.js +0 -16
- package/dist/MU-D0EQOl0S-DJ4m7oVM.js +0 -16
- package/dist/MV-BtwHRTMn-tJRMar24.js +0 -16
- package/dist/MW-CVnAR98j-C2m-9Drd.js +0 -16
- package/dist/MX-C7vXnCDY-BOFNqu0o.js +0 -16
- package/dist/MY-DJcgH_o3-D4O6580m.js +0 -16
- package/dist/MZ-BbLwl9DA-CdsWcHp4.js +0 -16
- package/dist/Max.page-ChNsHLUy.js +0 -599
- package/dist/MostSoldCountries-CX3vbXrx.js +0 -22
- package/dist/NA-5FKNjRGT-jKJ6qgWe.js +0 -16
- package/dist/NC-CFW4iaQd-ByYw5Ypb.js +0 -16
- package/dist/NE-DpLZJa7D-C65mma0D.js +0 -16
- package/dist/NF-BT-wIfwf-BzyXhqwy.js +0 -16
- package/dist/NG-BAiR_q0H-Cb8DUYFq.js +0 -16
- package/dist/NI-DylPDojG-D7w7ZfJ6.js +0 -16
- package/dist/NL-iozeFKPM-Cmjh0elD.js +0 -16
- package/dist/NO-CfaYWvM--CVbeIcbk.js +0 -16
- package/dist/NP-BGR_ZaqA-BImMeiCD.js +0 -16
- package/dist/NR-DHGW5Y3Q-C07PCDYH.js +0 -16
- package/dist/NU-CcpcSx_x-CYx4Kp7G.js +0 -16
- package/dist/NZ-DDYt6DcJ-Cif-Kw1W.js +0 -16
- package/dist/OM-D6hiar1r-4gACbfUf.js +0 -16
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-BbJIJmF8.js +0 -760
- package/dist/OrderStatusChip-Cds7Y7LK.js +0 -30
- package/dist/Orders.page-BtraAP-w.js +0 -1636
- package/dist/OrdersChartDataContent-8rFRC_RD.js +0 -221
- package/dist/OrdersDetails.page-BNevKFTI.js +0 -6158
- package/dist/PA-Bi2blxjJ-EvrqyGIe.js +0 -16
- package/dist/PE-D4DjQOlP-DpBNRnfU.js +0 -16
- package/dist/PF-DmOSfnYB-tINNWwnc.js +0 -16
- package/dist/PG-DeOlZ7TA-SBQflY15.js +0 -16
- package/dist/PH-Dv4KdxU--DR0uWmjE.js +0 -16
- package/dist/PK-CRhM95F8-B-JTqeWR.js +0 -16
- package/dist/PL-BIdMQAtx-DdwoxqMc.js +0 -16
- package/dist/PM-BDa53dEz-Z8n5-v2E.js +0 -16
- package/dist/PN-Csu7Dufn-Djck72yV.js +0 -16
- package/dist/PR-C_Acdbc_-BMguztAs.js +0 -16
- package/dist/PS-Dmg0ofZr-DHluTVpa.js +0 -16
- package/dist/PT-Bsck4nv8-CKdXVXaH.js +0 -16
- package/dist/PW-CBMqjpxh-C6TlBXby.js +0 -16
- package/dist/PY-Be6zNh15-Dvds5o_H.js +0 -16
- package/dist/PaymentsLinks-B30T5Q-g.js +0 -675
- package/dist/QA-CZmcW85r-De7cr0fM.js +0 -16
- package/dist/RE-CFW4iaQd-Ts9mumW3.js +0 -16
- package/dist/RO-6H4O-gQF-DlgiGUnn.js +0 -16
- package/dist/RS-DM7vMnHL-C0Ig11Dy.js +0 -16
- package/dist/RU-HqKQeTq2-Dakt9zzw.js +0 -16
- package/dist/RW-DkH4VhfP-djhs6njt.js +0 -16
- package/dist/RecurringSubscription-CbXWwUXZ.js +0 -548
- package/dist/RecurringSubscriptionDashView-DCLHpkB5.js +0 -2012
- package/dist/RiskPendenciesInternalService-CIkqWsf1.js +0 -145
- package/dist/SA-C2hBi4Lh-CEMgfmhc.js +0 -16
- package/dist/SB-CBu9QLGP-xJhpee_b.js +0 -16
- package/dist/SC-CR6esM-V-CjE9cQu2.js +0 -16
- package/dist/SD-VCXqBHrW-AGD4JnfB.js +0 -16
- package/dist/SE-DbI0jJm9-7a1GWcRl.js +0 -16
- package/dist/SG-DgprfMyV-BkfCZ_qU.js +0 -16
- package/dist/SH-qhjKl9TO-CvKK803k.js +0 -16
- package/dist/SI-C3dA03Yk-Bbg9awoo.js +0 -16
- package/dist/SJ-CfaYWvM--BOTuOUXE.js +0 -16
- package/dist/SK-CxbHN7aU-B-SPe9-l.js +0 -16
- package/dist/SL-GXAaRXng-DWdJyCQp.js +0 -16
- package/dist/SM-B2SteTdO-DutV2C0n.js +0 -16
- package/dist/SN-B7Q__Lx_-DCrQvK0i.js +0 -16
- package/dist/SO-Bnd5-U9z-D7i2PmVP.js +0 -16
- package/dist/SR-BHMDOkL2-DF_csy-l.js +0 -16
- package/dist/SS-CsTgWca1-B1BO_mMW.js +0 -16
- package/dist/ST-DLqO0boT-CSHITGDi.js +0 -16
- package/dist/SV-DNZizmQg-oXtH8Qo0.js +0 -16
- package/dist/SX-DWuXjLwS-BVmitxTF.js +0 -16
- package/dist/SY-DeOQEBum-Z56UhCsj.js +0 -16
- package/dist/SZ-Bhe0qU5K-BcbdfEaj.js +0 -16
- package/dist/SalesRecovery-rSlU4lBQ.js +0 -594
- package/dist/SalesRecoveryIA-BpZzq0Vs.js +0 -199
- package/dist/SendCustomerRefundLinkPage-w7W2n7-k.js +0 -137
- package/dist/StatusDescriptionModal-BY_a33a6.js +0 -60
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-DncPsF1g.js +0 -28
- package/dist/TC-D5HTaKiF-CTS2rJXb.js +0 -16
- package/dist/TD-DyIWvaGg-MZHpuz-U.js +0 -16
- package/dist/TF-BRsv64iE-C2_DF6G-.js +0 -16
- package/dist/TG-OhNa5jmt-BYGtjBEn.js +0 -16
- package/dist/TH-F_ODV0JW-BKdbGGvG.js +0 -16
- package/dist/TJ-BFkbbSmN-OjycTQth.js +0 -16
- package/dist/TK-Ct75yy7V-D37cowKt.js +0 -16
- package/dist/TL-BzqVkHGw-BHUqs5iR.js +0 -16
- package/dist/TM-CCAvd8qV-DJhm6ozi.js +0 -16
- package/dist/TN-CmYqbPEz-DG69dHnw.js +0 -16
- package/dist/TO-BQQk9Xq_-B8H_cU7r.js +0 -16
- package/dist/TR-_MKkCnUV-Ce8wrpJl.js +0 -16
- package/dist/TT-DoRURl1c-CqqJJH8i.js +0 -16
- package/dist/TV-Dt8uZCP4-CZ10Z60G.js +0 -16
- package/dist/TW-CvHugvex-CjuFIYLC.js +0 -16
- package/dist/TZ-RbwBgiwb-DN4WP_pA.js +0 -16
- package/dist/TopSellingProductsContent-B4dMSJOf.js +0 -80
- package/dist/UA-BiXHPMqV-D9Q0BnEU.js +0 -16
- package/dist/UG--it_LhSj-DVs7EoOP.js +0 -16
- package/dist/UM-BFcTdeDD-C2lQ620l.js +0 -16
- package/dist/US-BFcTdeDD-C2lQ620l.js +0 -16
- package/dist/UY-C26Ndi4P-BjClgfOW.js +0 -16
- package/dist/UZ-BK5ADwFW-DELXMWtL.js +0 -16
- package/dist/UserIndicationsPage-D5biAnZg.js +0 -723
- package/dist/VA-Cpq1n4yW-BexKS0bf.js +0 -16
- package/dist/VC-D1Fjbog5-BW8vaqSu.js +0 -16
- package/dist/VE-CeM-hea7-DZOWIOL5.js +0 -16
- package/dist/VG-qhjKl9TO-WsxCZhFN.js +0 -16
- package/dist/VI-C-kcu42_-DT17Uhx1.js +0 -16
- package/dist/VN-2yoryeK1-DeZyduWc.js +0 -16
- package/dist/VU-CkLlsgzP-DEOXeeOV.js +0 -16
- package/dist/WF-BDa53dEz-CXGhtx-6.js +0 -16
- package/dist/WS-CNi2O6Qm-CRGlGEFW.js +0 -16
- package/dist/WithdrawAdvance-Dqgu7kEr.js +0 -17
- package/dist/WithdrawBankAccountStore-CG3n2xu4.js +0 -283
- package/dist/WithdrawBlocked-CYHm42m2.js +0 -133
- package/dist/WithdrawCompanyStore-Ce2bG9Yf.js +0 -80
- package/dist/WithdrawGuaranteeExtract-DANbCSJl.js +0 -994
- package/dist/WithdrawHome-CYfRTuDN.js +0 -1843
- package/dist/WithdrawHome-N7nxIpRo.js +0 -2448
- package/dist/WithdrawInternational-CCGb0go1.js +0 -17
- package/dist/WithdrawMaxStore-Dwa--YNG.js +0 -772
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-CngvT-dM.js +0 -530
- package/dist/WithdrawNoAccountWarning-Bh2JLj6D.js +0 -233
- package/dist/WithdrawPermissionGuard-ByGCCs5c.js +0 -338
- package/dist/WithdrawRequest-DT2sn05r.js +0 -944
- package/dist/WithdrawRequest-DY_JlRRv.js +0 -17
- package/dist/WithdrawRequestDetail-B6aA7mvt.js +0 -284
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-BMgmOd3V.js +0 -936
- package/dist/YE-DxPZysMs-hp44jVzE.js +0 -16
- package/dist/YT-BMJJ1U_T--VLywbnY.js +0 -16
- package/dist/ZA-BjQXS8mc-jYojguAB.js +0 -16
- package/dist/ZM-Dw0PmMTO-DxJT8_H6.js +0 -16
- package/dist/ZW-D0UStZMr-CdsJJWqf.js +0 -16
- package/dist/affiliate-Bgt9fadK-DVa1p2Ax.js +0 -22
- package/dist/amex-CvNwRHhS-D7QA0ot0.js +0 -16
- package/dist/api-BXmQVd1G.js +0 -11
- package/dist/apple_pay-DtsAzVjF-B7P96imw.js +0 -20
- package/dist/archive-CFoPOir7-BqaAZDzV.js +0 -18
- package/dist/aura-D1VyKb6w-Dh2s6DM6.js +0 -23
- package/dist/boleto-BQZRi0Q5-Uqd1V5oX.js +0 -18
- package/dist/box-DNrK38w2-BPc8uAtv.js +0 -20
- package/dist/cart-p5jccB8o-Dk4jWhkE.js +0 -15
- package/dist/cash-FZcelZV1-BbEVmp6V.js +0 -20
- package/dist/chart-YJ27XOr3-_WmeeRjk.js +0 -22
- package/dist/chat.page-SnZZL-fu.js +0 -424
- package/dist/credit_card-CGrPYCJP-Dv3LRPJa.js +0 -15
- package/dist/csv-CYa6aPS5-r3Sm58wj.js +0 -18
- package/dist/dayjs.min-Da92Laf1.js +0 -282
- package/dist/diners-CN_1suUM-ByIzOVLB.js +0 -26
- package/dist/discover-vVTOFEvv-kW1bABpz.js +0 -22
- package/dist/ds-appmax-v322-DKdELPv0.js +0 -52
- package/dist/ds-appmax-v327-D_Ngcqh7.js +0 -69
- package/dist/ds-appmax-v330-BSYYSV8c.js +0 -48
- package/dist/ds-appmax-v335-DlWYejCt.js +0 -278
- package/dist/elo-BaNbqhYS-BL5vqnG1.js +0 -15
- package/dist/gear-BHOWpd7b-BXY-eNB8.js +0 -18
- package/dist/grid-B7I0mWry-6Fw-n1cc.js +0 -18
- package/dist/hipercard-DBsszwxC-CxTNMODi.js +0 -22
- package/dist/index-0erj0q9D.js +0 -106
- package/dist/index-5IxPxMNJ.js +0 -721
- package/dist/index-6YMHy5G2.js +0 -117
- package/dist/index-9BO81TgH.js +0 -200
- package/dist/index-B9ST15pA.js +0 -219
- package/dist/index-BA4Xl2x9.js +0 -21
- package/dist/index-BJqiiqE8.js +0 -18
- package/dist/index-BQAOXvOU.js +0 -409
- package/dist/index-BlfKgrZo.js +0 -681
- package/dist/index-BnJQRIjy.js +0 -1567
- package/dist/index-BwWFp7ZG.js +0 -83
- package/dist/index-CI3ydT1C.js +0 -62
- package/dist/index-CLX_IUEF.js +0 -332
- package/dist/index-CQBs9Ilw.js +0 -219
- package/dist/index-CuIL96-m.js +0 -230
- package/dist/index-CxvFaCZh.js +0 -1790
- package/dist/index-D079H_tW.js +0 -67
- package/dist/index-D8vz1ACh.js +0 -1204
- package/dist/index-DEQ5vo-Z.js +0 -169
- package/dist/index-DPZR8RXN.js +0 -11
- package/dist/index-DWqYaXlT.js +0 -92
- package/dist/index-D_ZU71du.js +0 -217
- package/dist/index-DrC8NJmf.js +0 -11240
- package/dist/index-FoTemvuc.js +0 -35
- package/dist/index-VHrwEDUR.js +0 -4133
- package/dist/index-VethgG0j.js +0 -21
- package/dist/index-WGpB5fbm.js +0 -534
- package/dist/index-Zc4sTzsf.js +0 -275
- package/dist/index-v9F6Flhh.js +0 -776
- package/dist/index.page-BNy_Hhbx.js +0 -165
- package/dist/index.page-CpvA2mnU.js +0 -737
- package/dist/index.page-DibEmry6.js +0 -827
- package/dist/infos-8KGPLXoE-CIlMJOwI.js +0 -18
- package/dist/integrations-UOltVEyj-BJ_hoiYF.js +0 -19
- package/dist/logs-Ce3fZY0v-BnG_9gF8.js +0 -28
- package/dist/maestro-BMomgHxO-DQUi6dYg.js +0 -27
- package/dist/main-B6czt4K3.js +0 -106858
- package/dist/mastercard-5I-dcOVV-dTf8yRon.js +0 -30
- package/dist/max_brand-Crj-SFUw-BxyRxraT.js +0 -29
- package/dist/max_brand_active-BIkS5qkP-DrWBa4Uz.js +0 -27
- package/dist/max_brand_negative-BxvdIegN-BIpVXAwH.js +0 -30
- package/dist/max_brand_white-DdKi2YVX-07zrB9Wd.js +0 -29
- package/dist/menu.page-C1f1VZ8V.js +0 -274
- package/dist/money-DZpB5eTf-D6BDmOZ7.js +0 -19
- package/dist/notification-DMezLtAj-DztcvB1_.js +0 -18
- package/dist/paypal-DMYjfEw0-D9u0bFsI.js +0 -15
- package/dist/pix-DXdX91yj-B8magsA0.js +0 -22
- package/dist/pix_outline-D_xXXgCN-D0MAR0H3.js +0 -16
- package/dist/pix_white-CcVsnEF2-y3M5kTGL.js +0 -24
- package/dist/pusher-Ctw2IJ_B.js +0 -4010
- package/dist/shield-DS-Xf4WH-CBSNQhR3.js +0 -15
- package/dist/solid_help-DNaqfgoc-D_TryZm4.js +0 -20
- package/dist/solid_home-BDUiJDVY-mXhot9z0.js +0 -18
- package/dist/solid_leaderboard-DtqK7q9Y-Di6Yx0Sk.js +0 -18
- package/dist/solid_store-Cfv6o4b8-BWBVlfl_.js +0 -18
- package/dist/ticket_icon-DwvyLm7c-Cql3ePbM.js +0 -22
- package/dist/usePendingMessage-B3Zd8A-q.js +0 -191
- package/dist/useQueryFilter-Co3MS7ew.js +0 -93
- package/dist/useRecurringTable-DjuqnEEK.js +0 -160
- package/dist/user-BRpwqYx8-rhpaCbxY.js +0 -18
- package/dist/validateURL.helper-CYNyNkTD.js +0 -126
- package/dist/visa-tPjWcMbi-BnoQ5R40.js +0 -18
|
@@ -0,0 +1,1843 @@
|
|
|
1
|
+
import { _ as _export_sfc, u as useI18n, a as useToast, s as storeToRefs, b as useRoute, c as useRouter, r as ref, d as useBreakpoint, e as computed, o as onMounted, f as onBeforeUnmount, g as createElementBlock, h as openBlock, i as createVNode, w as withCtx, j as createBaseVNode, k as createCommentVNode, l as unref, y, m as createTextVNode, t as toDisplayString, n as normalizeClass, P, F as Fragment, p as renderList, $, B as BANK_ACCOUNT_ROUTE_NAMES, q as createBlock, v as formatMoney, x as reactive, z as watch, A as w, C as normalizeProps, D as mergeProps, E as ApiService, G as f, H as withModifiers, I as script$2, J as P$1, R, K as script$3, L as nextTick, M as onBeforeMount } from "./main-B2MCvgMD.js";
|
|
2
|
+
import { E as EMPTY_VALUE$1 } from "./constants-DyV6VktQ.js";
|
|
3
|
+
import { u as useAnticipationStore, W as WithdrawWarning, _ as _sfc_main$d } from "./WithdrawNoAccountWarning-CWEPATpz.js";
|
|
4
|
+
import { A as AmSkeleton } from "./AmSkeleton-D3lwqjae.js";
|
|
5
|
+
import { A as AmOutlineCard } from "./AmOutlineCard-BPkPZW4i.js";
|
|
6
|
+
import { s as script$6, a as script$7, b as script$a } from "./index-DtMp4pBF.js";
|
|
7
|
+
import { s as script$8 } from "./index-jIS4ivdd.js";
|
|
8
|
+
import { s as script$9 } from "./index-c5y6NpG3.js";
|
|
9
|
+
import { s as script, a as script$1, b as script$5 } from "./index-CRPIzPvI.js";
|
|
10
|
+
import { _ as _sfc_main$b } from "./AmLayoutFeedbackState-ClPW1p3a.js";
|
|
11
|
+
import { s as script$4 } from "./index-CH5dTSvu.js";
|
|
12
|
+
import { S as StatusDescriptionModal } from "./StatusDescriptionModal-OEBHl2pa.js";
|
|
13
|
+
import { _ as _sfc_main$c } from "./WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-C17v5RK3.js";
|
|
14
|
+
import { A as AmCardV3 } from "./AmCardV3-BLr7Srwb.js";
|
|
15
|
+
const _hoisted_1$8 = { class: "withdraw-home-account__main__title" };
|
|
16
|
+
const _hoisted_2$8 = { class: "withdraw-home-account__main__content" };
|
|
17
|
+
const _hoisted_3$6 = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "account-dropdown"
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_4$5 = ["onClick"];
|
|
22
|
+
const isWithdrawV2 = 0;
|
|
23
|
+
const _sfc_main$a = {
|
|
24
|
+
__name: "WithdrawHomeAccount",
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const { t } = useI18n();
|
|
27
|
+
const toast = useToast();
|
|
28
|
+
const store = useAnticipationStore();
|
|
29
|
+
const { companyId } = storeToRefs(store);
|
|
30
|
+
const route = useRoute();
|
|
31
|
+
const router = useRouter();
|
|
32
|
+
const findCompany = (companies2 = []) => {
|
|
33
|
+
const [firstCompany] = companies2;
|
|
34
|
+
const id = Number(route.query.companyId) || companyId.value;
|
|
35
|
+
if (!id) return firstCompany;
|
|
36
|
+
const targetCompany = companies2.find((item) => item.id === id);
|
|
37
|
+
return targetCompany || firstCompany;
|
|
38
|
+
};
|
|
39
|
+
const showDropdown = ref(false);
|
|
40
|
+
const isLoading = ref(true);
|
|
41
|
+
const company = ref({
|
|
42
|
+
name: EMPTY_VALUE$1,
|
|
43
|
+
account: EMPTY_VALUE$1,
|
|
44
|
+
type: EMPTY_VALUE$1,
|
|
45
|
+
documentNumber: EMPTY_VALUE$1,
|
|
46
|
+
id: null,
|
|
47
|
+
bankAccountId: null
|
|
48
|
+
});
|
|
49
|
+
const companies = ref([]);
|
|
50
|
+
const WithdrawHomeAccount2 = ref(null);
|
|
51
|
+
const { getUserCompanies, setSelectedCompany } = useAnticipationStore();
|
|
52
|
+
useBreakpoint("mobile");
|
|
53
|
+
const hasMoreCompanies = computed(() => Object.keys(companies.value).length > 1);
|
|
54
|
+
const closeDropdown = () => {
|
|
55
|
+
showDropdown.value = false;
|
|
56
|
+
};
|
|
57
|
+
const handleClickOutside = (e) => {
|
|
58
|
+
if (!WithdrawHomeAccount2.value.contains(e.target)) closeDropdown();
|
|
59
|
+
};
|
|
60
|
+
const openDropdown = () => {
|
|
61
|
+
if (!hasMoreCompanies.value) return;
|
|
62
|
+
showDropdown.value = !showDropdown.value;
|
|
63
|
+
};
|
|
64
|
+
const setCompany = async (item) => {
|
|
65
|
+
if (item.anticipation_type === isWithdrawV2) {
|
|
66
|
+
router.push({ name: "withdraw.index", query: { companyId: item.id } });
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
company.value.name = item.name || EMPTY_VALUE$1;
|
|
70
|
+
company.value.account = item.pix_key || EMPTY_VALUE$1;
|
|
71
|
+
company.value.type = item.pix_key_type || EMPTY_VALUE$1;
|
|
72
|
+
company.value.documentNumber = item.document_number || EMPTY_VALUE$1;
|
|
73
|
+
company.value.id = item.id;
|
|
74
|
+
company.value.bankAccountId = item.bank_account_id;
|
|
75
|
+
setSelectedCompany(company.value);
|
|
76
|
+
closeDropdown();
|
|
77
|
+
};
|
|
78
|
+
const redirectToAccountsPage = () => {
|
|
79
|
+
return router.push({ name: BANK_ACCOUNT_ROUTE_NAMES.HOME });
|
|
80
|
+
};
|
|
81
|
+
const getUserCompaniesList = async () => {
|
|
82
|
+
try {
|
|
83
|
+
isLoading.value = true;
|
|
84
|
+
companies.value = await getUserCompanies();
|
|
85
|
+
const currentCompany = findCompany(companies.value);
|
|
86
|
+
await setCompany(currentCompany);
|
|
87
|
+
} catch {
|
|
88
|
+
toast.error(t("withdraw.alertWarningTitle"), t("withdraw.alertWarningDescription"));
|
|
89
|
+
} finally {
|
|
90
|
+
isLoading.value = false;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
onMounted(() => {
|
|
94
|
+
getUserCompaniesList();
|
|
95
|
+
document.addEventListener("click", handleClickOutside);
|
|
96
|
+
});
|
|
97
|
+
onBeforeUnmount(() => {
|
|
98
|
+
document.removeEventListener("click", handleClickOutside);
|
|
99
|
+
});
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
return openBlock(), createElementBlock("div", {
|
|
102
|
+
ref_key: "WithdrawHomeAccount",
|
|
103
|
+
ref: WithdrawHomeAccount2,
|
|
104
|
+
class: "withdraw-home-account"
|
|
105
|
+
}, [
|
|
106
|
+
createVNode(AmOutlineCard, {
|
|
107
|
+
class: normalizeClass(["withdraw-home-account__main", {
|
|
108
|
+
"withdraw-home-account__main--has-companies": hasMoreCompanies.value
|
|
109
|
+
}]),
|
|
110
|
+
onClick: openDropdown
|
|
111
|
+
}, {
|
|
112
|
+
default: withCtx(() => [
|
|
113
|
+
createBaseVNode("div", _hoisted_1$8, [
|
|
114
|
+
createVNode(unref(y), null, {
|
|
115
|
+
default: withCtx(() => [
|
|
116
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.companySelected")), 1)
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}),
|
|
120
|
+
createVNode(AmSkeleton, {
|
|
121
|
+
"is-loading": isLoading.value,
|
|
122
|
+
class: "mt-1"
|
|
123
|
+
}, {
|
|
124
|
+
default: withCtx(() => [
|
|
125
|
+
createVNode(unref(y), {
|
|
126
|
+
variant: "subtitle",
|
|
127
|
+
size: "medium",
|
|
128
|
+
"is-strong": "",
|
|
129
|
+
"data-test": "withdrawv3-company-name-label"
|
|
130
|
+
}, {
|
|
131
|
+
default: withCtx(() => [
|
|
132
|
+
createTextVNode(toDisplayString(company.value.name), 1)
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
})
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["is-loading"])
|
|
139
|
+
]),
|
|
140
|
+
createBaseVNode("div", _hoisted_2$8, [
|
|
141
|
+
createBaseVNode("div", null, [
|
|
142
|
+
createVNode(unref(y), null, {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.mainAccount")), 1)
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
createVNode(AmSkeleton, {
|
|
149
|
+
"is-loading": isLoading.value,
|
|
150
|
+
class: "mt-1"
|
|
151
|
+
}, {
|
|
152
|
+
default: withCtx(() => [
|
|
153
|
+
createVNode(unref(y), { "data-test": "withdrawv3-company-account-label" }, {
|
|
154
|
+
default: withCtx(() => [
|
|
155
|
+
createTextVNode(toDisplayString(company.value.account), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
})
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["is-loading"])
|
|
162
|
+
]),
|
|
163
|
+
createBaseVNode("div", null, [
|
|
164
|
+
createVNode(unref(y), null, {
|
|
165
|
+
default: withCtx(() => [
|
|
166
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.accountType")), 1)
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}),
|
|
170
|
+
createVNode(AmSkeleton, {
|
|
171
|
+
"is-loading": isLoading.value,
|
|
172
|
+
class: "mt-1"
|
|
173
|
+
}, {
|
|
174
|
+
default: withCtx(() => [
|
|
175
|
+
createVNode(unref(y), { "data-test": "withdrawv3-company-type-label" }, {
|
|
176
|
+
default: withCtx(() => [
|
|
177
|
+
createTextVNode(toDisplayString(company.value.type), 1)
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["is-loading"])
|
|
184
|
+
]),
|
|
185
|
+
createBaseVNode("div", null, [
|
|
186
|
+
createVNode(unref(y), null, {
|
|
187
|
+
default: withCtx(() => [
|
|
188
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.documentNumberCNPJ")), 1)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
createVNode(AmSkeleton, {
|
|
193
|
+
"is-loading": isLoading.value,
|
|
194
|
+
class: "mt-1"
|
|
195
|
+
}, {
|
|
196
|
+
default: withCtx(() => [
|
|
197
|
+
createVNode(unref(y), { "data-test": "withdrawv3-document-number-label" }, {
|
|
198
|
+
default: withCtx(() => [
|
|
199
|
+
createTextVNode(toDisplayString(company.value.documentNumber), 1)
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
})
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["is-loading"])
|
|
206
|
+
])
|
|
207
|
+
]),
|
|
208
|
+
hasMoreCompanies.value ? (openBlock(), createElementBlock("button", {
|
|
209
|
+
key: 0,
|
|
210
|
+
class: normalizeClass(["withdraw-home-account__dropdown-trigger", {
|
|
211
|
+
"withdraw-home-account__dropdown-trigger--is-active": showDropdown.value
|
|
212
|
+
}]),
|
|
213
|
+
"data-test": "toggle-more-accounts-dropdown"
|
|
214
|
+
}, [
|
|
215
|
+
createVNode(unref(P), {
|
|
216
|
+
icon: "expand_more",
|
|
217
|
+
variant: "material"
|
|
218
|
+
})
|
|
219
|
+
], 2)) : createCommentVNode("", true),
|
|
220
|
+
showDropdown.value ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
221
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(companies.value, (item, key) => {
|
|
222
|
+
return openBlock(), createElementBlock("div", {
|
|
223
|
+
key,
|
|
224
|
+
class: "account-dropdown__item",
|
|
225
|
+
onClick: ($event) => setCompany(item)
|
|
226
|
+
}, [
|
|
227
|
+
createVNode(unref(y), null, {
|
|
228
|
+
default: withCtx(() => [
|
|
229
|
+
createTextVNode(toDisplayString(item.name), 1)
|
|
230
|
+
]),
|
|
231
|
+
_: 2
|
|
232
|
+
}, 1024),
|
|
233
|
+
createBaseVNode("div", null, [
|
|
234
|
+
createVNode(unref(y), null, {
|
|
235
|
+
default: withCtx(() => [
|
|
236
|
+
createTextVNode(toDisplayString(item.pix_key_type), 1)
|
|
237
|
+
]),
|
|
238
|
+
_: 2
|
|
239
|
+
}, 1024),
|
|
240
|
+
createVNode(unref(y), null, {
|
|
241
|
+
default: withCtx(() => [
|
|
242
|
+
createTextVNode(toDisplayString(item.document_number), 1)
|
|
243
|
+
]),
|
|
244
|
+
_: 2
|
|
245
|
+
}, 1024)
|
|
246
|
+
])
|
|
247
|
+
], 8, _hoisted_4$5);
|
|
248
|
+
}), 128))
|
|
249
|
+
])) : createCommentVNode("", true)
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["class"]),
|
|
253
|
+
createVNode(AmOutlineCard, { class: "withdraw-home-account__button" }, {
|
|
254
|
+
default: withCtx(() => [
|
|
255
|
+
createVNode(unref($), {
|
|
256
|
+
outlined: "",
|
|
257
|
+
size: "small",
|
|
258
|
+
label: unref(t)("withdraw.bankAccounts"),
|
|
259
|
+
class: "w-full md:w-fit min-w-[140px]",
|
|
260
|
+
"data-test": "withdrawv3-accounts-button",
|
|
261
|
+
onClick: redirectToAccountsPage
|
|
262
|
+
}, null, 8, ["label"])
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
})
|
|
266
|
+
], 512);
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const WithdrawHomeAccount = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-4c8ce76a"]]);
|
|
271
|
+
const _hoisted_1$7 = { class: "withdraw-available__group" };
|
|
272
|
+
const _hoisted_2$7 = { class: "withdraw-available__group" };
|
|
273
|
+
const _hoisted_3$5 = { class: "withdraw-available__button" };
|
|
274
|
+
const _sfc_main$9 = {
|
|
275
|
+
__name: "WithdrawHomeAvailable",
|
|
276
|
+
props: {
|
|
277
|
+
isDisabled: { type: Boolean, default: false },
|
|
278
|
+
disabledInfo: { type: String, default: void 0 }
|
|
279
|
+
},
|
|
280
|
+
setup(__props) {
|
|
281
|
+
const toast = useToast();
|
|
282
|
+
const { t } = useI18n();
|
|
283
|
+
const router = useRouter();
|
|
284
|
+
const {
|
|
285
|
+
companyId,
|
|
286
|
+
getAvailableWithdraw,
|
|
287
|
+
getAnticipationValue,
|
|
288
|
+
getWithdrawLoading,
|
|
289
|
+
getAnticipationLoading,
|
|
290
|
+
getReloadButton,
|
|
291
|
+
getReloadAnticipationButton
|
|
292
|
+
} = storeToRefs(useAnticipationStore());
|
|
293
|
+
const { getAvailableFunds, getReleaseFunds } = useAnticipationStore();
|
|
294
|
+
const props = __props;
|
|
295
|
+
const labelStyle = computed(() => ({
|
|
296
|
+
type: "l6",
|
|
297
|
+
withdrawType: "l5",
|
|
298
|
+
withdrawTypeValor: "l1",
|
|
299
|
+
typeWithdraw: "l2",
|
|
300
|
+
weight: "regular",
|
|
301
|
+
weightWithdraw: "bold"
|
|
302
|
+
}));
|
|
303
|
+
const hasValueToRequest = computed(() => {
|
|
304
|
+
const availableAmount = getAvailableWithdraw.value || 0;
|
|
305
|
+
const antecipationAmount = getAnticipationValue.value || 0;
|
|
306
|
+
const totalAmount = availableAmount + antecipationAmount;
|
|
307
|
+
return totalAmount > 0;
|
|
308
|
+
});
|
|
309
|
+
const isWithdrawActive = ref(localStorage.getItem("isWithdrawActive") === "true");
|
|
310
|
+
const hasValidAnticipationValue = computed(
|
|
311
|
+
() => getAnticipationValue.value !== "" && getAnticipationValue.value !== null
|
|
312
|
+
);
|
|
313
|
+
const isAnticipationLoading = computed(
|
|
314
|
+
() => getAnticipationLoading.value || !hasValidAnticipationValue.value
|
|
315
|
+
);
|
|
316
|
+
const updateWithdrawActive = () => {
|
|
317
|
+
isWithdrawActive.value = localStorage.getItem("isWithdrawActive") === "true";
|
|
318
|
+
};
|
|
319
|
+
let intervalId = null;
|
|
320
|
+
onMounted(() => {
|
|
321
|
+
intervalId = setInterval(updateWithdrawActive, 500);
|
|
322
|
+
});
|
|
323
|
+
onBeforeUnmount(() => {
|
|
324
|
+
if (intervalId) {
|
|
325
|
+
clearInterval(intervalId);
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
const toWithdrawDisabledButton = computed(() => {
|
|
329
|
+
return props.isDisabled || !hasValueToRequest.value || getWithdrawLoading.value || getReloadButton.value || getAnticipationLoading.value || getReloadAnticipationButton.value || isWithdrawActive.value;
|
|
330
|
+
});
|
|
331
|
+
const toWithdrawRequest = () => {
|
|
332
|
+
if (toWithdrawDisabledButton.value) return;
|
|
333
|
+
router.push({
|
|
334
|
+
path: "/v2/client/integration/antecipacao/saque",
|
|
335
|
+
query: { companyId: companyId.value }
|
|
336
|
+
});
|
|
337
|
+
};
|
|
338
|
+
const handleButtonClick = (event) => {
|
|
339
|
+
const isWithdrawActiveFlag = localStorage.getItem("isWithdrawActive") === "true";
|
|
340
|
+
if (isWithdrawActiveFlag) {
|
|
341
|
+
toast.warning(
|
|
342
|
+
t("withdraw.alertWarningTitle"),
|
|
343
|
+
t("withdraw.alertWarningDoublePageWithdraw")
|
|
344
|
+
);
|
|
345
|
+
event.preventDefault();
|
|
346
|
+
event.stopPropagation();
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
if (toWithdrawDisabledButton.value) {
|
|
350
|
+
event.preventDefault();
|
|
351
|
+
event.stopPropagation();
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
toWithdrawRequest();
|
|
355
|
+
};
|
|
356
|
+
const parseMoney = (value) => {
|
|
357
|
+
if (typeof value !== "number") return EMPTY_VALUE$1;
|
|
358
|
+
return formatMoney(value);
|
|
359
|
+
};
|
|
360
|
+
const getReloadAvailableWithdraw = async () => {
|
|
361
|
+
const { error } = await getAvailableFunds({
|
|
362
|
+
companyId: companyId.value
|
|
363
|
+
});
|
|
364
|
+
if (error) {
|
|
365
|
+
toast.warning(
|
|
366
|
+
t("withdraw.alertWarningTitle"),
|
|
367
|
+
t("withdraw.alertWarningDescription")
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
const getReloadAnticipation = () => getReleaseFunds({ companyId: companyId.value });
|
|
372
|
+
return (_ctx, _cache) => {
|
|
373
|
+
return openBlock(), createBlock(AmOutlineCard, { class: "withdraw-available" }, {
|
|
374
|
+
default: withCtx(() => [
|
|
375
|
+
createBaseVNode("div", _hoisted_1$7, [
|
|
376
|
+
createVNode(unref(y), {
|
|
377
|
+
"text-color": "text80",
|
|
378
|
+
class: "mb-1",
|
|
379
|
+
"typography-style": labelStyle.value.type,
|
|
380
|
+
weight: labelStyle.value.weight
|
|
381
|
+
}, {
|
|
382
|
+
default: withCtx(() => [
|
|
383
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.balanceAvailable")), 1)
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
}, 8, ["typography-style", "weight"]),
|
|
387
|
+
createVNode(AmSkeleton, {
|
|
388
|
+
"is-loading": unref(getAnticipationLoading),
|
|
389
|
+
width: 180
|
|
390
|
+
}, {
|
|
391
|
+
default: withCtx(() => [
|
|
392
|
+
unref(getReloadButton) ? (openBlock(), createBlock(unref($), {
|
|
393
|
+
key: 0,
|
|
394
|
+
label: unref(t)("withdraw.reloadButton"),
|
|
395
|
+
size: "small",
|
|
396
|
+
class: "w-full",
|
|
397
|
+
"data-test": "withdrawv3-reload-button",
|
|
398
|
+
icon: "refresh",
|
|
399
|
+
onClick: _cache[0] || (_cache[0] = ($event) => getReloadAvailableWithdraw())
|
|
400
|
+
}, null, 8, ["label"])) : (openBlock(), createBlock(unref(y), {
|
|
401
|
+
key: 1,
|
|
402
|
+
"text-color": "text100",
|
|
403
|
+
variant: "title",
|
|
404
|
+
size: "medium",
|
|
405
|
+
"is-strong": "",
|
|
406
|
+
"data-test": "withdrawv3-request-label"
|
|
407
|
+
}, {
|
|
408
|
+
default: withCtx(() => [
|
|
409
|
+
createTextVNode(toDisplayString(parseMoney(unref(getAvailableWithdraw))), 1)
|
|
410
|
+
]),
|
|
411
|
+
_: 1
|
|
412
|
+
}))
|
|
413
|
+
]),
|
|
414
|
+
_: 1
|
|
415
|
+
}, 8, ["is-loading"])
|
|
416
|
+
]),
|
|
417
|
+
_cache[2] || (_cache[2] = createBaseVNode("hr", { class: "withdraw-available__divider" }, null, -1)),
|
|
418
|
+
createBaseVNode("div", _hoisted_2$7, [
|
|
419
|
+
createVNode(unref(y), {
|
|
420
|
+
"text-color": "text80",
|
|
421
|
+
class: "mb-1"
|
|
422
|
+
}, {
|
|
423
|
+
default: withCtx(() => [
|
|
424
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.valueToBeAnticipated")), 1)
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
}),
|
|
428
|
+
createVNode(AmSkeleton, {
|
|
429
|
+
"is-loading": isAnticipationLoading.value,
|
|
430
|
+
width: 180
|
|
431
|
+
}, {
|
|
432
|
+
default: withCtx(() => [
|
|
433
|
+
unref(getReloadAnticipationButton) ? (openBlock(), createBlock(unref($), {
|
|
434
|
+
key: 0,
|
|
435
|
+
label: unref(t)("withdraw.reloadButton"),
|
|
436
|
+
class: "w-full",
|
|
437
|
+
size: "small",
|
|
438
|
+
"data-test": "withdrawv3-reload-anticipation-button",
|
|
439
|
+
icon: "refresh",
|
|
440
|
+
onClick: _cache[1] || (_cache[1] = ($event) => getReloadAnticipation())
|
|
441
|
+
}, null, 8, ["label"])) : (openBlock(), createBlock(unref(y), {
|
|
442
|
+
key: 1,
|
|
443
|
+
"text-color": "text100",
|
|
444
|
+
variant: "title",
|
|
445
|
+
size: "medium",
|
|
446
|
+
"is-strong": "",
|
|
447
|
+
"data-test": "withdrawv3-available-label"
|
|
448
|
+
}, {
|
|
449
|
+
default: withCtx(() => [
|
|
450
|
+
createTextVNode(toDisplayString(hasValidAnticipationValue.value ? parseMoney(unref(getAnticipationValue)) : ""), 1)
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
453
|
+
}))
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
}, 8, ["is-loading"])
|
|
457
|
+
]),
|
|
458
|
+
createBaseVNode("div", _hoisted_3$5, [
|
|
459
|
+
createBaseVNode("div", {
|
|
460
|
+
class: normalizeClass(["withdraw-available__button-overlay", toWithdrawDisabledButton.value ? "withdraw-available__button-overlay-disabled" : "withdraw-available__button-overlay-pointer"]),
|
|
461
|
+
onClick: handleButtonClick
|
|
462
|
+
}, [
|
|
463
|
+
createVNode(unref($), {
|
|
464
|
+
"data-test": "withdrawv3-request-button",
|
|
465
|
+
class: "w-full md:w-fit min-w-[100px]",
|
|
466
|
+
size: "small",
|
|
467
|
+
label: unref(t)("withdraw.toWithdraw"),
|
|
468
|
+
disabled: toWithdrawDisabledButton.value,
|
|
469
|
+
onClick: toWithdrawRequest
|
|
470
|
+
}, null, 8, ["label", "disabled"])
|
|
471
|
+
], 2)
|
|
472
|
+
])
|
|
473
|
+
]),
|
|
474
|
+
_: 1
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
const WithdrawHomeAvailable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-74f53fe5"]]);
|
|
480
|
+
const capitalize = (str = "") => str[0].toUpperCase() + str.substring(1);
|
|
481
|
+
const formatMonthYearDate = (date) => {
|
|
482
|
+
const [year, month] = date.split("-");
|
|
483
|
+
const newDate = /* @__PURE__ */ new Date(`${month}/01/${year}`);
|
|
484
|
+
const monthParser = new Intl.DateTimeFormat("pt-BR", { month: "long" });
|
|
485
|
+
const monthName = monthParser.format(newDate);
|
|
486
|
+
const monthCaptalized = capitalize(monthName);
|
|
487
|
+
return `${monthCaptalized} ${year}`;
|
|
488
|
+
};
|
|
489
|
+
const getMonthNameByIndex = (monthIndex = 0, locale = "pt-BR") => {
|
|
490
|
+
try {
|
|
491
|
+
if (monthIndex < 0 || monthIndex > 11) {
|
|
492
|
+
throw new Error("Índice de mês inválido");
|
|
493
|
+
}
|
|
494
|
+
const month = (monthIndex + 1).toString().padStart(2, "0");
|
|
495
|
+
const date = /* @__PURE__ */ new Date(`${month}/01/2024`);
|
|
496
|
+
const monthName = date.toLocaleDateString(locale, { month: "long" });
|
|
497
|
+
return capitalize(monthName);
|
|
498
|
+
} catch (error) {
|
|
499
|
+
throw new Error("Índice de mês inválido");
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
const formatDateValue = (date) => {
|
|
503
|
+
const [_, month, day] = date.split("-");
|
|
504
|
+
return `${day}/${month}`;
|
|
505
|
+
};
|
|
506
|
+
const getWeekdayName = (date) => {
|
|
507
|
+
const [year, month, day] = date.split("-");
|
|
508
|
+
const newDate = /* @__PURE__ */ new Date(`${month}/${day}/${year}`);
|
|
509
|
+
const weekdayParser = new Intl.DateTimeFormat("pt-BR", { weekday: "long" });
|
|
510
|
+
const weekdayName = weekdayParser.format(newDate);
|
|
511
|
+
return capitalize(weekdayName);
|
|
512
|
+
};
|
|
513
|
+
const dateToNumber = (value) => {
|
|
514
|
+
const [year, month] = value.split("-");
|
|
515
|
+
const normalizedMonth = month.padStart(2, "0");
|
|
516
|
+
return Number(`${year}${normalizedMonth}`);
|
|
517
|
+
};
|
|
518
|
+
const parseWithdrawReceivablesByMonth = ({ data }) => {
|
|
519
|
+
const result = {};
|
|
520
|
+
let totalamount = 0;
|
|
521
|
+
for (const item of data) {
|
|
522
|
+
const subTotalamount = Number(item.receivable_amount);
|
|
523
|
+
const receivableamount = Number(item.receivable_amount) + Number(item.anticipated_amount);
|
|
524
|
+
const key = dateToNumber(item.settlement);
|
|
525
|
+
result[key] = {
|
|
526
|
+
date: formatMonthYearDate(item.settlement),
|
|
527
|
+
receivable: formatMoney(receivableamount),
|
|
528
|
+
anticipated: formatMoney(item.anticipated_amount),
|
|
529
|
+
subtotal: formatMoney(subTotalamount)
|
|
530
|
+
};
|
|
531
|
+
totalamount += subTotalamount;
|
|
532
|
+
}
|
|
533
|
+
const total = formatMoney(totalamount);
|
|
534
|
+
return { result: Object.values(result), total };
|
|
535
|
+
};
|
|
536
|
+
const getCurrentDate = (offset = 0) => {
|
|
537
|
+
const currentDate = /* @__PURE__ */ new Date();
|
|
538
|
+
currentDate.setDate(currentDate.getDate() + offset);
|
|
539
|
+
const year = currentDate.getFullYear();
|
|
540
|
+
const month = String(currentDate.getMonth() + 1).padStart(2, "0");
|
|
541
|
+
const day = String(currentDate.getDate()).padStart(2, "0");
|
|
542
|
+
return `${year}-${month}-${day}`;
|
|
543
|
+
};
|
|
544
|
+
const parseIsoToDate = (isoDate = "") => new Date(isoDate.replace(/(\d{4})-(\d{2})-(\d{2})/, "$2/$3/$1"));
|
|
545
|
+
const parseWithdrawReceivablesByWeek = ({ data }) => {
|
|
546
|
+
const result = [];
|
|
547
|
+
const currentDate = /* @__PURE__ */ new Date();
|
|
548
|
+
currentDate.setHours(0, 0, 0, 0);
|
|
549
|
+
const currentTime = currentDate.getTime();
|
|
550
|
+
for (const item of data) {
|
|
551
|
+
const subTotalamount = Number(item.receivable_amount);
|
|
552
|
+
const receivableamount = Number(item.receivable_amount) + Number(item.anticipated_amount);
|
|
553
|
+
const itemTime = parseIsoToDate(item.settlement).getTime();
|
|
554
|
+
const isActive = currentTime <= itemTime;
|
|
555
|
+
result.push({
|
|
556
|
+
date: formatDateValue(item.settlement),
|
|
557
|
+
weekday: getWeekdayName(item.settlement),
|
|
558
|
+
receivable: formatMoney(receivableamount),
|
|
559
|
+
anticipated: formatMoney(item.anticipated_amount),
|
|
560
|
+
subtotal: formatMoney(subTotalamount),
|
|
561
|
+
isActive
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
return { result };
|
|
565
|
+
};
|
|
566
|
+
const _hoisted_1$6 = { class: "future-acquisitions" };
|
|
567
|
+
const _hoisted_2$6 = { key: 3 };
|
|
568
|
+
const _hoisted_3$4 = {
|
|
569
|
+
key: 1,
|
|
570
|
+
class: "future-acquisitions__mobile-table"
|
|
571
|
+
};
|
|
572
|
+
const _hoisted_4$4 = { class: "future-acquisitions__mobile-period" };
|
|
573
|
+
const _hoisted_5$4 = { class: "future-acquisitions__mobile-value" };
|
|
574
|
+
const _hoisted_6$3 = { class: "future-acquisitions__mobile-details" };
|
|
575
|
+
const _hoisted_7$3 = {
|
|
576
|
+
key: 2,
|
|
577
|
+
class: "future-acquisitions__footer"
|
|
578
|
+
};
|
|
579
|
+
const _sfc_main$8 = {
|
|
580
|
+
__name: "FutureAcquisitionsByMonth",
|
|
581
|
+
setup(__props) {
|
|
582
|
+
const { t } = useI18n();
|
|
583
|
+
const store = useAnticipationStore();
|
|
584
|
+
const { companyId } = storeToRefs(store);
|
|
585
|
+
const isLoading = ref(true);
|
|
586
|
+
const error = ref(false);
|
|
587
|
+
const total = ref("");
|
|
588
|
+
const result = ref([]);
|
|
589
|
+
const totalLabel = t("withdraw.futureAcquisitions.label.total");
|
|
590
|
+
const isEmpty = computed(() => {
|
|
591
|
+
var _a;
|
|
592
|
+
return ((_a = result.value) == null ? void 0 : _a.length) === 0;
|
|
593
|
+
});
|
|
594
|
+
const isMobileSize = useBreakpoint("mobile");
|
|
595
|
+
const feedbackError = reactive({
|
|
596
|
+
iconName: "refresh",
|
|
597
|
+
title: t("withdraw.errorDataLoading"),
|
|
598
|
+
text: t("withdraw.errorRefreshLoading")
|
|
599
|
+
});
|
|
600
|
+
const feedbackNotFound = reactive({
|
|
601
|
+
iconName: "folder",
|
|
602
|
+
title: t("withdraw.notFoundData"),
|
|
603
|
+
text: ""
|
|
604
|
+
});
|
|
605
|
+
const columns = [
|
|
606
|
+
{
|
|
607
|
+
key: "date",
|
|
608
|
+
title: t("withdraw.futureAcquisitions.label.period"),
|
|
609
|
+
sortable: false
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
key: "receivable",
|
|
613
|
+
title: t("withdraw.futureAcquisitions.label.receivable"),
|
|
614
|
+
sortable: false,
|
|
615
|
+
align: "end"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
key: "anticipated",
|
|
619
|
+
title: t("withdraw.futureAcquisitions.label.anticipated"),
|
|
620
|
+
sortable: false,
|
|
621
|
+
align: "end"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
key: "subtotal",
|
|
625
|
+
title: t("withdraw.futureAcquisitions.label.subtotal"),
|
|
626
|
+
sortable: false,
|
|
627
|
+
align: "end"
|
|
628
|
+
}
|
|
629
|
+
];
|
|
630
|
+
const getData = async () => {
|
|
631
|
+
isLoading.value = true;
|
|
632
|
+
error.value = false;
|
|
633
|
+
try {
|
|
634
|
+
const route = `/withdraw/v3/statement/receivables/monthly?company_id=${companyId.value}`;
|
|
635
|
+
const response = await ApiService.get(route);
|
|
636
|
+
const data = parseWithdrawReceivablesByMonth(response);
|
|
637
|
+
result.value = data.result.map((item) => ({
|
|
638
|
+
...item,
|
|
639
|
+
item: {
|
|
640
|
+
id: 1,
|
|
641
|
+
title: {
|
|
642
|
+
text: item.date,
|
|
643
|
+
textColor: "text80"
|
|
644
|
+
},
|
|
645
|
+
subTitle: {
|
|
646
|
+
text: item.subtotal,
|
|
647
|
+
weight: "medium",
|
|
648
|
+
typographyStyle: "l5"
|
|
649
|
+
},
|
|
650
|
+
description: {
|
|
651
|
+
text: `${t("withdraw.futureAcquisitions.label.receivable")}: ${item.receivable} | ${t(
|
|
652
|
+
"withdraw.futureAcquisitions.label.anticipated"
|
|
653
|
+
)}: ${item.anticipated}`,
|
|
654
|
+
weight: "normal",
|
|
655
|
+
textColor: "text80",
|
|
656
|
+
typographyStyle: "l6"
|
|
657
|
+
},
|
|
658
|
+
status: {},
|
|
659
|
+
action: {}
|
|
660
|
+
}
|
|
661
|
+
}));
|
|
662
|
+
total.value = data.total;
|
|
663
|
+
} catch {
|
|
664
|
+
error.value = true;
|
|
665
|
+
} finally {
|
|
666
|
+
isLoading.value = false;
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
watch(() => companyId, getData);
|
|
670
|
+
onMounted(() => {
|
|
671
|
+
if (companyId) getData();
|
|
672
|
+
});
|
|
673
|
+
return (_ctx, _cache) => {
|
|
674
|
+
return openBlock(), createElementBlock("section", _hoisted_1$6, [
|
|
675
|
+
isLoading.value ? (openBlock(), createBlock(unref(w), {
|
|
676
|
+
key: 0,
|
|
677
|
+
class: "future-acquisitions__loading",
|
|
678
|
+
loadingType: "spinner",
|
|
679
|
+
isLoading: ""
|
|
680
|
+
})) : error.value ? (openBlock(), createBlock(_sfc_main$b, normalizeProps(mergeProps({ key: 1 }, feedbackError)), null, 16)) : isEmpty.value ? (openBlock(), createBlock(_sfc_main$b, normalizeProps(mergeProps({ key: 2 }, feedbackNotFound)), null, 16)) : (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
681
|
+
!unref(isMobileSize) ? (openBlock(), createBlock(unref(script$1), {
|
|
682
|
+
key: 0,
|
|
683
|
+
value: result.value
|
|
684
|
+
}, {
|
|
685
|
+
default: withCtx(() => [
|
|
686
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(columns, (col) => {
|
|
687
|
+
return createVNode(unref(script), {
|
|
688
|
+
key: col.key,
|
|
689
|
+
field: col.key,
|
|
690
|
+
header: col.title
|
|
691
|
+
}, null, 8, ["field", "header"]);
|
|
692
|
+
}), 64))
|
|
693
|
+
]),
|
|
694
|
+
_: 1
|
|
695
|
+
}, 8, ["value"])) : createCommentVNode("", true),
|
|
696
|
+
unref(isMobileSize) ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
697
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(result.value, (item) => {
|
|
698
|
+
return openBlock(), createElementBlock("div", {
|
|
699
|
+
key: item.date,
|
|
700
|
+
class: "future-acquisitions__mobile-row"
|
|
701
|
+
}, [
|
|
702
|
+
createBaseVNode("div", _hoisted_4$4, toDisplayString(item.date), 1),
|
|
703
|
+
createBaseVNode("div", _hoisted_5$4, [
|
|
704
|
+
createBaseVNode("strong", null, toDisplayString(item.subtotal), 1)
|
|
705
|
+
]),
|
|
706
|
+
createBaseVNode("div", _hoisted_6$3, [
|
|
707
|
+
createTextVNode(toDisplayString(_ctx.$t("withdraw.futureAcquisitions.label.receivable")) + ": " + toDisplayString(item.receivable), 1),
|
|
708
|
+
_cache[0] || (_cache[0] = createBaseVNode("br", null, null, -1)),
|
|
709
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("withdraw.futureAcquisitions.label.anticipated")) + ": " + toDisplayString(item.anticipated), 1)
|
|
710
|
+
])
|
|
711
|
+
]);
|
|
712
|
+
}), 128))
|
|
713
|
+
])) : createCommentVNode("", true),
|
|
714
|
+
total.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
715
|
+
createVNode(unref(y), { isStrong: "" }, {
|
|
716
|
+
default: withCtx(() => [
|
|
717
|
+
createTextVNode(toDisplayString(unref(totalLabel)), 1)
|
|
718
|
+
]),
|
|
719
|
+
_: 1
|
|
720
|
+
}),
|
|
721
|
+
createVNode(unref(y), { isStrong: "" }, {
|
|
722
|
+
default: withCtx(() => [
|
|
723
|
+
createTextVNode(toDisplayString(total.value), 1)
|
|
724
|
+
]),
|
|
725
|
+
_: 1
|
|
726
|
+
})
|
|
727
|
+
])) : createCommentVNode("", true)
|
|
728
|
+
]))
|
|
729
|
+
]);
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
const FutureAcquisitionsByMonth = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-1d813856"]]);
|
|
734
|
+
const _hoisted_1$5 = { class: "am-financial-week-view" };
|
|
735
|
+
const _hoisted_2$5 = { class: "am-financial-week-view__container" };
|
|
736
|
+
const _hoisted_3$3 = { class: "am-financial-week-view__table" };
|
|
737
|
+
const _hoisted_4$3 = { class: "am-financial-week-view__thead" };
|
|
738
|
+
const _hoisted_5$3 = { class: "am-financial-week-view__cell hide-on-mobile" };
|
|
739
|
+
const _hoisted_6$2 = { class: "am-financial-week-view__inner-cell" };
|
|
740
|
+
const _hoisted_7$2 = { class: "hide-on-mobile" };
|
|
741
|
+
const _hoisted_8$2 = { class: "am-financial-week-view__inner-cell" };
|
|
742
|
+
const _hoisted_9$1 = { class: "hide-on-mobile" };
|
|
743
|
+
const _hoisted_10$1 = { class: "am-financial-week-view__tbody" };
|
|
744
|
+
const _hoisted_11$1 = { class: "am-financial-week-view__cell hide-on-mobile" };
|
|
745
|
+
const _hoisted_12$1 = { class: "am-financial-week-view__inner-cell" };
|
|
746
|
+
const _hoisted_13 = { class: "am-financial-week-view__inner-cell" };
|
|
747
|
+
const EMPTY_VALUE = "—";
|
|
748
|
+
const COLUMNS_DEFAULT_VALUE = Array.from({ length: 5 }, () => ({
|
|
749
|
+
day: EMPTY_VALUE,
|
|
750
|
+
weekday: EMPTY_VALUE
|
|
751
|
+
}));
|
|
752
|
+
const _sfc_main$7 = {
|
|
753
|
+
__name: "AmFinancialWeekView",
|
|
754
|
+
props: {
|
|
755
|
+
title: { type: String, default: "" },
|
|
756
|
+
isLoading: { type: Boolean, default: false },
|
|
757
|
+
previousButtonDisabled: { type: Boolean, default: false },
|
|
758
|
+
nextButtonDisabled: { type: Boolean, default: false },
|
|
759
|
+
/**
|
|
760
|
+
* @type {Column[]}
|
|
761
|
+
* @property {Column[]} columns - Array dos dias da semana do tipo {@link Column}.
|
|
762
|
+
*/
|
|
763
|
+
columns: {
|
|
764
|
+
type: Array,
|
|
765
|
+
// eslint-disable-next-line vue/valid-define-props
|
|
766
|
+
default: () => COLUMNS_DEFAULT_VALUE
|
|
767
|
+
},
|
|
768
|
+
/**
|
|
769
|
+
* @type {Item[][]}
|
|
770
|
+
* @property {Item[][]} items - Array de itens, onde cada item é um objeto do tipo {@link Item[]}.
|
|
771
|
+
*/
|
|
772
|
+
items: { type: Array, default: () => [] },
|
|
773
|
+
/**
|
|
774
|
+
* @type {Item[]}
|
|
775
|
+
* @property {Item[]} rows - Array de linhas, onde cada linha é um objeto do tipo {@link Item}.
|
|
776
|
+
*/
|
|
777
|
+
rows: { type: Array, default: () => [] }
|
|
778
|
+
},
|
|
779
|
+
setup(__props) {
|
|
780
|
+
const props = __props;
|
|
781
|
+
const titleStyle = {
|
|
782
|
+
typographyStyle: "l5",
|
|
783
|
+
wrapperElement: "span",
|
|
784
|
+
weight: "medium",
|
|
785
|
+
textColor: "text90"
|
|
786
|
+
};
|
|
787
|
+
const textStyle = {
|
|
788
|
+
typographyStyle: "l6",
|
|
789
|
+
wrapperElement: "span",
|
|
790
|
+
weight: "regular",
|
|
791
|
+
textColor: "text90"
|
|
792
|
+
};
|
|
793
|
+
const getRowDisabledClass = (columnIndex, rowIndex) => {
|
|
794
|
+
try {
|
|
795
|
+
const { isActive } = props.items[columnIndex][rowIndex];
|
|
796
|
+
return { "am-financial-week-view__cell--disabled": !isActive };
|
|
797
|
+
} catch (error) {
|
|
798
|
+
return "";
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
const getRowValues = (columnIndex, rowIndex) => {
|
|
802
|
+
try {
|
|
803
|
+
const { value, highlight } = props.items[columnIndex][rowIndex];
|
|
804
|
+
const style = highlight ? titleStyle : textStyle;
|
|
805
|
+
return { text: value, ...style };
|
|
806
|
+
} catch (error) {
|
|
807
|
+
return { text: EMPTY_VALUE, ...textStyle };
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
return (_ctx, _cache) => {
|
|
811
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
812
|
+
createBaseVNode("div", _hoisted_2$5, [
|
|
813
|
+
createBaseVNode("table", _hoisted_3$3, [
|
|
814
|
+
createBaseVNode("thead", _hoisted_4$3, [
|
|
815
|
+
createBaseVNode("tr", null, [
|
|
816
|
+
createBaseVNode("th", _hoisted_5$3, [
|
|
817
|
+
createBaseVNode("div", _hoisted_6$2, [
|
|
818
|
+
createVNode(unref(y), {
|
|
819
|
+
class: "text-start",
|
|
820
|
+
variant: "subtitle",
|
|
821
|
+
isStrong: ""
|
|
822
|
+
}, {
|
|
823
|
+
default: withCtx(() => [
|
|
824
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
825
|
+
]),
|
|
826
|
+
_: 1
|
|
827
|
+
})
|
|
828
|
+
])
|
|
829
|
+
]),
|
|
830
|
+
createBaseVNode("th", _hoisted_7$2, [
|
|
831
|
+
createVNode(unref(f), {
|
|
832
|
+
icon: "chevron_left",
|
|
833
|
+
disabled: __props.isLoading || __props.previousButtonDisabled,
|
|
834
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("previous"))
|
|
835
|
+
}, null, 8, ["disabled"])
|
|
836
|
+
]),
|
|
837
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, ({ day, weekday, isActive }, key) => {
|
|
838
|
+
return openBlock(), createElementBlock("th", {
|
|
839
|
+
key,
|
|
840
|
+
class: normalizeClass(["am-financial-week-view__cell am-financial-week-view__middle-cell", {
|
|
841
|
+
"am-financial-week-view__cell--disabled": !isActive
|
|
842
|
+
}])
|
|
843
|
+
}, [
|
|
844
|
+
createBaseVNode("div", _hoisted_8$2, [
|
|
845
|
+
createVNode(AmSkeleton, { isLoading: __props.isLoading }, {
|
|
846
|
+
default: withCtx(() => [
|
|
847
|
+
createVNode(unref(y), {
|
|
848
|
+
variant: "subtitle",
|
|
849
|
+
isStrong: ""
|
|
850
|
+
}, {
|
|
851
|
+
default: withCtx(() => [
|
|
852
|
+
createTextVNode(toDisplayString(day), 1)
|
|
853
|
+
]),
|
|
854
|
+
_: 2
|
|
855
|
+
}, 1024)
|
|
856
|
+
]),
|
|
857
|
+
_: 2
|
|
858
|
+
}, 1032, ["isLoading"]),
|
|
859
|
+
createVNode(AmSkeleton, {
|
|
860
|
+
isLoading: __props.isLoading,
|
|
861
|
+
class: normalizeClass({ "mt-2": __props.isLoading })
|
|
862
|
+
}, {
|
|
863
|
+
default: withCtx(() => [
|
|
864
|
+
createVNode(unref(y), {
|
|
865
|
+
variant: "subtitle",
|
|
866
|
+
isStrong: ""
|
|
867
|
+
}, {
|
|
868
|
+
default: withCtx(() => [
|
|
869
|
+
createTextVNode(toDisplayString(weekday), 1)
|
|
870
|
+
]),
|
|
871
|
+
_: 2
|
|
872
|
+
}, 1024)
|
|
873
|
+
]),
|
|
874
|
+
_: 2
|
|
875
|
+
}, 1032, ["isLoading", "class"])
|
|
876
|
+
])
|
|
877
|
+
], 2);
|
|
878
|
+
}), 128)),
|
|
879
|
+
createBaseVNode("th", _hoisted_9$1, [
|
|
880
|
+
createVNode(unref(f), {
|
|
881
|
+
icon: "chevron_right",
|
|
882
|
+
disabled: __props.isLoading || __props.nextButtonDisabled,
|
|
883
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("next"))
|
|
884
|
+
}, null, 8, ["disabled"])
|
|
885
|
+
])
|
|
886
|
+
])
|
|
887
|
+
]),
|
|
888
|
+
createBaseVNode("tbody", _hoisted_10$1, [
|
|
889
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, rowIndex) => {
|
|
890
|
+
return openBlock(), createElementBlock("tr", { key: rowIndex }, [
|
|
891
|
+
createBaseVNode("td", _hoisted_11$1, [
|
|
892
|
+
createBaseVNode("div", _hoisted_12$1, [
|
|
893
|
+
createVNode(unref(y), {
|
|
894
|
+
variant: row.highlight ? "subtitle" : "body",
|
|
895
|
+
isStrong: ""
|
|
896
|
+
}, {
|
|
897
|
+
default: withCtx(() => [
|
|
898
|
+
createTextVNode(toDisplayString(row.label), 1)
|
|
899
|
+
]),
|
|
900
|
+
_: 2
|
|
901
|
+
}, 1032, ["variant"])
|
|
902
|
+
])
|
|
903
|
+
]),
|
|
904
|
+
_cache[2] || (_cache[2] = createBaseVNode("td", { class: "hide-on-mobile" }, " ", -1)),
|
|
905
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (_, columnIndex) => {
|
|
906
|
+
return openBlock(), createElementBlock("td", {
|
|
907
|
+
key: `${rowIndex}-${columnIndex}`,
|
|
908
|
+
class: normalizeClass(["am-financial-week-view__cell am-financial-week-view__middle-cell", getRowDisabledClass(columnIndex, rowIndex)])
|
|
909
|
+
}, [
|
|
910
|
+
createBaseVNode("div", _hoisted_13, [
|
|
911
|
+
createVNode(unref(y), {
|
|
912
|
+
class: "hide-on-desktop",
|
|
913
|
+
variant: row.highlight ? "subtitle" : "body",
|
|
914
|
+
isStrong: row.highlight
|
|
915
|
+
}, {
|
|
916
|
+
default: withCtx(() => [
|
|
917
|
+
createTextVNode(toDisplayString(row.label), 1)
|
|
918
|
+
]),
|
|
919
|
+
_: 2
|
|
920
|
+
}, 1032, ["variant", "isStrong"]),
|
|
921
|
+
createVNode(AmSkeleton, { isLoading: __props.isLoading }, {
|
|
922
|
+
default: withCtx(() => [
|
|
923
|
+
createVNode(unref(y), {
|
|
924
|
+
variant: getRowValues(columnIndex, rowIndex).weight === "medium" ? "subtitle" : "body",
|
|
925
|
+
isStrong: getRowValues(columnIndex, rowIndex).weight === "medium"
|
|
926
|
+
}, {
|
|
927
|
+
default: withCtx(() => [
|
|
928
|
+
createTextVNode(toDisplayString(getRowValues(columnIndex, rowIndex).text), 1)
|
|
929
|
+
]),
|
|
930
|
+
_: 2
|
|
931
|
+
}, 1032, ["variant", "isStrong"])
|
|
932
|
+
]),
|
|
933
|
+
_: 2
|
|
934
|
+
}, 1032, ["isLoading"])
|
|
935
|
+
])
|
|
936
|
+
], 2);
|
|
937
|
+
}), 128)),
|
|
938
|
+
_cache[3] || (_cache[3] = createBaseVNode("td", { class: "hide-on-mobile" }, " ", -1))
|
|
939
|
+
]);
|
|
940
|
+
}), 128))
|
|
941
|
+
])
|
|
942
|
+
])
|
|
943
|
+
])
|
|
944
|
+
]);
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
const AmFinancialWeekView = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d86ea1b0"]]);
|
|
949
|
+
const _sfc_main$6 = {
|
|
950
|
+
__name: "FutureAcquisitionsByWeek",
|
|
951
|
+
props: {
|
|
952
|
+
companyId: { type: Number, default: void 0 }
|
|
953
|
+
},
|
|
954
|
+
setup(__props) {
|
|
955
|
+
const { t } = useI18n();
|
|
956
|
+
const props = __props;
|
|
957
|
+
const isLoading = ref(true);
|
|
958
|
+
const error = ref(false);
|
|
959
|
+
const result = ref([]);
|
|
960
|
+
const offset = ref(0);
|
|
961
|
+
const feedback = reactive({
|
|
962
|
+
error: {
|
|
963
|
+
iconName: "refresh",
|
|
964
|
+
title: t("withdraw.errorDataLoading"),
|
|
965
|
+
text: t("withdraw.errorRefreshLoading")
|
|
966
|
+
},
|
|
967
|
+
notFound: {
|
|
968
|
+
iconName: "folder",
|
|
969
|
+
title: t("withdraw.notFoundData"),
|
|
970
|
+
text: ""
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
const title = t("withdraw.futureAcquisitions.label.type");
|
|
974
|
+
const rows = reactive([
|
|
975
|
+
{ label: t("withdraw.futureAcquisitions.label.receivable"), highlight: false },
|
|
976
|
+
{ label: t("withdraw.futureAcquisitions.label.anticipated"), highlight: false },
|
|
977
|
+
{ label: t("withdraw.futureAcquisitions.label.subtotal"), highlight: true }
|
|
978
|
+
]);
|
|
979
|
+
const hasResult = computed(() => Array.isArray(result.value) && result.value.length > 0);
|
|
980
|
+
const columns = computed(() => {
|
|
981
|
+
if (!hasResult.value) return void 0;
|
|
982
|
+
return result.value.map((item) => ({
|
|
983
|
+
day: item.date,
|
|
984
|
+
weekday: item.weekday,
|
|
985
|
+
isActive: item.isActive
|
|
986
|
+
}));
|
|
987
|
+
});
|
|
988
|
+
const items = computed(() => {
|
|
989
|
+
if (!hasResult.value) return void 0;
|
|
990
|
+
return result.value.map((item) => [
|
|
991
|
+
{ value: item.receivable, highlight: false, isActive: item.isActive },
|
|
992
|
+
{ value: item.anticipated, highlight: false, isActive: item.isActive },
|
|
993
|
+
{ value: item.subtotal, highlight: true, isActive: item.isActive }
|
|
994
|
+
]);
|
|
995
|
+
});
|
|
996
|
+
const previousButtonDisabled = computed(() => offset.value <= 0);
|
|
997
|
+
const nextButtonDisabled = computed(() => offset.value >= 12);
|
|
998
|
+
const getInitialDate = () => {
|
|
999
|
+
const SEVEN_DAYS = 7;
|
|
1000
|
+
const sumDays = SEVEN_DAYS * offset.value;
|
|
1001
|
+
return getCurrentDate(sumDays);
|
|
1002
|
+
};
|
|
1003
|
+
const getData = async () => {
|
|
1004
|
+
if (!props.companyId) return;
|
|
1005
|
+
isLoading.value = true;
|
|
1006
|
+
error.value = false;
|
|
1007
|
+
try {
|
|
1008
|
+
const initialDate = getInitialDate();
|
|
1009
|
+
const route = `/withdraw/v3/statement/receivables/weekly?company_id=${props.companyId}&settlement_date=${initialDate}`;
|
|
1010
|
+
const response = await ApiService.get(route);
|
|
1011
|
+
const data = parseWithdrawReceivablesByWeek(response);
|
|
1012
|
+
result.value = data.result;
|
|
1013
|
+
} catch (e) {
|
|
1014
|
+
error.value = true;
|
|
1015
|
+
} finally {
|
|
1016
|
+
isLoading.value = false;
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
const setOffset = (newValue) => {
|
|
1020
|
+
offset.value = newValue;
|
|
1021
|
+
getData(props.companyId);
|
|
1022
|
+
};
|
|
1023
|
+
const onNext = () => setOffset(offset.value + 1);
|
|
1024
|
+
const onPrevious = () => setOffset(offset.value + 1);
|
|
1025
|
+
watch(() => props.companyId, getData);
|
|
1026
|
+
onMounted(() => {
|
|
1027
|
+
if (props.companyId) getData();
|
|
1028
|
+
});
|
|
1029
|
+
return (_ctx, _cache) => {
|
|
1030
|
+
return error.value ? (openBlock(), createBlock(_sfc_main$b, normalizeProps(mergeProps({ key: 0 }, feedback.error)), null, 16)) : isLoading.value || rows.length ? (openBlock(), createBlock(AmFinancialWeekView, {
|
|
1031
|
+
key: 1,
|
|
1032
|
+
isLoading: isLoading.value,
|
|
1033
|
+
title: unref(title),
|
|
1034
|
+
rows,
|
|
1035
|
+
columns: columns.value,
|
|
1036
|
+
items: items.value,
|
|
1037
|
+
previousButtonDisabled: previousButtonDisabled.value,
|
|
1038
|
+
nextButtonDisabled: nextButtonDisabled.value,
|
|
1039
|
+
onNext,
|
|
1040
|
+
onPrevious
|
|
1041
|
+
}, null, 8, ["isLoading", "title", "rows", "columns", "items", "previousButtonDisabled", "nextButtonDisabled"])) : (openBlock(), createBlock(_sfc_main$b, normalizeProps(mergeProps({ key: 2 }, feedback.notFound)), null, 16));
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
const _hoisted_1$4 = { class: "future-acquisitions-export" };
|
|
1046
|
+
const _hoisted_2$4 = {
|
|
1047
|
+
key: 0,
|
|
1048
|
+
class: "future-acquisitions-export__loader"
|
|
1049
|
+
};
|
|
1050
|
+
const _hoisted_3$2 = { class: "future-acquisitions-export__row" };
|
|
1051
|
+
const _hoisted_4$2 = { class: "d-flex flex-column gap-2 flex-1" };
|
|
1052
|
+
const _hoisted_5$2 = { class: "d-flex flex-column gap-2 flex-1" };
|
|
1053
|
+
const _hoisted_6$1 = { class: "d-flex flex-column gap-2" };
|
|
1054
|
+
const _hoisted_7$1 = { class: "future-acquisitions-export__notification" };
|
|
1055
|
+
const _hoisted_8$1 = { class: "future-acquisitions-export__footer" };
|
|
1056
|
+
const ALL_MONTH_INDEX = -1;
|
|
1057
|
+
const _sfc_main$5 = {
|
|
1058
|
+
__name: "FutureAcquisitionsExport",
|
|
1059
|
+
props: {
|
|
1060
|
+
companyId: { type: Number, default: void 0 }
|
|
1061
|
+
},
|
|
1062
|
+
setup(__props) {
|
|
1063
|
+
const toast = useToast();
|
|
1064
|
+
const { t } = useI18n();
|
|
1065
|
+
const CURRENT_YEAR = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1066
|
+
const props = __props;
|
|
1067
|
+
const email = ref("");
|
|
1068
|
+
const year = ref(CURRENT_YEAR);
|
|
1069
|
+
const month = ref(ALL_MONTH_INDEX);
|
|
1070
|
+
const isSubmitting = ref(false);
|
|
1071
|
+
const showModal = ref(false);
|
|
1072
|
+
const texts = {
|
|
1073
|
+
exportByMonth: t("withdraw.futureAcquisitions.exportModal.exportByMonth"),
|
|
1074
|
+
title: t("withdraw.futureAcquisitions.exportModal.title"),
|
|
1075
|
+
year: t("withdraw.futureAcquisitions.exportModal.year"),
|
|
1076
|
+
month: t("withdraw.futureAcquisitions.exportModal.month"),
|
|
1077
|
+
email: t("withdraw.futureAcquisitions.exportModal.email"),
|
|
1078
|
+
warning: t("withdraw.futureAcquisitions.exportModal.warning"),
|
|
1079
|
+
notification: t("withdraw.futureAcquisitions.exportModal.notification"),
|
|
1080
|
+
action: t("withdraw.futureAcquisitions.exportModal.action"),
|
|
1081
|
+
yearPlaceholder: t("withdraw.futureAcquisitions.exportModal.yearPlaceholder"),
|
|
1082
|
+
monthPlaceholder: t("withdraw.futureAcquisitions.exportModal.monthPlaceholder"),
|
|
1083
|
+
emailPlaceholder: t("withdraw.futureAcquisitions.exportModal.emailPlaceholder"),
|
|
1084
|
+
allMonths: t("withdraw.futureAcquisitions.exportModal.allMonths"),
|
|
1085
|
+
success: t("withdraw.futureAcquisitions.exportModal.success"),
|
|
1086
|
+
genericError: t("withdraw.futureAcquisitions.exportModal.genericError"),
|
|
1087
|
+
notFoundError: t("withdraw.futureAcquisitions.exportModal.notFoundError")
|
|
1088
|
+
};
|
|
1089
|
+
const disabled = computed(() => !email.value || !year.value || isSubmitting.value);
|
|
1090
|
+
const yearOptions = computed(() => {
|
|
1091
|
+
const INITIAL_YEAR = 2024;
|
|
1092
|
+
const OFFSET = 2;
|
|
1093
|
+
const YEARS_COUNT = CURRENT_YEAR - INITIAL_YEAR + 1 + OFFSET;
|
|
1094
|
+
return Array.from({ length: YEARS_COUNT }, (_, index) => {
|
|
1095
|
+
const value = CURRENT_YEAR - index + OFFSET;
|
|
1096
|
+
const title = String(value);
|
|
1097
|
+
return { title, value };
|
|
1098
|
+
});
|
|
1099
|
+
});
|
|
1100
|
+
const monthOptions = computed(() => {
|
|
1101
|
+
const MONTHS_COUNT = 12;
|
|
1102
|
+
const options = Array.from({ length: MONTHS_COUNT }, (_, index) => {
|
|
1103
|
+
const value = index + 1;
|
|
1104
|
+
const title = getMonthNameByIndex(index);
|
|
1105
|
+
return { title, value };
|
|
1106
|
+
});
|
|
1107
|
+
const allOption = {
|
|
1108
|
+
title: texts.allMonths,
|
|
1109
|
+
value: ALL_MONTH_INDEX
|
|
1110
|
+
};
|
|
1111
|
+
return [allOption, ...options];
|
|
1112
|
+
});
|
|
1113
|
+
const clearInputs = () => {
|
|
1114
|
+
year.value = CURRENT_YEAR;
|
|
1115
|
+
month.value = ALL_MONTH_INDEX;
|
|
1116
|
+
};
|
|
1117
|
+
const closeModal = () => {
|
|
1118
|
+
showModal.value = false;
|
|
1119
|
+
clearInputs();
|
|
1120
|
+
};
|
|
1121
|
+
const setYear = (value) => {
|
|
1122
|
+
year.value = value;
|
|
1123
|
+
};
|
|
1124
|
+
const setMonth = (value) => {
|
|
1125
|
+
month.value = value;
|
|
1126
|
+
};
|
|
1127
|
+
const exportReceivables = async () => {
|
|
1128
|
+
isSubmitting.value = true;
|
|
1129
|
+
try {
|
|
1130
|
+
const selectedMonth = month.value === ALL_MONTH_INDEX ? void 0 : month.value;
|
|
1131
|
+
const data = {
|
|
1132
|
+
email: email.value,
|
|
1133
|
+
company_id: props.companyId,
|
|
1134
|
+
year: year.value,
|
|
1135
|
+
month: selectedMonth
|
|
1136
|
+
};
|
|
1137
|
+
const route = "/withdraw/v3/statement/receivables/export";
|
|
1138
|
+
const response = await ApiService.post(route, data);
|
|
1139
|
+
if ((response == null ? void 0 : response.data.message) === "No receivables found to export") {
|
|
1140
|
+
toast.warning(void 0, texts.notFoundToExport);
|
|
1141
|
+
} else {
|
|
1142
|
+
toast.success(void 0, `${texts.success} ${email.value}`);
|
|
1143
|
+
}
|
|
1144
|
+
} catch (error) {
|
|
1145
|
+
const isNotFound = (error == null ? void 0 : error.status) === 404;
|
|
1146
|
+
if (isNotFound) {
|
|
1147
|
+
const isAllMonth = month.value === ALL_MONTH_INDEX;
|
|
1148
|
+
const selectedMonth = isAllMonth ? texts.allMonths : `${month.value.toString().padStart(2, "0")}/${year.value}`;
|
|
1149
|
+
toast.warning(void 0, `${texts.notFoundError} ${selectedMonth}`);
|
|
1150
|
+
} else {
|
|
1151
|
+
toast.warning(void 0, texts.genericError);
|
|
1152
|
+
}
|
|
1153
|
+
} finally {
|
|
1154
|
+
closeModal();
|
|
1155
|
+
isSubmitting.value = false;
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
return (_ctx, _cache) => {
|
|
1159
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
1160
|
+
createVNode(unref($), {
|
|
1161
|
+
outlined: "",
|
|
1162
|
+
icon: "download",
|
|
1163
|
+
size: "small",
|
|
1164
|
+
label: texts.exportByMonth,
|
|
1165
|
+
class: "md:w-full min-w-[100px]",
|
|
1166
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showModal.value = true)
|
|
1167
|
+
}, null, 8, ["label"]),
|
|
1168
|
+
createVNode(unref(script$3), {
|
|
1169
|
+
modal: "",
|
|
1170
|
+
header: texts.title,
|
|
1171
|
+
"max-width": "600px",
|
|
1172
|
+
visible: showModal.value,
|
|
1173
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => showModal.value = $event),
|
|
1174
|
+
"onUpdate:modelValue": closeModal,
|
|
1175
|
+
"pt:header": "!pb-0"
|
|
1176
|
+
}, {
|
|
1177
|
+
default: withCtx(() => [
|
|
1178
|
+
isSubmitting.value ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
1179
|
+
createVNode(unref(w))
|
|
1180
|
+
])) : (openBlock(), createElementBlock("form", {
|
|
1181
|
+
key: 1,
|
|
1182
|
+
class: "future-acquisitions-export__form",
|
|
1183
|
+
onSubmit: withModifiers(exportReceivables, ["prevent"])
|
|
1184
|
+
}, [
|
|
1185
|
+
createBaseVNode("div", _hoisted_3$2, [
|
|
1186
|
+
createBaseVNode("div", _hoisted_4$2, [
|
|
1187
|
+
createVNode(unref(y), {
|
|
1188
|
+
variant: "subtitle",
|
|
1189
|
+
size: "medium"
|
|
1190
|
+
}, {
|
|
1191
|
+
default: withCtx(() => [
|
|
1192
|
+
createTextVNode(toDisplayString(texts.year), 1)
|
|
1193
|
+
]),
|
|
1194
|
+
_: 1
|
|
1195
|
+
}),
|
|
1196
|
+
createVNode(unref(script$2), {
|
|
1197
|
+
id: "year",
|
|
1198
|
+
label: texts.year,
|
|
1199
|
+
options: yearOptions.value,
|
|
1200
|
+
placeholder: texts.yearPlaceholder,
|
|
1201
|
+
"read-only": yearOptions.value.length <= 1,
|
|
1202
|
+
optionValue: "value",
|
|
1203
|
+
optionLabel: "title",
|
|
1204
|
+
"onUpdate:modelValue": setYear,
|
|
1205
|
+
modelValue: year.value
|
|
1206
|
+
}, null, 8, ["label", "options", "placeholder", "read-only", "modelValue"])
|
|
1207
|
+
]),
|
|
1208
|
+
createBaseVNode("div", _hoisted_5$2, [
|
|
1209
|
+
createVNode(unref(y), {
|
|
1210
|
+
variant: "subtitle",
|
|
1211
|
+
size: "medium"
|
|
1212
|
+
}, {
|
|
1213
|
+
default: withCtx(() => [
|
|
1214
|
+
createTextVNode(toDisplayString(texts.month), 1)
|
|
1215
|
+
]),
|
|
1216
|
+
_: 1
|
|
1217
|
+
}),
|
|
1218
|
+
createVNode(unref(script$2), {
|
|
1219
|
+
id: "month",
|
|
1220
|
+
label: texts.month,
|
|
1221
|
+
options: monthOptions.value,
|
|
1222
|
+
placeholder: texts.monthPlaceholder,
|
|
1223
|
+
optionValue: "value",
|
|
1224
|
+
optionLabel: "title",
|
|
1225
|
+
"onUpdate:modelValue": setMonth,
|
|
1226
|
+
modelValue: month.value
|
|
1227
|
+
}, null, 8, ["label", "options", "placeholder", "modelValue"])
|
|
1228
|
+
])
|
|
1229
|
+
]),
|
|
1230
|
+
createBaseVNode("div", _hoisted_6$1, [
|
|
1231
|
+
createVNode(unref(y), {
|
|
1232
|
+
variant: "subtitle",
|
|
1233
|
+
size: "medium"
|
|
1234
|
+
}, {
|
|
1235
|
+
default: withCtx(() => [
|
|
1236
|
+
createTextVNode(toDisplayString(texts.email), 1)
|
|
1237
|
+
]),
|
|
1238
|
+
_: 1
|
|
1239
|
+
}),
|
|
1240
|
+
createVNode(unref(P$1), {
|
|
1241
|
+
id: "email",
|
|
1242
|
+
modelValue: email.value,
|
|
1243
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => email.value = $event),
|
|
1244
|
+
label: texts.email,
|
|
1245
|
+
placeholder: texts.emailPlaceholder,
|
|
1246
|
+
type: "email",
|
|
1247
|
+
size: "fullWidth",
|
|
1248
|
+
required: ""
|
|
1249
|
+
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
1250
|
+
]),
|
|
1251
|
+
createBaseVNode("div", _hoisted_7$1, [
|
|
1252
|
+
createVNode(unref(R), {
|
|
1253
|
+
variant: "warn",
|
|
1254
|
+
title: texts.warning,
|
|
1255
|
+
message: texts.notification
|
|
1256
|
+
}, null, 8, ["title", "message"])
|
|
1257
|
+
]),
|
|
1258
|
+
createBaseVNode("div", _hoisted_8$1, [
|
|
1259
|
+
createBaseVNode("div", {
|
|
1260
|
+
class: normalizeClass(["button-submit", { "button-submit--is-submitting": isSubmitting.value }])
|
|
1261
|
+
}, [
|
|
1262
|
+
createVNode(unref($), {
|
|
1263
|
+
disabled: disabled.value,
|
|
1264
|
+
label: texts.action,
|
|
1265
|
+
class: "button-submit__element",
|
|
1266
|
+
variant: "maxGhost",
|
|
1267
|
+
type: "submit"
|
|
1268
|
+
}, null, 8, ["disabled", "label"])
|
|
1269
|
+
], 2)
|
|
1270
|
+
])
|
|
1271
|
+
], 32))
|
|
1272
|
+
]),
|
|
1273
|
+
_: 1
|
|
1274
|
+
}, 8, ["header", "visible"])
|
|
1275
|
+
]);
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
const FutureAcquisitionsExport = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1eef4007"]]);
|
|
1280
|
+
const _hoisted_1$3 = { class: "am-tabs-group" };
|
|
1281
|
+
const _hoisted_2$3 = { class: "am-tabs-group__head" };
|
|
1282
|
+
const _hoisted_3$1 = { class: "am-tabs-group__content" };
|
|
1283
|
+
const _hoisted_4$1 = ["onClick"];
|
|
1284
|
+
const _hoisted_5$1 = { class: "am-tabs-group__container" };
|
|
1285
|
+
const _sfc_main$4 = {
|
|
1286
|
+
__name: "FutureAcquisitions",
|
|
1287
|
+
setup(__props) {
|
|
1288
|
+
const { t } = useI18n();
|
|
1289
|
+
const VIEW = {
|
|
1290
|
+
WEEK: 0,
|
|
1291
|
+
MONTH: 1
|
|
1292
|
+
};
|
|
1293
|
+
const tabs = ref([
|
|
1294
|
+
t("withdraw.futureAcquisitions.label.receiptsPerWeek"),
|
|
1295
|
+
t("withdraw.futureAcquisitions.label.receiptsPerMonth")
|
|
1296
|
+
]);
|
|
1297
|
+
const currentIndex = ref(VIEW.WEEK);
|
|
1298
|
+
const router = useRouter();
|
|
1299
|
+
const route = useRoute();
|
|
1300
|
+
const getTabItemClassName = (index) => ({
|
|
1301
|
+
"am-tabs-group__button": true,
|
|
1302
|
+
"am-tabs-group__button--is-active": index === currentIndex.value
|
|
1303
|
+
});
|
|
1304
|
+
const store = useAnticipationStore();
|
|
1305
|
+
const { companyId } = storeToRefs(store);
|
|
1306
|
+
const setCurrentIndex = (index) => {
|
|
1307
|
+
currentIndex.value = index;
|
|
1308
|
+
router.push({
|
|
1309
|
+
path: route.path,
|
|
1310
|
+
query: {
|
|
1311
|
+
...route.query,
|
|
1312
|
+
history: void 0,
|
|
1313
|
+
month: index === VIEW.MONTH ? true : void 0
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
};
|
|
1317
|
+
onMounted(() => {
|
|
1318
|
+
var _a;
|
|
1319
|
+
if ((_a = route.query) == null ? void 0 : _a.month) setCurrentIndex(VIEW.MONTH);
|
|
1320
|
+
});
|
|
1321
|
+
return (_ctx, _cache) => {
|
|
1322
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
1323
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
1324
|
+
createBaseVNode("div", _hoisted_3$1, [
|
|
1325
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tabs.value, (text, index) => {
|
|
1326
|
+
return openBlock(), createElementBlock("button", {
|
|
1327
|
+
key: text,
|
|
1328
|
+
class: normalizeClass(getTabItemClassName(index)),
|
|
1329
|
+
onClick: ($event) => setCurrentIndex(index)
|
|
1330
|
+
}, [
|
|
1331
|
+
createVNode(unref(y), null, {
|
|
1332
|
+
default: withCtx(() => [
|
|
1333
|
+
createTextVNode(toDisplayString(text), 1)
|
|
1334
|
+
]),
|
|
1335
|
+
_: 2
|
|
1336
|
+
}, 1024)
|
|
1337
|
+
], 10, _hoisted_4$1);
|
|
1338
|
+
}), 128))
|
|
1339
|
+
]),
|
|
1340
|
+
createVNode(FutureAcquisitionsExport, { companyId: unref(companyId) }, null, 8, ["companyId"])
|
|
1341
|
+
]),
|
|
1342
|
+
createBaseVNode("div", _hoisted_5$1, [
|
|
1343
|
+
currentIndex.value === VIEW.WEEK ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1344
|
+
key: 0,
|
|
1345
|
+
companyId: unref(companyId)
|
|
1346
|
+
}, null, 8, ["companyId"])) : (openBlock(), createBlock(FutureAcquisitionsByMonth, {
|
|
1347
|
+
key: 1,
|
|
1348
|
+
companyId: unref(companyId)
|
|
1349
|
+
}, null, 8, ["companyId"]))
|
|
1350
|
+
])
|
|
1351
|
+
]);
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
const FutureAcquisition = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-4d98064b"]]);
|
|
1356
|
+
const _hoisted_1$2 = { class: "withdraw-history" };
|
|
1357
|
+
const _hoisted_2$2 = { class: "withdraw-history__filter" };
|
|
1358
|
+
const _hoisted_3 = { class: "withdraw-history__filter__clear-action" };
|
|
1359
|
+
const _hoisted_4 = {
|
|
1360
|
+
key: 3,
|
|
1361
|
+
class: "withdraw-history__table"
|
|
1362
|
+
};
|
|
1363
|
+
const _hoisted_5 = {
|
|
1364
|
+
key: 1,
|
|
1365
|
+
class: "withdraw-history__mobile-table"
|
|
1366
|
+
};
|
|
1367
|
+
const _hoisted_6 = { class: "withdraw-history__mobile-left" };
|
|
1368
|
+
const _hoisted_7 = { class: "withdraw-history__mobile-date" };
|
|
1369
|
+
const _hoisted_8 = { class: "withdraw-history__mobile-type" };
|
|
1370
|
+
const _hoisted_9 = { class: "withdraw-history__mobile-amount" };
|
|
1371
|
+
const _hoisted_10 = { class: "withdraw-history__mobile-status" };
|
|
1372
|
+
const _hoisted_11 = { class: "withdraw-history__mobile-right" };
|
|
1373
|
+
const _hoisted_12 = { class: "withdraw-history__mobile-action" };
|
|
1374
|
+
const _sfc_main$3 = {
|
|
1375
|
+
__name: "RequestHistory",
|
|
1376
|
+
setup(__props) {
|
|
1377
|
+
const { t } = useI18n();
|
|
1378
|
+
const toast = useToast();
|
|
1379
|
+
const router = useRouter();
|
|
1380
|
+
const store = useAnticipationStore();
|
|
1381
|
+
const { getListRequestsStatus, getListRequests } = store;
|
|
1382
|
+
const { companyId } = storeToRefs(store);
|
|
1383
|
+
const formatedMoney = ({ amount, currency }) => formatMoney(amount, currency);
|
|
1384
|
+
const WORK_AROUND__FORCE_REMOUNT = ref(true);
|
|
1385
|
+
const dateCourse = ref([]);
|
|
1386
|
+
const startTimeCourse = ref("");
|
|
1387
|
+
const endTimeCourse = ref("");
|
|
1388
|
+
const statusId = ref("");
|
|
1389
|
+
const statusOptions = ref([]);
|
|
1390
|
+
const isMobileSize = useBreakpoint("mobile");
|
|
1391
|
+
const columns = [
|
|
1392
|
+
{
|
|
1393
|
+
key: "id",
|
|
1394
|
+
title: "ID",
|
|
1395
|
+
sortable: false
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
key: "type",
|
|
1399
|
+
title: "Tipo",
|
|
1400
|
+
sortable: false
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
key: "date",
|
|
1404
|
+
title: "Data",
|
|
1405
|
+
sortable: false
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
key: "amount",
|
|
1409
|
+
title: "Valor",
|
|
1410
|
+
sortable: false
|
|
1411
|
+
}
|
|
1412
|
+
];
|
|
1413
|
+
const feedbackError = ref({
|
|
1414
|
+
iconName: "refresh",
|
|
1415
|
+
title: t("withdraw.errorDataLoading"),
|
|
1416
|
+
text: t("withdraw.errorRefreshLoading")
|
|
1417
|
+
});
|
|
1418
|
+
const feedbackNotFound = ref({
|
|
1419
|
+
iconName: "folder",
|
|
1420
|
+
title: t("withdraw.noRegistryFilter"),
|
|
1421
|
+
text: t("withdraw.tryAgainFilterMsg")
|
|
1422
|
+
});
|
|
1423
|
+
const items = ref([]);
|
|
1424
|
+
const currentPage = ref(1);
|
|
1425
|
+
const isLoading = ref(true);
|
|
1426
|
+
const error = ref(false);
|
|
1427
|
+
const isEmpty = ref(true);
|
|
1428
|
+
const totalPages = ref(0);
|
|
1429
|
+
const blockRequest = ref(false);
|
|
1430
|
+
const onPageChange = (event) => {
|
|
1431
|
+
currentPage.value = event.page + 1;
|
|
1432
|
+
};
|
|
1433
|
+
const goToRequestDetail = ({ id }) => {
|
|
1434
|
+
router.push(`/v2/client/integration/antecipacao/${id}`);
|
|
1435
|
+
};
|
|
1436
|
+
const getListStatus = async () => {
|
|
1437
|
+
try {
|
|
1438
|
+
statusOptions.value = await getListRequestsStatus();
|
|
1439
|
+
} catch {
|
|
1440
|
+
toast.warning(t("withdraw.alertWarningTitle"), t("withdraw.alertWarningDescription"));
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
const searchRequest = async () => {
|
|
1444
|
+
if (!companyId.value || blockRequest.value) return;
|
|
1445
|
+
blockRequest.value = true;
|
|
1446
|
+
try {
|
|
1447
|
+
error.value = false;
|
|
1448
|
+
isLoading.value = true;
|
|
1449
|
+
const payload = {
|
|
1450
|
+
companyId: companyId.value,
|
|
1451
|
+
dateFrom: startTimeCourse.value,
|
|
1452
|
+
dateTo: endTimeCourse.value,
|
|
1453
|
+
statusId: statusId.value ? statusId.value : "",
|
|
1454
|
+
page: currentPage.value
|
|
1455
|
+
};
|
|
1456
|
+
const response = await getListRequests(payload);
|
|
1457
|
+
items.value = response.data.map((item) => {
|
|
1458
|
+
const amount = formatedMoney(item);
|
|
1459
|
+
return {
|
|
1460
|
+
...item,
|
|
1461
|
+
amount,
|
|
1462
|
+
item: {
|
|
1463
|
+
id: 1,
|
|
1464
|
+
onActionClick: () => goToRequestDetail(item),
|
|
1465
|
+
title: {
|
|
1466
|
+
text: item.date,
|
|
1467
|
+
textColor: "text80"
|
|
1468
|
+
},
|
|
1469
|
+
subTitle: {
|
|
1470
|
+
text: item.type,
|
|
1471
|
+
weight: "medium",
|
|
1472
|
+
typographyStyle: "l5"
|
|
1473
|
+
},
|
|
1474
|
+
description: {
|
|
1475
|
+
text: amount,
|
|
1476
|
+
weight: "normal",
|
|
1477
|
+
textColor: "text80",
|
|
1478
|
+
typographyStyle: "l5"
|
|
1479
|
+
},
|
|
1480
|
+
status: {
|
|
1481
|
+
text: t(`withdraw.tag.${item.status}.title`),
|
|
1482
|
+
type: t(`withdraw.tag.${item.status}.type`)
|
|
1483
|
+
},
|
|
1484
|
+
action: { icon: "keyboard_arrow_right" }
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
});
|
|
1488
|
+
totalPages.value = response.paginate.total_pages;
|
|
1489
|
+
isEmpty.value = response.paginate.total_records === 0;
|
|
1490
|
+
} catch {
|
|
1491
|
+
error.value = true;
|
|
1492
|
+
toast.warning(t("withdraw.alertWarningTitle"), t("withdraw.alertWarningDescription"));
|
|
1493
|
+
} finally {
|
|
1494
|
+
isLoading.value = false;
|
|
1495
|
+
blockRequest.value = false;
|
|
1496
|
+
}
|
|
1497
|
+
};
|
|
1498
|
+
const applyFilter = () => {
|
|
1499
|
+
currentPage.value = 1;
|
|
1500
|
+
searchRequest();
|
|
1501
|
+
};
|
|
1502
|
+
const setStatusId = (value) => {
|
|
1503
|
+
statusId.value = value;
|
|
1504
|
+
applyFilter();
|
|
1505
|
+
};
|
|
1506
|
+
const clearFilters = async () => {
|
|
1507
|
+
statusId.value = "";
|
|
1508
|
+
dateCourse.value = [];
|
|
1509
|
+
startTimeCourse.value = "";
|
|
1510
|
+
endTimeCourse.value = "";
|
|
1511
|
+
applyFilter();
|
|
1512
|
+
WORK_AROUND__FORCE_REMOUNT.value = false;
|
|
1513
|
+
await nextTick();
|
|
1514
|
+
WORK_AROUND__FORCE_REMOUNT.value = true;
|
|
1515
|
+
};
|
|
1516
|
+
const parseDate = (value) => {
|
|
1517
|
+
if (!value) return "";
|
|
1518
|
+
return value.toISOString().replace(/T.*/, "");
|
|
1519
|
+
};
|
|
1520
|
+
const setDate = (value) => {
|
|
1521
|
+
const [startDate = null, endDate = null] = value || [];
|
|
1522
|
+
startTimeCourse.value = parseDate(startDate);
|
|
1523
|
+
endTimeCourse.value = parseDate(endDate);
|
|
1524
|
+
if (endTimeCourse.value && startTimeCourse.value === endTimeCourse.value) {
|
|
1525
|
+
const newStartDate = new Date(startDate);
|
|
1526
|
+
newStartDate.setDate(newStartDate.getDate() - 1);
|
|
1527
|
+
startTimeCourse.value = parseDate(newStartDate);
|
|
1528
|
+
}
|
|
1529
|
+
applyFilter();
|
|
1530
|
+
};
|
|
1531
|
+
onMounted(() => {
|
|
1532
|
+
getListStatus();
|
|
1533
|
+
searchRequest();
|
|
1534
|
+
});
|
|
1535
|
+
watch(() => companyId.value, clearFilters);
|
|
1536
|
+
watch(() => currentPage.value, searchRequest);
|
|
1537
|
+
watch(statusId, (newValue) => {
|
|
1538
|
+
if (newValue !== void 0) {
|
|
1539
|
+
applyFilter();
|
|
1540
|
+
}
|
|
1541
|
+
});
|
|
1542
|
+
return (_ctx, _cache) => {
|
|
1543
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
1544
|
+
createBaseVNode("div", _hoisted_2$2, [
|
|
1545
|
+
createBaseVNode("div", null, [
|
|
1546
|
+
createVNode(unref(y), {
|
|
1547
|
+
class: "mb-2",
|
|
1548
|
+
size: "medium"
|
|
1549
|
+
}, {
|
|
1550
|
+
default: withCtx(() => [
|
|
1551
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.select")), 1)
|
|
1552
|
+
]),
|
|
1553
|
+
_: 1
|
|
1554
|
+
}),
|
|
1555
|
+
createVNode(unref(script$4), {
|
|
1556
|
+
modelValue: dateCourse.value,
|
|
1557
|
+
"onUpdate:modelValue": [
|
|
1558
|
+
_cache[0] || (_cache[0] = ($event) => dateCourse.value = $event),
|
|
1559
|
+
setDate
|
|
1560
|
+
],
|
|
1561
|
+
showIcon: "",
|
|
1562
|
+
iconDisplay: "input",
|
|
1563
|
+
selectionMode: "range",
|
|
1564
|
+
placeholder: unref(t)("withdraw.datePlaceholderComplete"),
|
|
1565
|
+
"data-test": "withdrawv3-future-input-date",
|
|
1566
|
+
dateFormat: "dd/MM/yy"
|
|
1567
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1568
|
+
]),
|
|
1569
|
+
createBaseVNode("div", null, [
|
|
1570
|
+
createVNode(unref(y), {
|
|
1571
|
+
class: "mb-2",
|
|
1572
|
+
size: "medium"
|
|
1573
|
+
}, {
|
|
1574
|
+
default: withCtx(() => [
|
|
1575
|
+
createTextVNode(toDisplayString(unref(t)("withdraw.withdrawStatus")), 1)
|
|
1576
|
+
]),
|
|
1577
|
+
_: 1
|
|
1578
|
+
}),
|
|
1579
|
+
createVNode(unref(script$2), {
|
|
1580
|
+
id: "status-select",
|
|
1581
|
+
modelValue: statusId.value,
|
|
1582
|
+
"onUpdate:modelValue": [
|
|
1583
|
+
_cache[1] || (_cache[1] = ($event) => statusId.value = $event),
|
|
1584
|
+
setStatusId
|
|
1585
|
+
],
|
|
1586
|
+
options: statusOptions.value,
|
|
1587
|
+
placeholder: unref(t)("withdraw.select"),
|
|
1588
|
+
"data-test": "withdrawv3-future-status-dropdown",
|
|
1589
|
+
optionValue: "value",
|
|
1590
|
+
optionLabel: "title",
|
|
1591
|
+
class: "w-full md:w-64"
|
|
1592
|
+
}, null, 8, ["modelValue", "options", "placeholder"])
|
|
1593
|
+
]),
|
|
1594
|
+
createBaseVNode("div", _hoisted_3, [
|
|
1595
|
+
createVNode(unref($), {
|
|
1596
|
+
size: "small",
|
|
1597
|
+
text: "",
|
|
1598
|
+
label: unref(t)("withdraw.clearFilter"),
|
|
1599
|
+
class: "w-full md:w-fit min-w-[100px]",
|
|
1600
|
+
"data-test": "withdrawv3-future-clear-button",
|
|
1601
|
+
onClick: clearFilters
|
|
1602
|
+
}, null, 8, ["label"])
|
|
1603
|
+
])
|
|
1604
|
+
]),
|
|
1605
|
+
isLoading.value ? (openBlock(), createBlock(unref(w), {
|
|
1606
|
+
key: 0,
|
|
1607
|
+
class: "withdraw-history__loading",
|
|
1608
|
+
isLoading: ""
|
|
1609
|
+
})) : error.value ? (openBlock(), createBlock(_sfc_main$b, normalizeProps(mergeProps({ key: 1 }, feedbackError.value)), null, 16)) : isEmpty.value ? (openBlock(), createBlock(_sfc_main$b, normalizeProps(mergeProps({ key: 2 }, feedbackNotFound.value)), null, 16)) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
1610
|
+
!unref(isMobileSize) ? (openBlock(), createBlock(unref(script$1), {
|
|
1611
|
+
key: 0,
|
|
1612
|
+
value: items.value
|
|
1613
|
+
}, {
|
|
1614
|
+
default: withCtx(() => [
|
|
1615
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(columns, (col) => {
|
|
1616
|
+
return createVNode(unref(script), {
|
|
1617
|
+
key: col.key,
|
|
1618
|
+
field: col.key,
|
|
1619
|
+
header: col.title
|
|
1620
|
+
}, null, 8, ["field", "header"]);
|
|
1621
|
+
}), 64)),
|
|
1622
|
+
createVNode(unref(script), {
|
|
1623
|
+
field: "status",
|
|
1624
|
+
header: "Status"
|
|
1625
|
+
}, {
|
|
1626
|
+
body: withCtx((slotProps) => [
|
|
1627
|
+
createVNode(StatusDescriptionModal, {
|
|
1628
|
+
statusTag: slotProps.data.status
|
|
1629
|
+
}, null, 8, ["statusTag"])
|
|
1630
|
+
]),
|
|
1631
|
+
_: 1
|
|
1632
|
+
}),
|
|
1633
|
+
createVNode(unref(script), {
|
|
1634
|
+
field: "company_name",
|
|
1635
|
+
header: ""
|
|
1636
|
+
}, {
|
|
1637
|
+
body: withCtx((slotProps) => [
|
|
1638
|
+
createVNode(unref($), {
|
|
1639
|
+
size: "small",
|
|
1640
|
+
icon: "keyboard_arrow_right",
|
|
1641
|
+
onClick: ($event) => goToRequestDetail(slotProps.data)
|
|
1642
|
+
}, null, 8, ["onClick"])
|
|
1643
|
+
]),
|
|
1644
|
+
_: 1
|
|
1645
|
+
})
|
|
1646
|
+
]),
|
|
1647
|
+
_: 1
|
|
1648
|
+
}, 8, ["value"])) : createCommentVNode("", true),
|
|
1649
|
+
unref(isMobileSize) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
1650
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item) => {
|
|
1651
|
+
return openBlock(), createElementBlock("div", {
|
|
1652
|
+
key: item.id,
|
|
1653
|
+
class: "withdraw-history__mobile-row"
|
|
1654
|
+
}, [
|
|
1655
|
+
createBaseVNode("div", _hoisted_6, [
|
|
1656
|
+
createBaseVNode("div", _hoisted_7, toDisplayString(item.date), 1),
|
|
1657
|
+
createBaseVNode("div", _hoisted_8, toDisplayString(item.type), 1),
|
|
1658
|
+
createBaseVNode("div", _hoisted_9, toDisplayString(item.amount), 1),
|
|
1659
|
+
createBaseVNode("div", _hoisted_10, [
|
|
1660
|
+
createVNode(StatusDescriptionModal, {
|
|
1661
|
+
statusTag: item.status
|
|
1662
|
+
}, null, 8, ["statusTag"])
|
|
1663
|
+
])
|
|
1664
|
+
]),
|
|
1665
|
+
createBaseVNode("div", _hoisted_11, [
|
|
1666
|
+
createBaseVNode("div", _hoisted_12, [
|
|
1667
|
+
createVNode(unref($), {
|
|
1668
|
+
size: "small",
|
|
1669
|
+
icon: "keyboard_arrow_right",
|
|
1670
|
+
onClick: ($event) => goToRequestDetail(item)
|
|
1671
|
+
}, null, 8, ["onClick"])
|
|
1672
|
+
])
|
|
1673
|
+
])
|
|
1674
|
+
]);
|
|
1675
|
+
}), 128))
|
|
1676
|
+
])) : createCommentVNode("", true),
|
|
1677
|
+
totalPages.value > 1 ? (openBlock(), createBlock(unref(script$5), {
|
|
1678
|
+
key: 2,
|
|
1679
|
+
class: "mt-4",
|
|
1680
|
+
rows: 10,
|
|
1681
|
+
totalRecords: totalPages.value * 10,
|
|
1682
|
+
rowsPerPageOptions: [10],
|
|
1683
|
+
template: `FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink`,
|
|
1684
|
+
page: currentPage.value - 1,
|
|
1685
|
+
onPage: onPageChange
|
|
1686
|
+
}, null, 8, ["totalRecords", "page"])) : createCommentVNode("", true)
|
|
1687
|
+
]))
|
|
1688
|
+
]);
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
const RequestHistory = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-470d7c29"]]);
|
|
1693
|
+
const _hoisted_1$1 = { class: "withdraw-detail" };
|
|
1694
|
+
const _hoisted_2$1 = { class: "withdraw-detail__tabs" };
|
|
1695
|
+
const _sfc_main$2 = {
|
|
1696
|
+
__name: "WithdrawDetail",
|
|
1697
|
+
setup(__props) {
|
|
1698
|
+
const router = useRouter();
|
|
1699
|
+
const route = useRoute();
|
|
1700
|
+
const { t } = useI18n();
|
|
1701
|
+
const TAB = {
|
|
1702
|
+
FUTURES: 0,
|
|
1703
|
+
HISTORY: 1
|
|
1704
|
+
};
|
|
1705
|
+
const tabs = [
|
|
1706
|
+
{ id: 1, title: t("withdraw.futureAcquisitions.label.futureReceipts"), value: TAB.FUTURES },
|
|
1707
|
+
{ id: 2, title: t("withdraw.futureAcquisitions.label.requestHistory"), value: TAB.HISTORY }
|
|
1708
|
+
];
|
|
1709
|
+
const tab = ref(TAB.FUTURES);
|
|
1710
|
+
const onTabChange = async (tabValue) => {
|
|
1711
|
+
tab.value = tabValue;
|
|
1712
|
+
router.push({
|
|
1713
|
+
path: route.path,
|
|
1714
|
+
query: {
|
|
1715
|
+
...route.query,
|
|
1716
|
+
history: tabValue === TAB.HISTORY || void 0
|
|
1717
|
+
}
|
|
1718
|
+
});
|
|
1719
|
+
};
|
|
1720
|
+
onBeforeMount(() => {
|
|
1721
|
+
if (route.query.history) onTabChange(TAB.HISTORY);
|
|
1722
|
+
});
|
|
1723
|
+
return (_ctx, _cache) => {
|
|
1724
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1725
|
+
createBaseVNode("div", _hoisted_2$1, [
|
|
1726
|
+
createVNode(unref(script$a), {
|
|
1727
|
+
value: tab.value,
|
|
1728
|
+
"onUpdate:value": onTabChange
|
|
1729
|
+
}, {
|
|
1730
|
+
default: withCtx(() => [
|
|
1731
|
+
createVNode(unref(script$6), null, {
|
|
1732
|
+
default: withCtx(() => [
|
|
1733
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(tabs, (tabItem) => {
|
|
1734
|
+
return createVNode(unref(script$7), {
|
|
1735
|
+
key: tabItem.id,
|
|
1736
|
+
value: tabItem.value
|
|
1737
|
+
}, {
|
|
1738
|
+
default: withCtx(() => [
|
|
1739
|
+
createTextVNode(toDisplayString(tabItem.title), 1)
|
|
1740
|
+
]),
|
|
1741
|
+
_: 2
|
|
1742
|
+
}, 1032, ["value"]);
|
|
1743
|
+
}), 64))
|
|
1744
|
+
]),
|
|
1745
|
+
_: 1
|
|
1746
|
+
}),
|
|
1747
|
+
createVNode(unref(script$8), null, {
|
|
1748
|
+
default: withCtx(() => [
|
|
1749
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(tabs, (tabItem) => {
|
|
1750
|
+
return createVNode(unref(script$9), {
|
|
1751
|
+
key: tabItem.id,
|
|
1752
|
+
value: tabItem.value
|
|
1753
|
+
}, null, 8, ["value"]);
|
|
1754
|
+
}), 64))
|
|
1755
|
+
]),
|
|
1756
|
+
_: 1
|
|
1757
|
+
})
|
|
1758
|
+
]),
|
|
1759
|
+
_: 1
|
|
1760
|
+
}, 8, ["value"])
|
|
1761
|
+
]),
|
|
1762
|
+
tab.value === TAB.FUTURES ? (openBlock(), createBlock(FutureAcquisition, { key: 0 })) : (openBlock(), createBlock(RequestHistory, { key: 1 }))
|
|
1763
|
+
]);
|
|
1764
|
+
};
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
const WithdrawDetail = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-22591636"]]);
|
|
1768
|
+
const _sfc_main$1 = {
|
|
1769
|
+
__name: "WithdrawNoMainAccountWarning",
|
|
1770
|
+
setup(__props) {
|
|
1771
|
+
const { t } = useI18n();
|
|
1772
|
+
return (_ctx, _cache) => {
|
|
1773
|
+
return openBlock(), createBlock(WithdrawWarning, {
|
|
1774
|
+
text: unref(t)("withdraw.warningNoMainAccountWarning"),
|
|
1775
|
+
href: "/v2/client/integration/bank-accounts"
|
|
1776
|
+
}, null, 8, ["text"]);
|
|
1777
|
+
};
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
const _hoisted_1 = { class: "mt-4" };
|
|
1781
|
+
const _hoisted_2 = {
|
|
1782
|
+
key: 0,
|
|
1783
|
+
class: "mt-4"
|
|
1784
|
+
};
|
|
1785
|
+
const _sfc_main = {
|
|
1786
|
+
__name: "WithdrawHome",
|
|
1787
|
+
setup(__props) {
|
|
1788
|
+
const router = useRouter();
|
|
1789
|
+
const route = useRoute();
|
|
1790
|
+
const store = useAnticipationStore();
|
|
1791
|
+
const { companyId } = storeToRefs(store);
|
|
1792
|
+
const isLoadingBankAccounts = ref(true);
|
|
1793
|
+
const currentBankAccounts = ref([]);
|
|
1794
|
+
const notBankAccount = computed(() => !currentBankAccounts.value.length);
|
|
1795
|
+
const noMainBankAccount = computed(() => {
|
|
1796
|
+
var _a;
|
|
1797
|
+
return !((_a = store.selectedCompany) == null ? void 0 : _a.bankAccountId);
|
|
1798
|
+
});
|
|
1799
|
+
useBreakpoint("mobile");
|
|
1800
|
+
const getBankAccounts = async () => {
|
|
1801
|
+
try {
|
|
1802
|
+
isLoadingBankAccounts.value = true;
|
|
1803
|
+
const url = `/withdraw/v3/bank-accounts?company_id=${companyId.value}`;
|
|
1804
|
+
const { data } = await ApiService.get(url);
|
|
1805
|
+
currentBankAccounts.value = data.filter((account) => Boolean(account.pix_key && account.pix_key_type));
|
|
1806
|
+
} catch {
|
|
1807
|
+
currentBankAccounts.value = [];
|
|
1808
|
+
} finally {
|
|
1809
|
+
isLoadingBankAccounts.value = false;
|
|
1810
|
+
}
|
|
1811
|
+
};
|
|
1812
|
+
const updateCompanyId = async () => {
|
|
1813
|
+
getBankAccounts(companyId.value);
|
|
1814
|
+
router.push({
|
|
1815
|
+
path: route.path,
|
|
1816
|
+
query: { ...route.query, companyId: companyId.value }
|
|
1817
|
+
});
|
|
1818
|
+
};
|
|
1819
|
+
onMounted(() => {
|
|
1820
|
+
if (companyId.value) updateCompanyId();
|
|
1821
|
+
});
|
|
1822
|
+
watch(() => companyId.value, updateCompanyId);
|
|
1823
|
+
return (_ctx, _cache) => {
|
|
1824
|
+
return openBlock(), createBlock(AmCardV3, null, {
|
|
1825
|
+
default: withCtx(() => [
|
|
1826
|
+
createVNode(WithdrawHomeAccount),
|
|
1827
|
+
createBaseVNode("div", _hoisted_1, [
|
|
1828
|
+
createVNode(unref(_sfc_main$c))
|
|
1829
|
+
]),
|
|
1830
|
+
!isLoadingBankAccounts.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
1831
|
+
notBankAccount.value ? (openBlock(), createBlock(_sfc_main$d, { key: 0 })) : noMainBankAccount.value ? (openBlock(), createBlock(_sfc_main$1, { key: 1 })) : createCommentVNode("", true)
|
|
1832
|
+
])) : createCommentVNode("", true),
|
|
1833
|
+
createVNode(WithdrawHomeAvailable, { "is-disabled": notBankAccount.value }, null, 8, ["is-disabled"]),
|
|
1834
|
+
createVNode(WithdrawDetail)
|
|
1835
|
+
]),
|
|
1836
|
+
_: 1
|
|
1837
|
+
});
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
export {
|
|
1842
|
+
_sfc_main as default
|
|
1843
|
+
};
|