appmax-client-vue3 5.0.4 → 5.0.6
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-B0NgkhG-.js +16 -0
- package/dist/AE-DiMVenwy-BWQLa33w.js +16 -0
- package/dist/AF-DOrptOkS-Drc9XQJx.js +16 -0
- package/dist/AG-CzBMAtom-B-OlONmf.js +16 -0
- package/dist/AI-A2DnDGPS-DT91mX3i.js +16 -0
- package/dist/AL-BcGdPXjJ-DExFi-YT.js +16 -0
- package/dist/AM-BC_r4gTd-BDs6qIRD.js +16 -0
- package/dist/AO-D6GK49nd-U_dULeRN.js +16 -0
- package/dist/AQ-Eeziry42-C-Om7y7H.js +16 -0
- package/dist/AR-AbqVWszQ-CzpUNgQa.js +16 -0
- package/dist/AS-BWe_Gq8Z-CthlmMNh.js +16 -0
- package/dist/AT-b5CS9jSt-CuPm1E_i.js +16 -0
- package/dist/AU-BUbOyX6Q-C9GMMlR_.js +16 -0
- package/dist/AW-CjVdJTYe-D6MRykcI.js +16 -0
- package/dist/AX-lNtwEmw2-sxc5LzmD.js +16 -0
- package/dist/AZ-f8zSo9ut-DXmBVjN6.js +16 -0
- package/dist/AmBulletLegend-52gChigw.js +23 -0
- package/dist/AmCardV3-OdRs-z1j.js +22 -0
- package/dist/AmDoughnutChartAdapted-BhfBzb94.js +203 -0
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-BDpMkjAR.js +86 -0
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-mqLOhZ7-.js +40 -0
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-BP6CSyx6.js +46 -0
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-NdqTyzES.js +63 -0
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN--ClK0lGCz.js +53 -0
- package/dist/AmLayoutFeedbackState-Di__llrB.js +48 -0
- package/dist/AmLayoutInnerData-BjksUdtP.js +162 -0
- package/dist/AmOutlineCard-BpHzJqpY.js +25 -0
- package/dist/AmSkeleton-CMDXffqv.js +35 -0
- package/dist/AmText-B4gSbZhe.js +33 -0
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-Bhh_sEoD.js +64 -0
- package/dist/ApiService-CMji3DZQ.js +11 -0
- package/dist/AppInstallationConfirmationPasswordModal-C9B3zwzU.js +535 -0
- package/dist/AppstoreAppView-CllOZV21.js +315 -0
- package/dist/AppstoreHomeView-m_1nQ_Jn.js +1372 -0
- package/dist/BA-BfV7_7RP-DOpAKJEN.js +16 -0
- package/dist/BB-CC4768VM-DiTttwLj.js +16 -0
- package/dist/BD-YQdTTbhg-iJ-Mpvi3.js +16 -0
- package/dist/BE-DUYoRyei-0WAiLDaR.js +16 -0
- package/dist/BF-XZRLkaHX-Cb9zOZhM.js +16 -0
- package/dist/BG-BAb8lAFP-0bfnaAWE.js +16 -0
- package/dist/BH-C1LTB8Fj-D37QTedm.js +16 -0
- package/dist/BI-RjDfMipp-9Mn-Qe4W.js +16 -0
- package/dist/BJ-DAv61IMB-I283Lwmn.js +16 -0
- package/dist/BL-CFW4iaQd-BjbmsrF6.js +16 -0
- package/dist/BM-DuK3dA1G-gP1iKSwy.js +16 -0
- package/dist/BN-BXHGopan-B13xheUo.js +16 -0
- package/dist/BO-CzuoErsx-BntOgWhV.js +16 -0
- package/dist/BQ-BO-BlM1Uin3-Dt8JnniZ.js +16 -0
- package/dist/BQ-SA-BninfeHy-BLUFQNxa.js +16 -0
- package/dist/BQ-SE-tq-mCvpl-BV5-RpVj.js +16 -0
- package/dist/BR-B1GEJ05L-C5ShOe7A.js +16 -0
- package/dist/BS-MeULPH4e-CeEaWwcm.js +16 -0
- package/dist/BT-BCfQJS6a-DGnUG4Oe.js +16 -0
- package/dist/BV-CfaYWvM--DeQOtQ9V.js +16 -0
- package/dist/BW-jYbPMHhQ-ByhXqunH.js +16 -0
- package/dist/BY-Ddffd2rT-BehXTId1.js +16 -0
- package/dist/BZ-B7mGW2Jg-9BCaVvvp.js +16 -0
- package/dist/BankAccountCrossborderNew.page-C28R_1Qd.js +152 -0
- package/dist/BankAccountList.page-CNeEpk4H.js +331 -0
- package/dist/BankAccountNew.page-BSpKrX5u.js +982 -0
- package/dist/CA-CHl-cqJL-XR0ndh4J.js +16 -0
- package/dist/CC-DSLZRwFz-DYEzvl09.js +16 -0
- package/dist/CD-D4NJYkQm-L5L9-fTb.js +16 -0
- package/dist/CF-DoxRpaA9-By8Pbyi3.js +16 -0
- package/dist/CG-Auzp6pC_-D-tyTP_M.js +16 -0
- package/dist/CH-B5eEo1aL-DYS_VO_S.js +16 -0
- package/dist/CI-DFfmdeVw-BhIa4094.js +16 -0
- package/dist/CK-CKWUhjXV-CZvjdIyd.js +16 -0
- package/dist/CL-Di6p-p6X-DzZ5YYia.js +16 -0
- package/dist/CM-B0ht31e3-eZzVc86A.js +16 -0
- package/dist/CN-CKHlOciI-BAkHzs2o.js +16 -0
- package/dist/CO-GBUkcePt-CLeWrjx0.js +16 -0
- package/dist/CR-Daw5JsjF-PjEtTToe.js +16 -0
- package/dist/CU-CVOkcTvR-BSNGrSk3.js +16 -0
- package/dist/CV-cyPoze-o-D9ajXnsp.js +16 -0
- package/dist/CW-Bt-Pwg4j-C_ex-Sdr.js +16 -0
- package/dist/CX-uhIZlYzy-D_-keHM6.js +16 -0
- package/dist/CY-un4rgwPX-CHTtlcGa.js +16 -0
- package/dist/CZ-equ-r4iN-CJH4b4uG.js +16 -0
- package/dist/CashoutAntecipateContent-Clo-RuSw.js +42 -0
- package/dist/ChargebackAnalytics-DVbiz8Yb.js +1701 -0
- package/dist/ChargebackDetail-Bou3b7Xl.js +3470 -0
- package/dist/ConfirmationModal-t8hM5cPb.js +105 -0
- package/dist/Create.page-B2GKeXaW.js +1409 -0
- package/dist/CreatePaymentLink-Cjs8mN-z.js +857 -0
- package/dist/DE-zx7UmJ-V-7dMw-Msl.js +16 -0
- package/dist/DJ-BN1kIFYT-CbAyhLrL.js +16 -0
- package/dist/DK-CrXXNH_h-Dq1c5oGn.js +16 -0
- package/dist/DM-B4nVdNww-B2H3SDw6.js +16 -0
- package/dist/DO-C7-NF2JD-Cx2irRLd.js +16 -0
- package/dist/DZ-DSDLbNRb-DLc6FwJb.js +16 -0
- package/dist/DashboardAmountDetailsContent-D8rXn6Xl.js +65 -0
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-Ch1-BrNn.js +151 -0
- package/dist/DashboardApprovalRateInternationalContent-D8Fh_qom.js +19 -0
- package/dist/DashboardApprovalRateNationalContent-CfqsP3qp.js +74 -0
- package/dist/DashboardCarouselContent-Cxaz7rsI.js +963 -0
- package/dist/DashboardDetailsContent-DkY9MfZ5.js +58 -0
- package/dist/DashboardHome-CUCswBCo.js +5399 -0
- package/dist/DetailSubscriptionRecurring-DuImJwB9.js +1314 -0
- package/dist/EC-C_bjTYWm-BL8ERFgH.js +16 -0
- package/dist/EE-CQIjuoWO-WiwMe9KP.js +16 -0
- package/dist/EG-Bs_BHfVR-CKQNWTMP.js +16 -0
- package/dist/EH-CnWam84F-HONgeWbu.js +16 -0
- package/dist/ER-Dcl4hJzq-CBMxH7o_.js +16 -0
- package/dist/ES-Bpj2gAdj-9ptGZPyp.js +16 -0
- package/dist/ET-Dm3q0Ruz-Dg6IdOKl.js +16 -0
- package/dist/ExternalPendenciesList-IGLpEq29.js +651 -0
- package/dist/FI-DCqfJeiQ-DL-SVIGO.js +16 -0
- package/dist/FJ-C6UrGUgI-qnFHKCfW.js +16 -0
- package/dist/FK-CAaec31K-glJ52JZI.js +16 -0
- package/dist/FM-Cf2SIJ7h-igGt5oAT.js +16 -0
- package/dist/FO-DBb4psBV-2QzUkoue.js +16 -0
- package/dist/FR-CFW4iaQd-CqWFOhyb.js +16 -0
- package/dist/FeatureFlagsPage-BByq3i15.js +271 -0
- package/dist/Form.page-PuqDs_X7.js +624 -0
- package/dist/GA-D3NTxgTl-DvcNJ6mb.js +16 -0
- package/dist/GB-ENG-Cmkg6Zq8-DWXBOxrA.js +16 -0
- package/dist/GB-NIR-DKszcfHi-DS25CVF2.js +16 -0
- package/dist/GB-SCT-BiivwJ71-CrZcARLd.js +16 -0
- package/dist/GB-UKM-DgMBd3ib-BVmXVj_N.js +16 -0
- package/dist/GB-WLS-DLoDy9iv-DoRBtf-B.js +16 -0
- package/dist/GD-Bs1d4We7-BD-iydvb.js +16 -0
- package/dist/GE-DXG9iLk5-8JnbPMFl.js +16 -0
- package/dist/GF-B20s5gtx-D3hYvm6d.js +16 -0
- package/dist/GG-BAyrpIoO-DjMoGh7J.js +16 -0
- package/dist/GH-v3jh5r1X-DNPhdhxH.js +16 -0
- package/dist/GI-D39Krd4s-DPVKm99b.js +16 -0
- package/dist/GL-BDd_W5AU-DDhgkiHH.js +16 -0
- package/dist/GM-BNEHspzj-DWXbb0So.js +16 -0
- package/dist/GN-DdIZ0X6d-B7qs0poY.js +16 -0
- package/dist/GP-CFW4iaQd-BM7uu9Nb.js +16 -0
- package/dist/GQ-CC3X6AMz-Xe_g5BIj.js +16 -0
- package/dist/GR-C_0rusTd-DN4T761r.js +16 -0
- package/dist/GS-Db5l22a1-6-LOnXot.js +16 -0
- package/dist/GT-BhbkqUft-D29H0S6W.js +16 -0
- package/dist/GU-C0HeItm1-bHm28Dme.js +16 -0
- package/dist/GW-BjLM1vg--V7NII1WT.js +16 -0
- package/dist/GY-BreBVlhN-C7UIbb3j.js +16 -0
- package/dist/Giftmax-CNZsCi3o.js +489 -0
- package/dist/HK-BZn9ZQGS-Diu8_by9.js +16 -0
- package/dist/HM-BUbOyX6Q-BRlNpGBX.js +16 -0
- package/dist/HN-D4wujIPC-DW_tdfoq.js +16 -0
- package/dist/HR-Jhi3QQ9F-CzxmuesC.js +16 -0
- package/dist/HT-MMjMjr-R-C15Kc3GY.js +16 -0
- package/dist/HU-CN5KmQ7F-BrTU16Hw.js +16 -0
- package/dist/Home-DhsliPG0.js +997 -0
- package/dist/Home.page-BwpG-OGu.js +499 -0
- package/dist/ID-hVVUTKNG-82XdiRzW.js +16 -0
- package/dist/IE-WN_vdKcS-CmW4Fa2I.js +16 -0
- package/dist/IL-D5Wr_Xxh-Be1qFTjW.js +16 -0
- package/dist/IM-B-putc0k-DmkrM6ss.js +16 -0
- package/dist/IN-CK40zbQD-CrQJh-f2.js +16 -0
- package/dist/IO-CdvLck7D-5Ph5rhlz.js +16 -0
- package/dist/IQ-f_9wyurt-Do8cCe-5.js +16 -0
- package/dist/IR-B0yfWttH-Dm_cdJaZ.js +16 -0
- package/dist/IS-Dvf-XQTq-DLQCV1Ib.js +16 -0
- package/dist/IT-uY7cjdFI-CbmvC392.js +16 -0
- package/dist/ImportTrackingCode-BXM-IZPv.js +1007 -0
- package/dist/InternalCompanyIssuesDetail-DRw8pYyq.js +862 -0
- package/dist/InternalCompanyList-CdIQ2bbK.js +351 -0
- package/dist/InternalPendencyDetail-D7DV_a_X.js +717 -0
- package/dist/JE-C95tN_VG-C5U6WhjP.js +16 -0
- package/dist/JM-zOuEwaB3-C0iegfzQ.js +16 -0
- package/dist/JO-Cq88rrOD-DaissPPf.js +16 -0
- package/dist/JP-5evXgWxq-BAXSCjAc.js +16 -0
- package/dist/KE-PHx0d97Z-RMCQkIpG.js +16 -0
- package/dist/KG-DT4JnieX-5IdOv33L.js +16 -0
- package/dist/KH-ChwV2WTT-BLgzTAqf.js +16 -0
- package/dist/KI-D212g4Lh-B3PFWtsa.js +16 -0
- package/dist/KM-mPVp7AKS-CB-p6Q4s.js +16 -0
- package/dist/KN-AdXLXICN-ByiILU9E.js +16 -0
- package/dist/KP-CC6UIrEF-B5A3gWd9.js +16 -0
- package/dist/KR-BtnmWR6C-BjPQjsgx.js +16 -0
- package/dist/KW-gqahWVaw-DWQdB3xi.js +16 -0
- package/dist/KY-DjIb70VQ-sTb3a8wH.js +16 -0
- package/dist/KZ-C_fRihiO-IfRJKBAH.js +16 -0
- package/dist/LA-KIULJHAb-C5ICo3_R.js +16 -0
- package/dist/LB-CrF8WJiI-D1KnKZaK.js +16 -0
- package/dist/LC-DGiHXm5V-B46fqsqM.js +16 -0
- package/dist/LI-BwB0b8M1-BWZ9mJw-.js +16 -0
- package/dist/LK-BOC44ZgS-CS7CAN9T.js +16 -0
- package/dist/LR-CWjRlWOZ-DJMxkvFv.js +16 -0
- package/dist/LS-B_EgU3p5-DxaDoEGk.js +16 -0
- package/dist/LT-BPyPiVx2-D96XpXEr.js +16 -0
- package/dist/LU-B-De6aB--CNyLqhm_.js +16 -0
- package/dist/LV-D2Ewe3XC-D1NbzjAK.js +16 -0
- package/dist/LY-D1TSt6YI-BzJlH-xI.js +16 -0
- package/dist/MA-QY5gm-vM-pEMpz4Uz.js +16 -0
- package/dist/MC-BjlCjfCP-B1moHhIT.js +16 -0
- package/dist/MD-rh-6rlSt-BjfBJ0rJ.js +16 -0
- package/dist/ME-D1euo0V2-82DZwMKL.js +16 -0
- package/dist/MF-CFW4iaQd-CmIk59Yf.js +16 -0
- package/dist/MG-ONnxn_5g-C8GUYrRG.js +16 -0
- package/dist/MH-B8oC_VMS-BlYuQ5PA.js +16 -0
- package/dist/MK-ByjICisj-D6CtfZCb.js +16 -0
- package/dist/ML-CKVAuhox-JOjeAqYW.js +16 -0
- package/dist/MM-doJuUjVT-Bj8lDl7J.js +16 -0
- package/dist/MN-BFP303GE-vip25PA8.js +16 -0
- package/dist/MO-Dp4PTSYU-3CNAIy5e.js +16 -0
- package/dist/MP-CqKsnjHV-DCYI9oHs.js +16 -0
- package/dist/MQ-CFW4iaQd-BFMTVQoF.js +16 -0
- package/dist/MR-D73q_PiY-DqXK0CxP.js +16 -0
- package/dist/MS-qhjKl9TO-Dtzn8rKb.js +16 -0
- package/dist/MT-CZjbs1U--DqalCKRr.js +16 -0
- package/dist/MU-D0EQOl0S-DQLgbGtU.js +16 -0
- package/dist/MV-BtwHRTMn-DWp0qMPr.js +16 -0
- package/dist/MW-CVnAR98j-D_43UAP7.js +16 -0
- package/dist/MX-C7vXnCDY-tnp1lbHy.js +16 -0
- package/dist/MY-DJcgH_o3-DYipQe7N.js +16 -0
- package/dist/MZ-BbLwl9DA-D77jBrez.js +16 -0
- package/dist/Max.page-Cyx0ogtT.js +879 -0
- package/dist/MostSoldCountries-CjjsiJHA.js +22 -0
- package/dist/NA-5FKNjRGT-BjaDRgqG.js +16 -0
- package/dist/NC-CFW4iaQd-Bagorfoc.js +16 -0
- package/dist/NE-DpLZJa7D-CEzy23OF.js +16 -0
- package/dist/NF-BT-wIfwf-ZZ_ntI_H.js +16 -0
- package/dist/NG-BAiR_q0H--FDJWMWe.js +16 -0
- package/dist/NI-DylPDojG-CD5c4t3P.js +16 -0
- package/dist/NL-iozeFKPM-D1KlRggb.js +16 -0
- package/dist/NO-CfaYWvM--gvzb0sEz.js +16 -0
- package/dist/NP-BGR_ZaqA-CQJTYavs.js +16 -0
- package/dist/NR-DHGW5Y3Q-CBswr0L3.js +16 -0
- package/dist/NU-CcpcSx_x-BOB3CJWK.js +16 -0
- package/dist/NZ-DDYt6DcJ-5RNlfucy.js +16 -0
- package/dist/OM-D6hiar1r-B0mmcUV5.js +16 -0
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-D0_gEBWQ.js +790 -0
- package/dist/OrderStatusChip-BE3PjteJ.js +30 -0
- package/dist/Orders.page-Djd-KP5A.js +1636 -0
- package/dist/OrdersChartDataContent-ePGVSzaT.js +221 -0
- package/dist/OrdersDetails.page-y05AA7kl.js +6194 -0
- package/dist/PA-Bi2blxjJ-Dp4vDAIG.js +16 -0
- package/dist/PE-D4DjQOlP-9LbsGquA.js +16 -0
- package/dist/PF-DmOSfnYB-DKrQnuZa.js +16 -0
- package/dist/PG-DeOlZ7TA-BXjJ5CTn.js +16 -0
- package/dist/PH-Dv4KdxU--CfCKyF6L.js +16 -0
- package/dist/PK-CRhM95F8-Bb9mOp2t.js +16 -0
- package/dist/PL-BIdMQAtx-Dw-OYGTm.js +16 -0
- package/dist/PM-BDa53dEz-CWw7ZOOZ.js +16 -0
- package/dist/PN-Csu7Dufn-CJHlnhyq.js +16 -0
- package/dist/PR-C_Acdbc_-DYPOduhX.js +16 -0
- package/dist/PS-Dmg0ofZr-Be701NUz.js +16 -0
- package/dist/PT-Bsck4nv8-MLSdS7tn.js +16 -0
- package/dist/PW-CBMqjpxh-C6Jek5Ze.js +16 -0
- package/dist/PY-Be6zNh15-ByUytKzc.js +16 -0
- package/dist/PaymentsLinks-KiELtIgJ.js +675 -0
- package/dist/QA-CZmcW85r-DAp46Hhe.js +16 -0
- package/dist/RE-CFW4iaQd-BrIp1vau.js +16 -0
- package/dist/RO-6H4O-gQF-Y0n3SQjv.js +16 -0
- package/dist/RS-DM7vMnHL-76n8wS4u.js +16 -0
- package/dist/RU-HqKQeTq2-D6bmmaHJ.js +16 -0
- package/dist/RW-DkH4VhfP-qZf9eN8n.js +16 -0
- package/dist/RecurringSubscription-ZQkCIk47.js +639 -0
- package/dist/RecurringSubscriptionDashView-j9_e79Vk.js +2051 -0
- package/dist/RefundChargeback-DX7mVtAd.js +97 -0
- package/dist/RiskPendenciesInternalService-WHk-ppNv.js +145 -0
- package/dist/SA-C2hBi4Lh-DJe7imc6.js +16 -0
- package/dist/SB-CBu9QLGP-Zm7rn3TY.js +16 -0
- package/dist/SC-CR6esM-V-Bo0A45g8.js +16 -0
- package/dist/SD-VCXqBHrW-Dc36ZkKw.js +16 -0
- package/dist/SE-DbI0jJm9-CqAlwaOd.js +16 -0
- package/dist/SG-DgprfMyV-CFbIh-wK.js +16 -0
- package/dist/SH-qhjKl9TO-BdwBOgTx.js +16 -0
- package/dist/SI-C3dA03Yk-CvfNW-ca.js +16 -0
- package/dist/SJ-CfaYWvM--Wmn4_5e9.js +16 -0
- package/dist/SK-CxbHN7aU-B6uC2yQk.js +16 -0
- package/dist/SL-GXAaRXng-zi1bLG3X.js +16 -0
- package/dist/SM-B2SteTdO-RLpKypGW.js +16 -0
- package/dist/SN-B7Q__Lx_-Djo-IO4C.js +16 -0
- package/dist/SO-Bnd5-U9z-BSkVHNoK.js +16 -0
- package/dist/SR-BHMDOkL2-BwwEXDkU.js +16 -0
- package/dist/SS-CsTgWca1-CV-Ynua3.js +16 -0
- package/dist/ST-DLqO0boT-DXEkEuGZ.js +16 -0
- package/dist/SV-DNZizmQg-C128vKse.js +16 -0
- package/dist/SX-DWuXjLwS-Db0eoKe-.js +16 -0
- package/dist/SY-DeOQEBum-Dk8H_N_8.js +16 -0
- package/dist/SZ-Bhe0qU5K-CgBFMF6-.js +16 -0
- package/dist/SalesRecovery-B4Thja2M.js +595 -0
- package/dist/SalesRecoveryIA-efVg4JC4.js +199 -0
- package/dist/SendCustomerRefundLinkPage-BuqIgKvN.js +137 -0
- package/dist/StatusDescriptionModal-CYNIOE1j.js +60 -0
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-c6yIqdJa.js +28 -0
- package/dist/TC-D5HTaKiF-ClAflBvq.js +16 -0
- package/dist/TD-DyIWvaGg-CVP03vAg.js +16 -0
- package/dist/TF-BRsv64iE-C0oaO6MU.js +16 -0
- package/dist/TG-OhNa5jmt-DMNgYBxF.js +16 -0
- package/dist/TH-F_ODV0JW-CpOL_sp1.js +16 -0
- package/dist/TJ-BFkbbSmN-Csmcaz0_.js +16 -0
- package/dist/TK-Ct75yy7V-CUazKMgf.js +16 -0
- package/dist/TL-BzqVkHGw-r23cAIYq.js +16 -0
- package/dist/TM-CCAvd8qV-DFrWqdHH.js +16 -0
- package/dist/TN-CmYqbPEz-B3pzWqH5.js +16 -0
- package/dist/TO-BQQk9Xq_-B3hOFwhw.js +16 -0
- package/dist/TR-_MKkCnUV-CichoDJ8.js +16 -0
- package/dist/TT-DoRURl1c-CueLLCZx.js +16 -0
- package/dist/TV-Dt8uZCP4-C08Vobx7.js +16 -0
- package/dist/TW-CvHugvex-ZCo88m_A.js +16 -0
- package/dist/TZ-RbwBgiwb-BKG3wtBA.js +16 -0
- package/dist/TestView-B9ORmp4t.js +14 -0
- package/dist/TopSellingProductsContent-CapF1pxR.js +80 -0
- package/dist/UA-BiXHPMqV-DeyLupeU.js +16 -0
- package/dist/UG--it_LhSj-34w5YImL.js +16 -0
- package/dist/UM-BFcTdeDD-B_L_MtPg.js +16 -0
- package/dist/US-BFcTdeDD-B_L_MtPg.js +16 -0
- package/dist/UY-C26Ndi4P-BRt4Luxu.js +16 -0
- package/dist/UZ-BK5ADwFW-D-rIbj3c.js +16 -0
- package/dist/UserIndicationsPage-KwXikhun.js +743 -0
- package/dist/VA-Cpq1n4yW-CQMrSw3o.js +16 -0
- package/dist/VC-D1Fjbog5-DS-_9LQx.js +16 -0
- package/dist/VE-CeM-hea7-CrLlGLy0.js +16 -0
- package/dist/VG-qhjKl9TO-pvooCb-6.js +16 -0
- package/dist/VI-C-kcu42_-BLh-tNOQ.js +16 -0
- package/dist/VN-2yoryeK1-CqyYI03S.js +16 -0
- package/dist/VU-CkLlsgzP-DFxfxPMN.js +16 -0
- package/dist/WF-BDa53dEz-C5kJ_Hhr.js +16 -0
- package/dist/WS-CNi2O6Qm-QmsKSXlr.js +16 -0
- package/dist/WhatsappPreview.vue_vue_type_script_setup_true_lang-_qUyhaRu.js +157 -0
- package/dist/WithdrawAdvance-BreZtAfY.js +17 -0
- package/dist/WithdrawBalanceStore-B10oLSa_.js +504 -0
- package/dist/WithdrawBankAccountStore-Du2udJuO.js +130 -0
- package/dist/WithdrawBlocked-CQydkcIq.js +133 -0
- package/dist/WithdrawCompanyStore-D9U__hkU.js +80 -0
- package/dist/WithdrawGuaranteeExtract-exYhE-Es.js +980 -0
- package/dist/WithdrawHome-CufaZ8P6.js +1843 -0
- package/dist/WithdrawHome-DEuMKuef.js +2448 -0
- package/dist/WithdrawInternational-BEdv9fhP.js +17 -0
- package/dist/WithdrawMaxStore-BvYFgsgf.js +375 -0
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-D95E4U9r.js +531 -0
- package/dist/WithdrawNoAccountWarning-DElpJnu6.js +233 -0
- package/dist/WithdrawPermissionGuard-cnhy_Vmo.js +338 -0
- package/dist/WithdrawRequest-CKjVx8V1.js +944 -0
- package/dist/WithdrawRequest-CLCKvxDw.js +17 -0
- package/dist/WithdrawRequestDetail-Crzbdmrz.js +284 -0
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-DjpMoI4R.js +937 -0
- package/dist/YE-DxPZysMs-24K9cWE_.js +16 -0
- package/dist/YT-BMJJ1U_T-GX_92h08.js +16 -0
- package/dist/ZA-BjQXS8mc-2n92DpNr.js +16 -0
- package/dist/ZM-Dw0PmMTO-DYwTJ-oI.js +16 -0
- package/dist/ZW-D0UStZMr-DeU_fV34.js +16 -0
- package/dist/affiliate-Bgt9fadK-5bY5P5wZ.js +22 -0
- package/dist/amex-CvNwRHhS-DUMkjlF6.js +16 -0
- package/dist/api-BHFKG5kE.js +11 -0
- package/dist/apple_pay-DtsAzVjF-DCZOAMPl.js +20 -0
- package/dist/archive-CFoPOir7-D1aNQGjF.js +18 -0
- package/dist/aura-D1VyKb6w-l-eJYNis.js +23 -0
- package/dist/boleto-BQZRi0Q5-BLTcSl2i.js +18 -0
- package/dist/box-DNrK38w2-CFIqdJZh.js +20 -0
- package/dist/cart-p5jccB8o-C05mkOt6.js +15 -0
- package/dist/cash-FZcelZV1-4OwwN_xB.js +20 -0
- package/dist/chart-YJ27XOr3-C63Tzu7L.js +22 -0
- package/dist/credit_card-CGrPYCJP-DItpwjaI.js +15 -0
- package/dist/csv-CYa6aPS5-Ce33Pjpr.js +18 -0
- package/dist/dayjs.min-ClXij-Xt.js +282 -0
- package/dist/diners-CN_1suUM-CC8r2OUJ.js +26 -0
- package/dist/discover-vVTOFEvv-BdQ28MnO.js +22 -0
- package/dist/ds-appmax-v322-BTOsNt2U.js +52 -0
- package/dist/ds-appmax-v327-CC7Euamf.js +69 -0
- package/dist/ds-appmax-v330-BDkt8A9-.js +48 -0
- package/dist/ds-appmax-v335-CCAR448_.js +278 -0
- package/dist/elo-BaNbqhYS-COc7gztu.js +15 -0
- package/dist/gear-BHOWpd7b-D52qwW1h.js +18 -0
- package/dist/grid-B7I0mWry-BOSWv5Bq.js +18 -0
- package/dist/hipercard-DBsszwxC-DzTjYDjh.js +22 -0
- package/dist/index-6NiIamsC.js +169 -0
- package/dist/index-B36N6Yug.js +21 -0
- package/dist/index-B6sx5tS0.js +681 -0
- package/dist/index-BE3koNgQ.js +153 -0
- package/dist/index-BPRKiT2E.js +1567 -0
- package/dist/index-Ba4eG-wb.js +409 -0
- package/dist/index-BjIAV-_B.js +200 -0
- package/dist/index-BmVzDTsI.js +83 -0
- package/dist/index-BmcmU6h2.js +92 -0
- package/dist/index-BnmIJFy7.js +67 -0
- package/dist/index-Brv2oJ9J.js +159 -0
- package/dist/index-C-vsON6x.js +106 -0
- package/dist/index-C5SstnrR.js +9812 -0
- package/dist/index-C9MhOAEc.js +35 -0
- package/dist/index-CLH-Zm7T.js +217 -0
- package/dist/index-CNqlIVuO.js +21 -0
- package/dist/index-COnpfUWj.js +332 -0
- package/dist/index-C_nDhPn6.js +219 -0
- package/dist/index-CoSm6RqN.js +961 -0
- package/dist/index-Cz7X93CO.js +1433 -0
- package/dist/index-D0Iyih-u.js +62 -0
- package/dist/index-D19d5hP5.js +1790 -0
- package/dist/index-D1Jdc6lH.js +219 -0
- package/dist/index-D9qqQcAS.js +28 -0
- package/dist/index-DMwoKY6I.js +721 -0
- package/dist/index-DVf0M0X7.js +117 -0
- package/dist/index-DY1YUNXf.js +230 -0
- package/dist/index-DctdjrrX.js +150 -0
- package/dist/index-QxWV09ws.js +11 -0
- package/dist/index-UdcUM2la.js +275 -0
- package/dist/index-dkBrO_eE.js +4133 -0
- package/dist/index-fOdzX3fu.js +18 -0
- package/dist/index-qdDNTlkJ.js +808 -0
- package/dist/index-smItj_5Q.js +534 -0
- package/dist/index.page-DfhxfDjo.js +828 -0
- package/dist/infos-8KGPLXoE-D6f9AKqY.js +18 -0
- package/dist/integrations-UOltVEyj-CEVUBcXa.js +19 -0
- package/dist/logs-Ce3fZY0v-Ex6uqIkv.js +28 -0
- package/dist/maestro-BMomgHxO-Bf54492K.js +27 -0
- package/dist/main-ByGSHXk8.js +103911 -0
- package/dist/main.js +1 -1
- package/dist/mastercard-5I-dcOVV-Cj2v1tDT.js +30 -0
- package/dist/max_brand-Crj-SFUw-DkFK9sxk.js +29 -0
- package/dist/max_brand_active-BIkS5qkP-D3JuiklW.js +27 -0
- package/dist/max_brand_negative-BxvdIegN-BRUDl9NE.js +30 -0
- package/dist/menu.page-BbGUxE5c.js +274 -0
- package/dist/money-DZpB5eTf-Cjkac9KR.js +19 -0
- package/dist/notification-DMezLtAj-Zozt1Wp3.js +18 -0
- package/dist/paypal-DMYjfEw0-BJyNR6z7.js +15 -0
- package/dist/pix-DXdX91yj-B1TvKMJy.js +22 -0
- package/dist/pix_outline-D_xXXgCN-lieqG0_X.js +16 -0
- package/dist/pusher-DcXz3HV4.js +4010 -0
- package/dist/shield-DS-Xf4WH-_rsUOWgL.js +15 -0
- package/dist/solid_help-DNaqfgoc-CpeV4e88.js +20 -0
- package/dist/solid_home-BDUiJDVY-wsmI7UJu.js +18 -0
- package/dist/solid_leaderboard-DtqK7q9Y-B5MK1oI0.js +18 -0
- package/dist/solid_store-Cfv6o4b8-Wr1GF8us.js +18 -0
- package/dist/ticket_icon-DwvyLm7c-BWWC5xqD.js +22 -0
- package/dist/useQueryFilter-Bgv4dMQj.js +93 -0
- package/dist/useRecurringTable-DN0kS1P6.js +161 -0
- package/dist/user-BRpwqYx8-D9-Kz0tC.js +18 -0
- package/dist/validateURL.helper-BvsbRkbu.js +126 -0
- package/dist/visa-tPjWcMbi-BE0B6z8I.js +18 -0
- package/package.json +1 -1
- package/dist/AD-Ct_GVBfr-F0iZzh43.js +0 -16
- package/dist/AE-DiMVenwy-B8gAP_yC.js +0 -16
- package/dist/AF-DOrptOkS-Cwy_BZvL.js +0 -16
- package/dist/AG-CzBMAtom-CgfEZO6L.js +0 -16
- package/dist/AI-A2DnDGPS-DpqQr8jG.js +0 -16
- package/dist/AL-BcGdPXjJ-DMCd-Nqi.js +0 -16
- package/dist/AM-BC_r4gTd-CcjWYDAQ.js +0 -16
- package/dist/AO-D6GK49nd-LKZej1r9.js +0 -16
- package/dist/AQ-Eeziry42-DyYTlRGS.js +0 -16
- package/dist/AR-AbqVWszQ-BatSn_vi.js +0 -16
- package/dist/AS-BWe_Gq8Z-DlAs4e2_.js +0 -16
- package/dist/AT-b5CS9jSt-CRr1j1Ri.js +0 -16
- package/dist/AU-BUbOyX6Q-DaEx2GZ-.js +0 -16
- package/dist/AW-CjVdJTYe-zZS7OtZN.js +0 -16
- package/dist/AX-lNtwEmw2-DITygSQt.js +0 -16
- package/dist/AZ-f8zSo9ut-CDwiKsVc.js +0 -16
- package/dist/AmBulletLegend-nu2EgQb2.js +0 -23
- package/dist/AmCardV3-Bay9-BBN.js +0 -22
- package/dist/AmDoughnutChartAdapted-tywewwFd.js +0 -203
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-CnpVhP99.js +0 -86
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-Dt3FX9Tw.js +0 -40
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-Q3WOtOcz.js +0 -46
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-SuWLFcVM.js +0 -63
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN--77vmJWuR.js +0 -53
- package/dist/AmLayoutFeedbackState-Cv5RUrw6.js +0 -48
- package/dist/AmLayoutInnerData-rTP3FKmu.js +0 -162
- package/dist/AmOutlineCard-BOdCaVzb.js +0 -25
- package/dist/AmSkeleton-yk6Pzn4C.js +0 -35
- package/dist/AmText-B7UQzHj8.js +0 -33
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-DdAal3Yb.js +0 -64
- package/dist/ApiService-DrjuEh5o.js +0 -11
- package/dist/AppInstallationConfirmationPasswordModal-21z9otg1.js +0 -535
- package/dist/AppstoreAppView-B73bYr2e.js +0 -315
- package/dist/AppstoreHomeView-Bw-_zlSK.js +0 -1372
- package/dist/BA-BfV7_7RP-F8JqkZze.js +0 -16
- package/dist/BB-CC4768VM-CMnRksxp.js +0 -16
- package/dist/BD-YQdTTbhg-CqMZPbfS.js +0 -16
- package/dist/BE-DUYoRyei-1lydJB2w.js +0 -16
- package/dist/BF-XZRLkaHX-CZm6F6LW.js +0 -16
- package/dist/BG-BAb8lAFP-Ad4cnAd-.js +0 -16
- package/dist/BH-C1LTB8Fj-CcfcOSyW.js +0 -16
- package/dist/BI-RjDfMipp-MQrL4FYI.js +0 -16
- package/dist/BJ-DAv61IMB-C-qTZgwU.js +0 -16
- package/dist/BL-CFW4iaQd-BraZIfMA.js +0 -16
- package/dist/BM-DuK3dA1G-CYEZXJKJ.js +0 -16
- package/dist/BN-BXHGopan-DRwck0Mc.js +0 -16
- package/dist/BO-CzuoErsx-CiZBS0UG.js +0 -16
- package/dist/BQ-BO-BlM1Uin3-9ePT0Asn.js +0 -16
- package/dist/BQ-SA-BninfeHy-6GO4Spzq.js +0 -16
- package/dist/BQ-SE-tq-mCvpl-BUudoTUe.js +0 -16
- package/dist/BR-B1GEJ05L-CSLBvxZ4.js +0 -16
- package/dist/BS-MeULPH4e-bZ02kQIv.js +0 -16
- package/dist/BT-BCfQJS6a-BPMUoVcw.js +0 -16
- package/dist/BV-CfaYWvM--BrdtnZcA.js +0 -16
- package/dist/BW-jYbPMHhQ-Cu6lhi36.js +0 -16
- package/dist/BY-Ddffd2rT-Be487gr8.js +0 -16
- package/dist/BZ-B7mGW2Jg-D8chbJyr.js +0 -16
- package/dist/BankAccountCrossborderNew.page-BddqvpFp.js +0 -152
- package/dist/BankAccountList.page-BNvPCHa5.js +0 -331
- package/dist/BankAccountNew.page-CFDJVz8O.js +0 -982
- package/dist/CA-CHl-cqJL-DB4j9FVk.js +0 -16
- package/dist/CC-DSLZRwFz-ClA7CKP_.js +0 -16
- package/dist/CD-D4NJYkQm-DsTCf8m1.js +0 -16
- package/dist/CF-DoxRpaA9-BEQxOeLL.js +0 -16
- package/dist/CG-Auzp6pC_-DI7D7XxO.js +0 -16
- package/dist/CH-B5eEo1aL-BbltqURK.js +0 -16
- package/dist/CI-DFfmdeVw-Cl1bRJxT.js +0 -16
- package/dist/CK-CKWUhjXV-CP4nVixC.js +0 -16
- package/dist/CL-Di6p-p6X-B1Kym-Ql.js +0 -16
- package/dist/CM-B0ht31e3-BKinQprU.js +0 -16
- package/dist/CN-CKHlOciI-CEe6lwpb.js +0 -16
- package/dist/CO-GBUkcePt-DN5f4vEk.js +0 -16
- package/dist/CR-Daw5JsjF-BYyRzX6C.js +0 -16
- package/dist/CU-CVOkcTvR-DljJCULn.js +0 -16
- package/dist/CV-cyPoze-o-ODY6g3K8.js +0 -16
- package/dist/CW-Bt-Pwg4j-Ci9_y-u9.js +0 -16
- package/dist/CX-uhIZlYzy-SsdOrcx8.js +0 -16
- package/dist/CY-un4rgwPX-DOn2Liyc.js +0 -16
- package/dist/CZ-equ-r4iN-C_hxtqfh.js +0 -16
- package/dist/CashoutAntecipateContent-BuLxzWiL.js +0 -42
- package/dist/ChargebackAnalytics-gFJCv7ts.js +0 -1701
- package/dist/ChargebackDetail-C-6RswdS.js +0 -3470
- package/dist/ConfirmationModal-STccE9FK.js +0 -105
- package/dist/Create.page-CwdZ7_c5.js +0 -1409
- package/dist/CreatePaymentLink-NL_5TlHd.js +0 -857
- package/dist/DE-zx7UmJ-V-BS0kXMtz.js +0 -16
- package/dist/DJ-BN1kIFYT-D3S2ABv7.js +0 -16
- package/dist/DK-CrXXNH_h-BfTg3lI8.js +0 -16
- package/dist/DM-B4nVdNww-C8q86bvT.js +0 -16
- package/dist/DO-C7-NF2JD-1qS2PEyQ.js +0 -16
- package/dist/DZ-DSDLbNRb-CXYecYcn.js +0 -16
- package/dist/DashboardAmountDetailsContent-C1GdGRZi.js +0 -65
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-DL7098JI.js +0 -151
- package/dist/DashboardApprovalRateInternationalContent-lFyWrkpA.js +0 -19
- package/dist/DashboardApprovalRateNationalContent-BT_zrVP4.js +0 -74
- package/dist/DashboardCarouselContent-BK3PjL79.js +0 -963
- package/dist/DashboardDetailsContent-cAUtagYn.js +0 -58
- package/dist/DashboardHome-CaSyZuRO.js +0 -5399
- package/dist/DetailSubscriptionRecurring-B9nKFQHX.js +0 -1314
- package/dist/EC-C_bjTYWm-DsHtNoWx.js +0 -16
- package/dist/EE-CQIjuoWO-Dj_tL3Gy.js +0 -16
- package/dist/EG-Bs_BHfVR-CrFL2WMv.js +0 -16
- package/dist/EH-CnWam84F-MS1nyvYv.js +0 -16
- package/dist/ER-Dcl4hJzq-DutoWGfF.js +0 -16
- package/dist/ES-Bpj2gAdj-BW2d620V.js +0 -16
- package/dist/ET-Dm3q0Ruz-DZo8ATY5.js +0 -16
- package/dist/ExternalPendenciesList-BPPFQvH8.js +0 -651
- package/dist/FI-DCqfJeiQ-11fV-BEv.js +0 -16
- package/dist/FJ-C6UrGUgI-KUm51Ib8.js +0 -16
- package/dist/FK-CAaec31K-Bw1w-W8s.js +0 -16
- package/dist/FM-Cf2SIJ7h-KPrIpJ1y.js +0 -16
- package/dist/FO-DBb4psBV-B9W61ock.js +0 -16
- package/dist/FR-CFW4iaQd-CWqHUgNh.js +0 -16
- package/dist/FeatureFlagsPage-DfFjyIF5.js +0 -271
- package/dist/Form.page-ClCzuCyz.js +0 -624
- package/dist/GA-D3NTxgTl-XELfISbA.js +0 -16
- package/dist/GB-ENG-Cmkg6Zq8-BPoP907L.js +0 -16
- package/dist/GB-NIR-DKszcfHi-BocgCw2H.js +0 -16
- package/dist/GB-SCT-BiivwJ71-Du37A8O_.js +0 -16
- package/dist/GB-UKM-DgMBd3ib-BIDoZfpE.js +0 -16
- package/dist/GB-WLS-DLoDy9iv-ZqqSrY4X.js +0 -16
- package/dist/GD-Bs1d4We7-D0xc9QuN.js +0 -16
- package/dist/GE-DXG9iLk5-SuIQagWu.js +0 -16
- package/dist/GF-B20s5gtx-CKuNCqPB.js +0 -16
- package/dist/GG-BAyrpIoO-oGFM42J3.js +0 -16
- package/dist/GH-v3jh5r1X-DH4NoKLW.js +0 -16
- package/dist/GI-D39Krd4s-BD9yA-ei.js +0 -16
- package/dist/GL-BDd_W5AU-B5INZUUx.js +0 -16
- package/dist/GM-BNEHspzj-DsJk6IiV.js +0 -16
- package/dist/GN-DdIZ0X6d-CZ0_OxEu.js +0 -16
- package/dist/GP-CFW4iaQd-BXjKkKpL.js +0 -16
- package/dist/GQ-CC3X6AMz-NKhxQZ7G.js +0 -16
- package/dist/GR-C_0rusTd-CipHy4ZL.js +0 -16
- package/dist/GS-Db5l22a1-DJlnW_Q6.js +0 -16
- package/dist/GT-BhbkqUft-DwRk3xfJ.js +0 -16
- package/dist/GU-C0HeItm1-C3KnqEoy.js +0 -16
- package/dist/GW-BjLM1vg--51vX1R5K.js +0 -16
- package/dist/GY-BreBVlhN-CjtwTYgA.js +0 -16
- package/dist/Giftmax-BJe8pa3Q.js +0 -489
- package/dist/HK-BZn9ZQGS-DYuua8sB.js +0 -16
- package/dist/HM-BUbOyX6Q-DuS5weAU.js +0 -16
- package/dist/HN-D4wujIPC-7S8GW-9b.js +0 -16
- package/dist/HR-Jhi3QQ9F-D_k7IbwL.js +0 -16
- package/dist/HT-MMjMjr-R-D3b3hgPi.js +0 -16
- package/dist/HU-CN5KmQ7F-DYJ4md8L.js +0 -16
- package/dist/Home-pFUfEAof.js +0 -997
- package/dist/Home.page-B7w7zx7P.js +0 -499
- package/dist/ID-hVVUTKNG-DALNDLox.js +0 -16
- package/dist/IE-WN_vdKcS-r8eP-_Zs.js +0 -16
- package/dist/IL-D5Wr_Xxh-pr7hp9ur.js +0 -16
- package/dist/IM-B-putc0k-D-Ss0zV8.js +0 -16
- package/dist/IN-CK40zbQD-D2zZ4XVl.js +0 -16
- package/dist/IO-CdvLck7D-lIDeqGXY.js +0 -16
- package/dist/IQ-f_9wyurt-BJX3PcWJ.js +0 -16
- package/dist/IR-B0yfWttH-BmSw08zX.js +0 -16
- package/dist/IS-Dvf-XQTq-BiZAklXr.js +0 -16
- package/dist/IT-uY7cjdFI-D_-tjwaF.js +0 -16
- package/dist/ImportTrackingCode-BN-cDxy9.js +0 -1007
- package/dist/InternalCompanyIssuesDetail-DFcGhpKO.js +0 -862
- package/dist/InternalCompanyList-CJlhSVvO.js +0 -351
- package/dist/InternalPendencyDetail-BKLJB3lK.js +0 -717
- package/dist/JE-C95tN_VG-DBV4EBBR.js +0 -16
- package/dist/JM-zOuEwaB3-JGDKKcts.js +0 -16
- package/dist/JO-Cq88rrOD-DYgBZ-zb.js +0 -16
- package/dist/JP-5evXgWxq-NBMBMIVR.js +0 -16
- package/dist/KE-PHx0d97Z-BS1QTnOJ.js +0 -16
- package/dist/KG-DT4JnieX-m5l71KHl.js +0 -16
- package/dist/KH-ChwV2WTT-BbqVr_Oq.js +0 -16
- package/dist/KI-D212g4Lh-DeuAOfmQ.js +0 -16
- package/dist/KM-mPVp7AKS-CV7nn_4s.js +0 -16
- package/dist/KN-AdXLXICN-BFvRzmEn.js +0 -16
- package/dist/KP-CC6UIrEF-t_INb3kz.js +0 -16
- package/dist/KR-BtnmWR6C-MlbRC0C3.js +0 -16
- package/dist/KW-gqahWVaw-DKGq2WXt.js +0 -16
- package/dist/KY-DjIb70VQ-Cz1DetKe.js +0 -16
- package/dist/KZ-C_fRihiO-CESat3H2.js +0 -16
- package/dist/LA-KIULJHAb-Bim-d1KJ.js +0 -16
- package/dist/LB-CrF8WJiI-CmBC4lTr.js +0 -16
- package/dist/LC-DGiHXm5V-DIZVclSG.js +0 -16
- package/dist/LI-BwB0b8M1-Dy_PTf8y.js +0 -16
- package/dist/LK-BOC44ZgS-Q8ikHfmm.js +0 -16
- package/dist/LR-CWjRlWOZ-BM8WajB6.js +0 -16
- package/dist/LS-B_EgU3p5-DPBhe5Ef.js +0 -16
- package/dist/LT-BPyPiVx2-DeAJtpxd.js +0 -16
- package/dist/LU-B-De6aB--C06WOodC.js +0 -16
- package/dist/LV-D2Ewe3XC-DA3THIZC.js +0 -16
- package/dist/LY-D1TSt6YI-D-TzyJPp.js +0 -16
- package/dist/MA-QY5gm-vM-ZvB6kwac.js +0 -16
- package/dist/MC-BjlCjfCP-BY6csHcr.js +0 -16
- package/dist/MD-rh-6rlSt-DBbdgsj1.js +0 -16
- package/dist/ME-D1euo0V2-D0MKJkJa.js +0 -16
- package/dist/MF-CFW4iaQd-BQ0pnAUK.js +0 -16
- package/dist/MG-ONnxn_5g-DdD2EbF5.js +0 -16
- package/dist/MH-B8oC_VMS-CmYP1qIz.js +0 -16
- package/dist/MK-ByjICisj-DGn1SOwL.js +0 -16
- package/dist/ML-CKVAuhox-Dn6lAMRz.js +0 -16
- package/dist/MM-doJuUjVT-C0KP-Cv4.js +0 -16
- package/dist/MN-BFP303GE-CKn_WdVA.js +0 -16
- package/dist/MO-Dp4PTSYU-B_AXtKD6.js +0 -16
- package/dist/MP-CqKsnjHV-mzt6qqjx.js +0 -16
- package/dist/MQ-CFW4iaQd-DpbnMvl4.js +0 -16
- package/dist/MR-D73q_PiY-BnAtsABQ.js +0 -16
- package/dist/MS-qhjKl9TO-Bd8gSFrP.js +0 -16
- package/dist/MT-CZjbs1U--EgeCDXd4.js +0 -16
- package/dist/MU-D0EQOl0S-BYLs1W5Z.js +0 -16
- package/dist/MV-BtwHRTMn-BCdBPszP.js +0 -16
- package/dist/MW-CVnAR98j-CJZbRagJ.js +0 -16
- package/dist/MX-C7vXnCDY-Dmin-oWl.js +0 -16
- package/dist/MY-DJcgH_o3-2oOLkdlD.js +0 -16
- package/dist/MZ-BbLwl9DA-FYUzVCo5.js +0 -16
- package/dist/Max.page-CRhbzJ09.js +0 -879
- package/dist/MostSoldCountries-DG_Wc7uA.js +0 -22
- package/dist/NA-5FKNjRGT-BWqKe71_.js +0 -16
- package/dist/NC-CFW4iaQd-D3IlHn7e.js +0 -16
- package/dist/NE-DpLZJa7D-CGV72KGn.js +0 -16
- package/dist/NF-BT-wIfwf--HSCkAos.js +0 -16
- package/dist/NG-BAiR_q0H-x2oPxOaQ.js +0 -16
- package/dist/NI-DylPDojG-FpIXxQpF.js +0 -16
- package/dist/NL-iozeFKPM-DBppf4BZ.js +0 -16
- package/dist/NO-CfaYWvM--CMXm4PaG.js +0 -16
- package/dist/NP-BGR_ZaqA-ByV9nGnO.js +0 -16
- package/dist/NR-DHGW5Y3Q-PSsRcf81.js +0 -16
- package/dist/NU-CcpcSx_x-9gVU1wF-.js +0 -16
- package/dist/NZ-DDYt6DcJ-83Lkgw7S.js +0 -16
- package/dist/OM-D6hiar1r-CJba-daf.js +0 -16
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-BsAfhXp7.js +0 -790
- package/dist/OrderStatusChip-DjUvy8Gk.js +0 -30
- package/dist/Orders.page-MN81O0nE.js +0 -1636
- package/dist/OrdersChartDataContent-DZ9DsBl-.js +0 -221
- package/dist/OrdersDetails.page-D5T8h9Un.js +0 -6194
- package/dist/PA-Bi2blxjJ-DIGWZnCX.js +0 -16
- package/dist/PE-D4DjQOlP-BKBTx4UK.js +0 -16
- package/dist/PF-DmOSfnYB-1ApQTn_-.js +0 -16
- package/dist/PG-DeOlZ7TA-DKYqmbsV.js +0 -16
- package/dist/PH-Dv4KdxU--CkFstgXH.js +0 -16
- package/dist/PK-CRhM95F8-IROg-6-b.js +0 -16
- package/dist/PL-BIdMQAtx-71vcrbUA.js +0 -16
- package/dist/PM-BDa53dEz-olcElLQY.js +0 -16
- package/dist/PN-Csu7Dufn-BRdUWiqn.js +0 -16
- package/dist/PR-C_Acdbc_-XVJp0ZAd.js +0 -16
- package/dist/PS-Dmg0ofZr-BfcXOnvL.js +0 -16
- package/dist/PT-Bsck4nv8-wXHigpK7.js +0 -16
- package/dist/PW-CBMqjpxh-w9ngaopP.js +0 -16
- package/dist/PY-Be6zNh15-DSh0UOul.js +0 -16
- package/dist/PaymentsLinks-DmGMdhQq.js +0 -675
- package/dist/QA-CZmcW85r-1dcbocf7.js +0 -16
- package/dist/RE-CFW4iaQd-ZjFoKpOm.js +0 -16
- package/dist/RO-6H4O-gQF-D5kCIFp3.js +0 -16
- package/dist/RS-DM7vMnHL-B8bpIXlq.js +0 -16
- package/dist/RU-HqKQeTq2-Dbq5EvWT.js +0 -16
- package/dist/RW-DkH4VhfP-CSJHwy2h.js +0 -16
- package/dist/RecurringSubscription-Dns1lfxX.js +0 -639
- package/dist/RecurringSubscriptionDashView-BU74Iu14.js +0 -2051
- package/dist/RefundChargeback-DxzX1ggU.js +0 -97
- package/dist/RiskPendenciesInternalService-C18MHw9P.js +0 -145
- package/dist/SA-C2hBi4Lh-LVuceiPn.js +0 -16
- package/dist/SB-CBu9QLGP-CDNlu2Hi.js +0 -16
- package/dist/SC-CR6esM-V-zzjShRK_.js +0 -16
- package/dist/SD-VCXqBHrW-_q1bkXLo.js +0 -16
- package/dist/SE-DbI0jJm9-CVNv6YY5.js +0 -16
- package/dist/SG-DgprfMyV-8f-vday0.js +0 -16
- package/dist/SH-qhjKl9TO-D5KY5Y-m.js +0 -16
- package/dist/SI-C3dA03Yk-DBM3URbM.js +0 -16
- package/dist/SJ-CfaYWvM--Ca3QZPZ3.js +0 -16
- package/dist/SK-CxbHN7aU-BJMmIJs8.js +0 -16
- package/dist/SL-GXAaRXng-BqldurGy.js +0 -16
- package/dist/SM-B2SteTdO-De8TzD4p.js +0 -16
- package/dist/SN-B7Q__Lx_-DmZlDE1W.js +0 -16
- package/dist/SO-Bnd5-U9z-ChYTpGa9.js +0 -16
- package/dist/SR-BHMDOkL2-DOoMrZJY.js +0 -16
- package/dist/SS-CsTgWca1-Bc7bSVgH.js +0 -16
- package/dist/ST-DLqO0boT-lp2LWq4J.js +0 -16
- package/dist/SV-DNZizmQg-iLSymkkM.js +0 -16
- package/dist/SX-DWuXjLwS-Cq7piB0J.js +0 -16
- package/dist/SY-DeOQEBum-CkORRYcV.js +0 -16
- package/dist/SZ-Bhe0qU5K-Bi4t0wtA.js +0 -16
- package/dist/SalesRecovery-DdXIO9M9.js +0 -595
- package/dist/SalesRecoveryIA-DIoHDLwj.js +0 -199
- package/dist/SendCustomerRefundLinkPage-BoNDJcX5.js +0 -137
- package/dist/StatusDescriptionModal-C1st_TVR.js +0 -60
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-fsT8_PI4.js +0 -28
- package/dist/TC-D5HTaKiF-C_qC-bkC.js +0 -16
- package/dist/TD-DyIWvaGg-6oLoIBo9.js +0 -16
- package/dist/TF-BRsv64iE-CVHPxNav.js +0 -16
- package/dist/TG-OhNa5jmt-pbhXOQv_.js +0 -16
- package/dist/TH-F_ODV0JW-BIxnXFCx.js +0 -16
- package/dist/TJ-BFkbbSmN-CdT7ozJu.js +0 -16
- package/dist/TK-Ct75yy7V-dGc6SSsm.js +0 -16
- package/dist/TL-BzqVkHGw-vDmIdZ4m.js +0 -16
- package/dist/TM-CCAvd8qV-Di0BOTBf.js +0 -16
- package/dist/TN-CmYqbPEz-DWwMw0Fr.js +0 -16
- package/dist/TO-BQQk9Xq_-B8DFmqC6.js +0 -16
- package/dist/TR-_MKkCnUV-JwlcTP3L.js +0 -16
- package/dist/TT-DoRURl1c-CH-cqA8a.js +0 -16
- package/dist/TV-Dt8uZCP4-BNxfT83l.js +0 -16
- package/dist/TW-CvHugvex-DfXcsCaL.js +0 -16
- package/dist/TZ-RbwBgiwb-duq9OFxQ.js +0 -16
- package/dist/TestView-9CRQm_ef.js +0 -14
- package/dist/TopSellingProductsContent-DKh5NdxZ.js +0 -80
- package/dist/UA-BiXHPMqV-B8z263ap.js +0 -16
- package/dist/UG--it_LhSj-DlUiWeJc.js +0 -16
- package/dist/UM-BFcTdeDD-DMTJGVgK.js +0 -16
- package/dist/US-BFcTdeDD-DMTJGVgK.js +0 -16
- package/dist/UY-C26Ndi4P-BVZWb-RO.js +0 -16
- package/dist/UZ-BK5ADwFW-ph43lXhE.js +0 -16
- package/dist/UserIndicationsPage-BnnT28Tn.js +0 -743
- package/dist/VA-Cpq1n4yW-Cpuym3zd.js +0 -16
- package/dist/VC-D1Fjbog5-BCfEgmx0.js +0 -16
- package/dist/VE-CeM-hea7-BOAng-R9.js +0 -16
- package/dist/VG-qhjKl9TO-D_i-eenB.js +0 -16
- package/dist/VI-C-kcu42_-gDEsrJsD.js +0 -16
- package/dist/VN-2yoryeK1-uHPQxyir.js +0 -16
- package/dist/VU-CkLlsgzP-CL7qX3FO.js +0 -16
- package/dist/WF-BDa53dEz-CyEpzrWH.js +0 -16
- package/dist/WS-CNi2O6Qm-CMb4auQx.js +0 -16
- package/dist/WhatsappPreview.vue_vue_type_script_setup_true_lang-D1omqu9f.js +0 -157
- package/dist/WithdrawAdvance-Ccep1JA-.js +0 -17
- package/dist/WithdrawBalanceStore-B20oJdvz.js +0 -504
- package/dist/WithdrawBankAccountStore-DsC4ZZdM.js +0 -130
- package/dist/WithdrawBlocked-NNr_muot.js +0 -133
- package/dist/WithdrawCompanyStore-BfVnw3lu.js +0 -80
- package/dist/WithdrawGuaranteeExtract-D89hQaf8.js +0 -980
- package/dist/WithdrawHome-BFYz-v7C.js +0 -2448
- package/dist/WithdrawHome-DGDCoK7n.js +0 -1843
- package/dist/WithdrawInternational-Cqb89TzD.js +0 -17
- package/dist/WithdrawMaxStore-_rja1BVK.js +0 -375
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-D-p791VE.js +0 -531
- package/dist/WithdrawNoAccountWarning-D0hQYAcv.js +0 -233
- package/dist/WithdrawPermissionGuard-Dh_mbukV.js +0 -338
- package/dist/WithdrawRequest-CB8Y9QWF.js +0 -17
- package/dist/WithdrawRequest-F37bBNu9.js +0 -944
- package/dist/WithdrawRequestDetail-CNp0KDNX.js +0 -284
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-DGkd1Esj.js +0 -937
- package/dist/YE-DxPZysMs-CpLn8RWj.js +0 -16
- package/dist/YT-BMJJ1U_T-CDXFoXV0.js +0 -16
- package/dist/ZA-BjQXS8mc-B0UQZUrN.js +0 -16
- package/dist/ZM-Dw0PmMTO-lGOmeQdn.js +0 -16
- package/dist/ZW-D0UStZMr-xCVgLVmw.js +0 -16
- package/dist/affiliate-Bgt9fadK-D963Q88G.js +0 -22
- package/dist/amex-CvNwRHhS-BBsK7IIu.js +0 -16
- package/dist/api-CIMKicLA.js +0 -11
- package/dist/apple_pay-DtsAzVjF-B41BU1HD.js +0 -20
- package/dist/archive-CFoPOir7-BpMgkpDZ.js +0 -18
- package/dist/aura-D1VyKb6w-Dv3gZn_e.js +0 -23
- package/dist/boleto-BQZRi0Q5-CxYgPyHm.js +0 -18
- package/dist/box-DNrK38w2-BwLsz66q.js +0 -20
- package/dist/cart-p5jccB8o-DF5drP2k.js +0 -15
- package/dist/cash-FZcelZV1-CnTZqD-U.js +0 -20
- package/dist/chart-YJ27XOr3-BPPe3GdW.js +0 -22
- package/dist/credit_card-CGrPYCJP-e0PKYFkL.js +0 -15
- package/dist/csv-CYa6aPS5-DFrnOxgO.js +0 -18
- package/dist/dayjs.min-BfgpYSt2.js +0 -282
- package/dist/diners-CN_1suUM-DVgMrdIj.js +0 -26
- package/dist/discover-vVTOFEvv-eHwdSwfK.js +0 -22
- package/dist/ds-appmax-v322-CpQMgZw3.js +0 -52
- package/dist/ds-appmax-v327-Ogu8YEIj.js +0 -69
- package/dist/ds-appmax-v330-DU7SsVuF.js +0 -48
- package/dist/ds-appmax-v335-Bu5aCfYb.js +0 -278
- package/dist/elo-BaNbqhYS-2SN-EGzL.js +0 -15
- package/dist/gear-BHOWpd7b-CxTyK_3h.js +0 -18
- package/dist/grid-B7I0mWry-DIYOqABE.js +0 -18
- package/dist/hipercard-DBsszwxC-O3YILWno.js +0 -22
- package/dist/index-B0VSb7WU.js +0 -1567
- package/dist/index-B3TmIKjB.js +0 -150
- package/dist/index-B50N-W-a.js +0 -808
- package/dist/index-B5D3_Xvi.js +0 -9812
- package/dist/index-BH-_EudT.js +0 -117
- package/dist/index-BQkmaKbH.js +0 -83
- package/dist/index-BWlCj_o_.js +0 -681
- package/dist/index-BYTi8KOq.js +0 -1790
- package/dist/index-BeA0UPnd.js +0 -28
- package/dist/index-Bfu5BNbN.js +0 -230
- package/dist/index-ByaHDAn-.js +0 -534
- package/dist/index-C9VJ4W4D.js +0 -961
- package/dist/index-CDH6Q9OK.js +0 -18
- package/dist/index-CbPPVyeN.js +0 -217
- package/dist/index-Cc1ntr1N.js +0 -21
- package/dist/index-CnNeFAhj.js +0 -35
- package/dist/index-CoD8VMcG.js +0 -4133
- package/dist/index-Ct51ZylZ.js +0 -200
- package/dist/index-D9bN7Q-Y.js +0 -409
- package/dist/index-DFe60DBo.js +0 -159
- package/dist/index-DHI_7PxN.js +0 -11
- package/dist/index-DMwh-GaM.js +0 -275
- package/dist/index-DbAmAB7j.js +0 -219
- package/dist/index-DhRYkSPC.js +0 -721
- package/dist/index-Dhe_zOZu.js +0 -219
- package/dist/index-Du2tTRlE.js +0 -21
- package/dist/index-DzftXkkx.js +0 -67
- package/dist/index-GylxZXuC.js +0 -62
- package/dist/index-QZyAbkkv.js +0 -106
- package/dist/index-XpYbwknJ.js +0 -332
- package/dist/index-_-X480d-.js +0 -92
- package/dist/index-bCzxdosm.js +0 -169
- package/dist/index-nN012QFO.js +0 -153
- package/dist/index-w0KwgECI.js +0 -1433
- package/dist/index.page-CNPvzJKt.js +0 -828
- package/dist/infos-8KGPLXoE-C6OsCWqK.js +0 -18
- package/dist/integrations-UOltVEyj-M_RdnWiP.js +0 -19
- package/dist/logs-Ce3fZY0v-CVreLBK_.js +0 -28
- package/dist/maestro-BMomgHxO-BNgiakAR.js +0 -27
- package/dist/main-BxSNdVUz.js +0 -103911
- package/dist/mastercard-5I-dcOVV-Ds80DwY-.js +0 -30
- package/dist/max_brand-Crj-SFUw-DK399Iq_.js +0 -29
- package/dist/max_brand_active-BIkS5qkP-CMFLrBZF.js +0 -27
- package/dist/max_brand_negative-BxvdIegN-JSR-KVwv.js +0 -30
- package/dist/menu.page-kL-gVlzs.js +0 -274
- package/dist/money-DZpB5eTf-C4RoV8Qo.js +0 -19
- package/dist/notification-DMezLtAj-IzO6v-CJ.js +0 -18
- package/dist/paypal-DMYjfEw0-D_lMXGAN.js +0 -15
- package/dist/pix-DXdX91yj-CsL4mdir.js +0 -22
- package/dist/pix_outline-D_xXXgCN-Ci4-UNcA.js +0 -16
- package/dist/pusher-Dk_QQo3l.js +0 -4010
- package/dist/shield-DS-Xf4WH-CqZ9vik1.js +0 -15
- package/dist/solid_help-DNaqfgoc-DprccH4-.js +0 -20
- package/dist/solid_home-BDUiJDVY-BJxbZIJ7.js +0 -18
- package/dist/solid_leaderboard-DtqK7q9Y-DhzHx0Mm.js +0 -18
- package/dist/solid_store-Cfv6o4b8-CVAdL9nk.js +0 -18
- package/dist/ticket_icon-DwvyLm7c-HVUOghvW.js +0 -22
- package/dist/useQueryFilter-B9jobv4G.js +0 -93
- package/dist/useRecurringTable-C-HMx7Go.js +0 -161
- package/dist/user-BRpwqYx8-Cr7iRLnS.js +0 -18
- package/dist/validateURL.helper-CAafZEs1.js +0 -126
- package/dist/visa-tPjWcMbi-zgcZYmD1.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-ByGSHXk8.js";
|
|
5
|
+
import { H } from "./AmHelper.vue_vue_type_script_setup_true_lang-D2zQmEN--ClK0lGCz.js";
|
|
6
|
+
import { a as script, s as script$1 } from "./index-C5SstnrR.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-D0_gEBWQ.js";
|
|
8
|
+
import { u as useQueryFilter } from "./useQueryFilter-Bgv4dMQj.js";
|
|
9
|
+
import { u as userInteractionsService } from "./index-D9qqQcAS.js";
|
|
10
|
+
import { s as script$2 } from "./index-D1Jdc6lH.js";
|
|
11
|
+
import { _ as _sfc_main$m } from "./AmLayoutFeedbackState-Di__llrB.js";
|
|
12
|
+
import { P as Pusher } from "./pusher-DcXz3HV4.js";
|
|
13
|
+
import { O as OrderStatusChip } from "./OrderStatusChip-BE3PjteJ.js";
|
|
14
|
+
import { z } from "./index-Dq110QZ7.js";
|
|
15
|
+
import { b, k as ke } from "./index-qdDNTlkJ.js";
|
|
16
|
+
import { B } from "./index-D0Iyih-u.js";
|
|
17
|
+
import { b as script$7, s as script$8, a as script$9 } from "./index-B6sx5tS0.js";
|
|
18
|
+
import { s as script$a } from "./index-DMwoKY6I.js";
|
|
19
|
+
import { A as AmCardV3 } from "./AmCardV3-OdRs-z1j.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
|
+
};
|