appmax-client-vue3 5.0.7 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AD-Ct_GVBfr-cQ4a5cfc.js +16 -0
- package/dist/AE-DiMVenwy-B0rz611J.js +16 -0
- package/dist/AF-DOrptOkS-Dlg85nbj.js +16 -0
- package/dist/AG-CzBMAtom-BeDRehUY.js +16 -0
- package/dist/AI-A2DnDGPS-CZ6Eldry.js +16 -0
- package/dist/AL-BcGdPXjJ-D5CkFm-n.js +16 -0
- package/dist/AM-BC_r4gTd-CVKMijUT.js +16 -0
- package/dist/AO-D6GK49nd-D7IiVztu.js +16 -0
- package/dist/AQ-Eeziry42-Dd9d6wBV.js +16 -0
- package/dist/AR-AbqVWszQ-BYJGpzRw.js +16 -0
- package/dist/AS-BWe_Gq8Z-DYbC4AK5.js +16 -0
- package/dist/AT-b5CS9jSt-CwgwoLk5.js +16 -0
- package/dist/AU-BUbOyX6Q-BR8bScxE.js +16 -0
- package/dist/AW-CjVdJTYe-BEWtgL7i.js +16 -0
- package/dist/AX-lNtwEmw2-DwtL35kv.js +16 -0
- package/dist/AZ-f8zSo9ut-Clg7Ojde.js +16 -0
- package/dist/AmBulletLegend-BvtiCFd0.js +23 -0
- package/dist/AmCardV3-DchSFKey.js +22 -0
- package/dist/AmChip.vue_vue_type_script_setup_true_lang-DwJkCLRa-DsWUFoqV.js +36 -0
- package/dist/AmDoughnutChartAdapted-CJG9jUIL.js +203 -0
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-CwhBcd2N.js +86 -0
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-D_T-NL5-.js +40 -0
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-B9Hskzfm.js +46 -0
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-CKHWbmVG.js +63 -0
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-4vSpYa8P-Bwvn-xR-.js +53 -0
- package/dist/AmLayoutFeedbackState-CXpvQO-G.js +48 -0
- package/dist/AmLayoutInnerData-BW49gIDt.js +162 -0
- package/dist/AmModalV3-__l_KnZk.js +105 -0
- package/dist/AmOutlineCard-Cekp1WHd.js +25 -0
- package/dist/AmSkeleton-QAeglqE9.js +35 -0
- package/dist/AmText-zmP_zSVS.js +33 -0
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-V7VwltuB.js +64 -0
- package/dist/ApiService-FI00lUqN.js +11 -0
- package/dist/AppInstallationConfirmationPasswordModal-ecvzv_Z_.js +535 -0
- package/dist/AppstoreAppView-po5NMNho.js +315 -0
- package/dist/AppstoreHomeView-BxwsWd66.js +1372 -0
- package/dist/BA-BfV7_7RP-CdtL3_u-.js +16 -0
- package/dist/BB-CC4768VM-DhLhAhe3.js +16 -0
- package/dist/BD-YQdTTbhg-DMtDeVAb.js +16 -0
- package/dist/BE-DUYoRyei-BEvudZKj.js +16 -0
- package/dist/BF-XZRLkaHX-CR9EjaP1.js +16 -0
- package/dist/BG-BAb8lAFP-HLg34ECL.js +16 -0
- package/dist/BH-C1LTB8Fj-Cppsgy8O.js +16 -0
- package/dist/BI-RjDfMipp-CE9l_Iq7.js +16 -0
- package/dist/BJ-DAv61IMB-DoCbv9L0.js +16 -0
- package/dist/BL-CFW4iaQd-DOahUSHv.js +16 -0
- package/dist/BM-DuK3dA1G-CxqP9OfR.js +16 -0
- package/dist/BN-BXHGopan-Cd85uOXy.js +16 -0
- package/dist/BO-CzuoErsx-_03XuXuC.js +16 -0
- package/dist/BQ-BO-BlM1Uin3-BOIkHen7.js +16 -0
- package/dist/BQ-SA-BninfeHy-C0GHoFPH.js +16 -0
- package/dist/BQ-SE-tq-mCvpl-2WPWzedA.js +16 -0
- package/dist/BR-B1GEJ05L-C2ZZAif9.js +16 -0
- package/dist/BS-MeULPH4e-DBaOraYK.js +16 -0
- package/dist/BT-BCfQJS6a-BLC_WdcS.js +16 -0
- package/dist/BV-CfaYWvM--D_KJlJOQ.js +16 -0
- package/dist/BW-jYbPMHhQ-C8Lb5icG.js +16 -0
- package/dist/BY-Ddffd2rT-C1GAdhV2.js +16 -0
- package/dist/BZ-B7mGW2Jg-CNw4DD-d.js +16 -0
- package/dist/BankAccountCrossborderNew.page-DQux5zf0.js +152 -0
- package/dist/BankAccountList.page-Bcu0htSa.js +331 -0
- package/dist/BankAccountNew.page-BFoiavha.js +982 -0
- package/dist/CA-CHl-cqJL-CnmiElXW.js +16 -0
- package/dist/CC-DSLZRwFz-YTiWGcPB.js +16 -0
- package/dist/CD-D4NJYkQm-B8y0_cWS.js +16 -0
- package/dist/CF-DoxRpaA9-CuuixUxi.js +16 -0
- package/dist/CG-Auzp6pC_-B7bNoPPu.js +16 -0
- package/dist/CH-B5eEo1aL-4qy6VQ0T.js +16 -0
- package/dist/CI-DFfmdeVw-BOnX64b2.js +16 -0
- package/dist/CK-CKWUhjXV-DzEW30E0.js +16 -0
- package/dist/CL-Di6p-p6X-DTXYGmwx.js +16 -0
- package/dist/CM-B0ht31e3-BLfI9WAq.js +16 -0
- package/dist/CN-CKHlOciI-C-aeke3f.js +16 -0
- package/dist/CO-GBUkcePt-s07s_jAh.js +16 -0
- package/dist/CR-Daw5JsjF-jZ_2Z4UI.js +16 -0
- package/dist/CU-CVOkcTvR-lLyIKmY2.js +16 -0
- package/dist/CV-cyPoze-o-BrLD8oek.js +16 -0
- package/dist/CW-Bt-Pwg4j-dTP8U250.js +16 -0
- package/dist/CX-uhIZlYzy-D35Qlo9H.js +16 -0
- package/dist/CY-un4rgwPX-CyRegt9K.js +16 -0
- package/dist/CZ-equ-r4iN-BYkKwBwz.js +16 -0
- package/dist/CashoutAntecipateContent-71lG8s1J.js +42 -0
- package/dist/ChargebackAnalytics-BMAtpusg.js +1701 -0
- package/dist/ChargebackDetail-CIi_nj3p.js +3469 -0
- package/dist/ChargebackRate-BwONk0ti.js +77 -0
- package/dist/ChatPlayground.page-DNeAXjNS.js +508 -0
- package/dist/ConfirmationModal-DZcoE4p9.js +105 -0
- package/dist/Create.page-BwAAzAzl.js +1390 -0
- package/dist/CreatePaymentLink-DsxEZgio.js +856 -0
- package/dist/DE-zx7UmJ-V-C6Nd_yEj.js +16 -0
- package/dist/DJ-BN1kIFYT-3r2UiJ_3.js +16 -0
- package/dist/DK-CrXXNH_h-D9Wf-1w5.js +16 -0
- package/dist/DM-B4nVdNww-8ssbwWEl.js +16 -0
- package/dist/DO-C7-NF2JD-Cc3Nswn3.js +16 -0
- package/dist/DZ-DSDLbNRb-C5nbVIie.js +16 -0
- package/dist/DashboardAmountDetailsContent-DXf9HLWN.js +65 -0
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-Cq4sWQPa.js +151 -0
- package/dist/DashboardApprovalRateInternationalContent-1126PBeG.js +19 -0
- package/dist/DashboardApprovalRateNationalContent-Un9xNX9u.js +74 -0
- package/dist/DashboardCarouselContent-BKcxX5sL.js +958 -0
- package/dist/DashboardDetailsContent-Da7ZFFK-.js +58 -0
- package/dist/DashboardHome-BHc3aFZ5.js +4247 -0
- package/dist/DetailSubscriptionRecurring-YNgms1UG.js +1296 -0
- package/dist/EC-C_bjTYWm-DQSAQg_x.js +16 -0
- package/dist/EE-CQIjuoWO-BKGSaehG.js +16 -0
- package/dist/EG-Bs_BHfVR-ZP4NC-Hh.js +16 -0
- package/dist/EH-CnWam84F-B1rgfhwX.js +16 -0
- package/dist/ER-Dcl4hJzq-p-2WkJ5N.js +16 -0
- package/dist/ES-Bpj2gAdj-DJP_ReJS.js +16 -0
- package/dist/ET-Dm3q0Ruz-CSBD34y6.js +16 -0
- package/dist/ExternalPendenciesList-vuGvLENi.js +651 -0
- package/dist/FI-DCqfJeiQ-DiOXSu5V.js +16 -0
- package/dist/FJ-C6UrGUgI-idgnkQZ1.js +16 -0
- package/dist/FK-CAaec31K-LUCrleAe.js +16 -0
- package/dist/FM-Cf2SIJ7h-C0LkN_ey.js +16 -0
- package/dist/FO-DBb4psBV-CIeJTpSI.js +16 -0
- package/dist/FR-CFW4iaQd-Cov3Kjaw.js +16 -0
- package/dist/FeatureFlagsPage-acrdmd_r.js +271 -0
- package/dist/GA-D3NTxgTl-CMUat5kJ.js +16 -0
- package/dist/GB-ENG-Cmkg6Zq8-BpbMuQ63.js +16 -0
- package/dist/GB-NIR-DKszcfHi-DwlZuaM1.js +16 -0
- package/dist/GB-SCT-BiivwJ71-BLLEmP1l.js +16 -0
- package/dist/GB-UKM-DgMBd3ib-HCD8Hp7l.js +16 -0
- package/dist/GB-WLS-DLoDy9iv-CzcKhwZE.js +16 -0
- package/dist/GD-Bs1d4We7-19F_vAKE.js +16 -0
- package/dist/GE-DXG9iLk5-CN9QkBwv.js +16 -0
- package/dist/GF-B20s5gtx-By5qiVAi.js +16 -0
- package/dist/GG-BAyrpIoO-BuGooC5e.js +16 -0
- package/dist/GH-v3jh5r1X-Bp-vIyOi.js +16 -0
- package/dist/GI-D39Krd4s-BmRDvhlv.js +16 -0
- package/dist/GL-BDd_W5AU-BU6HHyob.js +16 -0
- package/dist/GM-BNEHspzj-DdmaiQ9h.js +16 -0
- package/dist/GN-DdIZ0X6d-DYhJx77Z.js +16 -0
- package/dist/GP-CFW4iaQd-Bo1tmbcC.js +16 -0
- package/dist/GQ-CC3X6AMz-BwvSl3jM.js +16 -0
- package/dist/GR-C_0rusTd-BwOwPBRj.js +16 -0
- package/dist/GS-Db5l22a1-B_h9Qxmy.js +16 -0
- package/dist/GT-BhbkqUft-C88-QcxQ.js +16 -0
- package/dist/GU-C0HeItm1-DBcEL5CF.js +16 -0
- package/dist/GW-BjLM1vg--DMxTq-kM.js +16 -0
- package/dist/GY-BreBVlhN-DJ55sRow.js +16 -0
- package/dist/HK-BZn9ZQGS-vIGQp2md.js +16 -0
- package/dist/HM-BUbOyX6Q-BXNr9FcX.js +16 -0
- package/dist/HN-D4wujIPC-CbldF2bA.js +16 -0
- package/dist/HR-Jhi3QQ9F-Cw_AHW_j.js +16 -0
- package/dist/HT-MMjMjr-R-CX2w4blG.js +16 -0
- package/dist/HU-CN5KmQ7F-DtlOlA33.js +16 -0
- package/dist/Home-ymfdaQ7h.js +997 -0
- package/dist/ID-hVVUTKNG-sIAb1qfL.js +16 -0
- package/dist/IE-WN_vdKcS-CBBzgg5k.js +16 -0
- package/dist/IL-D5Wr_Xxh-C0oZh3Lg.js +16 -0
- package/dist/IM-B-putc0k-BKCxmoAQ.js +16 -0
- package/dist/IN-CK40zbQD-Cxrg0oYW.js +16 -0
- package/dist/IO-CdvLck7D-YHlBeKul.js +16 -0
- package/dist/IQ-f_9wyurt-C06zuJlv.js +16 -0
- package/dist/IR-B0yfWttH-veFk0ATO.js +16 -0
- package/dist/IS-Dvf-XQTq-BNZH9PeU.js +16 -0
- package/dist/IT-uY7cjdFI-_5QAtT6S.js +16 -0
- package/dist/ImportTrackingCode-D7QRQAWp.js +1007 -0
- package/dist/InternalCompanyIssuesDetail-PnOyPEba.js +862 -0
- package/dist/InternalCompanyList-Cmp0unVk.js +351 -0
- package/dist/InternalPendencyDetail-CLuG9Mte.js +717 -0
- package/dist/JE-C95tN_VG-BX08m1gW.js +16 -0
- package/dist/JM-zOuEwaB3-CD5mNaF1.js +16 -0
- package/dist/JO-Cq88rrOD-K3GQlzuJ.js +16 -0
- package/dist/JP-5evXgWxq-DayJ-KZ8.js +16 -0
- package/dist/KE-PHx0d97Z-B6Hii3q8.js +16 -0
- package/dist/KG-DT4JnieX-Y3HA5HQb.js +16 -0
- package/dist/KH-ChwV2WTT-C-1HZgKx.js +16 -0
- package/dist/KI-D212g4Lh-C6tOpEB1.js +16 -0
- package/dist/KM-mPVp7AKS-DwgFWirM.js +16 -0
- package/dist/KN-AdXLXICN-D_tTBLR-.js +16 -0
- package/dist/KP-CC6UIrEF-DqRQZFVN.js +16 -0
- package/dist/KR-BtnmWR6C-DbnWwQi4.js +16 -0
- package/dist/KW-gqahWVaw-M1jw-wi8.js +16 -0
- package/dist/KY-DjIb70VQ-BSKGwNW9.js +16 -0
- package/dist/KZ-C_fRihiO-CP6Ba0xF.js +16 -0
- package/dist/LA-KIULJHAb-CjjDUUTx.js +16 -0
- package/dist/LB-CrF8WJiI-BFkwpo7Y.js +16 -0
- package/dist/LC-DGiHXm5V-VV1-k3ZO.js +16 -0
- package/dist/LI-BwB0b8M1-DKGXU2GV.js +16 -0
- package/dist/LK-BOC44ZgS-CG4ojtF2.js +16 -0
- package/dist/LR-CWjRlWOZ-B69hW8zo.js +16 -0
- package/dist/LS-B_EgU3p5-xm2YLpZo.js +16 -0
- package/dist/LT-BPyPiVx2-Bev6bCoB.js +16 -0
- package/dist/LU-B-De6aB--CNDdnCCU.js +16 -0
- package/dist/LV-D2Ewe3XC-UPW2O4K6.js +16 -0
- package/dist/LY-D1TSt6YI-D7CbspRw.js +16 -0
- package/dist/MA-QY5gm-vM-BgJ3AwyY.js +16 -0
- package/dist/MC-BjlCjfCP-zt9JtGAk.js +16 -0
- package/dist/MD-rh-6rlSt-DYz6V8Ym.js +16 -0
- package/dist/ME-D1euo0V2-xSuPx7xq.js +16 -0
- package/dist/MF-CFW4iaQd-o5ivcd_I.js +16 -0
- package/dist/MG-ONnxn_5g-OV3RzjK9.js +16 -0
- package/dist/MH-B8oC_VMS-BEInUSjI.js +16 -0
- package/dist/MK-ByjICisj-HrZkORuk.js +16 -0
- package/dist/ML-CKVAuhox-d271hbZi.js +16 -0
- package/dist/MM-doJuUjVT-CpkpWuHc.js +16 -0
- package/dist/MN-BFP303GE-BK0N55gb.js +16 -0
- package/dist/MO-Dp4PTSYU-BQ6jydjf.js +16 -0
- package/dist/MP-CqKsnjHV-COCvAKgL.js +16 -0
- package/dist/MQ-CFW4iaQd-DKuRO5-N.js +16 -0
- package/dist/MR-D73q_PiY-BvLzcbCr.js +16 -0
- package/dist/MS-qhjKl9TO-DxBH9D3Q.js +16 -0
- package/dist/MT-CZjbs1U--2bRBEGgw.js +16 -0
- package/dist/MU-D0EQOl0S-CmGwskZb.js +16 -0
- package/dist/MV-BtwHRTMn-CRmxmSsB.js +16 -0
- package/dist/MW-CVnAR98j-DqbSlXXn.js +16 -0
- package/dist/MX-C7vXnCDY-CBGabUPB.js +16 -0
- package/dist/MY-DJcgH_o3-B0Mb9IsG.js +16 -0
- package/dist/MZ-BbLwl9DA-r2rMNxy6.js +16 -0
- package/dist/Max.page-D1QR_4D7.js +599 -0
- package/dist/MostSoldCountries-BpXZyeML.js +22 -0
- package/dist/NA-5FKNjRGT-DIAPN-BW.js +16 -0
- package/dist/NC-CFW4iaQd-12QjGrdU.js +16 -0
- package/dist/NE-DpLZJa7D-fkGEADPT.js +16 -0
- package/dist/NF-BT-wIfwf-Dn5K-E3E.js +16 -0
- package/dist/NG-BAiR_q0H-BP5cPhYh.js +16 -0
- package/dist/NI-DylPDojG-DYUmDFYE.js +16 -0
- package/dist/NL-iozeFKPM-iSrzMxa3.js +16 -0
- package/dist/NO-CfaYWvM--BZD18Z0g.js +16 -0
- package/dist/NP-BGR_ZaqA-D83ikQj5.js +16 -0
- package/dist/NR-DHGW5Y3Q-BCFLyse6.js +16 -0
- package/dist/NU-CcpcSx_x-ldrxnwIn.js +16 -0
- package/dist/NZ-DDYt6DcJ-BrepPOGW.js +16 -0
- package/dist/OM-D6hiar1r-B8cshEVu.js +16 -0
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-D91cg92d.js +760 -0
- package/dist/OrderStatusChip-BJFgmuFS.js +30 -0
- package/dist/Orders.page-0YL_8_QZ.js +1636 -0
- package/dist/OrdersChartDataContent-CGjjpDId.js +221 -0
- package/dist/OrdersDetails.page-Cmf9bBJQ.js +6158 -0
- package/dist/PA-Bi2blxjJ-BX0S7IcZ.js +16 -0
- package/dist/PE-D4DjQOlP-TE3f_EhH.js +16 -0
- package/dist/PF-DmOSfnYB-BVJ4xDIg.js +16 -0
- package/dist/PG-DeOlZ7TA-BIms_fsZ.js +16 -0
- package/dist/PH-Dv4KdxU--BDdXb6I3.js +16 -0
- package/dist/PK-CRhM95F8-DuWB5O9z.js +16 -0
- package/dist/PL-BIdMQAtx-DRPIDEcO.js +16 -0
- package/dist/PM-BDa53dEz-gbtyrOf_.js +16 -0
- package/dist/PN-Csu7Dufn-Ba-d_Ft6.js +16 -0
- package/dist/PR-C_Acdbc_-Cl77mord.js +16 -0
- package/dist/PS-Dmg0ofZr-BfCME8S5.js +16 -0
- package/dist/PT-Bsck4nv8-DygAj45D.js +16 -0
- package/dist/PW-CBMqjpxh-B2rG44yN.js +16 -0
- package/dist/PY-Be6zNh15-tYU4qUV3.js +16 -0
- package/dist/PaymentsLinks-D6HI3pdu.js +675 -0
- package/dist/QA-CZmcW85r-zqwPhBxM.js +16 -0
- package/dist/RE-CFW4iaQd-CS_-Uty1.js +16 -0
- package/dist/RO-6H4O-gQF-9Jicrxw6.js +16 -0
- package/dist/RS-DM7vMnHL-BxXAT_Vd.js +16 -0
- package/dist/RU-HqKQeTq2-BujgtJ3G.js +16 -0
- package/dist/RW-DkH4VhfP-DUdiTJ9R.js +16 -0
- package/dist/RecurringSubscription-C32MglrE.js +548 -0
- package/dist/RecurringSubscriptionDashView-DyTtTihP.js +2012 -0
- package/dist/RiskPendenciesInternalService-rJoypWGT.js +145 -0
- package/dist/SA-C2hBi4Lh-CeImy633.js +16 -0
- package/dist/SB-CBu9QLGP-DKciwdOO.js +16 -0
- package/dist/SC-CR6esM-V-dutNBgSC.js +16 -0
- package/dist/SD-VCXqBHrW-C2doa6cD.js +16 -0
- package/dist/SE-DbI0jJm9-CjRUAcNM.js +16 -0
- package/dist/SG-DgprfMyV-D0nlBTyF.js +16 -0
- package/dist/SH-qhjKl9TO-DELf9VAk.js +16 -0
- package/dist/SI-C3dA03Yk-CWGgBRkw.js +16 -0
- package/dist/SJ-CfaYWvM--Dp7R65zW.js +16 -0
- package/dist/SK-CxbHN7aU-8q25yC6z.js +16 -0
- package/dist/SL-GXAaRXng-DaJcXYDs.js +16 -0
- package/dist/SM-B2SteTdO-hDdT6VBY.js +16 -0
- package/dist/SN-B7Q__Lx_-C6jgvV2P.js +16 -0
- package/dist/SO-Bnd5-U9z-BzNooP4d.js +16 -0
- package/dist/SR-BHMDOkL2-DAPc_yPF.js +16 -0
- package/dist/SS-CsTgWca1-CGHvX4Qh.js +16 -0
- package/dist/ST-DLqO0boT-L6q1L6DB.js +16 -0
- package/dist/SV-DNZizmQg-BRSfFfcu.js +16 -0
- package/dist/SX-DWuXjLwS-CzCo1Z-J.js +16 -0
- package/dist/SY-DeOQEBum-CDhVXtrP.js +16 -0
- package/dist/SZ-Bhe0qU5K-Dp8xzEbv.js +16 -0
- package/dist/SalesRecovery-_DLzFV3x.js +594 -0
- package/dist/SalesRecoveryIA-DHKl8o62.js +199 -0
- package/dist/SendCustomerRefundLinkPage-CNLu_gSM.js +137 -0
- package/dist/StatusDescriptionModal-BxLGl4-v.js +60 -0
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-D3ydXxJX.js +28 -0
- package/dist/TC-D5HTaKiF-C4_PBzHq.js +16 -0
- package/dist/TD-DyIWvaGg-smh798zz.js +16 -0
- package/dist/TF-BRsv64iE-H1UNLWV8.js +16 -0
- package/dist/TG-OhNa5jmt-aL38lJKT.js +16 -0
- package/dist/TH-F_ODV0JW-CObePbfA.js +16 -0
- package/dist/TJ-BFkbbSmN-Bp9h5Ake.js +16 -0
- package/dist/TK-Ct75yy7V-CkL3cNC3.js +16 -0
- package/dist/TL-BzqVkHGw-DMFnGiNw.js +16 -0
- package/dist/TM-CCAvd8qV-HreFi0dS.js +16 -0
- package/dist/TN-CmYqbPEz-BICwXMPW.js +16 -0
- package/dist/TO-BQQk9Xq_-Dls9C2J3.js +16 -0
- package/dist/TR-_MKkCnUV-DrtMq4Hp.js +16 -0
- package/dist/TT-DoRURl1c-DMRkYQzw.js +16 -0
- package/dist/TV-Dt8uZCP4-BJcxYES6.js +16 -0
- package/dist/TW-CvHugvex-yrcUNp2_.js +16 -0
- package/dist/TZ-RbwBgiwb-MZzp2FlT.js +16 -0
- package/dist/TopSellingProductsContent-DcbIdKPy.js +80 -0
- package/dist/UA-BiXHPMqV-X_pOfz_4.js +16 -0
- package/dist/UG--it_LhSj-C3CmB1oj.js +16 -0
- package/dist/UM-BFcTdeDD-Ca6bKGHn.js +16 -0
- package/dist/US-BFcTdeDD-Ca6bKGHn.js +16 -0
- package/dist/UY-C26Ndi4P-Cdv7hZFE.js +16 -0
- package/dist/UZ-BK5ADwFW-D6faYOTh.js +16 -0
- package/dist/UserIndicationsPage-CD94gXNQ.js +723 -0
- package/dist/VA-Cpq1n4yW-CXleh6En.js +16 -0
- package/dist/VC-D1Fjbog5-Bol3UMjE.js +16 -0
- package/dist/VE-CeM-hea7-D1EuUefd.js +16 -0
- package/dist/VG-qhjKl9TO-Dk6tD3Mo.js +16 -0
- package/dist/VI-C-kcu42_-DyYJQGLH.js +16 -0
- package/dist/VN-2yoryeK1-KxQ3v1Du.js +16 -0
- package/dist/VU-CkLlsgzP-MOw0lJ3d.js +16 -0
- package/dist/WF-BDa53dEz-Cv4Zz5fs.js +16 -0
- package/dist/WS-CNi2O6Qm-BAX0gXKQ.js +16 -0
- package/dist/WithdrawAdvance-C21L3hkv.js +17 -0
- package/dist/WithdrawBankAccountStore-CVDlPvOA.js +283 -0
- package/dist/WithdrawBlocked-BKqWTZLl.js +133 -0
- package/dist/WithdrawCompanyStore-CHxKed_q.js +80 -0
- package/dist/WithdrawGuaranteeExtract-X-HCjUWQ.js +994 -0
- package/dist/WithdrawHome-C-6C05Ol.js +2448 -0
- package/dist/WithdrawHome-DZrAyOZ7.js +1843 -0
- package/dist/WithdrawInternational-DgKlR7Ix.js +17 -0
- package/dist/WithdrawMaxStore-B3PBH1iL.js +772 -0
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-D7KZf2Qb.js +530 -0
- package/dist/WithdrawNoAccountWarning-CflrDdFK.js +233 -0
- package/dist/WithdrawPermissionGuard-B3LeZ0_f.js +338 -0
- package/dist/WithdrawRequest-3rov4tgf.js +944 -0
- package/dist/WithdrawRequest-CLQhAy0H.js +17 -0
- package/dist/WithdrawRequestDetail-B3mdZJsp.js +284 -0
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-DbsOIdZK.js +936 -0
- package/dist/YE-DxPZysMs-DzragxJ5.js +16 -0
- package/dist/YT-BMJJ1U_T-CHf5c1Zf.js +16 -0
- package/dist/ZA-BjQXS8mc-DvgOSN9h.js +16 -0
- package/dist/ZM-Dw0PmMTO-D-xxXP50.js +16 -0
- package/dist/ZW-D0UStZMr-Dm2ZMfrx.js +16 -0
- package/dist/affiliate-Bgt9fadK-CRdcNEgb.js +22 -0
- package/dist/amex-CvNwRHhS-DpOlUfIT.js +16 -0
- package/dist/api-CVmJUdFs.js +11 -0
- package/dist/apple_pay-DtsAzVjF-DZXMKGBJ.js +20 -0
- package/dist/archive-CFoPOir7-FxMUxr7V.js +18 -0
- package/dist/aura-D1VyKb6w-EhZRs8gM.js +23 -0
- package/dist/boleto-BQZRi0Q5-DTkw3IPe.js +18 -0
- package/dist/box-DNrK38w2-CUXeEk1X.js +20 -0
- package/dist/cart-p5jccB8o-CqyX-QdT.js +15 -0
- package/dist/cash-FZcelZV1-BgdvLISv.js +20 -0
- package/dist/chart-YJ27XOr3-BxdZ-79d.js +22 -0
- package/dist/chat.page-BJjdtAlW.js +314 -0
- package/dist/credit_card-CGrPYCJP-DFySHKWB.js +15 -0
- package/dist/csv-CYa6aPS5-BbIiQlUB.js +18 -0
- package/dist/dayjs.min-7XfU6fDJ.js +282 -0
- package/dist/diners-CN_1suUM-BS4sOfym.js +26 -0
- package/dist/discover-vVTOFEvv-CTEiJaAS.js +22 -0
- package/dist/ds-appmax-v322-DEjVIqnW.js +52 -0
- package/dist/ds-appmax-v327-5YgkT4NK.js +69 -0
- package/dist/ds-appmax-v330-BvjhHQAa.js +48 -0
- package/dist/ds-appmax-v335-CQGcJQQM.js +278 -0
- package/dist/elo-BaNbqhYS-ByryUukj.js +15 -0
- package/dist/gear-BHOWpd7b-DqHHZ0KR.js +18 -0
- package/dist/grid-B7I0mWry-63o9HnXS.js +18 -0
- package/dist/hipercard-DBsszwxC-CpKftRZd.js +22 -0
- package/dist/index-1TAO_57X.js +35 -0
- package/dist/index-BIUEFOT9.js +106 -0
- package/dist/index-BJk4Q-u4.js +11 -0
- package/dist/index-BKhxYpTV.js +21 -0
- package/dist/index-BWY1M90P.js +409 -0
- package/dist/index-Bgqt2gY9.js +11240 -0
- package/dist/index-Bho24dDD.js +21 -0
- package/dist/index-BiLKUSSg.js +4133 -0
- package/dist/index-Bo8Tof2e.js +534 -0
- package/dist/index-Bzowu-ve.js +776 -0
- package/dist/index-CAKvVy9Q.js +1204 -0
- package/dist/index-CBu74hI0.js +18 -0
- package/dist/index-CDiV1Y_I.js +62 -0
- package/dist/index-CKsG__7G.js +83 -0
- package/dist/index-CYCbWc6H.js +169 -0
- package/dist/index-C_zxtMDn.js +1790 -0
- package/dist/index-CiNTk-wW.js +117 -0
- package/dist/index-CoiG5_hk.js +1567 -0
- package/dist/index-DCct0jXR.js +92 -0
- package/dist/index-DNpkNHC2.js +219 -0
- package/dist/index-DV_S7ph9.js +332 -0
- package/dist/index-DiJIhaqE.js +219 -0
- package/dist/index-DmY6tbB9.js +230 -0
- package/dist/index-DuWgaA5x.js +275 -0
- package/dist/index-DumJidcT.js +721 -0
- package/dist/index-DvcFCGgJ.js +67 -0
- package/dist/index-qlzJGXDe.js +217 -0
- package/dist/index-u_uPjqA8.js +681 -0
- package/dist/index-yNXUvsaw.js +200 -0
- package/dist/index.page-BVcb69Yv.js +737 -0
- package/dist/index.page-D93oqiEL.js +827 -0
- package/dist/index.page-DkRq8AWa.js +165 -0
- package/dist/infos-8KGPLXoE-CK2guUxp.js +18 -0
- package/dist/integrations-UOltVEyj-DrwrVVUZ.js +19 -0
- package/dist/logs-Ce3fZY0v-BxQYpFRf.js +28 -0
- package/dist/maestro-BMomgHxO-DRr2Cw_2.js +27 -0
- package/dist/main-BmrFFhAz.js +106856 -0
- package/dist/main.js +1 -1
- package/dist/mastercard-5I-dcOVV-JlV_Zdw6.js +30 -0
- package/dist/max_brand-Crj-SFUw-CbS1tH60.js +29 -0
- package/dist/max_brand_active-BIkS5qkP-CsX2Uz1G.js +27 -0
- package/dist/max_brand_negative-BxvdIegN-U4kcMaL8.js +30 -0
- package/dist/max_brand_white-DdKi2YVX-pGMPdKFh.js +29 -0
- package/dist/menu.page-Cn6seTA8.js +274 -0
- package/dist/money-DZpB5eTf-KGl0DHH5.js +19 -0
- package/dist/notification-DMezLtAj-CMqZVMwv.js +18 -0
- package/dist/paypal-DMYjfEw0-Dl8mbEGK.js +15 -0
- package/dist/pix-DXdX91yj-CBZPUrLr.js +22 -0
- package/dist/pix_outline-D_xXXgCN-tSBYJVZ_.js +16 -0
- package/dist/pix_white-CcVsnEF2-BQ2-G5HX.js +24 -0
- package/dist/pusher-BecrGDbW.js +4010 -0
- package/dist/shield-DS-Xf4WH-M3xE-kgs.js +15 -0
- package/dist/solid_help-DNaqfgoc-tY8bf4uf.js +20 -0
- package/dist/solid_home-BDUiJDVY-C9X0GTiZ.js +18 -0
- package/dist/solid_leaderboard-DtqK7q9Y-DoYxC3GK.js +18 -0
- package/dist/solid_store-Cfv6o4b8-BanujnP7.js +18 -0
- package/dist/ticket_icon-DwvyLm7c-BV6YyXCf.js +22 -0
- package/dist/usePendingMessage-CTakcRq1.js +191 -0
- package/dist/useQueryFilter-CUjzwNVC.js +93 -0
- package/dist/useRecurringTable-BqmngH3t.js +160 -0
- package/dist/user-BRpwqYx8-D7PlXIY2.js +18 -0
- package/dist/validateURL.helper-gsIart6T.js +126 -0
- package/dist/visa-tPjWcMbi-LTjAOn6v.js +18 -0
- package/package.json +1 -1
- package/dist/AD-Ct_GVBfr-HH_TfVlV.js +0 -16
- package/dist/AE-DiMVenwy-CWT3c_i6.js +0 -16
- package/dist/AF-DOrptOkS-Cp-fTOPV.js +0 -16
- package/dist/AG-CzBMAtom-CfE6Csui.js +0 -16
- package/dist/AI-A2DnDGPS-CK1ndtTo.js +0 -16
- package/dist/AL-BcGdPXjJ-D59MzTj8.js +0 -16
- package/dist/AM-BC_r4gTd-DBX8FLX2.js +0 -16
- package/dist/AO-D6GK49nd-5G9fAw19.js +0 -16
- package/dist/AQ-Eeziry42-DFD06SJD.js +0 -16
- package/dist/AR-AbqVWszQ-B-ctQcDn.js +0 -16
- package/dist/AS-BWe_Gq8Z-Bf4PQXKr.js +0 -16
- package/dist/AT-b5CS9jSt-C4xhn2VJ.js +0 -16
- package/dist/AU-BUbOyX6Q-CAM3TKcp.js +0 -16
- package/dist/AW-CjVdJTYe-DaPVVg4z.js +0 -16
- package/dist/AX-lNtwEmw2-C3PI_nov.js +0 -16
- package/dist/AZ-f8zSo9ut-CHQnHdc2.js +0 -16
- package/dist/AmBulletLegend-CC68JAIv.js +0 -23
- package/dist/AmCardV3-eLIe47Pk.js +0 -22
- package/dist/AmChip.vue_vue_type_script_setup_true_lang-DwJkCLRa-DXEOLtKB.js +0 -36
- package/dist/AmDoughnutChartAdapted-Bf72z95C.js +0 -203
- package/dist/AmEmptyState.vue_vue_type_script_setup_true_lang-DREhNuhi.js +0 -86
- package/dist/AmFilterLevelDateSelect-BbVyzCa5-CUMUR1Xp.js +0 -40
- package/dist/AmFilterLevelMultiSelectFilter-CPxxHU90-BNfkkl6a.js +0 -46
- package/dist/AmFilterLevelSelectFilter-Be3LFJno-Bm2ahgv1.js +0 -63
- package/dist/AmHelper.vue_vue_type_script_setup_true_lang-4vSpYa8P-D1RcJAOd.js +0 -53
- package/dist/AmLayoutFeedbackState-HfUcDHay.js +0 -48
- package/dist/AmLayoutInnerData-C-wa1FOa.js +0 -162
- package/dist/AmModalV3-DoeNs1Di.js +0 -105
- package/dist/AmOutlineCard-y7WpwqrY.js +0 -25
- package/dist/AmSkeleton-BfSLbJ2o.js +0 -35
- package/dist/AmText-D9XRosEj.js +0 -33
- package/dist/AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v-DZUe9c65.js +0 -64
- package/dist/ApiService-BClcpsjH.js +0 -11
- package/dist/AppInstallationConfirmationPasswordModal-BDx3TebW.js +0 -535
- package/dist/AppstoreAppView-D0NOC6i1.js +0 -315
- package/dist/AppstoreHomeView-tj_ATcWq.js +0 -1372
- package/dist/BA-BfV7_7RP-BVJ-UX2E.js +0 -16
- package/dist/BB-CC4768VM-Bxz_FKuI.js +0 -16
- package/dist/BD-YQdTTbhg-CSR0qIQm.js +0 -16
- package/dist/BE-DUYoRyei-BjwEbYaV.js +0 -16
- package/dist/BF-XZRLkaHX-bBw-eINn.js +0 -16
- package/dist/BG-BAb8lAFP-HgfcC0_o.js +0 -16
- package/dist/BH-C1LTB8Fj-C46wyhwr.js +0 -16
- package/dist/BI-RjDfMipp-Buxtdkca.js +0 -16
- package/dist/BJ-DAv61IMB-CFr-IMcp.js +0 -16
- package/dist/BL-CFW4iaQd-CgC6iwj_.js +0 -16
- package/dist/BM-DuK3dA1G-x5qjOxAF.js +0 -16
- package/dist/BN-BXHGopan-DL3EK0lu.js +0 -16
- package/dist/BO-CzuoErsx-B6cK8xLS.js +0 -16
- package/dist/BQ-BO-BlM1Uin3-CgNV9pML.js +0 -16
- package/dist/BQ-SA-BninfeHy-TSDgS_iG.js +0 -16
- package/dist/BQ-SE-tq-mCvpl-DZI4Q2A2.js +0 -16
- package/dist/BR-B1GEJ05L-CKbpdk6t.js +0 -16
- package/dist/BS-MeULPH4e-BsvkTCz-.js +0 -16
- package/dist/BT-BCfQJS6a-BMaGY-m8.js +0 -16
- package/dist/BV-CfaYWvM--Ae8oIiuo.js +0 -16
- package/dist/BW-jYbPMHhQ-_Rha-ble.js +0 -16
- package/dist/BY-Ddffd2rT-C8rQ6TNz.js +0 -16
- package/dist/BZ-B7mGW2Jg-rLkS97m8.js +0 -16
- package/dist/BankAccountCrossborderNew.page-u1CDLww6.js +0 -152
- package/dist/BankAccountList.page-DpE5TnQi.js +0 -331
- package/dist/BankAccountNew.page-BOTttfs1.js +0 -982
- package/dist/CA-CHl-cqJL-BjSL7YJs.js +0 -16
- package/dist/CC-DSLZRwFz-YwkOKybu.js +0 -16
- package/dist/CD-D4NJYkQm-CbleRD1s.js +0 -16
- package/dist/CF-DoxRpaA9-0hBrQNuf.js +0 -16
- package/dist/CG-Auzp6pC_-d_T2APPr.js +0 -16
- package/dist/CH-B5eEo1aL-CE8J0KXf.js +0 -16
- package/dist/CI-DFfmdeVw-B4EWQACt.js +0 -16
- package/dist/CK-CKWUhjXV-BnuWXo8g.js +0 -16
- package/dist/CL-Di6p-p6X-lZ9EeSaP.js +0 -16
- package/dist/CM-B0ht31e3-BN0W9EaP.js +0 -16
- package/dist/CN-CKHlOciI-C5Dqf0RY.js +0 -16
- package/dist/CO-GBUkcePt-DQN8VFfw.js +0 -16
- package/dist/CR-Daw5JsjF-C-ksciT_.js +0 -16
- package/dist/CU-CVOkcTvR-rRzAeBap.js +0 -16
- package/dist/CV-cyPoze-o-Cq4NThbW.js +0 -16
- package/dist/CW-Bt-Pwg4j-BiQJRh5b.js +0 -16
- package/dist/CX-uhIZlYzy-yivVaQ_7.js +0 -16
- package/dist/CY-un4rgwPX-CyPnAXdg.js +0 -16
- package/dist/CZ-equ-r4iN-WduwJzTo.js +0 -16
- package/dist/CashoutAntecipateContent-yPs8loRU.js +0 -42
- package/dist/ChargebackAnalytics-CdI3Jbdb.js +0 -1701
- package/dist/ChargebackDetail-MncTbw6k.js +0 -3469
- package/dist/ChargebackRate-CO5qmwIZ.js +0 -77
- package/dist/ChatPlayground.page-C9ajQgAk.js +0 -508
- package/dist/ConfirmationModal-DOSIb7ER.js +0 -105
- package/dist/Create.page-BSbC7bDu.js +0 -1390
- package/dist/CreatePaymentLink-VyXSGObO.js +0 -856
- package/dist/DE-zx7UmJ-V-CMdSdDZ0.js +0 -16
- package/dist/DJ-BN1kIFYT-BLE_tyaW.js +0 -16
- package/dist/DK-CrXXNH_h-dKJG4rJF.js +0 -16
- package/dist/DM-B4nVdNww-PF3gRQuh.js +0 -16
- package/dist/DO-C7-NF2JD-DB1uCjvI.js +0 -16
- package/dist/DZ-DSDLbNRb-B2ycl7DV.js +0 -16
- package/dist/DashboardAmountDetailsContent-BMR0QRjc.js +0 -65
- package/dist/DashboardApprovalRateDetails.vue_vue_type_style_index_0_lang-CwFXgUzp.js +0 -151
- package/dist/DashboardApprovalRateInternationalContent-WhOmuKPh.js +0 -19
- package/dist/DashboardApprovalRateNationalContent-CJvR-Qpd.js +0 -74
- package/dist/DashboardCarouselContent-xf8Ae7xW.js +0 -958
- package/dist/DashboardDetailsContent-CkWO8HWq.js +0 -58
- package/dist/DashboardHome-oFY0oz7L.js +0 -4247
- package/dist/DetailSubscriptionRecurring-CeZhv3nF.js +0 -1296
- package/dist/EC-C_bjTYWm-BUlvGBlR.js +0 -16
- package/dist/EE-CQIjuoWO-CUgT2weo.js +0 -16
- package/dist/EG-Bs_BHfVR-BrYp2xyx.js +0 -16
- package/dist/EH-CnWam84F-sPCAnqAj.js +0 -16
- package/dist/ER-Dcl4hJzq-CoG1D_Py.js +0 -16
- package/dist/ES-Bpj2gAdj-BVkhbnuF.js +0 -16
- package/dist/ET-Dm3q0Ruz-4c0CSixk.js +0 -16
- package/dist/ExternalPendenciesList-D8BaV7A9.js +0 -651
- package/dist/FI-DCqfJeiQ-CbeRSW2J.js +0 -16
- package/dist/FJ-C6UrGUgI-B7zKa34R.js +0 -16
- package/dist/FK-CAaec31K-C65KvI7R.js +0 -16
- package/dist/FM-Cf2SIJ7h-VEzlcNR7.js +0 -16
- package/dist/FO-DBb4psBV-Csrha4B2.js +0 -16
- package/dist/FR-CFW4iaQd-DkgIbP5L.js +0 -16
- package/dist/FeatureFlagsPage-V1AVtf1V.js +0 -271
- package/dist/GA-D3NTxgTl--U4f6wvA.js +0 -16
- package/dist/GB-ENG-Cmkg6Zq8-BNBoJDTv.js +0 -16
- package/dist/GB-NIR-DKszcfHi-BWloP-RR.js +0 -16
- package/dist/GB-SCT-BiivwJ71-CL-Mh9Fl.js +0 -16
- package/dist/GB-UKM-DgMBd3ib-BSnb7fSN.js +0 -16
- package/dist/GB-WLS-DLoDy9iv-DVhQ4uBZ.js +0 -16
- package/dist/GD-Bs1d4We7-unm7M1aE.js +0 -16
- package/dist/GE-DXG9iLk5-ZYx_2a3O.js +0 -16
- package/dist/GF-B20s5gtx-C2SjA9kn.js +0 -16
- package/dist/GG-BAyrpIoO-C9xDHDYx.js +0 -16
- package/dist/GH-v3jh5r1X-scGyZTlP.js +0 -16
- package/dist/GI-D39Krd4s-DJcU0Dt8.js +0 -16
- package/dist/GL-BDd_W5AU-D_KSbey0.js +0 -16
- package/dist/GM-BNEHspzj-Cl98Eoz_.js +0 -16
- package/dist/GN-DdIZ0X6d-D3TwTkM6.js +0 -16
- package/dist/GP-CFW4iaQd-CCTi-MH4.js +0 -16
- package/dist/GQ-CC3X6AMz-PutU4Bt8.js +0 -16
- package/dist/GR-C_0rusTd-Mx2PzJYN.js +0 -16
- package/dist/GS-Db5l22a1-Ci__aU38.js +0 -16
- package/dist/GT-BhbkqUft-CVGS_d-R.js +0 -16
- package/dist/GU-C0HeItm1-Dl0xBsvH.js +0 -16
- package/dist/GW-BjLM1vg--CeRmwwq0.js +0 -16
- package/dist/GY-BreBVlhN-6lcb-GcJ.js +0 -16
- package/dist/HK-BZn9ZQGS-Csos1x1-.js +0 -16
- package/dist/HM-BUbOyX6Q-eNwatz5G.js +0 -16
- package/dist/HN-D4wujIPC-CAoAEBDO.js +0 -16
- package/dist/HR-Jhi3QQ9F-Dj8oxcYe.js +0 -16
- package/dist/HT-MMjMjr-R-U8u-AQgK.js +0 -16
- package/dist/HU-CN5KmQ7F-DSV5yltn.js +0 -16
- package/dist/Home-CWR2Iuq3.js +0 -997
- package/dist/ID-hVVUTKNG-GVm-Cmw8.js +0 -16
- package/dist/IE-WN_vdKcS-CLcqZ4xJ.js +0 -16
- package/dist/IL-D5Wr_Xxh--vB5hJpE.js +0 -16
- package/dist/IM-B-putc0k-DdeDK5ZX.js +0 -16
- package/dist/IN-CK40zbQD-BCuP3oKH.js +0 -16
- package/dist/IO-CdvLck7D-CtyqQwX3.js +0 -16
- package/dist/IQ-f_9wyurt-s_q2A6D-.js +0 -16
- package/dist/IR-B0yfWttH-DPeJhz63.js +0 -16
- package/dist/IS-Dvf-XQTq-B4VGxLlX.js +0 -16
- package/dist/IT-uY7cjdFI-CCsyhYKu.js +0 -16
- package/dist/ImportTrackingCode-SGfxZCC4.js +0 -1007
- package/dist/InternalCompanyIssuesDetail-CexYVQdu.js +0 -862
- package/dist/InternalCompanyList-DDoHn_Ml.js +0 -351
- package/dist/InternalPendencyDetail-CKP1sGFT.js +0 -717
- package/dist/JE-C95tN_VG-Bu_Dvjdg.js +0 -16
- package/dist/JM-zOuEwaB3-9SbPeNWT.js +0 -16
- package/dist/JO-Cq88rrOD-BpoomFna.js +0 -16
- package/dist/JP-5evXgWxq-Bo7lhCH3.js +0 -16
- package/dist/KE-PHx0d97Z-DUnJpkG8.js +0 -16
- package/dist/KG-DT4JnieX-C9gSd4OR.js +0 -16
- package/dist/KH-ChwV2WTT-CE5ADz9F.js +0 -16
- package/dist/KI-D212g4Lh-Bn9a1Cs0.js +0 -16
- package/dist/KM-mPVp7AKS-DHLGn2Aj.js +0 -16
- package/dist/KN-AdXLXICN-DAEAOX1F.js +0 -16
- package/dist/KP-CC6UIrEF-DbRxQ96s.js +0 -16
- package/dist/KR-BtnmWR6C-BO4xOvLM.js +0 -16
- package/dist/KW-gqahWVaw-DdueBdAc.js +0 -16
- package/dist/KY-DjIb70VQ-Cvo6l87v.js +0 -16
- package/dist/KZ-C_fRihiO-BQufiS4-.js +0 -16
- package/dist/LA-KIULJHAb-BnRB5d6f.js +0 -16
- package/dist/LB-CrF8WJiI-CA4uXm44.js +0 -16
- package/dist/LC-DGiHXm5V-DUpYMFBn.js +0 -16
- package/dist/LI-BwB0b8M1-BVf3VTls.js +0 -16
- package/dist/LK-BOC44ZgS-LgNfgEPH.js +0 -16
- package/dist/LR-CWjRlWOZ-8ezGoZrP.js +0 -16
- package/dist/LS-B_EgU3p5-vaer2JxS.js +0 -16
- package/dist/LT-BPyPiVx2--7GFCWCD.js +0 -16
- package/dist/LU-B-De6aB--DyHNG82i.js +0 -16
- package/dist/LV-D2Ewe3XC-CKMslILy.js +0 -16
- package/dist/LY-D1TSt6YI-Dn_19IZi.js +0 -16
- package/dist/MA-QY5gm-vM-DMMhV4xB.js +0 -16
- package/dist/MC-BjlCjfCP-DWHsu2yM.js +0 -16
- package/dist/MD-rh-6rlSt-Vc0QVa-p.js +0 -16
- package/dist/ME-D1euo0V2-BtwaKYhr.js +0 -16
- package/dist/MF-CFW4iaQd-rp1pZ09B.js +0 -16
- package/dist/MG-ONnxn_5g-BOcb_Zsn.js +0 -16
- package/dist/MH-B8oC_VMS-0dR4qjJJ.js +0 -16
- package/dist/MK-ByjICisj-87U9LCVb.js +0 -16
- package/dist/ML-CKVAuhox-D9uVAWNl.js +0 -16
- package/dist/MM-doJuUjVT-BiObAegb.js +0 -16
- package/dist/MN-BFP303GE-Y0JP-ike.js +0 -16
- package/dist/MO-Dp4PTSYU-DAlpzQ2K.js +0 -16
- package/dist/MP-CqKsnjHV-z3w5_P4Z.js +0 -16
- package/dist/MQ-CFW4iaQd-CK5bZ5eM.js +0 -16
- package/dist/MR-D73q_PiY-zAeabv15.js +0 -16
- package/dist/MS-qhjKl9TO-BJnk-2s1.js +0 -16
- package/dist/MT-CZjbs1U--BUVEtQJ7.js +0 -16
- package/dist/MU-D0EQOl0S-zzQxxHjz.js +0 -16
- package/dist/MV-BtwHRTMn-hDjyU3Sn.js +0 -16
- package/dist/MW-CVnAR98j-BR-nq2Jp.js +0 -16
- package/dist/MX-C7vXnCDY-rOpaS3Hh.js +0 -16
- package/dist/MY-DJcgH_o3-CtaVbE2a.js +0 -16
- package/dist/MZ-BbLwl9DA-BaRqBS0k.js +0 -16
- package/dist/Max.page-1P5LVk1m.js +0 -599
- package/dist/MostSoldCountries-B9CU30mN.js +0 -22
- package/dist/NA-5FKNjRGT-B3wpQkc8.js +0 -16
- package/dist/NC-CFW4iaQd-DmlxHhXl.js +0 -16
- package/dist/NE-DpLZJa7D-DtL-pjgt.js +0 -16
- package/dist/NF-BT-wIfwf-DX6zolnn.js +0 -16
- package/dist/NG-BAiR_q0H-BcYHX6ap.js +0 -16
- package/dist/NI-DylPDojG-CQNA62b2.js +0 -16
- package/dist/NL-iozeFKPM-DnpL_AYS.js +0 -16
- package/dist/NO-CfaYWvM--DQOzb_IT.js +0 -16
- package/dist/NP-BGR_ZaqA-hMycP6Av.js +0 -16
- package/dist/NR-DHGW5Y3Q-2VJNfwpr.js +0 -16
- package/dist/NU-CcpcSx_x-BeaFmvO8.js +0 -16
- package/dist/NZ-DDYt6DcJ-BzjpO45r.js +0 -16
- package/dist/OM-D6hiar1r-DksBctyM.js +0 -16
- package/dist/OrderStatus.vue_vue_type_script_setup_true_lang-L7qHfn8t.js +0 -760
- package/dist/OrderStatusChip-BTFzb39z.js +0 -30
- package/dist/Orders.page-B5a9iomB.js +0 -1636
- package/dist/OrdersChartDataContent-BIcrUTbx.js +0 -221
- package/dist/OrdersDetails.page-CUDlusP0.js +0 -6158
- package/dist/PA-Bi2blxjJ-DaHYNJTd.js +0 -16
- package/dist/PE-D4DjQOlP-NgiK8xrD.js +0 -16
- package/dist/PF-DmOSfnYB-DDfW5vap.js +0 -16
- package/dist/PG-DeOlZ7TA-CUxqIusH.js +0 -16
- package/dist/PH-Dv4KdxU--DYMBTiv9.js +0 -16
- package/dist/PK-CRhM95F8-BLbR1H2I.js +0 -16
- package/dist/PL-BIdMQAtx-BWQyuXU7.js +0 -16
- package/dist/PM-BDa53dEz-dpDbpjbx.js +0 -16
- package/dist/PN-Csu7Dufn-M1Qrem3Z.js +0 -16
- package/dist/PR-C_Acdbc_-C985_DHf.js +0 -16
- package/dist/PS-Dmg0ofZr-BJtRKD38.js +0 -16
- package/dist/PT-Bsck4nv8-CUz1soMN.js +0 -16
- package/dist/PW-CBMqjpxh-Thuy4N-j.js +0 -16
- package/dist/PY-Be6zNh15-rnhWqD1f.js +0 -16
- package/dist/PaymentsLinks-1GCVTn3u.js +0 -675
- package/dist/QA-CZmcW85r-DgCklZQY.js +0 -16
- package/dist/RE-CFW4iaQd-CbK9XROz.js +0 -16
- package/dist/RO-6H4O-gQF-D8omUJqm.js +0 -16
- package/dist/RS-DM7vMnHL-DwrjCJUA.js +0 -16
- package/dist/RU-HqKQeTq2-D24i3QgC.js +0 -16
- package/dist/RW-DkH4VhfP-BZfAPD8Y.js +0 -16
- package/dist/RecurringSubscription-qoGIRjAz.js +0 -548
- package/dist/RecurringSubscriptionDashView-CKt9rzDu.js +0 -2012
- package/dist/RiskPendenciesInternalService-BZ2JdLaT.js +0 -145
- package/dist/SA-C2hBi4Lh-CyK6TMC3.js +0 -16
- package/dist/SB-CBu9QLGP-AI35N8BM.js +0 -16
- package/dist/SC-CR6esM-V-D1f_5zXv.js +0 -16
- package/dist/SD-VCXqBHrW-BpvZmAg0.js +0 -16
- package/dist/SE-DbI0jJm9-iNrg3nCt.js +0 -16
- package/dist/SG-DgprfMyV-CMwwxdTM.js +0 -16
- package/dist/SH-qhjKl9TO-CZBr0JDv.js +0 -16
- package/dist/SI-C3dA03Yk-DqxON_mz.js +0 -16
- package/dist/SJ-CfaYWvM--BV_Vz0Gz.js +0 -16
- package/dist/SK-CxbHN7aU-CTfnzNaR.js +0 -16
- package/dist/SL-GXAaRXng-CajPm1A6.js +0 -16
- package/dist/SM-B2SteTdO-BiZFEl-K.js +0 -16
- package/dist/SN-B7Q__Lx_-B2GBZnML.js +0 -16
- package/dist/SO-Bnd5-U9z-Dm4TP9CS.js +0 -16
- package/dist/SR-BHMDOkL2-Cx2y0tYW.js +0 -16
- package/dist/SS-CsTgWca1-DlGQclO6.js +0 -16
- package/dist/ST-DLqO0boT-DrNCjTfZ.js +0 -16
- package/dist/SV-DNZizmQg-DVyExXP3.js +0 -16
- package/dist/SX-DWuXjLwS-DO3zffsg.js +0 -16
- package/dist/SY-DeOQEBum-Lf-mMFPa.js +0 -16
- package/dist/SZ-Bhe0qU5K-xz81eOM7.js +0 -16
- package/dist/SalesRecovery-DGtgZPVv.js +0 -594
- package/dist/SalesRecoveryIA-Cz1YvQBg.js +0 -199
- package/dist/SendCustomerRefundLinkPage-BE9fJWgC.js +0 -137
- package/dist/StatusDescriptionModal-DQuXxApU.js +0 -60
- package/dist/StatusTag.vue_vue_type_script_setup_true_lang-DbVpHA90.js +0 -28
- package/dist/TC-D5HTaKiF-B-Vd2qWE.js +0 -16
- package/dist/TD-DyIWvaGg-CB8K23-8.js +0 -16
- package/dist/TF-BRsv64iE-D2M-fNeg.js +0 -16
- package/dist/TG-OhNa5jmt-BS1nX9eA.js +0 -16
- package/dist/TH-F_ODV0JW-Czz-vEwO.js +0 -16
- package/dist/TJ-BFkbbSmN-DvtSxx4I.js +0 -16
- package/dist/TK-Ct75yy7V-BUkPGW1C.js +0 -16
- package/dist/TL-BzqVkHGw-CFHiYZuI.js +0 -16
- package/dist/TM-CCAvd8qV-D-OpwIkU.js +0 -16
- package/dist/TN-CmYqbPEz-CT9s4DaX.js +0 -16
- package/dist/TO-BQQk9Xq_-CusKGN5y.js +0 -16
- package/dist/TR-_MKkCnUV-Hu6R_XMI.js +0 -16
- package/dist/TT-DoRURl1c-BFA3gvAu.js +0 -16
- package/dist/TV-Dt8uZCP4-B3h9Pb0Y.js +0 -16
- package/dist/TW-CvHugvex-CAaf1GJW.js +0 -16
- package/dist/TZ-RbwBgiwb-DJRAzBrz.js +0 -16
- package/dist/TopSellingProductsContent-Dz4zDLCH.js +0 -80
- package/dist/UA-BiXHPMqV-DsHMSsoa.js +0 -16
- package/dist/UG--it_LhSj-CFlaIv79.js +0 -16
- package/dist/UM-BFcTdeDD-CrNUnJAR.js +0 -16
- package/dist/US-BFcTdeDD-CrNUnJAR.js +0 -16
- package/dist/UY-C26Ndi4P-nDGUSoU-.js +0 -16
- package/dist/UZ-BK5ADwFW-SL5lgLBb.js +0 -16
- package/dist/UserIndicationsPage-618a7qhG.js +0 -723
- package/dist/VA-Cpq1n4yW-DGwFOlxg.js +0 -16
- package/dist/VC-D1Fjbog5-C1LoOLOh.js +0 -16
- package/dist/VE-CeM-hea7-BxXZrCp3.js +0 -16
- package/dist/VG-qhjKl9TO-CTsytRCi.js +0 -16
- package/dist/VI-C-kcu42_-BljkIWkL.js +0 -16
- package/dist/VN-2yoryeK1-DUUsw17d.js +0 -16
- package/dist/VU-CkLlsgzP-BHxFE50K.js +0 -16
- package/dist/WF-BDa53dEz-B0uCgPHF.js +0 -16
- package/dist/WS-CNi2O6Qm-DJeH8gfT.js +0 -16
- package/dist/WithdrawAdvance-DvuRKy78.js +0 -17
- package/dist/WithdrawBankAccountStore-XigRRt3u.js +0 -283
- package/dist/WithdrawBlocked-B-v8nVPF.js +0 -133
- package/dist/WithdrawCompanyStore-BTkD2R0M.js +0 -80
- package/dist/WithdrawGuaranteeExtract-C5L0f4eE.js +0 -994
- package/dist/WithdrawHome-B-Ru_Jg0.js +0 -2448
- package/dist/WithdrawHome-cqcNB5qN.js +0 -1843
- package/dist/WithdrawInternational-CjuIQdcC.js +0 -17
- package/dist/WithdrawMaxStore-BqAws3H-.js +0 -772
- package/dist/WithdrawNegativeCompany.vue_vue_type_script_setup_true_lang-BGU5IiSx.js +0 -530
- package/dist/WithdrawNoAccountWarning-BMM8h-cO.js +0 -233
- package/dist/WithdrawPermissionGuard-DRCany--.js +0 -338
- package/dist/WithdrawRequest-NebtJP5T.js +0 -17
- package/dist/WithdrawRequest-Pxp_8KOI.js +0 -944
- package/dist/WithdrawRequestDetail-Cq76t5N_.js +0 -284
- package/dist/WithdrawRequestLayout.vue_vue_type_script_setup_true_lang-DzZ_WTNz.js +0 -936
- package/dist/YE-DxPZysMs-DE7eLqib.js +0 -16
- package/dist/YT-BMJJ1U_T-DYedOyjh.js +0 -16
- package/dist/ZA-BjQXS8mc-G7a0hl3g.js +0 -16
- package/dist/ZM-Dw0PmMTO-BFi4v-1n.js +0 -16
- package/dist/ZW-D0UStZMr-DynRoImX.js +0 -16
- package/dist/affiliate-Bgt9fadK-ZU1of4xK.js +0 -22
- package/dist/amex-CvNwRHhS-CQqMmGu2.js +0 -16
- package/dist/api-D4-Ir0Ud.js +0 -11
- package/dist/apple_pay-DtsAzVjF-DA1YQKXR.js +0 -20
- package/dist/archive-CFoPOir7-BZAomcvH.js +0 -18
- package/dist/aura-D1VyKb6w-B1MQOSNG.js +0 -23
- package/dist/boleto-BQZRi0Q5-DhLNryVm.js +0 -18
- package/dist/box-DNrK38w2-C2K4bICG.js +0 -20
- package/dist/cart-p5jccB8o-CycF1Jnz.js +0 -15
- package/dist/cash-FZcelZV1-B5s4l_-w.js +0 -20
- package/dist/chart-YJ27XOr3-De1Uv-zT.js +0 -22
- package/dist/chat.page-BANDz3Mj.js +0 -314
- package/dist/credit_card-CGrPYCJP-DxjaeRSN.js +0 -15
- package/dist/csv-CYa6aPS5-CpBCfoor.js +0 -18
- package/dist/dayjs.min-Cz90GqA9.js +0 -282
- package/dist/diners-CN_1suUM-DhLDaiH7.js +0 -26
- package/dist/discover-vVTOFEvv-BWPXWKjk.js +0 -22
- package/dist/ds-appmax-v322-C7decuMm.js +0 -52
- package/dist/ds-appmax-v327-Bo6e8KEI.js +0 -69
- package/dist/ds-appmax-v330-D4xJw3T6.js +0 -48
- package/dist/ds-appmax-v335-CFGCq2eV.js +0 -278
- package/dist/elo-BaNbqhYS-0W4zVflJ.js +0 -15
- package/dist/gear-BHOWpd7b-C5IiKTsm.js +0 -18
- package/dist/grid-B7I0mWry-cx3gnRyM.js +0 -18
- package/dist/hipercard-DBsszwxC-oEMVfHJk.js +0 -22
- package/dist/index-3QpZwHFe.js +0 -83
- package/dist/index-B-VygwhD.js +0 -4133
- package/dist/index-BCHSaCF7.js +0 -219
- package/dist/index-BZMINRd5.js +0 -409
- package/dist/index-Bc1IRcj0.js +0 -1567
- package/dist/index-BeAG5erI.js +0 -169
- package/dist/index-BlyroRzr.js +0 -217
- package/dist/index-C1U1EETP.js +0 -117
- package/dist/index-C3gak0J6.js +0 -230
- package/dist/index-CBP3_Szn.js +0 -219
- package/dist/index-CICGk-1k.js +0 -200
- package/dist/index-CN8YGGju.js +0 -18
- package/dist/index-CSUijYtg.js +0 -1790
- package/dist/index-Ce33jThj.js +0 -21
- package/dist/index-CfYPATHA.js +0 -67
- package/dist/index-CksveYN8.js +0 -106
- package/dist/index-D1jiz0cG.js +0 -275
- package/dist/index-DFPBGyyG.js +0 -35
- package/dist/index-DLXgvpNZ.js +0 -534
- package/dist/index-DgkP3WPj.js +0 -11
- package/dist/index-Di6xmPmB.js +0 -1204
- package/dist/index-DvZrVlj4.js +0 -92
- package/dist/index-NjpW1Pxr.js +0 -11240
- package/dist/index-Xo8GeFPq.js +0 -62
- package/dist/index-bgIaKbtu.js +0 -21
- package/dist/index-mvm0BVIu.js +0 -332
- package/dist/index-tjs_XU5D.js +0 -776
- package/dist/index-wFhKdA5M.js +0 -721
- package/dist/index-xnGvAt-H.js +0 -681
- package/dist/index.page-94Z0DSve.js +0 -165
- package/dist/index.page-COB20LwV.js +0 -737
- package/dist/index.page-DVhWYRhm.js +0 -827
- package/dist/infos-8KGPLXoE-DYsg3ui_.js +0 -18
- package/dist/integrations-UOltVEyj-DICVd8m3.js +0 -19
- package/dist/logs-Ce3fZY0v-ngQ0z-S5.js +0 -28
- package/dist/maestro-BMomgHxO-vOU-QWql.js +0 -27
- package/dist/main-Cc-i2rHY.js +0 -106856
- package/dist/mastercard-5I-dcOVV-DwfNheq3.js +0 -30
- package/dist/max_brand-Crj-SFUw-CwHxY80l.js +0 -29
- package/dist/max_brand_active-BIkS5qkP-DRA2snSB.js +0 -27
- package/dist/max_brand_negative-BxvdIegN-BZ8UajNq.js +0 -30
- package/dist/max_brand_white-DdKi2YVX-xWZBpP08.js +0 -29
- package/dist/menu.page-DhSguMY6.js +0 -274
- package/dist/money-DZpB5eTf-C1Z9Splt.js +0 -19
- package/dist/notification-DMezLtAj-DdKRDNX3.js +0 -18
- package/dist/paypal-DMYjfEw0-U8O2Lval.js +0 -15
- package/dist/pix-DXdX91yj-DMuK0Sck.js +0 -22
- package/dist/pix_outline-D_xXXgCN-CNovmSkW.js +0 -16
- package/dist/pix_white-CcVsnEF2-b6OkpjzX.js +0 -24
- package/dist/pusher-C5wfOfDN.js +0 -4010
- package/dist/shield-DS-Xf4WH-7ZJyPm0A.js +0 -15
- package/dist/solid_help-DNaqfgoc-CY28J5vD.js +0 -20
- package/dist/solid_home-BDUiJDVY-CG99aZs7.js +0 -18
- package/dist/solid_leaderboard-DtqK7q9Y-B6sftvlG.js +0 -18
- package/dist/solid_store-Cfv6o4b8-y2_zBdTJ.js +0 -18
- package/dist/ticket_icon-DwvyLm7c-CHfuVjAU.js +0 -22
- package/dist/usePendingMessage-DySADOYA.js +0 -191
- package/dist/useQueryFilter-CJQGAMwC.js +0 -93
- package/dist/useRecurringTable-DNgQoiep.js +0 -160
- package/dist/user-BRpwqYx8-BZIaGsUj.js +0 -18
- package/dist/validateURL.helper-JrbHw1Tv.js +0 -126
- package/dist/visa-tPjWcMbi-DgS6Nw7y.js +0 -18
|
@@ -1,4247 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { Y as BaseStyle, Z as script$4, a0 as $dt, g as createElementBlock, h as openBlock, D as mergeProps, j as createBaseVNode, k as createCommentVNode, t as toDisplayString, a1 as Ripple, a2 as cn, a3 as isNotEmpty, a4 as resolveDirective, a5 as withDirectives, a6 as renderSlot, n as normalizeClass, a7 as equals, a8 as resolveFieldData, a9 as resolveComponent, F as Fragment, p as renderList, q as createBlock, aa as createSlots, w as withCtx, E as ApiService, ab as userService, ac as formatFloatMoney, r as ref, z as watch, o as onMounted, l as unref, A as w, K as script$5, ad as defineComponent, c as useRouter, ae as useModel, e as computed, af as t, i as createVNode, m as createTextVNode, P, _ as _export_sfc, u as useI18n, ag as toaster, y, H as withModifiers, $, x as reactive, d as useBreakpoint, S as normalizeStyle, ah as resolveDynamicComponent, ai as defineAsyncComponent, aj as useAlertsStore, Q as onUnmounted, ak as formatPhoneNumber, al as common, am as required, an as useVuelidate, ao as useUserStore, ap as C, R, aq as postOnboardingService, ar as usePostOnboarding, as as toRefs, at as isRef, au as relativeSrc, b as useRoute } from "./main-Cc-i2rHY.js";
|
|
5
|
-
import { a as api } from "./ApiService-BClcpsjH.js";
|
|
6
|
-
import { i as isYesterday, a as isToday, f as formatDateWithTimezone, g as getTodayDate, b as getOffsetDate, o as orderByDate, c as formatToDateBR, d as diffDaysBetweenDates } from "./date-BKOoGpIP.js";
|
|
7
|
-
import { A as AmCardV3 } from "./AmCardV3-eLIe47Pk.js";
|
|
8
|
-
import { h as he } from "./index-C3gak0J6.js";
|
|
9
|
-
import { T as Te } from "./index-Di6xmPmB.js";
|
|
10
|
-
import { A as AmSkeleton } from "./AmSkeleton-BfSLbJ2o.js";
|
|
11
|
-
import { s as script$7 } from "./index-BlyroRzr.js";
|
|
12
|
-
import { s as script$6 } from "./index-DLXgvpNZ.js";
|
|
13
|
-
import { A as AmText } from "./AmText-D9XRosEj.js";
|
|
14
|
-
import { P as Pusher } from "./pusher-C5wfOfDN.js";
|
|
15
|
-
import { A as AmModalV3 } from "./AmModalV3-DoeNs1Di.js";
|
|
16
|
-
var style$2 = ({ dt: n }) => `
|
|
17
|
-
.p-knob-range {
|
|
18
|
-
fill: none;
|
|
19
|
-
transition: stroke 0.1s ease-in;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.p-knob-value {
|
|
23
|
-
animation-name: p-knob-dash-frame;
|
|
24
|
-
animation-fill-mode: forwards;
|
|
25
|
-
fill: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.p-knob-text {
|
|
29
|
-
font-size: 1.3rem;
|
|
30
|
-
text-align: center;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.p-knob svg {
|
|
34
|
-
border-radius: 50%;
|
|
35
|
-
outline-color: transparent;
|
|
36
|
-
transition: background ${n("knob.transition.duration")}, color ${n("knob.transition.duration")}, outline-color ${n("knob.transition.duration")}, box-shadow ${n("knob.transition.duration")};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.p-knob svg:focus-visible {
|
|
40
|
-
box-shadow: ${n("knob.focus.ring.shadow")};
|
|
41
|
-
outline: ${n("knob.focus.ring.width")} ${n("knob.focus.ring.style")} ${n("knob.focus.ring.color")};
|
|
42
|
-
outline-offset: ${n("knob.focus.ring.offset")};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@keyframes p-knob-dash-frame {
|
|
46
|
-
100% {
|
|
47
|
-
stroke-dashoffset: 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
var classes$2 = {
|
|
52
|
-
root: function root(_ref) {
|
|
53
|
-
var instance = _ref.instance, props = _ref.props;
|
|
54
|
-
return ["p-knob p-component", {
|
|
55
|
-
"p-disabled": props.disabled,
|
|
56
|
-
"p-invalid": instance.$invalid
|
|
57
|
-
}];
|
|
58
|
-
},
|
|
59
|
-
range: "p-knob-range",
|
|
60
|
-
value: "p-knob-value",
|
|
61
|
-
text: "p-knob-text"
|
|
62
|
-
};
|
|
63
|
-
var KnobStyle = BaseStyle.extend({
|
|
64
|
-
name: "knob",
|
|
65
|
-
style: style$2,
|
|
66
|
-
classes: classes$2
|
|
67
|
-
});
|
|
68
|
-
var script$1$2 = {
|
|
69
|
-
name: "BaseKnob",
|
|
70
|
-
"extends": script$4,
|
|
71
|
-
props: {
|
|
72
|
-
size: {
|
|
73
|
-
type: Number,
|
|
74
|
-
"default": 100
|
|
75
|
-
},
|
|
76
|
-
readonly: {
|
|
77
|
-
type: Boolean,
|
|
78
|
-
"default": false
|
|
79
|
-
},
|
|
80
|
-
step: {
|
|
81
|
-
type: Number,
|
|
82
|
-
"default": 1
|
|
83
|
-
},
|
|
84
|
-
min: {
|
|
85
|
-
type: Number,
|
|
86
|
-
"default": 0
|
|
87
|
-
},
|
|
88
|
-
max: {
|
|
89
|
-
type: Number,
|
|
90
|
-
"default": 100
|
|
91
|
-
},
|
|
92
|
-
valueColor: {
|
|
93
|
-
type: String,
|
|
94
|
-
"default": function _default() {
|
|
95
|
-
return $dt("knob.value.background").variable;
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
rangeColor: {
|
|
99
|
-
type: String,
|
|
100
|
-
"default": function _default2() {
|
|
101
|
-
return $dt("knob.range.background").variable;
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
textColor: {
|
|
105
|
-
type: String,
|
|
106
|
-
"default": function _default3() {
|
|
107
|
-
return $dt("knob.text.color").variable;
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
strokeWidth: {
|
|
111
|
-
type: Number,
|
|
112
|
-
"default": 14
|
|
113
|
-
},
|
|
114
|
-
showValue: {
|
|
115
|
-
type: Boolean,
|
|
116
|
-
"default": true
|
|
117
|
-
},
|
|
118
|
-
valueTemplate: {
|
|
119
|
-
type: [String, Function],
|
|
120
|
-
"default": "{value}"
|
|
121
|
-
},
|
|
122
|
-
tabindex: {
|
|
123
|
-
type: Number,
|
|
124
|
-
"default": 0
|
|
125
|
-
},
|
|
126
|
-
ariaLabelledby: {
|
|
127
|
-
type: String,
|
|
128
|
-
"default": null
|
|
129
|
-
},
|
|
130
|
-
ariaLabel: {
|
|
131
|
-
type: String,
|
|
132
|
-
"default": null
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
style: KnobStyle,
|
|
136
|
-
provide: function provide() {
|
|
137
|
-
return {
|
|
138
|
-
$pcKnob: this,
|
|
139
|
-
$parentInstance: this
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
var Math_PI = 3.14159265358979;
|
|
144
|
-
var script$3 = {
|
|
145
|
-
name: "Knob",
|
|
146
|
-
"extends": script$1$2,
|
|
147
|
-
inheritAttrs: false,
|
|
148
|
-
emits: ["change"],
|
|
149
|
-
data: function data() {
|
|
150
|
-
return {
|
|
151
|
-
radius: 40,
|
|
152
|
-
midX: 50,
|
|
153
|
-
midY: 50,
|
|
154
|
-
minRadians: 4 * Math_PI / 3,
|
|
155
|
-
maxRadians: -3.14159265358979 / 3
|
|
156
|
-
};
|
|
157
|
-
},
|
|
158
|
-
methods: {
|
|
159
|
-
updateValueByOffset: function updateValueByOffset(offsetX, offsetY) {
|
|
160
|
-
var dx = offsetX - this.size / 2;
|
|
161
|
-
var dy = this.size / 2 - offsetY;
|
|
162
|
-
var angle = Math.atan2(dy, dx);
|
|
163
|
-
var start = -3.14159265358979 / 2 - Math_PI / 6;
|
|
164
|
-
this.updateModel(angle, start);
|
|
165
|
-
},
|
|
166
|
-
updateModel: function updateModel(angle, start) {
|
|
167
|
-
var mappedValue;
|
|
168
|
-
if (angle > this.maxRadians) mappedValue = this.mapRange(angle, this.minRadians, this.maxRadians, this.min, this.max);
|
|
169
|
-
else if (angle < start) mappedValue = this.mapRange(angle + 2 * Math_PI, this.minRadians, this.maxRadians, this.min, this.max);
|
|
170
|
-
else return;
|
|
171
|
-
var newValue = Math.round((mappedValue - this.min) / this.step) * this.step + this.min;
|
|
172
|
-
this.writeValue(newValue);
|
|
173
|
-
this.$emit("change", newValue);
|
|
174
|
-
},
|
|
175
|
-
updateModelValue: function updateModelValue(newValue) {
|
|
176
|
-
if (newValue > this.max) this.writeValue(this.max);
|
|
177
|
-
else if (newValue < this.min) this.writeValue(this.min);
|
|
178
|
-
else this.writeValue(newValue);
|
|
179
|
-
},
|
|
180
|
-
mapRange: function mapRange(x, inMin, inMax, outMin, outMax) {
|
|
181
|
-
return (x - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
|
|
182
|
-
},
|
|
183
|
-
onClick: function onClick(event) {
|
|
184
|
-
if (!this.disabled && !this.readonly) {
|
|
185
|
-
this.updateValueByOffset(event.offsetX, event.offsetY);
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
onBlur: function onBlur(event) {
|
|
189
|
-
var _this$formField$onBlu, _this$formField;
|
|
190
|
-
(_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
|
|
191
|
-
},
|
|
192
|
-
onMouseDown: function onMouseDown(event) {
|
|
193
|
-
if (!this.disabled && !this.readonly) {
|
|
194
|
-
window.addEventListener("mousemove", this.onMouseMove);
|
|
195
|
-
window.addEventListener("mouseup", this.onMouseUp);
|
|
196
|
-
event.preventDefault();
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
onMouseUp: function onMouseUp(event) {
|
|
200
|
-
if (!this.disabled && !this.readonly) {
|
|
201
|
-
window.removeEventListener("mousemove", this.onMouseMove);
|
|
202
|
-
window.removeEventListener("mouseup", this.onMouseUp);
|
|
203
|
-
event.preventDefault();
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
onTouchStart: function onTouchStart(event) {
|
|
207
|
-
if (!this.disabled && !this.readonly) {
|
|
208
|
-
window.addEventListener("touchmove", this.onTouchMove);
|
|
209
|
-
window.addEventListener("touchend", this.onTouchEnd);
|
|
210
|
-
event.preventDefault();
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
onTouchEnd: function onTouchEnd(event) {
|
|
214
|
-
if (!this.disabled && !this.readonly) {
|
|
215
|
-
window.removeEventListener("touchmove", this.onTouchMove);
|
|
216
|
-
window.removeEventListener("touchend", this.onTouchEnd);
|
|
217
|
-
event.preventDefault();
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
onMouseMove: function onMouseMove(event) {
|
|
221
|
-
if (!this.disabled && !this.readonly) {
|
|
222
|
-
this.updateValueByOffset(event.offsetX, event.offsetY);
|
|
223
|
-
event.preventDefault();
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
onTouchMove: function onTouchMove(event) {
|
|
227
|
-
if (!this.disabled && !this.readonly && event.touches.length == 1) {
|
|
228
|
-
var rect = this.$el.getBoundingClientRect();
|
|
229
|
-
var touch = event.targetTouches.item(0);
|
|
230
|
-
var offsetX = touch.clientX - rect.left;
|
|
231
|
-
var offsetY = touch.clientY - rect.top;
|
|
232
|
-
this.updateValueByOffset(offsetX, offsetY);
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
onKeyDown: function onKeyDown(event) {
|
|
236
|
-
if (!this.disabled && !this.readonly) {
|
|
237
|
-
switch (event.code) {
|
|
238
|
-
case "ArrowRight":
|
|
239
|
-
case "ArrowUp": {
|
|
240
|
-
event.preventDefault();
|
|
241
|
-
this.updateModelValue(this.d_value + this.step);
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
case "ArrowLeft":
|
|
245
|
-
case "ArrowDown": {
|
|
246
|
-
event.preventDefault();
|
|
247
|
-
this.updateModelValue(this.d_value - this.step);
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
case "Home": {
|
|
251
|
-
event.preventDefault();
|
|
252
|
-
this.writeValue(this.min);
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
case "End": {
|
|
256
|
-
event.preventDefault();
|
|
257
|
-
this.writeValue(this.max);
|
|
258
|
-
break;
|
|
259
|
-
}
|
|
260
|
-
case "PageUp": {
|
|
261
|
-
event.preventDefault();
|
|
262
|
-
this.updateModelValue(this.d_value + 10);
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
case "PageDown": {
|
|
266
|
-
event.preventDefault();
|
|
267
|
-
this.updateModelValue(this.d_value - 10);
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
computed: {
|
|
275
|
-
rangePath: function rangePath() {
|
|
276
|
-
return "M ".concat(this.minX, " ").concat(this.minY, " A ").concat(this.radius, " ").concat(this.radius, " 0 1 1 ").concat(this.maxX, " ").concat(this.maxY);
|
|
277
|
-
},
|
|
278
|
-
valuePath: function valuePath() {
|
|
279
|
-
return "M ".concat(this.zeroX, " ").concat(this.zeroY, " A ").concat(this.radius, " ").concat(this.radius, " 0 ").concat(this.largeArc, " ").concat(this.sweep, " ").concat(this.valueX, " ").concat(this.valueY);
|
|
280
|
-
},
|
|
281
|
-
zeroRadians: function zeroRadians() {
|
|
282
|
-
if (this.min > 0 && this.max > 0) return this.mapRange(this.min, this.min, this.max, this.minRadians, this.maxRadians);
|
|
283
|
-
else return this.mapRange(0, this.min, this.max, this.minRadians, this.maxRadians);
|
|
284
|
-
},
|
|
285
|
-
valueRadians: function valueRadians() {
|
|
286
|
-
return this.mapRange(this.d_value, this.min, this.max, this.minRadians, this.maxRadians);
|
|
287
|
-
},
|
|
288
|
-
minX: function minX() {
|
|
289
|
-
return this.midX + Math.cos(this.minRadians) * this.radius;
|
|
290
|
-
},
|
|
291
|
-
minY: function minY() {
|
|
292
|
-
return this.midY - Math.sin(this.minRadians) * this.radius;
|
|
293
|
-
},
|
|
294
|
-
maxX: function maxX() {
|
|
295
|
-
return this.midX + Math.cos(this.maxRadians) * this.radius;
|
|
296
|
-
},
|
|
297
|
-
maxY: function maxY() {
|
|
298
|
-
return this.midY - Math.sin(this.maxRadians) * this.radius;
|
|
299
|
-
},
|
|
300
|
-
zeroX: function zeroX() {
|
|
301
|
-
return this.midX + Math.cos(this.zeroRadians) * this.radius;
|
|
302
|
-
},
|
|
303
|
-
zeroY: function zeroY() {
|
|
304
|
-
return this.midY - Math.sin(this.zeroRadians) * this.radius;
|
|
305
|
-
},
|
|
306
|
-
valueX: function valueX() {
|
|
307
|
-
return this.midX + Math.cos(this.valueRadians) * this.radius;
|
|
308
|
-
},
|
|
309
|
-
valueY: function valueY() {
|
|
310
|
-
return this.midY - Math.sin(this.valueRadians) * this.radius;
|
|
311
|
-
},
|
|
312
|
-
largeArc: function largeArc() {
|
|
313
|
-
return Math.abs(this.zeroRadians - this.valueRadians) < Math_PI ? 0 : 1;
|
|
314
|
-
},
|
|
315
|
-
sweep: function sweep() {
|
|
316
|
-
return this.valueRadians > this.zeroRadians ? 0 : 1;
|
|
317
|
-
},
|
|
318
|
-
valueToDisplay: function valueToDisplay() {
|
|
319
|
-
if (typeof this.valueTemplate === "string") {
|
|
320
|
-
return this.valueTemplate.replace(/{value}/g, this.d_value);
|
|
321
|
-
} else {
|
|
322
|
-
return this.valueTemplate(this.d_value);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
var _hoisted_1$g = ["width", "height", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-label"];
|
|
328
|
-
var _hoisted_2$9 = ["d", "stroke-width", "stroke"];
|
|
329
|
-
var _hoisted_3$5 = ["d", "stroke-width", "stroke"];
|
|
330
|
-
var _hoisted_4$3 = ["fill"];
|
|
331
|
-
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
332
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
333
|
-
"class": _ctx.cx("root")
|
|
334
|
-
}, _ctx.ptmi("root")), [(openBlock(), createElementBlock("svg", mergeProps({
|
|
335
|
-
viewBox: "0 0 100 100",
|
|
336
|
-
role: "slider",
|
|
337
|
-
width: _ctx.size,
|
|
338
|
-
height: _ctx.size,
|
|
339
|
-
tabindex: _ctx.readonly || _ctx.disabled ? -1 : _ctx.tabindex,
|
|
340
|
-
"aria-valuemin": _ctx.min,
|
|
341
|
-
"aria-valuemax": _ctx.max,
|
|
342
|
-
"aria-valuenow": _ctx.d_value,
|
|
343
|
-
"aria-labelledby": _ctx.ariaLabelledby,
|
|
344
|
-
"aria-label": _ctx.ariaLabel,
|
|
345
|
-
onClick: _cache[0] || (_cache[0] = function() {
|
|
346
|
-
return $options.onClick && $options.onClick.apply($options, arguments);
|
|
347
|
-
}),
|
|
348
|
-
onBlur: _cache[1] || (_cache[1] = function() {
|
|
349
|
-
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
350
|
-
}),
|
|
351
|
-
onKeydown: _cache[2] || (_cache[2] = function() {
|
|
352
|
-
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
353
|
-
}),
|
|
354
|
-
onMousedown: _cache[3] || (_cache[3] = function() {
|
|
355
|
-
return $options.onMouseDown && $options.onMouseDown.apply($options, arguments);
|
|
356
|
-
}),
|
|
357
|
-
onMouseup: _cache[4] || (_cache[4] = function() {
|
|
358
|
-
return $options.onMouseUp && $options.onMouseUp.apply($options, arguments);
|
|
359
|
-
}),
|
|
360
|
-
onTouchstart: _cache[5] || (_cache[5] = function() {
|
|
361
|
-
return $options.onTouchStart && $options.onTouchStart.apply($options, arguments);
|
|
362
|
-
}),
|
|
363
|
-
onTouchend: _cache[6] || (_cache[6] = function() {
|
|
364
|
-
return $options.onTouchEnd && $options.onTouchEnd.apply($options, arguments);
|
|
365
|
-
})
|
|
366
|
-
}, _ctx.ptm("svg")), [createBaseVNode("path", mergeProps({
|
|
367
|
-
d: $options.rangePath,
|
|
368
|
-
"stroke-width": _ctx.strokeWidth,
|
|
369
|
-
stroke: _ctx.rangeColor,
|
|
370
|
-
"class": _ctx.cx("range")
|
|
371
|
-
}, _ctx.ptm("range")), null, 16, _hoisted_2$9), createBaseVNode("path", mergeProps({
|
|
372
|
-
d: $options.valuePath,
|
|
373
|
-
"stroke-width": _ctx.strokeWidth,
|
|
374
|
-
stroke: _ctx.valueColor,
|
|
375
|
-
"class": _ctx.cx("value")
|
|
376
|
-
}, _ctx.ptm("value")), null, 16, _hoisted_3$5), _ctx.showValue ? (openBlock(), createElementBlock("text", mergeProps({
|
|
377
|
-
key: 0,
|
|
378
|
-
x: 50,
|
|
379
|
-
y: 57,
|
|
380
|
-
"text-anchor": "middle",
|
|
381
|
-
fill: _ctx.textColor,
|
|
382
|
-
"class": _ctx.cx("text")
|
|
383
|
-
}, _ctx.ptm("text")), toDisplayString($options.valueToDisplay), 17, _hoisted_4$3)) : createCommentVNode("", true)], 16, _hoisted_1$g))], 16);
|
|
384
|
-
}
|
|
385
|
-
script$3.render = render$2;
|
|
386
|
-
var style$1 = ({ dt: o }) => `
|
|
387
|
-
.p-togglebutton {
|
|
388
|
-
display: inline-flex;
|
|
389
|
-
cursor: pointer;
|
|
390
|
-
user-select: none;
|
|
391
|
-
overflow: hidden;
|
|
392
|
-
position: relative;
|
|
393
|
-
color: ${o("togglebutton.color")};
|
|
394
|
-
background: ${o("togglebutton.background")};
|
|
395
|
-
border: 1px solid ${o("togglebutton.border.color")};
|
|
396
|
-
padding: ${o("togglebutton.padding")};
|
|
397
|
-
font-size: 1rem;
|
|
398
|
-
font-family: inherit;
|
|
399
|
-
font-feature-settings: inherit;
|
|
400
|
-
transition: background ${o("togglebutton.transition.duration")}, color ${o("togglebutton.transition.duration")}, border-color ${o("togglebutton.transition.duration")},
|
|
401
|
-
outline-color ${o("togglebutton.transition.duration")}, box-shadow ${o("togglebutton.transition.duration")};
|
|
402
|
-
border-radius: ${o("togglebutton.border.radius")};
|
|
403
|
-
outline-color: transparent;
|
|
404
|
-
font-weight: ${o("togglebutton.font.weight")};
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.p-togglebutton-content {
|
|
408
|
-
display: inline-flex;
|
|
409
|
-
flex: 1 1 auto;
|
|
410
|
-
align-items: center;
|
|
411
|
-
justify-content: center;
|
|
412
|
-
gap: ${o("togglebutton.gap")};
|
|
413
|
-
padding: ${o("togglebutton.content.padding")};
|
|
414
|
-
background: transparent;
|
|
415
|
-
border-radius: ${o("togglebutton.content.border.radius")};
|
|
416
|
-
transition: background ${o("togglebutton.transition.duration")}, color ${o("togglebutton.transition.duration")}, border-color ${o("togglebutton.transition.duration")},
|
|
417
|
-
outline-color ${o("togglebutton.transition.duration")}, box-shadow ${o("togglebutton.transition.duration")};
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
|
|
421
|
-
background: ${o("togglebutton.hover.background")};
|
|
422
|
-
color: ${o("togglebutton.hover.color")};
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.p-togglebutton.p-togglebutton-checked {
|
|
426
|
-
background: ${o("togglebutton.checked.background")};
|
|
427
|
-
border-color: ${o("togglebutton.checked.border.color")};
|
|
428
|
-
color: ${o("togglebutton.checked.color")};
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.p-togglebutton-checked .p-togglebutton-content {
|
|
432
|
-
background: ${o("togglebutton.content.checked.background")};
|
|
433
|
-
box-shadow: ${o("togglebutton.content.checked.shadow")};
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.p-togglebutton:focus-visible {
|
|
437
|
-
box-shadow: ${o("togglebutton.focus.ring.shadow")};
|
|
438
|
-
outline: ${o("togglebutton.focus.ring.width")} ${o("togglebutton.focus.ring.style")} ${o("togglebutton.focus.ring.color")};
|
|
439
|
-
outline-offset: ${o("togglebutton.focus.ring.offset")};
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.p-togglebutton.p-invalid {
|
|
443
|
-
border-color: ${o("togglebutton.invalid.border.color")};
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.p-togglebutton:disabled {
|
|
447
|
-
opacity: 1;
|
|
448
|
-
cursor: default;
|
|
449
|
-
background: ${o("togglebutton.disabled.background")};
|
|
450
|
-
border-color: ${o("togglebutton.disabled.border.color")};
|
|
451
|
-
color: ${o("togglebutton.disabled.color")};
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.p-togglebutton-label,
|
|
455
|
-
.p-togglebutton-icon {
|
|
456
|
-
position: relative;
|
|
457
|
-
transition: none;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.p-togglebutton-icon {
|
|
461
|
-
color: ${o("togglebutton.icon.color")};
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
|
|
465
|
-
color: ${o("togglebutton.icon.hover.color")};
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
|
|
469
|
-
color: ${o("togglebutton.icon.checked.color")};
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.p-togglebutton:disabled .p-togglebutton-icon {
|
|
473
|
-
color: ${o("togglebutton.icon.disabled.color")};
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.p-togglebutton-sm {
|
|
477
|
-
padding: ${o("togglebutton.sm.padding")};
|
|
478
|
-
font-size: ${o("togglebutton.sm.font.size")};
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.p-togglebutton-sm .p-togglebutton-content {
|
|
482
|
-
padding: ${o("togglebutton.content.sm.padding")};
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.p-togglebutton-lg {
|
|
486
|
-
padding: ${o("togglebutton.lg.padding")};
|
|
487
|
-
font-size: ${o("togglebutton.lg.font.size")};
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
.p-togglebutton-lg .p-togglebutton-content {
|
|
491
|
-
padding: ${o("togglebutton.content.lg.padding")};
|
|
492
|
-
}
|
|
493
|
-
`;
|
|
494
|
-
var classes$1 = {
|
|
495
|
-
root: function root2(_ref) {
|
|
496
|
-
var instance = _ref.instance, props = _ref.props;
|
|
497
|
-
return ["p-togglebutton p-component", {
|
|
498
|
-
"p-togglebutton-checked": instance.active,
|
|
499
|
-
"p-invalid": instance.$invalid,
|
|
500
|
-
"p-togglebutton-sm p-inputfield-sm": props.size === "small",
|
|
501
|
-
"p-togglebutton-lg p-inputfield-lg": props.size === "large"
|
|
502
|
-
}];
|
|
503
|
-
},
|
|
504
|
-
content: "p-togglebutton-content",
|
|
505
|
-
icon: "p-togglebutton-icon",
|
|
506
|
-
label: "p-togglebutton-label"
|
|
507
|
-
};
|
|
508
|
-
var ToggleButtonStyle = BaseStyle.extend({
|
|
509
|
-
name: "togglebutton",
|
|
510
|
-
style: style$1,
|
|
511
|
-
classes: classes$1
|
|
512
|
-
});
|
|
513
|
-
var script$1$1 = {
|
|
514
|
-
name: "BaseToggleButton",
|
|
515
|
-
"extends": script$4,
|
|
516
|
-
props: {
|
|
517
|
-
onIcon: String,
|
|
518
|
-
offIcon: String,
|
|
519
|
-
onLabel: {
|
|
520
|
-
type: String,
|
|
521
|
-
"default": "Yes"
|
|
522
|
-
},
|
|
523
|
-
offLabel: {
|
|
524
|
-
type: String,
|
|
525
|
-
"default": "No"
|
|
526
|
-
},
|
|
527
|
-
iconPos: {
|
|
528
|
-
type: String,
|
|
529
|
-
"default": "left"
|
|
530
|
-
},
|
|
531
|
-
readonly: {
|
|
532
|
-
type: Boolean,
|
|
533
|
-
"default": false
|
|
534
|
-
},
|
|
535
|
-
tabindex: {
|
|
536
|
-
type: Number,
|
|
537
|
-
"default": null
|
|
538
|
-
},
|
|
539
|
-
ariaLabelledby: {
|
|
540
|
-
type: String,
|
|
541
|
-
"default": null
|
|
542
|
-
},
|
|
543
|
-
ariaLabel: {
|
|
544
|
-
type: String,
|
|
545
|
-
"default": null
|
|
546
|
-
},
|
|
547
|
-
size: {
|
|
548
|
-
type: String,
|
|
549
|
-
"default": null
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
style: ToggleButtonStyle,
|
|
553
|
-
provide: function provide2() {
|
|
554
|
-
return {
|
|
555
|
-
$pcToggleButton: this,
|
|
556
|
-
$parentInstance: this
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
function _typeof(o) {
|
|
561
|
-
"@babel/helpers - typeof";
|
|
562
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
563
|
-
return typeof o2;
|
|
564
|
-
} : function(o2) {
|
|
565
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
566
|
-
}, _typeof(o);
|
|
567
|
-
}
|
|
568
|
-
function _defineProperty(e, r, t2) {
|
|
569
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t2, enumerable: true, configurable: true, writable: true }) : e[r] = t2, e;
|
|
570
|
-
}
|
|
571
|
-
function _toPropertyKey(t2) {
|
|
572
|
-
var i = _toPrimitive(t2, "string");
|
|
573
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
574
|
-
}
|
|
575
|
-
function _toPrimitive(t2, r) {
|
|
576
|
-
if ("object" != _typeof(t2) || !t2) return t2;
|
|
577
|
-
var e = t2[Symbol.toPrimitive];
|
|
578
|
-
if (void 0 !== e) {
|
|
579
|
-
var i = e.call(t2, r);
|
|
580
|
-
if ("object" != _typeof(i)) return i;
|
|
581
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
582
|
-
}
|
|
583
|
-
return ("string" === r ? String : Number)(t2);
|
|
584
|
-
}
|
|
585
|
-
var script$2 = {
|
|
586
|
-
name: "ToggleButton",
|
|
587
|
-
"extends": script$1$1,
|
|
588
|
-
inheritAttrs: false,
|
|
589
|
-
emits: ["change"],
|
|
590
|
-
methods: {
|
|
591
|
-
getPTOptions: function getPTOptions(key) {
|
|
592
|
-
var _ptm = key === "root" ? this.ptmi : this.ptm;
|
|
593
|
-
return _ptm(key, {
|
|
594
|
-
context: {
|
|
595
|
-
active: this.active,
|
|
596
|
-
disabled: this.disabled
|
|
597
|
-
}
|
|
598
|
-
});
|
|
599
|
-
},
|
|
600
|
-
onChange: function onChange(event) {
|
|
601
|
-
if (!this.disabled && !this.readonly) {
|
|
602
|
-
this.writeValue(!this.d_value, event);
|
|
603
|
-
this.$emit("change", event);
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
onBlur: function onBlur2(event) {
|
|
607
|
-
var _this$formField$onBlu, _this$formField;
|
|
608
|
-
(_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
computed: {
|
|
612
|
-
active: function active() {
|
|
613
|
-
return this.d_value === true;
|
|
614
|
-
},
|
|
615
|
-
hasLabel: function hasLabel() {
|
|
616
|
-
return isNotEmpty(this.onLabel) && isNotEmpty(this.offLabel);
|
|
617
|
-
},
|
|
618
|
-
label: function label() {
|
|
619
|
-
return this.hasLabel ? this.d_value ? this.onLabel : this.offLabel : " ";
|
|
620
|
-
},
|
|
621
|
-
dataP: function dataP() {
|
|
622
|
-
return cn(_defineProperty({
|
|
623
|
-
checked: this.active,
|
|
624
|
-
invalid: this.$invalid
|
|
625
|
-
}, this.size, this.size));
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
directives: {
|
|
629
|
-
ripple: Ripple
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
var _hoisted_1$f = ["tabindex", "disabled", "aria-pressed", "aria-label", "aria-labelledby", "data-p-checked", "data-p-disabled", "data-p"];
|
|
633
|
-
var _hoisted_2$8 = ["data-p"];
|
|
634
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
635
|
-
var _directive_ripple = resolveDirective("ripple");
|
|
636
|
-
return withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
637
|
-
type: "button",
|
|
638
|
-
"class": _ctx.cx("root"),
|
|
639
|
-
tabindex: _ctx.tabindex,
|
|
640
|
-
disabled: _ctx.disabled,
|
|
641
|
-
"aria-pressed": _ctx.d_value,
|
|
642
|
-
onClick: _cache[0] || (_cache[0] = function() {
|
|
643
|
-
return $options.onChange && $options.onChange.apply($options, arguments);
|
|
644
|
-
}),
|
|
645
|
-
onBlur: _cache[1] || (_cache[1] = function() {
|
|
646
|
-
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
647
|
-
})
|
|
648
|
-
}, $options.getPTOptions("root"), {
|
|
649
|
-
"aria-label": _ctx.ariaLabel,
|
|
650
|
-
"aria-labelledby": _ctx.ariaLabelledby,
|
|
651
|
-
"data-p-checked": $options.active,
|
|
652
|
-
"data-p-disabled": _ctx.disabled,
|
|
653
|
-
"data-p": $options.dataP
|
|
654
|
-
}), [createBaseVNode("span", mergeProps({
|
|
655
|
-
"class": _ctx.cx("content")
|
|
656
|
-
}, $options.getPTOptions("content"), {
|
|
657
|
-
"data-p": $options.dataP
|
|
658
|
-
}), [renderSlot(_ctx.$slots, "default", {}, function() {
|
|
659
|
-
return [renderSlot(_ctx.$slots, "icon", {
|
|
660
|
-
value: _ctx.d_value,
|
|
661
|
-
"class": normalizeClass(_ctx.cx("icon"))
|
|
662
|
-
}, function() {
|
|
663
|
-
return [_ctx.onIcon || _ctx.offIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
664
|
-
key: 0,
|
|
665
|
-
"class": [_ctx.cx("icon"), _ctx.d_value ? _ctx.onIcon : _ctx.offIcon]
|
|
666
|
-
}, $options.getPTOptions("icon")), null, 16)) : createCommentVNode("", true)];
|
|
667
|
-
}), createBaseVNode("span", mergeProps({
|
|
668
|
-
"class": _ctx.cx("label")
|
|
669
|
-
}, $options.getPTOptions("label")), toDisplayString($options.label), 17)];
|
|
670
|
-
})], 16, _hoisted_2$8)], 16, _hoisted_1$f)), [[_directive_ripple]]);
|
|
671
|
-
}
|
|
672
|
-
script$2.render = render$1;
|
|
673
|
-
var style = ({ dt: t2 }) => `
|
|
674
|
-
.p-selectbutton {
|
|
675
|
-
display: inline-flex;
|
|
676
|
-
user-select: none;
|
|
677
|
-
vertical-align: bottom;
|
|
678
|
-
outline-color: transparent;
|
|
679
|
-
border-radius: ${t2("selectbutton.border.radius")};
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
.p-selectbutton .p-togglebutton {
|
|
683
|
-
border-radius: 0;
|
|
684
|
-
border-width: 1px 1px 1px 0;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
.p-selectbutton .p-togglebutton:focus-visible {
|
|
688
|
-
position: relative;
|
|
689
|
-
z-index: 1;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.p-selectbutton .p-togglebutton:first-child {
|
|
693
|
-
border-inline-start-width: 1px;
|
|
694
|
-
border-start-start-radius: ${t2("selectbutton.border.radius")};
|
|
695
|
-
border-end-start-radius: ${t2("selectbutton.border.radius")};
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.p-selectbutton .p-togglebutton:last-child {
|
|
699
|
-
border-start-end-radius: ${t2("selectbutton.border.radius")};
|
|
700
|
-
border-end-end-radius: ${t2("selectbutton.border.radius")};
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
.p-selectbutton.p-invalid {
|
|
704
|
-
outline: 1px solid ${t2("selectbutton.invalid.border.color")};
|
|
705
|
-
outline-offset: 0;
|
|
706
|
-
}
|
|
707
|
-
`;
|
|
708
|
-
var classes = {
|
|
709
|
-
root: function root3(_ref) {
|
|
710
|
-
var instance = _ref.instance;
|
|
711
|
-
return ["p-selectbutton p-component", {
|
|
712
|
-
"p-invalid": instance.$invalid
|
|
713
|
-
// @todo: check
|
|
714
|
-
}];
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
var SelectButtonStyle = BaseStyle.extend({
|
|
718
|
-
name: "selectbutton",
|
|
719
|
-
style,
|
|
720
|
-
classes
|
|
721
|
-
});
|
|
722
|
-
var script$1 = {
|
|
723
|
-
name: "BaseSelectButton",
|
|
724
|
-
"extends": script$4,
|
|
725
|
-
props: {
|
|
726
|
-
options: Array,
|
|
727
|
-
optionLabel: null,
|
|
728
|
-
optionValue: null,
|
|
729
|
-
optionDisabled: null,
|
|
730
|
-
multiple: Boolean,
|
|
731
|
-
allowEmpty: {
|
|
732
|
-
type: Boolean,
|
|
733
|
-
"default": true
|
|
734
|
-
},
|
|
735
|
-
dataKey: null,
|
|
736
|
-
ariaLabelledby: {
|
|
737
|
-
type: String,
|
|
738
|
-
"default": null
|
|
739
|
-
},
|
|
740
|
-
size: {
|
|
741
|
-
type: String,
|
|
742
|
-
"default": null
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
style: SelectButtonStyle,
|
|
746
|
-
provide: function provide3() {
|
|
747
|
-
return {
|
|
748
|
-
$pcSelectButton: this,
|
|
749
|
-
$parentInstance: this
|
|
750
|
-
};
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
function _createForOfIteratorHelper(r, e) {
|
|
754
|
-
var t2 = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
755
|
-
if (!t2) {
|
|
756
|
-
if (Array.isArray(r) || (t2 = _unsupportedIterableToArray(r)) || e) {
|
|
757
|
-
t2 && (r = t2);
|
|
758
|
-
var _n = 0, F = function F2() {
|
|
759
|
-
};
|
|
760
|
-
return { s: F, n: function n() {
|
|
761
|
-
return _n >= r.length ? { done: true } : { done: false, value: r[_n++] };
|
|
762
|
-
}, e: function e2(r2) {
|
|
763
|
-
throw r2;
|
|
764
|
-
}, f: F };
|
|
765
|
-
}
|
|
766
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
767
|
-
}
|
|
768
|
-
var o, a = true, u = false;
|
|
769
|
-
return { s: function s() {
|
|
770
|
-
t2 = t2.call(r);
|
|
771
|
-
}, n: function n() {
|
|
772
|
-
var r2 = t2.next();
|
|
773
|
-
return a = r2.done, r2;
|
|
774
|
-
}, e: function e2(r2) {
|
|
775
|
-
u = true, o = r2;
|
|
776
|
-
}, f: function f() {
|
|
777
|
-
try {
|
|
778
|
-
a || null == t2["return"] || t2["return"]();
|
|
779
|
-
} finally {
|
|
780
|
-
if (u) throw o;
|
|
781
|
-
}
|
|
782
|
-
} };
|
|
783
|
-
}
|
|
784
|
-
function _toConsumableArray(r) {
|
|
785
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
786
|
-
}
|
|
787
|
-
function _nonIterableSpread() {
|
|
788
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
789
|
-
}
|
|
790
|
-
function _unsupportedIterableToArray(r, a) {
|
|
791
|
-
if (r) {
|
|
792
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
793
|
-
var t2 = {}.toString.call(r).slice(8, -1);
|
|
794
|
-
return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r, a) : void 0;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
function _iterableToArray(r) {
|
|
798
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
799
|
-
}
|
|
800
|
-
function _arrayWithoutHoles(r) {
|
|
801
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
802
|
-
}
|
|
803
|
-
function _arrayLikeToArray(r, a) {
|
|
804
|
-
(null == a || a > r.length) && (a = r.length);
|
|
805
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
806
|
-
return n;
|
|
807
|
-
}
|
|
808
|
-
var script = {
|
|
809
|
-
name: "SelectButton",
|
|
810
|
-
"extends": script$1,
|
|
811
|
-
inheritAttrs: false,
|
|
812
|
-
emits: ["change"],
|
|
813
|
-
methods: {
|
|
814
|
-
getOptionLabel: function getOptionLabel(option) {
|
|
815
|
-
return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;
|
|
816
|
-
},
|
|
817
|
-
getOptionValue: function getOptionValue(option) {
|
|
818
|
-
return this.optionValue ? resolveFieldData(option, this.optionValue) : option;
|
|
819
|
-
},
|
|
820
|
-
getOptionRenderKey: function getOptionRenderKey(option) {
|
|
821
|
-
return this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
|
|
822
|
-
},
|
|
823
|
-
isOptionDisabled: function isOptionDisabled(option) {
|
|
824
|
-
return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;
|
|
825
|
-
},
|
|
826
|
-
isOptionReadonly: function isOptionReadonly(option) {
|
|
827
|
-
if (this.allowEmpty) return false;
|
|
828
|
-
var selected = this.isSelected(option);
|
|
829
|
-
if (this.multiple) {
|
|
830
|
-
return selected && this.d_value.length === 1;
|
|
831
|
-
} else {
|
|
832
|
-
return selected;
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
onOptionSelect: function onOptionSelect(event, option, index) {
|
|
836
|
-
var _this = this;
|
|
837
|
-
if (this.disabled || this.isOptionDisabled(option) || this.isOptionReadonly(option)) {
|
|
838
|
-
return;
|
|
839
|
-
}
|
|
840
|
-
var selected = this.isSelected(option);
|
|
841
|
-
var optionValue = this.getOptionValue(option);
|
|
842
|
-
var newValue;
|
|
843
|
-
if (this.multiple) {
|
|
844
|
-
if (selected) {
|
|
845
|
-
newValue = this.d_value.filter(function(val) {
|
|
846
|
-
return !equals(val, optionValue, _this.equalityKey);
|
|
847
|
-
});
|
|
848
|
-
if (!this.allowEmpty && newValue.length === 0) return;
|
|
849
|
-
} else {
|
|
850
|
-
newValue = this.d_value ? [].concat(_toConsumableArray(this.d_value), [optionValue]) : [optionValue];
|
|
851
|
-
}
|
|
852
|
-
} else {
|
|
853
|
-
if (selected && !this.allowEmpty) return;
|
|
854
|
-
newValue = selected ? null : optionValue;
|
|
855
|
-
}
|
|
856
|
-
this.writeValue(newValue, event);
|
|
857
|
-
this.$emit("change", {
|
|
858
|
-
event,
|
|
859
|
-
value: newValue
|
|
860
|
-
});
|
|
861
|
-
},
|
|
862
|
-
isSelected: function isSelected(option) {
|
|
863
|
-
var selected = false;
|
|
864
|
-
var optionValue = this.getOptionValue(option);
|
|
865
|
-
if (this.multiple) {
|
|
866
|
-
if (this.d_value) {
|
|
867
|
-
var _iterator = _createForOfIteratorHelper(this.d_value), _step;
|
|
868
|
-
try {
|
|
869
|
-
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
870
|
-
var val = _step.value;
|
|
871
|
-
if (equals(val, optionValue, this.equalityKey)) {
|
|
872
|
-
selected = true;
|
|
873
|
-
break;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
} catch (err) {
|
|
877
|
-
_iterator.e(err);
|
|
878
|
-
} finally {
|
|
879
|
-
_iterator.f();
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
} else {
|
|
883
|
-
selected = equals(this.d_value, optionValue, this.equalityKey);
|
|
884
|
-
}
|
|
885
|
-
return selected;
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
computed: {
|
|
889
|
-
equalityKey: function equalityKey() {
|
|
890
|
-
return this.optionValue ? null : this.dataKey;
|
|
891
|
-
},
|
|
892
|
-
dataP: function dataP2() {
|
|
893
|
-
return cn({
|
|
894
|
-
invalid: this.$invalid
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
},
|
|
898
|
-
directives: {
|
|
899
|
-
ripple: Ripple
|
|
900
|
-
},
|
|
901
|
-
components: {
|
|
902
|
-
ToggleButton: script$2
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
|
-
var _hoisted_1$e = ["aria-labelledby", "data-p"];
|
|
906
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
907
|
-
var _component_ToggleButton = resolveComponent("ToggleButton");
|
|
908
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
909
|
-
"class": _ctx.cx("root"),
|
|
910
|
-
role: "group",
|
|
911
|
-
"aria-labelledby": _ctx.ariaLabelledby
|
|
912
|
-
}, _ctx.ptmi("root"), {
|
|
913
|
-
"data-p": $options.dataP
|
|
914
|
-
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, function(option, index) {
|
|
915
|
-
return openBlock(), createBlock(_component_ToggleButton, {
|
|
916
|
-
key: $options.getOptionRenderKey(option),
|
|
917
|
-
modelValue: $options.isSelected(option),
|
|
918
|
-
onLabel: $options.getOptionLabel(option),
|
|
919
|
-
offLabel: $options.getOptionLabel(option),
|
|
920
|
-
disabled: _ctx.disabled || $options.isOptionDisabled(option),
|
|
921
|
-
unstyled: _ctx.unstyled,
|
|
922
|
-
size: _ctx.size,
|
|
923
|
-
readonly: $options.isOptionReadonly(option),
|
|
924
|
-
onChange: function onChange2($event) {
|
|
925
|
-
return $options.onOptionSelect($event, option, index);
|
|
926
|
-
},
|
|
927
|
-
pt: _ctx.ptm("pcToggleButton")
|
|
928
|
-
}, createSlots({
|
|
929
|
-
_: 2
|
|
930
|
-
}, [_ctx.$slots.option ? {
|
|
931
|
-
name: "default",
|
|
932
|
-
fn: withCtx(function() {
|
|
933
|
-
return [renderSlot(_ctx.$slots, "option", {
|
|
934
|
-
option,
|
|
935
|
-
index
|
|
936
|
-
}, function() {
|
|
937
|
-
return [createBaseVNode("span", mergeProps({
|
|
938
|
-
ref_for: true
|
|
939
|
-
}, _ctx.ptm("pcToggleButton")["label"]), toDisplayString($options.getOptionLabel(option)), 17)];
|
|
940
|
-
})];
|
|
941
|
-
}),
|
|
942
|
-
key: "0"
|
|
943
|
-
} : void 0]), 1032, ["modelValue", "onLabel", "offLabel", "disabled", "unstyled", "size", "readonly", "onChange", "pt"]);
|
|
944
|
-
}), 128))], 16, _hoisted_1$e);
|
|
945
|
-
}
|
|
946
|
-
script.render = render;
|
|
947
|
-
class DashboardService {
|
|
948
|
-
constructor(apiService, cacheService) {
|
|
949
|
-
__publicField(this, "urlFether", {});
|
|
950
|
-
__publicField(this, "enableCache", false);
|
|
951
|
-
this.apiService = apiService;
|
|
952
|
-
this.cacheService = cacheService;
|
|
953
|
-
this.enableCache = !!this.cacheService;
|
|
954
|
-
}
|
|
955
|
-
async getCardDataByRange(route, date, isSecondTypeDate, isChargebackService2) {
|
|
956
|
-
const searchParams = this.getSearchParams(date, isSecondTypeDate);
|
|
957
|
-
const url = `${route}${searchParams}`;
|
|
958
|
-
if (this.enableCache) return this.fetchWithCache(url, isChargebackService2);
|
|
959
|
-
return this.fetchWithoutCache(url, isChargebackService2);
|
|
960
|
-
}
|
|
961
|
-
async clearCache() {
|
|
962
|
-
this.urlFether = {};
|
|
963
|
-
if (this.cacheService) this.cacheService.clear();
|
|
964
|
-
}
|
|
965
|
-
getSearchParams(date, isSecondTypeDate) {
|
|
966
|
-
return isSecondTypeDate ? `?date_from=${date.start}&date_to=${date.end}` : `?startDate=${date.start}&endDate=${date.end}`;
|
|
967
|
-
}
|
|
968
|
-
async fetchWithoutCache(url, isChargebackService2) {
|
|
969
|
-
try {
|
|
970
|
-
if (!this.urlFether[url]) {
|
|
971
|
-
this.urlFether[url] = isChargebackService2 ? api.get(url) : this.fetch(url);
|
|
972
|
-
;
|
|
973
|
-
}
|
|
974
|
-
return await this.urlFether[url];
|
|
975
|
-
} catch (error) {
|
|
976
|
-
delete this.urlFether[url];
|
|
977
|
-
throw error;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
async fetchWithCache(url, isChargebackService2) {
|
|
981
|
-
if (this.urlFether[url]) return this.urlFether[url];
|
|
982
|
-
if (await this.cacheService.has(url)) {
|
|
983
|
-
this.urlFether[url] = this.cacheService.get(url);
|
|
984
|
-
} else {
|
|
985
|
-
this.urlFether[url] = this.fetchAndCache(url, isChargebackService2);
|
|
986
|
-
}
|
|
987
|
-
return this.urlFether[url];
|
|
988
|
-
}
|
|
989
|
-
async fetchAndCache(url, isChargebackService2) {
|
|
990
|
-
try {
|
|
991
|
-
const data2 = isChargebackService2 ? await api.get(url) : await this.fetch(url);
|
|
992
|
-
await this.cacheService.set(url, data2);
|
|
993
|
-
return data2;
|
|
994
|
-
} catch (error) {
|
|
995
|
-
delete this.urlFether[url];
|
|
996
|
-
await this.cacheService.delete(url);
|
|
997
|
-
throw error;
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
async fetch(url) {
|
|
1001
|
-
const { data: data2 } = await this.apiService.get(url);
|
|
1002
|
-
if (data2.list) delete data2.list;
|
|
1003
|
-
return data2;
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
const dashboardService = new DashboardService(ApiService);
|
|
1007
|
-
const parseError = (error) => {
|
|
1008
|
-
var _a, _b, _c, _d;
|
|
1009
|
-
const message = ((_b = (_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) == null ? void 0 : _b.message) || ((_d = (_c = error == null ? void 0 : error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.status) || "";
|
|
1010
|
-
return {
|
|
1011
|
-
message,
|
|
1012
|
-
expiredToken: message === "Token is Expired",
|
|
1013
|
-
notAllowed: message === "Invalid user privileges",
|
|
1014
|
-
emptyFilter: userService.data.newDashboardAllowed && message === "Producer does not have sites available for filter"
|
|
1015
|
-
};
|
|
1016
|
-
};
|
|
1017
|
-
const handleFetchError = (error, defaultData) => {
|
|
1018
|
-
const parsedError = parseError(error);
|
|
1019
|
-
if (parsedError.expiredToken) return location.reload();
|
|
1020
|
-
if (parsedError.notAllowed || parsedError.emptyFilter) return defaultData;
|
|
1021
|
-
throw error;
|
|
1022
|
-
};
|
|
1023
|
-
const fetchData = async (route, date, parser, defaultData, isSecondTypeDate) => {
|
|
1024
|
-
try {
|
|
1025
|
-
const response = await dashboardService.getCardDataByRange(route, date, isSecondTypeDate);
|
|
1026
|
-
return typeof parser === "function" ? parser(response) : response;
|
|
1027
|
-
} catch (error) {
|
|
1028
|
-
return handleFetchError(error, defaultData);
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
|
-
const DEFAULT_DATA$a = {
|
|
1032
|
-
national: {
|
|
1033
|
-
anticipate_value: 0
|
|
1034
|
-
},
|
|
1035
|
-
international: [
|
|
1036
|
-
{
|
|
1037
|
-
total: 0,
|
|
1038
|
-
currency: "USD"
|
|
1039
|
-
}
|
|
1040
|
-
]
|
|
1041
|
-
};
|
|
1042
|
-
const WITHDRAW_ROUTE = {
|
|
1043
|
-
NEW: "/v2/client/integration/withdraw",
|
|
1044
|
-
OLD: "/cash-out/request/by-company"
|
|
1045
|
-
};
|
|
1046
|
-
const WITHDRAW_PERMISSION = {
|
|
1047
|
-
NEW: "admin:balance.companies.withdraw-request",
|
|
1048
|
-
OLD: "admin:cash-out.request"
|
|
1049
|
-
};
|
|
1050
|
-
const ROUTES = {
|
|
1051
|
-
NATIONAL: "/api/dashboard/cash-out-anticipate",
|
|
1052
|
-
INTERNATIONAL: "/api/dashboard/international/available-for-withdraw"
|
|
1053
|
-
};
|
|
1054
|
-
const CURRENCIES = {
|
|
1055
|
-
NATIONAL: "BRL",
|
|
1056
|
-
INTERNATIONAL: "USD"
|
|
1057
|
-
};
|
|
1058
|
-
const cashOutAntipateFetcher = async (dateRange) => {
|
|
1059
|
-
const result = await fetchData(
|
|
1060
|
-
ROUTES.NATIONAL,
|
|
1061
|
-
dateRange,
|
|
1062
|
-
false,
|
|
1063
|
-
DEFAULT_DATA$a.national
|
|
1064
|
-
);
|
|
1065
|
-
return serialize$4({
|
|
1066
|
-
currency: CURRENCIES.NATIONAL,
|
|
1067
|
-
value: result.anticipate_value || 0
|
|
1068
|
-
});
|
|
1069
|
-
};
|
|
1070
|
-
const cashOutInternationalAntipateFetcher = async (dateRange) => {
|
|
1071
|
-
const result = await fetchData(
|
|
1072
|
-
ROUTES.INTERNATIONAL,
|
|
1073
|
-
dateRange,
|
|
1074
|
-
false,
|
|
1075
|
-
DEFAULT_DATA$a.international
|
|
1076
|
-
);
|
|
1077
|
-
const data2 = result.find(({ currency }) => currency === CURRENCIES.INTERNATIONAL) || {
|
|
1078
|
-
total: 0
|
|
1079
|
-
};
|
|
1080
|
-
return serialize$4({
|
|
1081
|
-
currency: CURRENCIES.INTERNATIONAL,
|
|
1082
|
-
value: data2.total || 0
|
|
1083
|
-
});
|
|
1084
|
-
};
|
|
1085
|
-
const getUserWithdrawRoute = () => {
|
|
1086
|
-
if (userService.hasNewWithdrawPermission() && userService.hasPermission(WITHDRAW_PERMISSION.NEW)) {
|
|
1087
|
-
return WITHDRAW_ROUTE.NEW;
|
|
1088
|
-
}
|
|
1089
|
-
if (userService.hasPermission(WITHDRAW_PERMISSION.OLD)) {
|
|
1090
|
-
return WITHDRAW_ROUTE.OLD;
|
|
1091
|
-
}
|
|
1092
|
-
return void 0;
|
|
1093
|
-
};
|
|
1094
|
-
const serialize$4 = ({ value, currency }) => {
|
|
1095
|
-
const buttonDisabled = value <= 0;
|
|
1096
|
-
const route = getUserWithdrawRoute();
|
|
1097
|
-
const buttonTo = buttonDisabled ? void 0 : route;
|
|
1098
|
-
const isInternational = currency === CURRENCIES.INTERNATIONAL;
|
|
1099
|
-
const buttonLabel = isInternational ? "cashoutButton" : "cashoutantecipateButton";
|
|
1100
|
-
const id = isInternational ? cashoutInternationalConfig.id : cashoutNationalConfig.id;
|
|
1101
|
-
return {
|
|
1102
|
-
id,
|
|
1103
|
-
value: formatFloatMoney(value, currency),
|
|
1104
|
-
currency,
|
|
1105
|
-
button: {
|
|
1106
|
-
label: buttonLabel,
|
|
1107
|
-
disabled: buttonDisabled,
|
|
1108
|
-
show: !!route,
|
|
1109
|
-
to: buttonTo
|
|
1110
|
-
}
|
|
1111
|
-
};
|
|
1112
|
-
};
|
|
1113
|
-
const commonConfig$5 = {
|
|
1114
|
-
ignoreDateRange: true,
|
|
1115
|
-
component: () => import("./CashoutAntecipateContent-yPs8loRU.js")
|
|
1116
|
-
};
|
|
1117
|
-
const cashoutNationalConfig = {
|
|
1118
|
-
...commonConfig$5,
|
|
1119
|
-
id: "cashout-national",
|
|
1120
|
-
size: { md: 3, lg: 2 },
|
|
1121
|
-
title: "card.cashoutantecipate",
|
|
1122
|
-
fetcher: cashOutAntipateFetcher
|
|
1123
|
-
};
|
|
1124
|
-
const cashoutInternationalConfig = {
|
|
1125
|
-
...commonConfig$5,
|
|
1126
|
-
id: "cashout-international",
|
|
1127
|
-
size: 3,
|
|
1128
|
-
title: "card.cashout",
|
|
1129
|
-
fetcher: cashOutInternationalAntipateFetcher
|
|
1130
|
-
};
|
|
1131
|
-
const NATIONAL_ROUTES = {
|
|
1132
|
-
creditCard: "/api/dashboard/conversion-rate-credit-card",
|
|
1133
|
-
pix: "/api/dashboard/conversion-rate-pix",
|
|
1134
|
-
billet: "/api/dashboard/conversion-rate-billet"
|
|
1135
|
-
};
|
|
1136
|
-
const INTERNATIONAL_ROUTES = {
|
|
1137
|
-
creditCard: "/api/dashboard/international/conversion-rate-credit-card"
|
|
1138
|
-
};
|
|
1139
|
-
const CHART_COLORS = ["#9B6AFA", "#4f3582", "#D6D6D6"];
|
|
1140
|
-
const DEFAULT_DATA$9 = {
|
|
1141
|
-
national: {
|
|
1142
|
-
creditCard: {
|
|
1143
|
-
id: "dashboard-credit_card-sales",
|
|
1144
|
-
label: "approvalRate.paymentMethods.credit_card",
|
|
1145
|
-
quantity: 0,
|
|
1146
|
-
percentage: 0,
|
|
1147
|
-
infos: [
|
|
1148
|
-
{
|
|
1149
|
-
id: "authorized",
|
|
1150
|
-
label: "approvalRate.credit_card.authorized",
|
|
1151
|
-
quantity: 0,
|
|
1152
|
-
percentage: 0
|
|
1153
|
-
},
|
|
1154
|
-
{
|
|
1155
|
-
id: "refused_by_card_issuer",
|
|
1156
|
-
label: "approvalRate.credit_card.refused_by_card_issuer",
|
|
1157
|
-
quantity: 0,
|
|
1158
|
-
percentage: 0
|
|
1159
|
-
}
|
|
1160
|
-
],
|
|
1161
|
-
details: [
|
|
1162
|
-
{
|
|
1163
|
-
id: "approved",
|
|
1164
|
-
label: "approvalRate.credit_card.approved",
|
|
1165
|
-
quantity: 0,
|
|
1166
|
-
percentage: 0,
|
|
1167
|
-
tooltip: "approvalRate.creditCardHelper"
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
id: "refused_by_antifraud",
|
|
1171
|
-
label: "approvalRate.credit_card.refused_by_antifraud",
|
|
1172
|
-
quantity: 0,
|
|
1173
|
-
percentage: 0
|
|
1174
|
-
}
|
|
1175
|
-
]
|
|
1176
|
-
},
|
|
1177
|
-
pix: {
|
|
1178
|
-
id: "dashboard-pix-sales",
|
|
1179
|
-
label: "approvalRate.paymentMethods.pix",
|
|
1180
|
-
quantity: 0,
|
|
1181
|
-
percentage: 0,
|
|
1182
|
-
infos: [],
|
|
1183
|
-
details: [
|
|
1184
|
-
{
|
|
1185
|
-
id: "approved",
|
|
1186
|
-
label: "approvalRate.pix.approved",
|
|
1187
|
-
quantity: 0,
|
|
1188
|
-
percentage: 0
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
id: "pending",
|
|
1192
|
-
label: "approvalRate.pix.pending",
|
|
1193
|
-
quantity: 0,
|
|
1194
|
-
percentage: 0
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
id: "expireds",
|
|
1198
|
-
label: "approvalRate.pix.expired",
|
|
1199
|
-
quantity: 0,
|
|
1200
|
-
percentage: 0
|
|
1201
|
-
}
|
|
1202
|
-
]
|
|
1203
|
-
},
|
|
1204
|
-
billet: {
|
|
1205
|
-
id: "dashboard-boleto-sales",
|
|
1206
|
-
label: "approvalRate.paymentMethods.boleto",
|
|
1207
|
-
quantity: 0,
|
|
1208
|
-
percentage: 0,
|
|
1209
|
-
infos: [],
|
|
1210
|
-
details: [
|
|
1211
|
-
{
|
|
1212
|
-
id: "approved",
|
|
1213
|
-
label: "approvalRate.boleto.approved",
|
|
1214
|
-
quantity: 0,
|
|
1215
|
-
percentage: 0
|
|
1216
|
-
},
|
|
1217
|
-
{
|
|
1218
|
-
id: "pending",
|
|
1219
|
-
label: "approvalRate.boleto.pending",
|
|
1220
|
-
quantity: 0,
|
|
1221
|
-
percentage: 0
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
id: "expireds",
|
|
1225
|
-
label: "approvalRate.boleto.expired",
|
|
1226
|
-
quantity: 0,
|
|
1227
|
-
percentage: 0
|
|
1228
|
-
}
|
|
1229
|
-
]
|
|
1230
|
-
},
|
|
1231
|
-
charts: [
|
|
1232
|
-
{
|
|
1233
|
-
id: "dashboard-credit_card-sales",
|
|
1234
|
-
label: "approvalRate.paymentMethods.credit_card",
|
|
1235
|
-
percentage: 0,
|
|
1236
|
-
values: [0, 0],
|
|
1237
|
-
colors: ["#9B6AFA", "#4f3582", "#D6D6D6"],
|
|
1238
|
-
tooltip: "{approvalRate.credit_card.authorized}: 0 | \n{approvalRate.credit_card.refused_by_card_issuer}: 0 | \n{approvalRate.credit_card.approved}: 0 | \n{approvalRate.credit_card.refused_by_antifraud}: 0"
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
id: "dashboard-pix-sales",
|
|
1242
|
-
label: "approvalRate.paymentMethods.pix",
|
|
1243
|
-
percentage: 0,
|
|
1244
|
-
values: [0, 0, 0],
|
|
1245
|
-
colors: ["#9B6AFA", "#4f3582", "#D6D6D6"],
|
|
1246
|
-
tooltip: "{approvalRate.pix.approved}: 0 | \n{approvalRate.pix.pending}: 0 | \n{approvalRate.pix.expired}: 0"
|
|
1247
|
-
},
|
|
1248
|
-
{
|
|
1249
|
-
id: "dashboard-boleto-sales",
|
|
1250
|
-
label: "approvalRate.paymentMethods.boleto",
|
|
1251
|
-
percentage: 0,
|
|
1252
|
-
values: [0, 0, 0],
|
|
1253
|
-
colors: ["#9B6AFA", "#4f3582", "#D6D6D6"],
|
|
1254
|
-
tooltip: "{approvalRate.boleto.approved}: 0 | \n{approvalRate.boleto.pending}: 0 | \n{approvalRate.boleto.expired}: 0"
|
|
1255
|
-
}
|
|
1256
|
-
]
|
|
1257
|
-
},
|
|
1258
|
-
international: {
|
|
1259
|
-
id: "dashboard-credit_card-sales",
|
|
1260
|
-
label: "approvalRate.paymentMethods.credit_card",
|
|
1261
|
-
quantity: 0,
|
|
1262
|
-
percentage: 0,
|
|
1263
|
-
infos: [
|
|
1264
|
-
{
|
|
1265
|
-
id: "authorized",
|
|
1266
|
-
label: "approvalRate.credit_card.authorized",
|
|
1267
|
-
quantity: 0,
|
|
1268
|
-
percentage: 0
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
id: "refused_by_card_issuer",
|
|
1272
|
-
label: "approvalRate.credit_card.refused_by_card_issuer",
|
|
1273
|
-
quantity: 0,
|
|
1274
|
-
percentage: 0
|
|
1275
|
-
}
|
|
1276
|
-
],
|
|
1277
|
-
details: [
|
|
1278
|
-
{
|
|
1279
|
-
id: "approved",
|
|
1280
|
-
label: "approvalRate.credit_card.approved",
|
|
1281
|
-
quantity: 0,
|
|
1282
|
-
percentage: 0,
|
|
1283
|
-
tooltip: "approvalRate.creditCardHelper"
|
|
1284
|
-
},
|
|
1285
|
-
{
|
|
1286
|
-
id: "refused_by_antifraud",
|
|
1287
|
-
label: "approvalRate.credit_card.refused_by_antifraud",
|
|
1288
|
-
quantity: 0,
|
|
1289
|
-
percentage: 0
|
|
1290
|
-
}
|
|
1291
|
-
]
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
const approvalRateNationalFetcher = async (dateRange) => {
|
|
1295
|
-
try {
|
|
1296
|
-
const [creditCard, pix, billet] = await Promise.all([
|
|
1297
|
-
fetchData(
|
|
1298
|
-
NATIONAL_ROUTES.creditCard,
|
|
1299
|
-
dateRange,
|
|
1300
|
-
(response) => parseApprovalRateCreditCard("credit_card", response),
|
|
1301
|
-
DEFAULT_DATA$9.national.creditCard
|
|
1302
|
-
),
|
|
1303
|
-
fetchData(
|
|
1304
|
-
NATIONAL_ROUTES.pix,
|
|
1305
|
-
dateRange,
|
|
1306
|
-
(response) => parseApprovalRate("pix", response),
|
|
1307
|
-
DEFAULT_DATA$9.national.pix
|
|
1308
|
-
),
|
|
1309
|
-
fetchData(
|
|
1310
|
-
NATIONAL_ROUTES.billet,
|
|
1311
|
-
dateRange,
|
|
1312
|
-
(response) => parseApprovalRate("boleto", response),
|
|
1313
|
-
DEFAULT_DATA$9.national.billet
|
|
1314
|
-
)
|
|
1315
|
-
]);
|
|
1316
|
-
const charts = [creditCard, pix, billet].map(parseChart);
|
|
1317
|
-
return { creditCard, pix, billet, charts };
|
|
1318
|
-
} catch (error) {
|
|
1319
|
-
throw error;
|
|
1320
|
-
}
|
|
1321
|
-
};
|
|
1322
|
-
const approvalRateInternationalFetcher = async (dateRange) => {
|
|
1323
|
-
const creditCard = await fetchData(
|
|
1324
|
-
INTERNATIONAL_ROUTES.creditCard,
|
|
1325
|
-
dateRange,
|
|
1326
|
-
(response) => parseApprovalRateCreditCard("credit_card", response),
|
|
1327
|
-
DEFAULT_DATA$9.international
|
|
1328
|
-
);
|
|
1329
|
-
return { creditCard };
|
|
1330
|
-
};
|
|
1331
|
-
const calculatePercentage = (value, total) => {
|
|
1332
|
-
if (!total) return 0;
|
|
1333
|
-
return Number((value / total * 100).toFixed(1));
|
|
1334
|
-
};
|
|
1335
|
-
const makeTooltip = (item) => {
|
|
1336
|
-
let tooltip = "";
|
|
1337
|
-
for (const info of item.infos) {
|
|
1338
|
-
if (tooltip) tooltip += " | \n";
|
|
1339
|
-
tooltip += `{${info.label}}: ${info.quantity}`;
|
|
1340
|
-
}
|
|
1341
|
-
for (const detail of item.details) {
|
|
1342
|
-
if (tooltip) tooltip += " | \n";
|
|
1343
|
-
tooltip += `{${detail.label}}: ${detail.quantity}`;
|
|
1344
|
-
}
|
|
1345
|
-
return tooltip;
|
|
1346
|
-
};
|
|
1347
|
-
const parseChart = (item) => ({
|
|
1348
|
-
id: item.id,
|
|
1349
|
-
label: item.label,
|
|
1350
|
-
percentage: item.percentage,
|
|
1351
|
-
values: item.details.map((detail) => detail.quantity),
|
|
1352
|
-
colors: CHART_COLORS,
|
|
1353
|
-
tooltip: makeTooltip(item)
|
|
1354
|
-
});
|
|
1355
|
-
const parseApprovalRate = (type, response) => {
|
|
1356
|
-
const { approveds, expireds, pending } = response;
|
|
1357
|
-
const total = approveds + expireds + pending;
|
|
1358
|
-
return {
|
|
1359
|
-
id: `dashboard-${type}-sales`,
|
|
1360
|
-
label: `approvalRate.paymentMethods.${type}`,
|
|
1361
|
-
quantity: total,
|
|
1362
|
-
percentage: calculatePercentage(approveds, total),
|
|
1363
|
-
infos: [],
|
|
1364
|
-
details: [
|
|
1365
|
-
{
|
|
1366
|
-
id: "approved",
|
|
1367
|
-
label: `approvalRate.${type}.approved`,
|
|
1368
|
-
quantity: approveds,
|
|
1369
|
-
percentage: calculatePercentage(approveds, total)
|
|
1370
|
-
},
|
|
1371
|
-
{
|
|
1372
|
-
id: "pending",
|
|
1373
|
-
label: `approvalRate.${type}.pending`,
|
|
1374
|
-
quantity: pending,
|
|
1375
|
-
percentage: calculatePercentage(pending, total)
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
id: "expireds",
|
|
1379
|
-
label: `approvalRate.${type}.expired`,
|
|
1380
|
-
quantity: expireds,
|
|
1381
|
-
percentage: calculatePercentage(expireds, total)
|
|
1382
|
-
}
|
|
1383
|
-
]
|
|
1384
|
-
};
|
|
1385
|
-
};
|
|
1386
|
-
const parseApprovalRateCreditCard = (type, response) => {
|
|
1387
|
-
const { approveds, authorized, refused_by_antifraud, refused_by_card_issuer } = response;
|
|
1388
|
-
const detailsTotal = approveds + refused_by_antifraud;
|
|
1389
|
-
const infosTotal = authorized + refused_by_card_issuer;
|
|
1390
|
-
return {
|
|
1391
|
-
id: `dashboard-${type}-sales`,
|
|
1392
|
-
label: `approvalRate.paymentMethods.${type}`,
|
|
1393
|
-
quantity: detailsTotal,
|
|
1394
|
-
percentage: calculatePercentage(approveds, detailsTotal),
|
|
1395
|
-
infos: [
|
|
1396
|
-
{
|
|
1397
|
-
id: "authorized",
|
|
1398
|
-
label: `approvalRate.${type}.authorized`,
|
|
1399
|
-
quantity: authorized,
|
|
1400
|
-
percentage: calculatePercentage(authorized, infosTotal)
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
id: "refused_by_card_issuer",
|
|
1404
|
-
label: `approvalRate.${type}.refused_by_card_issuer`,
|
|
1405
|
-
quantity: refused_by_card_issuer,
|
|
1406
|
-
percentage: calculatePercentage(refused_by_card_issuer, infosTotal)
|
|
1407
|
-
}
|
|
1408
|
-
],
|
|
1409
|
-
details: [
|
|
1410
|
-
{
|
|
1411
|
-
id: "approved",
|
|
1412
|
-
label: `approvalRate.${type}.approved`,
|
|
1413
|
-
quantity: approveds,
|
|
1414
|
-
percentage: calculatePercentage(approveds, detailsTotal),
|
|
1415
|
-
tooltip: "approvalRate.creditCardHelper"
|
|
1416
|
-
},
|
|
1417
|
-
{
|
|
1418
|
-
id: "refused_by_antifraud",
|
|
1419
|
-
label: `approvalRate.${type}.refused_by_antifraud`,
|
|
1420
|
-
quantity: refused_by_antifraud,
|
|
1421
|
-
percentage: calculatePercentage(refused_by_antifraud, detailsTotal)
|
|
1422
|
-
}
|
|
1423
|
-
]
|
|
1424
|
-
};
|
|
1425
|
-
};
|
|
1426
|
-
const commonConfig$4 = {
|
|
1427
|
-
ignoreDateRange: false,
|
|
1428
|
-
size: { md: 3, lg: 2 },
|
|
1429
|
-
title: "card.approvalRate"
|
|
1430
|
-
};
|
|
1431
|
-
const approvalRateNationalConfig = {
|
|
1432
|
-
...commonConfig$4,
|
|
1433
|
-
id: "approval-rate-national",
|
|
1434
|
-
component: () => import("./DashboardApprovalRateNationalContent-CJvR-Qpd.js"),
|
|
1435
|
-
fetcher: approvalRateNationalFetcher,
|
|
1436
|
-
minHeight: 225
|
|
1437
|
-
};
|
|
1438
|
-
const approvalRateInternationalConfig = {
|
|
1439
|
-
...commonConfig$4,
|
|
1440
|
-
id: "approval-rate-international",
|
|
1441
|
-
component: () => import("./DashboardApprovalRateInternationalContent-WhOmuKPh.js"),
|
|
1442
|
-
fetcher: approvalRateInternationalFetcher,
|
|
1443
|
-
minHeight: 205
|
|
1444
|
-
};
|
|
1445
|
-
const DEFAULT_DATA$8 = {
|
|
1446
|
-
id: "sales-by-payment-type-national",
|
|
1447
|
-
items: [
|
|
1448
|
-
{
|
|
1449
|
-
value: "R$ 0,00",
|
|
1450
|
-
quantity: "0",
|
|
1451
|
-
name: "paymentMethods.creditCard",
|
|
1452
|
-
icon: "credit_card",
|
|
1453
|
-
id: "credit-card",
|
|
1454
|
-
isSvgIcon: false
|
|
1455
|
-
},
|
|
1456
|
-
{
|
|
1457
|
-
value: "R$ 0,00",
|
|
1458
|
-
quantity: "0",
|
|
1459
|
-
name: "paymentMethods.pix",
|
|
1460
|
-
icon: "pix_outline",
|
|
1461
|
-
id: "pix",
|
|
1462
|
-
isSvgIcon: false
|
|
1463
|
-
},
|
|
1464
|
-
{
|
|
1465
|
-
value: "R$ 0,00",
|
|
1466
|
-
quantity: "0",
|
|
1467
|
-
name: "paymentMethods.billet",
|
|
1468
|
-
icon: "boleto",
|
|
1469
|
-
id: "boleto",
|
|
1470
|
-
isSvgIcon: true
|
|
1471
|
-
}
|
|
1472
|
-
]
|
|
1473
|
-
};
|
|
1474
|
-
const ROUTE$3 = "/api/dashboard/total-sales-by-payment-type-collection";
|
|
1475
|
-
const salesPaymentTypeFetcher = async (dateRange) => await fetchData(ROUTE$3, dateRange, serialize$3, DEFAULT_DATA$8);
|
|
1476
|
-
const serialize$3 = (response) => {
|
|
1477
|
-
return {
|
|
1478
|
-
id: salesByPaymentTypeNationalConfig.id,
|
|
1479
|
-
items: [
|
|
1480
|
-
{
|
|
1481
|
-
value: formatFloatMoney(response.creditcard.amount || 0),
|
|
1482
|
-
quantity: String(response.creditcard.quantity || 0),
|
|
1483
|
-
name: "paymentMethods.creditCard",
|
|
1484
|
-
icon: "credit_card",
|
|
1485
|
-
id: "credit-card",
|
|
1486
|
-
isSvgIcon: false
|
|
1487
|
-
},
|
|
1488
|
-
{
|
|
1489
|
-
value: formatFloatMoney(response.pix.amount || 0),
|
|
1490
|
-
quantity: String(response.pix.quantity || 0),
|
|
1491
|
-
name: "paymentMethods.pix",
|
|
1492
|
-
icon: "pix_outline",
|
|
1493
|
-
id: "pix",
|
|
1494
|
-
isSvgIcon: false
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
value: formatFloatMoney(response.boleto.amount || 0),
|
|
1498
|
-
quantity: String(response.boleto.quantity || 0),
|
|
1499
|
-
name: "paymentMethods.billet",
|
|
1500
|
-
icon: "boleto",
|
|
1501
|
-
id: "boleto",
|
|
1502
|
-
isSvgIcon: true
|
|
1503
|
-
}
|
|
1504
|
-
]
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const salesByPaymentTypeNationalConfig = {
|
|
1508
|
-
id: "sales-by-payment-type-national",
|
|
1509
|
-
size: { md: 3, lg: 2 },
|
|
1510
|
-
component: () => import("./DashboardDetailsContent-CkWO8HWq.js"),
|
|
1511
|
-
title: "card.paymentMethods",
|
|
1512
|
-
fetcher: salesPaymentTypeFetcher,
|
|
1513
|
-
to: "/v2/client/integration/orders?status=aprovado&tab=1"
|
|
1514
|
-
};
|
|
1515
|
-
const DEFAULT_DATA$7 = {
|
|
1516
|
-
average_ticket: 0
|
|
1517
|
-
};
|
|
1518
|
-
const ROUTE$2 = "/api/dashboard/average-ticket";
|
|
1519
|
-
const CURRENCY$3 = "BRL";
|
|
1520
|
-
const averageTicketFetcher = async (dateRange) => {
|
|
1521
|
-
const { average_ticket } = await fetchData(
|
|
1522
|
-
ROUTE$2,
|
|
1523
|
-
dateRange,
|
|
1524
|
-
false,
|
|
1525
|
-
DEFAULT_DATA$7
|
|
1526
|
-
);
|
|
1527
|
-
const validAverageTicket = typeof average_ticket === "number" && !isNaN(average_ticket) ? average_ticket : 0;
|
|
1528
|
-
return {
|
|
1529
|
-
value: formatFloatMoney(validAverageTicket, CURRENCY$3)
|
|
1530
|
-
};
|
|
1531
|
-
};
|
|
1532
|
-
const DEFAULT_DATA$6 = {
|
|
1533
|
-
currency: "BRL",
|
|
1534
|
-
value: "R$ 0,00",
|
|
1535
|
-
id: "dashboard-sales",
|
|
1536
|
-
details: [
|
|
1537
|
-
{
|
|
1538
|
-
id: "amount-count",
|
|
1539
|
-
currency: "BRL",
|
|
1540
|
-
label: "totalSales.count",
|
|
1541
|
-
value: "0"
|
|
1542
|
-
},
|
|
1543
|
-
{
|
|
1544
|
-
id: "average-ticket",
|
|
1545
|
-
currency: "BRL",
|
|
1546
|
-
label: "card.averageTicket",
|
|
1547
|
-
value: "R$ 0,00"
|
|
1548
|
-
}
|
|
1549
|
-
]
|
|
1550
|
-
};
|
|
1551
|
-
const makeTotalSalesFetcher = (isInternational) => {
|
|
1552
|
-
return async (dateRange) => {
|
|
1553
|
-
const route = isInternational ? "/api/dashboard/international/total-sales" : "/api/dashboard/total-sales";
|
|
1554
|
-
const { value: average_ticket } = await averageTicketFetcher(dateRange);
|
|
1555
|
-
const parser = (response) => {
|
|
1556
|
-
const modifiedResponse = {
|
|
1557
|
-
...response,
|
|
1558
|
-
average_ticket
|
|
1559
|
-
};
|
|
1560
|
-
return serialize$2(modifiedResponse, isInternational);
|
|
1561
|
-
};
|
|
1562
|
-
const result = await fetchData(route, dateRange, parser, DEFAULT_DATA$6);
|
|
1563
|
-
return !isInternational ? { ...result, average_ticket } : result;
|
|
1564
|
-
};
|
|
1565
|
-
};
|
|
1566
|
-
const serialize$2 = (response, isInternational) => {
|
|
1567
|
-
const currency = isInternational ? "USD" : "BRL";
|
|
1568
|
-
const details = [
|
|
1569
|
-
{
|
|
1570
|
-
id: "amount-count",
|
|
1571
|
-
currency,
|
|
1572
|
-
label: "totalSales.count",
|
|
1573
|
-
value: String(response.orders_quantity || 0)
|
|
1574
|
-
}
|
|
1575
|
-
];
|
|
1576
|
-
if (!isInternational) {
|
|
1577
|
-
details.push({
|
|
1578
|
-
id: "average-ticket",
|
|
1579
|
-
currency,
|
|
1580
|
-
label: "card.averageTicket",
|
|
1581
|
-
value: response.average_ticket
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
return {
|
|
1585
|
-
currency,
|
|
1586
|
-
value: formatFloatMoney(response.amount || 0, currency),
|
|
1587
|
-
id: "dashboard-sales",
|
|
1588
|
-
details
|
|
1589
|
-
};
|
|
1590
|
-
};
|
|
1591
|
-
const totalNationalSalesFetcher = makeTotalSalesFetcher(false);
|
|
1592
|
-
const totalInternationalSalesFetcher = makeTotalSalesFetcher(true);
|
|
1593
|
-
const commonConfig$3 = {
|
|
1594
|
-
title: "card.salesAmount",
|
|
1595
|
-
component: () => import("./DashboardAmountDetailsContent-BMR0QRjc.js"),
|
|
1596
|
-
to: "/v2/client/integration/orders"
|
|
1597
|
-
};
|
|
1598
|
-
const totalSalesNationalConfig = {
|
|
1599
|
-
...commonConfig$3,
|
|
1600
|
-
id: "total-sales-national",
|
|
1601
|
-
size: { md: 3, lg: 2 },
|
|
1602
|
-
fetcher: totalNationalSalesFetcher
|
|
1603
|
-
};
|
|
1604
|
-
const totalSalesInternationalConfig = {
|
|
1605
|
-
...commonConfig$3,
|
|
1606
|
-
id: "total-sales-international",
|
|
1607
|
-
size: 3,
|
|
1608
|
-
fetcher: totalInternationalSalesFetcher
|
|
1609
|
-
};
|
|
1610
|
-
const DEFAULT_DATA$5 = {
|
|
1611
|
-
paid: {
|
|
1612
|
-
quantity: 0,
|
|
1613
|
-
total: 0
|
|
1614
|
-
},
|
|
1615
|
-
generated: {
|
|
1616
|
-
quantity: 0,
|
|
1617
|
-
total: 0
|
|
1618
|
-
}
|
|
1619
|
-
};
|
|
1620
|
-
const ROUTE$1 = "/api/dashboard/pix-sales";
|
|
1621
|
-
const CURRENCY$2 = "BRL";
|
|
1622
|
-
const conversionRatePixFetcher = async (dateRange) => {
|
|
1623
|
-
const { paid, generated } = await fetchData(
|
|
1624
|
-
ROUTE$1,
|
|
1625
|
-
dateRange,
|
|
1626
|
-
false,
|
|
1627
|
-
DEFAULT_DATA$5
|
|
1628
|
-
);
|
|
1629
|
-
return {
|
|
1630
|
-
currency: CURRENCY$2,
|
|
1631
|
-
value: formatFloatMoney(paid.total, CURRENCY$2),
|
|
1632
|
-
id: "dashboard-pix-sales",
|
|
1633
|
-
details: [
|
|
1634
|
-
{
|
|
1635
|
-
id: "generated-quantity",
|
|
1636
|
-
label: "pixSales.generated",
|
|
1637
|
-
value: String(generated.quantity)
|
|
1638
|
-
},
|
|
1639
|
-
{
|
|
1640
|
-
id: "paid-quantity",
|
|
1641
|
-
label: "pixSales.paid",
|
|
1642
|
-
value: String(paid.quantity)
|
|
1643
|
-
}
|
|
1644
|
-
]
|
|
1645
|
-
};
|
|
1646
|
-
};
|
|
1647
|
-
const pixSalesConfig = {
|
|
1648
|
-
id: "conversion-rate-pix",
|
|
1649
|
-
size: 2,
|
|
1650
|
-
component: () => import("./DashboardAmountDetailsContent-BMR0QRjc.js"),
|
|
1651
|
-
fetcher: conversionRatePixFetcher,
|
|
1652
|
-
title: "card.pixSales",
|
|
1653
|
-
to: "/v2/client/integration/orders?paymentType=pix"
|
|
1654
|
-
};
|
|
1655
|
-
const DEFAULT_DATA$4 = {
|
|
1656
|
-
id: "sales-recovery-chargeback",
|
|
1657
|
-
value: "R$ 0,00",
|
|
1658
|
-
description: "salesRecovery.chargeback",
|
|
1659
|
-
details: []
|
|
1660
|
-
};
|
|
1661
|
-
const salesRecoveryChargebackFetcher = async (dateRange) => {
|
|
1662
|
-
const route = "/api/dashboard/total-sales-appcall";
|
|
1663
|
-
return await fetchData(route, dateRange, serialize$1, DEFAULT_DATA$4);
|
|
1664
|
-
};
|
|
1665
|
-
const serialize$1 = (response) => {
|
|
1666
|
-
return {
|
|
1667
|
-
id: salesRecoveryChargebackNationalConfig.id,
|
|
1668
|
-
value: formatFloatMoney(response.chargeback.total || 0),
|
|
1669
|
-
description: "salesRecovery.chargeback",
|
|
1670
|
-
details: []
|
|
1671
|
-
};
|
|
1672
|
-
};
|
|
1673
|
-
const salesRecoveryChargebackNationalConfig = {
|
|
1674
|
-
id: "sales-recovery-chargeback",
|
|
1675
|
-
size: 2,
|
|
1676
|
-
component: () => import("./DashboardAmountDetailsContent-BMR0QRjc.js"),
|
|
1677
|
-
title: "card.salesRecovery",
|
|
1678
|
-
fetcher: salesRecoveryChargebackFetcher,
|
|
1679
|
-
to: "/v2/sales/orders?origin=appmarketing&status=aprovado",
|
|
1680
|
-
hasPermissionSalesRecovery: false
|
|
1681
|
-
};
|
|
1682
|
-
const DEFAULT_DATA$3 = {
|
|
1683
|
-
paid: {
|
|
1684
|
-
amount: 0,
|
|
1685
|
-
quantity: 0
|
|
1686
|
-
},
|
|
1687
|
-
generated: {
|
|
1688
|
-
amount: 0,
|
|
1689
|
-
quantity: 0
|
|
1690
|
-
}
|
|
1691
|
-
};
|
|
1692
|
-
const ROUTE = "/api/dashboard/total-boleto-sales";
|
|
1693
|
-
const CURRENCY$1 = "BRL";
|
|
1694
|
-
const billetSalesFetcher = async (dateRange) => {
|
|
1695
|
-
const { paid, generated } = await fetchData(
|
|
1696
|
-
ROUTE,
|
|
1697
|
-
dateRange,
|
|
1698
|
-
false,
|
|
1699
|
-
DEFAULT_DATA$3
|
|
1700
|
-
);
|
|
1701
|
-
return {
|
|
1702
|
-
currency: CURRENCY$1,
|
|
1703
|
-
value: formatFloatMoney(paid.amount, CURRENCY$1),
|
|
1704
|
-
id: "dashboard-pix-sales",
|
|
1705
|
-
details: [
|
|
1706
|
-
{
|
|
1707
|
-
id: "generated-quantity",
|
|
1708
|
-
label: "pixSales.generated",
|
|
1709
|
-
value: String(generated.quantity)
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
id: "paid-quantity",
|
|
1713
|
-
label: "pixSales.paid",
|
|
1714
|
-
value: String(paid.quantity)
|
|
1715
|
-
}
|
|
1716
|
-
]
|
|
1717
|
-
};
|
|
1718
|
-
};
|
|
1719
|
-
const billetSalesConfig = {
|
|
1720
|
-
id: "conversion-rate-billet",
|
|
1721
|
-
size: 2,
|
|
1722
|
-
component: () => import("./DashboardAmountDetailsContent-BMR0QRjc.js"),
|
|
1723
|
-
fetcher: billetSalesFetcher,
|
|
1724
|
-
title: "card.totalBoletoSales",
|
|
1725
|
-
to: "/v2/client/integration/orders?paymentType=boleto"
|
|
1726
|
-
};
|
|
1727
|
-
const CURRENCY = "USD";
|
|
1728
|
-
const EMPTY_ITEM = {
|
|
1729
|
-
value: formatFloatMoney(0, CURRENCY),
|
|
1730
|
-
icon: "",
|
|
1731
|
-
id: "country-empty",
|
|
1732
|
-
name: "bestSellingCountries.noSales",
|
|
1733
|
-
quantity: "",
|
|
1734
|
-
isSvgIcon: false
|
|
1735
|
-
};
|
|
1736
|
-
const mostSoldCountriesFetcher = async (dateRange) => {
|
|
1737
|
-
const { id } = mostSoldCountriesConfig;
|
|
1738
|
-
const route = "/api/dashboard/international/most-sold-countries";
|
|
1739
|
-
const { consolidated = [] } = await dashboardService.getCardDataByRange(route, dateRange);
|
|
1740
|
-
const hasData = consolidated.length > 0;
|
|
1741
|
-
const items = hasData ? consolidated.map(({ country, country_total }, index) => ({
|
|
1742
|
-
id: `country-${country}`,
|
|
1743
|
-
value: formatFloatMoney(country_total, CURRENCY),
|
|
1744
|
-
icon: `filter_${index + 1}`,
|
|
1745
|
-
name: country,
|
|
1746
|
-
quantity: "",
|
|
1747
|
-
isSvgIcon: false
|
|
1748
|
-
})) : [EMPTY_ITEM];
|
|
1749
|
-
const showAmount = items.length <= 1;
|
|
1750
|
-
const amountProps = showAmount ? {
|
|
1751
|
-
id,
|
|
1752
|
-
value: items[0].value,
|
|
1753
|
-
description: items[0].name,
|
|
1754
|
-
details: []
|
|
1755
|
-
} : {
|
|
1756
|
-
id,
|
|
1757
|
-
value: items[0].value,
|
|
1758
|
-
description: items[0].name,
|
|
1759
|
-
details: items.map((item) => ({
|
|
1760
|
-
id: item.id,
|
|
1761
|
-
label: item.name,
|
|
1762
|
-
value: item.value
|
|
1763
|
-
}))
|
|
1764
|
-
};
|
|
1765
|
-
const title = items.length > 1 ? "card.bestSellingCountries" : "card.bestSellingCountry";
|
|
1766
|
-
return {
|
|
1767
|
-
id,
|
|
1768
|
-
title,
|
|
1769
|
-
items,
|
|
1770
|
-
showAmount,
|
|
1771
|
-
amountProps
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
const mostSoldCountriesConfig = {
|
|
1775
|
-
id: "most-sold-countries",
|
|
1776
|
-
size: { md: 3, lg: 2 },
|
|
1777
|
-
component: () => import("./MostSoldCountries-B9CU30mN.js"),
|
|
1778
|
-
fetcher: mostSoldCountriesFetcher
|
|
1779
|
-
};
|
|
1780
|
-
const totalSalesRecoveryFetcher = async (dateRange) => {
|
|
1781
|
-
const route = `/api/dashboard/get-total-sales-recovery/${dateRange.start}/${dateRange.end}`;
|
|
1782
|
-
const { data: data2, message } = await dashboardService.getCardDataByRange(route, dateRange);
|
|
1783
|
-
const isActive = message == null ? void 0 : message.includes("active");
|
|
1784
|
-
const getChartType = (type) => getChartValueByType(type, data2.charts);
|
|
1785
|
-
return {
|
|
1786
|
-
isActive,
|
|
1787
|
-
dateRange,
|
|
1788
|
-
value: formatFloatMoney(data2.value_total),
|
|
1789
|
-
abandonedCart: getChartType("abandoned_cart"),
|
|
1790
|
-
recoveryBankIssuer: getChartType("recovery_bank_issuer"),
|
|
1791
|
-
recoveryFunnel: getChartType("recovery_funnel"),
|
|
1792
|
-
recoveryPix: getChartType("recovery_pix"),
|
|
1793
|
-
recoveryTotal: {
|
|
1794
|
-
id: "recovered_sales",
|
|
1795
|
-
label: "salesRecovery.slide.recovered_sales",
|
|
1796
|
-
value: data2.count_orders_recoveries.toString(),
|
|
1797
|
-
count: data2.count_orders_recoveries,
|
|
1798
|
-
percentage: data2.percentage_recovery
|
|
1799
|
-
}
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const getChartValueByType = (type, charts) => {
|
|
1803
|
-
const chart = charts.find((chart2) => chart2.type === type);
|
|
1804
|
-
return {
|
|
1805
|
-
id: type,
|
|
1806
|
-
label: `salesRecovery.slide.${type}`,
|
|
1807
|
-
value: formatFloatMoney((chart == null ? void 0 : chart.amount) || 0),
|
|
1808
|
-
count: (chart == null ? void 0 : chart.count) || 0,
|
|
1809
|
-
percentage: (chart == null ? void 0 : chart.approvalRate) || 0
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
const isActiveSalesRecoveryFetcher = async (dateRange) => {
|
|
1813
|
-
const route = "/api/dashboard/is-active-sales-recovery";
|
|
1814
|
-
const { data: isActive } = await dashboardService.getCardDataByRange(route, dateRange);
|
|
1815
|
-
return { isActive };
|
|
1816
|
-
};
|
|
1817
|
-
const salesRecoveryFetcher = async (dateRange) => {
|
|
1818
|
-
const [totalSalesRecovery, { isActive }] = await Promise.all([
|
|
1819
|
-
totalSalesRecoveryFetcher(dateRange),
|
|
1820
|
-
isActiveSalesRecoveryFetcher(dateRange)
|
|
1821
|
-
]);
|
|
1822
|
-
return { ...totalSalesRecovery, isActive };
|
|
1823
|
-
};
|
|
1824
|
-
const salesRecoveryNationalConfig = {
|
|
1825
|
-
ignoreDateRange: false,
|
|
1826
|
-
component: () => import("./SalesRecoveryIA-Cz1YvQBg.js"),
|
|
1827
|
-
id: "sales-recovery-national",
|
|
1828
|
-
size: { md: 3, lg: 2 },
|
|
1829
|
-
title: "card.salesRecoveryWithIA",
|
|
1830
|
-
fetcher: salesRecoveryFetcher,
|
|
1831
|
-
hasPermissionSalesRecovery: true
|
|
1832
|
-
};
|
|
1833
|
-
const DEFAULT_DATA$2 = {
|
|
1834
|
-
data: {
|
|
1835
|
-
count_chargeback: 0,
|
|
1836
|
-
valor_chargeback_vencido: 0,
|
|
1837
|
-
valor_chargeback: 0,
|
|
1838
|
-
count_chargeback_vencido: 0,
|
|
1839
|
-
porcentagem_cbk: 0,
|
|
1840
|
-
porcentagem_recuperado: "0",
|
|
1841
|
-
user_id: 0
|
|
1842
|
-
}
|
|
1843
|
-
};
|
|
1844
|
-
const secondDataType = false;
|
|
1845
|
-
const isChargebackService = true;
|
|
1846
|
-
const getUserId = () => {
|
|
1847
|
-
const IS_QA_ORIGIN = window.location.origin.includes("qa");
|
|
1848
|
-
const QA_ID = 597;
|
|
1849
|
-
if (IS_QA_ORIGIN) return QA_ID;
|
|
1850
|
-
return userService.data.user.id;
|
|
1851
|
-
};
|
|
1852
|
-
const isChargebackNotFoundError = (error) => {
|
|
1853
|
-
var _a;
|
|
1854
|
-
return ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.status) === 404;
|
|
1855
|
-
};
|
|
1856
|
-
const handleChargebackNotFoundError = () => ({
|
|
1857
|
-
...DEFAULT_DATA$2,
|
|
1858
|
-
data: { ...DEFAULT_DATA$2.data, user_id: getUserId() }
|
|
1859
|
-
});
|
|
1860
|
-
const getChargebackRateFetcher = async (dateRange) => {
|
|
1861
|
-
try {
|
|
1862
|
-
const route = `/card_dashboard/${getUserId()}`;
|
|
1863
|
-
const { data: data2 } = await dashboardService.getCardDataByRange(
|
|
1864
|
-
route,
|
|
1865
|
-
dateRange,
|
|
1866
|
-
secondDataType,
|
|
1867
|
-
isChargebackService
|
|
1868
|
-
);
|
|
1869
|
-
return data2;
|
|
1870
|
-
} catch (error) {
|
|
1871
|
-
if (isChargebackNotFoundError(error)) {
|
|
1872
|
-
const { data: data2 } = handleChargebackNotFoundError();
|
|
1873
|
-
return data2;
|
|
1874
|
-
}
|
|
1875
|
-
throw error;
|
|
1876
|
-
}
|
|
1877
|
-
};
|
|
1878
|
-
const ChargebackRateNationalConfig = {
|
|
1879
|
-
id: "chargeback-config-national",
|
|
1880
|
-
size: 2,
|
|
1881
|
-
title: "card.chargeback",
|
|
1882
|
-
component: () => import("./ChargebackRate-CO5qmwIZ.js"),
|
|
1883
|
-
fetcher: getChargebackRateFetcher,
|
|
1884
|
-
ignoreDateRange: false
|
|
1885
|
-
};
|
|
1886
|
-
const DEFAULT_DATA$1 = [];
|
|
1887
|
-
const makeTopSellingProductsFetcher = (isInternational = false) => {
|
|
1888
|
-
return async (dateRange) => {
|
|
1889
|
-
const route = isInternational ? "/api/dashboard/international/top-selling-products" : "/api/dashboard/top-selling-products";
|
|
1890
|
-
const response = await fetchData(route, dateRange, false, DEFAULT_DATA$1);
|
|
1891
|
-
const parsedItems = parseItems(response);
|
|
1892
|
-
return {
|
|
1893
|
-
id: isInternational ? topSellingProductsInternationalConfig.id : topSellingProductsNationalConfig.id,
|
|
1894
|
-
items: parsedItems
|
|
1895
|
-
};
|
|
1896
|
-
};
|
|
1897
|
-
};
|
|
1898
|
-
const topSellingProductsNationalFetcher = makeTopSellingProductsFetcher();
|
|
1899
|
-
const topSellingProductsInternationalFetcher = makeTopSellingProductsFetcher(true);
|
|
1900
|
-
const parseItems = ({ consolidated = [] }) => {
|
|
1901
|
-
return consolidated.reduce((acc, { name, quantity }, index) => {
|
|
1902
|
-
if (quantity <= 0) return acc;
|
|
1903
|
-
const id = `top-selling-products-${index + 1}`;
|
|
1904
|
-
const item = { id, label: name, value: quantity };
|
|
1905
|
-
return [...acc, item];
|
|
1906
|
-
}, []);
|
|
1907
|
-
};
|
|
1908
|
-
const commonConfig$2 = {
|
|
1909
|
-
align: "center",
|
|
1910
|
-
title: "card.topSellingProducts",
|
|
1911
|
-
size: 6,
|
|
1912
|
-
component: () => import("./TopSellingProductsContent-Dz4zDLCH.js")
|
|
1913
|
-
};
|
|
1914
|
-
const topSellingProductsNationalConfig = {
|
|
1915
|
-
...commonConfig$2,
|
|
1916
|
-
id: "top-selling-products-national",
|
|
1917
|
-
fetcher: topSellingProductsNationalFetcher
|
|
1918
|
-
};
|
|
1919
|
-
const topSellingProductsInternationalConfig = {
|
|
1920
|
-
...commonConfig$2,
|
|
1921
|
-
id: "top-selling-products-international",
|
|
1922
|
-
fetcher: topSellingProductsInternationalFetcher
|
|
1923
|
-
};
|
|
1924
|
-
const DEFAULT_DATA = {
|
|
1925
|
-
refundOrders: {
|
|
1926
|
-
data: []
|
|
1927
|
-
},
|
|
1928
|
-
refundAntifraude: {
|
|
1929
|
-
quantity: 0,
|
|
1930
|
-
amount: 0
|
|
1931
|
-
}
|
|
1932
|
-
};
|
|
1933
|
-
const getRefundOrders = async (dateRange, isInternational) => {
|
|
1934
|
-
const routeRefundOrders = isInternational ? "/api/dashboard/international/refunded-orders" : "/api/dashboard/refunded-orders";
|
|
1935
|
-
const secondDataType2 = !isInternational;
|
|
1936
|
-
return await fetchData(
|
|
1937
|
-
routeRefundOrders,
|
|
1938
|
-
dateRange,
|
|
1939
|
-
false,
|
|
1940
|
-
DEFAULT_DATA.refundOrders,
|
|
1941
|
-
secondDataType2
|
|
1942
|
-
);
|
|
1943
|
-
};
|
|
1944
|
-
const getRefundAntifraude = async (dateRange, isInternational) => {
|
|
1945
|
-
const route = isInternational ? "/api/dashboard/international/refunded-orders-antifraude" : "/api/orders/refunded-orders-antifraude";
|
|
1946
|
-
return await fetchData(
|
|
1947
|
-
route,
|
|
1948
|
-
dateRange,
|
|
1949
|
-
false,
|
|
1950
|
-
DEFAULT_DATA.refundAntifraude
|
|
1951
|
-
);
|
|
1952
|
-
};
|
|
1953
|
-
const makeRefundFetcher = (isInternational) => {
|
|
1954
|
-
return async (dateRange) => {
|
|
1955
|
-
const [{ data: refundOrdersData }, refundAntifraude] = await Promise.all([
|
|
1956
|
-
getRefundOrders(dateRange, isInternational),
|
|
1957
|
-
getRefundAntifraude(dateRange, isInternational)
|
|
1958
|
-
]);
|
|
1959
|
-
const refundOrders = Array.isArray(refundOrdersData) ? {
|
|
1960
|
-
refundeds: { orders_quantity: 0, value: 0 },
|
|
1961
|
-
chargebacks: { orders_quantity: 0, value: 0 }
|
|
1962
|
-
} : refundOrdersData;
|
|
1963
|
-
const refundData = {
|
|
1964
|
-
...refundOrders,
|
|
1965
|
-
antifraude: refundAntifraude
|
|
1966
|
-
};
|
|
1967
|
-
return serialize(refundData, isInternational);
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
const serialize = (response, isInternational) => {
|
|
1971
|
-
const currency = isInternational ? "USD" : "BRL";
|
|
1972
|
-
return {
|
|
1973
|
-
id: isInternational ? refundInternacionalConfig.id : refundNationalConfig.id,
|
|
1974
|
-
items: [
|
|
1975
|
-
{
|
|
1976
|
-
value: formatFloatMoney(response.refundeds.value, currency),
|
|
1977
|
-
quantity: String(response.refundeds.orders_quantity || 0),
|
|
1978
|
-
name: "refund.refund",
|
|
1979
|
-
icon: "sync_alt",
|
|
1980
|
-
id: "refund",
|
|
1981
|
-
isSvgIcon: false
|
|
1982
|
-
},
|
|
1983
|
-
{
|
|
1984
|
-
value: formatFloatMoney(response.chargebacks.value, currency),
|
|
1985
|
-
quantity: String(response.chargebacks.orders_quantity || 0),
|
|
1986
|
-
name: "refund.chargeback",
|
|
1987
|
-
icon: "sync_disabled",
|
|
1988
|
-
id: "chargeback",
|
|
1989
|
-
isSvgIcon: false
|
|
1990
|
-
},
|
|
1991
|
-
{
|
|
1992
|
-
value: "",
|
|
1993
|
-
quantity: String(response.antifraude.quantity || 0),
|
|
1994
|
-
name: "refund.antifraud",
|
|
1995
|
-
icon: "manage_search",
|
|
1996
|
-
id: "antifraud",
|
|
1997
|
-
isSvgIcon: false
|
|
1998
|
-
}
|
|
1999
|
-
]
|
|
2000
|
-
};
|
|
2001
|
-
};
|
|
2002
|
-
const refundNationalFetcher = makeRefundFetcher(false);
|
|
2003
|
-
const refundInternationalFetcher = makeRefundFetcher(true);
|
|
2004
|
-
const commonConfig$1 = {
|
|
2005
|
-
title: "card.refunds",
|
|
2006
|
-
component: () => import("./DashboardDetailsContent-CkWO8HWq.js"),
|
|
2007
|
-
to: "/v2/client/integration/orders?status=estornado,chargeback,recusado_por_risco&dataType=refunded_at&tab=3",
|
|
2008
|
-
size: 2
|
|
2009
|
-
};
|
|
2010
|
-
const refundNationalConfig = {
|
|
2011
|
-
...commonConfig$1,
|
|
2012
|
-
id: "refund-national",
|
|
2013
|
-
fetcher: refundNationalFetcher,
|
|
2014
|
-
size: { md: 3, lg: 2 }
|
|
2015
|
-
};
|
|
2016
|
-
const refundInternacionalConfig = {
|
|
2017
|
-
...commonConfig$1,
|
|
2018
|
-
id: "refund-international",
|
|
2019
|
-
fetcher: refundInternationalFetcher,
|
|
2020
|
-
size: { md: 6, lg: 2 }
|
|
2021
|
-
};
|
|
2022
|
-
const useDefaultData = (dateRange) => {
|
|
2023
|
-
const returnObject = { consolidated: {} };
|
|
2024
|
-
const diff = getTotalDays(dateRange);
|
|
2025
|
-
const endDate = new Date(dateRange.end);
|
|
2026
|
-
for (let i = 1; i <= diff; i++) {
|
|
2027
|
-
const currentDate = new Date(endDate);
|
|
2028
|
-
currentDate.setDate(endDate.getDate() - i);
|
|
2029
|
-
const dateString = currentDate.toISOString().split("T")[0];
|
|
2030
|
-
returnObject.consolidated[dateString] = {
|
|
2031
|
-
sales: {
|
|
2032
|
-
quantity: 0,
|
|
2033
|
-
value: 0
|
|
2034
|
-
}
|
|
2035
|
-
};
|
|
2036
|
-
}
|
|
2037
|
-
return returnObject;
|
|
2038
|
-
};
|
|
2039
|
-
const makeOrdersChartDataFetcher = (isInternational = false) => {
|
|
2040
|
-
return async (dateRange) => {
|
|
2041
|
-
const route = isInternational ? "/api/dashboard/international/orders-chart-data" : "/api/dashboard/orders-chart-data";
|
|
2042
|
-
const fixedDateRange = fixDateRange(dateRange);
|
|
2043
|
-
const response = await fetchData(route, fixedDateRange, false, useDefaultData(dateRange));
|
|
2044
|
-
const currency = isInternational ? "USD" : "BRL";
|
|
2045
|
-
const items = serializeItems(response);
|
|
2046
|
-
const title = getTitle(items, dateRange);
|
|
2047
|
-
const id = isInternational ? ordersChartDataInternationalConfig.id : ordersChartDataNationalConfig.id;
|
|
2048
|
-
return { id, items, title, currency };
|
|
2049
|
-
};
|
|
2050
|
-
};
|
|
2051
|
-
const ordersChartDataNationalFetcher = makeOrdersChartDataFetcher();
|
|
2052
|
-
const ordersChartDataInternationalFetcher = makeOrdersChartDataFetcher(true);
|
|
2053
|
-
const serializeItems = (response) => {
|
|
2054
|
-
const itemsArray = Object.entries(response.consolidated);
|
|
2055
|
-
const itemsOrderedByDate = itemsArray.sort(([dateA], [dateB]) => orderByDate(dateA, dateB));
|
|
2056
|
-
return itemsOrderedByDate.map(([date, { sales }]) => ({
|
|
2057
|
-
date: formatToDateBR(date),
|
|
2058
|
-
amount: sales.value
|
|
2059
|
-
}));
|
|
2060
|
-
};
|
|
2061
|
-
const getTitle = (items, dateRange) => {
|
|
2062
|
-
if (isTodayEnd(dateRange)) return `Últimos ${items.length} dias`;
|
|
2063
|
-
if (items.length === 1) return formatToDateBR(dateRange.start);
|
|
2064
|
-
return `De ${formatToDateBR(dateRange.start)} a ${formatToDateBR(dateRange.end)} (${items.length} dias)`;
|
|
2065
|
-
};
|
|
2066
|
-
const SEVEN_DAYS = 7;
|
|
2067
|
-
const FOURTEEN_DAYS = 14;
|
|
2068
|
-
const THIRTY_DAYS = 30;
|
|
2069
|
-
const SIXTY_DAYS = 60;
|
|
2070
|
-
const isTodayEnd = (dateRange) => isToday(`${dateRange.end}T03:00:00.000Z`);
|
|
2071
|
-
const fixDateRange = (dateRange) => {
|
|
2072
|
-
const startDate = `${dateRange.start}T03:00:00.000Z`;
|
|
2073
|
-
const endDate = `${dateRange.end}T03:00:00.000Z`;
|
|
2074
|
-
const isYesterdayRange = isYesterday(startDate) && isYesterday(endDate);
|
|
2075
|
-
if (!isYesterdayRange && !isToday(endDate)) return dateRange;
|
|
2076
|
-
const totalDays = isYesterdayRange ? SEVEN_DAYS : getTotalDays(dateRange);
|
|
2077
|
-
const today = getTodayDate();
|
|
2078
|
-
const end = formatDateWithTimezone(today);
|
|
2079
|
-
const offset = totalDays - 1;
|
|
2080
|
-
const start = getOffsetDate(-offset);
|
|
2081
|
-
return { start, end };
|
|
2082
|
-
};
|
|
2083
|
-
const getTotalDays = (dateRange) => {
|
|
2084
|
-
const diff = diffDaysBetweenDates(dateRange.start, dateRange.end) + 1;
|
|
2085
|
-
if (diff < FOURTEEN_DAYS) return SEVEN_DAYS;
|
|
2086
|
-
if (diff < THIRTY_DAYS) return FOURTEEN_DAYS;
|
|
2087
|
-
if (diff < SIXTY_DAYS) return THIRTY_DAYS;
|
|
2088
|
-
return SIXTY_DAYS;
|
|
2089
|
-
};
|
|
2090
|
-
const commonConfig = {
|
|
2091
|
-
title: "card.revenueChart",
|
|
2092
|
-
size: 6,
|
|
2093
|
-
component: () => import("./OrdersChartDataContent-BIcrUTbx.js"),
|
|
2094
|
-
minHeight: 350
|
|
2095
|
-
};
|
|
2096
|
-
const internationalConfig = {
|
|
2097
|
-
title: "card.revenueChart",
|
|
2098
|
-
size: 6,
|
|
2099
|
-
component: () => import("./OrdersChartDataContent-BIcrUTbx.js"),
|
|
2100
|
-
minHeight: 350
|
|
2101
|
-
};
|
|
2102
|
-
const ordersChartDataNationalConfig = {
|
|
2103
|
-
...commonConfig,
|
|
2104
|
-
id: "orders-chart-data-national",
|
|
2105
|
-
fetcher: ordersChartDataNationalFetcher
|
|
2106
|
-
};
|
|
2107
|
-
const ordersChartDataInternationalConfig = {
|
|
2108
|
-
...internationalConfig,
|
|
2109
|
-
id: "orders-chart-data-international",
|
|
2110
|
-
fetcher: ordersChartDataInternationalFetcher
|
|
2111
|
-
};
|
|
2112
|
-
const producerTeamConfig = {
|
|
2113
|
-
nationalCards: [
|
|
2114
|
-
salesByPaymentTypeNationalConfig,
|
|
2115
|
-
totalSalesNationalConfig,
|
|
2116
|
-
approvalRateNationalConfig,
|
|
2117
|
-
salesRecoveryChargebackNationalConfig,
|
|
2118
|
-
billetSalesConfig,
|
|
2119
|
-
pixSalesConfig,
|
|
2120
|
-
topSellingProductsNationalConfig,
|
|
2121
|
-
ordersChartDataNationalConfig
|
|
2122
|
-
],
|
|
2123
|
-
internationalCards: [
|
|
2124
|
-
cashoutInternationalConfig,
|
|
2125
|
-
totalSalesInternationalConfig,
|
|
2126
|
-
mostSoldCountriesConfig,
|
|
2127
|
-
approvalRateInternationalConfig,
|
|
2128
|
-
refundInternacionalConfig,
|
|
2129
|
-
ordersChartDataInternationalConfig,
|
|
2130
|
-
topSellingProductsInternationalConfig
|
|
2131
|
-
]
|
|
2132
|
-
};
|
|
2133
|
-
const defaultConfig = {
|
|
2134
|
-
nationalCards: [
|
|
2135
|
-
cashoutNationalConfig,
|
|
2136
|
-
salesByPaymentTypeNationalConfig,
|
|
2137
|
-
refundNationalConfig,
|
|
2138
|
-
totalSalesNationalConfig,
|
|
2139
|
-
approvalRateNationalConfig,
|
|
2140
|
-
salesRecoveryChargebackNationalConfig,
|
|
2141
|
-
salesRecoveryNationalConfig,
|
|
2142
|
-
ordersChartDataNationalConfig,
|
|
2143
|
-
ChargebackRateNationalConfig,
|
|
2144
|
-
pixSalesConfig,
|
|
2145
|
-
billetSalesConfig,
|
|
2146
|
-
topSellingProductsNationalConfig
|
|
2147
|
-
],
|
|
2148
|
-
internationalCards: [
|
|
2149
|
-
cashoutInternationalConfig,
|
|
2150
|
-
totalSalesInternationalConfig,
|
|
2151
|
-
mostSoldCountriesConfig,
|
|
2152
|
-
approvalRateInternationalConfig,
|
|
2153
|
-
refundInternacionalConfig,
|
|
2154
|
-
ordersChartDataInternationalConfig,
|
|
2155
|
-
topSellingProductsInternationalConfig
|
|
2156
|
-
]
|
|
2157
|
-
};
|
|
2158
|
-
const dashboardConfig = {
|
|
2159
|
-
profiles: {
|
|
2160
|
-
isProducerTeam: producerTeamConfig,
|
|
2161
|
-
default: defaultConfig
|
|
2162
|
-
}
|
|
2163
|
-
};
|
|
2164
|
-
const showSurvey = function() {
|
|
2165
|
-
ApiService.get(`/users/show-nps-survey`).then(({ data: data2 }) => {
|
|
2166
|
-
this.showModal = data2.result.show_nps_survey;
|
|
2167
|
-
}).catch((error) => {
|
|
2168
|
-
console.log(error);
|
|
2169
|
-
});
|
|
2170
|
-
};
|
|
2171
|
-
const stopToShowNpsSurvey = function() {
|
|
2172
|
-
ApiService.post("/users/stop-show-nps-survey", { showNpsSurvey: false }).catch((error) => {
|
|
2173
|
-
console.log(error);
|
|
2174
|
-
});
|
|
2175
|
-
};
|
|
2176
|
-
function getSurvey() {
|
|
2177
|
-
ApiService.get(`/users/show-survey`).then(({ data: data2 }) => {
|
|
2178
|
-
this.appTrackObj.key = data2.result.survey_key;
|
|
2179
|
-
if (data2.result.survey_key) {
|
|
2180
|
-
this.showModal = true;
|
|
2181
|
-
}
|
|
2182
|
-
}).catch((error) => {
|
|
2183
|
-
console.log(error);
|
|
2184
|
-
});
|
|
2185
|
-
}
|
|
2186
|
-
function deactivateSurvey() {
|
|
2187
|
-
ApiService.post("/users/stop-show-survey", {
|
|
2188
|
-
survey_key: this.appTrackObj.key
|
|
2189
|
-
}).catch((error) => {
|
|
2190
|
-
console.log(error);
|
|
2191
|
-
});
|
|
2192
|
-
}
|
|
2193
|
-
function checkPermissionSalesRecovery() {
|
|
2194
|
-
return ApiService.get("/api/dashboard/check-permission-sales-recovery").then(({ data: data2 }) => {
|
|
2195
|
-
return data2.data;
|
|
2196
|
-
}).catch(() => {
|
|
2197
|
-
return false;
|
|
2198
|
-
});
|
|
2199
|
-
}
|
|
2200
|
-
const AppTrackService = {
|
|
2201
|
-
showSurvey,
|
|
2202
|
-
stopToShowNpsSurvey,
|
|
2203
|
-
getSurvey,
|
|
2204
|
-
deactivateSurvey,
|
|
2205
|
-
checkPermissionSalesRecovery
|
|
2206
|
-
};
|
|
2207
|
-
const __default__$g = { name: "AppTrack" };
|
|
2208
|
-
const _sfc_main$q = /* @__PURE__ */ Object.assign(__default__$g, {
|
|
2209
|
-
setup(__props) {
|
|
2210
|
-
const showModal = ref(false);
|
|
2211
|
-
const componentStatus = ref("start-survey");
|
|
2212
|
-
const scriptInsert = document.createElement("script");
|
|
2213
|
-
const getAppTrackData = () => {
|
|
2214
|
-
const { user } = userService.data;
|
|
2215
|
-
customer = {
|
|
2216
|
-
name: user.name || "",
|
|
2217
|
-
email: user.email || "",
|
|
2218
|
-
phone: user.phone || "",
|
|
2219
|
-
user_id: user.id.toString() || ""
|
|
2220
|
-
};
|
|
2221
|
-
return {
|
|
2222
|
-
key: "",
|
|
2223
|
-
appendTo: "nps_survey",
|
|
2224
|
-
customer,
|
|
2225
|
-
onCreate: () => {
|
|
2226
|
-
TrackWidget.showWidget(showModal.value);
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
|
-
};
|
|
2230
|
-
const stopToShowNpsSurvey2 = AppTrackService.deactivateSurvey;
|
|
2231
|
-
const elementScript = () => {
|
|
2232
|
-
scriptInsert.id = "trackwidget-js";
|
|
2233
|
-
scriptInsert.src = "https://app.track.co/widget.min.js";
|
|
2234
|
-
scriptInsert.type = "text/javascript";
|
|
2235
|
-
scriptInsert.async = true;
|
|
2236
|
-
};
|
|
2237
|
-
const insertScript = () => {
|
|
2238
|
-
const objAppTrack = getAppTrackData();
|
|
2239
|
-
const htmlElement = document.getElementsByTagName("script")[0];
|
|
2240
|
-
if (document.getElementById("trackwidget-js")) {
|
|
2241
|
-
return;
|
|
2242
|
-
}
|
|
2243
|
-
elementScript();
|
|
2244
|
-
scriptInsert.onload = scriptInsert.onreadystatechange = function() {
|
|
2245
|
-
const { readyState } = this;
|
|
2246
|
-
if (readyState && readyState !== "complete" && readyStates !== "loaded") {
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
|
-
try {
|
|
2250
|
-
const trackWidget = new TrackWidget();
|
|
2251
|
-
trackWidget.createWidget(objAppTrack);
|
|
2252
|
-
} catch (err) {
|
|
2253
|
-
console.log(err);
|
|
2254
|
-
}
|
|
2255
|
-
};
|
|
2256
|
-
htmlElement.parentNode.insertBefore(scriptInsert, htmlElement);
|
|
2257
|
-
};
|
|
2258
|
-
const container = ref(null);
|
|
2259
|
-
const changeStatus = () => {
|
|
2260
|
-
setTimeout(() => {
|
|
2261
|
-
if (componentStatus.value === "survey-finalized") {
|
|
2262
|
-
stopToShowNpsSurvey2();
|
|
2263
|
-
return;
|
|
2264
|
-
}
|
|
2265
|
-
if (container.value.childElementCount === 1) {
|
|
2266
|
-
componentStatus.value = "survey-loaded";
|
|
2267
|
-
}
|
|
2268
|
-
if (container.value.childElementCount === 0 && componentStatus.value === "survey-loaded") {
|
|
2269
|
-
componentStatus.value = "survey-finalized";
|
|
2270
|
-
stopToShowNpsSurvey2();
|
|
2271
|
-
showModal.value = false;
|
|
2272
|
-
}
|
|
2273
|
-
if (componentStatus.value !== "survey-finalized") {
|
|
2274
|
-
changeStatus();
|
|
2275
|
-
}
|
|
2276
|
-
}, 500);
|
|
2277
|
-
};
|
|
2278
|
-
watch(showModal, (newValue) => {
|
|
2279
|
-
if (newValue) {
|
|
2280
|
-
changeStatus();
|
|
2281
|
-
insertScript();
|
|
2282
|
-
}
|
|
2283
|
-
});
|
|
2284
|
-
onMounted(() => {
|
|
2285
|
-
AppTrackService.getSurvey();
|
|
2286
|
-
});
|
|
2287
|
-
return (_ctx, _cache) => {
|
|
2288
|
-
return openBlock(), createBlock(unref(script$5), {
|
|
2289
|
-
visible: showModal.value,
|
|
2290
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => showModal.value = $event),
|
|
2291
|
-
modal: "",
|
|
2292
|
-
style: { width: "auto", maxWidth: "90vw" },
|
|
2293
|
-
"pt:header": "!flex-row-reverse"
|
|
2294
|
-
}, {
|
|
2295
|
-
default: withCtx(() => [
|
|
2296
|
-
componentStatus.value === "start-survey" || componentStatus.value === "survey-finalized" ? (openBlock(), createBlock(unref(w), {
|
|
2297
|
-
key: 0,
|
|
2298
|
-
class: "mx-32"
|
|
2299
|
-
})) : createCommentVNode("", true),
|
|
2300
|
-
createBaseVNode("div", {
|
|
2301
|
-
ref_key: "container",
|
|
2302
|
-
ref: container,
|
|
2303
|
-
id: "nps_survey"
|
|
2304
|
-
}, null, 512)
|
|
2305
|
-
]),
|
|
2306
|
-
_: 1
|
|
2307
|
-
}, 8, ["visible"]);
|
|
2308
|
-
};
|
|
2309
|
-
}
|
|
2310
|
-
});
|
|
2311
|
-
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
2312
|
-
...{ name: "InternationalizationModal" },
|
|
2313
|
-
__name: "InternationalizationModal",
|
|
2314
|
-
props: {
|
|
2315
|
-
"show": { type: Boolean },
|
|
2316
|
-
"showModifiers": {}
|
|
2317
|
-
},
|
|
2318
|
-
emits: ["update:show"],
|
|
2319
|
-
setup(__props) {
|
|
2320
|
-
const router = useRouter();
|
|
2321
|
-
const show2 = useModel(__props, "show");
|
|
2322
|
-
const AssetsBaseUrl = `${"http://localhost:8182"}/`;
|
|
2323
|
-
const handleInternationalizationRedirect = async () => {
|
|
2324
|
-
const { user } = await userService.getData();
|
|
2325
|
-
sessionStorage.setItem("internationalization-enable", user.name);
|
|
2326
|
-
router.push("/v2/client/integration/appstore");
|
|
2327
|
-
return;
|
|
2328
|
-
};
|
|
2329
|
-
watch(show2, async (newVal) => {
|
|
2330
|
-
if (newVal) {
|
|
2331
|
-
if (window.clarity) {
|
|
2332
|
-
const { user } = await userService.getData();
|
|
2333
|
-
clarity("set", "internationalization_modal", "open");
|
|
2334
|
-
clarity("set", "internationalization_modal", user.name);
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
});
|
|
2338
|
-
return (_ctx, _cache) => {
|
|
2339
|
-
return openBlock(), createBlock(unref(Te), {
|
|
2340
|
-
modelValue: show2.value,
|
|
2341
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => show2.value = $event),
|
|
2342
|
-
"show-briefing": "",
|
|
2343
|
-
"briefing-props": {
|
|
2344
|
-
title: _ctx.$t("briefingModal.title"),
|
|
2345
|
-
subtitle: _ctx.$t("briefingModal.subtitle"),
|
|
2346
|
-
description: _ctx.$t("briefingModal.description"),
|
|
2347
|
-
buttonTitle: _ctx.$t("briefingModal.titleButton"),
|
|
2348
|
-
buttonLabel: _ctx.$t("briefingModal.labelButton"),
|
|
2349
|
-
image: `${unref(AssetsBaseUrl)}images/internationalization-briefing.webp`
|
|
2350
|
-
},
|
|
2351
|
-
"whats-new-props": {
|
|
2352
|
-
finishButtonText: _ctx.$t("whatsnew.finishButtonText"),
|
|
2353
|
-
backButtonText: _ctx.$t("whatsnew.backButtonText"),
|
|
2354
|
-
nextButtonText: _ctx.$t("whatsnew.nextButtonText"),
|
|
2355
|
-
integrationMenuButtonText: _ctx.$t("whatsnew.integrationMenuButtonText"),
|
|
2356
|
-
items: [
|
|
2357
|
-
{
|
|
2358
|
-
image: `${unref(AssetsBaseUrl)}images/whats-new-1.webp`,
|
|
2359
|
-
subtitle: _ctx.$t("whatsnew.carrouselItens.firstSlide.subtitle"),
|
|
2360
|
-
description: _ctx.$t("whatsnew.carrouselItens.firstSlide.description")
|
|
2361
|
-
},
|
|
2362
|
-
{
|
|
2363
|
-
image: `${unref(AssetsBaseUrl)}images/whats-new-2.webp`,
|
|
2364
|
-
subtitle: _ctx.$t("whatsnew.carrouselItens.secondSlide.subtitle"),
|
|
2365
|
-
description: _ctx.$t("whatsnew.carrouselItens.secondSlide.description")
|
|
2366
|
-
},
|
|
2367
|
-
{
|
|
2368
|
-
image: `${unref(AssetsBaseUrl)}images/whats-new-3.webp`,
|
|
2369
|
-
subtitle: _ctx.$t("whatsnew.carrouselItens.thirdSlide.subtitle"),
|
|
2370
|
-
description: _ctx.$t("whatsnew.carrouselItens.thirdSlide.description")
|
|
2371
|
-
},
|
|
2372
|
-
{
|
|
2373
|
-
image: `${unref(AssetsBaseUrl)}images/whats-new-4.webp`,
|
|
2374
|
-
subtitle: _ctx.$t("whatsnew.carrouselItens.fourthSlide.subtitle"),
|
|
2375
|
-
description: _ctx.$t("whatsnew.carrouselItens.fourthSlide.description"),
|
|
2376
|
-
linkHint: _ctx.$t("whatsnew.carrouselItens.fourthSlide.linkHint"),
|
|
2377
|
-
url: "https://help.appmax.com.br/pt-br/central-de-ajuda/como-integrar-lojas-internacionais-na-shopify-"
|
|
2378
|
-
}
|
|
2379
|
-
]
|
|
2380
|
-
},
|
|
2381
|
-
onNextStep: handleInternationalizationRedirect
|
|
2382
|
-
}, null, 8, ["modelValue", "briefing-props", "whats-new-props"]);
|
|
2383
|
-
};
|
|
2384
|
-
}
|
|
2385
|
-
});
|
|
2386
|
-
const DASHBOARD_SELECTED_INDEX = "dashboardInternational";
|
|
2387
|
-
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
2388
|
-
...{ name: "DashboardInternationalFilter" },
|
|
2389
|
-
__name: "DashboardInternationalFilter",
|
|
2390
|
-
props: {
|
|
2391
|
-
hasInternationalFeature: { type: Boolean },
|
|
2392
|
-
internationalFeatureIsLoading: { type: Boolean },
|
|
2393
|
-
isCrossborderInInternationalFlow: { type: Boolean }
|
|
2394
|
-
},
|
|
2395
|
-
emits: ["changeInternationalTab"],
|
|
2396
|
-
setup(__props, { emit: __emit }) {
|
|
2397
|
-
const props = __props;
|
|
2398
|
-
const emit = __emit;
|
|
2399
|
-
const selectedIndex = ref(0);
|
|
2400
|
-
const showInternationalizationModal = ref(false);
|
|
2401
|
-
const internalSelectedIndex = ref(0);
|
|
2402
|
-
const handleSelectButtonClick = (event) => {
|
|
2403
|
-
const newValue = event.value;
|
|
2404
|
-
if (!props.hasInternationalFeature) {
|
|
2405
|
-
showInternationalizationModal.value = true;
|
|
2406
|
-
setTimeout(() => {
|
|
2407
|
-
internalSelectedIndex.value = selectedIndex.value;
|
|
2408
|
-
}, 0);
|
|
2409
|
-
return;
|
|
2410
|
-
}
|
|
2411
|
-
selectedIndex.value = newValue;
|
|
2412
|
-
internalSelectedIndex.value = newValue;
|
|
2413
|
-
};
|
|
2414
|
-
const selectOptions = computed(() => [
|
|
2415
|
-
{ label: t("home.national"), value: 0 },
|
|
2416
|
-
{
|
|
2417
|
-
label: t("home.international"),
|
|
2418
|
-
value: 1,
|
|
2419
|
-
icon: props.hasInternationalFeature || props.internationalFeatureIsLoading ? "" : "brightness_alert"
|
|
2420
|
-
}
|
|
2421
|
-
]);
|
|
2422
|
-
watch(
|
|
2423
|
-
() => selectedIndex.value,
|
|
2424
|
-
(newIndex) => {
|
|
2425
|
-
if (!props.hasInternationalFeature) return;
|
|
2426
|
-
sessionStorage.setItem(DASHBOARD_SELECTED_INDEX, newIndex.toString());
|
|
2427
|
-
emit("changeInternationalTab", newIndex === 1);
|
|
2428
|
-
}
|
|
2429
|
-
);
|
|
2430
|
-
onMounted(() => {
|
|
2431
|
-
if (!props.hasInternationalFeature) {
|
|
2432
|
-
selectedIndex.value = 0;
|
|
2433
|
-
internalSelectedIndex.value = 0;
|
|
2434
|
-
return;
|
|
2435
|
-
}
|
|
2436
|
-
const storedIndex = sessionStorage.getItem(DASHBOARD_SELECTED_INDEX);
|
|
2437
|
-
if (storedIndex) {
|
|
2438
|
-
selectedIndex.value = parseInt(storedIndex) || 0;
|
|
2439
|
-
internalSelectedIndex.value = parseInt(storedIndex) || 0;
|
|
2440
|
-
}
|
|
2441
|
-
});
|
|
2442
|
-
return (_ctx, _cache) => {
|
|
2443
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
2444
|
-
createVNode(unref(script), {
|
|
2445
|
-
modelValue: internalSelectedIndex.value,
|
|
2446
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalSelectedIndex.value = $event),
|
|
2447
|
-
options: selectOptions.value,
|
|
2448
|
-
size: "small",
|
|
2449
|
-
optionLabel: "label",
|
|
2450
|
-
optionValue: "value",
|
|
2451
|
-
allowEmpty: false,
|
|
2452
|
-
class: "order-3 md:!col-span-3 md:!order-2 lg:!col-span-2 lg:!col-start-3 shadow-[2px_2px_12px_0px_rgba(51,51,51,0.16)]",
|
|
2453
|
-
"pt:pcToggleButton:root": "!flex-1 !border-0 !border-r last:!border-r-0",
|
|
2454
|
-
onChange: handleSelectButtonClick,
|
|
2455
|
-
disabled: _ctx.internationalFeatureIsLoading
|
|
2456
|
-
}, {
|
|
2457
|
-
option: withCtx((slotProps) => [
|
|
2458
|
-
createTextVNode(toDisplayString(slotProps.option.label) + " ", 1),
|
|
2459
|
-
slotProps.option.icon ? (openBlock(), createBlock(unref(P), {
|
|
2460
|
-
key: 0,
|
|
2461
|
-
icon: slotProps.option.icon,
|
|
2462
|
-
class: "text-primary"
|
|
2463
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
2464
|
-
]),
|
|
2465
|
-
_: 1
|
|
2466
|
-
}, 8, ["modelValue", "options", "disabled"]),
|
|
2467
|
-
createVNode(_sfc_main$p, {
|
|
2468
|
-
show: showInternationalizationModal.value,
|
|
2469
|
-
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => showInternationalizationModal.value = $event)
|
|
2470
|
-
}, null, 8, ["show"])
|
|
2471
|
-
], 64);
|
|
2472
|
-
};
|
|
2473
|
-
}
|
|
2474
|
-
});
|
|
2475
|
-
const DashboardInternationalFilter = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-aaedf9dc"]]);
|
|
2476
|
-
const filterDatesToRange = ([startDate, endDate]) => ({
|
|
2477
|
-
start: formatDateWithTimezone(startDate),
|
|
2478
|
-
end: formatDateWithTimezone(endDate)
|
|
2479
|
-
});
|
|
2480
|
-
const rangeToFilterDates = ({ start, end }) => [
|
|
2481
|
-
new Date(start),
|
|
2482
|
-
new Date(end)
|
|
2483
|
-
];
|
|
2484
|
-
const __default__$f = { name: "DashboardFilters" };
|
|
2485
|
-
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
2486
|
-
...__default__$f,
|
|
2487
|
-
props: {
|
|
2488
|
-
hasInternationalFeature: { type: Boolean },
|
|
2489
|
-
internationalFeatureIsLoading: { type: Boolean },
|
|
2490
|
-
isCrossborderInInternationalFlow: { type: Boolean }
|
|
2491
|
-
},
|
|
2492
|
-
emits: ["changeInternationalTab", "changeDateRange"],
|
|
2493
|
-
setup(__props, { emit: __emit }) {
|
|
2494
|
-
const DASHBOARD_DATE_RANGE = "dashboardDateRange";
|
|
2495
|
-
const { t: t2 } = useI18n();
|
|
2496
|
-
const emit = __emit;
|
|
2497
|
-
const today = getTodayDate();
|
|
2498
|
-
const dateFilter = ref();
|
|
2499
|
-
onMounted(() => {
|
|
2500
|
-
try {
|
|
2501
|
-
const storedDateRange = sessionStorage.getItem(DASHBOARD_DATE_RANGE);
|
|
2502
|
-
if (!storedDateRange) throw new Error();
|
|
2503
|
-
const [start, end] = JSON.parse(storedDateRange);
|
|
2504
|
-
if (!start || !end) throw new Error();
|
|
2505
|
-
dateFilter.value = rangeToFilterDates({ start, end });
|
|
2506
|
-
} catch {
|
|
2507
|
-
dateFilter.value = [getTodayDate(), getTodayDate()];
|
|
2508
|
-
}
|
|
2509
|
-
});
|
|
2510
|
-
watch(
|
|
2511
|
-
() => dateFilter.value,
|
|
2512
|
-
(newDates) => {
|
|
2513
|
-
if (!newDates) return;
|
|
2514
|
-
if (diffDaysBetweenDates(newDates[0], newDates[1]) > 60) {
|
|
2515
|
-
toaster.warning(t2("withdraw.alertWarningTitle"), t2("home.sixtyDaysLimitWarning"));
|
|
2516
|
-
return;
|
|
2517
|
-
}
|
|
2518
|
-
sessionStorage.setItem(DASHBOARD_DATE_RANGE, JSON.stringify(newDates));
|
|
2519
|
-
const dateRange = filterDatesToRange(newDates);
|
|
2520
|
-
emit("changeDateRange", dateRange);
|
|
2521
|
-
}
|
|
2522
|
-
);
|
|
2523
|
-
const minDate = computed(() => {
|
|
2524
|
-
if (sessionStorage.getItem("enable-dashboard-custom-filter") || userService.hasPermission("admin:dashboard.complete-filter")) {
|
|
2525
|
-
return null;
|
|
2526
|
-
}
|
|
2527
|
-
return new Date(getOffsetDate(-60));
|
|
2528
|
-
});
|
|
2529
|
-
const handleInternationalTabChange = (isActive) => {
|
|
2530
|
-
emit("changeInternationalTab", isActive);
|
|
2531
|
-
};
|
|
2532
|
-
return (_ctx, _cache) => {
|
|
2533
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
2534
|
-
createVNode(DashboardInternationalFilter, {
|
|
2535
|
-
hasInternationalFeature: _ctx.hasInternationalFeature,
|
|
2536
|
-
internationalFeatureIsLoading: _ctx.internationalFeatureIsLoading,
|
|
2537
|
-
isCrossborderInInternationalFlow: _ctx.isCrossborderInInternationalFlow,
|
|
2538
|
-
onChangeInternationalTab: handleInternationalTabChange
|
|
2539
|
-
}, null, 8, ["hasInternationalFeature", "internationalFeatureIsLoading", "isCrossborderInInternationalFlow"]),
|
|
2540
|
-
createVNode(AmCardV3, { class: "dashboard-date-filter !p-0" }, {
|
|
2541
|
-
default: withCtx(() => [
|
|
2542
|
-
createVNode(unref(he), {
|
|
2543
|
-
modelValue: dateFilter.value,
|
|
2544
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dateFilter.value = $event),
|
|
2545
|
-
"min-date": minDate.value,
|
|
2546
|
-
"max-date": new Date(unref(today))
|
|
2547
|
-
}, null, 8, ["modelValue", "min-date", "max-date"])
|
|
2548
|
-
]),
|
|
2549
|
-
_: 1
|
|
2550
|
-
})
|
|
2551
|
-
], 64);
|
|
2552
|
-
};
|
|
2553
|
-
}
|
|
2554
|
-
});
|
|
2555
|
-
const DashboardFilters = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-6bbd84d5"]]);
|
|
2556
|
-
const __default__$e = { name: "DashboardTitle" };
|
|
2557
|
-
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2558
|
-
...__default__$e,
|
|
2559
|
-
props: {
|
|
2560
|
-
testName: {},
|
|
2561
|
-
isLoading: { type: Boolean },
|
|
2562
|
-
title: {}
|
|
2563
|
-
},
|
|
2564
|
-
setup(__props) {
|
|
2565
|
-
return (_ctx, _cache) => {
|
|
2566
|
-
return openBlock(), createBlock(AmSkeleton, { isLoading: _ctx.isLoading }, {
|
|
2567
|
-
default: withCtx(() => [
|
|
2568
|
-
createVNode(unref(y), {
|
|
2569
|
-
variant: "subtitle",
|
|
2570
|
-
isStrong: "",
|
|
2571
|
-
"data-test": `${_ctx.testName}-title`
|
|
2572
|
-
}, {
|
|
2573
|
-
default: withCtx(() => [
|
|
2574
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
2575
|
-
]),
|
|
2576
|
-
_: 1
|
|
2577
|
-
}, 8, ["data-test"])
|
|
2578
|
-
]),
|
|
2579
|
-
_: 1
|
|
2580
|
-
}, 8, ["isLoading"]);
|
|
2581
|
-
};
|
|
2582
|
-
}
|
|
2583
|
-
});
|
|
2584
|
-
const _hoisted_1$d = { class: "dashboard-loading-state-content" };
|
|
2585
|
-
const __default__$d = { name: "DashboardLoadingStateContent" };
|
|
2586
|
-
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2587
|
-
...__default__$d,
|
|
2588
|
-
setup(__props) {
|
|
2589
|
-
return (_ctx, _cache) => {
|
|
2590
|
-
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
2591
|
-
createVNode(AmSkeleton, {
|
|
2592
|
-
width: 120,
|
|
2593
|
-
inline: ""
|
|
2594
|
-
}),
|
|
2595
|
-
_cache[0] || (_cache[0] = createBaseVNode("br", null, null, -1)),
|
|
2596
|
-
createVNode(AmSkeleton, {
|
|
2597
|
-
width: 160,
|
|
2598
|
-
inline: ""
|
|
2599
|
-
})
|
|
2600
|
-
]);
|
|
2601
|
-
};
|
|
2602
|
-
}
|
|
2603
|
-
});
|
|
2604
|
-
const __default__$c = { name: "DashboardErrorStateContent" };
|
|
2605
|
-
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2606
|
-
...__default__$c,
|
|
2607
|
-
props: {
|
|
2608
|
-
testName: {}
|
|
2609
|
-
},
|
|
2610
|
-
emits: ["retry"],
|
|
2611
|
-
setup(__props, { emit: __emit }) {
|
|
2612
|
-
const { t: t2 } = useI18n();
|
|
2613
|
-
const emit = __emit;
|
|
2614
|
-
const handleClick = () => emit("retry");
|
|
2615
|
-
return (_ctx, _cache) => {
|
|
2616
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
2617
|
-
createVNode(unref(y), {
|
|
2618
|
-
"data-test": `${_ctx.testName}-error-message`,
|
|
2619
|
-
class: "text-error mb-2 font-medium"
|
|
2620
|
-
}, {
|
|
2621
|
-
default: withCtx(() => [
|
|
2622
|
-
createTextVNode(toDisplayString(unref(t2)("card.errorMessage")), 1)
|
|
2623
|
-
]),
|
|
2624
|
-
_: 1
|
|
2625
|
-
}, 8, ["data-test"]),
|
|
2626
|
-
createVNode(unref($), {
|
|
2627
|
-
icon: "refresh",
|
|
2628
|
-
iconPos: "right",
|
|
2629
|
-
label: unref(t2)("card.tryAgain"),
|
|
2630
|
-
"data-test": `${_ctx.testName}-error-button`,
|
|
2631
|
-
size: "small",
|
|
2632
|
-
onClick: withModifiers(handleClick, ["stop"])
|
|
2633
|
-
}, null, 8, ["label", "data-test"])
|
|
2634
|
-
], 64);
|
|
2635
|
-
};
|
|
2636
|
-
}
|
|
2637
|
-
});
|
|
2638
|
-
const _hoisted_1$c = { class: "dashboard-card__header" };
|
|
2639
|
-
const _hoisted_2$7 = { class: "dashboard-card__main" };
|
|
2640
|
-
const __default__$b = { name: "DashboardCardLoader" };
|
|
2641
|
-
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2642
|
-
...__default__$b,
|
|
2643
|
-
props: {
|
|
2644
|
-
id: {},
|
|
2645
|
-
align: {},
|
|
2646
|
-
to: {},
|
|
2647
|
-
title: {},
|
|
2648
|
-
fetcher: {},
|
|
2649
|
-
size: {},
|
|
2650
|
-
component: {},
|
|
2651
|
-
ignoreDateRange: { type: Boolean },
|
|
2652
|
-
noCache: { type: Boolean },
|
|
2653
|
-
hasPermissionSalesRecovery: { type: Boolean },
|
|
2654
|
-
minHeight: {},
|
|
2655
|
-
dateRange: {},
|
|
2656
|
-
isLoading: { type: Boolean },
|
|
2657
|
-
errorMessage: {}
|
|
2658
|
-
},
|
|
2659
|
-
setup(__props) {
|
|
2660
|
-
const { t: t2 } = useI18n();
|
|
2661
|
-
const router = useRouter();
|
|
2662
|
-
const index = ref(0);
|
|
2663
|
-
const props = __props;
|
|
2664
|
-
const state2 = reactive({
|
|
2665
|
-
fetching: false,
|
|
2666
|
-
error: false,
|
|
2667
|
-
success: false,
|
|
2668
|
-
data: []
|
|
2669
|
-
});
|
|
2670
|
-
const isContentFetching = computed(() => state2.fetching || props.isLoading);
|
|
2671
|
-
const fetchData2 = async (force = false) => {
|
|
2672
|
-
if (props.errorMessage) return;
|
|
2673
|
-
if (props.isLoading) return;
|
|
2674
|
-
if (!props.dateRange) return;
|
|
2675
|
-
if (state2.fetching) index.value += 1;
|
|
2676
|
-
const currentIndex = index.value;
|
|
2677
|
-
try {
|
|
2678
|
-
state2.fetching = true;
|
|
2679
|
-
state2.error = false;
|
|
2680
|
-
state2.success = false;
|
|
2681
|
-
if (force) {
|
|
2682
|
-
await dashboardService.clearCache();
|
|
2683
|
-
}
|
|
2684
|
-
const data2 = await props.fetcher(props.dateRange);
|
|
2685
|
-
if (currentIndex !== index.value) return;
|
|
2686
|
-
state2.data = data2;
|
|
2687
|
-
state2.success = true;
|
|
2688
|
-
} catch {
|
|
2689
|
-
state2.error = true;
|
|
2690
|
-
} finally {
|
|
2691
|
-
state2.fetching = false;
|
|
2692
|
-
}
|
|
2693
|
-
};
|
|
2694
|
-
onMounted(fetchData2);
|
|
2695
|
-
watch(
|
|
2696
|
-
() => props.dateRange,
|
|
2697
|
-
() => {
|
|
2698
|
-
if (!props.ignoreDateRange) fetchData2();
|
|
2699
|
-
}
|
|
2700
|
-
);
|
|
2701
|
-
watch(
|
|
2702
|
-
() => props.isLoading,
|
|
2703
|
-
() => {
|
|
2704
|
-
if (!props.isLoading) fetchData2();
|
|
2705
|
-
}
|
|
2706
|
-
);
|
|
2707
|
-
watch(
|
|
2708
|
-
() => props.errorMessage,
|
|
2709
|
-
() => {
|
|
2710
|
-
if (!props.errorMessage) fetchData2();
|
|
2711
|
-
}
|
|
2712
|
-
);
|
|
2713
|
-
const handleClick = () => {
|
|
2714
|
-
if (!props.to || props.errorMessage || state2.fetching) return;
|
|
2715
|
-
if (!props.dateRange) return router.push(props.to);
|
|
2716
|
-
const dateParams = `date=${props.dateRange.start},${props.dateRange.end}`;
|
|
2717
|
-
if (typeof props.to === "function") return window.location.replace(`${window.location.origin}${props.to()}`);
|
|
2718
|
-
const concat = props.to.includes("?") ? "&" : "?";
|
|
2719
|
-
const path = `${props.to}${concat}${dateParams}`;
|
|
2720
|
-
if (path.includes("integration")) {
|
|
2721
|
-
router.push(path);
|
|
2722
|
-
} else {
|
|
2723
|
-
window.location.replace(path);
|
|
2724
|
-
}
|
|
2725
|
-
};
|
|
2726
|
-
const cardSize = computed(() => {
|
|
2727
|
-
if (typeof props.size === "number") return props.size;
|
|
2728
|
-
if (useBreakpoint("desktop").value) return props.size.lg;
|
|
2729
|
-
if (useBreakpoint("tablet").value) return props.size.md;
|
|
2730
|
-
if (useBreakpoint("mobile").value) return 1;
|
|
2731
|
-
});
|
|
2732
|
-
return (_ctx, _cache) => {
|
|
2733
|
-
return openBlock(), createBlock(AmCardV3, {
|
|
2734
|
-
class: normalizeClass(["dashboard-card", { "dashboard-card--link": !_ctx.errorMessage && _ctx.to, [`dashboard-card--${_ctx.align}`]: _ctx.align }]),
|
|
2735
|
-
"data-test": _ctx.id,
|
|
2736
|
-
id: _ctx.id,
|
|
2737
|
-
style: normalizeStyle({ "--size": cardSize.value, "--minHeight": `${_ctx.minHeight || 190}px` }),
|
|
2738
|
-
onClick: handleClick
|
|
2739
|
-
}, {
|
|
2740
|
-
default: withCtx(() => [
|
|
2741
|
-
createBaseVNode("header", _hoisted_1$c, [
|
|
2742
|
-
_ctx.title ? (openBlock(), createBlock(_sfc_main$m, {
|
|
2743
|
-
key: 0,
|
|
2744
|
-
isLoading: _ctx.isLoading,
|
|
2745
|
-
testName: _ctx.id,
|
|
2746
|
-
title: unref(t2)(_ctx.title)
|
|
2747
|
-
}, null, 8, ["isLoading", "testName", "title"])) : renderSlot(_ctx.$slots, "header", {
|
|
2748
|
-
key: 1,
|
|
2749
|
-
data: state2.data
|
|
2750
|
-
}, void 0, true)
|
|
2751
|
-
]),
|
|
2752
|
-
createBaseVNode("main", _hoisted_2$7, [
|
|
2753
|
-
_ctx.errorMessage ? (openBlock(), createBlock(unref(y), {
|
|
2754
|
-
key: 0,
|
|
2755
|
-
class: "text-muted-color"
|
|
2756
|
-
}, {
|
|
2757
|
-
default: withCtx(() => [
|
|
2758
|
-
createTextVNode(toDisplayString(_ctx.errorMessage), 1)
|
|
2759
|
-
]),
|
|
2760
|
-
_: 1
|
|
2761
|
-
})) : isContentFetching.value ? (openBlock(), createBlock(_sfc_main$l, { key: 1 })) : state2.error ? (openBlock(), createBlock(_sfc_main$k, {
|
|
2762
|
-
key: 2,
|
|
2763
|
-
testName: _ctx.id,
|
|
2764
|
-
onRetry: _cache[0] || (_cache[0] = ($event) => fetchData2(true))
|
|
2765
|
-
}, null, 8, ["testName"])) : state2.success ? renderSlot(_ctx.$slots, "default", {
|
|
2766
|
-
key: 3,
|
|
2767
|
-
data: state2.data
|
|
2768
|
-
}, void 0, true) : createCommentVNode("", true)
|
|
2769
|
-
])
|
|
2770
|
-
]),
|
|
2771
|
-
_: 3
|
|
2772
|
-
}, 8, ["class", "data-test", "id", "style"]);
|
|
2773
|
-
};
|
|
2774
|
-
}
|
|
2775
|
-
});
|
|
2776
|
-
const DashboardCardLoader = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-74ae18a0"]]);
|
|
2777
|
-
const _hoisted_1$b = ["data-test"];
|
|
2778
|
-
const __default__$a = { name: "DashboardMain" };
|
|
2779
|
-
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2780
|
-
...__default__$a,
|
|
2781
|
-
props: {
|
|
2782
|
-
cards: {},
|
|
2783
|
-
dateRange: {},
|
|
2784
|
-
isLoading: { type: Boolean },
|
|
2785
|
-
errorMessage: {},
|
|
2786
|
-
testName: {}
|
|
2787
|
-
},
|
|
2788
|
-
setup(__props) {
|
|
2789
|
-
const loadComponent = (loader) => defineAsyncComponent({ loader, loadingComponent: _sfc_main$l });
|
|
2790
|
-
return (_ctx, _cache) => {
|
|
2791
|
-
return openBlock(), createElementBlock("div", {
|
|
2792
|
-
"data-test": _ctx.testName,
|
|
2793
|
-
class: "dashboard-main"
|
|
2794
|
-
}, [
|
|
2795
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.cards, (card) => {
|
|
2796
|
-
return openBlock(), createBlock(DashboardCardLoader, mergeProps({
|
|
2797
|
-
key: `${_ctx.testName}-${card.id}`,
|
|
2798
|
-
ref_for: true
|
|
2799
|
-
}, card, {
|
|
2800
|
-
dateRange: _ctx.dateRange,
|
|
2801
|
-
isLoading: _ctx.isLoading,
|
|
2802
|
-
errorMessage: _ctx.errorMessage
|
|
2803
|
-
}), {
|
|
2804
|
-
header: withCtx(({ data: data2 }) => [
|
|
2805
|
-
data2.title ? (openBlock(), createBlock(_sfc_main$m, {
|
|
2806
|
-
key: 0,
|
|
2807
|
-
testName: card.id,
|
|
2808
|
-
title: unref(t)(data2.title),
|
|
2809
|
-
"is-loading": false
|
|
2810
|
-
}, null, 8, ["testName", "title"])) : createCommentVNode("", true)
|
|
2811
|
-
]),
|
|
2812
|
-
default: withCtx(({ data: data2 }) => [
|
|
2813
|
-
(openBlock(), createBlock(resolveDynamicComponent(loadComponent(card.component)), mergeProps({ ref_for: true }, data2), null, 16))
|
|
2814
|
-
]),
|
|
2815
|
-
_: 2
|
|
2816
|
-
}, 1040, ["dateRange", "isLoading", "errorMessage"]);
|
|
2817
|
-
}), 128))
|
|
2818
|
-
], 8, _hoisted_1$b);
|
|
2819
|
-
};
|
|
2820
|
-
}
|
|
2821
|
-
});
|
|
2822
|
-
const DashboardMain = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-b34295f0"]]);
|
|
2823
|
-
const _hoisted_1$a = { class: "document-modal__container" };
|
|
2824
|
-
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2825
|
-
...{ name: "DashboardOnboardingModal" },
|
|
2826
|
-
__name: "DashboardOnboardingModal",
|
|
2827
|
-
props: {
|
|
2828
|
-
alert: { default: void 0 }
|
|
2829
|
-
},
|
|
2830
|
-
setup(__props, { expose: __expose }) {
|
|
2831
|
-
const { addAlert, removeAlert } = useAlertsStore();
|
|
2832
|
-
const props = __props;
|
|
2833
|
-
const isOpen = ref(true);
|
|
2834
|
-
const openModal = () => {
|
|
2835
|
-
isOpen.value = true;
|
|
2836
|
-
};
|
|
2837
|
-
const closeModal = () => {
|
|
2838
|
-
isOpen.value = false;
|
|
2839
|
-
};
|
|
2840
|
-
__expose({ isOpen, openModal, closeModal });
|
|
2841
|
-
onMounted(() => {
|
|
2842
|
-
if (props.alert) {
|
|
2843
|
-
addAlert({
|
|
2844
|
-
name: "dashboard-onboarding-modal",
|
|
2845
|
-
description: t(props.alert.message),
|
|
2846
|
-
action: t(props.alert.cta),
|
|
2847
|
-
severity: "warning",
|
|
2848
|
-
actionCallback: openModal
|
|
2849
|
-
});
|
|
2850
|
-
}
|
|
2851
|
-
});
|
|
2852
|
-
onUnmounted(() => {
|
|
2853
|
-
if (props.alert) {
|
|
2854
|
-
removeAlert("dashboard-onboarding-modal");
|
|
2855
|
-
}
|
|
2856
|
-
});
|
|
2857
|
-
return (_ctx, _cache) => {
|
|
2858
|
-
return openBlock(), createBlock(unref(script$5), {
|
|
2859
|
-
class: "max-w-md w-[90%]",
|
|
2860
|
-
"pt:header": "!flex-row-reverse !pb-0",
|
|
2861
|
-
visible: isOpen.value,
|
|
2862
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event),
|
|
2863
|
-
modal: ""
|
|
2864
|
-
}, {
|
|
2865
|
-
default: withCtx(() => [
|
|
2866
|
-
createBaseVNode("div", _hoisted_1$a, [
|
|
2867
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2868
|
-
])
|
|
2869
|
-
]),
|
|
2870
|
-
_: 3
|
|
2871
|
-
}, 8, ["visible"]);
|
|
2872
|
-
};
|
|
2873
|
-
}
|
|
2874
|
-
});
|
|
2875
|
-
const DashboardOnboardingModal = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-175c592e"]]);
|
|
2876
|
-
const _hoisted_1$9 = { class: "hightlight-box bg-surface-200 flex gap-3 py-4 px-3 rounded-md" };
|
|
2877
|
-
const _hoisted_2$6 = { class: "hightlight-box__icon" };
|
|
2878
|
-
const _hoisted_3$4 = { class: "hightlight-box__text flex flex-col gap-1" };
|
|
2879
|
-
const __default__$9 = { name: "AmHighlightBox" };
|
|
2880
|
-
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2881
|
-
...__default__$9,
|
|
2882
|
-
props: {
|
|
2883
|
-
icon: {},
|
|
2884
|
-
title: {},
|
|
2885
|
-
description: {}
|
|
2886
|
-
},
|
|
2887
|
-
setup(__props) {
|
|
2888
|
-
return (_ctx, _cache) => {
|
|
2889
|
-
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
2890
|
-
createBaseVNode("div", _hoisted_2$6, [
|
|
2891
|
-
createVNode(unref(P), {
|
|
2892
|
-
icon: _ctx.icon,
|
|
2893
|
-
size: "lg"
|
|
2894
|
-
}, null, 8, ["icon"])
|
|
2895
|
-
]),
|
|
2896
|
-
createBaseVNode("div", _hoisted_3$4, [
|
|
2897
|
-
createVNode(unref(y), {
|
|
2898
|
-
variant: "title",
|
|
2899
|
-
size: "small"
|
|
2900
|
-
}, {
|
|
2901
|
-
default: withCtx(() => [
|
|
2902
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
2903
|
-
]),
|
|
2904
|
-
_: 1
|
|
2905
|
-
}),
|
|
2906
|
-
createVNode(unref(y), { class: "text-muted-color" }, {
|
|
2907
|
-
default: withCtx(() => [
|
|
2908
|
-
createTextVNode(toDisplayString(_ctx.description), 1)
|
|
2909
|
-
]),
|
|
2910
|
-
_: 1
|
|
2911
|
-
})
|
|
2912
|
-
])
|
|
2913
|
-
]);
|
|
2914
|
-
};
|
|
2915
|
-
}
|
|
2916
|
-
});
|
|
2917
|
-
const _hoisted_1$8 = { class: "almost-there" };
|
|
2918
|
-
const __default__$8 = { name: "AlmostThere" };
|
|
2919
|
-
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2920
|
-
...__default__$8,
|
|
2921
|
-
setup(__props) {
|
|
2922
|
-
return (_ctx, _cache) => {
|
|
2923
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2924
|
-
createVNode(unref(y), {
|
|
2925
|
-
variant: "title",
|
|
2926
|
-
isStrong: ""
|
|
2927
|
-
}, {
|
|
2928
|
-
default: withCtx(() => [
|
|
2929
|
-
createTextVNode(toDisplayString(_ctx.$t("faceScanModal.almostThere.encouragementMessage")), 1)
|
|
2930
|
-
]),
|
|
2931
|
-
_: 1
|
|
2932
|
-
}),
|
|
2933
|
-
createVNode(unref(y), {
|
|
2934
|
-
variant: "subtitle",
|
|
2935
|
-
class: "text-center py-1"
|
|
2936
|
-
}, {
|
|
2937
|
-
default: withCtx(() => [
|
|
2938
|
-
createTextVNode(toDisplayString(_ctx.$t("faceScanModal.almostThere.facialVerificationRequirementMessage")), 1)
|
|
2939
|
-
]),
|
|
2940
|
-
_: 1
|
|
2941
|
-
}),
|
|
2942
|
-
createVNode(unref(y), { class: "text-center text-muted-color" }, {
|
|
2943
|
-
default: withCtx(() => [
|
|
2944
|
-
createTextVNode(toDisplayString(_ctx.$t("faceScanModal.almostThere.verificationStepInstruction")), 1)
|
|
2945
|
-
]),
|
|
2946
|
-
_: 1
|
|
2947
|
-
}),
|
|
2948
|
-
createVNode(_sfc_main$g, {
|
|
2949
|
-
icon: "phone_iphone",
|
|
2950
|
-
title: _ctx.$t("faceScanModal.almostThere.cardContent.phoneTitle"),
|
|
2951
|
-
description: _ctx.$t("faceScanModal.almostThere.cardContent.phoneDescription")
|
|
2952
|
-
}, null, 8, ["title", "description"]),
|
|
2953
|
-
createVNode(_sfc_main$g, {
|
|
2954
|
-
icon: "badge",
|
|
2955
|
-
title: _ctx.$t("faceScanModal.almostThere.cardContent.documentTitle"),
|
|
2956
|
-
description: _ctx.$t("faceScanModal.almostThere.cardContent.documentDescription")
|
|
2957
|
-
}, null, 8, ["title", "description"]),
|
|
2958
|
-
createVNode(unref($), {
|
|
2959
|
-
label: _ctx.$t("faceScanModal.almostThere.startAction"),
|
|
2960
|
-
class: "almost-there__button mt-4",
|
|
2961
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("nextStep")),
|
|
2962
|
-
size: "small"
|
|
2963
|
-
}, null, 8, ["label"])
|
|
2964
|
-
]);
|
|
2965
|
-
};
|
|
2966
|
-
}
|
|
2967
|
-
});
|
|
2968
|
-
const AlmostThere = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c5a87145"]]);
|
|
2969
|
-
const TWO_MINUTES_IN_SECONDS = 2 * 60;
|
|
2970
|
-
const DEFAULT_EXPIRATION_TIME = TWO_MINUTES_IN_SECONDS;
|
|
2971
|
-
class FacematchService {
|
|
2972
|
-
constructor(apiService = ApiService) {
|
|
2973
|
-
__publicField(this, "phoneNumber", "");
|
|
2974
|
-
this.apiService = apiService;
|
|
2975
|
-
}
|
|
2976
|
-
async getSmsInfo() {
|
|
2977
|
-
try {
|
|
2978
|
-
const url = "/api/auth/onboarding/user-face-match-information";
|
|
2979
|
-
const { data: { data: data2 } } = await this.apiService.get(url);
|
|
2980
|
-
const timeToExpire = this.getExpirationTime(data2);
|
|
2981
|
-
const isExpired = timeToExpire <= 0;
|
|
2982
|
-
return { isExpired, timeToExpire };
|
|
2983
|
-
} catch {
|
|
2984
|
-
return {
|
|
2985
|
-
isExpired: false,
|
|
2986
|
-
timeToExpire: DEFAULT_EXPIRATION_TIME
|
|
2987
|
-
};
|
|
2988
|
-
}
|
|
2989
|
-
}
|
|
2990
|
-
async sendPhone(value = "") {
|
|
2991
|
-
const url = "/api/auth/onboarding/face-match";
|
|
2992
|
-
const phone = value.replace(/[^\d]/g, "");
|
|
2993
|
-
if (phone.length < 11) throw new Error("invalid");
|
|
2994
|
-
this.phoneNumber = phone;
|
|
2995
|
-
const payload = { phone };
|
|
2996
|
-
const { data: data2 } = await this.apiService.post(url, payload);
|
|
2997
|
-
return data2;
|
|
2998
|
-
}
|
|
2999
|
-
getPhoneNumber() {
|
|
3000
|
-
return formatPhoneNumber(this.phoneNumber);
|
|
3001
|
-
}
|
|
3002
|
-
async checkIfFinish() {
|
|
3003
|
-
try {
|
|
3004
|
-
const url = "/api/auth/onboarding/check-match";
|
|
3005
|
-
const { data: data2 } = await this.apiService.post(url);
|
|
3006
|
-
return !!data2;
|
|
3007
|
-
} catch {
|
|
3008
|
-
return false;
|
|
3009
|
-
}
|
|
3010
|
-
}
|
|
3011
|
-
getExpirationTime(data2 = {}) {
|
|
3012
|
-
const { smsExpirationDate } = data2;
|
|
3013
|
-
if (!smsExpirationDate) return DEFAULT_EXPIRATION_TIME;
|
|
3014
|
-
const now = (/* @__PURE__ */ new Date()).getTime();
|
|
3015
|
-
const futureTime = new Date(smsExpirationDate).getTime();
|
|
3016
|
-
const difTimerInSeconds = Math.ceil((futureTime - now) / 1e3);
|
|
3017
|
-
return Math.max(difTimerInSeconds, 0);
|
|
3018
|
-
}
|
|
3019
|
-
}
|
|
3020
|
-
const FacematchService$1 = new FacematchService();
|
|
3021
|
-
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3022
|
-
...{
|
|
3023
|
-
name: "FaceScanSmsPhoneStep"
|
|
3024
|
-
},
|
|
3025
|
-
__name: "FaceScanSmsPhoneStep",
|
|
3026
|
-
emits: ["nextStep"],
|
|
3027
|
-
setup(__props, { emit: __emit }) {
|
|
3028
|
-
const { t: t2 } = useI18n();
|
|
3029
|
-
const cleanString = (value) => value.replace(/\D/g, "");
|
|
3030
|
-
const phoneNumber = ref("");
|
|
3031
|
-
const inputValidations = {
|
|
3032
|
-
required: common.withMessage(t2("faceScanModal.faceScanSms.required"), required),
|
|
3033
|
-
isValid: common.withMessage(t2("faceScanModal.faceScanSms.invalid"), (value) => {
|
|
3034
|
-
const cleaned = cleanString(value || "");
|
|
3035
|
-
return cleaned.length === 11;
|
|
3036
|
-
})
|
|
3037
|
-
};
|
|
3038
|
-
const rules = { phoneNumber: inputValidations };
|
|
3039
|
-
const v$ = useVuelidate(rules, { phoneNumber });
|
|
3040
|
-
watch(
|
|
3041
|
-
phoneNumber,
|
|
3042
|
-
() => {
|
|
3043
|
-
if (v$.value.phoneNumber.$dirty) {
|
|
3044
|
-
v$.value.phoneNumber.$validate();
|
|
3045
|
-
}
|
|
3046
|
-
},
|
|
3047
|
-
{ immediate: true }
|
|
3048
|
-
);
|
|
3049
|
-
const validate = async () => await v$.value.phoneNumber.$validate();
|
|
3050
|
-
const handleInput = () => {
|
|
3051
|
-
v$.value.phoneNumber.$touch();
|
|
3052
|
-
v$.value.phoneNumber.$validate();
|
|
3053
|
-
};
|
|
3054
|
-
const emit = __emit;
|
|
3055
|
-
const submitSms = async () => {
|
|
3056
|
-
if (await validate()) {
|
|
3057
|
-
FacematchService$1.sendPhone(cleanString(phoneNumber.value));
|
|
3058
|
-
emit("nextStep");
|
|
3059
|
-
}
|
|
3060
|
-
return;
|
|
3061
|
-
};
|
|
3062
|
-
onMounted(() => {
|
|
3063
|
-
var _a, _b;
|
|
3064
|
-
const store = useUserStore();
|
|
3065
|
-
phoneNumber.value = (_b = (_a = store.userModule) == null ? void 0 : _a.user) == null ? void 0 : _b.phone;
|
|
3066
|
-
});
|
|
3067
|
-
return (_ctx, _cache) => {
|
|
3068
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
3069
|
-
createVNode(unref(y), { class: "font-semibold" }, {
|
|
3070
|
-
default: withCtx(() => [
|
|
3071
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.faceScanSms.smsAccess")), 1)
|
|
3072
|
-
]),
|
|
3073
|
-
_: 1
|
|
3074
|
-
}),
|
|
3075
|
-
createVNode(unref(y), { class: "text-center text-muted-color" }, {
|
|
3076
|
-
default: withCtx(() => [
|
|
3077
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.faceScanSms.smsVerificationInstructions")), 1)
|
|
3078
|
-
]),
|
|
3079
|
-
_: 1
|
|
3080
|
-
}),
|
|
3081
|
-
createVNode(unref(C), {
|
|
3082
|
-
label: unref(t2)("faceScanModal.faceScanSms.phone"),
|
|
3083
|
-
error: unref(v$).phoneNumber.$error ? unref(v$).phoneNumber.$errors[0].$message : void 0,
|
|
3084
|
-
"data-test-prefix": "face-scan-sms-phone-field"
|
|
3085
|
-
}, {
|
|
3086
|
-
default: withCtx(() => [
|
|
3087
|
-
createVNode(unref(script$6), {
|
|
3088
|
-
id: "basic",
|
|
3089
|
-
modelValue: phoneNumber.value,
|
|
3090
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => phoneNumber.value = $event),
|
|
3091
|
-
mask: "(99) 99999-9999",
|
|
3092
|
-
placeholder: unref(t2)("faceScanModal.faceScanSms.inputPlaceholder"),
|
|
3093
|
-
autoClear: false,
|
|
3094
|
-
invalid: unref(v$).phoneNumber.$error,
|
|
3095
|
-
onInput: handleInput,
|
|
3096
|
-
onBlur: handleInput
|
|
3097
|
-
}, null, 8, ["modelValue", "placeholder", "invalid"])
|
|
3098
|
-
]),
|
|
3099
|
-
_: 1
|
|
3100
|
-
}, 8, ["label", "error"]),
|
|
3101
|
-
createVNode(unref(R), {
|
|
3102
|
-
title: unref(t2)("faceScanModal.error.title"),
|
|
3103
|
-
message: unref(t2)("faceScanModal.faceScanSms.updateInformation")
|
|
3104
|
-
}, null, 8, ["title", "message"]),
|
|
3105
|
-
createVNode(unref($), {
|
|
3106
|
-
label: unref(t2)("faceScanModal.faceScanSms.receiveAccessBySms"),
|
|
3107
|
-
disabled: unref(v$).phoneNumber.$invalid,
|
|
3108
|
-
size: "small",
|
|
3109
|
-
onClick: submitSms
|
|
3110
|
-
}, null, 8, ["label", "disabled"])
|
|
3111
|
-
], 64);
|
|
3112
|
-
};
|
|
3113
|
-
}
|
|
3114
|
-
});
|
|
3115
|
-
const _hoisted_1$7 = { class: "relative flex items-center justify-center w-[100px] aspect-square" };
|
|
3116
|
-
const _hoisted_2$5 = { class: "absolute flex flex-col items-center" };
|
|
3117
|
-
const _sfc_main$d = {
|
|
3118
|
-
__name: "AmTimer",
|
|
3119
|
-
props: {
|
|
3120
|
-
total: {
|
|
3121
|
-
type: Number,
|
|
3122
|
-
required: true
|
|
3123
|
-
},
|
|
3124
|
-
isReverse: {
|
|
3125
|
-
type: Boolean,
|
|
3126
|
-
default: false
|
|
3127
|
-
},
|
|
3128
|
-
autoPlay: {
|
|
3129
|
-
type: Boolean,
|
|
3130
|
-
default: false
|
|
3131
|
-
},
|
|
3132
|
-
color: {
|
|
3133
|
-
type: String,
|
|
3134
|
-
default: "#9b6afa"
|
|
3135
|
-
}
|
|
3136
|
-
},
|
|
3137
|
-
emits: ["start", "stop"],
|
|
3138
|
-
setup(__props, { emit: __emit }) {
|
|
3139
|
-
const props = __props;
|
|
3140
|
-
const { t: t2 } = useI18n();
|
|
3141
|
-
const timeLeft = ref(props.total);
|
|
3142
|
-
const interval = ref(null);
|
|
3143
|
-
const timeLeftPercent = computed(() => {
|
|
3144
|
-
const percent = timeLeft.value * 100 / props.total;
|
|
3145
|
-
return props.isReverse ? 100 - percent : percent;
|
|
3146
|
-
});
|
|
3147
|
-
const emit = __emit;
|
|
3148
|
-
const start = () => {
|
|
3149
|
-
if (interval.value) return;
|
|
3150
|
-
timeLeft.value = props.total;
|
|
3151
|
-
interval.value = setInterval(() => {
|
|
3152
|
-
if (timeLeft.value === 0) {
|
|
3153
|
-
stop();
|
|
3154
|
-
return;
|
|
3155
|
-
}
|
|
3156
|
-
timeLeft.value -= 1;
|
|
3157
|
-
}, 1e3);
|
|
3158
|
-
emit("start");
|
|
3159
|
-
};
|
|
3160
|
-
const stop = () => {
|
|
3161
|
-
clearInterval(interval.value);
|
|
3162
|
-
interval.value = null;
|
|
3163
|
-
emit("stop");
|
|
3164
|
-
};
|
|
3165
|
-
onMounted(() => {
|
|
3166
|
-
if (props.autoPlay) start();
|
|
3167
|
-
});
|
|
3168
|
-
return (_ctx, _cache) => {
|
|
3169
|
-
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
3170
|
-
createVNode(unref(script$3), {
|
|
3171
|
-
modelValue: timeLeftPercent.value,
|
|
3172
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => timeLeftPercent.value = $event),
|
|
3173
|
-
size: 100,
|
|
3174
|
-
readonly: "",
|
|
3175
|
-
min: 0,
|
|
3176
|
-
max: 100,
|
|
3177
|
-
strokeWidth: 8,
|
|
3178
|
-
valueColor: __props.color,
|
|
3179
|
-
rangeColor: __props.isReverse ? __props.color : "#e0e0e0",
|
|
3180
|
-
showValue: false
|
|
3181
|
-
}, null, 8, ["modelValue", "valueColor", "rangeColor"]),
|
|
3182
|
-
createBaseVNode("div", _hoisted_2$5, [
|
|
3183
|
-
createVNode(unref(y), {
|
|
3184
|
-
variant: "title",
|
|
3185
|
-
isStrong: ""
|
|
3186
|
-
}, {
|
|
3187
|
-
default: withCtx(() => [
|
|
3188
|
-
createTextVNode(toDisplayString(timeLeft.value), 1)
|
|
3189
|
-
]),
|
|
3190
|
-
_: 1
|
|
3191
|
-
}),
|
|
3192
|
-
createVNode(unref(y), null, {
|
|
3193
|
-
default: withCtx(() => [
|
|
3194
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.smsTimer.secounds")), 1)
|
|
3195
|
-
]),
|
|
3196
|
-
_: 1
|
|
3197
|
-
})
|
|
3198
|
-
])
|
|
3199
|
-
]);
|
|
3200
|
-
};
|
|
3201
|
-
}
|
|
3202
|
-
};
|
|
3203
|
-
const __default__$7 = { name: "FaceScanSmsTimerStep" };
|
|
3204
|
-
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3205
|
-
...__default__$7,
|
|
3206
|
-
emits: ["nextStep"],
|
|
3207
|
-
setup(__props, { emit: __emit }) {
|
|
3208
|
-
const { t: t2 } = useI18n();
|
|
3209
|
-
const phoneNumber = computed(() => FacematchService$1.getPhoneNumber());
|
|
3210
|
-
const interval = ref();
|
|
3211
|
-
const TOTAL_TIMER_IN_SECONDS = 60;
|
|
3212
|
-
const emit = __emit;
|
|
3213
|
-
const nextStep = () => {
|
|
3214
|
-
clearInterval(interval.value);
|
|
3215
|
-
emit("nextStep");
|
|
3216
|
-
};
|
|
3217
|
-
const onTimerEnd = () => {
|
|
3218
|
-
nextStep();
|
|
3219
|
-
};
|
|
3220
|
-
const getCheckMatchResponse = async () => {
|
|
3221
|
-
if (!await FacematchService$1.checkIfFinish()) return;
|
|
3222
|
-
clearInterval(interval.value);
|
|
3223
|
-
nextStep();
|
|
3224
|
-
};
|
|
3225
|
-
onMounted(() => {
|
|
3226
|
-
interval.value = setInterval(getCheckMatchResponse, 5e3);
|
|
3227
|
-
});
|
|
3228
|
-
onUnmounted(() => {
|
|
3229
|
-
clearInterval(interval.value);
|
|
3230
|
-
});
|
|
3231
|
-
return (_ctx, _cache) => {
|
|
3232
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
3233
|
-
createVNode(unref(y), null, {
|
|
3234
|
-
default: withCtx(() => [
|
|
3235
|
-
createBaseVNode("span", null, [
|
|
3236
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.timer.wait")) + " ", 1),
|
|
3237
|
-
createBaseVNode("strong", null, toDisplayString(phoneNumber.value) + ". ", 1),
|
|
3238
|
-
createTextVNode(" " + toDisplayString(unref(t2)("faceScanModal.timer.message")), 1)
|
|
3239
|
-
])
|
|
3240
|
-
]),
|
|
3241
|
-
_: 1
|
|
3242
|
-
}),
|
|
3243
|
-
createVNode(_sfc_main$d, {
|
|
3244
|
-
ref: "timer",
|
|
3245
|
-
total: TOTAL_TIMER_IN_SECONDS,
|
|
3246
|
-
"is-reverse": false,
|
|
3247
|
-
"auto-play": "",
|
|
3248
|
-
onStop: onTimerEnd
|
|
3249
|
-
}, null, 512),
|
|
3250
|
-
createVNode(unref(y), {
|
|
3251
|
-
variant: "subtitle",
|
|
3252
|
-
isStrong: "",
|
|
3253
|
-
class: "text-primary"
|
|
3254
|
-
}, {
|
|
3255
|
-
default: withCtx(() => [
|
|
3256
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.timer.send")), 1)
|
|
3257
|
-
]),
|
|
3258
|
-
_: 1
|
|
3259
|
-
})
|
|
3260
|
-
], 64);
|
|
3261
|
-
};
|
|
3262
|
-
}
|
|
3263
|
-
});
|
|
3264
|
-
const _hoisted_1$6 = { class: "flex gap-1 w-full items-center" };
|
|
3265
|
-
const __default__$6 = { name: "FaceScanSms" };
|
|
3266
|
-
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3267
|
-
...__default__$6,
|
|
3268
|
-
emits: ["nextStep"],
|
|
3269
|
-
setup(__props, { emit: __emit }) {
|
|
3270
|
-
const { t: t2 } = useI18n();
|
|
3271
|
-
const isPhoneStepActive = ref(true);
|
|
3272
|
-
const emit = __emit;
|
|
3273
|
-
const handleNextStep = () => {
|
|
3274
|
-
if (isPhoneStepActive.value) {
|
|
3275
|
-
isPhoneStepActive.value = false;
|
|
3276
|
-
} else {
|
|
3277
|
-
emit("nextStep");
|
|
3278
|
-
}
|
|
3279
|
-
};
|
|
3280
|
-
return (_ctx, _cache) => {
|
|
3281
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
3282
|
-
createVNode(unref(y), {
|
|
3283
|
-
variant: "title",
|
|
3284
|
-
isStrong: ""
|
|
3285
|
-
}, {
|
|
3286
|
-
default: withCtx(() => [
|
|
3287
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.title")), 1)
|
|
3288
|
-
]),
|
|
3289
|
-
_: 1
|
|
3290
|
-
}),
|
|
3291
|
-
createBaseVNode("div", _hoisted_1$6, [
|
|
3292
|
-
createVNode(unref(script$7), {
|
|
3293
|
-
class: "w-full !h-2",
|
|
3294
|
-
value: 50,
|
|
3295
|
-
showValue: false
|
|
3296
|
-
}),
|
|
3297
|
-
createVNode(unref(y), null, {
|
|
3298
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
3299
|
-
createBaseVNode("strong", { class: "text-primary" }, "1", -1),
|
|
3300
|
-
createBaseVNode("span", { class: "text-muted-color" }, "/2", -1)
|
|
3301
|
-
])),
|
|
3302
|
-
_: 1
|
|
3303
|
-
})
|
|
3304
|
-
]),
|
|
3305
|
-
isPhoneStepActive.value ? (openBlock(), createBlock(_sfc_main$e, {
|
|
3306
|
-
key: 0,
|
|
3307
|
-
onNextStep: handleNextStep
|
|
3308
|
-
})) : (openBlock(), createBlock(_sfc_main$c, {
|
|
3309
|
-
key: 1,
|
|
3310
|
-
onNextStep: handleNextStep
|
|
3311
|
-
}))
|
|
3312
|
-
], 64);
|
|
3313
|
-
};
|
|
3314
|
-
}
|
|
3315
|
-
});
|
|
3316
|
-
const _hoisted_1$5 = { class: "flex gap-1 w-full items-center" };
|
|
3317
|
-
const _hoisted_2$4 = { class: "pending-verification__warning" };
|
|
3318
|
-
const _hoisted_3$3 = { class: "flex flex-col bg-warning-100 rounded p-4" };
|
|
3319
|
-
const _hoisted_4$2 = { class: "alert-title" };
|
|
3320
|
-
const _hoisted_5$1 = { class: "mt-2" };
|
|
3321
|
-
const _hoisted_6$1 = {
|
|
3322
|
-
key: 0,
|
|
3323
|
-
class: "button-loading"
|
|
3324
|
-
};
|
|
3325
|
-
const _hoisted_7 = {
|
|
3326
|
-
key: 1,
|
|
3327
|
-
class: "flex flex-col justify-center gap-2"
|
|
3328
|
-
};
|
|
3329
|
-
const _hoisted_8 = { key: 0 };
|
|
3330
|
-
const __default__$5 = { name: "PendingVerification" };
|
|
3331
|
-
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3332
|
-
...__default__$5,
|
|
3333
|
-
emits: ["resetSteps"],
|
|
3334
|
-
setup(__props, { emit: __emit }) {
|
|
3335
|
-
const { t: t2 } = useI18n();
|
|
3336
|
-
const loadingFaceMatchInfo = ref(false);
|
|
3337
|
-
const isSmsExpired = ref(false);
|
|
3338
|
-
const timer = ref(0);
|
|
3339
|
-
const interval = ref();
|
|
3340
|
-
const formattedTime = computed(() => {
|
|
3341
|
-
const minutes = Math.floor(timer.value / 60);
|
|
3342
|
-
const seconds = timer.value % 60;
|
|
3343
|
-
return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}`;
|
|
3344
|
-
});
|
|
3345
|
-
const canResendSms = computed(() => isSmsExpired.value);
|
|
3346
|
-
const startTimer = () => {
|
|
3347
|
-
interval.value = setInterval(() => {
|
|
3348
|
-
timer.value = Math.max(0, timer.value - 1);
|
|
3349
|
-
if (timer.value === 0) {
|
|
3350
|
-
clearInterval(interval.value);
|
|
3351
|
-
isSmsExpired.value = true;
|
|
3352
|
-
}
|
|
3353
|
-
}, 1e3);
|
|
3354
|
-
};
|
|
3355
|
-
const checkSms = async () => {
|
|
3356
|
-
loadingFaceMatchInfo.value = true;
|
|
3357
|
-
const { isExpired, timeToExpire } = await FacematchService$1.getSmsInfo();
|
|
3358
|
-
timer.value = timeToExpire;
|
|
3359
|
-
isSmsExpired.value = isExpired;
|
|
3360
|
-
if (!isExpired) startTimer();
|
|
3361
|
-
loadingFaceMatchInfo.value = false;
|
|
3362
|
-
};
|
|
3363
|
-
onMounted(() => {
|
|
3364
|
-
checkSms();
|
|
3365
|
-
});
|
|
3366
|
-
onUnmounted(() => {
|
|
3367
|
-
clearInterval(interval.value);
|
|
3368
|
-
});
|
|
3369
|
-
const emit = __emit;
|
|
3370
|
-
const resetSteps = () => emit("resetSteps");
|
|
3371
|
-
return (_ctx, _cache) => {
|
|
3372
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
3373
|
-
createVNode(unref(y), {
|
|
3374
|
-
variant: "title",
|
|
3375
|
-
isStrong: ""
|
|
3376
|
-
}, {
|
|
3377
|
-
default: withCtx(() => [
|
|
3378
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.title")), 1)
|
|
3379
|
-
]),
|
|
3380
|
-
_: 1
|
|
3381
|
-
}),
|
|
3382
|
-
createBaseVNode("div", _hoisted_1$5, [
|
|
3383
|
-
createVNode(unref(script$7), {
|
|
3384
|
-
class: "w-full h-2",
|
|
3385
|
-
value: 100,
|
|
3386
|
-
showValue: false
|
|
3387
|
-
}),
|
|
3388
|
-
createVNode(unref(y), {
|
|
3389
|
-
isStrong: "",
|
|
3390
|
-
class: "text-muted-color"
|
|
3391
|
-
}, {
|
|
3392
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
3393
|
-
createBaseVNode("span", { class: "text-primary font-bold" }, "2", -1),
|
|
3394
|
-
createTextVNode("/2")
|
|
3395
|
-
])),
|
|
3396
|
-
_: 1
|
|
3397
|
-
})
|
|
3398
|
-
]),
|
|
3399
|
-
createVNode(unref(y), {
|
|
3400
|
-
class: "text-muted-color",
|
|
3401
|
-
isStrong: ""
|
|
3402
|
-
}, {
|
|
3403
|
-
default: withCtx(() => [
|
|
3404
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.msLinkInstructions")), 1)
|
|
3405
|
-
]),
|
|
3406
|
-
_: 1
|
|
3407
|
-
}),
|
|
3408
|
-
createBaseVNode("div", _hoisted_2$4, [
|
|
3409
|
-
createBaseVNode("div", _hoisted_3$3, [
|
|
3410
|
-
createBaseVNode("div", _hoisted_4$2, [
|
|
3411
|
-
createVNode(unref(P), {
|
|
3412
|
-
icon: "warning",
|
|
3413
|
-
class: "text-warning-500"
|
|
3414
|
-
}),
|
|
3415
|
-
createVNode(unref(y), { class: "font-semibold" }, {
|
|
3416
|
-
default: withCtx(() => [
|
|
3417
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.warning")), 1)
|
|
3418
|
-
]),
|
|
3419
|
-
_: 1
|
|
3420
|
-
})
|
|
3421
|
-
]),
|
|
3422
|
-
createBaseVNode("div", _hoisted_5$1, [
|
|
3423
|
-
createVNode(unref(y), { class: "font-semibold" }, {
|
|
3424
|
-
default: withCtx(() => [
|
|
3425
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.facialVerificationPendingMessage")), 1)
|
|
3426
|
-
]),
|
|
3427
|
-
_: 1
|
|
3428
|
-
}),
|
|
3429
|
-
createVNode(unref(y), null, {
|
|
3430
|
-
default: withCtx(() => [
|
|
3431
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.smsLinkExpirationMessage")), 1)
|
|
3432
|
-
]),
|
|
3433
|
-
_: 1
|
|
3434
|
-
}),
|
|
3435
|
-
_cache[1] || (_cache[1] = createBaseVNode("hr", { class: "m-3" }, null, -1)),
|
|
3436
|
-
createVNode(unref(y), { class: "font-semibold" }, {
|
|
3437
|
-
default: withCtx(() => [
|
|
3438
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.facialVerificationCompletionQuestion")), 1)
|
|
3439
|
-
]),
|
|
3440
|
-
_: 1
|
|
3441
|
-
}),
|
|
3442
|
-
createVNode(unref(y), null, {
|
|
3443
|
-
default: withCtx(() => [
|
|
3444
|
-
createTextVNode(toDisplayString(unref(t2)("faceScanModal.pendingVerification.facialVerificationAwaitMessage")), 1)
|
|
3445
|
-
]),
|
|
3446
|
-
_: 1
|
|
3447
|
-
})
|
|
3448
|
-
])
|
|
3449
|
-
])
|
|
3450
|
-
]),
|
|
3451
|
-
loadingFaceMatchInfo.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
3452
|
-
createVNode(unref(w))
|
|
3453
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
3454
|
-
createVNode(unref($), {
|
|
3455
|
-
label: unref(t2)("faceScanModal.pendingVerification.resendSms"),
|
|
3456
|
-
size: "small",
|
|
3457
|
-
disabled: !canResendSms.value,
|
|
3458
|
-
onClick: resetSteps
|
|
3459
|
-
}, null, 8, ["label", "disabled"]),
|
|
3460
|
-
!canResendSms.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
3461
|
-
createVNode(unref(y), { class: "text-xs" }, {
|
|
3462
|
-
default: withCtx(() => [
|
|
3463
|
-
createTextVNode(toDisplayString(`${unref(t2)("faceScanModal.pendingVerification.resendSmsDelayMessage")} ${formattedTime.value}`), 1)
|
|
3464
|
-
]),
|
|
3465
|
-
_: 1
|
|
3466
|
-
})
|
|
3467
|
-
])) : createCommentVNode("", true)
|
|
3468
|
-
]))
|
|
3469
|
-
], 64);
|
|
3470
|
-
};
|
|
3471
|
-
}
|
|
3472
|
-
});
|
|
3473
|
-
const PendingVerification = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-d2cdfc64"]]);
|
|
3474
|
-
const __default__$4 = { name: "FaceScanModal" };
|
|
3475
|
-
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
3476
|
-
...__default__$4,
|
|
3477
|
-
setup(__props) {
|
|
3478
|
-
const COMPONENTS = [AlmostThere, _sfc_main$b, PendingVerification];
|
|
3479
|
-
const index = ref(0);
|
|
3480
|
-
const interval = ref();
|
|
3481
|
-
const resetSteps = () => {
|
|
3482
|
-
index.value = 1;
|
|
3483
|
-
};
|
|
3484
|
-
const handleNextStep = () => {
|
|
3485
|
-
index.value++;
|
|
3486
|
-
};
|
|
3487
|
-
onMounted(() => {
|
|
3488
|
-
interval.value = setInterval(async () => {
|
|
3489
|
-
const isFinished = await postOnboardingService.checkIfFinished();
|
|
3490
|
-
if (!isFinished) return;
|
|
3491
|
-
clearInterval(interval.value);
|
|
3492
|
-
location.reload();
|
|
3493
|
-
}, 3e4);
|
|
3494
|
-
});
|
|
3495
|
-
onUnmounted(() => {
|
|
3496
|
-
clearInterval(interval.value);
|
|
3497
|
-
});
|
|
3498
|
-
const alertProps = {
|
|
3499
|
-
message: "faceScanModal.index.facialVerificationMessage",
|
|
3500
|
-
cta: "faceScanModal.index.continuePrompt"
|
|
3501
|
-
};
|
|
3502
|
-
return (_ctx, _cache) => {
|
|
3503
|
-
return openBlock(), createBlock(DashboardOnboardingModal, { alert: alertProps }, {
|
|
3504
|
-
default: withCtx(() => [
|
|
3505
|
-
(openBlock(), createBlock(resolveDynamicComponent(COMPONENTS[index.value]), {
|
|
3506
|
-
onResetSteps: resetSteps,
|
|
3507
|
-
onNextStep: handleNextStep
|
|
3508
|
-
}, null, 32))
|
|
3509
|
-
]),
|
|
3510
|
-
_: 1
|
|
3511
|
-
});
|
|
3512
|
-
};
|
|
3513
|
-
}
|
|
3514
|
-
});
|
|
3515
|
-
const __default__$3 = { name: "DocumentModal" };
|
|
3516
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3517
|
-
...__default__$3,
|
|
3518
|
-
setup(__props) {
|
|
3519
|
-
const { t: t2 } = useI18n();
|
|
3520
|
-
const alertProps = computed(() => ({
|
|
3521
|
-
message: "documentModal.dataAnalysisProcessMessage",
|
|
3522
|
-
cta: "documentModal.waitMessage"
|
|
3523
|
-
}));
|
|
3524
|
-
return (_ctx, _cache) => {
|
|
3525
|
-
return openBlock(), createBlock(DashboardOnboardingModal, {
|
|
3526
|
-
class: "document-modal",
|
|
3527
|
-
alert: alertProps.value
|
|
3528
|
-
}, {
|
|
3529
|
-
default: withCtx(() => [
|
|
3530
|
-
createVNode(unref(y), {
|
|
3531
|
-
variant: "title",
|
|
3532
|
-
isStrong: ""
|
|
3533
|
-
}, {
|
|
3534
|
-
default: withCtx(() => [
|
|
3535
|
-
createTextVNode(toDisplayString(unref(t2)("documentModal.title")), 1)
|
|
3536
|
-
]),
|
|
3537
|
-
_: 1
|
|
3538
|
-
}),
|
|
3539
|
-
createVNode(unref(y), null, {
|
|
3540
|
-
default: withCtx(() => [
|
|
3541
|
-
createTextVNode(toDisplayString(unref(t2)("documentModal.dataSubmissionSuccessMessage")), 1)
|
|
3542
|
-
]),
|
|
3543
|
-
_: 1
|
|
3544
|
-
}),
|
|
3545
|
-
createVNode(unref(R), {
|
|
3546
|
-
title: unref(t2)("documentModal.warning"),
|
|
3547
|
-
message: unref(t2)("documentModal.phoneContactAlert")
|
|
3548
|
-
}, null, 8, ["title", "message"]),
|
|
3549
|
-
createVNode(unref(y), { class: "text-center text-xs" }, {
|
|
3550
|
-
default: withCtx(() => [
|
|
3551
|
-
createTextVNode(toDisplayString(unref(t2)("documentModal.analysisCompletionMessage")), 1)
|
|
3552
|
-
]),
|
|
3553
|
-
_: 1
|
|
3554
|
-
})
|
|
3555
|
-
]),
|
|
3556
|
-
_: 1
|
|
3557
|
-
}, 8, ["alert"]);
|
|
3558
|
-
};
|
|
3559
|
-
}
|
|
3560
|
-
});
|
|
3561
|
-
const __default__$2 = { name: "FaceScanDisabled" };
|
|
3562
|
-
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3563
|
-
...__default__$2,
|
|
3564
|
-
setup(__props) {
|
|
3565
|
-
const modal = ref();
|
|
3566
|
-
const closeModal = () => {
|
|
3567
|
-
var _a;
|
|
3568
|
-
(_a = modal.value) == null ? void 0 : _a.closeModal();
|
|
3569
|
-
};
|
|
3570
|
-
return (_ctx, _cache) => {
|
|
3571
|
-
return openBlock(), createBlock(DashboardOnboardingModal, {
|
|
3572
|
-
ref_key: "modal",
|
|
3573
|
-
ref: modal,
|
|
3574
|
-
class: "facescan-disabled",
|
|
3575
|
-
height: "auto"
|
|
3576
|
-
}, {
|
|
3577
|
-
default: withCtx(() => [
|
|
3578
|
-
createVNode(unref(y), {
|
|
3579
|
-
class: "facescan-disabled__title",
|
|
3580
|
-
as: "h2",
|
|
3581
|
-
variant: "title",
|
|
3582
|
-
isStrong: ""
|
|
3583
|
-
}, {
|
|
3584
|
-
default: withCtx(() => [
|
|
3585
|
-
createTextVNode(toDisplayString(_ctx.$t("faceScanModal.title")), 1)
|
|
3586
|
-
]),
|
|
3587
|
-
_: 1
|
|
3588
|
-
}),
|
|
3589
|
-
createVNode(unref(R), {
|
|
3590
|
-
class: "facescan-disabled__content",
|
|
3591
|
-
dataTestPrefix: "face-scan-disabled",
|
|
3592
|
-
type: "warning",
|
|
3593
|
-
title: _ctx.$t("faceScanModal.warning"),
|
|
3594
|
-
message: _ctx.$t("faceScanModal.unstable")
|
|
3595
|
-
}, null, 8, ["title", "message"]),
|
|
3596
|
-
createVNode(unref($), {
|
|
3597
|
-
class: "facescan-disabled__btn",
|
|
3598
|
-
label: "Tentar mais tarde",
|
|
3599
|
-
size: "small",
|
|
3600
|
-
onClick: closeModal
|
|
3601
|
-
})
|
|
3602
|
-
]),
|
|
3603
|
-
_: 1
|
|
3604
|
-
}, 512);
|
|
3605
|
-
};
|
|
3606
|
-
}
|
|
3607
|
-
});
|
|
3608
|
-
const FaceScanDisabled = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5ba9154a"]]);
|
|
3609
|
-
const __default__$1 = { name: "DashboardOnboarding" };
|
|
3610
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3611
|
-
...__default__$1,
|
|
3612
|
-
setup(__props) {
|
|
3613
|
-
const { step } = usePostOnboarding();
|
|
3614
|
-
const STEP_COMPONENTS = {
|
|
3615
|
-
facescan: _sfc_main$9,
|
|
3616
|
-
document: _sfc_main$8,
|
|
3617
|
-
"facescan-disabled": FaceScanDisabled
|
|
3618
|
-
};
|
|
3619
|
-
return (_ctx, _cache) => {
|
|
3620
|
-
return unref(step) ? (openBlock(), createBlock(resolveDynamicComponent(STEP_COMPONENTS[unref(step)]), { key: 0 })) : createCommentVNode("", true);
|
|
3621
|
-
};
|
|
3622
|
-
}
|
|
3623
|
-
});
|
|
3624
|
-
const _hoisted_1$4 = { class: "dashboard-welcome" };
|
|
3625
|
-
const __default__ = { name: "DashboardWelcome" };
|
|
3626
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3627
|
-
...__default__,
|
|
3628
|
-
setup(__props) {
|
|
3629
|
-
return (_ctx, _cache) => {
|
|
3630
|
-
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
3631
|
-
createVNode(AmText, {
|
|
3632
|
-
as: "h1",
|
|
3633
|
-
variant: "body",
|
|
3634
|
-
"data-test": "dashboard-welcome-subtitle"
|
|
3635
|
-
}, {
|
|
3636
|
-
default: withCtx(() => [
|
|
3637
|
-
createTextVNode(toDisplayString(_ctx.$t("home.home_subtitle")), 1)
|
|
3638
|
-
]),
|
|
3639
|
-
_: 1
|
|
3640
|
-
})
|
|
3641
|
-
]);
|
|
3642
|
-
};
|
|
3643
|
-
}
|
|
3644
|
-
});
|
|
3645
|
-
const DashboardWelcome = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-055d9185"]]);
|
|
3646
|
-
const NOTATION = {
|
|
3647
|
-
K: 10 ** 3,
|
|
3648
|
-
M: 10 ** 6,
|
|
3649
|
-
B: 10 ** 9
|
|
3650
|
-
};
|
|
3651
|
-
const mountNumber = (num, unity) => {
|
|
3652
|
-
const divisor = unity ? NOTATION[unity] : 1;
|
|
3653
|
-
const value = (num / divisor).toFixed(2).replace(".00", "").replace(".", ",");
|
|
3654
|
-
return unity ? `${value}${unity}` : value;
|
|
3655
|
-
};
|
|
3656
|
-
const abbreviateNumber = (num) => {
|
|
3657
|
-
if (num < NOTATION.K) return mountNumber(num);
|
|
3658
|
-
if (num < NOTATION.M) return mountNumber(num, "K");
|
|
3659
|
-
if (num < NOTATION.B) return mountNumber(num, "M");
|
|
3660
|
-
return mountNumber(num, "B");
|
|
3661
|
-
};
|
|
3662
|
-
const GAMIFICATION_PUSHER_KEY = "13180f6f668fb558d0c1";
|
|
3663
|
-
const GAMIFICATION_PUSHER_CLUSTER = "mt1";
|
|
3664
|
-
const GAMIFICATION_PUSHER_EVENT_UPDATE_TPV = "notify.gamification-tpv";
|
|
3665
|
-
const GAMIFICATION_LANDING_PAGE_URL = "https://appmax.com.br/conquistamax/";
|
|
3666
|
-
const GAMIFICATION_ADDRESS_UPDATE_FORM_URL = "https://appmax-1.hubspotpagebuilder.com/appmaxattendereco";
|
|
3667
|
-
const CROSS_BORDER_ID = 2;
|
|
3668
|
-
const INFO_DATA_ADDRESS = {
|
|
3669
|
-
icon: "add_location_alt",
|
|
3670
|
-
url: GAMIFICATION_ADDRESS_UPDATE_FORM_URL,
|
|
3671
|
-
tooltip: "gamification.address.tooltip"
|
|
3672
|
-
};
|
|
3673
|
-
const INFO_DATA_CONQUEST = {
|
|
3674
|
-
icon: "workspace_premium",
|
|
3675
|
-
url: GAMIFICATION_LANDING_PAGE_URL,
|
|
3676
|
-
tooltip: "gamition.conquest.tooltip"
|
|
3677
|
-
};
|
|
3678
|
-
class GamificationService {
|
|
3679
|
-
constructor(apiService = ApiService, userService2) {
|
|
3680
|
-
this.apiService = apiService;
|
|
3681
|
-
this.userService = userService2;
|
|
3682
|
-
}
|
|
3683
|
-
async getData() {
|
|
3684
|
-
const conquestInfo = await this.getConquestInfo();
|
|
3685
|
-
if (conquestInfo) return { progress: void 0, addressInfo: INFO_DATA_ADDRESS, conquestInfo };
|
|
3686
|
-
const route = "/api/dashboard/info-gamification-progress-bar";
|
|
3687
|
-
const response = await this.apiService.get(route);
|
|
3688
|
-
const data2 = response.data;
|
|
3689
|
-
const progress = this.serializeProgressData(data2);
|
|
3690
|
-
return { progress, addressInfo: INFO_DATA_ADDRESS, conquestInfo: void 0 };
|
|
3691
|
-
}
|
|
3692
|
-
serializeProgressData(data2) {
|
|
3693
|
-
const goal = Math.round(data2.achievement_medals.end_revenue_range);
|
|
3694
|
-
const value = Math.round(data2.tpv_bruto);
|
|
3695
|
-
const percentage = Math.min(Math.round(value / goal * 100), 100);
|
|
3696
|
-
const signalCurrency = "R$";
|
|
3697
|
-
return {
|
|
3698
|
-
uuid: data2.uuid,
|
|
3699
|
-
icon: INFO_DATA_CONQUEST.icon,
|
|
3700
|
-
url: INFO_DATA_CONQUEST.url,
|
|
3701
|
-
percentage,
|
|
3702
|
-
value,
|
|
3703
|
-
goal,
|
|
3704
|
-
formattedPercentage: `${percentage}%`,
|
|
3705
|
-
formattedValue: `${signalCurrency} ${abbreviateNumber(value)}`,
|
|
3706
|
-
formattedGoal: `${abbreviateNumber(goal)}`
|
|
3707
|
-
};
|
|
3708
|
-
}
|
|
3709
|
-
async getConquestInfo() {
|
|
3710
|
-
const isCrossBorder = await this.isUserCrossBorder();
|
|
3711
|
-
if (isCrossBorder) return INFO_DATA_CONQUEST;
|
|
3712
|
-
}
|
|
3713
|
-
async isUserCrossBorder() {
|
|
3714
|
-
const { user } = await this.userService.getData();
|
|
3715
|
-
return user.typeId === CROSS_BORDER_ID;
|
|
3716
|
-
}
|
|
3717
|
-
}
|
|
3718
|
-
const gamificationService = new GamificationService(ApiService, userService);
|
|
3719
|
-
class GamificationPusher {
|
|
3720
|
-
constructor(gamificationService2) {
|
|
3721
|
-
__publicField(this, "pusher");
|
|
3722
|
-
this.gamificationService = gamificationService2;
|
|
3723
|
-
this.pusher = new Pusher(GAMIFICATION_PUSHER_KEY, { cluster: GAMIFICATION_PUSHER_CLUSTER });
|
|
3724
|
-
}
|
|
3725
|
-
on(uuid, callback) {
|
|
3726
|
-
this.subscribe(
|
|
3727
|
-
uuid,
|
|
3728
|
-
GAMIFICATION_PUSHER_EVENT_UPDATE_TPV,
|
|
3729
|
-
(data2) => {
|
|
3730
|
-
try {
|
|
3731
|
-
const progress = this.gamificationService.serializeProgressData({ ...data2, uuid });
|
|
3732
|
-
callback(progress);
|
|
3733
|
-
} catch {
|
|
3734
|
-
}
|
|
3735
|
-
}
|
|
3736
|
-
);
|
|
3737
|
-
}
|
|
3738
|
-
off(channel) {
|
|
3739
|
-
this.unsubscribe(channel);
|
|
3740
|
-
}
|
|
3741
|
-
subscribe(channel, event, callback) {
|
|
3742
|
-
this.pusher.subscribe(channel).bind(event, callback);
|
|
3743
|
-
}
|
|
3744
|
-
unsubscribe(channel) {
|
|
3745
|
-
this.pusher.unsubscribe(channel);
|
|
3746
|
-
}
|
|
3747
|
-
}
|
|
3748
|
-
const gamificationPusher = new GamificationPusher(gamificationService);
|
|
3749
|
-
const state = reactive({
|
|
3750
|
-
isLoading: true,
|
|
3751
|
-
error: false,
|
|
3752
|
-
addressInfo: void 0,
|
|
3753
|
-
conquestInfo: void 0,
|
|
3754
|
-
progress: void 0,
|
|
3755
|
-
showModal: false
|
|
3756
|
-
});
|
|
3757
|
-
const show = computed(() => !state.error && !state.isLoading);
|
|
3758
|
-
const startGamificationPusher = () => {
|
|
3759
|
-
var _a;
|
|
3760
|
-
const uuid = (_a = state.progress) == null ? void 0 : _a.uuid;
|
|
3761
|
-
if (!uuid) return;
|
|
3762
|
-
gamificationPusher.on(uuid, (data2) => {
|
|
3763
|
-
state.progress = data2;
|
|
3764
|
-
});
|
|
3765
|
-
};
|
|
3766
|
-
const fetchGamificationData = async () => {
|
|
3767
|
-
try {
|
|
3768
|
-
state.error = false;
|
|
3769
|
-
state.isLoading = true;
|
|
3770
|
-
const data2 = await gamificationService.getData();
|
|
3771
|
-
state.addressInfo = data2.addressInfo;
|
|
3772
|
-
state.conquestInfo = data2.conquestInfo;
|
|
3773
|
-
state.progress = data2.progress;
|
|
3774
|
-
} catch {
|
|
3775
|
-
state.error = true;
|
|
3776
|
-
} finally {
|
|
3777
|
-
state.isLoading = false;
|
|
3778
|
-
}
|
|
3779
|
-
};
|
|
3780
|
-
const useGamification = () => {
|
|
3781
|
-
return {
|
|
3782
|
-
...toRefs(state),
|
|
3783
|
-
show,
|
|
3784
|
-
fetchGamificationData,
|
|
3785
|
-
startGamificationPusher
|
|
3786
|
-
};
|
|
3787
|
-
};
|
|
3788
|
-
const _hoisted_1$3 = { class: "flex" };
|
|
3789
|
-
const _hoisted_2$3 = { class: "flex-1 flex flex-col gap-4" };
|
|
3790
|
-
const _hoisted_3$2 = { class: "flex-1 hidden lg:!block" };
|
|
3791
|
-
const _hoisted_4$1 = ["src"];
|
|
3792
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3793
|
-
...{ name: "GamificationModal" },
|
|
3794
|
-
__name: "GamificationModal",
|
|
3795
|
-
setup(__props) {
|
|
3796
|
-
const { showModal } = useGamification();
|
|
3797
|
-
return (_ctx, _cache) => {
|
|
3798
|
-
return openBlock(), createBlock(unref(script$5), {
|
|
3799
|
-
header: _ctx.$t("gamification.modal.title"),
|
|
3800
|
-
class: "!w-[800px] !max-w-[90%]",
|
|
3801
|
-
modal: "",
|
|
3802
|
-
visible: unref(showModal),
|
|
3803
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(showModal) ? showModal.value = $event : null)
|
|
3804
|
-
}, {
|
|
3805
|
-
default: withCtx(() => [
|
|
3806
|
-
createBaseVNode("div", _hoisted_1$3, [
|
|
3807
|
-
createBaseVNode("div", _hoisted_2$3, [
|
|
3808
|
-
createVNode(unref(y), { variant: "subtitle" }, {
|
|
3809
|
-
default: withCtx(() => [
|
|
3810
|
-
createTextVNode(toDisplayString(_ctx.$t("gamification.modal.description1")), 1)
|
|
3811
|
-
]),
|
|
3812
|
-
_: 1
|
|
3813
|
-
}),
|
|
3814
|
-
createVNode(unref($), {
|
|
3815
|
-
text: "",
|
|
3816
|
-
label: _ctx.$t("gamification.modal.addresBtn"),
|
|
3817
|
-
href: unref(GAMIFICATION_ADDRESS_UPDATE_FORM_URL),
|
|
3818
|
-
target: "_blank"
|
|
3819
|
-
}, null, 8, ["label", "href"]),
|
|
3820
|
-
createVNode(unref(y), { variant: "subtitle" }, {
|
|
3821
|
-
default: withCtx(() => [
|
|
3822
|
-
createTextVNode(toDisplayString(_ctx.$t("gamification.modal.description2")), 1)
|
|
3823
|
-
]),
|
|
3824
|
-
_: 1
|
|
3825
|
-
}),
|
|
3826
|
-
createVNode(unref($), {
|
|
3827
|
-
class: "!w-fit m-auto lg:!m-0",
|
|
3828
|
-
label: _ctx.$t("gamification.modal.blogBtn"),
|
|
3829
|
-
href: unref(GAMIFICATION_LANDING_PAGE_URL),
|
|
3830
|
-
target: "_blank"
|
|
3831
|
-
}, null, 8, ["label", "href"])
|
|
3832
|
-
]),
|
|
3833
|
-
createBaseVNode("div", _hoisted_3$2, [
|
|
3834
|
-
createBaseVNode("img", {
|
|
3835
|
-
src: unref(relativeSrc)("/images/gamification-placas.webp"),
|
|
3836
|
-
alt: "Gamification placas",
|
|
3837
|
-
loading: "lazy",
|
|
3838
|
-
decoding: "async",
|
|
3839
|
-
class: "w-full h-auto"
|
|
3840
|
-
}, null, 8, _hoisted_4$1)
|
|
3841
|
-
])
|
|
3842
|
-
])
|
|
3843
|
-
]),
|
|
3844
|
-
_: 1
|
|
3845
|
-
}, 8, ["header", "visible"]);
|
|
3846
|
-
};
|
|
3847
|
-
}
|
|
3848
|
-
});
|
|
3849
|
-
const _hoisted_1$2 = { "data-test": "gamification-value" };
|
|
3850
|
-
const _hoisted_2$2 = { "data-test": "gamification-goal" };
|
|
3851
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3852
|
-
__name: "Gamification",
|
|
3853
|
-
setup(__props) {
|
|
3854
|
-
const { fetchGamificationData: fetchGamificationData2, startGamificationPusher: startGamificationPusher2, show: show2, progress, showModal } = useGamification();
|
|
3855
|
-
onMounted(async () => {
|
|
3856
|
-
await fetchGamificationData2();
|
|
3857
|
-
startGamificationPusher2();
|
|
3858
|
-
});
|
|
3859
|
-
return (_ctx, _cache) => {
|
|
3860
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
3861
|
-
unref(show2) ? (openBlock(), createBlock(AmCardV3, {
|
|
3862
|
-
key: 0,
|
|
3863
|
-
class: "gamification",
|
|
3864
|
-
placement: "center",
|
|
3865
|
-
onClick: _cache[0] || (_cache[0] = ($event) => showModal.value = true)
|
|
3866
|
-
}, {
|
|
3867
|
-
default: withCtx(() => {
|
|
3868
|
-
var _a;
|
|
3869
|
-
return [
|
|
3870
|
-
createVNode(unref(P), {
|
|
3871
|
-
icon: "workspace_premium",
|
|
3872
|
-
size: "md",
|
|
3873
|
-
class: "text-primary"
|
|
3874
|
-
}),
|
|
3875
|
-
createVNode(unref(y), { class: "text-primary font-semibold" }, {
|
|
3876
|
-
default: withCtx(() => {
|
|
3877
|
-
var _a2;
|
|
3878
|
-
return [
|
|
3879
|
-
createTextVNode(toDisplayString((_a2 = unref(progress)) == null ? void 0 : _a2.formattedPercentage), 1)
|
|
3880
|
-
];
|
|
3881
|
-
}),
|
|
3882
|
-
_: 1
|
|
3883
|
-
}),
|
|
3884
|
-
createVNode(unref(script$7), {
|
|
3885
|
-
class: "flex-1 h-2",
|
|
3886
|
-
value: (_a = unref(progress)) == null ? void 0 : _a.percentage,
|
|
3887
|
-
showValue: false
|
|
3888
|
-
}, null, 8, ["value"]),
|
|
3889
|
-
createVNode(unref(y), { class: "flex text-[13px] items-center text-muted-color" }, {
|
|
3890
|
-
default: withCtx(() => {
|
|
3891
|
-
var _a2, _b;
|
|
3892
|
-
return [
|
|
3893
|
-
_cache[1] || (_cache[1] = createTextVNode(" ")),
|
|
3894
|
-
createBaseVNode("strong", _hoisted_1$2, toDisplayString((_a2 = unref(progress)) == null ? void 0 : _a2.formattedValue), 1),
|
|
3895
|
-
_cache[2] || (_cache[2] = createTextVNode(" / ")),
|
|
3896
|
-
createBaseVNode("span", _hoisted_2$2, toDisplayString((_b = unref(progress)) == null ? void 0 : _b.formattedGoal), 1)
|
|
3897
|
-
];
|
|
3898
|
-
}),
|
|
3899
|
-
_: 1
|
|
3900
|
-
})
|
|
3901
|
-
];
|
|
3902
|
-
}),
|
|
3903
|
-
_: 1
|
|
3904
|
-
})) : createCommentVNode("", true),
|
|
3905
|
-
createVNode(_sfc_main$4)
|
|
3906
|
-
], 64);
|
|
3907
|
-
};
|
|
3908
|
-
}
|
|
3909
|
-
});
|
|
3910
|
-
const Gamification = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6a14e29d"]]);
|
|
3911
|
-
const _hoisted_1$1 = {
|
|
3912
|
-
key: 0,
|
|
3913
|
-
id: "vitrine"
|
|
3914
|
-
};
|
|
3915
|
-
const _hoisted_2$1 = ["id"];
|
|
3916
|
-
const _hoisted_3$1 = { draggable: "false" };
|
|
3917
|
-
const _hoisted_4 = ["srcset"];
|
|
3918
|
-
const _hoisted_5 = ["src"];
|
|
3919
|
-
const _hoisted_6 = { class: "grid sm:grid-cols-2 gap-3 mt-6" };
|
|
3920
|
-
const APP_STORE_URL = "https://apps.apple.com/br/app/max-banco-digital-100-por-ia/id6746756335";
|
|
3921
|
-
const PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=br.com.appmax";
|
|
3922
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3923
|
-
__name: "Vitrine",
|
|
3924
|
-
setup(__props) {
|
|
3925
|
-
const isActive = (initialDate, finalDate) => {
|
|
3926
|
-
const now = /* @__PURE__ */ new Date();
|
|
3927
|
-
if (!initialDate && true) return false;
|
|
3928
|
-
if (!initialDate) return finalDate > now;
|
|
3929
|
-
return initialDate < now;
|
|
3930
|
-
};
|
|
3931
|
-
const showModal = ref(false);
|
|
3932
|
-
const openModal = () => {
|
|
3933
|
-
showModal.value = true;
|
|
3934
|
-
};
|
|
3935
|
-
const closeModal = () => {
|
|
3936
|
-
showModal.value = false;
|
|
3937
|
-
};
|
|
3938
|
-
const data2 = {
|
|
3939
|
-
active: isActive(/* @__PURE__ */ new Date("2025-11-23")),
|
|
3940
|
-
id: "vitrine--max-app",
|
|
3941
|
-
desktop: relativeSrc("/images/ads/vitrine/20251124-max-app-desktop.png"),
|
|
3942
|
-
mobile: relativeSrc("/images/ads/vitrine/20251124-max-app-mobile.png")
|
|
3943
|
-
// link: MAX_LINK,
|
|
3944
|
-
};
|
|
3945
|
-
return (_ctx, _cache) => {
|
|
3946
|
-
return data2.active ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
3947
|
-
createVNode(AmCardV3, { style: { "padding": "0", "overflow": "hidden" } }, {
|
|
3948
|
-
default: withCtx(() => [
|
|
3949
|
-
createBaseVNode("div", {
|
|
3950
|
-
id: data2.id,
|
|
3951
|
-
class: "block cursor-pointer",
|
|
3952
|
-
onClick: openModal
|
|
3953
|
-
}, [
|
|
3954
|
-
createBaseVNode("picture", _hoisted_3$1, [
|
|
3955
|
-
createBaseVNode("source", {
|
|
3956
|
-
media: "(min-width: 800px)",
|
|
3957
|
-
srcset: data2.desktop,
|
|
3958
|
-
width: "1600",
|
|
3959
|
-
height: "400"
|
|
3960
|
-
}, null, 8, _hoisted_4),
|
|
3961
|
-
createBaseVNode("img", {
|
|
3962
|
-
src: data2.mobile,
|
|
3963
|
-
alt: "Vitrine",
|
|
3964
|
-
width: "400",
|
|
3965
|
-
height: "200",
|
|
3966
|
-
class: "w-full h-auto",
|
|
3967
|
-
draggable: "false"
|
|
3968
|
-
}, null, 8, _hoisted_5)
|
|
3969
|
-
])
|
|
3970
|
-
], 8, _hoisted_2$1)
|
|
3971
|
-
]),
|
|
3972
|
-
_: 1
|
|
3973
|
-
}),
|
|
3974
|
-
createVNode(AmModalV3, {
|
|
3975
|
-
modelValue: showModal.value,
|
|
3976
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal.value = $event),
|
|
3977
|
-
title: "Baixe o app do Max",
|
|
3978
|
-
maxWidth: 500,
|
|
3979
|
-
dataTestPrefix: "vitrine-app-download-modal",
|
|
3980
|
-
onClose: closeModal
|
|
3981
|
-
}, {
|
|
3982
|
-
default: withCtx(() => [
|
|
3983
|
-
createVNode(unref(y), { variant: "body" }, {
|
|
3984
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
3985
|
-
createTextVNode(" Experimente o app com a melhor usabilidade. ")
|
|
3986
|
-
])),
|
|
3987
|
-
_: 1
|
|
3988
|
-
}),
|
|
3989
|
-
createBaseVNode("div", _hoisted_6, [
|
|
3990
|
-
createVNode(unref($), {
|
|
3991
|
-
id: `${data2.id}--appstore`,
|
|
3992
|
-
onClose: closeModal,
|
|
3993
|
-
href: APP_STORE_URL,
|
|
3994
|
-
target: "_blank",
|
|
3995
|
-
rel: "noopener noreferrer",
|
|
3996
|
-
style: { "--p-button-outlined-primary-border-color": "#ccc" },
|
|
3997
|
-
outlined: ""
|
|
3998
|
-
}, {
|
|
3999
|
-
default: withCtx(() => [
|
|
4000
|
-
_cache[4] || (_cache[4] = createBaseVNode("div", null, [
|
|
4001
|
-
createBaseVNode("svg", {
|
|
4002
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4003
|
-
viewBox: "0 0 50 50",
|
|
4004
|
-
width: "32px",
|
|
4005
|
-
height: "32px"
|
|
4006
|
-
}, [
|
|
4007
|
-
createBaseVNode("path", {
|
|
4008
|
-
fill: "black",
|
|
4009
|
-
d: "M 44.527344 34.75 C 43.449219 37.144531 42.929688 38.214844 41.542969 40.328125 C 39.601563 43.28125 36.863281 46.96875 33.480469 46.992188 C 30.46875 47.019531 29.691406 45.027344 25.601563 45.0625 C 21.515625 45.082031 20.664063 47.03125 17.648438 47 C 14.261719 46.96875 11.671875 43.648438 9.730469 40.699219 C 4.300781 32.429688 3.726563 22.734375 7.082031 17.578125 C 9.457031 13.921875 13.210938 11.773438 16.738281 11.773438 C 20.332031 11.773438 22.589844 13.746094 25.558594 13.746094 C 28.441406 13.746094 30.195313 11.769531 34.351563 11.769531 C 37.492188 11.769531 40.8125 13.480469 43.1875 16.433594 C 35.421875 20.691406 36.683594 31.78125 44.527344 34.75 Z M 31.195313 8.46875 C 32.707031 6.527344 33.855469 3.789063 33.4375 1 C 30.972656 1.167969 28.089844 2.742188 26.40625 4.78125 C 24.878906 6.640625 23.613281 9.398438 24.105469 12.066406 C 26.796875 12.152344 29.582031 10.546875 31.195313 8.46875 Z"
|
|
4010
|
-
})
|
|
4011
|
-
])
|
|
4012
|
-
], -1)),
|
|
4013
|
-
createBaseVNode("div", null, [
|
|
4014
|
-
createVNode(unref(y), {
|
|
4015
|
-
size: "small",
|
|
4016
|
-
style: { "line-height": "10px" },
|
|
4017
|
-
class: "text-muted-color"
|
|
4018
|
-
}, {
|
|
4019
|
-
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
4020
|
-
createTextVNode("Baixe na")
|
|
4021
|
-
])),
|
|
4022
|
-
_: 1
|
|
4023
|
-
}),
|
|
4024
|
-
createVNode(unref(y), {
|
|
4025
|
-
variant: "subtitle",
|
|
4026
|
-
size: "large"
|
|
4027
|
-
}, {
|
|
4028
|
-
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
4029
|
-
createTextVNode("App Store")
|
|
4030
|
-
])),
|
|
4031
|
-
_: 1
|
|
4032
|
-
})
|
|
4033
|
-
])
|
|
4034
|
-
]),
|
|
4035
|
-
_: 1
|
|
4036
|
-
}, 8, ["id"]),
|
|
4037
|
-
createVNode(unref($), {
|
|
4038
|
-
id: `${data2.id}--playstore`,
|
|
4039
|
-
onClose: closeModal,
|
|
4040
|
-
href: PLAY_STORE_URL,
|
|
4041
|
-
target: "_blank",
|
|
4042
|
-
rel: "noopener noreferrer",
|
|
4043
|
-
style: { "--p-button-outlined-primary-border-color": "#ccc" },
|
|
4044
|
-
outlined: ""
|
|
4045
|
-
}, {
|
|
4046
|
-
default: withCtx(() => [
|
|
4047
|
-
_cache[7] || (_cache[7] = createBaseVNode("div", null, [
|
|
4048
|
-
createBaseVNode("svg", {
|
|
4049
|
-
viewBox: "0 0 40 40",
|
|
4050
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4051
|
-
width: "32px",
|
|
4052
|
-
height: "32px"
|
|
4053
|
-
}, [
|
|
4054
|
-
createBaseVNode("path", {
|
|
4055
|
-
fill: "none",
|
|
4056
|
-
d: "M0,0h40v40H0V0z"
|
|
4057
|
-
}),
|
|
4058
|
-
createBaseVNode("g", null, [
|
|
4059
|
-
createBaseVNode("path", {
|
|
4060
|
-
d: "M19.7,19.2L4.3,35.3c0,0,0,0,0,0c0.5,1.7,2.1,3,4,3c0.8,0,1.5-0.2,2.1-0.6l0,0l17.4-9.9L19.7,19.2z",
|
|
4061
|
-
fill: "#EA4335"
|
|
4062
|
-
}),
|
|
4063
|
-
createBaseVNode("path", {
|
|
4064
|
-
d: "M35.3,16.4L35.3,16.4l-7.5-4.3l-8.4,7.4l8.5,8.3l7.5-4.2c1.3-0.7,2.2-2.1,2.2-3.6C37.5,18.5,36.6,17.1,35.3,16.4z",
|
|
4065
|
-
fill: "#FBBC04"
|
|
4066
|
-
}),
|
|
4067
|
-
createBaseVNode("path", {
|
|
4068
|
-
d: "M4.3,4.7C4.2,5,4.2,5.4,4.2,5.8v28.5c0,0.4,0,0.7,0.1,1.1l16-15.7L4.3,4.7z",
|
|
4069
|
-
fill: "#4285F4"
|
|
4070
|
-
}),
|
|
4071
|
-
createBaseVNode("path", {
|
|
4072
|
-
d: "M19.8,20l8-7.9L10.5,2.3C9.9,1.9,9.1,1.7,8.3,1.7c-1.9,0-3.6,1.3-4,3c0,0,0,0,0,0L19.8,20z",
|
|
4073
|
-
fill: "#34A853"
|
|
4074
|
-
})
|
|
4075
|
-
])
|
|
4076
|
-
])
|
|
4077
|
-
], -1)),
|
|
4078
|
-
createBaseVNode("div", null, [
|
|
4079
|
-
createVNode(unref(y), {
|
|
4080
|
-
size: "small",
|
|
4081
|
-
style: { "line-height": "10px" },
|
|
4082
|
-
class: "text-muted-color"
|
|
4083
|
-
}, {
|
|
4084
|
-
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
4085
|
-
createTextVNode("Baixe no")
|
|
4086
|
-
])),
|
|
4087
|
-
_: 1
|
|
4088
|
-
}),
|
|
4089
|
-
createVNode(unref(y), {
|
|
4090
|
-
variant: "subtitle",
|
|
4091
|
-
size: "large"
|
|
4092
|
-
}, {
|
|
4093
|
-
default: withCtx(() => _cache[6] || (_cache[6] = [
|
|
4094
|
-
createTextVNode("Google Play")
|
|
4095
|
-
])),
|
|
4096
|
-
_: 1
|
|
4097
|
-
})
|
|
4098
|
-
])
|
|
4099
|
-
]),
|
|
4100
|
-
_: 1
|
|
4101
|
-
}, 8, ["id"])
|
|
4102
|
-
])
|
|
4103
|
-
]),
|
|
4104
|
-
_: 1
|
|
4105
|
-
}, 8, ["modelValue"])
|
|
4106
|
-
])) : createCommentVNode("", true);
|
|
4107
|
-
};
|
|
4108
|
-
}
|
|
4109
|
-
});
|
|
4110
|
-
const _hoisted_1 = { class: "dashboard" };
|
|
4111
|
-
const _hoisted_2 = { class: "dashboard__header" };
|
|
4112
|
-
const _hoisted_3 = { class: "dashboard__body" };
|
|
4113
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4114
|
-
__name: "DashboardLayout",
|
|
4115
|
-
setup(__props) {
|
|
4116
|
-
const { show: showGamification } = useGamification();
|
|
4117
|
-
const isMobile = useBreakpoint("mobile");
|
|
4118
|
-
const isDesktop = useBreakpoint("desktop");
|
|
4119
|
-
const route = useRoute();
|
|
4120
|
-
const { t: t2 } = useI18n();
|
|
4121
|
-
const isProducerTeam = userService.isProducerTeam();
|
|
4122
|
-
const userProfile = isProducerTeam ? "isProducerTeam" : "default";
|
|
4123
|
-
const profileConfig = dashboardConfig.profiles[userProfile];
|
|
4124
|
-
const isLoading = ref(true);
|
|
4125
|
-
const error = ref(false);
|
|
4126
|
-
const isInternationalTabActive = ref(false);
|
|
4127
|
-
const isSalesRecoveryAllowed = ref(false);
|
|
4128
|
-
const dateRange = ref();
|
|
4129
|
-
const dashboardKey = ref(0);
|
|
4130
|
-
const hasInternationalFeature = ref(false);
|
|
4131
|
-
const internationalFeatureIsLoading = ref(true);
|
|
4132
|
-
const isCrossborderInInternationalFlow = ref(false);
|
|
4133
|
-
const showInternationalHint = ref(false);
|
|
4134
|
-
const cards = computed(() => {
|
|
4135
|
-
let nationalFilteredCards = profileConfig.nationalCards.filter(validateCard);
|
|
4136
|
-
if (isMobile && nationalFilteredCards.length >= 4) {
|
|
4137
|
-
const [fourthItem] = nationalFilteredCards.splice(3, 1);
|
|
4138
|
-
nationalFilteredCards.splice(1, 0, fourthItem);
|
|
4139
|
-
}
|
|
4140
|
-
if (!hasInternationalFeature.value) return nationalFilteredCards;
|
|
4141
|
-
const internationalFilteredCards = profileConfig.internationalCards.filter(validateCard);
|
|
4142
|
-
return isInternationalTabActive.value ? internationalFilteredCards : nationalFilteredCards;
|
|
4143
|
-
});
|
|
4144
|
-
const errorMessage = computed(() => error.value ? t2("card.errorEmptySiteFilter") : "");
|
|
4145
|
-
const onDateRangeChange = (range) => dateRange.value = range;
|
|
4146
|
-
const onInternationalTabChange = (isActive) => isInternationalTabActive.value = isActive;
|
|
4147
|
-
const checkPermissionSalesRecovery2 = async () => {
|
|
4148
|
-
isLoading.value = true;
|
|
4149
|
-
const hasPermission = await AppTrackService.checkPermissionSalesRecovery();
|
|
4150
|
-
isSalesRecoveryAllowed.value = !!hasPermission;
|
|
4151
|
-
isLoading.value = false;
|
|
4152
|
-
};
|
|
4153
|
-
const validateCard = (card) => {
|
|
4154
|
-
const shouldValidate = typeof card.hasPermissionSalesRecovery === "boolean";
|
|
4155
|
-
if (!shouldValidate) return true;
|
|
4156
|
-
return card.hasPermissionSalesRecovery === isSalesRecoveryAllowed.value;
|
|
4157
|
-
};
|
|
4158
|
-
const updateFiltersSites = async (event) => {
|
|
4159
|
-
try {
|
|
4160
|
-
error.value = !event.detail.hasGlobalSites;
|
|
4161
|
-
if (error.value) return;
|
|
4162
|
-
isLoading.value = true;
|
|
4163
|
-
await dashboardService.clearCache();
|
|
4164
|
-
dashboardKey.value += 1;
|
|
4165
|
-
isLoading.value = false;
|
|
4166
|
-
} catch {
|
|
4167
|
-
console.error("Error updating filters sites");
|
|
4168
|
-
}
|
|
4169
|
-
};
|
|
4170
|
-
const initialize = async () => {
|
|
4171
|
-
await dashboardService.clearCache();
|
|
4172
|
-
await checkPermissionSalesRecovery2();
|
|
4173
|
-
const userData = await userService.getData();
|
|
4174
|
-
hasInternationalFeature.value = userData.internationalFeatureAllowed;
|
|
4175
|
-
isCrossborderInInternationalFlow.value = userData.isCrossborderInInternationalFlow;
|
|
4176
|
-
internationalFeatureIsLoading.value = false;
|
|
4177
|
-
};
|
|
4178
|
-
onMounted(() => {
|
|
4179
|
-
const storageHistory = localStorage.getItem("routeHistory");
|
|
4180
|
-
const routeHistory = storageHistory ? JSON.parse(storageHistory) : [];
|
|
4181
|
-
const initialPath = route.fullPath;
|
|
4182
|
-
if (routeHistory[routeHistory.length - 1] !== initialPath) {
|
|
4183
|
-
routeHistory.push(initialPath);
|
|
4184
|
-
localStorage.setItem("routeHistory", JSON.stringify(routeHistory));
|
|
4185
|
-
}
|
|
4186
|
-
document.addEventListener("updateFiltersSites", updateFiltersSites);
|
|
4187
|
-
initialize();
|
|
4188
|
-
const storedHint = localStorage.getItem("showInternationalHint");
|
|
4189
|
-
showInternationalHint.value = storedHint === "true";
|
|
4190
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
4191
|
-
if (urlParams.has("openChat")) {
|
|
4192
|
-
const openChat = urlParams.get("openChat");
|
|
4193
|
-
if (openChat === "1") {
|
|
4194
|
-
Intercom("showNewMessage");
|
|
4195
|
-
}
|
|
4196
|
-
}
|
|
4197
|
-
});
|
|
4198
|
-
onUnmounted(() => {
|
|
4199
|
-
document.removeEventListener("updateFiltersSites", updateFiltersSites);
|
|
4200
|
-
});
|
|
4201
|
-
return (_ctx, _cache) => {
|
|
4202
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
4203
|
-
createVNode(unref(_sfc_main$2)),
|
|
4204
|
-
createBaseVNode("div", _hoisted_2, [
|
|
4205
|
-
unref(isDesktop) && !unref(showGamification) ? (openBlock(), createBlock(DashboardWelcome, { key: 0 })) : createCommentVNode("", true),
|
|
4206
|
-
createVNode(Gamification),
|
|
4207
|
-
createVNode(DashboardFilters, {
|
|
4208
|
-
hasInternationalFeature: hasInternationalFeature.value,
|
|
4209
|
-
internationalFeatureIsLoading: internationalFeatureIsLoading.value,
|
|
4210
|
-
isCrossborderInInternationalFlow: isCrossborderInInternationalFlow.value,
|
|
4211
|
-
onChangeInternationalTab: onInternationalTabChange,
|
|
4212
|
-
onChangeDateRange: onDateRangeChange
|
|
4213
|
-
}, null, 8, ["hasInternationalFeature", "internationalFeatureIsLoading", "isCrossborderInInternationalFlow"])
|
|
4214
|
-
]),
|
|
4215
|
-
createBaseVNode("div", _hoisted_3, [
|
|
4216
|
-
createVNode(_sfc_main$6),
|
|
4217
|
-
(openBlock(), createBlock(DashboardMain, {
|
|
4218
|
-
key: dashboardKey.value,
|
|
4219
|
-
testName: isInternationalTabActive.value ? "international" : "national",
|
|
4220
|
-
cards: cards.value,
|
|
4221
|
-
dateRange: dateRange.value,
|
|
4222
|
-
isLoading: isLoading.value,
|
|
4223
|
-
errorMessage: errorMessage.value
|
|
4224
|
-
}, null, 8, ["testName", "cards", "dateRange", "isLoading", "errorMessage"])),
|
|
4225
|
-
createVNode(_sfc_main$q)
|
|
4226
|
-
])
|
|
4227
|
-
]);
|
|
4228
|
-
};
|
|
4229
|
-
}
|
|
4230
|
-
});
|
|
4231
|
-
const DashboardLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d9cd69f9"]]);
|
|
4232
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4233
|
-
__name: "DashboardHome",
|
|
4234
|
-
setup(__props) {
|
|
4235
|
-
return (_ctx, _cache) => {
|
|
4236
|
-
return openBlock(), createBlock(unref(DashboardLayout));
|
|
4237
|
-
};
|
|
4238
|
-
}
|
|
4239
|
-
});
|
|
4240
|
-
const DashboardHome = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4241
|
-
__proto__: null,
|
|
4242
|
-
default: _sfc_main
|
|
4243
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
4244
|
-
export {
|
|
4245
|
-
CHART_COLORS as C,
|
|
4246
|
-
DashboardHome as D
|
|
4247
|
-
};
|