appmax-client-vue3 5.0.3 → 5.0.4
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-F0iZzh43.js +16 -0
- package/dist/AE-DiMVenwy-B8gAP_yC.js +16 -0
- package/dist/AF-DOrptOkS-Cwy_BZvL.js +16 -0
- package/dist/AG-CzBMAtom-CgfEZO6L.js +16 -0
- package/dist/AI-A2DnDGPS-DpqQr8jG.js +16 -0
- package/dist/AL-BcGdPXjJ-DMCd-Nqi.js +16 -0
- package/dist/AM-BC_r4gTd-CcjWYDAQ.js +16 -0
- package/dist/AO-D6GK49nd-LKZej1r9.js +16 -0
- package/dist/AQ-Eeziry42-DyYTlRGS.js +16 -0
- package/dist/AR-AbqVWszQ-BatSn_vi.js +16 -0
- package/dist/AS-BWe_Gq8Z-DlAs4e2_.js +16 -0
- package/dist/AT-b5CS9jSt-CRr1j1Ri.js +16 -0
- package/dist/AU-BUbOyX6Q-DaEx2GZ-.js +16 -0
- package/dist/AW-CjVdJTYe-zZS7OtZN.js +16 -0
- package/dist/AX-lNtwEmw2-DITygSQt.js +16 -0
- package/dist/AZ-f8zSo9ut-CDwiKsVc.js +16 -0
- package/dist/AmBulletLegend-nu2EgQb2.js +23 -0
- package/dist/AmCardV3-Bay9-BBN.js +22 -0
- package/dist/AmDoughnutChartAdapted-tywewwFd.js +203 -0
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-CnpVhP99.js +86 -0
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-Dt3FX9Tw.js +40 -0
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-Q3WOtOcz.js +46 -0
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-SuWLFcVM.js +63 -0
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN--77vmJWuR.js +53 -0
- package/dist/AmLayoutFeedbackState-Cv5RUrw6.js +48 -0
- package/dist/AmLayoutInnerData-rTP3FKmu.js +162 -0
- package/dist/AmOutlineCard-BOdCaVzb.js +25 -0
- package/dist/AmSkeleton-yk6Pzn4C.js +35 -0
- package/dist/AmText-B7UQzHj8.js +33 -0
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-DdAal3Yb.js +64 -0
- package/dist/ApiService-DrjuEh5o.js +11 -0
- package/dist/AppInstallationConfirmationPasswordModal-21z9otg1.js +535 -0
- package/dist/AppstoreAppView-B73bYr2e.js +315 -0
- package/dist/AppstoreHomeView-Bw-_zlSK.js +1372 -0
- package/dist/BA-BfV7_7RP-F8JqkZze.js +16 -0
- package/dist/BB-CC4768VM-CMnRksxp.js +16 -0
- package/dist/BD-YQdTTbhg-CqMZPbfS.js +16 -0
- package/dist/BE-DUYoRyei-1lydJB2w.js +16 -0
- package/dist/BF-XZRLkaHX-CZm6F6LW.js +16 -0
- package/dist/BG-BAb8lAFP-Ad4cnAd-.js +16 -0
- package/dist/BH-C1LTB8Fj-CcfcOSyW.js +16 -0
- package/dist/BI-RjDfMipp-MQrL4FYI.js +16 -0
- package/dist/BJ-DAv61IMB-C-qTZgwU.js +16 -0
- package/dist/BL-CFW4iaQd-BraZIfMA.js +16 -0
- package/dist/BM-DuK3dA1G-CYEZXJKJ.js +16 -0
- package/dist/BN-BXHGopan-DRwck0Mc.js +16 -0
- package/dist/BO-CzuoErsx-CiZBS0UG.js +16 -0
- package/dist/BQ-BO-BlM1Uin3-9ePT0Asn.js +16 -0
- package/dist/BQ-SA-BninfeHy-6GO4Spzq.js +16 -0
- package/dist/BQ-SE-tq-mCvpl-BUudoTUe.js +16 -0
- package/dist/BR-B1GEJ05L-CSLBvxZ4.js +16 -0
- package/dist/BS-MeULPH4e-bZ02kQIv.js +16 -0
- package/dist/BT-BCfQJS6a-BPMUoVcw.js +16 -0
- package/dist/BV-CfaYWvM--BrdtnZcA.js +16 -0
- package/dist/BW-jYbPMHhQ-Cu6lhi36.js +16 -0
- package/dist/BY-Ddffd2rT-Be487gr8.js +16 -0
- package/dist/BZ-B7mGW2Jg-D8chbJyr.js +16 -0
- package/dist/BankAccountCrossborderNew.page-BddqvpFp.js +152 -0
- package/dist/BankAccountList.page-BNvPCHa5.js +331 -0
- package/dist/BankAccountNew.page-CFDJVz8O.js +982 -0
- package/dist/CA-CHl-cqJL-DB4j9FVk.js +16 -0
- package/dist/CC-DSLZRwFz-ClA7CKP_.js +16 -0
- package/dist/CD-D4NJYkQm-DsTCf8m1.js +16 -0
- package/dist/CF-DoxRpaA9-BEQxOeLL.js +16 -0
- package/dist/CG-Auzp6pC_-DI7D7XxO.js +16 -0
- package/dist/CH-B5eEo1aL-BbltqURK.js +16 -0
- package/dist/CI-DFfmdeVw-Cl1bRJxT.js +16 -0
- package/dist/CK-CKWUhjXV-CP4nVixC.js +16 -0
- package/dist/CL-Di6p-p6X-B1Kym-Ql.js +16 -0
- package/dist/CM-B0ht31e3-BKinQprU.js +16 -0
- package/dist/CN-CKHlOciI-CEe6lwpb.js +16 -0
- package/dist/CO-GBUkcePt-DN5f4vEk.js +16 -0
- package/dist/CR-Daw5JsjF-BYyRzX6C.js +16 -0
- package/dist/CU-CVOkcTvR-DljJCULn.js +16 -0
- package/dist/CV-cyPoze-o-ODY6g3K8.js +16 -0
- package/dist/CW-Bt-Pwg4j-Ci9_y-u9.js +16 -0
- package/dist/CX-uhIZlYzy-SsdOrcx8.js +16 -0
- package/dist/CY-un4rgwPX-DOn2Liyc.js +16 -0
- package/dist/CZ-equ-r4iN-C_hxtqfh.js +16 -0
- package/dist/CashoutAntecipateContent-BuLxzWiL.js +42 -0
- package/dist/ChargebackAnalytics-gFJCv7ts.js +1701 -0
- package/dist/ChargebackDetail-C-6RswdS.js +3470 -0
- package/dist/ConfirmationModal-STccE9FK.js +105 -0
- package/dist/Create.page-CwdZ7_c5.js +1409 -0
- package/dist/CreatePaymentLink-NL_5TlHd.js +857 -0
- package/dist/DE-zx7UmJ-V-BS0kXMtz.js +16 -0
- package/dist/DJ-BN1kIFYT-D3S2ABv7.js +16 -0
- package/dist/DK-CrXXNH_h-BfTg3lI8.js +16 -0
- package/dist/DM-B4nVdNww-C8q86bvT.js +16 -0
- package/dist/DO-C7-NF2JD-1qS2PEyQ.js +16 -0
- package/dist/DZ-DSDLbNRb-CXYecYcn.js +16 -0
- package/dist/DashboardAmountDetailsContent-C1GdGRZi.js +65 -0
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-DL7098JI.js +151 -0
- package/dist/DashboardApprovalRateInternationalContent-lFyWrkpA.js +19 -0
- package/dist/DashboardApprovalRateNationalContent-BT_zrVP4.js +74 -0
- package/dist/DashboardCarouselContent-BK3PjL79.js +963 -0
- package/dist/DashboardDetailsContent-cAUtagYn.js +58 -0
- package/dist/DashboardHome-CaSyZuRO.js +5399 -0
- package/dist/DetailSubscriptionRecurring-B9nKFQHX.js +1314 -0
- package/dist/EC-C_bjTYWm-DsHtNoWx.js +16 -0
- package/dist/EE-CQIjuoWO-Dj_tL3Gy.js +16 -0
- package/dist/EG-Bs_BHfVR-CrFL2WMv.js +16 -0
- package/dist/EH-CnWam84F-MS1nyvYv.js +16 -0
- package/dist/ER-Dcl4hJzq-DutoWGfF.js +16 -0
- package/dist/ES-Bpj2gAdj-BW2d620V.js +16 -0
- package/dist/ET-Dm3q0Ruz-DZo8ATY5.js +16 -0
- package/dist/ExternalPendenciesList-BPPFQvH8.js +651 -0
- package/dist/FI-DCqfJeiQ-11fV-BEv.js +16 -0
- package/dist/FJ-C6UrGUgI-KUm51Ib8.js +16 -0
- package/dist/FK-CAaec31K-Bw1w-W8s.js +16 -0
- package/dist/FM-Cf2SIJ7h-KPrIpJ1y.js +16 -0
- package/dist/FO-DBb4psBV-B9W61ock.js +16 -0
- package/dist/FR-CFW4iaQd-CWqHUgNh.js +16 -0
- package/dist/FeatureFlagsPage-DfFjyIF5.js +271 -0
- package/dist/Form.page-ClCzuCyz.js +624 -0
- package/dist/GA-D3NTxgTl-XELfISbA.js +16 -0
- package/dist/GB-ENG-Cmkg6Zq8-BPoP907L.js +16 -0
- package/dist/GB-NIR-DKszcfHi-BocgCw2H.js +16 -0
- package/dist/GB-SCT-BiivwJ71-Du37A8O_.js +16 -0
- package/dist/GB-UKM-DgMBd3ib-BIDoZfpE.js +16 -0
- package/dist/GB-WLS-DLoDy9iv-ZqqSrY4X.js +16 -0
- package/dist/GD-Bs1d4We7-D0xc9QuN.js +16 -0
- package/dist/GE-DXG9iLk5-SuIQagWu.js +16 -0
- package/dist/GF-B20s5gtx-CKuNCqPB.js +16 -0
- package/dist/GG-BAyrpIoO-oGFM42J3.js +16 -0
- package/dist/GH-v3jh5r1X-DH4NoKLW.js +16 -0
- package/dist/GI-D39Krd4s-BD9yA-ei.js +16 -0
- package/dist/GL-BDd_W5AU-B5INZUUx.js +16 -0
- package/dist/GM-BNEHspzj-DsJk6IiV.js +16 -0
- package/dist/GN-DdIZ0X6d-CZ0_OxEu.js +16 -0
- package/dist/GP-CFW4iaQd-BXjKkKpL.js +16 -0
- package/dist/GQ-CC3X6AMz-NKhxQZ7G.js +16 -0
- package/dist/GR-C_0rusTd-CipHy4ZL.js +16 -0
- package/dist/GS-Db5l22a1-DJlnW_Q6.js +16 -0
- package/dist/GT-BhbkqUft-DwRk3xfJ.js +16 -0
- package/dist/GU-C0HeItm1-C3KnqEoy.js +16 -0
- package/dist/GW-BjLM1vg--51vX1R5K.js +16 -0
- package/dist/GY-BreBVlhN-CjtwTYgA.js +16 -0
- package/dist/Giftmax-BJe8pa3Q.js +489 -0
- package/dist/HK-BZn9ZQGS-DYuua8sB.js +16 -0
- package/dist/HM-BUbOyX6Q-DuS5weAU.js +16 -0
- package/dist/HN-D4wujIPC-7S8GW-9b.js +16 -0
- package/dist/HR-Jhi3QQ9F-D_k7IbwL.js +16 -0
- package/dist/HT-MMjMjr-R-D3b3hgPi.js +16 -0
- package/dist/HU-CN5KmQ7F-DYJ4md8L.js +16 -0
- package/dist/Home-pFUfEAof.js +997 -0
- package/dist/Home.page-B7w7zx7P.js +499 -0
- package/dist/ID-hVVUTKNG-DALNDLox.js +16 -0
- package/dist/IE-WN_vdKcS-r8eP-_Zs.js +16 -0
- package/dist/IL-D5Wr_Xxh-pr7hp9ur.js +16 -0
- package/dist/IM-B-putc0k-D-Ss0zV8.js +16 -0
- package/dist/IN-CK40zbQD-D2zZ4XVl.js +16 -0
- package/dist/IO-CdvLck7D-lIDeqGXY.js +16 -0
- package/dist/IQ-f_9wyurt-BJX3PcWJ.js +16 -0
- package/dist/IR-B0yfWttH-BmSw08zX.js +16 -0
- package/dist/IS-Dvf-XQTq-BiZAklXr.js +16 -0
- package/dist/IT-uY7cjdFI-D_-tjwaF.js +16 -0
- package/dist/ImportTrackingCode-BN-cDxy9.js +1007 -0
- package/dist/InternalCompanyIssuesDetail-DFcGhpKO.js +862 -0
- package/dist/InternalCompanyList-CJlhSVvO.js +351 -0
- package/dist/InternalPendencyDetail-BKLJB3lK.js +717 -0
- package/dist/JE-C95tN_VG-DBV4EBBR.js +16 -0
- package/dist/JM-zOuEwaB3-JGDKKcts.js +16 -0
- package/dist/JO-Cq88rrOD-DYgBZ-zb.js +16 -0
- package/dist/JP-5evXgWxq-NBMBMIVR.js +16 -0
- package/dist/KE-PHx0d97Z-BS1QTnOJ.js +16 -0
- package/dist/KG-DT4JnieX-m5l71KHl.js +16 -0
- package/dist/KH-ChwV2WTT-BbqVr_Oq.js +16 -0
- package/dist/KI-D212g4Lh-DeuAOfmQ.js +16 -0
- package/dist/KM-mPVp7AKS-CV7nn_4s.js +16 -0
- package/dist/KN-AdXLXICN-BFvRzmEn.js +16 -0
- package/dist/KP-CC6UIrEF-t_INb3kz.js +16 -0
- package/dist/KR-BtnmWR6C-MlbRC0C3.js +16 -0
- package/dist/KW-gqahWVaw-DKGq2WXt.js +16 -0
- package/dist/KY-DjIb70VQ-Cz1DetKe.js +16 -0
- package/dist/KZ-C_fRihiO-CESat3H2.js +16 -0
- package/dist/LA-KIULJHAb-Bim-d1KJ.js +16 -0
- package/dist/LB-CrF8WJiI-CmBC4lTr.js +16 -0
- package/dist/LC-DGiHXm5V-DIZVclSG.js +16 -0
- package/dist/LI-BwB0b8M1-Dy_PTf8y.js +16 -0
- package/dist/LK-BOC44ZgS-Q8ikHfmm.js +16 -0
- package/dist/LR-CWjRlWOZ-BM8WajB6.js +16 -0
- package/dist/LS-B_EgU3p5-DPBhe5Ef.js +16 -0
- package/dist/LT-BPyPiVx2-DeAJtpxd.js +16 -0
- package/dist/LU-B-De6aB--C06WOodC.js +16 -0
- package/dist/LV-D2Ewe3XC-DA3THIZC.js +16 -0
- package/dist/LY-D1TSt6YI-D-TzyJPp.js +16 -0
- package/dist/MA-QY5gm-vM-ZvB6kwac.js +16 -0
- package/dist/MC-BjlCjfCP-BY6csHcr.js +16 -0
- package/dist/MD-rh-6rlSt-DBbdgsj1.js +16 -0
- package/dist/ME-D1euo0V2-D0MKJkJa.js +16 -0
- package/dist/MF-CFW4iaQd-BQ0pnAUK.js +16 -0
- package/dist/MG-ONnxn_5g-DdD2EbF5.js +16 -0
- package/dist/MH-B8oC_VMS-CmYP1qIz.js +16 -0
- package/dist/MK-ByjICisj-DGn1SOwL.js +16 -0
- package/dist/ML-CKVAuhox-Dn6lAMRz.js +16 -0
- package/dist/MM-doJuUjVT-C0KP-Cv4.js +16 -0
- package/dist/MN-BFP303GE-CKn_WdVA.js +16 -0
- package/dist/MO-Dp4PTSYU-B_AXtKD6.js +16 -0
- package/dist/MP-CqKsnjHV-mzt6qqjx.js +16 -0
- package/dist/MQ-CFW4iaQd-DpbnMvl4.js +16 -0
- package/dist/MR-D73q_PiY-BnAtsABQ.js +16 -0
- package/dist/MS-qhjKl9TO-Bd8gSFrP.js +16 -0
- package/dist/MT-CZjbs1U--EgeCDXd4.js +16 -0
- package/dist/MU-D0EQOl0S-BYLs1W5Z.js +16 -0
- package/dist/MV-BtwHRTMn-BCdBPszP.js +16 -0
- package/dist/MW-CVnAR98j-CJZbRagJ.js +16 -0
- package/dist/MX-C7vXnCDY-Dmin-oWl.js +16 -0
- package/dist/MY-DJcgH_o3-2oOLkdlD.js +16 -0
- package/dist/MZ-BbLwl9DA-FYUzVCo5.js +16 -0
- package/dist/Max.page-CRhbzJ09.js +879 -0
- package/dist/MostSoldCountries-DG_Wc7uA.js +22 -0
- package/dist/NA-5FKNjRGT-BWqKe71_.js +16 -0
- package/dist/NC-CFW4iaQd-D3IlHn7e.js +16 -0
- package/dist/NE-DpLZJa7D-CGV72KGn.js +16 -0
- package/dist/NF-BT-wIfwf--HSCkAos.js +16 -0
- package/dist/NG-BAiR_q0H-x2oPxOaQ.js +16 -0
- package/dist/NI-DylPDojG-FpIXxQpF.js +16 -0
- package/dist/NL-iozeFKPM-DBppf4BZ.js +16 -0
- package/dist/NO-CfaYWvM--CMXm4PaG.js +16 -0
- package/dist/NP-BGR_ZaqA-ByV9nGnO.js +16 -0
- package/dist/NR-DHGW5Y3Q-PSsRcf81.js +16 -0
- package/dist/NU-CcpcSx_x-9gVU1wF-.js +16 -0
- package/dist/NZ-DDYt6DcJ-83Lkgw7S.js +16 -0
- package/dist/OM-D6hiar1r-CJba-daf.js +16 -0
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-BsAfhXp7.js +790 -0
- package/dist/OrderStatusChip-DjUvy8Gk.js +30 -0
- package/dist/Orders.page-MN81O0nE.js +1636 -0
- package/dist/OrdersChartDataContent-DZ9DsBl-.js +221 -0
- package/dist/OrdersDetails.page-D5T8h9Un.js +6194 -0
- package/dist/PA-Bi2blxjJ-DIGWZnCX.js +16 -0
- package/dist/PE-D4DjQOlP-BKBTx4UK.js +16 -0
- package/dist/PF-DmOSfnYB-1ApQTn_-.js +16 -0
- package/dist/PG-DeOlZ7TA-DKYqmbsV.js +16 -0
- package/dist/PH-Dv4KdxU--CkFstgXH.js +16 -0
- package/dist/PK-CRhM95F8-IROg-6-b.js +16 -0
- package/dist/PL-BIdMQAtx-71vcrbUA.js +16 -0
- package/dist/PM-BDa53dEz-olcElLQY.js +16 -0
- package/dist/PN-Csu7Dufn-BRdUWiqn.js +16 -0
- package/dist/PR-C_Acdbc_-XVJp0ZAd.js +16 -0
- package/dist/PS-Dmg0ofZr-BfcXOnvL.js +16 -0
- package/dist/PT-Bsck4nv8-wXHigpK7.js +16 -0
- package/dist/PW-CBMqjpxh-w9ngaopP.js +16 -0
- package/dist/PY-Be6zNh15-DSh0UOul.js +16 -0
- package/dist/PaymentsLinks-DmGMdhQq.js +675 -0
- package/dist/QA-CZmcW85r-1dcbocf7.js +16 -0
- package/dist/RE-CFW4iaQd-ZjFoKpOm.js +16 -0
- package/dist/RO-6H4O-gQF-D5kCIFp3.js +16 -0
- package/dist/RS-DM7vMnHL-B8bpIXlq.js +16 -0
- package/dist/RU-HqKQeTq2-Dbq5EvWT.js +16 -0
- package/dist/RW-DkH4VhfP-CSJHwy2h.js +16 -0
- package/dist/RecurringSubscription-Dns1lfxX.js +639 -0
- package/dist/RecurringSubscriptionDashView-BU74Iu14.js +2051 -0
- package/dist/RefundChargeback-DxzX1ggU.js +97 -0
- package/dist/RiskPendenciesInternalService-C18MHw9P.js +145 -0
- package/dist/SA-C2hBi4Lh-LVuceiPn.js +16 -0
- package/dist/SB-CBu9QLGP-CDNlu2Hi.js +16 -0
- package/dist/SC-CR6esM-V-zzjShRK_.js +16 -0
- package/dist/SD-VCXqBHrW-_q1bkXLo.js +16 -0
- package/dist/SE-DbI0jJm9-CVNv6YY5.js +16 -0
- package/dist/SG-DgprfMyV-8f-vday0.js +16 -0
- package/dist/SH-qhjKl9TO-D5KY5Y-m.js +16 -0
- package/dist/SI-C3dA03Yk-DBM3URbM.js +16 -0
- package/dist/SJ-CfaYWvM--Ca3QZPZ3.js +16 -0
- package/dist/SK-CxbHN7aU-BJMmIJs8.js +16 -0
- package/dist/SL-GXAaRXng-BqldurGy.js +16 -0
- package/dist/SM-B2SteTdO-De8TzD4p.js +16 -0
- package/dist/SN-B7Q__Lx_-DmZlDE1W.js +16 -0
- package/dist/SO-Bnd5-U9z-ChYTpGa9.js +16 -0
- package/dist/SR-BHMDOkL2-DOoMrZJY.js +16 -0
- package/dist/SS-CsTgWca1-Bc7bSVgH.js +16 -0
- package/dist/ST-DLqO0boT-lp2LWq4J.js +16 -0
- package/dist/SV-DNZizmQg-iLSymkkM.js +16 -0
- package/dist/SX-DWuXjLwS-Cq7piB0J.js +16 -0
- package/dist/SY-DeOQEBum-CkORRYcV.js +16 -0
- package/dist/SZ-Bhe0qU5K-Bi4t0wtA.js +16 -0
- package/dist/SalesRecovery-DdXIO9M9.js +595 -0
- package/dist/SalesRecoveryIA-DIoHDLwj.js +199 -0
- package/dist/SendCustomerRefundLinkPage-BoNDJcX5.js +137 -0
- package/dist/StatusDescriptionModal-C1st_TVR.js +60 -0
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-fsT8_PI4.js +28 -0
- package/dist/TC-D5HTaKiF-C_qC-bkC.js +16 -0
- package/dist/TD-DyIWvaGg-6oLoIBo9.js +16 -0
- package/dist/TF-BRsv64iE-CVHPxNav.js +16 -0
- package/dist/TG-OhNa5jmt-pbhXOQv_.js +16 -0
- package/dist/TH-F_ODV0JW-BIxnXFCx.js +16 -0
- package/dist/TJ-BFkbbSmN-CdT7ozJu.js +16 -0
- package/dist/TK-Ct75yy7V-dGc6SSsm.js +16 -0
- package/dist/TL-BzqVkHGw-vDmIdZ4m.js +16 -0
- package/dist/TM-CCAvd8qV-Di0BOTBf.js +16 -0
- package/dist/TN-CmYqbPEz-DWwMw0Fr.js +16 -0
- package/dist/TO-BQQk9Xq_-B8DFmqC6.js +16 -0
- package/dist/TR-_MKkCnUV-JwlcTP3L.js +16 -0
- package/dist/TT-DoRURl1c-CH-cqA8a.js +16 -0
- package/dist/TV-Dt8uZCP4-BNxfT83l.js +16 -0
- package/dist/TW-CvHugvex-DfXcsCaL.js +16 -0
- package/dist/TZ-RbwBgiwb-duq9OFxQ.js +16 -0
- package/dist/TestView-9CRQm_ef.js +14 -0
- package/dist/TopSellingProductsContent-DKh5NdxZ.js +80 -0
- package/dist/UA-BiXHPMqV-B8z263ap.js +16 -0
- package/dist/UG--it_LhSj-DlUiWeJc.js +16 -0
- package/dist/UM-BFcTdeDD-DMTJGVgK.js +16 -0
- package/dist/US-BFcTdeDD-DMTJGVgK.js +16 -0
- package/dist/UY-C26Ndi4P-BVZWb-RO.js +16 -0
- package/dist/UZ-BK5ADwFW-ph43lXhE.js +16 -0
- package/dist/UserIndicationsPage-BnnT28Tn.js +743 -0
- package/dist/VA-Cpq1n4yW-Cpuym3zd.js +16 -0
- package/dist/VC-D1Fjbog5-BCfEgmx0.js +16 -0
- package/dist/VE-CeM-hea7-BOAng-R9.js +16 -0
- package/dist/VG-qhjKl9TO-D_i-eenB.js +16 -0
- package/dist/VI-C-kcu42_-gDEsrJsD.js +16 -0
- package/dist/VN-2yoryeK1-uHPQxyir.js +16 -0
- package/dist/VU-CkLlsgzP-CL7qX3FO.js +16 -0
- package/dist/WF-BDa53dEz-CyEpzrWH.js +16 -0
- package/dist/WS-CNi2O6Qm-CMb4auQx.js +16 -0
- package/dist/WhatsappPreview.vue_vue_type_script_setup_true_lang-D1omqu9f.js +157 -0
- package/dist/WithdrawAdvance-Ccep1JA-.js +17 -0
- package/dist/WithdrawBalanceStore-B20oJdvz.js +504 -0
- package/dist/WithdrawBankAccountStore-DsC4ZZdM.js +130 -0
- package/dist/WithdrawBlocked-NNr_muot.js +133 -0
- package/dist/WithdrawCompanyStore-BfVnw3lu.js +80 -0
- package/dist/WithdrawGuaranteeExtract-D89hQaf8.js +980 -0
- package/dist/WithdrawHome-BFYz-v7C.js +2448 -0
- package/dist/WithdrawHome-DGDCoK7n.js +1843 -0
- package/dist/WithdrawInternational-Cqb89TzD.js +17 -0
- package/dist/WithdrawMaxStore-_rja1BVK.js +375 -0
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-D-p791VE.js +531 -0
- package/dist/WithdrawNoAccountWarning-D0hQYAcv.js +233 -0
- package/dist/WithdrawPermissionGuard-Dh_mbukV.js +338 -0
- package/dist/WithdrawRequest-CB8Y9QWF.js +17 -0
- package/dist/WithdrawRequest-F37bBNu9.js +944 -0
- package/dist/WithdrawRequestDetail-CNp0KDNX.js +284 -0
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-DGkd1Esj.js +937 -0
- package/dist/YE-DxPZysMs-CpLn8RWj.js +16 -0
- package/dist/YT-BMJJ1U_T-CDXFoXV0.js +16 -0
- package/dist/ZA-BjQXS8mc-B0UQZUrN.js +16 -0
- package/dist/ZM-Dw0PmMTO-lGOmeQdn.js +16 -0
- package/dist/ZW-D0UStZMr-xCVgLVmw.js +16 -0
- package/dist/affiliate-Bgt9fadK-D963Q88G.js +22 -0
- package/dist/amex-CvNwRHhS-BBsK7IIu.js +16 -0
- package/dist/api-CIMKicLA.js +11 -0
- package/dist/apple_pay-DtsAzVjF-B41BU1HD.js +20 -0
- package/dist/archive-CFoPOir7-BpMgkpDZ.js +18 -0
- package/dist/aura-D1VyKb6w-Dv3gZn_e.js +23 -0
- package/dist/boleto-BQZRi0Q5-CxYgPyHm.js +18 -0
- package/dist/box-DNrK38w2-BwLsz66q.js +20 -0
- package/dist/cart-p5jccB8o-DF5drP2k.js +15 -0
- package/dist/cash-FZcelZV1-CnTZqD-U.js +20 -0
- package/dist/chart-YJ27XOr3-BPPe3GdW.js +22 -0
- package/dist/credit_card-CGrPYCJP-e0PKYFkL.js +15 -0
- package/dist/csv-CYa6aPS5-DFrnOxgO.js +18 -0
- package/dist/dayjs.min-BfgpYSt2.js +282 -0
- package/dist/diners-CN_1suUM-DVgMrdIj.js +26 -0
- package/dist/discover-vVTOFEvv-eHwdSwfK.js +22 -0
- package/dist/ds-appmax-v322-CpQMgZw3.js +52 -0
- package/dist/ds-appmax-v327-Ogu8YEIj.js +69 -0
- package/dist/ds-appmax-v330-DU7SsVuF.js +48 -0
- package/dist/ds-appmax-v335-Bu5aCfYb.js +278 -0
- package/dist/elo-BaNbqhYS-2SN-EGzL.js +15 -0
- package/dist/gear-BHOWpd7b-CxTyK_3h.js +18 -0
- package/dist/grid-B7I0mWry-DIYOqABE.js +18 -0
- package/dist/hipercard-DBsszwxC-O3YILWno.js +22 -0
- package/dist/index-B0VSb7WU.js +1567 -0
- package/dist/index-B3TmIKjB.js +150 -0
- package/dist/index-B50N-W-a.js +808 -0
- package/dist/index-B5D3_Xvi.js +9812 -0
- package/dist/index-BH-_EudT.js +117 -0
- package/dist/index-BQkmaKbH.js +83 -0
- package/dist/index-BWlCj_o_.js +681 -0
- package/dist/index-BYTi8KOq.js +1790 -0
- package/dist/index-BeA0UPnd.js +28 -0
- package/dist/index-Bfu5BNbN.js +230 -0
- package/dist/index-ByaHDAn-.js +534 -0
- package/dist/index-C9VJ4W4D.js +961 -0
- package/dist/index-CDH6Q9OK.js +18 -0
- package/dist/index-CbPPVyeN.js +217 -0
- package/dist/index-Cc1ntr1N.js +21 -0
- package/dist/index-CnNeFAhj.js +35 -0
- package/dist/index-CoD8VMcG.js +4133 -0
- package/dist/index-Ct51ZylZ.js +200 -0
- package/dist/index-D9bN7Q-Y.js +409 -0
- package/dist/index-DFe60DBo.js +159 -0
- package/dist/index-DHI_7PxN.js +11 -0
- package/dist/index-DMwh-GaM.js +275 -0
- package/dist/index-DbAmAB7j.js +219 -0
- package/dist/index-DhRYkSPC.js +721 -0
- package/dist/index-Dhe_zOZu.js +219 -0
- package/dist/index-Du2tTRlE.js +21 -0
- package/dist/index-DzftXkkx.js +67 -0
- package/dist/index-GylxZXuC.js +62 -0
- package/dist/index-QZyAbkkv.js +106 -0
- package/dist/index-XpYbwknJ.js +332 -0
- package/dist/index-_-X480d-.js +92 -0
- package/dist/index-bCzxdosm.js +169 -0
- package/dist/index-nN012QFO.js +153 -0
- package/dist/index-w0KwgECI.js +1433 -0
- package/dist/index.page-CNPvzJKt.js +828 -0
- package/dist/infos-8KGPLXoE-C6OsCWqK.js +18 -0
- package/dist/integrations-UOltVEyj-M_RdnWiP.js +19 -0
- package/dist/logs-Ce3fZY0v-CVreLBK_.js +28 -0
- package/dist/maestro-BMomgHxO-BNgiakAR.js +27 -0
- package/dist/main-BxSNdVUz.js +103911 -0
- package/dist/main.js +1 -1
- package/dist/mastercard-5I-dcOVV-Ds80DwY-.js +30 -0
- package/dist/max_brand-Crj-SFUw-DK399Iq_.js +29 -0
- package/dist/max_brand_active-BIkS5qkP-CMFLrBZF.js +27 -0
- package/dist/max_brand_negative-BxvdIegN-JSR-KVwv.js +30 -0
- package/dist/menu.page-kL-gVlzs.js +274 -0
- package/dist/money-DZpB5eTf-C4RoV8Qo.js +19 -0
- package/dist/notification-DMezLtAj-IzO6v-CJ.js +18 -0
- package/dist/paypal-DMYjfEw0-D_lMXGAN.js +15 -0
- package/dist/pix-DXdX91yj-CsL4mdir.js +22 -0
- package/dist/pix_outline-D_xXXgCN-Ci4-UNcA.js +16 -0
- package/dist/pusher-Dk_QQo3l.js +4010 -0
- package/dist/shield-DS-Xf4WH-CqZ9vik1.js +15 -0
- package/dist/solid_help-DNaqfgoc-DprccH4-.js +20 -0
- package/dist/solid_home-BDUiJDVY-BJxbZIJ7.js +18 -0
- package/dist/solid_leaderboard-DtqK7q9Y-DhzHx0Mm.js +18 -0
- package/dist/solid_store-Cfv6o4b8-CVAdL9nk.js +18 -0
- package/dist/ticket_icon-DwvyLm7c-HVUOghvW.js +22 -0
- package/dist/useQueryFilter-B9jobv4G.js +93 -0
- package/dist/useRecurringTable-C-HMx7Go.js +161 -0
- package/dist/user-BRpwqYx8-Cr7iRLnS.js +18 -0
- package/dist/validateURL.helper-CAafZEs1.js +126 -0
- package/dist/visa-tPjWcMbi-zgcZYmD1.js +18 -0
- package/package.json +1 -1
- package/dist/AD-Ct_GVBfr-DCx3XqCx.js +0 -16
- package/dist/AE-DiMVenwy-BrOW6e-H.js +0 -16
- package/dist/AF-DOrptOkS-BNyTRPvE.js +0 -16
- package/dist/AG-CzBMAtom-DeFrLr5j.js +0 -16
- package/dist/AI-A2DnDGPS-8efloiQG.js +0 -16
- package/dist/AL-BcGdPXjJ-DWeb_dMy.js +0 -16
- package/dist/AM-BC_r4gTd-Hj6XcJ1y.js +0 -16
- package/dist/AO-D6GK49nd-Bum59r6W.js +0 -16
- package/dist/AQ-Eeziry42-DmgbyVIo.js +0 -16
- package/dist/AR-AbqVWszQ-DA17qSH4.js +0 -16
- package/dist/AS-BWe_Gq8Z-DzSdlsK7.js +0 -16
- package/dist/AT-b5CS9jSt-CNlyvHdI.js +0 -16
- package/dist/AU-BUbOyX6Q-BIjPlKQR.js +0 -16
- package/dist/AW-CjVdJTYe-GEUoBA_W.js +0 -16
- package/dist/AX-lNtwEmw2-CNE9zGk-.js +0 -16
- package/dist/AZ-f8zSo9ut-VhAq1Q5z.js +0 -16
- package/dist/AmBulletLegend-DgL5xiqZ.js +0 -23
- package/dist/AmCardV3-PfscHbHM.js +0 -22
- package/dist/AmDoughnutChartAdapted-DhgZYXxg.js +0 -203
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-B5Bedpbl.js +0 -86
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-CSkcqmdC.js +0 -40
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-C6tFqHbs.js +0 -46
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-CagtG1Xp.js +0 -63
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN--DBdwsIAC.js +0 -53
- package/dist/AmLayoutFeedbackState-COjBu8W1.js +0 -48
- package/dist/AmLayoutInnerData-DrGqaj8B.js +0 -162
- package/dist/AmOutlineCard-o7CaYbcX.js +0 -25
- package/dist/AmSkeleton-CNhSg8R-.js +0 -35
- package/dist/AmText-BLP3-hlD.js +0 -33
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-DqRsdlzw.js +0 -64
- package/dist/ApiService-CJ82KAZF.js +0 -11
- package/dist/AppInstallationConfirmationPasswordModal-Oj81wWvm.js +0 -535
- package/dist/AppstoreAppView-oBUCqA4h.js +0 -315
- package/dist/AppstoreHomeView-DSJ8RUSm.js +0 -1372
- package/dist/BA-BfV7_7RP-B_MmlVy3.js +0 -16
- package/dist/BB-CC4768VM-CqbYttz6.js +0 -16
- package/dist/BD-YQdTTbhg-CSDQfGUb.js +0 -16
- package/dist/BE-DUYoRyei-CGjPHAaY.js +0 -16
- package/dist/BF-XZRLkaHX-BxDNZx-j.js +0 -16
- package/dist/BG-BAb8lAFP-8NXHp2rR.js +0 -16
- package/dist/BH-C1LTB8Fj-BlFDSTTQ.js +0 -16
- package/dist/BI-RjDfMipp-CzLCUmWs.js +0 -16
- package/dist/BJ-DAv61IMB-CGQjz1Iv.js +0 -16
- package/dist/BL-CFW4iaQd-BHMb-6PO.js +0 -16
- package/dist/BM-DuK3dA1G-CrAZwjK8.js +0 -16
- package/dist/BN-BXHGopan-C9k3n8Ce.js +0 -16
- package/dist/BO-CzuoErsx-B6MMBH7Y.js +0 -16
- package/dist/BQ-BO-BlM1Uin3-CZl4BIDO.js +0 -16
- package/dist/BQ-SA-BninfeHy-DFe6Wnod.js +0 -16
- package/dist/BQ-SE-tq-mCvpl-5t0tSDta.js +0 -16
- package/dist/BR-B1GEJ05L-dsvV9MZT.js +0 -16
- package/dist/BS-MeULPH4e-CAHf4NdB.js +0 -16
- package/dist/BT-BCfQJS6a-Dgd5s9HG.js +0 -16
- package/dist/BV-CfaYWvM--58DTN71h.js +0 -16
- package/dist/BW-jYbPMHhQ-qOxocojB.js +0 -16
- package/dist/BY-Ddffd2rT-B2PrHh6Q.js +0 -16
- package/dist/BZ-B7mGW2Jg-bwQ_5khc.js +0 -16
- package/dist/BankAccountCrossborderNew.page-BO5tnDOM.js +0 -152
- package/dist/BankAccountList.page-CduwLZb3.js +0 -331
- package/dist/BankAccountNew.page-CqyrYp5E.js +0 -982
- package/dist/CA-CHl-cqJL-CNclNxwI.js +0 -16
- package/dist/CC-DSLZRwFz-uK7zvjXB.js +0 -16
- package/dist/CD-D4NJYkQm-Ch5F-84K.js +0 -16
- package/dist/CF-DoxRpaA9-B-fKjnMr.js +0 -16
- package/dist/CG-Auzp6pC_-DXGyQ6o0.js +0 -16
- package/dist/CH-B5eEo1aL-Dbs6N-He.js +0 -16
- package/dist/CI-DFfmdeVw-BNy0HvTS.js +0 -16
- package/dist/CK-CKWUhjXV-Co3ddSSj.js +0 -16
- package/dist/CL-Di6p-p6X-BAZzNY-r.js +0 -16
- package/dist/CM-B0ht31e3-DaLM4Zeg.js +0 -16
- package/dist/CN-CKHlOciI-DLjinXBm.js +0 -16
- package/dist/CO-GBUkcePt-u8FyB87n.js +0 -16
- package/dist/CR-Daw5JsjF-DK58Uwen.js +0 -16
- package/dist/CU-CVOkcTvR-B7N2gNHu.js +0 -16
- package/dist/CV-cyPoze-o-BaFC-1on.js +0 -16
- package/dist/CW-Bt-Pwg4j-POO_qCN2.js +0 -16
- package/dist/CX-uhIZlYzy-BuWQ5h7r.js +0 -16
- package/dist/CY-un4rgwPX-BibL4pt6.js +0 -16
- package/dist/CZ-equ-r4iN-DnF6LX7Q.js +0 -16
- package/dist/CashoutAntecipateContent-Db2b4Pmh.js +0 -42
- package/dist/ChargebackAnalytics-DANNd77B.js +0 -1701
- package/dist/ChargebackDetail-BYql3-T8.js +0 -3470
- package/dist/ConfirmationModal-DGya4Q7h.js +0 -105
- package/dist/Create.page-BvsgM3pv.js +0 -1409
- package/dist/CreatePaymentLink-BI9mGXvj.js +0 -857
- package/dist/DE-zx7UmJ-V-D2TQyBB3.js +0 -16
- package/dist/DJ-BN1kIFYT-DxF5rkve.js +0 -16
- package/dist/DK-CrXXNH_h-7kM7f_Xf.js +0 -16
- package/dist/DM-B4nVdNww-lwxn5JTy.js +0 -16
- package/dist/DO-C7-NF2JD-D0C8NFvJ.js +0 -16
- package/dist/DZ-DSDLbNRb-AyixUdfn.js +0 -16
- package/dist/DashboardAmountDetailsContent-CVWItbCB.js +0 -65
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-66oeZyWA.js +0 -151
- package/dist/DashboardApprovalRateInternationalContent-9JiNZnMq.js +0 -19
- package/dist/DashboardApprovalRateNationalContent-vNADs_hM.js +0 -74
- package/dist/DashboardCarouselContent-DOBOyfkZ.js +0 -963
- package/dist/DashboardDetailsContent-BoeQdYv1.js +0 -58
- package/dist/DashboardHome-BLWo-Ut3.js +0 -5399
- package/dist/DetailSubscriptionRecurring-DnZ6aelA.js +0 -1314
- package/dist/EC-C_bjTYWm-smiCm2lN.js +0 -16
- package/dist/EE-CQIjuoWO-BBtzSn-X.js +0 -16
- package/dist/EG-Bs_BHfVR-C0lrGvZK.js +0 -16
- package/dist/EH-CnWam84F-CrvH_8I6.js +0 -16
- package/dist/ER-Dcl4hJzq-C8DXinDy.js +0 -16
- package/dist/ES-Bpj2gAdj-BV8ATyMk.js +0 -16
- package/dist/ET-Dm3q0Ruz-BcUgyeCq.js +0 -16
- package/dist/ExternalPendenciesList-Dlwm6xme.js +0 -651
- package/dist/FI-DCqfJeiQ-DSJIg99i.js +0 -16
- package/dist/FJ-C6UrGUgI-B-Uf03Gd.js +0 -16
- package/dist/FK-CAaec31K-BmYwJfBQ.js +0 -16
- package/dist/FM-Cf2SIJ7h-Cz3mx3As.js +0 -16
- package/dist/FO-DBb4psBV-B-K2aZcm.js +0 -16
- package/dist/FR-CFW4iaQd-EB6jOHfC.js +0 -16
- package/dist/FeatureFlagsPage-Cj9WfFgU.js +0 -271
- package/dist/Form.page-C7Z5H_o4.js +0 -608
- package/dist/GA-D3NTxgTl-FSDBuMWm.js +0 -16
- package/dist/GB-ENG-Cmkg6Zq8-cNgsXUT0.js +0 -16
- package/dist/GB-NIR-DKszcfHi-C_fMHBF3.js +0 -16
- package/dist/GB-SCT-BiivwJ71-BhHS6PEB.js +0 -16
- package/dist/GB-UKM-DgMBd3ib-DnP9d9pN.js +0 -16
- package/dist/GB-WLS-DLoDy9iv-BBpwMmLC.js +0 -16
- package/dist/GD-Bs1d4We7-DUzJcdQW.js +0 -16
- package/dist/GE-DXG9iLk5-BWgdPPTa.js +0 -16
- package/dist/GF-B20s5gtx-L0qBCm4L.js +0 -16
- package/dist/GG-BAyrpIoO-DhmGSKWj.js +0 -16
- package/dist/GH-v3jh5r1X-D6d-ztDh.js +0 -16
- package/dist/GI-D39Krd4s-DWAJJTrA.js +0 -16
- package/dist/GL-BDd_W5AU-uhG1ugaF.js +0 -16
- package/dist/GM-BNEHspzj-DwV7H8C8.js +0 -16
- package/dist/GN-DdIZ0X6d-C_uB78da.js +0 -16
- package/dist/GP-CFW4iaQd-C-EkCzZf.js +0 -16
- package/dist/GQ-CC3X6AMz-Cy0TiPx4.js +0 -16
- package/dist/GR-C_0rusTd-Bg42FPh6.js +0 -16
- package/dist/GS-Db5l22a1-DXkmkLA5.js +0 -16
- package/dist/GT-BhbkqUft-CpBV71Rt.js +0 -16
- package/dist/GU-C0HeItm1-CvzA-18i.js +0 -16
- package/dist/GW-BjLM1vg--BtbO4wYc.js +0 -16
- package/dist/GY-BreBVlhN-eXHeHwDY.js +0 -16
- package/dist/Giftmax-DtB5N5gg.js +0 -489
- package/dist/HK-BZn9ZQGS-DM8Ktatt.js +0 -16
- package/dist/HM-BUbOyX6Q-CnP21JJ5.js +0 -16
- package/dist/HN-D4wujIPC-BWGnwido.js +0 -16
- package/dist/HR-Jhi3QQ9F-DY7n9UOI.js +0 -16
- package/dist/HT-MMjMjr-R-CCX001lo.js +0 -16
- package/dist/HU-CN5KmQ7F-Cno1r7Q5.js +0 -16
- package/dist/Home-wu4Og5Ff.js +0 -997
- package/dist/Home.page-B83UUsV_.js +0 -499
- package/dist/ID-hVVUTKNG-gUNOqALF.js +0 -16
- package/dist/IE-WN_vdKcS-CjqTqLFr.js +0 -16
- package/dist/IL-D5Wr_Xxh-DdPBxLTN.js +0 -16
- package/dist/IM-B-putc0k-BHz1RYik.js +0 -16
- package/dist/IN-CK40zbQD-DQSpNCa4.js +0 -16
- package/dist/IO-CdvLck7D-Bdbmqrd4.js +0 -16
- package/dist/IQ-f_9wyurt-C-L-l-EG.js +0 -16
- package/dist/IR-B0yfWttH-CgvrS6Hy.js +0 -16
- package/dist/IS-Dvf-XQTq-_G47QI6j.js +0 -16
- package/dist/IT-uY7cjdFI-vsWowyJu.js +0 -16
- package/dist/ImportTrackingCode-bQR72Uf1.js +0 -1007
- package/dist/InternalCompanyIssuesDetail-B8DB7MPA.js +0 -862
- package/dist/InternalCompanyList-C8_79hy9.js +0 -351
- package/dist/InternalPendencyDetail-DueET2WI.js +0 -717
- package/dist/JE-C95tN_VG-GdFp3CvC.js +0 -16
- package/dist/JM-zOuEwaB3-CYHJIviM.js +0 -16
- package/dist/JO-Cq88rrOD-D7MsbQvn.js +0 -16
- package/dist/JP-5evXgWxq-WbrvbcPo.js +0 -16
- package/dist/KE-PHx0d97Z-KKLgFe3g.js +0 -16
- package/dist/KG-DT4JnieX-7UXlCzvb.js +0 -16
- package/dist/KH-ChwV2WTT-Cfyo2t1t.js +0 -16
- package/dist/KI-D212g4Lh-lyxF0IEt.js +0 -16
- package/dist/KM-mPVp7AKS-Elq3MOMx.js +0 -16
- package/dist/KN-AdXLXICN-BNolfcZW.js +0 -16
- package/dist/KP-CC6UIrEF-GxZvLefv.js +0 -16
- package/dist/KR-BtnmWR6C-CWZ8MS76.js +0 -16
- package/dist/KW-gqahWVaw-DEPjfmI-.js +0 -16
- package/dist/KY-DjIb70VQ-WsU5g3oM.js +0 -16
- package/dist/KZ-C_fRihiO-5wH8Z7SI.js +0 -16
- package/dist/LA-KIULJHAb-DThjAYpI.js +0 -16
- package/dist/LB-CrF8WJiI-DUTq7CEU.js +0 -16
- package/dist/LC-DGiHXm5V-BqCLebzC.js +0 -16
- package/dist/LI-BwB0b8M1-eRV3Y36a.js +0 -16
- package/dist/LK-BOC44ZgS-DIm7pNL_.js +0 -16
- package/dist/LR-CWjRlWOZ-CV6g3ZrZ.js +0 -16
- package/dist/LS-B_EgU3p5-DT99M1Pq.js +0 -16
- package/dist/LT-BPyPiVx2-BENg8jpT.js +0 -16
- package/dist/LU-B-De6aB--skErkvt1.js +0 -16
- package/dist/LV-D2Ewe3XC-D1WTE5Rj.js +0 -16
- package/dist/LY-D1TSt6YI-BiNk259G.js +0 -16
- package/dist/MA-QY5gm-vM-DO3dwAme.js +0 -16
- package/dist/MC-BjlCjfCP-B5j5R4Xy.js +0 -16
- package/dist/MD-rh-6rlSt-Zkt8GEYq.js +0 -16
- package/dist/ME-D1euo0V2-BDRLmHaS.js +0 -16
- package/dist/MF-CFW4iaQd-CWJ5L726.js +0 -16
- package/dist/MG-ONnxn_5g-BJrFMKlq.js +0 -16
- package/dist/MH-B8oC_VMS-D3NuLIH8.js +0 -16
- package/dist/MK-ByjICisj-B2Sp850n.js +0 -16
- package/dist/ML-CKVAuhox-BooGYR-9.js +0 -16
- package/dist/MM-doJuUjVT-B9RBFwNj.js +0 -16
- package/dist/MN-BFP303GE-BYhRdLMA.js +0 -16
- package/dist/MO-Dp4PTSYU-PWdICtVP.js +0 -16
- package/dist/MP-CqKsnjHV-C6Fr2D_q.js +0 -16
- package/dist/MQ-CFW4iaQd-KmBjUZsy.js +0 -16
- package/dist/MR-D73q_PiY-hNw-rDfM.js +0 -16
- package/dist/MS-qhjKl9TO-KMdGBqt-.js +0 -16
- package/dist/MT-CZjbs1U--BuYaD3S2.js +0 -16
- package/dist/MU-D0EQOl0S-_5kbujPV.js +0 -16
- package/dist/MV-BtwHRTMn-D-0-xI29.js +0 -16
- package/dist/MW-CVnAR98j-Dl-eG6t4.js +0 -16
- package/dist/MX-C7vXnCDY-6oCnuiW-.js +0 -16
- package/dist/MY-DJcgH_o3-ZQ2xI0VP.js +0 -16
- package/dist/MZ-BbLwl9DA-BBSN2Yxv.js +0 -16
- package/dist/Max.page-Wsrn5eW7.js +0 -879
- package/dist/MostSoldCountries-OUgnwg50.js +0 -22
- package/dist/NA-5FKNjRGT-B8UYCp8y.js +0 -16
- package/dist/NC-CFW4iaQd-THXYv7z3.js +0 -16
- package/dist/NE-DpLZJa7D-AIT8efnE.js +0 -16
- package/dist/NF-BT-wIfwf-B330lVcq.js +0 -16
- package/dist/NG-BAiR_q0H-BotKIMxx.js +0 -16
- package/dist/NI-DylPDojG-Cs7ubNz6.js +0 -16
- package/dist/NL-iozeFKPM-DSxNkGsb.js +0 -16
- package/dist/NO-CfaYWvM--CW0AtsUl.js +0 -16
- package/dist/NP-BGR_ZaqA-B0Te2QFl.js +0 -16
- package/dist/NR-DHGW5Y3Q-DkXW04Yp.js +0 -16
- package/dist/NU-CcpcSx_x-4WAk8EVn.js +0 -16
- package/dist/NZ-DDYt6DcJ-SCtQ2Fjl.js +0 -16
- package/dist/OM-D6hiar1r-Do5C9hhX.js +0 -16
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-DYjHFZdg.js +0 -790
- package/dist/OrderStatusChip-DHGRmdwN.js +0 -30
- package/dist/Orders.page-DAo2RY8I.js +0 -1636
- package/dist/OrdersChartDataContent-D0A7inHp.js +0 -221
- package/dist/OrdersDetails.page-CCcbEH70.js +0 -6194
- package/dist/PA-Bi2blxjJ-DmsI4Xl4.js +0 -16
- package/dist/PE-D4DjQOlP-Cy7dZrWM.js +0 -16
- package/dist/PF-DmOSfnYB-BPRSKvk5.js +0 -16
- package/dist/PG-DeOlZ7TA-m_lPpJfJ.js +0 -16
- package/dist/PH-Dv4KdxU--C8XQn74T.js +0 -16
- package/dist/PK-CRhM95F8-CkfgwSm9.js +0 -16
- package/dist/PL-BIdMQAtx-6kxLPpdQ.js +0 -16
- package/dist/PM-BDa53dEz-DOjaan2K.js +0 -16
- package/dist/PN-Csu7Dufn-e8yiBO0P.js +0 -16
- package/dist/PR-C_Acdbc_-BNFGvQr3.js +0 -16
- package/dist/PS-Dmg0ofZr-CagyKkmp.js +0 -16
- package/dist/PT-Bsck4nv8-CKd7uK_y.js +0 -16
- package/dist/PW-CBMqjpxh-C0l_DEJv.js +0 -16
- package/dist/PY-Be6zNh15-Bjh0fLw5.js +0 -16
- package/dist/PaymentsLinks-Ds5Kus76.js +0 -675
- package/dist/QA-CZmcW85r-CyxMr09N.js +0 -16
- package/dist/RE-CFW4iaQd-pZ5KKcv2.js +0 -16
- package/dist/RO-6H4O-gQF-D2WY9AlF.js +0 -16
- package/dist/RS-DM7vMnHL-DpWcYJcY.js +0 -16
- package/dist/RU-HqKQeTq2-DhwONlhK.js +0 -16
- package/dist/RW-DkH4VhfP-Dj6hCu8v.js +0 -16
- package/dist/RecurringSubscription-4Ke21QzF.js +0 -639
- package/dist/RecurringSubscriptionDashView-VbX17v7b.js +0 -2051
- package/dist/RefundChargeback-CdfK3xeK.js +0 -97
- package/dist/RiskPendenciesInternalService-BRo6qww1.js +0 -145
- package/dist/SA-C2hBi4Lh-B2gbgvyq.js +0 -16
- package/dist/SB-CBu9QLGP-nO6euriA.js +0 -16
- package/dist/SC-CR6esM-V-BANDs0pf.js +0 -16
- package/dist/SD-VCXqBHrW-TIyey0aI.js +0 -16
- package/dist/SE-DbI0jJm9-SwVZlpuU.js +0 -16
- package/dist/SG-DgprfMyV-n-WJof_p.js +0 -16
- package/dist/SH-qhjKl9TO-cznpOjq1.js +0 -16
- package/dist/SI-C3dA03Yk-BJLCmeoz.js +0 -16
- package/dist/SJ-CfaYWvM--DPm4dGJD.js +0 -16
- package/dist/SK-CxbHN7aU-Db7fuCCR.js +0 -16
- package/dist/SL-GXAaRXng-DSPkoCGK.js +0 -16
- package/dist/SM-B2SteTdO-xotdriag.js +0 -16
- package/dist/SN-B7Q__Lx_-BwT5l8fa.js +0 -16
- package/dist/SO-Bnd5-U9z-CqhkqzoF.js +0 -16
- package/dist/SR-BHMDOkL2-DXGPmhZQ.js +0 -16
- package/dist/SS-CsTgWca1-D3Sv5pNF.js +0 -16
- package/dist/ST-DLqO0boT-BL-wF0DJ.js +0 -16
- package/dist/SV-DNZizmQg-B86lQ6bK.js +0 -16
- package/dist/SX-DWuXjLwS-QUXuRLhC.js +0 -16
- package/dist/SY-DeOQEBum-krZDQPHO.js +0 -16
- package/dist/SZ-Bhe0qU5K-CDw_RnsW.js +0 -16
- package/dist/SalesRecovery-Dyg7juXK.js +0 -595
- package/dist/SalesRecoveryIA-Do1ZAduv.js +0 -199
- package/dist/SendCustomerRefundLinkPage-Bn1s8vNj.js +0 -137
- package/dist/StatusDescriptionModal-B0gqdNUD.js +0 -60
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-CcHmc4n_.js +0 -28
- package/dist/TC-D5HTaKiF-BfWaRA3k.js +0 -16
- package/dist/TD-DyIWvaGg-DJBZh7ov.js +0 -16
- package/dist/TF-BRsv64iE-B_H5UzEq.js +0 -16
- package/dist/TG-OhNa5jmt-Cx89-dKO.js +0 -16
- package/dist/TH-F_ODV0JW-B4ixIFdR.js +0 -16
- package/dist/TJ-BFkbbSmN-DAK9pQfp.js +0 -16
- package/dist/TK-Ct75yy7V-D8UxHk5l.js +0 -16
- package/dist/TL-BzqVkHGw-f8AkEJH9.js +0 -16
- package/dist/TM-CCAvd8qV-DK0oWEdt.js +0 -16
- package/dist/TN-CmYqbPEz-BZ7_55eX.js +0 -16
- package/dist/TO-BQQk9Xq_-O9ST7HBL.js +0 -16
- package/dist/TR-_MKkCnUV-D9yhA0fC.js +0 -16
- package/dist/TT-DoRURl1c-9AMRcYAs.js +0 -16
- package/dist/TV-Dt8uZCP4-Ciz5NBXy.js +0 -16
- package/dist/TW-CvHugvex-DJ-PgP1Q.js +0 -16
- package/dist/TZ-RbwBgiwb-DsUQptdr.js +0 -16
- package/dist/TestView-CoNHg5kz.js +0 -14
- package/dist/TopSellingProductsContent-8aG34yzb.js +0 -80
- package/dist/UA-BiXHPMqV-BvDqXnJz.js +0 -16
- package/dist/UG--it_LhSj-sFuco6b5.js +0 -16
- package/dist/UM-BFcTdeDD-BZwik-Yp.js +0 -16
- package/dist/US-BFcTdeDD-BZwik-Yp.js +0 -16
- package/dist/UY-C26Ndi4P-CqyLNxMb.js +0 -16
- package/dist/UZ-BK5ADwFW-qpklGA_t.js +0 -16
- package/dist/UserIndicationsPage-BhAILynR.js +0 -743
- package/dist/VA-Cpq1n4yW-BxejKPbA.js +0 -16
- package/dist/VC-D1Fjbog5-BNr1Lk13.js +0 -16
- package/dist/VE-CeM-hea7-BGJPMOxu.js +0 -16
- package/dist/VG-qhjKl9TO-BQp7M0Sd.js +0 -16
- package/dist/VI-C-kcu42_-BUg4eK_I.js +0 -16
- package/dist/VN-2yoryeK1-CEkevqcH.js +0 -16
- package/dist/VU-CkLlsgzP-DFLJMF1R.js +0 -16
- package/dist/WF-BDa53dEz-Drty27mK.js +0 -16
- package/dist/WS-CNi2O6Qm-Dlweifxp.js +0 -16
- package/dist/WhatsappPreview.vue_vue_type_script_setup_true_lang-BwCqzrRc.js +0 -157
- package/dist/WithdrawAdvance-CYerqBKQ.js +0 -17
- package/dist/WithdrawBalanceStore-CQg7amrj.js +0 -504
- package/dist/WithdrawBankAccountStore-DX-jevJk.js +0 -130
- package/dist/WithdrawBlocked-CIcJt_S2.js +0 -133
- package/dist/WithdrawCompanyStore-D1LMIFjS.js +0 -80
- package/dist/WithdrawGuaranteeExtract-KQE2DEn8.js +0 -980
- package/dist/WithdrawHome-BCsf3pfm.js +0 -1843
- package/dist/WithdrawHome-DmbpWKbk.js +0 -2448
- package/dist/WithdrawInternational-CRAJv4Hn.js +0 -17
- package/dist/WithdrawMaxStore-BAIZd300.js +0 -375
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-DFsRDUp1.js +0 -531
- package/dist/WithdrawNoAccountWarning-XSobBzMy.js +0 -233
- package/dist/WithdrawPermissionGuard-BYcwLoVl.js +0 -338
- package/dist/WithdrawRequest-BLUqt5Y7.js +0 -17
- package/dist/WithdrawRequest-DzH7LJmQ.js +0 -944
- package/dist/WithdrawRequestDetail-DYip8D-t.js +0 -284
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-D8vtEiWf.js +0 -937
- package/dist/YE-DxPZysMs-DYCiQPZP.js +0 -16
- package/dist/YT-BMJJ1U_T-U9e1Xpdm.js +0 -16
- package/dist/ZA-BjQXS8mc-Bp78u2Bz.js +0 -16
- package/dist/ZM-Dw0PmMTO-D2f43Val.js +0 -16
- package/dist/ZW-D0UStZMr-BWybgpCi.js +0 -16
- package/dist/affiliate-Bgt9fadK-BqznsEtQ.js +0 -22
- package/dist/amex-CvNwRHhS-BZSsO13o.js +0 -16
- package/dist/api-BKIVPFWs.js +0 -11
- package/dist/apple_pay-DtsAzVjF-BnClXCQN.js +0 -20
- package/dist/archive-CFoPOir7-Ay5Ozrd6.js +0 -18
- package/dist/aura-D1VyKb6w-X8zQZJx0.js +0 -23
- package/dist/boleto-BQZRi0Q5-CM38orCC.js +0 -18
- package/dist/box-DNrK38w2-BGvcmwym.js +0 -20
- package/dist/cart-p5jccB8o-DlmI_CL9.js +0 -15
- package/dist/cash-FZcelZV1-DgjQ1CS9.js +0 -20
- package/dist/chart-YJ27XOr3-GpMoR3xv.js +0 -22
- package/dist/credit_card-CGrPYCJP-DSKtiZfQ.js +0 -15
- package/dist/csv-CYa6aPS5-BVN35YHe.js +0 -18
- package/dist/dayjs.min-HcswLunO.js +0 -282
- package/dist/diners-CN_1suUM-DNtglNpF.js +0 -26
- package/dist/discover-vVTOFEvv-Bf9_6xab.js +0 -22
- package/dist/ds-appmax-v322-B84Nda6_.js +0 -52
- package/dist/ds-appmax-v327-C-tMWYQC.js +0 -69
- package/dist/ds-appmax-v330-Dgwh41Yf.js +0 -48
- package/dist/ds-appmax-v335-CxVys9Ba.js +0 -278
- package/dist/elo-BaNbqhYS-atYKgxHL.js +0 -15
- package/dist/gear-BHOWpd7b-BCbgqlWn.js +0 -18
- package/dist/grid-B7I0mWry-kQuigUkh.js +0 -18
- package/dist/hipercard-DBsszwxC-BQr9Cl-8.js +0 -22
- package/dist/index-180Y1Q-r.js +0 -219
- package/dist/index-2G-qDXOK.js +0 -117
- package/dist/index-4OVsD776.js +0 -1567
- package/dist/index-6P0AlhYO.js +0 -681
- package/dist/index-7K9xS9uV.js +0 -4133
- package/dist/index-B--4ggEd.js +0 -11
- package/dist/index-B-VeRV9c.js +0 -217
- package/dist/index-BWM7yogq.js +0 -409
- package/dist/index-Bk4ewGjZ.js +0 -9812
- package/dist/index-BmD-b1Vb.js +0 -21
- package/dist/index-BnW_rBKV.js +0 -1790
- package/dist/index-BuhhWAF3.js +0 -106
- package/dist/index-BwTQiHqh.js +0 -67
- package/dist/index-C-awpmH8.js +0 -200
- package/dist/index-CMmGzkmj.js +0 -35
- package/dist/index-CYJLcDEY.js +0 -92
- package/dist/index-Ceko7aFo.js +0 -534
- package/dist/index-CfW5_MvI.js +0 -159
- package/dist/index-CgZB21hk.js +0 -808
- package/dist/index-Cgw7OfyR.js +0 -173
- package/dist/index-Clnibkfu.js +0 -230
- package/dist/index-CoRGzkYM.js +0 -219
- package/dist/index-D2-dDeE-.js +0 -153
- package/dist/index-D4pC3ejC.js +0 -721
- package/dist/index-D5_j2mLJ.js +0 -332
- package/dist/index-DOXR6E2i.js +0 -275
- package/dist/index-D_YRRkRu.js +0 -1433
- package/dist/index-D_jqKYa2.js +0 -28
- package/dist/index-Dk27hJdz.js +0 -169
- package/dist/index-Du1MLq0u.js +0 -62
- package/dist/index-DxsjW7_d.js +0 -961
- package/dist/index-WEmuoR4Y.js +0 -18
- package/dist/index-auPkDCYk.js +0 -83
- package/dist/index-mAXBYsWz.js +0 -21
- package/dist/index.page-xHHXfScb.js +0 -828
- package/dist/infos-8KGPLXoE-CDu9JlcP.js +0 -18
- package/dist/integrations-UOltVEyj-Bue2OE6g.js +0 -19
- package/dist/logs-Ce3fZY0v-NLNj7L7k.js +0 -28
- package/dist/maestro-BMomgHxO-CChi46_9.js +0 -27
- package/dist/main-Cykj4Wra.js +0 -103911
- package/dist/mastercard-5I-dcOVV-JD0LVYGn.js +0 -30
- package/dist/max_brand-Crj-SFUw-CRfJQ0A9.js +0 -29
- package/dist/max_brand_active-BIkS5qkP-o5CAxnif.js +0 -27
- package/dist/max_brand_negative-BxvdIegN-CpY-hcoN.js +0 -30
- package/dist/menu.page-Zan3PUjZ.js +0 -274
- package/dist/money-DZpB5eTf-HUfG16zq.js +0 -19
- package/dist/notification-DMezLtAj-D49QSd4t.js +0 -18
- package/dist/paypal-DMYjfEw0-S1gMeQlc.js +0 -15
- package/dist/pix-DXdX91yj-DJN8T99U.js +0 -22
- package/dist/pix_outline-D_xXXgCN-CGylqqA8.js +0 -16
- package/dist/pusher-BkeTP9gx.js +0 -4010
- package/dist/shield-DS-Xf4WH-Okm3gsKH.js +0 -15
- package/dist/solid_help-DNaqfgoc-Dlj2n3c2.js +0 -20
- package/dist/solid_home-BDUiJDVY-DRWAjKit.js +0 -18
- package/dist/solid_leaderboard-DtqK7q9Y-Dd0zy9Mo.js +0 -18
- package/dist/solid_store-Cfv6o4b8-BfNv064l.js +0 -18
- package/dist/ticket_icon-DwvyLm7c-D0AD3FNH.js +0 -22
- package/dist/useQueryFilter-CT_vbagS.js +0 -93
- package/dist/useRecurringTable-CUJe9yKu.js +0 -161
- package/dist/user-BRpwqYx8-DNFcA0B9.js +0 -18
- package/dist/validateURL.helper-ORMFGbTa.js +0 -126
- package/dist/visa-tPjWcMbi-BJZpq7jj.js +0 -18
|
@@ -0,0 +1,1636 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { az as toRefs, z as reactive, aL as AxiosError, r as ref, ab as defineComponent, g as createElementBlock, h as openBlock, i as createVNode, w as withCtx, m as createTextVNode, t as toDisplayString, l as unref, y, $, e as computed, bX as isEqualObj, at as useAlertsStore, ap as t, bE as toRaw, bI as CanceledError, a9 as resolveComponent, v as createBlock, F as Fragment, q as renderList, E as mergeProps, n as normalizeClass, j as createBaseVNode, d as useBreakpoint, V as C, G as ApiService, aq as toaster, K as script$3, p as _, k as createCommentVNode, R, aA as isRef, aE as script$4, H as f, ad as userService, bY as delay, bS as B$1, I as withModifiers, aI as script$5, aB as script$6, A as watch, bZ as supportChatHelper, o as onMounted } from "./main-BxSNdVUz.js";
|
|
5
|
+
import { H } from "./AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN--77vmJWuR.js";
|
|
6
|
+
import { a as script, s as script$1 } from "./index-B5D3_Xvi.js";
|
|
7
|
+
import { p as parseDateChipLabel, a as parseSortedChipLabel, l as loadRemoteOrdersStatusPtBR, o as ordersService, _ as _sfc_main$k, b as _sfc_main$l, f as formatAttempDate, c as filterToParams } from "./OrderStatus.vue_vue_type_script_setup_true_lang-BsAfhXp7.js";
|
|
8
|
+
import { u as useQueryFilter } from "./useQueryFilter-B9jobv4G.js";
|
|
9
|
+
import { u as userInteractionsService } from "./index-BeA0UPnd.js";
|
|
10
|
+
import { s as script$2 } from "./index-DbAmAB7j.js";
|
|
11
|
+
import { _ as _sfc_main$m } from "./AmLayoutFeedbackState-Cv5RUrw6.js";
|
|
12
|
+
import { P as Pusher } from "./pusher-Dk_QQo3l.js";
|
|
13
|
+
import { O as OrderStatusChip } from "./OrderStatusChip-DjUvy8Gk.js";
|
|
14
|
+
import { z } from "./index-Dq110QZ7.js";
|
|
15
|
+
import { b, k as ke } from "./index-B50N-W-a.js";
|
|
16
|
+
import { B } from "./index-GylxZXuC.js";
|
|
17
|
+
import { b as script$7, s as script$8, a as script$9 } from "./index-BWlCj_o_.js";
|
|
18
|
+
import { s as script$a } from "./index-DhRYkSPC.js";
|
|
19
|
+
import { A as AmCardV3 } from "./AmCardV3-Bay9-BBN.js";
|
|
20
|
+
const TRANSPARENCY_MODAL_INTERACTION = "transparency-modal";
|
|
21
|
+
const ordersNotificationState = reactive({
|
|
22
|
+
elasticDisabled: false,
|
|
23
|
+
shopifyAntifraudMissing: false,
|
|
24
|
+
checkedTransparencyModalInteraction: false,
|
|
25
|
+
showTransparencyModal: false
|
|
26
|
+
});
|
|
27
|
+
const checkTransparencyModal$1 = async (orders) => {
|
|
28
|
+
try {
|
|
29
|
+
if (ordersNotificationState.checkedTransparencyModalInteraction) return;
|
|
30
|
+
if (!orders.length) return;
|
|
31
|
+
const hasRefusalRisk = orders.some((order) => order.status === "recusado_por_risco");
|
|
32
|
+
if (!hasRefusalRisk) return;
|
|
33
|
+
const { occurred } = await userInteractionsService.get(TRANSPARENCY_MODAL_INTERACTION);
|
|
34
|
+
ordersNotificationState.checkedTransparencyModalInteraction = occurred;
|
|
35
|
+
} catch (error) {
|
|
36
|
+
if (!(error instanceof AxiosError)) throw error;
|
|
37
|
+
if (error.request.status === 404) {
|
|
38
|
+
ordersNotificationState.showTransparencyModal = true;
|
|
39
|
+
ordersNotificationState.checkedTransparencyModalInteraction = true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const assignTransparencyModalInteraction = async () => {
|
|
44
|
+
try {
|
|
45
|
+
await userInteractionsService.markAsOccurred(TRANSPARENCY_MODAL_INTERACTION);
|
|
46
|
+
} catch {
|
|
47
|
+
console.error("Error marking transparency modal interaction as occurred");
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const useOrdersNotification = () => ({
|
|
51
|
+
...toRefs(ordersNotificationState),
|
|
52
|
+
checkTransparencyModal: checkTransparencyModal$1,
|
|
53
|
+
assignTransparencyModalInteraction
|
|
54
|
+
});
|
|
55
|
+
const chips = ref([]);
|
|
56
|
+
const getLabelFromFieldOptions = (fields2) => (name, value) => {
|
|
57
|
+
const field = fields2.find((f2) => f2.name === name);
|
|
58
|
+
if (!field) return;
|
|
59
|
+
const option = field.options.find((o) => o.value === value);
|
|
60
|
+
if (!option) return;
|
|
61
|
+
return option.label;
|
|
62
|
+
};
|
|
63
|
+
const updateChips$1 = (fields2, filter2, term) => {
|
|
64
|
+
const newChips = [];
|
|
65
|
+
if (term.length) {
|
|
66
|
+
newChips.push(...term.map((value) => ({ name: "term", value })));
|
|
67
|
+
}
|
|
68
|
+
const valueToChip = (name, value) => {
|
|
69
|
+
const label = getLabelFromFieldOptions(fields2)(name, value);
|
|
70
|
+
return { name, value, label };
|
|
71
|
+
};
|
|
72
|
+
for (const name in filter2) {
|
|
73
|
+
const value = filter2[name];
|
|
74
|
+
if (name === "tab") continue;
|
|
75
|
+
if (name === "date") {
|
|
76
|
+
newChips.push({ name, value: parseDateChipLabel(value) });
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (name === "sorted") {
|
|
80
|
+
const [orderBy, sortedBy] = value;
|
|
81
|
+
newChips.push({ name, value: parseSortedChipLabel(orderBy, sortedBy) });
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (name === "trackingCode" && value === true) {
|
|
85
|
+
newChips.push({ name, value: "orders.filter.presets.options.pending_tracking_codes" });
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (name === "giftmax" && value === true) {
|
|
89
|
+
newChips.push({ name, value: "orders.filter.options.more.giftmax" });
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
if (Array.isArray(value)) {
|
|
93
|
+
newChips.push(...value.map((v) => valueToChip(name, v)));
|
|
94
|
+
} else {
|
|
95
|
+
newChips.push(valueToChip(name, value));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
chips.value = newChips;
|
|
99
|
+
};
|
|
100
|
+
const onRemoveChip$1 = (chip, filter2, term) => {
|
|
101
|
+
if (chip.name === "term") {
|
|
102
|
+
return { ...filter2, term: term.filter((t2) => t2 !== chip.value), page: 1 };
|
|
103
|
+
}
|
|
104
|
+
if (chip.name === "date") {
|
|
105
|
+
return { ...filter2, date: void 0, page: 1 };
|
|
106
|
+
}
|
|
107
|
+
if (chip.name === "sorted") {
|
|
108
|
+
return { ...filter2, sorted: void 0, page: 1 };
|
|
109
|
+
}
|
|
110
|
+
const newFilter = {};
|
|
111
|
+
const value = filter2[chip.name];
|
|
112
|
+
if (Array.isArray(value)) {
|
|
113
|
+
newFilter[chip.name] = value.filter((v) => v !== chip.value);
|
|
114
|
+
} else {
|
|
115
|
+
newFilter[chip.name] = void 0;
|
|
116
|
+
}
|
|
117
|
+
return { ...filter2, ...newFilter, page: 1, term };
|
|
118
|
+
};
|
|
119
|
+
const _hoisted_1$d = {
|
|
120
|
+
"data-test": "antifraud-alert",
|
|
121
|
+
class: "flex md:!flex-row flex-col w-full justify-between gap-4"
|
|
122
|
+
};
|
|
123
|
+
const __default__$h = { name: "OrdersNotificationsAntifraudAlert" };
|
|
124
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
125
|
+
...__default__$h,
|
|
126
|
+
setup(__props) {
|
|
127
|
+
const REDIRECT_URL = "https://apps.shopify.com/appmax-antifraude?locale=pt-BR&st_source=autocomplete";
|
|
128
|
+
return (_ctx, _cache) => {
|
|
129
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
130
|
+
createVNode(unref(y), { "data-test": "antifraud-alert-message" }, {
|
|
131
|
+
default: withCtx(() => [
|
|
132
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.notification.antifraud.alert.message")), 1)
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}),
|
|
136
|
+
createVNode(unref($), {
|
|
137
|
+
size: "small",
|
|
138
|
+
severity: "warn",
|
|
139
|
+
class: "!min-w-fit !h-fit !whitespace-nowrap !w-fit",
|
|
140
|
+
href: REDIRECT_URL,
|
|
141
|
+
target: "_blank",
|
|
142
|
+
"data-test": "antifraud-alert-button",
|
|
143
|
+
label: _ctx.$t("orders.notification.antifraud.alert.button")
|
|
144
|
+
}, null, 8, ["label"])
|
|
145
|
+
]);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
const { addAlert } = useAlertsStore();
|
|
150
|
+
const { checkTransparencyModal } = useOrdersNotification();
|
|
151
|
+
const ordersState = reactive({
|
|
152
|
+
loading: true,
|
|
153
|
+
isInitialized: false,
|
|
154
|
+
error: false,
|
|
155
|
+
orders: [],
|
|
156
|
+
pageSize: 0,
|
|
157
|
+
fields: [],
|
|
158
|
+
term: [],
|
|
159
|
+
page: 1,
|
|
160
|
+
presets: [],
|
|
161
|
+
more: [],
|
|
162
|
+
isSearchDisabled: true,
|
|
163
|
+
hasNextPage: false,
|
|
164
|
+
tab: 0
|
|
165
|
+
});
|
|
166
|
+
const filter = ref({});
|
|
167
|
+
const updateChips = () => updateChips$1(ordersState.fields, filter.value, ordersState.term);
|
|
168
|
+
const queryFilter = useQueryFilter({
|
|
169
|
+
fields: [],
|
|
170
|
+
onChange: async (newFilter) => {
|
|
171
|
+
const { term, page, ...rest } = newFilter;
|
|
172
|
+
ordersState.term = Array.isArray(term) ? term : [];
|
|
173
|
+
ordersState.page = Number(page) || 1;
|
|
174
|
+
ordersState.tab = Number(rest.tab) || 0;
|
|
175
|
+
filter.value = rest;
|
|
176
|
+
updateChips();
|
|
177
|
+
return getOrders();
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
const initializeQueryFilter = async () => {
|
|
181
|
+
queryFilter.configFields([
|
|
182
|
+
...ordersState.fields.map((field) => ({ name: field.name, valueType: field.valueType })),
|
|
183
|
+
{ name: "term", valueType: "string[]" },
|
|
184
|
+
{ name: "page", valueType: "number" },
|
|
185
|
+
{ name: "sorted", valueType: "string[]" },
|
|
186
|
+
{ name: "tab", valueType: "number" },
|
|
187
|
+
{ name: "trackingCode", valueType: "boolean" },
|
|
188
|
+
{ name: "giftmax", valueType: "boolean" }
|
|
189
|
+
]);
|
|
190
|
+
return queryFilter.syncFilter();
|
|
191
|
+
};
|
|
192
|
+
const getOrders = async () => {
|
|
193
|
+
if (!ordersState.isInitialized) return;
|
|
194
|
+
try {
|
|
195
|
+
ordersState.loading = true;
|
|
196
|
+
ordersState.error = false;
|
|
197
|
+
const ordersFilter = getOrdersFilter();
|
|
198
|
+
const result = await ordersService.getOrders(ordersFilter);
|
|
199
|
+
ordersState.orders = result.orders;
|
|
200
|
+
ordersState.pageSize = result.pageSize;
|
|
201
|
+
ordersState.hasNextPage = result.hasNextPage;
|
|
202
|
+
ordersState.isSearchDisabled = !result.elasticEnabled;
|
|
203
|
+
ordersNotificationState.elasticDisabled = !result.elasticEnabled;
|
|
204
|
+
ordersNotificationState.shopifyAntifraudMissing = result.shopifyAntifraudMissing;
|
|
205
|
+
checkTransparencyModal(result.orders);
|
|
206
|
+
if (ordersNotificationState.elasticDisabled) {
|
|
207
|
+
addAlert({
|
|
208
|
+
name: "elasticDisabled",
|
|
209
|
+
severity: "warning",
|
|
210
|
+
description: computed(() => t("orders.notification.elastic.message")).value,
|
|
211
|
+
onlyRoutes: ["orders.home"]
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
if (ordersNotificationState.shopifyAntifraudMissing) {
|
|
215
|
+
addAlert({
|
|
216
|
+
name: "shopifyAntifraudMissing",
|
|
217
|
+
severity: "warning",
|
|
218
|
+
component: toRaw(_sfc_main$j),
|
|
219
|
+
onlyRoutes: ["orders.home"]
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
} catch (error) {
|
|
223
|
+
if (error instanceof CanceledError) return;
|
|
224
|
+
ordersState.error = true;
|
|
225
|
+
} finally {
|
|
226
|
+
ordersState.loading = false;
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const initialize$2 = async () => {
|
|
230
|
+
try {
|
|
231
|
+
await loadRemoteOrdersStatusPtBR();
|
|
232
|
+
const [fields2, filters] = await Promise.all([
|
|
233
|
+
ordersService.getFields(),
|
|
234
|
+
ordersService.getPresetFilters()
|
|
235
|
+
]);
|
|
236
|
+
ordersState.fields = fields2;
|
|
237
|
+
ordersState.presets = filters.presets;
|
|
238
|
+
ordersState.more = filters.more;
|
|
239
|
+
ordersState.isInitialized = true;
|
|
240
|
+
return initializeQueryFilter();
|
|
241
|
+
} catch {
|
|
242
|
+
ordersState.error = true;
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const onSearch = (search) => {
|
|
246
|
+
if (search.length < 3) return;
|
|
247
|
+
const term = ordersState.term.concat(search);
|
|
248
|
+
queryFilter.set({ ...filter.value, term, page: 1 });
|
|
249
|
+
};
|
|
250
|
+
const onChangePage = (page) => {
|
|
251
|
+
if (page === ordersState.page) return;
|
|
252
|
+
queryFilter.set({ ...filter.value, page, term: ordersState.term });
|
|
253
|
+
};
|
|
254
|
+
const onChangeFilter = (newFilter, tab) => {
|
|
255
|
+
if (isEqualObj(newFilter, filter.value)) return;
|
|
256
|
+
queryFilter.set({ ...newFilter, page: 1, term: ordersState.term, tab });
|
|
257
|
+
};
|
|
258
|
+
const getOrdersFilter = () => {
|
|
259
|
+
return {
|
|
260
|
+
...filter.value,
|
|
261
|
+
term: ordersState.term || void 0,
|
|
262
|
+
page: ordersState.page
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
const onSort = (sorted) => {
|
|
266
|
+
queryFilter.set({ ...filter.value, sorted, page: 1, term: ordersState.term });
|
|
267
|
+
};
|
|
268
|
+
const onRemoveChip = (chip) => {
|
|
269
|
+
const newFilter = onRemoveChip$1(chip, filter.value, ordersState.term);
|
|
270
|
+
queryFilter.set(newFilter);
|
|
271
|
+
};
|
|
272
|
+
const showPagination = computed(() => {
|
|
273
|
+
if (ordersState.loading || ordersState.error) return false;
|
|
274
|
+
if (ordersState.isSearchDisabled) return true;
|
|
275
|
+
return ordersState.pageSize > 0;
|
|
276
|
+
});
|
|
277
|
+
const getOrderRouterLink = (order) => {
|
|
278
|
+
return {
|
|
279
|
+
name: "orders.details",
|
|
280
|
+
params: { hash: order.hash }
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
const translateIfKey = (label) => {
|
|
284
|
+
return typeof label === "string" && label.startsWith("orders.") ? t(label) : label;
|
|
285
|
+
};
|
|
286
|
+
const fields = computed(() => {
|
|
287
|
+
return ordersState.fields.map((field) => {
|
|
288
|
+
return {
|
|
289
|
+
...field,
|
|
290
|
+
label: translateIfKey(field.label),
|
|
291
|
+
options: field.options.map((option) => {
|
|
292
|
+
return {
|
|
293
|
+
...option,
|
|
294
|
+
label: translateIfKey(option.label)
|
|
295
|
+
};
|
|
296
|
+
})
|
|
297
|
+
};
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
const useOrdersFilter = () => {
|
|
301
|
+
return {
|
|
302
|
+
...toRefs(ordersState),
|
|
303
|
+
fields,
|
|
304
|
+
filter,
|
|
305
|
+
getOrders,
|
|
306
|
+
onSearch,
|
|
307
|
+
onSort,
|
|
308
|
+
onChangePage,
|
|
309
|
+
onChangeFilter,
|
|
310
|
+
onRemoveChip,
|
|
311
|
+
initialize: initialize$2,
|
|
312
|
+
chips,
|
|
313
|
+
showPagination,
|
|
314
|
+
getOrderRouterLink
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
const __default__$g = { name: "OrdersTable" };
|
|
318
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
319
|
+
...__default__$g,
|
|
320
|
+
setup(__props) {
|
|
321
|
+
const { orders, onSort: onSort2, filter: filter2, getOrderRouterLink: getOrderRouterLink2 } = useOrdersFilter();
|
|
322
|
+
const columns = [
|
|
323
|
+
{
|
|
324
|
+
id: "id",
|
|
325
|
+
header: t("orders.list.table.columns.id"),
|
|
326
|
+
getter: (order) => ({ text: order.id.toString() }),
|
|
327
|
+
className: "w-20"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
id: "client",
|
|
331
|
+
header: t("orders.list.table.columns.client"),
|
|
332
|
+
getter: (order) => ({ title: order.name, text: order.email })
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: "date",
|
|
336
|
+
header: t("orders.list.table.columns.date"),
|
|
337
|
+
getter: (order) => ({ title: order.formattedDate, text: order.formattedDateSince }),
|
|
338
|
+
sortable: true,
|
|
339
|
+
sortField: "id"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: "payment",
|
|
343
|
+
header: t("orders.list.table.columns.payment"),
|
|
344
|
+
getter: (order) => ({
|
|
345
|
+
icon: order.paymentTypeIcon,
|
|
346
|
+
title: order.formattedTotal,
|
|
347
|
+
text: order.paymentTypeLabel,
|
|
348
|
+
giftmax: order.formatedGiftmax,
|
|
349
|
+
cashbackStatus: order.cashbackStatus,
|
|
350
|
+
cashbackStatusLabel: order.cashbackStatusLabel
|
|
351
|
+
}),
|
|
352
|
+
sortable: true,
|
|
353
|
+
sortField: "total"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: "origin",
|
|
357
|
+
header: t("orders.list.table.columns.origin"),
|
|
358
|
+
getter: (order) => ({ icon: order.countryIcon, title: order.countryLabel, text: order.origin })
|
|
359
|
+
}
|
|
360
|
+
];
|
|
361
|
+
const columnStatusPt = {
|
|
362
|
+
columnHeaderContent: {
|
|
363
|
+
class: "flex-row-reverse justify-end",
|
|
364
|
+
bodyCell: { "data-test": `orders-table-column-status` }
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
const sortOrder = computed(() => {
|
|
368
|
+
var _a;
|
|
369
|
+
switch ((_a = filter2.value.sorted) == null ? void 0 : _a[1]) {
|
|
370
|
+
case "asc":
|
|
371
|
+
return 1;
|
|
372
|
+
case "desc":
|
|
373
|
+
return -1;
|
|
374
|
+
default:
|
|
375
|
+
return 0;
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
const sortField = computed(() => {
|
|
379
|
+
var _a;
|
|
380
|
+
return (_a = filter2.value.sorted) == null ? void 0 : _a[0];
|
|
381
|
+
});
|
|
382
|
+
const handleSort = (event) => {
|
|
383
|
+
if (typeof event.sortField !== "string" || typeof event.sortOrder !== "number") return onSort2([]);
|
|
384
|
+
onSort2([event.sortField, event.sortOrder === 1 ? "asc" : "desc"]);
|
|
385
|
+
};
|
|
386
|
+
return (_ctx, _cache) => {
|
|
387
|
+
const _component_router_link = resolveComponent("router-link");
|
|
388
|
+
return openBlock(), createBlock(unref(script), {
|
|
389
|
+
value: unref(orders),
|
|
390
|
+
class: "min-w-full",
|
|
391
|
+
rowHover: "",
|
|
392
|
+
onSort: handleSort,
|
|
393
|
+
removableSort: "",
|
|
394
|
+
sortOrder: sortOrder.value,
|
|
395
|
+
sortField: sortField.value
|
|
396
|
+
}, {
|
|
397
|
+
default: withCtx(() => [
|
|
398
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(columns, ({ id, className, header, getter, sortable, sortField: sortField2 }) => {
|
|
399
|
+
return createVNode(unref(script$1), {
|
|
400
|
+
key: id,
|
|
401
|
+
class: normalizeClass(className),
|
|
402
|
+
header,
|
|
403
|
+
sortable,
|
|
404
|
+
sortField: sortField2,
|
|
405
|
+
pt: { bodyCell: { "data-test": `orders-table-column-${id}`, class: "!p-0" } }
|
|
406
|
+
}, {
|
|
407
|
+
body: withCtx(({ data: order }) => [
|
|
408
|
+
createVNode(_component_router_link, {
|
|
409
|
+
to: unref(getOrderRouterLink2)(order),
|
|
410
|
+
class: "py-3 px-4 flex",
|
|
411
|
+
"data-test": "order-link"
|
|
412
|
+
}, {
|
|
413
|
+
default: withCtx(() => [
|
|
414
|
+
createVNode(_sfc_main$k, mergeProps({ ref_for: true }, getter(order), { "data-test-prefix": id }), null, 16, ["data-test-prefix"])
|
|
415
|
+
]),
|
|
416
|
+
_: 2
|
|
417
|
+
}, 1032, ["to"])
|
|
418
|
+
]),
|
|
419
|
+
_: 2
|
|
420
|
+
}, 1032, ["class", "header", "sortable", "sortField", "pt"]);
|
|
421
|
+
}), 64)),
|
|
422
|
+
createVNode(unref(script$1), {
|
|
423
|
+
header: unref(t)("orders.list.table.columns.status"),
|
|
424
|
+
pt: columnStatusPt,
|
|
425
|
+
class: "w-20"
|
|
426
|
+
}, {
|
|
427
|
+
body: withCtx(({ data: order }) => [
|
|
428
|
+
createVNode(unref(_sfc_main$l), {
|
|
429
|
+
status: order.status,
|
|
430
|
+
"order-id": order.id
|
|
431
|
+
}, null, 8, ["status", "order-id"])
|
|
432
|
+
]),
|
|
433
|
+
header: withCtx(() => [
|
|
434
|
+
createVNode(unref(H), {
|
|
435
|
+
tooltipPosition: "top",
|
|
436
|
+
tooltipText: unref(t)("orders.list.table.helper"),
|
|
437
|
+
color: "surface-300",
|
|
438
|
+
size: "sm"
|
|
439
|
+
}, null, 8, ["tooltipText"])
|
|
440
|
+
]),
|
|
441
|
+
_: 1
|
|
442
|
+
}, 8, ["header"])
|
|
443
|
+
]),
|
|
444
|
+
_: 1
|
|
445
|
+
}, 8, ["value", "sortOrder", "sortField"]);
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
const _hoisted_1$c = { class: "grid gap-4 w-full" };
|
|
450
|
+
const _hoisted_2$5 = { class: "space-y-4" };
|
|
451
|
+
const _hoisted_3$1 = { class: "grid sm:flex justify-between gap-4" };
|
|
452
|
+
const __default__$f = { name: "OrdersTableMobile" };
|
|
453
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
454
|
+
...__default__$f,
|
|
455
|
+
setup(__props) {
|
|
456
|
+
const { orders, getOrderRouterLink: getOrderRouterLink2 } = useOrdersFilter();
|
|
457
|
+
return (_ctx, _cache) => {
|
|
458
|
+
const _component_router_link = resolveComponent("router-link");
|
|
459
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
460
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(orders), (order) => {
|
|
461
|
+
return openBlock(), createBlock(_component_router_link, {
|
|
462
|
+
key: order.id,
|
|
463
|
+
"data-test": "order-link",
|
|
464
|
+
to: unref(getOrderRouterLink2)(order)
|
|
465
|
+
}, {
|
|
466
|
+
default: withCtx(() => [
|
|
467
|
+
createVNode(unref(script$2), null, {
|
|
468
|
+
header: withCtx(() => [
|
|
469
|
+
createVNode(_sfc_main$k, {
|
|
470
|
+
title: `#${order.id}`,
|
|
471
|
+
"data-test-prefix": "order-mobile-id"
|
|
472
|
+
}, null, 8, ["title"])
|
|
473
|
+
]),
|
|
474
|
+
default: withCtx(() => [
|
|
475
|
+
createBaseVNode("div", _hoisted_2$5, [
|
|
476
|
+
createVNode(_sfc_main$k, {
|
|
477
|
+
text: order.formattedDate,
|
|
478
|
+
"data-test-prefix": "date"
|
|
479
|
+
}, null, 8, ["text"]),
|
|
480
|
+
createBaseVNode("div", _hoisted_3$1, [
|
|
481
|
+
createVNode(_sfc_main$k, {
|
|
482
|
+
title: order.name,
|
|
483
|
+
text: order.email,
|
|
484
|
+
"data-test-prefix": "client"
|
|
485
|
+
}, null, 8, ["title", "text"]),
|
|
486
|
+
createVNode(_sfc_main$k, {
|
|
487
|
+
icon: order.paymentTypeIcon,
|
|
488
|
+
title: order.formattedTotal,
|
|
489
|
+
text: order.paymentTypeLabel,
|
|
490
|
+
giftmax: order.formatedGiftmax,
|
|
491
|
+
"data-test-prefix": "payment"
|
|
492
|
+
}, null, 8, ["icon", "title", "text", "giftmax"])
|
|
493
|
+
]),
|
|
494
|
+
createVNode(_sfc_main$k, {
|
|
495
|
+
icon: order.countryIcon,
|
|
496
|
+
title: order.countryLabel,
|
|
497
|
+
text: order.origin,
|
|
498
|
+
"data-test-prefix": "origin"
|
|
499
|
+
}, null, 8, ["icon", "title", "text"]),
|
|
500
|
+
createVNode(unref(_sfc_main$l), {
|
|
501
|
+
status: order.status,
|
|
502
|
+
orderId: order.id
|
|
503
|
+
}, null, 8, ["status", "orderId"])
|
|
504
|
+
])
|
|
505
|
+
]),
|
|
506
|
+
_: 2
|
|
507
|
+
}, 1024)
|
|
508
|
+
]),
|
|
509
|
+
_: 2
|
|
510
|
+
}, 1032, ["to"]);
|
|
511
|
+
}), 128))
|
|
512
|
+
]);
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
const _hoisted_1$b = { class: "text-center pb-11" };
|
|
517
|
+
const __default__$e = { name: "OrdersListError" };
|
|
518
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
519
|
+
...__default__$e,
|
|
520
|
+
setup(__props) {
|
|
521
|
+
const { getOrders: getOrders2 } = useOrdersFilter();
|
|
522
|
+
return (_ctx, _cache) => {
|
|
523
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
524
|
+
createVNode(_sfc_main$m, {
|
|
525
|
+
iconName: "refresh",
|
|
526
|
+
title: _ctx.$t("orders.list.feedbackErrorTitle"),
|
|
527
|
+
text: _ctx.$t("orders.list.feedbackErrorText"),
|
|
528
|
+
class: "max-w-[400px] m-auto my-8"
|
|
529
|
+
}, null, 8, ["title", "text"]),
|
|
530
|
+
createVNode(unref($), {
|
|
531
|
+
icon: "refresh",
|
|
532
|
+
size: "small",
|
|
533
|
+
onClick: unref(getOrders2),
|
|
534
|
+
outlined: ""
|
|
535
|
+
}, {
|
|
536
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
537
|
+
createTextVNode("Tentar novamente")
|
|
538
|
+
])),
|
|
539
|
+
_: 1
|
|
540
|
+
}, 8, ["onClick"])
|
|
541
|
+
]);
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
const _hoisted_1$a = { class: "w-full overflow-x-auto" };
|
|
546
|
+
const __default__$d = { name: "OrdersList" };
|
|
547
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
548
|
+
...__default__$d,
|
|
549
|
+
setup(__props) {
|
|
550
|
+
const isDesktopSize = useBreakpoint("desktop");
|
|
551
|
+
const { loading, error, orders } = useOrdersFilter();
|
|
552
|
+
return (_ctx, _cache) => {
|
|
553
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
554
|
+
unref(error) ? (openBlock(), createBlock(_sfc_main$g, { key: 0 })) : unref(loading) ? (openBlock(), createBlock(unref(C), {
|
|
555
|
+
key: 1,
|
|
556
|
+
isLoading: "",
|
|
557
|
+
class: "m-auto my-36"
|
|
558
|
+
})) : !unref(orders).length ? (openBlock(), createBlock(_sfc_main$m, {
|
|
559
|
+
key: 2,
|
|
560
|
+
iconName: "folder",
|
|
561
|
+
title: _ctx.$t("orders.list.feedbackEmptyTitle"),
|
|
562
|
+
text: _ctx.$t("orders.list.feedbackEmptyText"),
|
|
563
|
+
class: "max-w-[400px] m-auto my-8"
|
|
564
|
+
}, null, 8, ["title", "text"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
565
|
+
unref(isDesktopSize) ? (openBlock(), createBlock(_sfc_main$i, { key: 0 })) : (openBlock(), createBlock(_sfc_main$h, { key: 1 }))
|
|
566
|
+
], 64))
|
|
567
|
+
]);
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
const parseJson = (json) => {
|
|
572
|
+
try {
|
|
573
|
+
return JSON.parse(json);
|
|
574
|
+
} catch {
|
|
575
|
+
return null;
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
class OrdersReintegrateService {
|
|
579
|
+
constructor(apiService) {
|
|
580
|
+
this.apiService = apiService;
|
|
581
|
+
}
|
|
582
|
+
async getData() {
|
|
583
|
+
const emptyData = {
|
|
584
|
+
has: false,
|
|
585
|
+
isRunning: false,
|
|
586
|
+
uuid: "",
|
|
587
|
+
quantity: 0,
|
|
588
|
+
updatedAt: "",
|
|
589
|
+
disabled: true
|
|
590
|
+
};
|
|
591
|
+
try {
|
|
592
|
+
const has = await this.has();
|
|
593
|
+
if (!has) return { ...emptyData, has };
|
|
594
|
+
const { isRunning, uuid, disabled } = await this.checkStatus();
|
|
595
|
+
const { quantity, updatedAt } = await this.getLastAttempt();
|
|
596
|
+
return { has, disabled, isRunning, uuid, quantity, updatedAt };
|
|
597
|
+
} catch (error) {
|
|
598
|
+
console.error(error);
|
|
599
|
+
return emptyData;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
async reintegrateAll() {
|
|
603
|
+
try {
|
|
604
|
+
const route = "/api/orders/reintegrate";
|
|
605
|
+
const payload = { ordersHashs: [] };
|
|
606
|
+
await this.apiService.post(route, payload);
|
|
607
|
+
const uuid = await this.getUUID();
|
|
608
|
+
return { uuid, error: false };
|
|
609
|
+
} catch (error) {
|
|
610
|
+
console.error(error);
|
|
611
|
+
return { uuid: "", error: true };
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
async checkStatus() {
|
|
615
|
+
try {
|
|
616
|
+
const route = "/api/orders/check-reintegrate";
|
|
617
|
+
const { data } = await this.apiService.get(route);
|
|
618
|
+
const { is_running, uuid, is_employee } = data.data;
|
|
619
|
+
return {
|
|
620
|
+
isRunning: is_running,
|
|
621
|
+
uuid: uuid || "",
|
|
622
|
+
disabled: !!is_employee
|
|
623
|
+
};
|
|
624
|
+
} catch (error) {
|
|
625
|
+
return {
|
|
626
|
+
isRunning: false,
|
|
627
|
+
uuid: "",
|
|
628
|
+
disabled: true
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
async getLastAttempt() {
|
|
633
|
+
try {
|
|
634
|
+
const route = "/api/orders/get-total-reintegrate-last-attempt";
|
|
635
|
+
const { data } = await this.apiService.get(route);
|
|
636
|
+
const message = parseJson(data.data.message);
|
|
637
|
+
const quantity = Number(message == null ? void 0 : message.ini_orders_pending_integration_quantity) || 0;
|
|
638
|
+
const { updated_at: updatedAt } = data.data;
|
|
639
|
+
return { quantity, updatedAt: formatAttempDate(updatedAt) };
|
|
640
|
+
} catch (error) {
|
|
641
|
+
return { quantity: 0, updatedAt: "" };
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
async getUUID() {
|
|
645
|
+
try {
|
|
646
|
+
const route = "/api/orders/get-pusher-uuid";
|
|
647
|
+
const { data } = await this.apiService.get(route);
|
|
648
|
+
return data.data || "";
|
|
649
|
+
} catch (error) {
|
|
650
|
+
return "";
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
async has() {
|
|
654
|
+
try {
|
|
655
|
+
const route = "/api/order-statuses/exists-pending-integration";
|
|
656
|
+
const response = await this.apiService.get(route);
|
|
657
|
+
return response.data.data.exists;
|
|
658
|
+
} catch (error) {
|
|
659
|
+
return false;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
const ordersReintegrateService = new OrdersReintegrateService(ApiService);
|
|
664
|
+
const pusher_key = "13180f6f668fb558d0c1";
|
|
665
|
+
const PUSHER_CLUSTER = "mt1";
|
|
666
|
+
const PUSHER_EVENT = "notify.order-integrated";
|
|
667
|
+
class OrdersPendingIntegratePusher {
|
|
668
|
+
constructor() {
|
|
669
|
+
__publicField(this, "pusher");
|
|
670
|
+
this.pusher = new Pusher(pusher_key, { cluster: PUSHER_CLUSTER });
|
|
671
|
+
}
|
|
672
|
+
on(uuid, callback) {
|
|
673
|
+
this.subscribe(uuid, PUSHER_EVENT, (data) => {
|
|
674
|
+
try {
|
|
675
|
+
callback(data);
|
|
676
|
+
} catch {
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
off(channel) {
|
|
681
|
+
this.unsubscribe(channel);
|
|
682
|
+
}
|
|
683
|
+
subscribe(channel, event, callback) {
|
|
684
|
+
this.pusher.subscribe(channel).bind(event, callback);
|
|
685
|
+
}
|
|
686
|
+
unsubscribe(channel) {
|
|
687
|
+
this.pusher.unsubscribe(channel);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
const ordersPendingIntegratePusher = new OrdersPendingIntegratePusher();
|
|
691
|
+
const initialized = ref(false);
|
|
692
|
+
const state$1 = reactive({
|
|
693
|
+
has: false,
|
|
694
|
+
isRunning: false,
|
|
695
|
+
uuid: "",
|
|
696
|
+
quantity: 0,
|
|
697
|
+
updatedAt: "",
|
|
698
|
+
disabled: true
|
|
699
|
+
});
|
|
700
|
+
const listenReintegrateProcess = async () => {
|
|
701
|
+
if (!state$1.uuid) return;
|
|
702
|
+
state$1.disabled = true;
|
|
703
|
+
ordersPendingIntegratePusher.on(state$1.uuid, (data) => {
|
|
704
|
+
var _a;
|
|
705
|
+
const quantity = Number((_a = data == null ? void 0 : data.message) == null ? void 0 : _a.orders_integrateds) || 0;
|
|
706
|
+
if (!quantity) return;
|
|
707
|
+
state$1.quantity = quantity;
|
|
708
|
+
state$1.updatedAt = (/* @__PURE__ */ new Date()).toISOString().replace(/T/, " às ").replace(/\..*/, "");
|
|
709
|
+
state$1.isRunning = false;
|
|
710
|
+
toaster.success({
|
|
711
|
+
title: t("orders.notification.reintegrate.feedback.successTitle"),
|
|
712
|
+
message: t("orders.notification.reintegrate.feedback.successTitle", { quantity })
|
|
713
|
+
});
|
|
714
|
+
});
|
|
715
|
+
};
|
|
716
|
+
const runReintegrate = async () => {
|
|
717
|
+
try {
|
|
718
|
+
state$1.isRunning = true;
|
|
719
|
+
const { uuid, error } = await ordersReintegrateService.reintegrateAll();
|
|
720
|
+
if (!uuid || error) {
|
|
721
|
+
throw new Error("Error reintegrating orders");
|
|
722
|
+
}
|
|
723
|
+
state$1.uuid = uuid;
|
|
724
|
+
listenReintegrateProcess();
|
|
725
|
+
} catch (error) {
|
|
726
|
+
console.error("Reintegrate error:", error);
|
|
727
|
+
state$1.isRunning = false;
|
|
728
|
+
toaster.error("Erro ao reintegrar pedidos");
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
const initialize$1 = async () => {
|
|
732
|
+
try {
|
|
733
|
+
initialized.value = true;
|
|
734
|
+
const data = await ordersReintegrateService.getData();
|
|
735
|
+
Object.assign(state$1, data);
|
|
736
|
+
if (state$1.isRunning) {
|
|
737
|
+
return listenReintegrateProcess();
|
|
738
|
+
}
|
|
739
|
+
} catch {
|
|
740
|
+
state$1.has = false;
|
|
741
|
+
state$1.disabled = true;
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
const useOrdersReintegrate = () => {
|
|
745
|
+
if (!initialized.value) initialize$1();
|
|
746
|
+
return {
|
|
747
|
+
...toRefs(state$1),
|
|
748
|
+
show: computed(() => {
|
|
749
|
+
var _a, _b;
|
|
750
|
+
return state$1.has && !!((_b = (_a = filter.value) == null ? void 0 : _a.status) == null ? void 0 : _b.includes("pendente_integracao"));
|
|
751
|
+
}),
|
|
752
|
+
runReintegrate,
|
|
753
|
+
initialize: initialize$1
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
const _hoisted_1$9 = { class: "flex flex-col gap-6" };
|
|
757
|
+
const _hoisted_2$4 = { class: "flex gap-6" };
|
|
758
|
+
const __default__$c = { name: "OrdersNotificationsAntifraud" };
|
|
759
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
760
|
+
...__default__$c,
|
|
761
|
+
setup(__props) {
|
|
762
|
+
const showModal = ref(true);
|
|
763
|
+
const APPMAX_LOGO = "https://admin.appmax.com.br/assets/admin/img/positive-appmax-logo.svg?v=20250212";
|
|
764
|
+
const REDIRECT_URL = "https://apps.shopify.com/appmax-antifraude?locale=pt-BR&st_source=autocomplete";
|
|
765
|
+
return (_ctx, _cache) => {
|
|
766
|
+
return openBlock(), createBlock(unref(script$3), {
|
|
767
|
+
visible: showModal.value,
|
|
768
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => showModal.value = $event),
|
|
769
|
+
modal: "",
|
|
770
|
+
header: _ctx.$t("orders.notification.antifraud.modal.header"),
|
|
771
|
+
class: "max-w-lg w-[90%]"
|
|
772
|
+
}, {
|
|
773
|
+
default: withCtx(() => [
|
|
774
|
+
createBaseVNode("div", _hoisted_1$9, [
|
|
775
|
+
createVNode(unref(y), {
|
|
776
|
+
variant: "subtitle",
|
|
777
|
+
class: "text-muted-color-emphasis",
|
|
778
|
+
"data-test": "antifraud-modal-header-subtitle"
|
|
779
|
+
}, {
|
|
780
|
+
default: withCtx(() => [
|
|
781
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.notification.antifraud.modal.subtitle")), 1)
|
|
782
|
+
]),
|
|
783
|
+
_: 1
|
|
784
|
+
}),
|
|
785
|
+
createBaseVNode("div", _hoisted_2$4, [
|
|
786
|
+
createBaseVNode("img", {
|
|
787
|
+
alt: "Logo AppMax",
|
|
788
|
+
src: APPMAX_LOGO,
|
|
789
|
+
class: "object-contain",
|
|
790
|
+
"data-test": "antifraud-modal-logo"
|
|
791
|
+
}),
|
|
792
|
+
createBaseVNode("div", null, [
|
|
793
|
+
createVNode(unref(y), {
|
|
794
|
+
variant: "subtitle",
|
|
795
|
+
isStrong: "",
|
|
796
|
+
"data-test": "antifraud-modal-title"
|
|
797
|
+
}, {
|
|
798
|
+
default: withCtx(() => [
|
|
799
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.notification.antifraud.modal.title")), 1)
|
|
800
|
+
]),
|
|
801
|
+
_: 1
|
|
802
|
+
}),
|
|
803
|
+
createVNode(unref(y), { "data-test": "antifraud-modal-text" }, {
|
|
804
|
+
default: withCtx(() => [
|
|
805
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.notification.antifraud.modal.text")), 1)
|
|
806
|
+
]),
|
|
807
|
+
_: 1
|
|
808
|
+
})
|
|
809
|
+
])
|
|
810
|
+
]),
|
|
811
|
+
createVNode(unref($), {
|
|
812
|
+
size: "small",
|
|
813
|
+
href: REDIRECT_URL,
|
|
814
|
+
target: "_blank",
|
|
815
|
+
label: _ctx.$t("orders.notification.antifraud.modal.button"),
|
|
816
|
+
class: "self-end",
|
|
817
|
+
"data-test": "antifraud-modal-button"
|
|
818
|
+
}, null, 8, ["label"])
|
|
819
|
+
])
|
|
820
|
+
]),
|
|
821
|
+
_: 1
|
|
822
|
+
}, 8, ["visible", "header"]);
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
const _hoisted_1$8 = { class: "flex flex-col gap-6" };
|
|
827
|
+
const _hoisted_2$3 = { class: "d-flex justify-center gap-3" };
|
|
828
|
+
const __default__$b = { name: "OrdersNotificationsReintegrate" };
|
|
829
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
830
|
+
...__default__$b,
|
|
831
|
+
setup(__props) {
|
|
832
|
+
const { runReintegrate: runReintegrate2, isRunning, quantity, updatedAt, disabled } = useOrdersReintegrate();
|
|
833
|
+
const showModal = ref(false);
|
|
834
|
+
const openModal = () => showModal.value = true;
|
|
835
|
+
const closeModal = () => showModal.value = false;
|
|
836
|
+
const handleConfirm = () => {
|
|
837
|
+
closeModal();
|
|
838
|
+
runReintegrate2();
|
|
839
|
+
};
|
|
840
|
+
const HELPER_HREF = "https://help.appmax.com.br/pt-br/central-de-ajuda/como-resolver-pendentes-de-integra%C3%A7%C3%A3o";
|
|
841
|
+
return (_ctx, _cache) => {
|
|
842
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
843
|
+
createVNode(unref(R), {
|
|
844
|
+
title: _ctx.$t("orders.notification.reintegrate.title"),
|
|
845
|
+
dataTestPrefix: "reintegrate"
|
|
846
|
+
}, {
|
|
847
|
+
default: withCtx(() => [
|
|
848
|
+
createVNode(unref(y), null, {
|
|
849
|
+
default: withCtx(() => [
|
|
850
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.notification.reintegrate.message")) + " ", 1),
|
|
851
|
+
createBaseVNode("a", {
|
|
852
|
+
href: HELPER_HREF,
|
|
853
|
+
target: "_blank",
|
|
854
|
+
class: "font-bold"
|
|
855
|
+
}, toDisplayString(_ctx.$t("orders.notification.reintegrate.link")), 1)
|
|
856
|
+
]),
|
|
857
|
+
_: 1
|
|
858
|
+
}),
|
|
859
|
+
unref(updatedAt) ? (openBlock(), createBlock(unref(y), {
|
|
860
|
+
key: 0,
|
|
861
|
+
class: "mt-2"
|
|
862
|
+
}, {
|
|
863
|
+
default: withCtx(() => [
|
|
864
|
+
createBaseVNode("span", null, toDisplayString(_ctx.$t("orders.notification.reintegrate.updatedAt", { updatedAt: unref(updatedAt) })), 1),
|
|
865
|
+
createBaseVNode("strong", null, toDisplayString(_ctx.$t("orders.notification.reintegrate.quantity", { quantity: unref(quantity) })), 1)
|
|
866
|
+
]),
|
|
867
|
+
_: 1
|
|
868
|
+
})) : createCommentVNode("", true)
|
|
869
|
+
]),
|
|
870
|
+
action: withCtx(() => [
|
|
871
|
+
unref(isRunning) ? (openBlock(), createBlock(unref($), {
|
|
872
|
+
key: 0,
|
|
873
|
+
size: "small",
|
|
874
|
+
severity: "warn",
|
|
875
|
+
disabled: "",
|
|
876
|
+
"data-test": "reintegrate-notification-running-button"
|
|
877
|
+
}, {
|
|
878
|
+
default: withCtx(() => [
|
|
879
|
+
createVNode(unref(_), {
|
|
880
|
+
variant: "material",
|
|
881
|
+
icon: "progress_activity",
|
|
882
|
+
size: "md",
|
|
883
|
+
class: "animate-spin",
|
|
884
|
+
"data-test": "reintegrate-notification-running-icon"
|
|
885
|
+
}),
|
|
886
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("orders.notification.reintegrate.running")), 1)
|
|
887
|
+
]),
|
|
888
|
+
_: 1
|
|
889
|
+
})) : (openBlock(), createBlock(unref($), {
|
|
890
|
+
key: 1,
|
|
891
|
+
size: "small",
|
|
892
|
+
severity: "warn",
|
|
893
|
+
disabled: unref(disabled),
|
|
894
|
+
"data-test": "reintegrate-notification-button",
|
|
895
|
+
onClick: openModal
|
|
896
|
+
}, {
|
|
897
|
+
default: withCtx(() => [
|
|
898
|
+
createVNode(unref(_), {
|
|
899
|
+
variant: "material",
|
|
900
|
+
icon: "refresh",
|
|
901
|
+
size: "md",
|
|
902
|
+
"data-test": "reintegrate-notification-icon"
|
|
903
|
+
}),
|
|
904
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("orders.notification.reintegrate.button")), 1)
|
|
905
|
+
]),
|
|
906
|
+
_: 1
|
|
907
|
+
}, 8, ["disabled"]))
|
|
908
|
+
]),
|
|
909
|
+
_: 1
|
|
910
|
+
}, 8, ["title"]),
|
|
911
|
+
createVNode(unref(script$3), {
|
|
912
|
+
visible: showModal.value,
|
|
913
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => showModal.value = $event),
|
|
914
|
+
modal: "",
|
|
915
|
+
header: _ctx.$t("orders.notification.reintegrate.dialogHeader"),
|
|
916
|
+
class: "max-w-md w-[90%]"
|
|
917
|
+
}, {
|
|
918
|
+
default: withCtx(() => [
|
|
919
|
+
createBaseVNode("div", _hoisted_1$8, [
|
|
920
|
+
createVNode(unref(y), {
|
|
921
|
+
variant: "subtitle",
|
|
922
|
+
"data-test": "reintegrate-dialog-text"
|
|
923
|
+
}, {
|
|
924
|
+
default: withCtx(() => [
|
|
925
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.notification.reintegrate.confirm")), 1)
|
|
926
|
+
]),
|
|
927
|
+
_: 1
|
|
928
|
+
}),
|
|
929
|
+
createBaseVNode("div", _hoisted_2$3, [
|
|
930
|
+
createVNode(unref($), {
|
|
931
|
+
size: "small",
|
|
932
|
+
outlined: "",
|
|
933
|
+
fluid: "",
|
|
934
|
+
label: _ctx.$t("orders.notification.reintegrate.no"),
|
|
935
|
+
"data-test": "reintegrate-dialog-no-button",
|
|
936
|
+
onClick: closeModal
|
|
937
|
+
}, null, 8, ["label"]),
|
|
938
|
+
createVNode(unref($), {
|
|
939
|
+
size: "small",
|
|
940
|
+
fluid: "",
|
|
941
|
+
label: _ctx.$t("orders.notification.reintegrate.yes"),
|
|
942
|
+
"data-test": "reintegrate-dialog-yes-button",
|
|
943
|
+
onClick: handleConfirm
|
|
944
|
+
}, null, 8, ["label"])
|
|
945
|
+
])
|
|
946
|
+
])
|
|
947
|
+
]),
|
|
948
|
+
_: 1
|
|
949
|
+
}, 8, ["visible", "header"])
|
|
950
|
+
], 64);
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
const _hoisted_1$7 = { class: "list-disc list-inside mt-2 space-y-1" };
|
|
955
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
956
|
+
...{ name: "TransparencyAntifraudModal" },
|
|
957
|
+
__name: "TransparencyAntifraudModal",
|
|
958
|
+
setup(__props) {
|
|
959
|
+
const { assignTransparencyModalInteraction: assignTransparencyModalInteraction2, showTransparencyModal } = useOrdersNotification();
|
|
960
|
+
return (_ctx, _cache) => {
|
|
961
|
+
return openBlock(), createBlock(unref(script$3), {
|
|
962
|
+
visible: unref(showTransparencyModal),
|
|
963
|
+
"onUpdate:visible": [
|
|
964
|
+
_cache[0] || (_cache[0] = ($event) => isRef(showTransparencyModal) ? showTransparencyModal.value = $event : null),
|
|
965
|
+
unref(assignTransparencyModalInteraction2)
|
|
966
|
+
],
|
|
967
|
+
modal: "",
|
|
968
|
+
header: _ctx.$t("orders.transparency.header"),
|
|
969
|
+
class: "max-w-lg w-[90%]",
|
|
970
|
+
"pt:title": "!w-full !text-center",
|
|
971
|
+
"pt:content": "!grid !gap-4"
|
|
972
|
+
}, {
|
|
973
|
+
default: withCtx(() => [
|
|
974
|
+
createVNode(unref(script$2), {
|
|
975
|
+
class: "!bg-surface-200 !border-surface-300",
|
|
976
|
+
"pt:content": "!pb-0",
|
|
977
|
+
"pt:header": "!hidden"
|
|
978
|
+
}, {
|
|
979
|
+
default: withCtx(() => [
|
|
980
|
+
createVNode(unref(script$2), {
|
|
981
|
+
class: "!pointer-events-none !rounded-none !border-0",
|
|
982
|
+
"pt:headeractions": "!hidden",
|
|
983
|
+
"pt:header": "pb-3"
|
|
984
|
+
}, {
|
|
985
|
+
header: withCtx(() => [
|
|
986
|
+
createVNode(OrderStatusChip, {
|
|
987
|
+
status: "recusado_por_risco",
|
|
988
|
+
type: "danger",
|
|
989
|
+
label: _ctx.$t("orders.status.recusado_por_risco.label")
|
|
990
|
+
}, null, 8, ["label"]),
|
|
991
|
+
createVNode(unref(f), { icon: "close" })
|
|
992
|
+
]),
|
|
993
|
+
default: withCtx(() => [
|
|
994
|
+
createVNode(unref(y), null, {
|
|
995
|
+
default: withCtx(() => [
|
|
996
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.status.recusado_por_risco.text")), 1)
|
|
997
|
+
]),
|
|
998
|
+
_: 1
|
|
999
|
+
}),
|
|
1000
|
+
createVNode(unref($), {
|
|
1001
|
+
outlined: "",
|
|
1002
|
+
size: "small",
|
|
1003
|
+
class: "!text-primary mt-4",
|
|
1004
|
+
label: _ctx.$t("orders.status.linkLabel")
|
|
1005
|
+
}, null, 8, ["label"]),
|
|
1006
|
+
createVNode(unref(script$4)),
|
|
1007
|
+
createVNode(unref(y), { class: "rounded bg-surface-200 w-fit px-2 py-1" }, {
|
|
1008
|
+
default: withCtx(() => [
|
|
1009
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.status.refusal")), 1)
|
|
1010
|
+
]),
|
|
1011
|
+
_: 1
|
|
1012
|
+
}),
|
|
1013
|
+
createBaseVNode("ul", _hoisted_1$7, [
|
|
1014
|
+
createVNode(unref(y), { as: "li" }, {
|
|
1015
|
+
default: withCtx(() => [
|
|
1016
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.transparency.refusalExemples.phone")), 1)
|
|
1017
|
+
]),
|
|
1018
|
+
_: 1
|
|
1019
|
+
}),
|
|
1020
|
+
createVNode(unref(y), { as: "li" }, {
|
|
1021
|
+
default: withCtx(() => [
|
|
1022
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.transparency.refusalExemples.email")), 1)
|
|
1023
|
+
]),
|
|
1024
|
+
_: 1
|
|
1025
|
+
})
|
|
1026
|
+
])
|
|
1027
|
+
]),
|
|
1028
|
+
_: 1
|
|
1029
|
+
})
|
|
1030
|
+
]),
|
|
1031
|
+
_: 1
|
|
1032
|
+
}),
|
|
1033
|
+
createVNode(unref(y), {
|
|
1034
|
+
variant: "title",
|
|
1035
|
+
size: "small",
|
|
1036
|
+
isStrong: "",
|
|
1037
|
+
class: "w-full text-center",
|
|
1038
|
+
"data-test": "transparency-antifraud-subtitle"
|
|
1039
|
+
}, {
|
|
1040
|
+
default: withCtx(() => [
|
|
1041
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.transparency.subtitle")), 1)
|
|
1042
|
+
]),
|
|
1043
|
+
_: 1
|
|
1044
|
+
}),
|
|
1045
|
+
createVNode(unref(y), {
|
|
1046
|
+
variant: "subtitle",
|
|
1047
|
+
class: "w-full text-center",
|
|
1048
|
+
"data-test": "transparency-antifraud-description"
|
|
1049
|
+
}, {
|
|
1050
|
+
default: withCtx(() => [
|
|
1051
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.transparency.description")), 1)
|
|
1052
|
+
]),
|
|
1053
|
+
_: 1
|
|
1054
|
+
})
|
|
1055
|
+
]),
|
|
1056
|
+
_: 1
|
|
1057
|
+
}, 8, ["visible", "header", "onUpdate:visible"]);
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
const __default__$a = { name: "OrdersNotifications" };
|
|
1062
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1063
|
+
...__default__$a,
|
|
1064
|
+
setup(__props) {
|
|
1065
|
+
const { shopifyAntifraudMissing, showTransparencyModal } = useOrdersNotification();
|
|
1066
|
+
const { show: showOrdersReintegrate } = useOrdersReintegrate();
|
|
1067
|
+
return (_ctx, _cache) => {
|
|
1068
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1069
|
+
unref(showTransparencyModal) ? (openBlock(), createBlock(_sfc_main$c, { key: 0 })) : createCommentVNode("", true),
|
|
1070
|
+
unref(shopifyAntifraudMissing) ? (openBlock(), createBlock(_sfc_main$e, { key: 1 })) : createCommentVNode("", true),
|
|
1071
|
+
unref(showOrdersReintegrate) ? (openBlock(), createBlock(_sfc_main$d, { key: 2 })) : createCommentVNode("", true)
|
|
1072
|
+
], 64);
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
});
|
|
1076
|
+
class OrdersExportService {
|
|
1077
|
+
constructor(apiService) {
|
|
1078
|
+
this.apiService = apiService;
|
|
1079
|
+
}
|
|
1080
|
+
async sendOrdersToExport(emails, filter2) {
|
|
1081
|
+
const route = "/api/orders/export-orders";
|
|
1082
|
+
const payload = this.serializePayload(emails, filter2);
|
|
1083
|
+
return this.apiService.post(route, payload);
|
|
1084
|
+
}
|
|
1085
|
+
serializePayload(emails, filter2) {
|
|
1086
|
+
const params = filterToParams(filter2);
|
|
1087
|
+
const payload = { emails };
|
|
1088
|
+
for (const key in params) {
|
|
1089
|
+
const value = params[key];
|
|
1090
|
+
if (!value) continue;
|
|
1091
|
+
if (/date/.test(key)) continue;
|
|
1092
|
+
payload[key] = value;
|
|
1093
|
+
}
|
|
1094
|
+
if (params.date_from && params.date_to) {
|
|
1095
|
+
payload["date"] = [params.date_from, params.date_to];
|
|
1096
|
+
}
|
|
1097
|
+
return payload;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
const ordersExportService = new OrdersExportService(ApiService);
|
|
1101
|
+
const state = reactive({
|
|
1102
|
+
email: "",
|
|
1103
|
+
hasPermissionToExport: false,
|
|
1104
|
+
isVisibleModal: false,
|
|
1105
|
+
requestingExport: false
|
|
1106
|
+
});
|
|
1107
|
+
const EXPORT_ORDERS_PERMISSION = "admin:spa-orders.user-has-export-permission";
|
|
1108
|
+
const setModalVisibility = (value) => {
|
|
1109
|
+
state.isVisibleModal = value;
|
|
1110
|
+
};
|
|
1111
|
+
const initialize = async () => {
|
|
1112
|
+
var _a;
|
|
1113
|
+
state.email = (_a = userService.data) == null ? void 0 : _a.user.email;
|
|
1114
|
+
state.hasPermissionToExport = userService.hasPermission(EXPORT_ORDERS_PERMISSION);
|
|
1115
|
+
};
|
|
1116
|
+
const useOrdersExport = () => {
|
|
1117
|
+
const emailSchema = z.object({
|
|
1118
|
+
default: z.string().optional().transform(() => state.email),
|
|
1119
|
+
opt1: z.string().optional().nullable().refine(
|
|
1120
|
+
(value) => !value || value.trim() === "" || z.string().email().safeParse(value).success,
|
|
1121
|
+
{
|
|
1122
|
+
message: t("orders.filter.export.feedback.email")
|
|
1123
|
+
}
|
|
1124
|
+
),
|
|
1125
|
+
opt2: z.string().optional().nullable().refine(
|
|
1126
|
+
(value) => !value || value.trim() === "" || z.string().email().safeParse(value).success,
|
|
1127
|
+
{
|
|
1128
|
+
message: t("orders.filter.export.feedback.email")
|
|
1129
|
+
}
|
|
1130
|
+
),
|
|
1131
|
+
opt3: z.string().optional().nullable().refine(
|
|
1132
|
+
(value) => !value || value.trim() === "" || z.string().email().safeParse(value).success,
|
|
1133
|
+
{
|
|
1134
|
+
message: t("orders.filter.export.feedback.email")
|
|
1135
|
+
}
|
|
1136
|
+
)
|
|
1137
|
+
});
|
|
1138
|
+
const exportOrders = async (emails) => {
|
|
1139
|
+
try {
|
|
1140
|
+
state.requestingExport = true;
|
|
1141
|
+
const { filter: filter2 } = useOrdersFilter();
|
|
1142
|
+
await ordersExportService.sendOrdersToExport(emails, filter2.value);
|
|
1143
|
+
toaster.success({
|
|
1144
|
+
title: t("orders.filter.export.feedback.successTitle"),
|
|
1145
|
+
message: t("orders.filter.export.feedback.successText")
|
|
1146
|
+
});
|
|
1147
|
+
} catch {
|
|
1148
|
+
toaster.error({
|
|
1149
|
+
title: t("orders.filter.export.feedback.errorTitle"),
|
|
1150
|
+
message: t("orders.filter.export.feedback.errorText")
|
|
1151
|
+
});
|
|
1152
|
+
} finally {
|
|
1153
|
+
setModalVisibility(false);
|
|
1154
|
+
await delay();
|
|
1155
|
+
state.requestingExport = false;
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
const formSubmit = ({ valid, values }) => {
|
|
1159
|
+
if (!valid) return;
|
|
1160
|
+
const emails = Object.values(values).filter(Boolean);
|
|
1161
|
+
return exportOrders(emails);
|
|
1162
|
+
};
|
|
1163
|
+
initialize();
|
|
1164
|
+
return {
|
|
1165
|
+
...toRefs(state),
|
|
1166
|
+
formSubmit,
|
|
1167
|
+
setModalVisibility,
|
|
1168
|
+
emailSchema
|
|
1169
|
+
};
|
|
1170
|
+
};
|
|
1171
|
+
const _hoisted_1$6 = { class: "flex gap-2 flex-wrap" };
|
|
1172
|
+
const __default__$9 = { name: "OrdersFilterChips" };
|
|
1173
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1174
|
+
...__default__$9,
|
|
1175
|
+
setup(__props) {
|
|
1176
|
+
const { chips: chips2, onRemoveChip: onRemoveChip2 } = useOrdersFilter();
|
|
1177
|
+
return (_ctx, _cache) => {
|
|
1178
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1179
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(chips2), (chip) => {
|
|
1180
|
+
return openBlock(), createBlock(unref(b), {
|
|
1181
|
+
removable: "",
|
|
1182
|
+
onRemove: ($event) => unref(onRemoveChip2)(chip),
|
|
1183
|
+
"data-test": "order-filter-chip"
|
|
1184
|
+
}, {
|
|
1185
|
+
default: withCtx(() => [
|
|
1186
|
+
createTextVNode(toDisplayString(_ctx.$t(chip.label || chip.value)), 1)
|
|
1187
|
+
]),
|
|
1188
|
+
_: 2
|
|
1189
|
+
}, 1032, ["onRemove"]);
|
|
1190
|
+
}), 256))
|
|
1191
|
+
]);
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
const _hoisted_1$5 = {
|
|
1196
|
+
key: 0,
|
|
1197
|
+
class: "grid gap-4 w-full"
|
|
1198
|
+
};
|
|
1199
|
+
const __default__$8 = { name: "OrdersExportModal" };
|
|
1200
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1201
|
+
...__default__$8,
|
|
1202
|
+
setup(__props) {
|
|
1203
|
+
const { formSubmit, isVisibleModal, requestingExport, emailSchema, email } = useOrdersExport();
|
|
1204
|
+
const expanded = ref(false);
|
|
1205
|
+
return (_ctx, _cache) => {
|
|
1206
|
+
return openBlock(), createBlock(unref(script$3), {
|
|
1207
|
+
visible: unref(isVisibleModal),
|
|
1208
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => isRef(isVisibleModal) ? isVisibleModal.value = $event : null),
|
|
1209
|
+
modal: "",
|
|
1210
|
+
header: _ctx.$t("orders.filter.export.modal.title"),
|
|
1211
|
+
class: "w-[90%] sm:!w-[500px]"
|
|
1212
|
+
}, {
|
|
1213
|
+
default: withCtx(() => [
|
|
1214
|
+
unref(requestingExport) ? (openBlock(), createBlock(unref(C), {
|
|
1215
|
+
key: 0,
|
|
1216
|
+
"is-loading": "",
|
|
1217
|
+
class: "absolute"
|
|
1218
|
+
})) : createCommentVNode("", true),
|
|
1219
|
+
createBaseVNode("div", {
|
|
1220
|
+
class: normalizeClass(["grid gap-4", { invisible: unref(requestingExport) }])
|
|
1221
|
+
}, [
|
|
1222
|
+
createVNode(unref(y), {
|
|
1223
|
+
class: "text-center",
|
|
1224
|
+
variant: "subtitle",
|
|
1225
|
+
"data-test": "orders-export-modal-subtitle"
|
|
1226
|
+
}, {
|
|
1227
|
+
default: withCtx(() => [
|
|
1228
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.filter.export.modal.text")) + " ", 1),
|
|
1229
|
+
createBaseVNode("strong", null, toDisplayString(unref(email)), 1)
|
|
1230
|
+
]),
|
|
1231
|
+
_: 1
|
|
1232
|
+
}),
|
|
1233
|
+
!expanded.value ? (openBlock(), createBlock(unref($), {
|
|
1234
|
+
key: 0,
|
|
1235
|
+
text: "",
|
|
1236
|
+
"data-test": "orders-export-modal-expand-button",
|
|
1237
|
+
onClick: _cache[0] || (_cache[0] = ($event) => expanded.value = true)
|
|
1238
|
+
}, {
|
|
1239
|
+
default: withCtx(() => [
|
|
1240
|
+
createVNode(unref(_), { icon: "add" }),
|
|
1241
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("orders.filter.export.modal.add")), 1)
|
|
1242
|
+
]),
|
|
1243
|
+
_: 1
|
|
1244
|
+
})) : createCommentVNode("", true),
|
|
1245
|
+
createVNode(unref(B), {
|
|
1246
|
+
class: "grid gap-4 w-full",
|
|
1247
|
+
autocomplete: "off",
|
|
1248
|
+
schema: unref(emailSchema),
|
|
1249
|
+
onSubmit: unref(formSubmit)
|
|
1250
|
+
}, {
|
|
1251
|
+
default: withCtx(($form) => [
|
|
1252
|
+
expanded.value ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
1253
|
+
createVNode(unref(B$1), {
|
|
1254
|
+
name: "opt1",
|
|
1255
|
+
"data-test-prefix": "orders-export-modal-email-input-opt1",
|
|
1256
|
+
placeholder: _ctx.$t("orders.filter.export.modal.placeholder"),
|
|
1257
|
+
autocomplete: "off"
|
|
1258
|
+
}, null, 8, ["placeholder"]),
|
|
1259
|
+
createVNode(unref(B$1), {
|
|
1260
|
+
name: "opt2",
|
|
1261
|
+
"data-test-prefix": "orders-export-modal-email-input-opt2",
|
|
1262
|
+
placeholder: _ctx.$t("orders.filter.export.modal.placeholder"),
|
|
1263
|
+
autocomplete: "off"
|
|
1264
|
+
}, null, 8, ["placeholder"]),
|
|
1265
|
+
createVNode(unref(B$1), {
|
|
1266
|
+
name: "opt3",
|
|
1267
|
+
"data-test-prefix": "orders-export-modal-email-input-opt3",
|
|
1268
|
+
placeholder: _ctx.$t("orders.filter.export.modal.placeholder"),
|
|
1269
|
+
autocomplete: "off"
|
|
1270
|
+
}, null, 8, ["placeholder"])
|
|
1271
|
+
])) : createCommentVNode("", true),
|
|
1272
|
+
createVNode(unref($), {
|
|
1273
|
+
type: "submit",
|
|
1274
|
+
disabled: !$form.valid,
|
|
1275
|
+
label: _ctx.$t("orders.filter.export.modal.button"),
|
|
1276
|
+
"data-test": "orders-export-modal-submit-button"
|
|
1277
|
+
}, null, 8, ["disabled", "label"])
|
|
1278
|
+
]),
|
|
1279
|
+
_: 1
|
|
1280
|
+
}, 8, ["schema", "onSubmit"])
|
|
1281
|
+
], 2)
|
|
1282
|
+
]),
|
|
1283
|
+
_: 1
|
|
1284
|
+
}, 8, ["visible", "header"]);
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
const __default__$7 = { name: "OrdersExport" };
|
|
1289
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1290
|
+
...__default__$7,
|
|
1291
|
+
setup(__props) {
|
|
1292
|
+
const { setModalVisibility: setModalVisibility2 } = useOrdersExport();
|
|
1293
|
+
return (_ctx, _cache) => {
|
|
1294
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1295
|
+
createVNode(unref($), {
|
|
1296
|
+
type: "button",
|
|
1297
|
+
class: "min-w-[140px] w-full md:w-fit",
|
|
1298
|
+
outlined: "",
|
|
1299
|
+
"data-test": "order-export-button",
|
|
1300
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(setModalVisibility2)(true))
|
|
1301
|
+
}, {
|
|
1302
|
+
default: withCtx(() => [
|
|
1303
|
+
createVNode(unref(_), {
|
|
1304
|
+
variant: "svg",
|
|
1305
|
+
icon: "csv",
|
|
1306
|
+
size: "md",
|
|
1307
|
+
color: "primary-500"
|
|
1308
|
+
}),
|
|
1309
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("orders.filter.export.button")), 1)
|
|
1310
|
+
]),
|
|
1311
|
+
_: 1
|
|
1312
|
+
}),
|
|
1313
|
+
createVNode(_sfc_main$9)
|
|
1314
|
+
], 64);
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1318
|
+
const __default__$6 = { name: "OrdersFilterSearch" };
|
|
1319
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1320
|
+
...__default__$6,
|
|
1321
|
+
setup(__props) {
|
|
1322
|
+
const { isSearchDisabled, onSearch: onSearch2 } = useOrdersFilter();
|
|
1323
|
+
const search = ref("");
|
|
1324
|
+
const showHelper = ref(false);
|
|
1325
|
+
const handleSubmit = () => {
|
|
1326
|
+
if (search.value.length < 3) {
|
|
1327
|
+
showHelper.value = true;
|
|
1328
|
+
return;
|
|
1329
|
+
}
|
|
1330
|
+
onSearch2(search.value);
|
|
1331
|
+
search.value = "";
|
|
1332
|
+
showHelper.value = false;
|
|
1333
|
+
};
|
|
1334
|
+
const isInvalid = computed(() => {
|
|
1335
|
+
if (!search.value.length) return false;
|
|
1336
|
+
return showHelper.value && search.value.length < 3;
|
|
1337
|
+
});
|
|
1338
|
+
const disabledSubmit = computed(
|
|
1339
|
+
() => isSearchDisabled.value || isInvalid.value || !search.value.length
|
|
1340
|
+
);
|
|
1341
|
+
return (_ctx, _cache) => {
|
|
1342
|
+
return openBlock(), createElementBlock("form", {
|
|
1343
|
+
class: "grid w-full md:flex-1 gap-1",
|
|
1344
|
+
onSubmit: withModifiers(handleSubmit, ["prevent"])
|
|
1345
|
+
}, [
|
|
1346
|
+
createVNode(unref(script$5), null, {
|
|
1347
|
+
default: withCtx(() => [
|
|
1348
|
+
createVNode(unref(script$6), {
|
|
1349
|
+
modelValue: search.value,
|
|
1350
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
1351
|
+
class: "w-full",
|
|
1352
|
+
name: "search",
|
|
1353
|
+
invalid: isInvalid.value,
|
|
1354
|
+
disabled: unref(isSearchDisabled),
|
|
1355
|
+
"data-test": "sales-order-home-search-input",
|
|
1356
|
+
placeholder: _ctx.$t("orders.filter.search.placeholder")
|
|
1357
|
+
}, null, 8, ["modelValue", "invalid", "disabled", "placeholder"]),
|
|
1358
|
+
createVNode(unref($), {
|
|
1359
|
+
type: "submit",
|
|
1360
|
+
disabled: disabledSubmit.value,
|
|
1361
|
+
"data-test": "sales-order-home-search-button"
|
|
1362
|
+
}, {
|
|
1363
|
+
default: withCtx(() => [
|
|
1364
|
+
createVNode(unref(_), { icon: "search" })
|
|
1365
|
+
]),
|
|
1366
|
+
_: 1
|
|
1367
|
+
}, 8, ["disabled"])
|
|
1368
|
+
]),
|
|
1369
|
+
_: 1
|
|
1370
|
+
}),
|
|
1371
|
+
isInvalid.value ? (openBlock(), createBlock(unref(y), {
|
|
1372
|
+
key: 0,
|
|
1373
|
+
class: "text-error mt-1",
|
|
1374
|
+
size: "small",
|
|
1375
|
+
"data-test": "sales-order-home-search-error"
|
|
1376
|
+
}, {
|
|
1377
|
+
default: withCtx(() => [
|
|
1378
|
+
createTextVNode(toDisplayString(_ctx.$t("orders.filter.search.message")), 1)
|
|
1379
|
+
]),
|
|
1380
|
+
_: 1
|
|
1381
|
+
})) : createCommentVNode("", true)
|
|
1382
|
+
], 32);
|
|
1383
|
+
};
|
|
1384
|
+
}
|
|
1385
|
+
});
|
|
1386
|
+
const _hoisted_1$4 = { class: "flex items-center gap-1" };
|
|
1387
|
+
const __default__$5 = { name: "OrdersFilterOptions" };
|
|
1388
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1389
|
+
...__default__$5,
|
|
1390
|
+
setup(__props) {
|
|
1391
|
+
const { filter: filter2, fields: fields2, onChangeFilter: onChangeFilter2 } = useOrdersFilter();
|
|
1392
|
+
const visible = ref(false);
|
|
1393
|
+
const openFilter = () => visible.value = true;
|
|
1394
|
+
watch(
|
|
1395
|
+
() => visible.value,
|
|
1396
|
+
(newValue) => supportChatHelper.toggle(!newValue)
|
|
1397
|
+
);
|
|
1398
|
+
return (_ctx, _cache) => {
|
|
1399
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1400
|
+
createVNode(unref($), {
|
|
1401
|
+
outlined: "",
|
|
1402
|
+
class: "w-full md:w-fit min-w-[140px]",
|
|
1403
|
+
"data-test": "order-list-toggle-filters-button",
|
|
1404
|
+
onClick: openFilter
|
|
1405
|
+
}, {
|
|
1406
|
+
default: withCtx(() => [
|
|
1407
|
+
createBaseVNode("div", _hoisted_1$4, [
|
|
1408
|
+
createVNode(unref(_), { icon: "filter_list" }),
|
|
1409
|
+
createBaseVNode("span", null, toDisplayString(_ctx.$t("orders.filter.options.button")), 1)
|
|
1410
|
+
])
|
|
1411
|
+
]),
|
|
1412
|
+
_: 1
|
|
1413
|
+
}),
|
|
1414
|
+
createVNode(unref(ke), {
|
|
1415
|
+
visible: visible.value,
|
|
1416
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
1417
|
+
title: _ctx.$t("orders.filter.title"),
|
|
1418
|
+
confirmButtonText: _ctx.$t("orders.filter.buttons.confirm"),
|
|
1419
|
+
buttonClearText: _ctx.$t("orders.filter.buttons.clear"),
|
|
1420
|
+
buttonApplyText: _ctx.$t("orders.filter.buttons.apply"),
|
|
1421
|
+
fields: unref(fields2),
|
|
1422
|
+
"model-value": unref(filter2),
|
|
1423
|
+
"data-test-prefix": "orders-filter",
|
|
1424
|
+
"onUpdate:modelValue": unref(onChangeFilter2)
|
|
1425
|
+
}, null, 8, ["visible", "title", "confirmButtonText", "buttonClearText", "buttonApplyText", "fields", "model-value", "onUpdate:modelValue"])
|
|
1426
|
+
], 64);
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
const _hoisted_1$3 = { class: "flex flex-wrap items-start gap-2" };
|
|
1431
|
+
const __default__$4 = { name: "OrdersFilter" };
|
|
1432
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1433
|
+
...__default__$4,
|
|
1434
|
+
setup(__props) {
|
|
1435
|
+
const { hasPermissionToExport } = useOrdersExport();
|
|
1436
|
+
return (_ctx, _cache) => {
|
|
1437
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1438
|
+
createBaseVNode("div", _hoisted_1$3, [
|
|
1439
|
+
createVNode(_sfc_main$7),
|
|
1440
|
+
createVNode(_sfc_main$6),
|
|
1441
|
+
unref(hasPermissionToExport) ? (openBlock(), createBlock(_sfc_main$8, { key: 0 })) : createCommentVNode("", true)
|
|
1442
|
+
]),
|
|
1443
|
+
createVNode(_sfc_main$a)
|
|
1444
|
+
], 64);
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
const __default__$3 = { name: "OrdersPresetsFilter" };
|
|
1449
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1450
|
+
...__default__$3,
|
|
1451
|
+
setup(__props) {
|
|
1452
|
+
const { presets, onChangeFilter: onChangeFilter2, tab } = useOrdersFilter();
|
|
1453
|
+
const { has: hasOrdersReintegrate } = useOrdersReintegrate();
|
|
1454
|
+
return (_ctx, _cache) => {
|
|
1455
|
+
return openBlock(), createBlock(unref(script$7), {
|
|
1456
|
+
value: unref(tab),
|
|
1457
|
+
"data-test": "order-pages-tabs",
|
|
1458
|
+
scrollable: ""
|
|
1459
|
+
}, {
|
|
1460
|
+
default: withCtx(() => [
|
|
1461
|
+
createVNode(unref(script$8), { "data-test": "order-pages-tab-list" }, {
|
|
1462
|
+
default: withCtx(() => [
|
|
1463
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(presets), (tab2, index) => {
|
|
1464
|
+
return openBlock(), createBlock(unref(script$9), {
|
|
1465
|
+
key: tab2.id,
|
|
1466
|
+
value: index,
|
|
1467
|
+
class: "flex items-center justify-center gap-1 !p-3 flex-auto",
|
|
1468
|
+
"data-test": `order-pages-tab-button-${tab2.id}`,
|
|
1469
|
+
onClick: ($event) => unref(onChangeFilter2)(tab2.filter, index)
|
|
1470
|
+
}, {
|
|
1471
|
+
default: withCtx(() => [
|
|
1472
|
+
tab2.id === "pending_integration" || tab2.id === "pending_tracking_codes" ? (openBlock(), createBlock(unref(_), {
|
|
1473
|
+
key: 0,
|
|
1474
|
+
icon: "warning",
|
|
1475
|
+
class: normalizeClass(unref(hasOrdersReintegrate) ? "text-warning-500" : "text-gray-500")
|
|
1476
|
+
}, null, 8, ["class"])) : createCommentVNode("", true),
|
|
1477
|
+
createVNode(unref(y), {
|
|
1478
|
+
class: "text-wrap",
|
|
1479
|
+
"data-test": `order-pages-tab-label-${tab2.id}`
|
|
1480
|
+
}, {
|
|
1481
|
+
default: withCtx(() => [
|
|
1482
|
+
createTextVNode(toDisplayString(unref(t)(tab2.label)), 1)
|
|
1483
|
+
]),
|
|
1484
|
+
_: 2
|
|
1485
|
+
}, 1032, ["data-test"])
|
|
1486
|
+
]),
|
|
1487
|
+
_: 2
|
|
1488
|
+
}, 1032, ["value", "data-test", "onClick"]);
|
|
1489
|
+
}), 128))
|
|
1490
|
+
]),
|
|
1491
|
+
_: 1
|
|
1492
|
+
})
|
|
1493
|
+
]),
|
|
1494
|
+
_: 1
|
|
1495
|
+
}, 8, ["value"]);
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
});
|
|
1499
|
+
const _hoisted_1$2 = { class: "flex items-center gap-1" };
|
|
1500
|
+
const _hoisted_2$2 = ["href", "data-test"];
|
|
1501
|
+
const _hoisted_3 = ["data-test", "onClick"];
|
|
1502
|
+
const __default__$2 = { name: "OrdersPresetsMore" };
|
|
1503
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1504
|
+
...__default__$2,
|
|
1505
|
+
setup(__props) {
|
|
1506
|
+
const { more, onChangeFilter: onChangeFilter2 } = useOrdersFilter();
|
|
1507
|
+
const menu = ref();
|
|
1508
|
+
const toggle = (event) => {
|
|
1509
|
+
var _a;
|
|
1510
|
+
return (_a = menu.value) == null ? void 0 : _a.toggle(event);
|
|
1511
|
+
};
|
|
1512
|
+
const handleFilterClick = (filter2) => {
|
|
1513
|
+
var _a;
|
|
1514
|
+
onChangeFilter2(filter2, 0);
|
|
1515
|
+
(_a = menu.value) == null ? void 0 : _a.hide();
|
|
1516
|
+
};
|
|
1517
|
+
return (_ctx, _cache) => {
|
|
1518
|
+
return unref(more).length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1519
|
+
createVNode(unref($), {
|
|
1520
|
+
class: "text-nowrap w-full md:w-fit min-w-[140px]",
|
|
1521
|
+
outlined: "",
|
|
1522
|
+
onClick: toggle,
|
|
1523
|
+
"data-test": "order-pages-more-button"
|
|
1524
|
+
}, {
|
|
1525
|
+
default: withCtx(() => [
|
|
1526
|
+
createBaseVNode("div", _hoisted_1$2, [
|
|
1527
|
+
createBaseVNode("span", null, toDisplayString(unref(t)("orders.filter.presets.options.button")), 1),
|
|
1528
|
+
createVNode(unref(_), { icon: "arrow_drop_down" })
|
|
1529
|
+
])
|
|
1530
|
+
]),
|
|
1531
|
+
_: 1
|
|
1532
|
+
}),
|
|
1533
|
+
createVNode(unref(script$a), {
|
|
1534
|
+
ref_key: "menu",
|
|
1535
|
+
ref: menu,
|
|
1536
|
+
model: unref(more),
|
|
1537
|
+
popup: ""
|
|
1538
|
+
}, {
|
|
1539
|
+
item: withCtx(({ item }) => [
|
|
1540
|
+
item.href ? (openBlock(), createElementBlock("a", {
|
|
1541
|
+
key: 0,
|
|
1542
|
+
href: item.href,
|
|
1543
|
+
class: "px-4 py-3 flex min-w-[220px]",
|
|
1544
|
+
"data-test": `order-pages-more-item-${item.label}`
|
|
1545
|
+
}, toDisplayString(unref(t)(typeof item.label === "string" ? item.label : "")), 9, _hoisted_2$2)) : item.filter ? (openBlock(), createElementBlock("a", {
|
|
1546
|
+
key: 1,
|
|
1547
|
+
class: "px-4 py-3 flex min-w-[220px] cursor-pointer",
|
|
1548
|
+
"data-test": `order-pages-more-item-${item.label}`,
|
|
1549
|
+
onClick: ($event) => handleFilterClick(item.filter)
|
|
1550
|
+
}, toDisplayString(unref(t)(typeof item.label === "string" ? item.label : "")), 9, _hoisted_3)) : createCommentVNode("", true)
|
|
1551
|
+
]),
|
|
1552
|
+
_: 1
|
|
1553
|
+
}, 8, ["model"])
|
|
1554
|
+
], 64)) : createCommentVNode("", true);
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
const _hoisted_1$1 = { class: "flex flex-col md:!flex-row gap-4 items-end w-full overflow-hidden" };
|
|
1559
|
+
const _hoisted_2$1 = { class: "w-full overflow-hidden" };
|
|
1560
|
+
const __default__$1 = { name: "OrdersPresets" };
|
|
1561
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1562
|
+
...__default__$1,
|
|
1563
|
+
setup(__props) {
|
|
1564
|
+
return (_ctx, _cache) => {
|
|
1565
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1566
|
+
createBaseVNode("div", _hoisted_2$1, [
|
|
1567
|
+
createVNode(_sfc_main$4)
|
|
1568
|
+
]),
|
|
1569
|
+
createVNode(_sfc_main$3)
|
|
1570
|
+
]);
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
const _hoisted_1 = {
|
|
1575
|
+
key: 0,
|
|
1576
|
+
class: "flex justify-between items-center gap-2"
|
|
1577
|
+
};
|
|
1578
|
+
const _hoisted_2 = { class: "flex gap-2" };
|
|
1579
|
+
const __default__ = { name: "OrdersPagination" };
|
|
1580
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1581
|
+
...__default__,
|
|
1582
|
+
setup(__props) {
|
|
1583
|
+
const { page, pageSize, hasNextPage, showPagination: showPagination2, onChangePage: onChangePage2 } = useOrdersFilter();
|
|
1584
|
+
return (_ctx, _cache) => {
|
|
1585
|
+
return unref(showPagination2) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1586
|
+
unref(pageSize) ? (openBlock(), createBlock(unref(y), { key: 0 }, {
|
|
1587
|
+
default: withCtx(() => [
|
|
1588
|
+
createTextVNode(toDisplayString(unref(t)("orders.list.pagination", { page: unref(page), pageSize: unref(pageSize) })), 1)
|
|
1589
|
+
]),
|
|
1590
|
+
_: 1
|
|
1591
|
+
})) : (openBlock(), createBlock(unref(y), { key: 1 }, {
|
|
1592
|
+
default: withCtx(() => [
|
|
1593
|
+
createTextVNode(toDisplayString(unref(t)("orders.list.currentPage", { page: unref(page) })), 1)
|
|
1594
|
+
]),
|
|
1595
|
+
_: 1
|
|
1596
|
+
})),
|
|
1597
|
+
createBaseVNode("div", _hoisted_2, [
|
|
1598
|
+
createVNode(unref(f), {
|
|
1599
|
+
icon: "chevron_left",
|
|
1600
|
+
disabled: unref(page) === 1,
|
|
1601
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(onChangePage2)(unref(page) - 1))
|
|
1602
|
+
}, null, 8, ["disabled"]),
|
|
1603
|
+
createVNode(unref(f), {
|
|
1604
|
+
icon: "chevron_right",
|
|
1605
|
+
disabled: !unref(hasNextPage),
|
|
1606
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(onChangePage2)(unref(page) + 1))
|
|
1607
|
+
}, null, 8, ["disabled"])
|
|
1608
|
+
])
|
|
1609
|
+
])) : createCommentVNode("", true);
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
});
|
|
1613
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1614
|
+
__name: "Orders.page",
|
|
1615
|
+
setup(__props) {
|
|
1616
|
+
const { isInitialized, initialize: initialize2 } = useOrdersFilter();
|
|
1617
|
+
onMounted(initialize2);
|
|
1618
|
+
return (_ctx, _cache) => {
|
|
1619
|
+
return openBlock(), createBlock(AmCardV3, { class: "grid gap-4" }, {
|
|
1620
|
+
default: withCtx(() => [
|
|
1621
|
+
unref(isInitialized) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1622
|
+
createVNode(_sfc_main$2),
|
|
1623
|
+
createVNode(_sfc_main$5),
|
|
1624
|
+
createVNode(_sfc_main$b)
|
|
1625
|
+
], 64)) : createCommentVNode("", true),
|
|
1626
|
+
createVNode(_sfc_main$f),
|
|
1627
|
+
createVNode(_sfc_main$1)
|
|
1628
|
+
]),
|
|
1629
|
+
_: 1
|
|
1630
|
+
});
|
|
1631
|
+
};
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
export {
|
|
1635
|
+
_sfc_main as default
|
|
1636
|
+
};
|