@feedmepos/mf-payment 0.0.0-beta.3 → 0.0.0-beta.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js → AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js} +1 -1
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js +28 -0
- package/dist/{Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js → Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js} +9 -9
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/{PayoutAccount-BVljEwn3.js → PDFViewer-CjH_C1uT.js} +10851 -14329
- package/dist/PayoutAccount-Bkncr_cB.js +612 -0
- package/dist/PayoutAccount-D4mqNLsl.js +272 -0
- package/dist/PayoutAccountSetting-B1hM-zzy.js +776 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
- package/dist/Settlement-DtcJVp3Z.js +144 -0
- package/dist/Settlement-kXEsjqGo.js +150 -0
- package/dist/SettlementTransactions-5JuImQzZ.js +334 -0
- package/dist/{SettlementTransactions-C3dnWHkD.js → SettlementTransactions-csNNWUX5.js} +99 -105
- package/dist/Terminal-DGfySdfA.js +339 -0
- package/dist/TerminalSetting-CucVft_p.js +374 -0
- package/dist/TerminalTransaction-CwoclWJ5.js +237 -0
- package/dist/TerminalTransaction-DRlFVw4p.js +243 -0
- package/dist/Transaction-CKFRlYUk.js +243 -0
- package/dist/Transaction-DA6UzVnz.js +242 -0
- package/dist/api/index.d.ts +12 -0
- package/dist/api/pagination.d.ts +20 -0
- package/dist/api/payment-gateway/index.d.ts +9 -0
- package/dist/api/payout/index.d.ts +2 -1
- package/dist/api/settlement/index.d.ts +7 -13
- package/dist/api/terminal/index.d.ts +12 -1
- package/dist/api/terminal-transaction/index.d.ts +9 -0
- package/dist/api/transaction/index.d.ts +6 -2
- package/dist/app.d.ts +3 -0
- package/dist/app.js +105 -82
- package/dist/assets/icons/index.d.ts +1 -3
- package/dist/assets-RXBV3tUm.js +42 -0
- package/dist/clipboard-4jh1WteU.js +10 -0
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/AutoCopyCell.vue.d.ts +6 -0
- package/dist/components/CursorTable/index.vue.d.ts +16 -5
- package/dist/components/PDFViewer.vue.d.ts +0 -2
- package/dist/components/RestaurantSelector.vue.d.ts +2 -0
- package/dist/error-K1CakhA9.js +6 -0
- package/dist/{index-B8_4waUa.js → index-BS_dGfh_.js} +1 -1
- package/dist/index-CJp88CGw.js +34 -0
- package/dist/index-CNmg4bnZ.js +40 -0
- package/dist/index-C_44uoxW.js +55889 -0
- package/dist/index-CbUxRjwz.js +47 -0
- package/dist/{index-CjCiGW2Y.js → index-Cl2XhO9t.js} +13 -23
- package/dist/index.vue_vue_type_script_setup_true_lang-GkJ2OZPm.js +155 -0
- package/dist/package.json +8 -8
- package/dist/{index-D-lMrCvM.js → payout-account-C_01-U_N.js} +770 -801
- package/dist/plugins.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{transaction-fdJNol6A.js → transaction-yTOBjyUq.js} +29 -13
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/payout-account/PayoutAccountSetting.vue.d.ts +11 -1
- package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +90 -0
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
- package/package.json +20 -20
- package/dist/PayoutAccount-J3GJxUjj.js +0 -266
- package/dist/Settlement-C4IEccV6.js +0 -136
- package/dist/Settlement-D4gdbOE0.js +0 -132
- package/dist/SettlementTransactions-DYelInkD.js +0 -351
- package/dist/Terminal-Co7KPrrb.js +0 -204
- package/dist/TerminalTransaction-CtVBUTMg.js +0 -240
- package/dist/Transaction-CvDEP2Uq.js +0 -242
- package/dist/Transaction-Rk0g5_Gn.js +0 -241
- package/dist/assets-CZ2m5tCN.js +0 -43
- package/dist/favicon.ico +0 -0
- package/dist/icons/anydesk.svg +0 -1
- package/dist/icons/sort.svg +0 -3
- package/dist/images/gateway/ccdc.svg +0 -44
- package/dist/images/gateway/fiuu.jpg +0 -0
- package/dist/images/gateway/fm.svg +0 -44
- package/dist/images/gateway/rm.jpg +0 -0
- package/dist/images/method/BNPL/Ablr/Ablr_SVG.svg +0 -7
- package/dist/images/method/BNPL/Ablr/Ablr_V1_ROU.svg +0 -4
- package/dist/images/method/BNPL/Ablr/Ablr_V1_SQU.svg +0 -4
- package/dist/images/method/BNPL/Ablr/Ablr_V2_ROU.svg +0 -7
- package/dist/images/method/BNPL/Ablr/Ablr_V2_SQU.svg +0 -7
- package/dist/images/method/BNPL/Atome/Atome_SVG.svg +0 -4
- package/dist/images/method/BNPL/Atome/Atome_V1_ROU.svg +0 -4
- package/dist/images/method/BNPL/Atome/Atome_V1_SQU.svg +0 -4
- package/dist/images/method/BNPL/Atome/Atome_V2_ROU.svg +0 -4
- package/dist/images/method/BNPL/Atome/Atome_V2_SQU.svg +0 -4
- package/dist/images/method/BNPL/Atome/Atome_V3_ROU.svg +0 -5
- package/dist/images/method/BNPL/Atome/Atome_V3_SQU.svg +0 -5
- package/dist/images/method/BNPL/IOUPay/IOUPay_SVG.svg +0 -12
- package/dist/images/method/BNPL/IOUPay/IOUPay_V1_ROU.svg +0 -7
- package/dist/images/method/BNPL/IOUPay/IOUPay_V1_SQU.svg +0 -7
- package/dist/images/method/BNPL/IOUPay/IOUPay_V2_ROU.svg +0 -13
- package/dist/images/method/BNPL/IOUPay/IOUPay_V2_SQU.svg +0 -13
- package/dist/images/method/BNPL/ShopBack/ShopBack_SVG.svg +0 -6
- package/dist/images/method/BNPL/ShopBack/ShopBack_V1_ROU.svg +0 -6
- package/dist/images/method/BNPL/ShopBack/ShopBack_V1_SQU.svg +0 -6
- package/dist/images/method/BNPL/ShopBack/ShopBack_V2_ROU.svg +0 -4
- package/dist/images/method/BNPL/ShopBack/ShopBack_V2_SQU.svg +0 -4
- package/dist/images/method/BNPL/Split/Split_SVG.svg +0 -4
- package/dist/images/method/BNPL/Split/Split_V1_ROU.svg +0 -5
- package/dist/images/method/BNPL/Split/Split_V1_SQU.svg +0 -5
- package/dist/images/method/BNPL/Split/Split_V2_ROU.svg +0 -5
- package/dist/images/method/BNPL/Split/Split_V2_SQU.svg +0 -5
- package/dist/images/method/BNPL/Split/Split_V3_ROU.svg +0 -4
- package/dist/images/method/BNPL/Split/Split_V3_SQU.svg +0 -4
- package/dist/images/method/BNPL/Split/Split_V4_ROU.svg +0 -4
- package/dist/images/method/BNPL/Split/Split_V4_SQU.svg +0 -4
- package/dist/images/method/Banks/AEONBank/AEONBank_SVG.svg +0 -16
- package/dist/images/method/Banks/AEONBank/AEONBank_V1_BSQU.svg +0 -17
- package/dist/images/method/Banks/AEONBank/AEONBank_V1_LG.svg +0 -17
- package/dist/images/method/Banks/AEONBank/AEONBank_V1_ROU.svg +0 -6
- package/dist/images/method/Banks/AEONBank/AEONBank_V1_SQU.svg +0 -6
- package/dist/images/method/Banks/AEONBank/AEONBank_V2_BSQU.svg +0 -17
- package/dist/images/method/Banks/AEONBank/AEONBank_V2_LG.svg +0 -17
- package/dist/images/method/Banks/AEONBank/AEONBank_V2_ROU.svg +0 -6
- package/dist/images/method/Banks/AEONBank/AEONBank_V2_SQU.svg +0 -6
- package/dist/images/method/Banks/AffinBank/AffinBank_SVG.svg +0 -56
- package/dist/images/method/Banks/AffinBank/AffinBank_V1_BSQU.svg +0 -57
- package/dist/images/method/Banks/AffinBank/AffinBank_V1_LG.svg +0 -57
- package/dist/images/method/Banks/AffinBank/AffinBank_V1_ROU.svg +0 -10
- package/dist/images/method/Banks/AffinBank/AffinBank_V1_SQU.svg +0 -10
- package/dist/images/method/Banks/AffinBank/AffinBank_V2_BSQU.svg +0 -57
- package/dist/images/method/Banks/AffinBank/AffinBank_V2_LG.svg +0 -57
- package/dist/images/method/Banks/AffinBank/AffinBank_V2_ROU.svg +0 -10
- package/dist/images/method/Banks/AffinBank/AffinBank_V2_SQU.svg +0 -10
- package/dist/images/method/Banks/AllianceBank/AllianceBank_SVG.svg +0 -45
- package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_BSQU.svg +0 -46
- package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_LG.svg +0 -46
- package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_ROU.svg +0 -34
- package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_SQU.svg +0 -34
- package/dist/images/method/Banks/AmBank/AmBank_SVG.svg +0 -18
- package/dist/images/method/Banks/AmBank/AmBank_V1_BSQU.svg +0 -13
- package/dist/images/method/Banks/AmBank/AmBank_V1_LG.svg +0 -13
- package/dist/images/method/Banks/AmBank/AmBank_V1_ROU.svg +0 -7
- package/dist/images/method/Banks/AmBank/AmBank_V1_SQU.svg +0 -7
- package/dist/images/method/Banks/AmBank/AmBank_V2_BSQU.svg +0 -13
- package/dist/images/method/Banks/AmBank/AmBank_V2_LG.svg +0 -13
- package/dist/images/method/Banks/AmBank/AmBank_V2_ROU.svg +0 -7
- package/dist/images/method/Banks/AmBank/AmBank_V2_SQU.svg +0 -7
- package/dist/images/method/Banks/AmBank/AmBank_V3_BSQU.svg +0 -13
- package/dist/images/method/Banks/AmBank/AmBank_V3_LG.svg +0 -13
- package/dist/images/method/Banks/AmBank/AmBank_V3_ROU.svg +0 -7
- package/dist/images/method/Banks/AmBank/AmBank_V3_SQU.svg +0 -7
- package/dist/images/method/Banks/AmBank/AmBank_V4_BSQU.svg +0 -18
- package/dist/images/method/Banks/AmBank/AmBank_V4_LG.svg +0 -18
- package/dist/images/method/Banks/AmBank/AmBank_V5_BSQU.svg +0 -18
- package/dist/images/method/Banks/AmBank/AmBank_V5_LG.svg +0 -18
- package/dist/images/method/Banks/ArgoBank/ArgoBank_SVG.svg +0 -12
- package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_BSQU.svg +0 -13
- package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_LG.svg +0 -13
- package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_ROU.svg +0 -4
- package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_SQU.svg +0 -4
- package/dist/images/method/Banks/BSN/BSN_SVG.svg +0 -7
- package/dist/images/method/Banks/BSN/BSN_V1_BSQU.svg +0 -7
- package/dist/images/method/Banks/BSN/BSN_V1_LG.svg +0 -7
- package/dist/images/method/Banks/BSN/BSN_V1_ROU.svg +0 -4
- package/dist/images/method/Banks/BSN/BSN_V1_SQU.svg +0 -4
- package/dist/images/method/Banks/BankIslam/BankIslam_SVG.svg +0 -13
- package/dist/images/method/Banks/BankIslam/BankIslam_V1_BSQU.svg +0 -14
- package/dist/images/method/Banks/BankIslam/BankIslam_V1_LG.svg +0 -14
- package/dist/images/method/Banks/BankIslam/BankIslam_V1_ROU.svg +0 -14
- package/dist/images/method/Banks/BankIslam/BankIslam_V1_SQU.svg +0 -14
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_SVG.svg +0 -26
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_BSQU.svg +0 -24
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_LG.svg +0 -24
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_ROU.svg +0 -12
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_SQU.svg +0 -12
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_BSQU.svg +0 -26
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_LG.svg +0 -27
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_ROU.svg +0 -14
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_SQU.svg +0 -14
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V3_ROU.svg +0 -12
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V3_SQU.svg +0 -12
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V4_ROU.svg +0 -4
- package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V4_SQU.svg +0 -4
- package/dist/images/method/Banks/BankRakyat/BankRakyat_SVG.svg +0 -18
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_BSQU.svg +0 -18
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_LG.svg +0 -18
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_ROU.svg +0 -6
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_SQU.svg +0 -6
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_BSQU.svg +0 -18
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_LG.svg +0 -18
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_ROU.svg +0 -6
- package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_SQU.svg +0 -6
- package/dist/images/method/Banks/Cimb/Cimb_SVG.svg +0 -16
- package/dist/images/method/Banks/Cimb/Cimb_V1_BSQU.svg +0 -13
- package/dist/images/method/Banks/Cimb/Cimb_V1_LG.svg +0 -13
- package/dist/images/method/Banks/Cimb/Cimb_V1_ROU.svg +0 -5
- package/dist/images/method/Banks/Cimb/Cimb_V1_SQU.svg +0 -5
- package/dist/images/method/Banks/Cimb/Cimb_V2_BSQU.svg +0 -13
- package/dist/images/method/Banks/Cimb/Cimb_V2_LG.svg +0 -13
- package/dist/images/method/Banks/Cimb/Cimb_V2_ROU.svg +0 -5
- package/dist/images/method/Banks/Cimb/Cimb_V2_SQU.svg +0 -5
- package/dist/images/method/Banks/Cimb/Cimb_V3_BSQU.svg +0 -19
- package/dist/images/method/Banks/Cimb/Cimb_V3_LG.svg +0 -19
- package/dist/images/method/Banks/Cimb/Cimb_V3_ROU.svg +0 -11
- package/dist/images/method/Banks/Cimb/Cimb_V3_SQU.svg +0 -11
- package/dist/images/method/Banks/Cimb/Cimb_V4_BSQU.svg +0 -14
- package/dist/images/method/Banks/Cimb/Cimb_V4_LG.svg +0 -14
- package/dist/images/method/Banks/Cimb/Cimb_V5_LG.svg +0 -14
- package/dist/images/method/Banks/CitiBank/CitiBank_SVG.svg +0 -4
- package/dist/images/method/Banks/CitiBank/CitiBank_V1_BSQU.svg +0 -5
- package/dist/images/method/Banks/CitiBank/CitiBank_V1_LG.svg +0 -5
- package/dist/images/method/Banks/CitiBank/CitiBank_V1_ROU.svg +0 -5
- package/dist/images/method/Banks/CitiBank/CitiBank_V1_SQU.svg +0 -5
- package/dist/images/method/Banks/CitiBank/CitiBank_V2_BSQU.svg +0 -5
- package/dist/images/method/Banks/CitiBank/CitiBank_V2_LG.svg +0 -5
- package/dist/images/method/Banks/CitiBank/CitiBank_V2_ROU.svg +0 -5
- package/dist/images/method/Banks/CitiBank/CitiBank_V2_SQU.svg +0 -5
- package/dist/images/method/Banks/GXBank/GXBank_SVG.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V1_BSQU.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V1_LG.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V1_ROU.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V1_SQU.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V2_BSQU.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V2_LG.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V2_ROU.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V2_SQU.svg +0 -4
- package/dist/images/method/Banks/GXBank/GXBank_V3_BSQU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V3_LG.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V3_ROU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V3_SQU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V4_BSQU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V4_LG.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V4_ROU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V4_SQU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V5_BSQU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V5_LG.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V5_ROU.svg +0 -10
- package/dist/images/method/Banks/GXBank/GXBank_V5_SQU.svg +0 -10
- package/dist/images/method/Banks/HSBC/HSBC_SVG.svg +0 -11
- package/dist/images/method/Banks/HSBC/HSBC_V1_BSQU.svg +0 -12
- package/dist/images/method/Banks/HSBC/HSBC_V1_LG.svg +0 -12
- package/dist/images/method/Banks/HSBC/HSBC_V1_ROU.svg +0 -8
- package/dist/images/method/Banks/HSBC/HSBC_V1_SQU.svg +0 -8
- package/dist/images/method/Banks/HongLeongBank/HongLeongBank_SVG.svg +0 -27
- package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_BSQU.svg +0 -22
- package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_LG.svg +0 -22
- package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_ROU.svg +0 -9
- package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_SQU.svg +0 -9
- package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V2_BSQU.svg +0 -18
- package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V2_LG.svg +0 -18
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_SVG.svg +0 -5
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_BSQU.svg +0 -5
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_LG.svg +0 -5
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_ROU.svg +0 -4
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_SQU.svg +0 -4
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_BSQU.svg +0 -5
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_LG.svg +0 -5
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_ROU.svg +0 -4
- package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_SQU.svg +0 -4
- package/dist/images/method/Banks/Maybank/MayBank_SVG.svg +0 -22
- package/dist/images/method/Banks/Maybank/MayBank_V1_BSQU.svg +0 -22
- package/dist/images/method/Banks/Maybank/MayBank_V1_LG.svg +0 -22
- package/dist/images/method/Banks/Maybank/MayBank_V1_ROU.svg +0 -15
- package/dist/images/method/Banks/Maybank/MayBank_V1_SQU.svg +0 -15
- package/dist/images/method/Banks/OCBC/OCBC_SVG.svg +0 -11
- package/dist/images/method/Banks/OCBC/OCBC_V1_BSQU.svg +0 -12
- package/dist/images/method/Banks/OCBC/OCBC_V1_LG.svg +0 -12
- package/dist/images/method/Banks/OCBC/OCBC_V1_ROU.svg +0 -4
- package/dist/images/method/Banks/OCBC/OCBC_V1_SQU.svg +0 -4
- package/dist/images/method/Banks/OCBC/OCBC_V2_BSQU.svg +0 -12
- package/dist/images/method/Banks/OCBC/OCBC_V2_LG.svg +0 -12
- package/dist/images/method/Banks/OCBC/OCBC_V2_ROU.svg +0 -4
- package/dist/images/method/Banks/OCBC/OCBC_V2_SQU.svg +0 -4
- package/dist/images/method/Banks/PublicBank/PublicBank_SVG.svg +0 -13
- package/dist/images/method/Banks/PublicBank/PublicBank_V1_BSQU.svg +0 -14
- package/dist/images/method/Banks/PublicBank/PublicBank_V1_LG.svg +0 -14
- package/dist/images/method/Banks/PublicBank/PublicBank_V1_ROU.svg +0 -4
- package/dist/images/method/Banks/PublicBank/PublicBank_V1_SQU.svg +0 -4
- package/dist/images/method/Banks/RHB/RHB_SVG.svg +0 -4
- package/dist/images/method/Banks/RHB/RHB_V1_BSQU.svg +0 -5
- package/dist/images/method/Banks/RHB/RHB_V1_LG.svg +0 -5
- package/dist/images/method/Banks/RHB/RHB_V1_ROU.svg +0 -5
- package/dist/images/method/Banks/RHB/RHB_V1_SQU.svg +0 -5
- package/dist/images/method/Banks/RHB/RHB_V2_BSQU.svg +0 -5
- package/dist/images/method/Banks/RHB/RHB_V2_LG.svg +0 -5
- package/dist/images/method/Banks/RHB/RHB_V2_ROU.svg +0 -5
- package/dist/images/method/Banks/RHB/RHB_V2_SQU.svg +0 -5
- package/dist/images/method/Banks/StandardChartered/StandardChartered_SVG.svg +0 -26
- package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_BSQU.svg +0 -27
- package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_LG.svg +0 -27
- package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_ROU.svg +0 -10
- package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_SQU.svg +0 -10
- package/dist/images/method/Banks/UOB/UOB_SVG.svg +0 -15
- package/dist/images/method/Banks/UOB/UOB_V1_BSQU.svg +0 -16
- package/dist/images/method/Banks/UOB/UOB_V1_LG.svg +0 -16
- package/dist/images/method/Banks/UOB/UOB_V1_ROU.svg +0 -4
- package/dist/images/method/Banks/UOB/UOB_V1_SQU.svg +0 -4
- package/dist/images/method/Banks/UOB/UOB_V2_BSQU.svg +0 -16
- package/dist/images/method/Banks/UOB/UOB_V2_LG.svg +0 -16
- package/dist/images/method/Banks/UOB/UOB_V2_ROU.svg +0 -4
- package/dist/images/method/Banks/UOB/UOB_V2_SQU.svg +0 -4
- package/dist/images/method/Banks/UOB/UOB_V3_ROU.svg +0 -5
- package/dist/images/method/Banks/UOB/UOB_V3_SQU.svg +0 -5
- package/dist/images/method/Banks/UOB/UOB_V4_ROU.svg +0 -5
- package/dist/images/method/Banks/UOB/UOB_V4_SQU.svg +0 -5
- package/dist/images/method/Card/Gobiz/Gobiz_SVG.svg +0 -10
- package/dist/images/method/Card/Gobiz/Gobiz_V1_ROU.svg +0 -11
- package/dist/images/method/Card/Gobiz/Gobiz_V1_SQU.svg +0 -11
- package/dist/images/method/Card/Gobiz/Gobiz_V2_ROU.svg +0 -11
- package/dist/images/method/Card/Gobiz/Gobiz_V2_SQU.svg +0 -11
- package/dist/images/method/Card/Master/MASTER_SVG.svg +0 -6
- package/dist/images/method/Card/Master/MASTER_V1_ROU.svg +0 -7
- package/dist/images/method/Card/Master/MASTER_V1_SQU.svg +0 -7
- package/dist/images/method/Card/Master/MASTER_V1_TRSP.svg +0 -6
- package/dist/images/method/Card/Master/MASTER_V2_ROU.svg +0 -7
- package/dist/images/method/Card/Master/MASTER_V2_SQU.svg +0 -7
- package/dist/images/method/Card/Paydee/Paydee_SVG.svg +0 -8
- package/dist/images/method/Card/Paydee/Paydee_V1_ROU.svg +0 -9
- package/dist/images/method/Card/Paydee/Paydee_V1_SQU.svg +0 -9
- package/dist/images/method/Card/Paydee/Paydee_V2_ROU.svg +0 -9
- package/dist/images/method/Card/Paydee/Paydee_V2_SQU.svg +0 -9
- package/dist/images/method/Card/UnionPay/UNIONPAY_SVG.svg +0 -17
- package/dist/images/method/Card/UnionPay/UNIONPAY_V1_ROU.svg +0 -18
- package/dist/images/method/Card/UnionPay/UNIONPAY_V1_SQU.svg +0 -18
- package/dist/images/method/Card/UnionPay/UNIONPAY_V1_TRSP.svg +0 -17
- package/dist/images/method/Card/Visa/VISA_SVG.svg +0 -3
- package/dist/images/method/Card/Visa/VISA_V1_ROU.svg +0 -4
- package/dist/images/method/Card/Visa/VISA_V1_SQU.svg +0 -4
- package/dist/images/method/Card/Visa/VISA_V1_TRSP.svg +0 -3
- package/dist/images/method/Card/Visa/VISA_V2_ROU.svg +0 -4
- package/dist/images/method/Card/Visa/VISA_V2_SQU.svg +0 -4
- package/dist/images/method/Card/Visa/VISA_V2_TRSP.svg +0 -3
- package/dist/images/method/Mobile/ApplePay/ApplePay_SVG.svg +0 -3
- package/dist/images/method/Mobile/ApplePay/ApplePay_V1_ROU.svg +0 -4
- package/dist/images/method/Mobile/ApplePay/ApplePay_V1_SQU.svg +0 -4
- package/dist/images/method/Mobile/ApplePay/ApplePay_V1_TRSP.svg +0 -3
- package/dist/images/method/Mobile/ApplePay/ApplePay_V2_ROU.svg +0 -4
- package/dist/images/method/Mobile/ApplePay/ApplePay_V2_SQU.svg +0 -4
- package/dist/images/method/Mobile/ApplePay/ApplePay_V2_TRSP.svg +0 -3
- package/dist/images/method/Mobile/GooglePay/GooglePay_SVG.svg +0 -7
- package/dist/images/method/Mobile/GooglePay/GooglePay_V1_ROU.svg +0 -8
- package/dist/images/method/Mobile/GooglePay/GooglePay_V1_SQU.svg +0 -8
- package/dist/images/method/Mobile/GooglePay/GooglePay_V1_TRSP.svg +0 -7
- package/dist/images/method/Mobile/GooglePay/GooglePay_V2_ROU.svg +0 -8
- package/dist/images/method/Mobile/GooglePay/GooglePay_V2_SQU.svg +0 -8
- package/dist/images/method/Mobile/GooglePay/GooglePay_V2_TRSP.svg +0 -7
- package/dist/images/method/Mobile/GooglePay/GooglePay_V3_ROU.svg +0 -7
- package/dist/images/method/Mobile/GooglePay/GooglePay_V3_SQU.svg +0 -7
- package/dist/images/method/Mobile/GooglePay/GooglePay_V3_TRSP.svg +0 -6
- package/dist/images/method/Mobile/SamsungPay/SamsungPay_SVG.svg +0 -12
- package/dist/images/method/Mobile/SamsungPay/SamsungPay_V1_ROU.svg +0 -13
- package/dist/images/method/Mobile/SamsungPay/SamsungPay_V1_SQU.svg +0 -13
- package/dist/images/method/Mobile/SamsungPay/SamsungPay_V2_ROU.svg +0 -13
- package/dist/images/method/Mobile/SamsungPay/SamsungPay_V2_SQU.svg +0 -13
- package/dist/images/method/Mobile/SamsungPay/SamsungPay_V3_ROU.svg +0 -6
- package/dist/images/method/Mobile/SamsungPay/SamsungPay_V3_SQU.svg +0 -6
- package/dist/images/method/Other/DuitNow/DuitNow_SVG.svg +0 -11
- package/dist/images/method/Other/DuitNow/DuitNow_V1_ROU.svg +0 -12
- package/dist/images/method/Other/DuitNow/DuitNow_V1_SQU.svg +0 -12
- package/dist/images/method/Other/DuitNow/DuitNow_V2_ROU.svg +0 -12
- package/dist/images/method/Other/DuitNow/DuitNow_V2_SQU.svg +0 -12
- package/dist/images/method/Other/DuitNow/DuitNow_V3_ROU.svg +0 -5
- package/dist/images/method/Other/DuitNow/DuitNow_V3_SQU.svg +0 -5
- package/dist/images/method/Other/DuitNow/DuitNow_V4_ROU.svg +0 -5
- package/dist/images/method/Other/DuitNow/DuitNow_V4_SQU.svg +0 -5
- package/dist/images/method/Other/FPX/FPX_SVG.svg +0 -28
- package/dist/images/method/Other/FPX/FPX_V1_ROU.svg +0 -29
- package/dist/images/method/Other/FPX/FPX_V1_SQU.svg +0 -29
- package/dist/images/method/Other/FPX/FPX_V2_ROU.svg +0 -8
- package/dist/images/method/Other/FPX/FPX_V2_SQU.svg +0 -8
- package/dist/images/method/Other/FPX/FPX_V3_ROU.svg +0 -5
- package/dist/images/method/Other/FPX/FPX_V3_SQU.svg +0 -5
- package/dist/images/method/Other/MaybankQR/MaybankQR_V1_ROU.svg +0 -35
- package/dist/images/method/Other/MaybankQR/MaybankQR_V1_SQU.svg +0 -35
- package/dist/images/method/Other/MaybankQR/Maybank_SVG.svg +0 -49
- package/dist/images/method/Other/NetsPay/NetsPay_SVG.svg +0 -5
- package/dist/images/method/Other/NetsPay/NetsPay_V1_ROU.svg +0 -6
- package/dist/images/method/Other/NetsPay/NetsPay_V1_SQU.svg +0 -6
- package/dist/images/method/Wallet/Alipay/Alipay_SVG.svg +0 -4
- package/dist/images/method/Wallet/Alipay/Alipay_V1_ROU.svg +0 -6
- package/dist/images/method/Wallet/Alipay/Alipay_V1_SQU.svg +0 -5
- package/dist/images/method/Wallet/Alipay/Alipay_V2_ROU.svg +0 -6
- package/dist/images/method/Wallet/Alipay/Alipay_V2_SQU.svg +0 -5
- package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_SVG.svg +0 -7
- package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V1_ROU.svg +0 -8
- package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V1_SQU.svg +0 -8
- package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V2_ROU.svg +0 -6
- package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V2_SQU.svg +0 -6
- package/dist/images/method/Wallet/Binfinite/Binfinite_SVG.svg +0 -14
- package/dist/images/method/Wallet/Binfinite/Binfinite_V1_ROU.svg +0 -7
- package/dist/images/method/Wallet/Binfinite/Binfinite_V1_SQU.svg +0 -7
- package/dist/images/method/Wallet/Binfinite/Binfinite_V2_ROU.svg +0 -15
- package/dist/images/method/Wallet/Binfinite/Binfinite_V2_SQU.svg +0 -15
- package/dist/images/method/Wallet/Binfinite/Binfinite_V3_ROU.svg +0 -15
- package/dist/images/method/Wallet/Binfinite/Binfinite_V3_SQU.svg +0 -15
- package/dist/images/method/Wallet/Boost/Boost_SVG.svg +0 -10
- package/dist/images/method/Wallet/Boost/Boost_V1_ROU.svg +0 -6
- package/dist/images/method/Wallet/Boost/Boost_V1_SQU.svg +0 -6
- package/dist/images/method/Wallet/Boost/Boost_V2_ROU.svg +0 -11
- package/dist/images/method/Wallet/Boost/Boost_V2_SQU.svg +0 -11
- package/dist/images/method/Wallet/Boost/Boost_V3_ROU.svg +0 -11
- package/dist/images/method/Wallet/Boost/Boost_V3_SQU.svg +0 -11
- package/dist/images/method/Wallet/FavePay/FavePay_SVG.svg +0 -12
- package/dist/images/method/Wallet/FavePay/FavePay_V1_ROU.svg +0 -16
- package/dist/images/method/Wallet/FavePay/FavePay_V1_SQU.svg +0 -16
- package/dist/images/method/Wallet/FavePay/FavePay_V2_ROU.svg +0 -13
- package/dist/images/method/Wallet/FavePay/FavePay_V2_SQU.svg +0 -13
- package/dist/images/method/Wallet/GoPayz/GoPayz_SVG.svg +0 -12
- package/dist/images/method/Wallet/GoPayz/GoPayz_V1_ROU.svg +0 -11
- package/dist/images/method/Wallet/GoPayz/GoPayz_V1_SQU.svg +0 -11
- package/dist/images/method/Wallet/GoPayz/GoPayz_V2_ROU.svg +0 -5
- package/dist/images/method/Wallet/GoPayz/GoPayz_V2_SQU.svg +0 -5
- package/dist/images/method/Wallet/GrabPay/GrabPay_SVG.svg +0 -15
- package/dist/images/method/Wallet/GrabPay/GrabPay_V1_ROU.svg +0 -13
- package/dist/images/method/Wallet/GrabPay/GrabPay_V1_SQU.svg +0 -13
- package/dist/images/method/Wallet/GrabPay/GrabPay_V2_ROU.svg +0 -13
- package/dist/images/method/Wallet/GrabPay/GrabPay_V2_SQU.svg +0 -13
- package/dist/images/method/Wallet/GrabPay/GrabPay_V3_ROU.svg +0 -16
- package/dist/images/method/Wallet/GrabPay/GrabPay_V3_SQU.svg +0 -16
- package/dist/images/method/Wallet/GrabPay/GrabPay_V4_ROU.svg +0 -16
- package/dist/images/method/Wallet/GrabPay/GrabPay_V4_SQU.svg +0 -16
- package/dist/images/method/Wallet/Lazada/Lazada_SVG.svg +0 -44
- package/dist/images/method/Wallet/Lazada/Lazada_V1_ROU.svg +0 -39
- package/dist/images/method/Wallet/Lazada/Lazada_V1_SQU.svg +0 -39
- package/dist/images/method/Wallet/Lazada/Lazada_V2_ROU.svg +0 -45
- package/dist/images/method/Wallet/Lazada/Lazada_V2_SQU.svg +0 -45
- package/dist/images/method/Wallet/MAE/MAE_SVG.svg +0 -4
- package/dist/images/method/Wallet/MAE/MAE_V1_ROU.svg +0 -11
- package/dist/images/method/Wallet/MAE/MAE_V1_SQU.svg +0 -11
- package/dist/images/method/Wallet/MCash/MCash_SVG.svg +0 -7
- package/dist/images/method/Wallet/MCash/MCash_V1_ROU.svg +0 -8
- package/dist/images/method/Wallet/MCash/MCash_V1_SQU.svg +0 -8
- package/dist/images/method/Wallet/MCash/MCash_V2_ROU.svg +0 -8
- package/dist/images/method/Wallet/MCash/MCash_V2_SQU.svg +0 -8
- package/dist/images/method/Wallet/Presto/Presto_SVG.svg +0 -10
- package/dist/images/method/Wallet/Presto/Presto_V1_ROU.svg +0 -11
- package/dist/images/method/Wallet/Presto/Presto_V1_SQU.svg +0 -11
- package/dist/images/method/Wallet/Presto/Presto_V2_ROU.svg +0 -11
- package/dist/images/method/Wallet/Presto/Presto_V2_SQU.svg +0 -11
- package/dist/images/method/Wallet/Presto/Presto_V3_ROU.svg +0 -11
- package/dist/images/method/Wallet/Presto/Presto_V3_SQU.svg +0 -11
- package/dist/images/method/Wallet/Presto/Presto_V4_ROU.svg +0 -5
- package/dist/images/method/Wallet/Presto/Presto_V4_SQU.svg +0 -5
- package/dist/images/method/Wallet/Presto/Presto_V5_ROU.svg +0 -5
- package/dist/images/method/Wallet/Presto/Presto_V5_SQU.svg +0 -5
- package/dist/images/method/Wallet/Razer/RazerPay_SVG.svg +0 -11
- package/dist/images/method/Wallet/Razer/RazerPay_V1_ROU.svg +0 -12
- package/dist/images/method/Wallet/Razer/RazerPay_V1_SQU.svg +0 -12
- package/dist/images/method/Wallet/SarawakPay/SarawakPay_SVG.svg +0 -9
- package/dist/images/method/Wallet/SarawakPay/SarawakPay_V1_ROU.svg +0 -10
- package/dist/images/method/Wallet/SarawakPay/SarawakPay_V1_SQU.svg +0 -11
- package/dist/images/method/Wallet/SarawakPay/SarawakPay_V2_ROU.svg +0 -4
- package/dist/images/method/Wallet/SarawakPay/SarawakPay_V2_SQU.svg +0 -4
- package/dist/images/method/Wallet/Senheng/Senheng_SVG.svg +0 -9
- package/dist/images/method/Wallet/Senheng/Senheng_V1_ROU.svg +0 -4
- package/dist/images/method/Wallet/Senheng/Senheng_V1_SQU.svg +0 -4
- package/dist/images/method/Wallet/Senheng/Senheng_V2_ROU.svg +0 -4
- package/dist/images/method/Wallet/Senheng/Senheng_V2_SQU.svg +0 -4
- package/dist/images/method/Wallet/Setel/Setel_SVG.svg +0 -10
- package/dist/images/method/Wallet/Setel/Setel_V1_ROU.svg +0 -11
- package/dist/images/method/Wallet/Setel/Setel_V1_SQU.svg +0 -11
- package/dist/images/method/Wallet/Setel/Setel_V2_ROU.svg +0 -6
- package/dist/images/method/Wallet/Setel/Setel_V2_SQU.svg +0 -6
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_SVG.svg +0 -13
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V1_ROU.svg +0 -14
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V1_SQU.svg +0 -14
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V2_ROU.svg +0 -12
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V2_SQU.svg +0 -12
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V3_ROU.svg +0 -5
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V3_SQU.svg +0 -5
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V4_ROU.svg +0 -5
- package/dist/images/method/Wallet/ShopeePay/ShopeePay_V4_SQU.svg +0 -5
- package/dist/images/method/Wallet/TNG/TNG_SVG.svg +0 -27
- package/dist/images/method/Wallet/TNG/TNG_V1_ROU.svg +0 -27
- package/dist/images/method/Wallet/TNG/TNG_V1_SQU.svg +0 -27
- package/dist/images/method/Wallet/TaPay/TaPay_SVG.svg +0 -25
- package/dist/images/method/Wallet/TaPay/TaPay_V1_ROU.svg +0 -25
- package/dist/images/method/Wallet/TaPay/TaPay_V1_SQU.svg +0 -25
- package/dist/images/method/Wallet/TaPay/TaPay_V2_ROU.svg +0 -25
- package/dist/images/method/Wallet/TaPay/TaPay_V2_SQU.svg +0 -25
- package/dist/images/method/Wallet/Truemoney/Truemoney_SVG.svg +0 -42
- package/dist/images/method/Wallet/Truemoney/Truemoney_V1_ROU.svg +0 -8
- package/dist/images/method/Wallet/Truemoney/Truemoney_V1_SQU.svg +0 -8
- package/dist/images/method/Wallet/Truemoney/Truemoney_V2_ROU.svg +0 -17
- package/dist/images/method/Wallet/Truemoney/Truemoney_V2_SQU.svg +0 -17
- package/dist/images/method/Wallet/WechatPay/WeChat_SVG.svg +0 -4
- package/dist/images/method/Wallet/WechatPay/WeChat_V1_ROU.svg +0 -4
- package/dist/images/method/Wallet/WechatPay/WeChat_V1_SQU.svg +0 -4
- package/dist/images/method/Wallet/WechatPay/WeChat_V2_ROU.svg +0 -4
- package/dist/images/method/Wallet/WechatPay/WeChat_V2_SQU.svg +0 -4
- package/dist/images/method/Wallet/WechatPay/WeChat_V3_ROU.svg +0 -5
- package/dist/images/method/Wallet/WechatPay/WeChat_V3_SQU.svg +0 -5
- package/dist/images/method/Wallet/Zapp/Zapp_SVG.svg +0 -6
- package/dist/images/method/Wallet/Zapp/Zapp_V1_ROU.svg +0 -7
- package/dist/images/method/Wallet/Zapp/Zapp_V1_SQU.svg +0 -7
- package/dist/index-DvzXwr90.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-y4tchjya.js +0 -150
- package/dist/locales/en/business.json +0 -4
- package/dist/locales/en/common.json +0 -272
- package/dist/locales/en/country.json +0 -4
- package/dist/locales/en/payment.json +0 -27
- package/dist/locales/en/transaction.json +0 -25
- package/dist/locales/en/user.json +0 -61
- package/dist/locales/zh/business.json +0 -4
- package/dist/locales/zh/common.json +0 -272
- package/dist/locales/zh/country.json +0 -6
- package/dist/locales/zh/payment.json +0 -27
- package/dist/locales/zh/transaction.json +0 -25
- package/dist/locales/zh/user.json +0 -61
@@ -0,0 +1,339 @@
|
|
1
|
+
import { defineComponent as h, openBlock as d, createElementBlock as I, createTextVNode as R, createElementVNode as k, toDisplayString as N, resolveComponent as m, createVNode as _, normalizeClass as U, withCtx as V, createBlock as g, createCommentVNode as A, ref as T, computed as M, unref as c, watch as z, isRef as L, h as S } from "vue";
|
2
|
+
import "./index-C_44uoxW.js";
|
3
|
+
import { h as Y } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as j } from "./index-BS_dGfh_.js";
|
5
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-GkJ2OZPm.js";
|
6
|
+
import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
7
|
+
import { useSnackbar as P, useDialogChild as Q, useDialog as G } from "@feedmepos/ui-library";
|
8
|
+
import { t as F } from "./index-CbUxRjwz.js";
|
9
|
+
import { c as H } from "./clipboard-4jh1WteU.js";
|
10
|
+
import { u as D } from "./error-K1CakhA9.js";
|
11
|
+
import { z as E, a as K } from "./validator-D5jtpt9A.js";
|
12
|
+
import { useCoreStore as J } from "@feedmepos/mf-common";
|
13
|
+
import { w as W } from "./Modal-DB8M9o1T.js";
|
14
|
+
import { useRouter as X } from "vue-router";
|
15
|
+
const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te = /* @__PURE__ */ h({
|
16
|
+
__name: "TerminalBindCodeDialog",
|
17
|
+
props: {
|
18
|
+
code: {
|
19
|
+
type: String,
|
20
|
+
required: !0
|
21
|
+
}
|
22
|
+
},
|
23
|
+
setup(u) {
|
24
|
+
return (n, o) => (d(), I("div", Z, [
|
25
|
+
o[0] || (o[0] = R(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
|
26
|
+
k("div", ee, N(u.code), 1)
|
27
|
+
]));
|
28
|
+
}
|
29
|
+
}), ne = /* @__PURE__ */ h({
|
30
|
+
__name: "ID",
|
31
|
+
props: {
|
32
|
+
row: {},
|
33
|
+
data: {}
|
34
|
+
},
|
35
|
+
setup(u) {
|
36
|
+
const n = u, o = P();
|
37
|
+
function s() {
|
38
|
+
return n.row.original.status === "Active" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
|
39
|
+
}
|
40
|
+
function i() {
|
41
|
+
try {
|
42
|
+
H(n.data), o.open({ title: "Text copied to clipboard." }, 1e3);
|
43
|
+
} catch {
|
44
|
+
o.open({ title: "Clipboard API incompatible." }, 1e3);
|
45
|
+
}
|
46
|
+
n.data;
|
47
|
+
}
|
48
|
+
return (r, a) => {
|
49
|
+
const p = m("FmBadge");
|
50
|
+
return d(), I("div", {
|
51
|
+
onClick: a[0] || (a[0] = (v) => {
|
52
|
+
v.stopPropagation(), i();
|
53
|
+
})
|
54
|
+
}, [
|
55
|
+
_(p, {
|
56
|
+
inline: "",
|
57
|
+
class: U(s())
|
58
|
+
}, {
|
59
|
+
default: V(() => [
|
60
|
+
k("div", null, N(r.data), 1)
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
}, 8, ["class"])
|
64
|
+
]);
|
65
|
+
};
|
66
|
+
}
|
67
|
+
}), oe = { class: "flex" }, ae = /* @__PURE__ */ h({
|
68
|
+
__name: "Actions",
|
69
|
+
props: {
|
70
|
+
data: {}
|
71
|
+
},
|
72
|
+
emits: ["link", "unlink", "edit"],
|
73
|
+
setup(u, { emit: n }) {
|
74
|
+
const o = n;
|
75
|
+
return (s, i) => {
|
76
|
+
const r = m("FmButton");
|
77
|
+
return d(), I("div", oe, [
|
78
|
+
s.data.deviceType === "TERMINAL" && !s.data.deviceId ? (d(), g(r, {
|
79
|
+
key: 0,
|
80
|
+
variant: "plain",
|
81
|
+
"prepend-icon": "link",
|
82
|
+
onClick: i[0] || (i[0] = (a) => {
|
83
|
+
a.stopPropagation(), o("link");
|
84
|
+
})
|
85
|
+
})) : A("", !0),
|
86
|
+
s.data.deviceType === "TERMINAL" && s.data.deviceId ? (d(), g(r, {
|
87
|
+
key: 1,
|
88
|
+
variant: "plain",
|
89
|
+
"prepend-icon": "link_off",
|
90
|
+
onClick: i[1] || (i[1] = (a) => {
|
91
|
+
a.stopPropagation(), o("unlink");
|
92
|
+
})
|
93
|
+
})) : A("", !0),
|
94
|
+
_(r, {
|
95
|
+
variant: "plain",
|
96
|
+
"prepend-icon": "edit",
|
97
|
+
onClick: i[2] || (i[2] = (a) => {
|
98
|
+
a.stopPropagation(), o("edit");
|
99
|
+
})
|
100
|
+
})
|
101
|
+
]);
|
102
|
+
};
|
103
|
+
}
|
104
|
+
}), re = /* @__PURE__ */ h({
|
105
|
+
__name: "TerminalDialog",
|
106
|
+
props: {
|
107
|
+
terminal: {
|
108
|
+
type: Object
|
109
|
+
}
|
110
|
+
},
|
111
|
+
setup(u) {
|
112
|
+
var y, x, w;
|
113
|
+
const n = u, o = J(), s = Q(), i = T(), r = T((y = n.terminal) == null ? void 0 : y.name), a = T((x = n.terminal) == null ? void 0 : x.referenceId), p = T(((w = n.terminal) == null ? void 0 : w.status) === "Active"), v = M(() => o.restaurants.value.map((t) => ({
|
114
|
+
label: t.profile.name,
|
115
|
+
value: t._id
|
116
|
+
})));
|
117
|
+
return (t, e) => {
|
118
|
+
const l = m("FmSelect"), b = m("FmTextField"), f = m("FmSwitch"), B = m("FmButton"), $ = m("FmForm");
|
119
|
+
return d(), g($, {
|
120
|
+
ref: i.value,
|
121
|
+
class: "flex flex-col gap-16 mb-6",
|
122
|
+
onValidationSuccess: e[3] || (e[3] = () => {
|
123
|
+
c(s).emitData({ name: r.value, referenceId: a.value, status: p.value ? "Active" : "Inactive" }), c(s).emitAction("primary");
|
124
|
+
})
|
125
|
+
}, {
|
126
|
+
default: V(() => [
|
127
|
+
n.terminal ? A("", !0) : (d(), g(l, {
|
128
|
+
key: 0,
|
129
|
+
modelValue: a.value,
|
130
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => a.value = C),
|
131
|
+
label: "Restaurant",
|
132
|
+
items: v.value,
|
133
|
+
rules: c(E)(c(K).string())
|
134
|
+
}, null, 8, ["modelValue", "items", "rules"])),
|
135
|
+
_(b, {
|
136
|
+
modelValue: r.value,
|
137
|
+
"onUpdate:modelValue": e[1] || (e[1] = (C) => r.value = C),
|
138
|
+
label: "Terminal Name",
|
139
|
+
rules: c(E)(c(K).string())
|
140
|
+
}, null, 8, ["modelValue", "rules"]),
|
141
|
+
n.terminal ? (d(), g(f, {
|
142
|
+
key: 1,
|
143
|
+
modelValue: p.value,
|
144
|
+
"onUpdate:modelValue": e[2] || (e[2] = (C) => p.value = C),
|
145
|
+
label: "Status"
|
146
|
+
}, null, 8, ["modelValue"])) : A("", !0),
|
147
|
+
_(B, {
|
148
|
+
type: "submit",
|
149
|
+
label: "Create"
|
150
|
+
})
|
151
|
+
]),
|
152
|
+
_: 1
|
153
|
+
}, 512);
|
154
|
+
};
|
155
|
+
}
|
156
|
+
}), se = { class: "flex justify-between mb-6 items-center" }, ie = { class: "flex space-x-4" }, le = { class: "flex space-x-4" }, he = /* @__PURE__ */ h({
|
157
|
+
__name: "Terminal",
|
158
|
+
setup(u) {
|
159
|
+
const n = T(), { searchKey: o } = j({
|
160
|
+
searchKey: ""
|
161
|
+
});
|
162
|
+
let s;
|
163
|
+
z(o, async () => {
|
164
|
+
s && clearTimeout(s), s = setTimeout(
|
165
|
+
() => {
|
166
|
+
var t;
|
167
|
+
return (t = n.value) == null ? void 0 : t.reset();
|
168
|
+
},
|
169
|
+
700
|
170
|
+
);
|
171
|
+
});
|
172
|
+
const i = X(), r = G(), a = P();
|
173
|
+
async function p(t) {
|
174
|
+
W(
|
175
|
+
r,
|
176
|
+
"Terminal Unbind",
|
177
|
+
"Are you sure to unbind terminal from device? This action cannot be revert and device will be logged out!",
|
178
|
+
async () => {
|
179
|
+
var e;
|
180
|
+
try {
|
181
|
+
await F.unbind(t), (e = n.value) == null || e.reset(), a.open({
|
182
|
+
type: "success",
|
183
|
+
message: "Terminal unbind successfully"
|
184
|
+
});
|
185
|
+
} catch (l) {
|
186
|
+
a.open({
|
187
|
+
type: "error",
|
188
|
+
title: "Error occurs when unbind terminal",
|
189
|
+
message: D(l)
|
190
|
+
});
|
191
|
+
}
|
192
|
+
}
|
193
|
+
);
|
194
|
+
}
|
195
|
+
async function v(t) {
|
196
|
+
const e = await F.getBindCode(t);
|
197
|
+
r.open({
|
198
|
+
title: "Terminal Bind Code",
|
199
|
+
closeButton: !0,
|
200
|
+
overlay: !0,
|
201
|
+
contentComponent: te,
|
202
|
+
contentComponentProps: { code: e }
|
203
|
+
});
|
204
|
+
}
|
205
|
+
async function y(t) {
|
206
|
+
r.open({
|
207
|
+
title: t ? "Update Terminal" : "Create New Terminal",
|
208
|
+
closeButton: !0,
|
209
|
+
overlay: !0,
|
210
|
+
contentComponent: re,
|
211
|
+
contentComponentProps: { terminal: t }
|
212
|
+
}).onPrimary(async (e) => {
|
213
|
+
var l;
|
214
|
+
r.close();
|
215
|
+
try {
|
216
|
+
await F.create(e), (l = n.value) == null || l.reset(), a.open({
|
217
|
+
type: "success",
|
218
|
+
message: t ? "Terminal udpated successfully" : "Terminal created successfully."
|
219
|
+
});
|
220
|
+
} catch (b) {
|
221
|
+
a.open({
|
222
|
+
type: "error",
|
223
|
+
title: "Error occurs when create terminal",
|
224
|
+
message: D(b)
|
225
|
+
});
|
226
|
+
}
|
227
|
+
});
|
228
|
+
}
|
229
|
+
const x = function(t) {
|
230
|
+
return {
|
231
|
+
id: t._id,
|
232
|
+
status: t.status,
|
233
|
+
referenceId: t.referenceId,
|
234
|
+
name: t.name,
|
235
|
+
deviceId: t.deviceId,
|
236
|
+
updatedAt: Y(t.updatedAt).format("YYYY-MM-DD hh:mm:ss")
|
237
|
+
};
|
238
|
+
}, w = [
|
239
|
+
{
|
240
|
+
accessorKey: "id",
|
241
|
+
header: () => "Terminal ID",
|
242
|
+
meta: {
|
243
|
+
textAlign: "right"
|
244
|
+
},
|
245
|
+
cell: ({ cell: t, row: e }) => S(ne, { row: e, data: t.getValue() })
|
246
|
+
},
|
247
|
+
{
|
248
|
+
accessorKey: "name",
|
249
|
+
header: () => "Name",
|
250
|
+
meta: {
|
251
|
+
textAlign: "left"
|
252
|
+
}
|
253
|
+
},
|
254
|
+
{
|
255
|
+
accessorKey: "referenceId",
|
256
|
+
header: () => "Reference",
|
257
|
+
meta: {
|
258
|
+
textAlign: "left"
|
259
|
+
}
|
260
|
+
},
|
261
|
+
{
|
262
|
+
accessorKey: "deviceId",
|
263
|
+
header: () => "Bound Device Id",
|
264
|
+
meta: {
|
265
|
+
textAlign: "left"
|
266
|
+
}
|
267
|
+
},
|
268
|
+
{
|
269
|
+
accessorKey: "updatedAt",
|
270
|
+
header: () => "Last Updated",
|
271
|
+
meta: {
|
272
|
+
textAlign: "left"
|
273
|
+
}
|
274
|
+
},
|
275
|
+
{
|
276
|
+
accessorKey: "id",
|
277
|
+
header: () => "Actions",
|
278
|
+
meta: {
|
279
|
+
textAlign: "center"
|
280
|
+
},
|
281
|
+
cell: ({ row: t }) => {
|
282
|
+
var l;
|
283
|
+
const e = (l = n.value) == null ? void 0 : l.pageData().at(t.index);
|
284
|
+
return S(ae, {
|
285
|
+
data: e,
|
286
|
+
onLink: () => v(e._id),
|
287
|
+
onUnlink: () => p(e._id),
|
288
|
+
onEdit: () => y(e)
|
289
|
+
});
|
290
|
+
}
|
291
|
+
}
|
292
|
+
];
|
293
|
+
return (t, e) => {
|
294
|
+
const l = m("FmSearch"), b = m("FmButton");
|
295
|
+
return d(), g(O, {
|
296
|
+
title: "Terminals",
|
297
|
+
loading: !1
|
298
|
+
}, {
|
299
|
+
default: V(() => [
|
300
|
+
k("div", se, [
|
301
|
+
k("div", ie, [
|
302
|
+
_(l, {
|
303
|
+
"model-value": c(o),
|
304
|
+
"onUpdate:modelValue": e[0] || (e[0] = (f) => L(o) ? o.value = f : null),
|
305
|
+
class: "mr-8",
|
306
|
+
label: "Search",
|
307
|
+
placeholder: "Search Terminals ..."
|
308
|
+
}, null, 8, ["model-value"])
|
309
|
+
]),
|
310
|
+
k("div", le, [
|
311
|
+
_(b, {
|
312
|
+
label: "Create",
|
313
|
+
icon: "add",
|
314
|
+
onClick: e[1] || (e[1] = () => y())
|
315
|
+
})
|
316
|
+
])
|
317
|
+
]),
|
318
|
+
_(q, {
|
319
|
+
ref_key: "controller",
|
320
|
+
ref: n,
|
321
|
+
"column-defs": w,
|
322
|
+
"rows-defs": x,
|
323
|
+
paginate: (f, B) => c(F).read({ searchKey: c(o), limit: f, cursor: B }),
|
324
|
+
onRowClick: e[2] || (e[2] = (f) => c(i).push({
|
325
|
+
name: "mf-payment-admin.terminal-setting",
|
326
|
+
params: {
|
327
|
+
terminalId: f._id
|
328
|
+
}
|
329
|
+
}))
|
330
|
+
}, null, 8, ["paginate"])
|
331
|
+
]),
|
332
|
+
_: 1
|
333
|
+
});
|
334
|
+
};
|
335
|
+
}
|
336
|
+
});
|
337
|
+
export {
|
338
|
+
he as default
|
339
|
+
};
|
@@ -0,0 +1,374 @@
|
|
1
|
+
import { defineComponent as b, openBlock as g, createElementBlock as _, Fragment as C, createElementVNode as F, createTextVNode as q, toDisplayString as B, ref as v, onMounted as T, computed as D, resolveComponent as f, unref as w, createVNode as y, createBlock as I, withCtx as U, createCommentVNode as S, isRef as $, resolveDynamicComponent as P, normalizeProps as K, mergeProps as L } from "vue";
|
2
|
+
import { u as M } from "./index-C_44uoxW.js";
|
3
|
+
import { useRouter as N } from "vue-router";
|
4
|
+
import { t as V } from "./index-CbUxRjwz.js";
|
5
|
+
import { _ as O } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
6
|
+
import { u as j } from "./index-BS_dGfh_.js";
|
7
|
+
import { useSnackbar as E } from "@feedmepos/ui-library";
|
8
|
+
import { u as h } from "./error-K1CakhA9.js";
|
9
|
+
const A = /* @__PURE__ */ b({
|
10
|
+
__name: "Information",
|
11
|
+
props: {
|
12
|
+
terminal: {
|
13
|
+
type: Object,
|
14
|
+
required: !0
|
15
|
+
}
|
16
|
+
},
|
17
|
+
setup(a) {
|
18
|
+
return (l, n) => (g(), _(C, null, [
|
19
|
+
n[0] || (n[0] = F("b", null, "Name", -1)),
|
20
|
+
q(": " + B(a.terminal.name), 1),
|
21
|
+
n[1] || (n[1] = F("br", null, null, -1)),
|
22
|
+
n[2] || (n[2] = F("b", null, "Status", -1)),
|
23
|
+
q(": " + B(a.terminal.status), 1),
|
24
|
+
n[3] || (n[3] = F("br", null, null, -1)),
|
25
|
+
n[4] || (n[4] = F("b", null, "Device ID", -1)),
|
26
|
+
q(": " + B(a.terminal.deviceId ?? "-"), 1),
|
27
|
+
n[5] || (n[5] = F("br", null, null, -1))
|
28
|
+
], 64));
|
29
|
+
}
|
30
|
+
}), R = {
|
31
|
+
key: 0,
|
32
|
+
class: "flex items-center justify-center min-h-[80vh]"
|
33
|
+
}, z = { class: "flex mt-6 space-x-6" }, H = /* @__PURE__ */ b({
|
34
|
+
__name: "TerminalGateway",
|
35
|
+
props: {
|
36
|
+
terminal: {
|
37
|
+
type: Object,
|
38
|
+
required: !0
|
39
|
+
},
|
40
|
+
onUpdate: {
|
41
|
+
type: Function,
|
42
|
+
required: !0
|
43
|
+
}
|
44
|
+
},
|
45
|
+
setup(a) {
|
46
|
+
const { isLoading: l, startAsyncCall: n } = M(), o = a, i = v(), c = v(), m = v(-1), e = v({
|
47
|
+
terminalId: ""
|
48
|
+
});
|
49
|
+
T(() => {
|
50
|
+
if (n(async () => {
|
51
|
+
i.value = await V.getTerminals(o.terminal.referenceId);
|
52
|
+
}), !o.terminal.ecrs)
|
53
|
+
return;
|
54
|
+
const s = o.terminal.ecrs.findIndex((r) => r && r.gateway && r.gateway === "FeedMe");
|
55
|
+
if (s === -1)
|
56
|
+
return;
|
57
|
+
m.value = s;
|
58
|
+
const u = o.terminal.ecrs.at(s);
|
59
|
+
u.gateway === "FeedMe" && u.config && (e.value = {
|
60
|
+
terminalId: u.config.terminalId
|
61
|
+
});
|
62
|
+
});
|
63
|
+
const t = D(() => (i.value ?? []).map((s) => ({
|
64
|
+
label: s.name ?? s._id,
|
65
|
+
value: s._id
|
66
|
+
})));
|
67
|
+
async function d(s) {
|
68
|
+
var u;
|
69
|
+
(u = o.terminal.ecrs) == null || u.splice(s, 1), o.onUpdate(o.terminal);
|
70
|
+
}
|
71
|
+
return (s, u) => {
|
72
|
+
const r = f("FmCircularProgress"), p = f("FmSelect"), x = f("FmButton"), k = f("FmForm");
|
73
|
+
return w(l) ? (g(), _("div", R, [
|
74
|
+
y(r, { size: "xxl" })
|
75
|
+
])) : (g(), I(k, {
|
76
|
+
key: 1,
|
77
|
+
ref: c.value,
|
78
|
+
class: "flex flex-col gap-16 w-[500px]",
|
79
|
+
onValidationSuccess: u[1] || (u[1] = () => {
|
80
|
+
m.value > -1 ? a.terminal.ecrs[m.value] = { gateway: "FeedMe", config: e.value } : (a.terminal.ecrs || (a.terminal.ecrs = []), a.terminal.ecrs.push({ gateway: "FeedMe", config: e.value })), o.onUpdate(a.terminal);
|
81
|
+
})
|
82
|
+
}, {
|
83
|
+
default: U(() => [
|
84
|
+
y(p, {
|
85
|
+
modelValue: e.value.terminalId,
|
86
|
+
"onUpdate:modelValue": u[0] || (u[0] = (G) => e.value.terminalId = G),
|
87
|
+
label: "Terminal ID",
|
88
|
+
items: t.value
|
89
|
+
}, null, 8, ["modelValue", "items"]),
|
90
|
+
F("div", z, [
|
91
|
+
m.value > -1 ? (g(), I(x, {
|
92
|
+
key: 0,
|
93
|
+
class: "flex-1",
|
94
|
+
variant: "secondary",
|
95
|
+
label: "Delete",
|
96
|
+
onclick: () => d(m.value)
|
97
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
98
|
+
y(x, {
|
99
|
+
type: "submit",
|
100
|
+
class: "flex-1",
|
101
|
+
variant: "primary",
|
102
|
+
label: "Save"
|
103
|
+
})
|
104
|
+
])
|
105
|
+
]),
|
106
|
+
_: 1
|
107
|
+
}, 512));
|
108
|
+
};
|
109
|
+
}
|
110
|
+
}), Q = { class: "flex mt-6 space-x-6" }, J = /* @__PURE__ */ b({
|
111
|
+
__name: "FiuuGateway",
|
112
|
+
props: {
|
113
|
+
terminal: {
|
114
|
+
type: Object,
|
115
|
+
required: !0
|
116
|
+
},
|
117
|
+
onUpdate: {
|
118
|
+
type: Function,
|
119
|
+
required: !0
|
120
|
+
}
|
121
|
+
},
|
122
|
+
setup(a) {
|
123
|
+
const l = a, n = [
|
124
|
+
{
|
125
|
+
label: "Fiuu Malaysia",
|
126
|
+
value: "cc.feedme.payment.rms"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
label: "Fiuu Malaysia V2",
|
130
|
+
value: "cc.feedme.payment.fiuu_my"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
label: "Fiuu Singapore",
|
134
|
+
value: "cc.feedme.payment.fiuu_sg"
|
135
|
+
}
|
136
|
+
], o = v(), i = v(-1), c = v({
|
137
|
+
packageId: "",
|
138
|
+
uniqueId: ""
|
139
|
+
});
|
140
|
+
T(() => {
|
141
|
+
if (!l.terminal.gateways)
|
142
|
+
return;
|
143
|
+
const e = l.terminal.gateways.findIndex((d) => d && d.gateway && d.gateway === "Fiuu");
|
144
|
+
if (e === -1)
|
145
|
+
return;
|
146
|
+
i.value = e;
|
147
|
+
const t = l.terminal.gateways.at(e);
|
148
|
+
t.gateway === "Fiuu" && t.config && (c.value = {
|
149
|
+
packageId: t.config.packageId,
|
150
|
+
uniqueId: t.config.uniqueId
|
151
|
+
});
|
152
|
+
});
|
153
|
+
async function m(e) {
|
154
|
+
var t;
|
155
|
+
(t = l.terminal.gateways) == null || t.splice(e, 1), l.onUpdate(l.terminal);
|
156
|
+
}
|
157
|
+
return (e, t) => {
|
158
|
+
const d = f("FmSelect"), s = f("FmTextField"), u = f("FmButton"), r = f("FmForm");
|
159
|
+
return g(), I(r, {
|
160
|
+
ref: o.value,
|
161
|
+
class: "flex flex-col gap-16 w-[500px]",
|
162
|
+
onValidationSuccess: t[2] || (t[2] = () => {
|
163
|
+
i.value > -1 ? a.terminal.gateways[i.value] = { gateway: "Fiuu", config: c.value } : (a.terminal.gateways || (a.terminal.gateways = []), a.terminal.gateways.push({ gateway: "Fiuu", config: c.value })), l.onUpdate(a.terminal);
|
164
|
+
})
|
165
|
+
}, {
|
166
|
+
default: U(() => [
|
167
|
+
y(d, {
|
168
|
+
modelValue: c.value.packageId,
|
169
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => c.value.packageId = p),
|
170
|
+
label: "Package ID",
|
171
|
+
items: n
|
172
|
+
}, null, 8, ["modelValue"]),
|
173
|
+
y(s, {
|
174
|
+
modelValue: c.value.uniqueId,
|
175
|
+
"onUpdate:modelValue": t[1] || (t[1] = (p) => c.value.uniqueId = p),
|
176
|
+
label: "Unique ID"
|
177
|
+
}, null, 8, ["modelValue"]),
|
178
|
+
F("div", Q, [
|
179
|
+
i.value > -1 ? (g(), I(u, {
|
180
|
+
key: 0,
|
181
|
+
class: "flex-1",
|
182
|
+
variant: "secondary",
|
183
|
+
label: "Delete",
|
184
|
+
onclick: () => m(i.value)
|
185
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
186
|
+
y(u, {
|
187
|
+
type: "submit",
|
188
|
+
class: "flex-1",
|
189
|
+
variant: "primary",
|
190
|
+
label: "Save"
|
191
|
+
})
|
192
|
+
])
|
193
|
+
]),
|
194
|
+
_: 1
|
195
|
+
}, 512);
|
196
|
+
};
|
197
|
+
}
|
198
|
+
}), W = { class: "flex mt-6 space-x-6" }, X = /* @__PURE__ */ b({
|
199
|
+
__name: "GhlGateway",
|
200
|
+
props: {
|
201
|
+
terminal: {
|
202
|
+
type: Object,
|
203
|
+
required: !0
|
204
|
+
},
|
205
|
+
onUpdate: {
|
206
|
+
type: Function,
|
207
|
+
required: !0
|
208
|
+
}
|
209
|
+
},
|
210
|
+
setup(a) {
|
211
|
+
const l = a, n = v(), o = v(-1), i = v({
|
212
|
+
merchantId: "",
|
213
|
+
terminalId: "",
|
214
|
+
privateKey: ""
|
215
|
+
});
|
216
|
+
T(() => {
|
217
|
+
if (!l.terminal.ecrs)
|
218
|
+
return;
|
219
|
+
const m = l.terminal.ecrs.findIndex((t) => t && t.gateway && t.gateway === "Ghl");
|
220
|
+
if (m === -1)
|
221
|
+
return;
|
222
|
+
o.value = m;
|
223
|
+
const e = l.terminal.ecrs.at(m);
|
224
|
+
e.gateway === "Ghl" && e.config && (i.value = {
|
225
|
+
merchantId: e.config.merchantId,
|
226
|
+
terminalId: e.config.terminalId,
|
227
|
+
privateKey: e.config.privateKey
|
228
|
+
});
|
229
|
+
});
|
230
|
+
async function c(m) {
|
231
|
+
var e;
|
232
|
+
(e = l.terminal.ecrs) == null || e.splice(m, 1), l.onUpdate(l.terminal);
|
233
|
+
}
|
234
|
+
return (m, e) => {
|
235
|
+
const t = f("FmTextField"), d = f("FmTextarea"), s = f("FmButton"), u = f("FmForm");
|
236
|
+
return g(), I(u, {
|
237
|
+
ref: n.value,
|
238
|
+
class: "flex flex-col gap-16 w-[500px]",
|
239
|
+
onValidationSuccess: e[3] || (e[3] = () => {
|
240
|
+
o.value > -1 ? a.terminal.ecrs[o.value] = { gateway: "Ghl", config: i.value } : (a.terminal.ecrs || (a.terminal.ecrs = []), a.terminal.ecrs.push({ gateway: "Ghl", config: i.value })), l.onUpdate(a.terminal);
|
241
|
+
})
|
242
|
+
}, {
|
243
|
+
default: U(() => [
|
244
|
+
y(t, {
|
245
|
+
modelValue: i.value.merchantId,
|
246
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => i.value.merchantId = r),
|
247
|
+
label: "Merchant ID"
|
248
|
+
}, null, 8, ["modelValue"]),
|
249
|
+
y(t, {
|
250
|
+
modelValue: i.value.terminalId,
|
251
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => i.value.terminalId = r),
|
252
|
+
label: "Terminal ID"
|
253
|
+
}, null, 8, ["modelValue"]),
|
254
|
+
y(d, {
|
255
|
+
modelValue: i.value.privateKey,
|
256
|
+
"onUpdate:modelValue": e[2] || (e[2] = (r) => i.value.privateKey = r),
|
257
|
+
label: "Private Key"
|
258
|
+
}, null, 8, ["modelValue"]),
|
259
|
+
F("div", W, [
|
260
|
+
o.value > -1 ? (g(), I(s, {
|
261
|
+
key: 0,
|
262
|
+
class: "flex-1",
|
263
|
+
variant: "secondary",
|
264
|
+
label: "Delete",
|
265
|
+
onclick: () => c(o.value)
|
266
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
267
|
+
y(s, {
|
268
|
+
type: "submit",
|
269
|
+
class: "flex-1",
|
270
|
+
variant: "primary",
|
271
|
+
label: "Save"
|
272
|
+
})
|
273
|
+
])
|
274
|
+
]),
|
275
|
+
_: 1
|
276
|
+
}, 512);
|
277
|
+
};
|
278
|
+
}
|
279
|
+
}), ie = /* @__PURE__ */ b({
|
280
|
+
__name: "TerminalSetting",
|
281
|
+
props: {
|
282
|
+
terminalId: {
|
283
|
+
type: String,
|
284
|
+
required: !0
|
285
|
+
}
|
286
|
+
},
|
287
|
+
setup(a) {
|
288
|
+
const l = a, { tab: n } = j({
|
289
|
+
tab: "information"
|
290
|
+
}), { isLoading: o, startAsyncCall: i } = M(!0), c = N(), m = E(), e = v();
|
291
|
+
async function t(r) {
|
292
|
+
try {
|
293
|
+
await V.updateById(
|
294
|
+
l.terminalId,
|
295
|
+
{
|
296
|
+
name: r.name,
|
297
|
+
status: r.status,
|
298
|
+
gateways: r.gateways ?? []
|
299
|
+
}
|
300
|
+
), e.value = await V.readById(l.terminalId), m.open({
|
301
|
+
type: "success",
|
302
|
+
message: "Terminal updated successfully"
|
303
|
+
});
|
304
|
+
} catch (p) {
|
305
|
+
m.open({
|
306
|
+
type: "error",
|
307
|
+
title: "Error occurs when update terminal",
|
308
|
+
message: h(p)
|
309
|
+
});
|
310
|
+
}
|
311
|
+
}
|
312
|
+
const d = [
|
313
|
+
{
|
314
|
+
label: "Information",
|
315
|
+
value: "information",
|
316
|
+
icon: "overview",
|
317
|
+
render: A
|
318
|
+
},
|
319
|
+
{
|
320
|
+
label: "Fiuu",
|
321
|
+
value: "fiuu",
|
322
|
+
icon: "payment",
|
323
|
+
render: J
|
324
|
+
}
|
325
|
+
], s = D(() => {
|
326
|
+
var r;
|
327
|
+
return (r = d.find((p) => p.value === n.value)) == null ? void 0 : r.render;
|
328
|
+
});
|
329
|
+
async function u() {
|
330
|
+
i(async () => {
|
331
|
+
e.value = await V.readById(l.terminalId), e.value.deviceType !== "TERMINAL" && d.push(
|
332
|
+
{
|
333
|
+
label: "FeedMe Terminal",
|
334
|
+
value: "terminal",
|
335
|
+
icon: "shopping_cart_checkout",
|
336
|
+
render: H
|
337
|
+
},
|
338
|
+
{
|
339
|
+
label: "GHL Terminal (V2)",
|
340
|
+
value: "ghl",
|
341
|
+
icon: "shopping_cart_checkout",
|
342
|
+
render: X
|
343
|
+
}
|
344
|
+
);
|
345
|
+
});
|
346
|
+
}
|
347
|
+
return T(u), (r, p) => {
|
348
|
+
var k;
|
349
|
+
const x = f("FmTabs");
|
350
|
+
return g(), I(O, {
|
351
|
+
title: `Terminal (${(k = e.value) == null ? void 0 : k._id})`,
|
352
|
+
loading: w(o),
|
353
|
+
onBack: w(c).back
|
354
|
+
}, {
|
355
|
+
default: U(() => [
|
356
|
+
y(x, {
|
357
|
+
"model-value": w(n),
|
358
|
+
"onUpdate:modelValue": p[0] || (p[0] = (G) => $(n) ? n.value = G : null),
|
359
|
+
class: "mb-6",
|
360
|
+
items: d
|
361
|
+
}, null, 8, ["model-value"]),
|
362
|
+
w(n) ? (g(), I(P(s.value), K(L({ key: 0 }, {
|
363
|
+
terminal: e.value,
|
364
|
+
onUpdate: t
|
365
|
+
})), null, 16)) : S("", !0)
|
366
|
+
]),
|
367
|
+
_: 1
|
368
|
+
}, 8, ["title", "loading", "onBack"]);
|
369
|
+
};
|
370
|
+
}
|
371
|
+
});
|
372
|
+
export {
|
373
|
+
ie as default
|
374
|
+
};
|