@acedatacloud/nexior 3.41.0 → 3.43.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/assets/Auth-CQfna_O5.js +1 -0
- package/dist/assets/BotPlaceholder-BtL3p7jd.js +1 -0
- package/dist/assets/Callback-Br6cIeIY.js +1 -0
- package/dist/assets/Console-C1NEG4NW.js +1 -0
- package/dist/assets/Consumption-B-b7aFio.js +1 -0
- package/dist/assets/{Conversation-BI54YP0e.js → Conversation-B6jUTwZ2.js} +14 -14
- package/dist/assets/{Conversation-kx9FqDDe.css → Conversation-Bu9QLrIj.css} +1 -1
- package/dist/assets/CopyToClipboard-B_XEFo2G.js +1 -0
- package/dist/assets/Detail-DdOuvcCx.js +2 -0
- package/dist/assets/EditArray-CJJf2X7B.js +1 -0
- package/dist/assets/Extra-BRGXOZ_5.js +1 -0
- package/dist/assets/FilePreview-Iiu2yJ_q.js +1 -0
- package/dist/assets/History-BuzqelDf.js +1 -0
- package/dist/assets/IconPark.vue_vue_type_script_setup_true_lang-ECUk34Hj.js +1 -0
- package/dist/assets/ImagePreview-CmSFKl9P.js +1 -0
- package/dist/assets/ImageWrapper-D1vM59Ll.js +1 -0
- package/dist/assets/Index-20jrfKts.js +1 -0
- package/dist/assets/Index-5wsHBX04.js +1 -0
- package/dist/assets/Index-9pherYxu.js +1 -0
- package/dist/assets/Index-Af8L1p29.js +1 -0
- package/dist/assets/Index-BHZrfX3P.js +1 -0
- package/dist/assets/Index-BPFrY7_T.js +1 -0
- package/dist/assets/Index-BU8cVRKW.js +1 -0
- package/dist/assets/Index-BvusNvo_.js +1 -0
- package/dist/assets/Index-By4t1DR4.js +1 -0
- package/dist/assets/Index-ByYc_yOk.js +1 -0
- package/dist/assets/Index-By_GE1dy.js +1 -0
- package/dist/assets/Index-CEKD4cw_.js +1 -0
- package/dist/assets/Index-CKRX_SYQ.js +1 -0
- package/dist/assets/Index-ChQH2hbV.js +1 -0
- package/dist/assets/Index-ClkkrCRw.js +1 -0
- package/dist/assets/Index-CmCAQVjJ.js +1 -0
- package/dist/assets/Index-CoVOc-0v.js +1 -0
- package/dist/assets/Index-DEOMMW_R.js +1 -0
- package/dist/assets/Index-DFjJDVVy.js +1 -0
- package/dist/assets/Index-DTC9kw_c.js +1 -0
- package/dist/assets/Index-JAYrNkUt.js +1 -0
- package/dist/assets/Index-WBT4eBjX.js +1 -0
- package/dist/assets/Index-sCXhNu3k.js +4 -0
- package/dist/assets/Index-yCrhm6CY.js +1 -0
- package/dist/assets/Invitees-bk0V4RaQ.js +1 -0
- package/dist/assets/List-5rrA2IB0.js +1 -0
- package/dist/assets/List-BPBV1srn.js +1 -0
- package/dist/assets/List-Rr4-pJhF.js +1 -0
- package/dist/assets/{Login-MBGScPOp.js → Login-VA8UvJlW.js} +1 -1
- package/dist/assets/Main-DDaMQagy.js +1 -0
- package/dist/assets/Navigator-GMjSrTB0.js +1 -0
- package/dist/assets/NoTasks-BtkYUs3L.js +1 -0
- package/dist/assets/OAuthCallback-CF30qksd.js +1 -0
- package/dist/assets/Pagination-DBiwRFJa.js +1 -0
- package/dist/assets/ScrollList-8LAjKIZr.js +1 -0
- package/dist/assets/Status-CCjRDVBc.js +1 -0
- package/dist/assets/Subscribe-5sfI5b8s.js +1 -0
- package/dist/assets/TransportWebHID-Dzg5guPk.js +1 -0
- package/dist/assets/VideoPlayer-B3rqtfk0.js +1 -0
- package/dist/assets/_Uint8Array-BlD0Jmup.js +1 -0
- package/dist/assets/_baseClone--Yvjez4_.js +1 -0
- package/dist/assets/_baseIteratee-D0BKcR_0.js +1 -0
- package/dist/assets/_initCloneObject-B_Loo2_z.js +1 -0
- package/dist/assets/{add-Cej3lYEi.js → add-CI0Aq-gO.js} +2 -2
- package/dist/assets/all-wallets-DhTgeLqi.js +6 -0
- package/dist/assets/{app-store-_l8weNYT.js → app-store-BfD4yp68.js} +2 -2
- package/dist/assets/{apple-VGzznOBb.js → apple-By9XW-uR.js} +2 -2
- package/dist/assets/ar-D1hnTQ2h.js +1 -0
- package/dist/assets/arrow-bottom-C8bVXAna.js +8 -0
- package/dist/assets/{arrow-bottom-circle-C_wnYD8U.js → arrow-bottom-circle-DO6wYdgR.js} +2 -2
- package/dist/assets/arrow-left-aGrg8fdr.js +8 -0
- package/dist/assets/arrow-right-Cvmo53IP.js +8 -0
- package/dist/assets/arrow-top-CJjydfb6.js +8 -0
- package/dist/assets/{avatar-CpMq1eBe.js → avatar-C6_dFKCS.js} +1 -1
- package/dist/assets/{bank-D51LF7l6.js → bank-C8dec04R.js} +2 -2
- package/dist/assets/{basic-CLN-0hXz.js → basic-8fU48nZG.js} +1 -1
- package/dist/assets/bignumber-DUrlv2iZ.js +1 -0
- package/dist/assets/{browser-DM55iMdM.js → browser-BS7i9frR.js} +2 -2
- package/dist/assets/{card-CXC1S_Eo.js → card-B3s0vkKd.js} +2 -2
- package/dist/assets/castArray-DA65rAxU.js +1 -0
- package/dist/assets/{chat-BrVi9oZE.js → chat-BP_71uuQ.js} +1 -1
- package/dist/assets/{chat-BVO1_8SQ.js → chat-CrUp91il.js} +1 -1
- package/dist/assets/{checkmark-CO-VIm-H.js → checkmark-BwQOFRcP.js} +2 -2
- package/dist/assets/checkmark-bold-DKqz-Nhr.js +8 -0
- package/dist/assets/chevron-bottom-CS9jgXWb.js +8 -0
- package/dist/assets/chevron-left-BswKubfn.js +8 -0
- package/dist/assets/chevron-right-ClBGGoFR.js +8 -0
- package/dist/assets/chevron-top-BNdfhxgq.js +8 -0
- package/dist/assets/{chrome-store-CoNUPTIh.js → chrome-store-C-U-h51c.js} +2 -2
- package/dist/assets/{clock-CffFYKLn.js → clock-DCzRPZVy.js} +2 -2
- package/dist/assets/close-wCXMGS0x.js +8 -0
- package/dist/assets/coinPlaceholder-Bnrc1UkE.js +8 -0
- package/dist/assets/compass-CFtdFlra.js +8 -0
- package/dist/assets/{copy-OaInAwS_.js → copy-D5ZgjVSW.js} +2 -2
- package/dist/assets/cursor-QN1sVXbU.js +3 -0
- package/dist/assets/cursor-transparent-B2iEHfhr.js +12 -0
- package/dist/assets/de-BZu7ZZ9y.js +1 -0
- package/dist/assets/debounce-C5K2XP5d.js +1 -0
- package/dist/assets/{desktop-BvBw9qlL.js → desktop-BPVBxTOT.js} +2 -2
- package/dist/assets/{disconnect-srN-N4mk.js → disconnect-D1_9F8eh.js} +2 -2
- package/dist/assets/{discord-CkmEjSTZ.js → discord-pI1Bf_4B.js} +2 -2
- package/dist/assets/{distribution-5yio5cX-.js → distribution-DGam0WGC.js} +1 -1
- package/dist/assets/{draggabilly-23WCleZP.js → draggabilly-BOTxFV0F.js} +1 -1
- package/dist/assets/dropdown-3B3A7FwO.js +1 -0
- package/dist/assets/el-DJ93mLwP.js +1 -0
- package/dist/assets/es-Idilhmtq.js +1 -0
- package/dist/assets/{etherscan-ek3fcOUB.js → etherscan-CbTuTjj4.js} +2 -2
- package/dist/assets/{events-D0CJzW9n.js → events-C1bJOe9X.js} +1 -1
- package/dist/assets/{exclamation-triangle-RQi1c0ja.js → exclamation-triangle-pfjGHtM_.js} +2 -2
- package/dist/assets/{extension-DLEEg7jZ.js → extension-BQ_VFSH6.js} +2 -2
- package/dist/assets/external-link-JGcBzF6B.js +8 -0
- package/dist/assets/{facebook-YP1o7w1S.js → facebook-CUHTmzkB.js} +2 -2
- package/dist/assets/{farcaster-B_OBE3Eo.js → farcaster-CFO0uUhe.js} +2 -2
- package/dist/assets/fi-BhhlDzr_.js +1 -0
- package/dist/assets/filters-DtBThRRO.js +8 -0
- package/dist/assets/fr-fyTGkfid.js +1 -0
- package/dist/assets/{github-Ztb4NkdD.js → github-BjrsAraB.js} +2 -2
- package/dist/assets/{google-BgxHS41T.js → google-COwbhocE.js} +2 -2
- package/dist/assets/{help-circle-BLQIJm1Z.js → help-circle-BhpxC_WH.js} +2 -2
- package/dist/assets/{id-CtpNXNpV.js → id-BOwzmYrl.js} +2 -2
- package/dist/assets/{image-CyDfNSVI.js → image-Ybd3nnfV.js} +2 -2
- package/dist/assets/index-0xrin-XU.js +1 -0
- package/dist/assets/{index-Cxt3EugS.js → index-4erIVwAR.js} +1 -1
- package/dist/assets/index-9W3S0s2z.js +1 -0
- package/dist/assets/index-B0yjbrDa.js +1 -0
- package/dist/assets/index-B6l22Ysr.js +1 -0
- package/dist/assets/index-BEgAV13o.js +14 -0
- package/dist/assets/index-BHCv9V0D.js +1 -0
- package/dist/assets/index-BIMOMyAe.js +1 -0
- package/dist/assets/{index-CXc6VuzW.js → index-Bb7O2JP3.js} +1 -1
- package/dist/assets/index-Bm2zZVxp.js +1 -0
- package/dist/assets/{index-MCdBwpK0.js → index-BmPyiOJq.js} +3 -3
- package/dist/assets/index-BrRZLWMC.js +1 -0
- package/dist/assets/index-C56h-dT9.js +1 -0
- package/dist/assets/{index-Bu-40J4D.js → index-CLLaKcHa.js} +1 -1
- package/dist/assets/index-CQFH4rAT.js +614 -0
- package/dist/assets/index-CQJCHbrR.js +1 -0
- package/dist/assets/index-CSYxD6FA.js +1 -0
- package/dist/assets/index-CVc-DHWh.js +1 -0
- package/dist/assets/index-CaR8Kd4i.js +1 -0
- package/dist/assets/{index-C5mXxKPS.js → index-Cp1H6mzv.js} +1 -1
- package/dist/assets/index-Cpe2zZZn.js +1 -0
- package/dist/assets/index-CuKh98Bu.js +1 -0
- package/dist/assets/index-CwrxRyEc.js +1 -0
- package/dist/assets/index-CwsA6oLb.js +6 -0
- package/dist/assets/index-D09zAYiG.js +1 -0
- package/dist/assets/index-DG1qzMgb.js +1 -0
- package/dist/assets/index-DTAvloHM.js +1 -0
- package/dist/assets/index-DXExdniv.js +1 -0
- package/dist/assets/index-DZgszL6F.js +1 -0
- package/dist/assets/index-Dacz3igS.js +1 -0
- package/dist/assets/index-DdcbMr9H.js +1 -0
- package/dist/assets/index-DgnqnCeb.js +1 -0
- package/dist/assets/index-DgyFjeNl.js +1 -0
- package/dist/assets/index-Dh5WYZ2E.js +3 -0
- package/dist/assets/index-Dm4VNq4D.js +1 -0
- package/dist/assets/index-DvZdLZ0g.js +1 -0
- package/dist/assets/index-EHHGzRO3.js +3 -0
- package/dist/assets/index-H38H3agg.js +1 -0
- package/dist/assets/{index-DHrOnDD0.js → index-eP5jEst-.js} +3 -3
- package/dist/assets/{index-COE4TGua.js → index-j0k5PhkC.js} +7 -7
- package/dist/assets/index-j6T2T_PC.js +1 -0
- package/dist/assets/index-nVm-ardh.js +1 -0
- package/dist/assets/index-olTz47jX.js +1 -0
- package/dist/assets/index-r5W6hzzQ.js +1 -0
- package/dist/assets/index-uFwENPsX.js +1 -0
- package/dist/assets/index-zTF34O3F.js +12 -0
- package/dist/assets/{index.browser.esm-BgC0y73S.js → index.browser.esm-DMabfmUT.js} +5 -5
- package/dist/assets/{index.es-D1JQh6lW.js → index.es-N_0gWjBX.js} +1 -1
- package/dist/assets/{info-BpINXosl.js → info-DbOZGWIM.js} +2 -2
- package/dist/assets/info-circle-BxA9kIkw.js +12 -0
- package/dist/assets/isEqual-DyE4gWGT.js +1 -0
- package/dist/assets/isPlainObject-C7a5NFIa.js +1 -0
- package/dist/assets/it-CLf6lrMi.js +1 -0
- package/dist/assets/ja-DFyNu3tl.js +1 -0
- package/dist/assets/ko-DUrUYy0R.js +1 -0
- package/dist/assets/{lightbulb-B3mRpz7g.js → lightbulb-CEODTda1.js} +2 -2
- package/dist/assets/{mail-CKS7GJ21.js → mail-D0L0SIV1.js} +2 -2
- package/dist/assets/mobile-fN2fKJiE.js +9 -0
- package/dist/assets/more-BCh5musB.js +11 -0
- package/dist/assets/{network-placeholder-BNOilW8x.js → network-placeholder-SqdHuWDB.js} +2 -2
- package/dist/assets/{nftPlaceholder-o_XkIwI1.js → nftPlaceholder-CgmRqnmx.js} +2 -2
- package/dist/assets/off-Byt1H_Ob.js +8 -0
- package/dist/assets/{order-CAZjSL7R.js → order-BeWu-e8_.js} +1 -1
- package/dist/assets/{pagination-BISGwxYx.js → pagination-B2Jzxk4_.js} +1 -1
- package/dist/assets/pl-By8ttK5W.js +1 -0
- package/dist/assets/{play-store-C_taH3rF.js → play-store-CwpOQiIw.js} +2 -2
- package/dist/assets/{plus-CjpDmjET.js → plus-BfscSqPL.js} +2 -2
- package/dist/assets/{price-BGD238oZ.js → price-DIMx06kF.js} +1 -1
- package/dist/assets/pt-iBE8V_rF.js +1 -0
- package/dist/assets/{qr-code-DVDBKjBJ.js → qr-code-D26URhNh.js} +2 -2
- package/dist/assets/{recycle-horizontal-CTy60jvu.js → recycle-horizontal-C5s_6VgO.js} +2 -2
- package/dist/assets/refresh-9wuURvQ_.js +8 -0
- package/dist/assets/{reown-logo-3K33yuCM.js → reown-logo-ACxnrX5S.js} +2 -2
- package/dist/assets/ru-a9O4dLvt.js +1 -0
- package/dist/assets/search-rJ1xIPid.js +8 -0
- package/dist/assets/secp256k1-B8woEDEY.js +1 -0
- package/dist/assets/secp256k1-C4_OYU2w.js +1 -0
- package/dist/assets/{send-BUHw5SxR.js → send-BlWFnmmC.js} +2 -2
- package/dist/assets/solana-wallets-41uKNkAT.js +2 -0
- package/dist/assets/{solana-wallets-vue-CIZq7P0R.js → solana-wallets-vue-BrBRlKbs.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-BFRIxILm.js → solanaEmbed.esm-DYPruTmq.js} +3 -3
- package/dist/assets/sr-BuqPpavQ.js +1 -0
- package/dist/assets/{standard-D6thY6gA.js → standard-CDjM418q.js} +1 -1
- package/dist/assets/{string_decoder-BFtGGD8C.js → string_decoder-PXU5U8V_.js} +1 -1
- package/dist/assets/strings-BT-SZrAZ.js +1 -0
- package/dist/assets/sv-CiSSmJ4h.js +1 -0
- package/dist/assets/swapHorizontal-BRynepFI.js +8 -0
- package/dist/assets/{swapHorizontalBold-BK5ZY5Eg.js → swapHorizontalBold-CQpA0w_r.js} +2 -2
- package/dist/assets/{swapHorizontalMedium-9bgJi7-D.js → swapHorizontalMedium-CeHGE6Cg.js} +2 -2
- package/dist/assets/{swapHorizontalRoundedBold-Di8WN7e2.js → swapHorizontalRoundedBold-BUtx5FVc.js} +2 -2
- package/dist/assets/swapVertical-Du0nuLAY.js +8 -0
- package/dist/assets/{telegram-Y1SeA6CW.js → telegram-CE5md-la.js} +2 -2
- package/dist/assets/{three-dots-Dguwlh55.js → three-dots-DAmjmfgz.js} +2 -2
- package/dist/assets/{twitch-BNP0tsZ5.js → twitch-Dn_xaqI3.js} +2 -2
- package/dist/assets/twitterIcon-BN9aroIh.js +6 -0
- package/dist/assets/typescript-6oPksjHw.js +1 -0
- package/dist/assets/uk-Ci2KIGcW.js +1 -0
- package/dist/assets/use-form-item-C88AWVYa.js +1 -0
- package/dist/assets/validator-C2hQ3I46.js +1 -0
- package/dist/assets/{vendor-chart-BjhYT8mq.js → vendor-chart-CXSyuOer.js} +1 -1
- package/dist/assets/{vendor-dayjs-CzbnksQQ.js → vendor-dayjs-D7e3rSuL.js} +1 -1
- package/dist/assets/{vendor-highlight-CvK2rpA0.js → vendor-highlight-CyWCyJuM.js} +1 -1
- package/dist/assets/{vendor-vue-qgt_zvDa.js → vendor-vue-DT_1TMfY.js} +1 -1
- package/dist/assets/{vendor-vue-router-u1O--QAh.js → vendor-vue-router-BdJrTa0V.js} +2 -2
- package/dist/assets/{verify-Dj7zK_hW.js → verify-BnQkQz8b.js} +2 -2
- package/dist/assets/{verify-filled-Dd9jmOaM.js → verify-filled-Cgs2pBn0.js} +2 -2
- package/dist/assets/{w3m-modal-BPkacxAf.js → w3m-modal-BkWizbC1.js} +1 -1
- package/dist/assets/{wallet-B9AxJI9X.js → wallet-10UnWi-P.js} +2 -2
- package/dist/assets/{wallet-placeholder-S5I6xJMp.js → wallet-placeholder-B6GYvwiS.js} +2 -2
- package/dist/assets/{walletconnect-BjG2bjuv.js → walletconnect-BylgmGzb.js} +4 -4
- package/dist/assets/warning-circle-CfcPca5I.js +12 -0
- package/dist/assets/web-2IFFePwp.js +1 -0
- package/dist/assets/web-ozda-P_H.js +1 -0
- package/dist/assets/x-RBjDMPUi.js +12 -0
- package/dist/assets/zh-cn-CnyULPxw.js +1 -0
- package/dist/assets/zh-tw-ZQmLUxJy.js +1 -0
- package/dist/index.html +4 -5
- package/package.json +1 -1
- package/dist/assets/Auth-BLAPuEbC.js +0 -1
- package/dist/assets/BotPlaceholder-BbXd0Ib1.js +0 -1
- package/dist/assets/Callback-Dh0cUrkh.js +0 -1
- package/dist/assets/Console-BphSuBrx.js +0 -1
- package/dist/assets/Consumption-DCylgyh_.js +0 -1
- package/dist/assets/CopyToClipboard-Dmoz9wQr.js +0 -1
- package/dist/assets/Detail-BcZxfAvt.js +0 -2
- package/dist/assets/EditArray-CkAAQmrY.js +0 -1
- package/dist/assets/Extra-C04MdWRu.js +0 -1
- package/dist/assets/FilePreview-BWIDAWjm.js +0 -1
- package/dist/assets/History-DavEX794.js +0 -1
- package/dist/assets/IconPark.vue_vue_type_script_setup_true_lang-CNnhez9x.js +0 -1
- package/dist/assets/ImagePreview-B1IbV162.js +0 -1
- package/dist/assets/ImageWrapper-DgnPCaVB.js +0 -1
- package/dist/assets/Index-1iX8RLvu.js +0 -1
- package/dist/assets/Index-B7Wjkfjt.js +0 -1
- package/dist/assets/Index-B84a-WGG.js +0 -1
- package/dist/assets/Index-BUCFPzZw.js +0 -1
- package/dist/assets/Index-C4v_Bbrc.js +0 -1
- package/dist/assets/Index-CGgnSoip.js +0 -1
- package/dist/assets/Index-C_IBW4mk.js +0 -1
- package/dist/assets/Index-Cc-xq2FC.js +0 -1
- package/dist/assets/Index-CihzEHL-.js +0 -1
- package/dist/assets/Index-CoFUR8bB.js +0 -1
- package/dist/assets/Index-CyD69Z-2.js +0 -1
- package/dist/assets/Index-DCXcwics.js +0 -1
- package/dist/assets/Index-DF3Srpe_.js +0 -1
- package/dist/assets/Index-DU3RwB5g.js +0 -1
- package/dist/assets/Index-DX1supez.js +0 -1
- package/dist/assets/Index-DYfFnkHz.js +0 -1
- package/dist/assets/Index-Dnik3NtI.js +0 -1
- package/dist/assets/Index-Du0yd-bQ.js +0 -1
- package/dist/assets/Index-OsalZm6g.js +0 -1
- package/dist/assets/Index-RtGDINdi.js +0 -1
- package/dist/assets/Index-TgozTHfL.js +0 -1
- package/dist/assets/Index-ViSFlGS5.js +0 -1
- package/dist/assets/Index-af66nZHA.js +0 -4
- package/dist/assets/Index-viy3GQvm.js +0 -1
- package/dist/assets/Invitees-D_3A31PZ.js +0 -1
- package/dist/assets/List-BVPfTFdA.js +0 -1
- package/dist/assets/List-C4txf5cl.js +0 -1
- package/dist/assets/List-ChOuEDiu.js +0 -1
- package/dist/assets/Main-8wp3JMoh.js +0 -1
- package/dist/assets/Navigator-BAIFRxG2.js +0 -1
- package/dist/assets/NoTasks-DANFITcy.js +0 -1
- package/dist/assets/OAuthCallback-BcajxIxj.js +0 -1
- package/dist/assets/Pagination-BxJhHf8c.js +0 -1
- package/dist/assets/ScrollList-DKuRqiyr.js +0 -1
- package/dist/assets/Status-COrHVije.js +0 -1
- package/dist/assets/Subscribe-ji6U2sGB.js +0 -1
- package/dist/assets/TransportWebHID-BtfYQ7qo.js +0 -1
- package/dist/assets/VideoPlayer-GyiqN7Nw.js +0 -1
- package/dist/assets/all-wallets-CiV9ToPJ.js +0 -6
- package/dist/assets/arrow-bottom-lUi2q43i.js +0 -8
- package/dist/assets/arrow-left-6Oh0eYZk.js +0 -8
- package/dist/assets/arrow-right-DaOIbPSc.js +0 -8
- package/dist/assets/arrow-top-DtnOB2yN.js +0 -8
- package/dist/assets/bignumber-0htCtQtr.js +0 -1
- package/dist/assets/checkmark-bold-Dqye1AmK.js +0 -8
- package/dist/assets/chevron-bottom-B6SiJCL5.js +0 -8
- package/dist/assets/chevron-left-D6oh2hSs.js +0 -8
- package/dist/assets/chevron-right-CWq8Of2r.js +0 -8
- package/dist/assets/chevron-top-5rqFP1Yv.js +0 -8
- package/dist/assets/close-DPIou5yj.js +0 -8
- package/dist/assets/coinPlaceholder-BCwnp2ue.js +0 -8
- package/dist/assets/compass-Ch_ZL2IR.js +0 -8
- package/dist/assets/cursor-KyxG8NTF.js +0 -3
- package/dist/assets/cursor-transparent-9Z7o-A7s.js +0 -12
- package/dist/assets/external-link-B92YWvPp.js +0 -8
- package/dist/assets/filters-BdS-a56b.js +0 -8
- package/dist/assets/index-B-XBX1Z0.js +0 -1
- package/dist/assets/index-Bx1zkUa7.js +0 -3
- package/dist/assets/index-Cu3Or7ae.js +0 -614
- package/dist/assets/index-DbT5qKX_.js +0 -1
- package/dist/assets/index-elUUgu2a.js +0 -3
- package/dist/assets/info-circle-C-sf1__x.js +0 -12
- package/dist/assets/mobile-DEbW1wmo.js +0 -9
- package/dist/assets/more-RGLcF38Y.js +0 -11
- package/dist/assets/off-B4wanlI_.js +0 -8
- package/dist/assets/refresh-CC35F_Xd.js +0 -8
- package/dist/assets/search-BfmxtcQf.js +0 -8
- package/dist/assets/secp256k1-C3UINImC.js +0 -1
- package/dist/assets/secp256k1-_PjHAGQG.js +0 -1
- package/dist/assets/solana-wallets-BO6PTFWK.js +0 -2
- package/dist/assets/swapHorizontal-CQilcsH8.js +0 -8
- package/dist/assets/swapVertical-DGW4iI0u.js +0 -8
- package/dist/assets/twitterIcon-oOIPd7hq.js +0 -6
- package/dist/assets/vendor-element-plus-CQnKmb2Y.js +0 -30
- package/dist/assets/warning-circle-DmNjOskn.js +0 -12
- package/dist/assets/web-BKetsAW1.js +0 -1
- package/dist/assets/web-EqlHjeGG.js +0 -1
- package/dist/assets/x-ZYvOIc_2.js +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{s as ot,d as ze,u as Q,
|
|
1
|
+
import{s as ot,d as ze,u as Q,b as st,c as it,e as Y,f as N,h as Ve,p as ae,r as ct,w as at,n as lt}from"./vendor-vue-DT_1TMfY.js";/*!
|
|
2
2
|
* vue-router v4.5.1
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const V=typeof document<"u";function qe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ut(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&qe(e.default)}const P=Object.assign;function le(e,t){const n={};for(const r in t){const o=t[r];n[r]=T(o)?o.map(e):e(o)}return n}const W=()=>{},T=Array.isArray,Ge=/#/g,ft=/&/g,ht=/\//g,dt=/=/g,pt=/\?/g,Ke=/\+/g,mt=/%5B/g,gt=/%5D/g,Ue=/%5E/g,vt=/%60/g,De=/%7B/g,yt=/%7C/g,Qe=/%7D/g,Rt=/%20/g;function me(e){return encodeURI(""+e).replace(yt,"|").replace(mt,"[").replace(gt,"]")}function Et(e){return me(e).replace(De,"{").replace(Qe,"}").replace(Ue,"^")}function he(e){return me(e).replace(Ke,"%2B").replace(Rt,"+").replace(Ge,"%23").replace(ft,"%26").replace(vt,"`").replace(De,"{").replace(Qe,"}").replace(Ue,"^")}function wt(e){return he(e).replace(dt,"%3D")}function Pt(e){return me(e).replace(Ge,"%23").replace(pt,"%3F")}function St(e){return e==null?"":Pt(e).replace(ht,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bt=/\/$/,kt=e=>e.replace(bt,"");function ue(e,t,n="/"){let r,o={},a="",d="";const g=t.indexOf("#");let i=t.indexOf("?");return g<i&&g>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,g>-1?g:t.length),o=e(a)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=Ot(r??t,n),{fullPath:r+(a&&"?")+a+d,path:r,query:o,hash:X(d)}}function Ct(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Se(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function At(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&q(t.matched[r],n.matched[o])&&We(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function We(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_t(e[n],t[n]))return!1;return!0}function _t(e,t){return T(e)?be(e,t):T(t)?be(t,e):e===t}function be(e,t){return T(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ot(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,d,g;for(d=0;d<r.length;d++)if(g=r[d],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(d).join("/")}const B={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var F;(function(e){e.back="back",e.forward="forward",e.unknown=""})(F||(F={}));function xt(e){if(!e)if(V){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kt(e)}const Mt=/^[^#]+#/;function It(e,t){return e.replace(Mt,"#")+t}function Tt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.scrollX,top:window.scrollY});function Nt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Tt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ke(e,t){return(history.state?history.state.position-t:-1)+e}const de=new Map;function Lt(e,t){de.set(e,t)}function $t(e){const t=de.get(e);return de.delete(e),t}let Bt=()=>location.protocol+"//"+location.host;function Fe(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let g=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(g);return i[0]!=="/"&&(i="/"+i),Se(i,"")}return Se(n,e)+r+o}function jt(e,t,n,r){let o=[],a=[],d=null;const g=({state:l})=>{const u=Fe(e,location),w=n.value,S=t.value;let C=0;if(l){if(n.value=u,t.value=l,d&&d===w){d=null;return}C=S?l.position-S.position:0}else r(u);o.forEach(A=>{A(n.value,w,{delta:C,type:Z.pop,direction:C?C>0?F.forward:F.back:F.unknown})})};function i(){d=n.value}function f(l){o.push(l);const u=()=>{const w=o.indexOf(l);w>-1&&o.splice(w,1)};return a.push(u),u}function h(){const{history:l}=window;l.state&&l.replaceState(P({},l.state,{scroll:te()}),"")}function c(){for(const l of a)l();a=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:i,listen:f,destroy:c}}function Ce(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Ht(e){const{history:t,location:n}=window,r={value:Fe(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,f,h){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+i:Bt()+e+i;try{t[h?"replaceState":"pushState"](f,"",l),o.value=f}catch(u){console.error(u),n[h?"replace":"assign"](l)}}function d(i,f){const h=P({},t.state,Ce(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});a(i,h,!0),r.value=i}function g(i,f){const h=P({},o.value,t.state,{forward:i,scroll:te()});a(h.current,h,!0);const c=P({},Ce(r.value,i,null),{position:h.position+1},f);a(i,c,!1),r.value=i}return{location:r,state:o,push:g,replace:d}}function dn(e){e=xt(e);const t=Ht(e),n=jt(e,t.state,t.location,t.replace);function r(a,d=!0){d||n.pauseListeners(),history.go(a)}const o=P({location:"",base:e,go:r,createHref:It.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function zt(e){return typeof e=="string"||e&&typeof e=="object"}function Ye(e){return typeof e=="string"||typeof e=="symbol"}const Xe=Symbol("");var Ae;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ae||(Ae={}));function G(e,t){return P(new Error,{type:e,[Xe]:!0},t)}function L(e,t){return e instanceof Error&&Xe in e&&(t==null||!!(e.type&t))}const _e="[^/]+?",Vt={sensitive:!1,strict:!1,start:!0,end:!0},qt=/[.+*?^${}()[\]/\\]/g;function Gt(e,t){const n=P({},Vt,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let c=0;c<f.length;c++){const l=f[c];let u=40+(n.sensitive?.25:0);if(l.type===0)c||(o+="/"),o+=l.value.replace(qt,"\\$&"),u+=40;else if(l.type===1){const{value:w,repeatable:S,optional:C,regexp:A}=l;a.push({name:w,repeatable:S,optional:C});const E=A||_e;if(E!==_e){u+=10;try{new RegExp(`(${E})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${w}" (${E}): `+I.message)}}let b=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(b=C&&f.length<2?`(?:/${b})`:"/"+b),C&&(b+="?"),o+=b,u+=20,C&&(u+=-8),S&&(u+=-20),E===".*"&&(u+=-50)}h.push(u)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const d=new RegExp(o,n.sensitive?"":"i");function g(f){const h=f.match(d),c={};if(!h)return null;for(let l=1;l<h.length;l++){const u=h[l]||"",w=a[l-1];c[w.name]=u&&w.repeatable?u.split("/"):u}return c}function i(f){let h="",c=!1;for(const l of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const u of l)if(u.type===0)h+=u.value;else if(u.type===1){const{value:w,repeatable:S,optional:C}=u,A=w in f?f[w]:"";if(T(A)&&!S)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const E=T(A)?A.join("/"):A;if(!E)if(C)l.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${w}"`);h+=E}}return h||"/"}return{re:d,score:r,keys:a,parse:g,stringify:i}}function Kt(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ze(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Kt(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(Oe(r))return 1;if(Oe(o))return-1}return o.length-r.length}function Oe(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ut={type:0,value:""},Dt=/[a-zA-Z0-9_]/;function Qt(e){if(!e)return[[]];if(e==="/")return[[Ut]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${f}": ${u}`)}let n=0,r=n;const o=[];let a;function d(){a&&o.push(a),a=[]}let g=0,i,f="",h="";function c(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function l(){f+=i}for(;g<e.length;){if(i=e[g++],i==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:i==="/"?(f&&c(),d()):i===":"?(c(),n=1):l();break;case 4:l(),n=r;break;case 1:i==="("?n=2:Dt.test(i)?l():(c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--);break;case 2:i===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+i:n=3:h+=i;break;case 3:c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),c(),d(),o}function Wt(e,t,n){const r=Gt(Qt(e.path),n),o=P(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ft(e,t){const n=[],r=new Map;t=Te({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function a(c,l,u){const w=!u,S=Me(c);S.aliasOf=u&&u.record;const C=Te(t,c),A=[S];if("alias"in c){const I=typeof c.alias=="string"?[c.alias]:c.alias;for(const H of I)A.push(Me(P({},S,{components:u?u.record.components:S.components,path:H,aliasOf:u?u.record:S})))}let E,b;for(const I of A){const{path:H}=I;if(l&&H[0]!=="/"){const $=l.record.path,M=$[$.length-1]==="/"?"":"/";I.path=l.record.path+(H&&M+H)}if(E=Wt(I,l,C),u?u.alias.push(E):(b=b||E,b!==E&&b.alias.push(E),w&&c.name&&!Ie(E)&&d(c.name)),Je(E)&&i(E),S.children){const $=S.children;for(let M=0;M<$.length;M++)a($[M],E,u&&u.children[M])}u=u||E}return b?()=>{d(b)}:W}function d(c){if(Ye(c)){const l=r.get(c);l&&(r.delete(c),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(c);l>-1&&(n.splice(l,1),c.record.name&&r.delete(c.record.name),c.children.forEach(d),c.alias.forEach(d))}}function g(){return n}function i(c){const l=Zt(c,n);n.splice(l,0,c),c.record.name&&!Ie(c)&&r.set(c.record.name,c)}function f(c,l){let u,w={},S,C;if("name"in c&&c.name){if(u=r.get(c.name),!u)throw G(1,{location:c});C=u.record.name,w=P(xe(l.params,u.keys.filter(b=>!b.optional).concat(u.parent?u.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),c.params&&xe(c.params,u.keys.map(b=>b.name))),S=u.stringify(w)}else if(c.path!=null)S=c.path,u=n.find(b=>b.re.test(S)),u&&(w=u.parse(S),C=u.record.name);else{if(u=l.name?r.get(l.name):n.find(b=>b.re.test(l.path)),!u)throw G(1,{location:c,currentLocation:l});C=u.record.name,w=P({},l.params,c.params),S=u.stringify(w)}const A=[];let E=u;for(;E;)A.unshift(E.record),E=E.parent;return{name:C,path:S,params:w,matched:A,meta:Xt(A)}}e.forEach(c=>a(c));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:d,clearRoutes:h,getRoutes:g,getRecordMatcher:o}}function xe(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Me(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yt(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ie(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xt(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Te(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Zt(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Ze(e,t[a])<0?r=a:n=a+1}const o=Jt(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Jt(e){let t=e;for(;t=t.parent;)if(Je(t)&&Ze(e,t)===0)return t}function Je({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function en(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(Ke," "),d=a.indexOf("="),g=X(d<0?a:a.slice(0,d)),i=d<0?null:X(a.slice(d+1));if(g in t){let f=t[g];T(f)||(f=t[g]=[f]),f.push(i)}else t[g]=i}return t}function Ne(e){let t="";for(let n in e){const r=e[n];if(n=wt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(T(r)?r.map(a=>a&&he(a)):[r&&he(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function tn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=T(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const nn=Symbol(""),Le=Symbol(""),ge=Symbol(""),et=Symbol(""),pe=Symbol("");function D(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function j(e,t,n,r,o,a=d=>d()){const d=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,i)=>{const f=l=>{l===!1?i(G(4,{from:n,to:t})):l instanceof Error?i(l):zt(l)?i(G(2,{from:t,to:l})):(d&&r.enterCallbacks[o]===d&&typeof l=="function"&&d.push(l),g())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let c=Promise.resolve(h);e.length<3&&(c=c.then(f)),c.catch(l=>i(l))})}function fe(e,t,n,r,o=a=>a()){const a=[];for(const d of e)for(const g in d.components){let i=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(qe(i)){const h=(i.__vccOpts||i)[t];h&&a.push(j(h,n,r,d,g,o))}else{let f=i();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${g}" at "${d.path}"`);const c=ut(h)?h.default:h;d.mods[g]=h,d.components[g]=c;const u=(c.__vccOpts||c)[t];return u&&j(u,n,r,d,g,o)()}))}}return a}function $e(e){const t=Y(ge),n=Y(et),r=N(()=>{const i=Q(e.to);return t.resolve(i)}),o=N(()=>{const{matched:i}=r.value,{length:f}=i,h=i[f-1],c=n.matched;if(!h||!c.length)return-1;const l=c.findIndex(q.bind(null,h));if(l>-1)return l;const u=Be(i[f-2]);return f>1&&Be(h)===u&&c[c.length-1].path!==u?c.findIndex(q.bind(null,i[f-2])):l}),a=N(()=>o.value>-1&&an(n.params,r.value.params)),d=N(()=>o.value>-1&&o.value===n.matched.length-1&&We(n.params,r.value.params));function g(i={}){if(cn(i)){const f=t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(W);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:a,isExactActive:d,navigate:g}}function rn(e){return e.length===1?e[0]:e}const on=ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:$e,setup(e,{slots:t}){const n=it($e(e)),{options:r}=Y(ge),o=N(()=>({[je(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[je(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&rn(t.default(n));return e.custom?a:Ve("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),sn=on;function cn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function an(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!T(o)||o.length!==r.length||r.some((a,d)=>a!==o[d]))return!1}return!0}function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const je=(e,t,n)=>e??t??n,ln=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Y(pe),o=N(()=>e.route||r.value),a=Y(Le,0),d=N(()=>{let f=Q(a);const{matched:h}=o.value;let c;for(;(c=h[f])&&!c.components;)f++;return f}),g=N(()=>o.value.matched[d.value]);ae(Le,N(()=>d.value+1)),ae(nn,g),ae(pe,o);const i=ct();return at(()=>[i.value,g.value,e.name],([f,h,c],[l,u,w])=>{h&&(h.instances[c]=f,u&&u!==h&&f&&f===l&&(h.leaveGuards.size||(h.leaveGuards=u.leaveGuards),h.updateGuards.size||(h.updateGuards=u.updateGuards))),f&&h&&(!u||!q(h,u)||!l)&&(h.enterCallbacks[c]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,c=g.value,l=c&&c.components[h];if(!l)return He(n.default,{Component:l,route:f});const u=c.props[h],w=u?u===!0?f.params:typeof u=="function"?u(f):u:null,C=Ve(l,P({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(c.instances[h]=null)},ref:i}));return He(n.default,{Component:C,route:f})||C}}});function He(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const un=ln;function pn(e){const t=Ft(e.routes,e),n=e.parseQuery||en,r=e.stringifyQuery||Ne,o=e.history,a=D(),d=D(),g=D(),i=ot(B);let f=B;V&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=le.bind(null,s=>""+s),c=le.bind(null,St),l=le.bind(null,X);function u(s,m){let p,v;return Ye(s)?(p=t.getRecordMatcher(s),v=m):v=s,t.addRoute(v,p)}function w(s){const m=t.getRecordMatcher(s);m&&t.removeRoute(m)}function S(){return t.getRoutes().map(s=>s.record)}function C(s){return!!t.getRecordMatcher(s)}function A(s,m){if(m=P({},m||i.value),typeof s=="string"){const y=ue(n,s,m.path),O=t.resolve({path:y.path},m),U=o.createHref(y.fullPath);return P(y,O,{params:l(O.params),hash:X(y.hash),redirectedFrom:void 0,href:U})}let p;if(s.path!=null)p=P({},s,{path:ue(n,s.path,m.path).path});else{const y=P({},s.params);for(const O in y)y[O]==null&&delete y[O];p=P({},s,{params:c(y)}),m.params=c(m.params)}const v=t.resolve(p,m),k=s.hash||"";v.params=h(l(v.params));const _=Ct(r,P({},s,{hash:Et(k),path:v.path})),R=o.createHref(_);return P({fullPath:_,hash:k,query:r===Ne?tn(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?ue(n,s,i.value.path):P({},s)}function b(s,m){if(f!==s)return G(8,{from:m,to:s})}function I(s){return M(s)}function H(s){return I(P(E(s),{replace:!0}))}function $(s){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:p}=m;let v=typeof p=="function"?p(s):p;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=E(v):{path:v},v.params={}),P({query:s.query,hash:s.hash,params:v.path!=null?{}:s.params},v)}}function M(s,m){const p=f=A(s),v=i.value,k=s.state,_=s.force,R=s.replace===!0,y=$(p);if(y)return M(P(E(y),{state:typeof y=="object"?P({},k,y.state):k,force:_,replace:R}),m||p);const O=p;O.redirectedFrom=m;let U;return!_&&At(r,v,p)&&(U=G(16,{to:O,from:v}),we(v,v,!0,!1)),(U?Promise.resolve(U):ve(O,v)).catch(x=>L(x)?L(x,2)?x:se(x):oe(x,O,v)).then(x=>{if(x){if(L(x,2))return M(P({replace:R},E(x.to),{state:typeof x.to=="object"?P({},k,x.to.state):k,force:_}),m||O)}else x=Re(O,v,!0,R,k);return ye(O,v,x),x})}function tt(s,m){const p=b(s,m);return p?Promise.reject(p):Promise.resolve()}function ne(s){const m=ee.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(s):s()}function ve(s,m){let p;const[v,k,_]=fn(s,m);p=fe(v.reverse(),"beforeRouteLeave",s,m);for(const y of v)y.leaveGuards.forEach(O=>{p.push(j(O,s,m))});const R=tt.bind(null,s,m);return p.push(R),z(p).then(()=>{p=[];for(const y of a.list())p.push(j(y,s,m));return p.push(R),z(p)}).then(()=>{p=fe(k,"beforeRouteUpdate",s,m);for(const y of k)y.updateGuards.forEach(O=>{p.push(j(O,s,m))});return p.push(R),z(p)}).then(()=>{p=[];for(const y of _)if(y.beforeEnter)if(T(y.beforeEnter))for(const O of y.beforeEnter)p.push(j(O,s,m));else p.push(j(y.beforeEnter,s,m));return p.push(R),z(p)}).then(()=>(s.matched.forEach(y=>y.enterCallbacks={}),p=fe(_,"beforeRouteEnter",s,m,ne),p.push(R),z(p))).then(()=>{p=[];for(const y of d.list())p.push(j(y,s,m));return p.push(R),z(p)}).catch(y=>L(y,8)?y:Promise.reject(y))}function ye(s,m,p){g.list().forEach(v=>ne(()=>v(s,m,p)))}function Re(s,m,p,v,k){const _=b(s,m);if(_)return _;const R=m===B,y=V?history.state:{};p&&(v||R?o.replace(s.fullPath,P({scroll:R&&y&&y.scroll},k)):o.push(s.fullPath,k)),i.value=s,we(s,m,p,R),se()}let K;function nt(){K||(K=o.listen((s,m,p)=>{if(!Pe.listening)return;const v=A(s),k=$(v);if(k){M(P(k,{replace:!0,force:!0}),v).catch(W);return}f=v;const _=i.value;V&&Lt(ke(_.fullPath,p.delta),te()),ve(v,_).catch(R=>L(R,12)?R:L(R,2)?(M(P(E(R.to),{force:!0}),v).then(y=>{L(y,20)&&!p.delta&&p.type===Z.pop&&o.go(-1,!1)}).catch(W),Promise.reject()):(p.delta&&o.go(-p.delta,!1),oe(R,v,_))).then(R=>{R=R||Re(v,_,!1),R&&(p.delta&&!L(R,8)?o.go(-p.delta,!1):p.type===Z.pop&&L(R,20)&&o.go(-1,!1)),ye(v,_,R)}).catch(W)}))}let re=D(),Ee=D(),J;function oe(s,m,p){se(s);const v=Ee.list();return v.length?v.forEach(k=>k(s,m,p)):console.error(s),Promise.reject(s)}function rt(){return J&&i.value!==B?Promise.resolve():new Promise((s,m)=>{re.add([s,m])})}function se(s){return J||(J=!s,nt(),re.list().forEach(([m,p])=>s?p(s):m()),re.reset()),s}function we(s,m,p,v){const{scrollBehavior:k}=e;if(!V||!k)return Promise.resolve();const _=!p&&$t(ke(s.fullPath,0))||(v||!p)&&history.state&&history.state.scroll||null;return lt().then(()=>k(s,m,_)).then(R=>R&&Nt(R)).catch(R=>oe(R,s,m))}const ie=s=>o.go(s);let ce;const ee=new Set,Pe={currentRoute:i,listening:!0,addRoute:u,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:S,resolve:A,options:e,push:I,replace:H,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:d.add,afterEach:g.add,onError:Ee.add,isReady:rt,install(s){const m=this;s.component("RouterLink",sn),s.component("RouterView",un),s.config.globalProperties.$router=m,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(i)}),V&&!ce&&i.value===B&&(ce=!0,I(o.location).catch(k=>{}));const p={};for(const k in B)Object.defineProperty(p,k,{get:()=>i.value[k],enumerable:!0});s.provide(ge,m),s.provide(et,st(p)),s.provide(pe,i);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(f=B,K&&K(),K=null,i.value=B,ce=!1,J=!1),v()}}};function z(s){return s.reduce((m,p)=>m.then(()=>ne(p)),Promise.resolve())}return Pe}function fn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const g=t.matched[d];g&&(e.matched.find(f=>q(f,g))?r.push(g):n.push(g));const i=e.matched[d];i&&(t.matched.find(f=>q(f,i))||o.push(i))}return[n,r,o]}export{dn as a,pn as c};
|
|
5
|
+
*/const V=typeof document<"u";function qe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ut(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&qe(e.default)}const P=Object.assign;function le(e,t){const n={};for(const r in t){const o=t[r];n[r]=T(o)?o.map(e):e(o)}return n}const W=()=>{},T=Array.isArray,Ge=/#/g,ft=/&/g,ht=/\//g,dt=/=/g,pt=/\?/g,Ke=/\+/g,mt=/%5B/g,gt=/%5D/g,Ue=/%5E/g,vt=/%60/g,De=/%7B/g,yt=/%7C/g,Qe=/%7D/g,Rt=/%20/g;function me(e){return encodeURI(""+e).replace(yt,"|").replace(mt,"[").replace(gt,"]")}function Et(e){return me(e).replace(De,"{").replace(Qe,"}").replace(Ue,"^")}function he(e){return me(e).replace(Ke,"%2B").replace(Rt,"+").replace(Ge,"%23").replace(ft,"%26").replace(vt,"`").replace(De,"{").replace(Qe,"}").replace(Ue,"^")}function wt(e){return he(e).replace(dt,"%3D")}function Pt(e){return me(e).replace(Ge,"%23").replace(pt,"%3F")}function St(e){return e==null?"":Pt(e).replace(ht,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bt=/\/$/,kt=e=>e.replace(bt,"");function ue(e,t,n="/"){let r,o={},a="",d="";const g=t.indexOf("#");let i=t.indexOf("?");return g<i&&g>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,g>-1?g:t.length),o=e(a)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=_t(r??t,n),{fullPath:r+(a&&"?")+a+d,path:r,query:o,hash:X(d)}}function Ct(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Se(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function At(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&q(t.matched[r],n.matched[o])&&We(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function We(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ot(e[n],t[n]))return!1;return!0}function Ot(e,t){return T(e)?be(e,t):T(t)?be(t,e):e===t}function be(e,t){return T(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _t(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,d,g;for(d=0;d<r.length;d++)if(g=r[d],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(d).join("/")}const B={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var F;(function(e){e.back="back",e.forward="forward",e.unknown=""})(F||(F={}));function xt(e){if(!e)if(V){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kt(e)}const Mt=/^[^#]+#/;function It(e,t){return e.replace(Mt,"#")+t}function Tt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.scrollX,top:window.scrollY});function Nt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Tt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ke(e,t){return(history.state?history.state.position-t:-1)+e}const de=new Map;function Lt(e,t){de.set(e,t)}function $t(e){const t=de.get(e);return de.delete(e),t}let Bt=()=>location.protocol+"//"+location.host;function Fe(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let g=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(g);return i[0]!=="/"&&(i="/"+i),Se(i,"")}return Se(n,e)+r+o}function jt(e,t,n,r){let o=[],a=[],d=null;const g=({state:l})=>{const u=Fe(e,location),w=n.value,S=t.value;let C=0;if(l){if(n.value=u,t.value=l,d&&d===w){d=null;return}C=S?l.position-S.position:0}else r(u);o.forEach(A=>{A(n.value,w,{delta:C,type:Z.pop,direction:C?C>0?F.forward:F.back:F.unknown})})};function i(){d=n.value}function f(l){o.push(l);const u=()=>{const w=o.indexOf(l);w>-1&&o.splice(w,1)};return a.push(u),u}function h(){const{history:l}=window;l.state&&l.replaceState(P({},l.state,{scroll:te()}),"")}function c(){for(const l of a)l();a=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:i,listen:f,destroy:c}}function Ce(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Ht(e){const{history:t,location:n}=window,r={value:Fe(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,f,h){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+i:Bt()+e+i;try{t[h?"replaceState":"pushState"](f,"",l),o.value=f}catch(u){console.error(u),n[h?"replace":"assign"](l)}}function d(i,f){const h=P({},t.state,Ce(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});a(i,h,!0),r.value=i}function g(i,f){const h=P({},o.value,t.state,{forward:i,scroll:te()});a(h.current,h,!0);const c=P({},Ce(r.value,i,null),{position:h.position+1},f);a(i,c,!1),r.value=i}return{location:r,state:o,push:g,replace:d}}function dn(e){e=xt(e);const t=Ht(e),n=jt(e,t.state,t.location,t.replace);function r(a,d=!0){d||n.pauseListeners(),history.go(a)}const o=P({location:"",base:e,go:r,createHref:It.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function zt(e){return typeof e=="string"||e&&typeof e=="object"}function Ye(e){return typeof e=="string"||typeof e=="symbol"}const Xe=Symbol("");var Ae;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ae||(Ae={}));function G(e,t){return P(new Error,{type:e,[Xe]:!0},t)}function L(e,t){return e instanceof Error&&Xe in e&&(t==null||!!(e.type&t))}const Oe="[^/]+?",Vt={sensitive:!1,strict:!1,start:!0,end:!0},qt=/[.+*?^${}()[\]/\\]/g;function Gt(e,t){const n=P({},Vt,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let c=0;c<f.length;c++){const l=f[c];let u=40+(n.sensitive?.25:0);if(l.type===0)c||(o+="/"),o+=l.value.replace(qt,"\\$&"),u+=40;else if(l.type===1){const{value:w,repeatable:S,optional:C,regexp:A}=l;a.push({name:w,repeatable:S,optional:C});const E=A||Oe;if(E!==Oe){u+=10;try{new RegExp(`(${E})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${w}" (${E}): `+I.message)}}let b=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(b=C&&f.length<2?`(?:/${b})`:"/"+b),C&&(b+="?"),o+=b,u+=20,C&&(u+=-8),S&&(u+=-20),E===".*"&&(u+=-50)}h.push(u)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const d=new RegExp(o,n.sensitive?"":"i");function g(f){const h=f.match(d),c={};if(!h)return null;for(let l=1;l<h.length;l++){const u=h[l]||"",w=a[l-1];c[w.name]=u&&w.repeatable?u.split("/"):u}return c}function i(f){let h="",c=!1;for(const l of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const u of l)if(u.type===0)h+=u.value;else if(u.type===1){const{value:w,repeatable:S,optional:C}=u,A=w in f?f[w]:"";if(T(A)&&!S)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const E=T(A)?A.join("/"):A;if(!E)if(C)l.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${w}"`);h+=E}}return h||"/"}return{re:d,score:r,keys:a,parse:g,stringify:i}}function Kt(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ze(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Kt(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(_e(r))return 1;if(_e(o))return-1}return o.length-r.length}function _e(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ut={type:0,value:""},Dt=/[a-zA-Z0-9_]/;function Qt(e){if(!e)return[[]];if(e==="/")return[[Ut]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${f}": ${u}`)}let n=0,r=n;const o=[];let a;function d(){a&&o.push(a),a=[]}let g=0,i,f="",h="";function c(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function l(){f+=i}for(;g<e.length;){if(i=e[g++],i==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:i==="/"?(f&&c(),d()):i===":"?(c(),n=1):l();break;case 4:l(),n=r;break;case 1:i==="("?n=2:Dt.test(i)?l():(c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--);break;case 2:i===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+i:n=3:h+=i;break;case 3:c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),c(),d(),o}function Wt(e,t,n){const r=Gt(Qt(e.path),n),o=P(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ft(e,t){const n=[],r=new Map;t=Te({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function a(c,l,u){const w=!u,S=Me(c);S.aliasOf=u&&u.record;const C=Te(t,c),A=[S];if("alias"in c){const I=typeof c.alias=="string"?[c.alias]:c.alias;for(const H of I)A.push(Me(P({},S,{components:u?u.record.components:S.components,path:H,aliasOf:u?u.record:S})))}let E,b;for(const I of A){const{path:H}=I;if(l&&H[0]!=="/"){const $=l.record.path,M=$[$.length-1]==="/"?"":"/";I.path=l.record.path+(H&&M+H)}if(E=Wt(I,l,C),u?u.alias.push(E):(b=b||E,b!==E&&b.alias.push(E),w&&c.name&&!Ie(E)&&d(c.name)),Je(E)&&i(E),S.children){const $=S.children;for(let M=0;M<$.length;M++)a($[M],E,u&&u.children[M])}u=u||E}return b?()=>{d(b)}:W}function d(c){if(Ye(c)){const l=r.get(c);l&&(r.delete(c),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(c);l>-1&&(n.splice(l,1),c.record.name&&r.delete(c.record.name),c.children.forEach(d),c.alias.forEach(d))}}function g(){return n}function i(c){const l=Zt(c,n);n.splice(l,0,c),c.record.name&&!Ie(c)&&r.set(c.record.name,c)}function f(c,l){let u,w={},S,C;if("name"in c&&c.name){if(u=r.get(c.name),!u)throw G(1,{location:c});C=u.record.name,w=P(xe(l.params,u.keys.filter(b=>!b.optional).concat(u.parent?u.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),c.params&&xe(c.params,u.keys.map(b=>b.name))),S=u.stringify(w)}else if(c.path!=null)S=c.path,u=n.find(b=>b.re.test(S)),u&&(w=u.parse(S),C=u.record.name);else{if(u=l.name?r.get(l.name):n.find(b=>b.re.test(l.path)),!u)throw G(1,{location:c,currentLocation:l});C=u.record.name,w=P({},l.params,c.params),S=u.stringify(w)}const A=[];let E=u;for(;E;)A.unshift(E.record),E=E.parent;return{name:C,path:S,params:w,matched:A,meta:Xt(A)}}e.forEach(c=>a(c));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:d,clearRoutes:h,getRoutes:g,getRecordMatcher:o}}function xe(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Me(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yt(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ie(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xt(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Te(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Zt(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Ze(e,t[a])<0?r=a:n=a+1}const o=Jt(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Jt(e){let t=e;for(;t=t.parent;)if(Je(t)&&Ze(e,t)===0)return t}function Je({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function en(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(Ke," "),d=a.indexOf("="),g=X(d<0?a:a.slice(0,d)),i=d<0?null:X(a.slice(d+1));if(g in t){let f=t[g];T(f)||(f=t[g]=[f]),f.push(i)}else t[g]=i}return t}function Ne(e){let t="";for(let n in e){const r=e[n];if(n=wt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(T(r)?r.map(a=>a&&he(a)):[r&&he(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function tn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=T(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const nn=Symbol(""),Le=Symbol(""),ge=Symbol(""),et=Symbol(""),pe=Symbol("");function D(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function j(e,t,n,r,o,a=d=>d()){const d=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,i)=>{const f=l=>{l===!1?i(G(4,{from:n,to:t})):l instanceof Error?i(l):zt(l)?i(G(2,{from:t,to:l})):(d&&r.enterCallbacks[o]===d&&typeof l=="function"&&d.push(l),g())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let c=Promise.resolve(h);e.length<3&&(c=c.then(f)),c.catch(l=>i(l))})}function fe(e,t,n,r,o=a=>a()){const a=[];for(const d of e)for(const g in d.components){let i=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(qe(i)){const h=(i.__vccOpts||i)[t];h&&a.push(j(h,n,r,d,g,o))}else{let f=i();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${g}" at "${d.path}"`);const c=ut(h)?h.default:h;d.mods[g]=h,d.components[g]=c;const u=(c.__vccOpts||c)[t];return u&&j(u,n,r,d,g,o)()}))}}return a}function $e(e){const t=Y(ge),n=Y(et),r=N(()=>{const i=Q(e.to);return t.resolve(i)}),o=N(()=>{const{matched:i}=r.value,{length:f}=i,h=i[f-1],c=n.matched;if(!h||!c.length)return-1;const l=c.findIndex(q.bind(null,h));if(l>-1)return l;const u=Be(i[f-2]);return f>1&&Be(h)===u&&c[c.length-1].path!==u?c.findIndex(q.bind(null,i[f-2])):l}),a=N(()=>o.value>-1&&an(n.params,r.value.params)),d=N(()=>o.value>-1&&o.value===n.matched.length-1&&We(n.params,r.value.params));function g(i={}){if(cn(i)){const f=t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(W);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:a,isExactActive:d,navigate:g}}function rn(e){return e.length===1?e[0]:e}const on=ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:$e,setup(e,{slots:t}){const n=it($e(e)),{options:r}=Y(ge),o=N(()=>({[je(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[je(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&rn(t.default(n));return e.custom?a:Ve("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),sn=on;function cn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function an(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!T(o)||o.length!==r.length||r.some((a,d)=>a!==o[d]))return!1}return!0}function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const je=(e,t,n)=>e??t??n,ln=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Y(pe),o=N(()=>e.route||r.value),a=Y(Le,0),d=N(()=>{let f=Q(a);const{matched:h}=o.value;let c;for(;(c=h[f])&&!c.components;)f++;return f}),g=N(()=>o.value.matched[d.value]);ae(Le,N(()=>d.value+1)),ae(nn,g),ae(pe,o);const i=ct();return at(()=>[i.value,g.value,e.name],([f,h,c],[l,u,w])=>{h&&(h.instances[c]=f,u&&u!==h&&f&&f===l&&(h.leaveGuards.size||(h.leaveGuards=u.leaveGuards),h.updateGuards.size||(h.updateGuards=u.updateGuards))),f&&h&&(!u||!q(h,u)||!l)&&(h.enterCallbacks[c]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,c=g.value,l=c&&c.components[h];if(!l)return He(n.default,{Component:l,route:f});const u=c.props[h],w=u?u===!0?f.params:typeof u=="function"?u(f):u:null,C=Ve(l,P({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(c.instances[h]=null)},ref:i}));return He(n.default,{Component:C,route:f})||C}}});function He(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const un=ln;function pn(e){const t=Ft(e.routes,e),n=e.parseQuery||en,r=e.stringifyQuery||Ne,o=e.history,a=D(),d=D(),g=D(),i=ot(B);let f=B;V&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=le.bind(null,s=>""+s),c=le.bind(null,St),l=le.bind(null,X);function u(s,m){let p,v;return Ye(s)?(p=t.getRecordMatcher(s),v=m):v=s,t.addRoute(v,p)}function w(s){const m=t.getRecordMatcher(s);m&&t.removeRoute(m)}function S(){return t.getRoutes().map(s=>s.record)}function C(s){return!!t.getRecordMatcher(s)}function A(s,m){if(m=P({},m||i.value),typeof s=="string"){const y=ue(n,s,m.path),_=t.resolve({path:y.path},m),U=o.createHref(y.fullPath);return P(y,_,{params:l(_.params),hash:X(y.hash),redirectedFrom:void 0,href:U})}let p;if(s.path!=null)p=P({},s,{path:ue(n,s.path,m.path).path});else{const y=P({},s.params);for(const _ in y)y[_]==null&&delete y[_];p=P({},s,{params:c(y)}),m.params=c(m.params)}const v=t.resolve(p,m),k=s.hash||"";v.params=h(l(v.params));const O=Ct(r,P({},s,{hash:Et(k),path:v.path})),R=o.createHref(O);return P({fullPath:O,hash:k,query:r===Ne?tn(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?ue(n,s,i.value.path):P({},s)}function b(s,m){if(f!==s)return G(8,{from:m,to:s})}function I(s){return M(s)}function H(s){return I(P(E(s),{replace:!0}))}function $(s){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:p}=m;let v=typeof p=="function"?p(s):p;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=E(v):{path:v},v.params={}),P({query:s.query,hash:s.hash,params:v.path!=null?{}:s.params},v)}}function M(s,m){const p=f=A(s),v=i.value,k=s.state,O=s.force,R=s.replace===!0,y=$(p);if(y)return M(P(E(y),{state:typeof y=="object"?P({},k,y.state):k,force:O,replace:R}),m||p);const _=p;_.redirectedFrom=m;let U;return!O&&At(r,v,p)&&(U=G(16,{to:_,from:v}),we(v,v,!0,!1)),(U?Promise.resolve(U):ve(_,v)).catch(x=>L(x)?L(x,2)?x:se(x):oe(x,_,v)).then(x=>{if(x){if(L(x,2))return M(P({replace:R},E(x.to),{state:typeof x.to=="object"?P({},k,x.to.state):k,force:O}),m||_)}else x=Re(_,v,!0,R,k);return ye(_,v,x),x})}function tt(s,m){const p=b(s,m);return p?Promise.reject(p):Promise.resolve()}function ne(s){const m=ee.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(s):s()}function ve(s,m){let p;const[v,k,O]=fn(s,m);p=fe(v.reverse(),"beforeRouteLeave",s,m);for(const y of v)y.leaveGuards.forEach(_=>{p.push(j(_,s,m))});const R=tt.bind(null,s,m);return p.push(R),z(p).then(()=>{p=[];for(const y of a.list())p.push(j(y,s,m));return p.push(R),z(p)}).then(()=>{p=fe(k,"beforeRouteUpdate",s,m);for(const y of k)y.updateGuards.forEach(_=>{p.push(j(_,s,m))});return p.push(R),z(p)}).then(()=>{p=[];for(const y of O)if(y.beforeEnter)if(T(y.beforeEnter))for(const _ of y.beforeEnter)p.push(j(_,s,m));else p.push(j(y.beforeEnter,s,m));return p.push(R),z(p)}).then(()=>(s.matched.forEach(y=>y.enterCallbacks={}),p=fe(O,"beforeRouteEnter",s,m,ne),p.push(R),z(p))).then(()=>{p=[];for(const y of d.list())p.push(j(y,s,m));return p.push(R),z(p)}).catch(y=>L(y,8)?y:Promise.reject(y))}function ye(s,m,p){g.list().forEach(v=>ne(()=>v(s,m,p)))}function Re(s,m,p,v,k){const O=b(s,m);if(O)return O;const R=m===B,y=V?history.state:{};p&&(v||R?o.replace(s.fullPath,P({scroll:R&&y&&y.scroll},k)):o.push(s.fullPath,k)),i.value=s,we(s,m,p,R),se()}let K;function nt(){K||(K=o.listen((s,m,p)=>{if(!Pe.listening)return;const v=A(s),k=$(v);if(k){M(P(k,{replace:!0,force:!0}),v).catch(W);return}f=v;const O=i.value;V&&Lt(ke(O.fullPath,p.delta),te()),ve(v,O).catch(R=>L(R,12)?R:L(R,2)?(M(P(E(R.to),{force:!0}),v).then(y=>{L(y,20)&&!p.delta&&p.type===Z.pop&&o.go(-1,!1)}).catch(W),Promise.reject()):(p.delta&&o.go(-p.delta,!1),oe(R,v,O))).then(R=>{R=R||Re(v,O,!1),R&&(p.delta&&!L(R,8)?o.go(-p.delta,!1):p.type===Z.pop&&L(R,20)&&o.go(-1,!1)),ye(v,O,R)}).catch(W)}))}let re=D(),Ee=D(),J;function oe(s,m,p){se(s);const v=Ee.list();return v.length?v.forEach(k=>k(s,m,p)):console.error(s),Promise.reject(s)}function rt(){return J&&i.value!==B?Promise.resolve():new Promise((s,m)=>{re.add([s,m])})}function se(s){return J||(J=!s,nt(),re.list().forEach(([m,p])=>s?p(s):m()),re.reset()),s}function we(s,m,p,v){const{scrollBehavior:k}=e;if(!V||!k)return Promise.resolve();const O=!p&&$t(ke(s.fullPath,0))||(v||!p)&&history.state&&history.state.scroll||null;return lt().then(()=>k(s,m,O)).then(R=>R&&Nt(R)).catch(R=>oe(R,s,m))}const ie=s=>o.go(s);let ce;const ee=new Set,Pe={currentRoute:i,listening:!0,addRoute:u,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:S,resolve:A,options:e,push:I,replace:H,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:d.add,afterEach:g.add,onError:Ee.add,isReady:rt,install(s){const m=this;s.component("RouterLink",sn),s.component("RouterView",un),s.config.globalProperties.$router=m,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(i)}),V&&!ce&&i.value===B&&(ce=!0,I(o.location).catch(k=>{}));const p={};for(const k in B)Object.defineProperty(p,k,{get:()=>i.value[k],enumerable:!0});s.provide(ge,m),s.provide(et,st(p)),s.provide(pe,i);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(f=B,K&&K(),K=null,i.value=B,ce=!1,J=!1),v()}}};function z(s){return s.reduce((m,p)=>m.then(()=>ne(p)),Promise.resolve())}return Pe}function fn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const g=t.matched[d];g&&(e.matched.find(f=>q(f,g))?r.push(g):n.push(g));const i=e.matched[d];i&&(t.matched.find(f=>q(f,i))||o.push(i))}return[n,r,o]}export{dn as a,pn as c};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{w as l}from"./index-
|
|
1
|
+
import{w as l}from"./index-j0k5PhkC.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=l`<svg fill="none" viewBox="0 0 28 28">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
5
5
|
d="M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z"
|
|
6
6
|
clip-rule="evenodd"
|
|
7
7
|
/>
|
|
8
|
-
</svg>`;export{
|
|
8
|
+
</svg>`;export{n as verifySvg};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{w as l}from"./index-
|
|
1
|
+
import{w as l}from"./index-j0k5PhkC.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=l`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
5
5
|
d="m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z"
|
|
6
6
|
clip-rule="evenodd"
|
|
7
7
|
/>
|
|
8
|
-
</svg>`;export{
|
|
8
|
+
</svg>`;export{d as verifyFilledSvg};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as ae,x as ne,y as se,z as f,A as E,B as g,C as r,D,E as Q,F as Z,R as l,G as v,I as H,J as ce,K as C,L as le,M as q,N as V,O as h,P as A,Q as M,T as F,U as $,V as B,W as we,X as de,Y as ue,Z as pe}from"./index-
|
|
1
|
+
import{v as ae,x as ne,y as se,z as f,A as E,B as g,C as r,D,E as Q,F as Z,R as l,G as v,I as H,J as ce,K as C,L as le,M as q,N as V,O as h,P as A,Q as M,T as F,U as $,V as B,W as we,X as de,Y as ue,Z as pe}from"./index-j0k5PhkC.js";import{c as u,n as d,r as w,o as X,U as me}from"./index-BmPyiOJq.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=ae({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),T={state:m,subscribe(n){return se(m,()=>n(m))},subscribeKey(n,e){return ne(m,n,e)},showTooltip({message:n,triggerRect:e,variant:t}){m.open=!0,m.message=n,m.triggerRect=e,m.variant=t},hide(){m.open=!1,m.message="",m.triggerRect={width:0,height:0,top:0,left:0}}},he=f`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-j0k5PhkC.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
5
5
|
d="M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z"
|
|
6
6
|
clip-rule="evenodd"
|
|
7
7
|
/>
|
|
8
|
-
</svg>`;export{
|
|
8
|
+
</svg>`;export{d as walletSvg};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as a}from"./index-
|
|
1
|
+
import{w as a}from"./index-j0k5PhkC.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const h=a`
|
|
2
2
|
<svg fill="none" viewBox="0 0 48 44">
|
|
3
3
|
<path
|
|
4
4
|
style="fill: var(--wui-color-bg-300);"
|
|
@@ -11,4 +11,4 @@ import{w as a}from"./index-COE4TGua.js";import"./index.browser.esm-BgC0y73S.js";
|
|
|
11
11
|
clip-rule="evenodd"
|
|
12
12
|
/>
|
|
13
13
|
</svg>
|
|
14
|
-
`;export{
|
|
14
|
+
`;export{h as walletPlaceholderSvg};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l}from"./index-
|
|
1
|
+
import{w as l}from"./index-j0k5PhkC.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=l`<svg fill="none" viewBox="0 0 96 67">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z"
|
|
@@ -8,7 +8,7 @@ import{w as l}from"./index-COE4TGua.js";import"./index.browser.esm-BgC0y73S.js";
|
|
|
8
8
|
stroke-opacity=".1"
|
|
9
9
|
d="M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z"
|
|
10
10
|
/>
|
|
11
|
-
</svg>`,
|
|
11
|
+
</svg>`,s=l`
|
|
12
12
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
13
|
<g clip-path="url(#clip0_22274_4692)">
|
|
14
14
|
<path d="M0 6.64C0 4.17295 0 2.93942 0.525474 2.01817C0.880399 1.39592 1.39592 0.880399 2.01817 0.525474C2.93942 0 4.17295 0 6.64 0H9.36C11.8271 0 13.0606 0 13.9818 0.525474C14.6041 0.880399 15.1196 1.39592 15.4745 2.01817C16 2.93942 16 4.17295 16 6.64V9.36C16 11.8271 16 13.0606 15.4745 13.9818C15.1196 14.6041 14.6041 15.1196 13.9818 15.4745C13.0606 16 11.8271 16 9.36 16H6.64C4.17295 16 2.93942 16 2.01817 15.4745C1.39592 15.1196 0.880399 14.6041 0.525474 13.9818C0 13.0606 0 11.8271 0 9.36V6.64Z" fill="#C7B994"/>
|
|
@@ -20,11 +20,11 @@ import{w as l}from"./index-COE4TGua.js";import"./index.browser.esm-BgC0y73S.js";
|
|
|
20
20
|
</clipPath>
|
|
21
21
|
</defs>
|
|
22
22
|
</svg>
|
|
23
|
-
`,
|
|
23
|
+
`,h=l`
|
|
24
24
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
25
|
<circle cx="11" cy="11" r="11" transform="matrix(-1 0 0 1 23 1)" fill="#202020"/>
|
|
26
26
|
<circle cx="11" cy="11" r="11.5" transform="matrix(-1 0 0 1 23 1)" stroke="#C7B994" stroke-opacity="0.7"/>
|
|
27
27
|
<path d="M15.4523 11.0686L16.7472 9.78167C13.8205 6.87297 10.1838 6.87297 7.25708 9.78167L8.55201 11.0686C10.7779 8.85645 13.2279 8.85645 15.4538 11.0686H15.4523Z" fill="#C7B994"/>
|
|
28
28
|
<path d="M15.0199 14.067L12 11.0656L8.98 14.067L5.96004 11.0656L4.66663 12.3511L8.98 16.6393L12 13.638L15.0199 16.6393L19.3333 12.3511L18.0399 11.0656L15.0199 14.067Z" fill="#C7B994"/>
|
|
29
29
|
</svg>
|
|
30
|
-
`;export{
|
|
30
|
+
`;export{h as walletConnectBrownSvg,s as walletConnectLightBrownSvg,n as walletConnectSvg};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{w as r}from"./index-j0k5PhkC.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=r`<svg fill="none" viewBox="0 0 20 20">
|
|
2
|
+
<path
|
|
3
|
+
fill="currentColor"
|
|
4
|
+
d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"
|
|
5
|
+
/>
|
|
6
|
+
<path
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
fill-rule="evenodd"
|
|
9
|
+
d="M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;export{d as warningCircleSvg};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as n}from"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-BdJrTa0V.js";class t extends n{constructor(){super(),this._lastWindow=null}async open(o){this._lastWindow=window.open(o.url,o.windowName||"_blank")}async close(){return new Promise((o,s)=>{this._lastWindow!=null?(this._lastWindow.close(),this._lastWindow=null,o()):s("No active window to close!")})}}const c=new t;export{c as Browser,t as BrowserWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as t}from"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-BdJrTa0V.js";class d extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}async toggleBackButtonHandler(){throw this.unimplemented("Not implemented on web.")}}export{d as AppWeb};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{w as i}from"./index-j0k5PhkC.js";import"./index.browser.esm-DMabfmUT.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-CQFH4rAT.js";import"./vendor-vue-DT_1TMfY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-BdJrTa0V.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const e=i`<svg fill="none" viewBox="0 0 41 40">
|
|
2
|
+
<g clip-path="url(#a)">
|
|
3
|
+
<path fill="#000" d="M.8 0h40v40H.8z" />
|
|
4
|
+
<path
|
|
5
|
+
fill="#fff"
|
|
6
|
+
d="m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z"
|
|
7
|
+
/>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>`;export{e as xSvg};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u={name:"zh-tw",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"確認",clear:"清空",defaultLabel:"色彩選擇器",description:"目前色彩為 {color}。按一下 Enter 以選擇新色彩。",alphaLabel:"選擇透明度的值"},datepicker:{now:"現在",today:"今天",cancel:"取消",clear:"清空",confirm:"確認",dateTablePrompt:"使用方向鍵與 Enter 鍵以選擇日期",monthTablePrompt:"使用方向鍵與 Enter 鍵以選擇月份",yearTablePrompt:"使用方向鍵與 Enter 鍵以選擇年份",selectedDate:"已選日期",selectDate:"選擇日期",selectTime:"選擇時間",startDate:"開始日期",startTime:"開始時間",endDate:"結束日期",endTime:"結束時間",prevYear:"前一年",nextYear:"後一年",prevMonth:"上個月",nextMonth:"下個月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"減少數值",increase:"增加數值"},select:{loading:"載入中",noMatch:"無相符資料",noData:"無資料",placeholder:"請選擇"},mention:{loading:"載入中"},dropdown:{toggleDropdown:"切換下拉選單"},cascader:{noMatch:"無相符資料",loading:"載入中",placeholder:"請選擇",noData:"無資料"},pagination:{goto:"前往",pagesize:"項/頁",total:"共 {total} 項",pageClassifier:"頁",page:"頁",prev:"上一頁",next:"下一頁",currentPage:"第 {pager} 頁",prevPages:"向前 {pager} 頁",nextPages:"向後 {pager} 頁",deprecationWarning:"偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊"},dialog:{close:"關閉此對話框"},drawer:{close:"關閉此對話框"},messagebox:{title:"提示",confirm:"確定",cancel:"取消",error:"輸入的資料不符合規定!",close:"關閉此對話框"},upload:{deleteTip:"按 Delete 鍵以刪除",delete:"刪除",preview:"查看圖片",continue:"繼續上傳"},slider:{defaultLabel:"滑桿介於 {min} 至 {max}",defaultRangeStartLabel:"選擇起始值",defaultRangeEndLabel:"選擇結束值"},table:{emptyText:"暫無資料",confirmFilter:"篩選",resetFilter:"重置",clearFilter:"全部",sumText:"合計"},tour:{next:"下一步",previous:"上一步",finish:"結束導覽"},tree:{emptyText:"暫無資料"},transfer:{noMatch:"無相符資料",noData:"無資料",titles:["列表 1","列表 2"],filterPlaceholder:"請輸入搜尋內容",noCheckedFormat:"共 {total} 項",hasCheckedFormat:"已選 {checked}/{total} 項"},image:{error:"載入失敗"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"確認",cancelButtonText:"取消"},carousel:{leftArrow:"上一張投影片",rightArrow:"下一張投影片",indicator:"投影片切換至索引 {index}"}}};export{u as default};
|
package/dist/index.html
CHANGED
|
@@ -206,12 +206,11 @@
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
</style>
|
|
209
|
-
<script type="module" crossorigin src="/assets/index-
|
|
210
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-vue-
|
|
209
|
+
<script type="module" crossorigin src="/assets/index-CQFH4rAT.js"></script>
|
|
210
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-vue-DT_1TMfY.js">
|
|
211
211
|
<link rel="modulepreload" crossorigin href="/assets/vendor-axios-NIGUFBhG.js">
|
|
212
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-dayjs-
|
|
213
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-vue-router-
|
|
214
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-element-plus-CQnKmb2Y.js">
|
|
212
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-dayjs-D7e3rSuL.js">
|
|
213
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-vue-router-BdJrTa0V.js">
|
|
215
214
|
<link rel="stylesheet" crossorigin href="/assets/index-03ot00WF.css">
|
|
216
215
|
</head>
|
|
217
216
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as s,a as c}from"./vendor-element-plus-CQnKmb2Y.js";import{d as i,J as m,K as e,T as t,ai as o,D as p}from"./vendor-vue-qgt_zvDa.js";import{a as _}from"./index-Cu3Or7ae.js";import"./vendor-dayjs-CzbnksQQ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-u1O--QAh.js";const l=i({name:"LayoutAuth",components:{ElContainer:c,ElMain:s}});function u(f,d,h,v,x,C){const n=o("router-view"),a=o("el-main"),r=o("el-container");return p(),m(r,null,{default:e(()=>[t(a,{class:"h-[100vh]"},{default:e(()=>[t(n)]),_:1})]),_:1})}const y=_(l,[["render",u]]);export{y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,k as c}from"./vendor-element-plus-CQnKmb2Y.js";import{d as p,C as m,ag as d,S as i,ai as s,D as _,G as o,T as e,K as n}from"./vendor-vue-qgt_zvDa.js";import{a as x}from"./index-Cu3Or7ae.js";const f=p({name:"BotPlaceholder",components:{ElSkeleton:c,ElSkeletonItem:r}}),k={class:"w-[70px] p-3"},u={class:"flex-1 p-3"};function h(v,w,B,b,g,C){const t=s("el-skeleton-item"),a=s("el-skeleton");return _(),m(i,null,d(3,l=>o("div",{key:l,class:"flex mb-4"},[o("div",k,[e(a,{animated:""},{template:n(()=>[e(t,{variant:"image",class:"w-[50px] h-[50px] rounded-full"})]),_:1})]),o("div",u,[e(a,{animated:""},{template:n(()=>[e(t,{variant:"p",class:"w-[200px] h-[20px] mb-4 block rounded-lg"}),e(t,{variant:"p",class:"w-full h-[200px] max-w-[300px] block rounded-2xl"})]),_:1})])])),64)}const N=x(f,[["render",h]]);export{N as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as t}from"./vendor-vue-qgt_zvDa.js";import{a as r}from"./index-Cu3Or7ae.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-CzbnksQQ.js";import"./vendor-vue-router-u1O--QAh.js";import"./vendor-element-plus-CQnKmb2Y.js";const e=t({name:"AuthCallback",data(){return{redirect:this.$route.query.redirect?.toString()}},async mounted(){this.redirect?await this.$router.push(this.redirect):await this.$router.push("/")}}),p=r(e,[["__scopeId","data-v-0779b8a8"]]);export{p as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{N as h}from"./Navigator-BAIFRxG2.js";import{r as v,v as $,w,f as O,x as g,a as l}from"./index-Cu3Or7ae.js";import{F as C}from"./index.es-D1JQh6lW.js";import{d,C as a,G as s,S as L,ag as N,ai as i,D as t,M as E,T as r,R as S,J as k,O as x}from"./vendor-vue-qgt_zvDa.js";import"./avatar-CpMq1eBe.js";import"./vendor-element-plus-CQnKmb2Y.js";import"./vendor-dayjs-CzbnksQQ.js";import"./EditArray-CkAAQmrY.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-u1O--QAh.js";const I=d({name:"Navigator",components:{FontAwesomeIcon:C},computed:{isOfficial(){return g()},active(){return this.$route.matched[0].path},user(){return this.$store.getters.user},links(){return[{key:"application-list",text:this.$t("console.menu.applicationList"),name:$,icon:"fa-solid fa-cube"},{key:"order-list",text:this.$t("console.menu.orderList"),name:w,icon:"fa-solid fa-store"},{key:"usage-list",text:this.$t("console.menu.usageList"),name:O,icon:"fa-solid fa-rotate-left"}]}},mounted(){},methods:{onHome(){this.$router.push({name:v})},onNavigate(e){e.name?this.$router.push({name:e.name}):e.href&&window.open(e.href,"_blank")}}}),T={class:"side"},b={class:"links"},y=["onClick"],R={class:"icon"},U={class:"text"},A={class:"outer"};function B(e,c,_,p,u,f){const n=i("font-awesome-icon");return t(),a("div",T,[s("div",b,[(t(!0),a(L,null,N(e.links,(o,m)=>(t(),a("a",{key:m,class:E({link:!0,active:e.$route.name===o.name}),onClick:G=>e.onNavigate(o)},[s("span",R,[r(n,{icon:o.icon,class:"text-sm"},null,8,["icon"])]),s("span",U,S(o.text),1),s("span",A,[!o.name&&o.href?(t(),k(n,{key:0,icon:"fa-solid fa-up-right-from-square",class:"text-sm ml-2"})):x("",!0)]),c[0]||(c[0]=s("span",{class:"suffix"},null,-1))],10,y))),128))])])}const D=l(I,[["render",B],["__scopeId","data-v-e6da2d64"]]),F=d({name:"LayoutConsole",components:{SidePanel:D,Navigator:h},data(){return{mobile:window.innerWidth<768}},mounted(){window.addEventListener("resize",()=>{this.mobile=window.innerWidth<768})}}),P={class:"console"},V={class:"main"};function z(e,c,_,p,u,f){const n=i("side-panel"),o=i("router-view"),m=i("navigator");return t(),a("div",P,[s("div",V,[r(n,{class:"side"}),r(o,{class:"panel"})]),r(m,{class:"navigator",direction:e.mobile?"row":"column"},null,8,["direction"])])}const Z=l(F,[["render",z],["__scopeId","data-v-1b53bff0"]]);export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as s}from"./index.es-D1JQh6lW.js";import{d as n,C as a,O as r,T as i,G as c,ai as m,R as o,D as l}from"./vendor-vue-qgt_zvDa.js";import{a as p}from"./index-Cu3Or7ae.js";const d=n({name:"Consumption",components:{FontAwesomeIcon:s},props:{value:{type:Number,required:!1,default:null},service:{type:Object,required:!0}}}),u={key:0,class:"text-center text-[var(--el-text-color-secondary)] mb-1"},f={class:"text-xs font-medium"};function v(e,_,x,C,y,$){const t=m("font-awesome-icon");return e.value!==null&&e.value!==void 0?(l(),a("div",u,[i(t,{icon:"fa-solid fa-coins",class:"text-xs mr-1 text-[var(--el-color-primary-light-3)]"}),c("span",f,o(e.value.toFixed(2))+" "+o(e.$t(`service.unit.${e.service?.unit||"credits"}`)),1)])):r("",!0)}const k=p(d,[["render",v]]);export{k as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as p}from"./index.es-D1JQh6lW.js";import{c as r,a as m}from"./index-Cu3Or7ae.js";import{n as l}from"./vendor-element-plus-CQnKmb2Y.js";import{d,J as n,K as c,T as s,X as f,ai as a,D as i}from"./vendor-vue-qgt_zvDa.js";const u=d({name:"CopyToClipboard",components:{FontAwesomeIcon:p,ElTooltip:l},props:{content:{type:[String,Number],required:!1,default:""}},data(){return{copied:!1}},methods:{onCopy(){this.content&&(r(this.content.toString(),{debug:!0}),this.copied=!0,setTimeout(()=>{this.copied=!1},3e3))}}});function _(o,C,y,b,h,k){const e=a("font-awesome-icon"),t=a("el-tooltip");return o.copied?(i(),n(t,{key:1,visible:o.copied,effect:"dark",content:o.$t("common.message.copied"),placement:"bottom"},{default:c(()=>[s(e,{icon:"fa-solid fa-check",class:"icon-check"})]),_:1},8,["visible","content"])):(i(),n(t,{key:0,effect:"dark",content:o.$t("common.button.copy"),placement:"bottom"},{default:c(()=>[s(e,{icon:"fa-regular fa-copy",class:"icon-copy",onClick:f(o.onCopy,["stop"])},null,8,["onClick"])]),_:1},8,["content"]))}const v=m(u,[["render",_],["__scopeId","data-v-cc8e806b"]]);export{v as C};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.browser.esm-BgC0y73S.js","assets/vendor-dayjs-CzbnksQQ.js","assets/index-Cu3Or7ae.js","assets/vendor-vue-qgt_zvDa.js","assets/vendor-axios-NIGUFBhG.js","assets/vendor-vue-router-u1O--QAh.js","assets/vendor-element-plus-CQnKmb2Y.js","assets/index-03ot00WF.css","assets/index-Cxt3EugS.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{o as I}from"./order-CAZjSL7R.js";import{l as le,a as O,_ as G,h as de}from"./index-Cu3Or7ae.js";import{O as _}from"./order-CB3uOPHS.js";import{g as J,h as Q,B as H,P as ce,v as ue,u as pe,z as he,c as Y,Q as Z,d as ee,p as T,R as me,S as ye,T as fe,q as ge,k as we,b as ve}from"./vendor-element-plus-CQnKmb2Y.js";import{d as M,J as v,K as u,T as h,ai as w,G as d,O as f,R as l,D as a,n as be,C as m,S as L,ag as q,Q as $,M as F}from"./vendor-vue-qgt_zvDa.js";import{g as ke}from"./price-BGD238oZ.js";import{C as Pe}from"./CopyToClipboard-Dmoz9wQr.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-CzbnksQQ.js";import"./vendor-vue-router-u1O--QAh.js";import"./index.es-D1JQh6lW.js";function Se(){const e=navigator.userAgent.toLowerCase();return/iphone|ipad|ipod|android|windows phone/i.test(e)}const $e=M({name:"PayOrderDialog",components:{ElDialog:H,QrCode:le,ElRow:Q,ElCol:J},props:{modelValue:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["hide","update:modelValue"],data(){return{refreshTimer:void 0}},mounted(){this.onRefresh()},unmounted(){this.refreshTimer&&clearTimeout(this.refreshTimer)},methods:{onRefresh(){if(!this.modelValue.id){console.error("id does not exist");return}I.refresh(this.modelValue.id).then(({data:e})=>{e.state!==_.PAID?setTimeout(()=>{this.onRefresh()},2e3):this.$emit("hide"),this.$emit("update:modelValue",e)}).catch(()=>{setTimeout(()=>{this.onRefresh()},2e3)})}}}),We={class:"paycode wechat"},Ae={class:"help-text block bg-[#00c800] text-white text-[14px] h-[35px] w-[240px] text-center leading-[35px] mt-[10px] mx-auto"};function Ce(e,t,s,i,o,n){const r=w("qr-code"),c=w("el-col"),k=w("el-row"),W=w("el-dialog");return a(),v(W,{"model-value":e.visible,title:e.$t("application.title.buyService"),width:"500px",center:""},{default:u(()=>[h(k,{class:"paycodes py-[30px] w-[500px] mx-auto"},{default:u(()=>[h(c,{span:12},{default:u(()=>[d("div",We,[e.modelValue?.pay_url?(a(),v(r,{key:0,value:e.modelValue?.pay_url,size:200,class:"qrcode m-auto w-[200px] h-[200px]",type:"image/png",color:{dark:"#000000",light:"#ffffff"}},null,8,["value"])):f("",!0),d("p",Ae,l(e.$t("order.message.wechatPayHelp")),1)])]),_:1}),h(c,{span:12},{default:u(()=>t[0]||(t[0]=[d("div",{class:"help-img"},[d("img",{src:"https://midas.gtimg.cn/enterprise/images/ep_sys_wx_tip.jpg"})],-1)])),_:1,__:[0]})]),_:1})]),_:1},8,["model-value","title"])}const _e=O($e,[["render",Ce]]),Ee=M({name:"PayOrderDialog",components:{ElDialog:H},props:{modelValue:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["hide","update:modelValue"],data(){return{refreshTimer:void 0}},watch:{visible:{handler(e){e&&this.modelValue.pay_url&&window.open(this.modelValue.pay_url,"_blank")}}},mounted(){this.onRefresh()},unmounted(){this.refreshTimer&&clearTimeout(this.refreshTimer)},methods:{onRefresh(){if(!this.modelValue.id){console.error("id does not exist");return}I.refresh(this.modelValue.id).then(({data:e})=>{e.state!==_.PAID?setTimeout(()=>{this.onRefresh()},2e3):this.$emit("hide"),this.$emit("update:modelValue",e)}).catch(()=>{setTimeout(()=>{this.onRefresh()},5e3)})}}}),Ne={class:"text-center"};function Te(e,t,s,i,o,n){const r=w("el-dialog");return a(),v(r,{"model-value":e.visible,title:e.$t("application.title.buyService"),width:"500px",center:""},{default:u(()=>[d("p",Ne,l(e.$t("order.message.buyInExternalUrl")),1)]),_:1},8,["model-value","title"])}const Ie=O(Ee,[["render",Te],["__scopeId","data-v-fbea8aa1"]]),Re=M({name:"PayOrderDialog",components:{ElDialog:H},props:{modelValue:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["hide","update:modelValue"],data(){return{refreshTimer:void 0}},watch:{visible:{handler(e){e&&this.modelValue.pay_url&&window.open(this.modelValue.pay_url,"_blank")}}},mounted(){this.onRefresh()},unmounted(){this.refreshTimer&&clearTimeout(this.refreshTimer)},methods:{onRefresh(){if(!this.modelValue.id){console.error("id does not exist");return}I.refresh(this.modelValue.id).then(({data:e})=>{e.state!==_.PAID?setTimeout(()=>{this.onRefresh()},2e3):this.$emit("hide"),this.$emit("update:modelValue",e)}).catch(()=>{setTimeout(()=>{this.onRefresh()},5e3)})}}}),Le={class:"text-center"};function Ve(e,t,s,i,o,n){const r=w("el-dialog");return a(),v(r,{"model-value":e.visible,title:e.$t("application.title.buyService"),width:"500px",center:""},{default:u(()=>[d("p",Le,l(e.$t("order.message.buyInExternalUrl")),1)]),_:1},8,["model-value","title"])}const De=O(Re,[["render",Ve]]);let z=null;const te=()=>(z||(z=G(()=>import("./index.browser.esm-BgC0y73S.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),z),Be="https://api.mainnet-beta.solana.com",qe="https://api.devnet.solana.com",se="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",Oe="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";function Me(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e[s]);return btoa(t)}function ae(e,t){return t||(e.includes("devnet")?qe:Be)}function x(e,t,s){const i=new e.PublicKey(se),o=new e.PublicKey(Oe),[n]=e.PublicKey.findProgramAddressSync([t.toBuffer(),i.toBuffer(),s.toBuffer()],o);return n}function Xe(e,t){const s=new Uint8Array(10);return s[0]=12,new DataView(s.buffer).setBigUint64(1,e,!0),s[9]=t,s}function ie(e,t,s,i,o,n,r){const c=Xe(n,r),k=new e.PublicKey(se);return new e.TransactionInstruction({programId:k,keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:s,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!0,isWritable:!1}],data:Buffer.from(c)})}async function re(e){const{requirements:t,payerAddress:s,signAndSendTransaction:i,fetchBlockhash:o}=e,n=t.payTo||t.pay_to;if(!n)throw new Error("Missing payTo in requirements");const r=t.extra||{},c=Number(r.decimals??6),k=Number(r.computeUnitLimit??r.compute_unit_limit??2e5),W=Number(r.computeUnitPriceMicroLamports??r.compute_unit_price_micro_lamports??1),g=t.maxAmountRequired||t.max_amount_required||"0",b=BigInt(g);if(b<=0n)throw new Error(`Invalid payment amount: ${g}`);const P=String(t.network||"solana").toLowerCase(),C=ae(P,r.rpcUrl||r.rpc_url),p=await te(),A=new p.Connection(C,"confirmed"),E=new p.PublicKey(s),B=new p.PublicKey(n),V=new p.PublicKey(t.asset),X=x(p,E,V),U=x(p,B,V),S=new p.Transaction;k>0&&S.add(p.ComputeBudgetProgram.setComputeUnitLimit({units:k})),W>0&&S.add(p.ComputeBudgetProgram.setComputeUnitPrice({microLamports:W})),S.add(ie(p,X,V,U,E,b,c)),S.feePayer=E;let y;if(o)y=await o(P);else{const{blockhash:oe}=await A.getLatestBlockhash("confirmed");y=oe}S.recentBlockhash=y;const N=await i(S);let R;if(typeof N=="string"?R=N:N&&typeof N=="object"&&(R=N.signature||N.txid||N.transactionId),!R||typeof R!="string")throw new Error("Wallet did not return a valid transaction signature");const j={x402Version:1,scheme:t.scheme||"exact",network:t.network||"solana",payload:{signature:R}},D=btoa(JSON.stringify(j));return{signature:R,header:D}}async function Ue(e){const{requirements:t,payerAddress:s,signAndSendTransaction:i,signTransaction:o,signAllTransactions:n,fetchLatestBlockhash:r}=e;if(i)return(await re({requirements:t,payerAddress:s,signAndSendTransaction:i,fetchBlockhash:r})).header;console.warn("Using signTransaction fallback. This may trigger security warnings in Phantom. Consider using signAndSendTransaction for better user experience.");const c=t.extra||{},k=String(t.network||"solana").toLowerCase(),W=ae(k,c.rpcUrl||c.rpc_url),g=await te(),b=e.connection||new g.Connection(W,"confirmed"),P=new g.PublicKey(s),C=new g.PublicKey(String(t.payTo||t.pay_to)),p=new g.PublicKey(String(t.asset)),A=Number(c.decimals??6),E=Number(c.computeUnitLimit??c.compute_unit_limit??2e5),B=Number(c.computeUnitPriceMicroLamports??c.compute_unit_price_micro_lamports??1),V=BigInt(String(t.maxAmountRequired||t.max_amount_required||"0"));if(V<=0n)throw new Error("Invalid amount");const X=x(g,P,p),U=x(g,C,p),S=new g.Transaction;if(S.feePayer=P,E>0&&S.add(g.ComputeBudgetProgram.setComputeUnitLimit({units:E})),B>0&&S.add(g.ComputeBudgetProgram.setComputeUnitPrice({microLamports:B})),S.add(ie(g,X,p,U,P,V,A)),e.fetchLatestBlockhash)S.recentBlockhash=await e.fetchLatestBlockhash(k);else{const{blockhash:D}=await b.getLatestBlockhash("confirmed");S.recentBlockhash=D}let y;if(o)y=await o(S);else if(n){const D=await n([S]);y=Array.isArray(D)?D[0]:void 0}if(!y)throw new Error("Wallet did not return a signed transaction");const N=y.serialize({requireAllSignatures:!1,verifySignatures:!1}),R=Me(N),j={x402Version:1,scheme:t.scheme||"exact",network:t.network||"solana",payload:{serializedTransaction:R,transaction:R}};return btoa(JSON.stringify(j))}const Fe=M({name:"X402PayOrderDialog",components:{ElDialog:H,ElButton:ee,ElAlert:Z,ElTag:Y,ElIcon:he,ElRadioGroup:pe,ElRadioButton:ue,CreditCard:ce},props:{modelValue:{type:Object,required:!0},session:{type:Object,default:void 0},visible:{type:Boolean,default:!1}},emits:["hide","update:modelValue"],data(){return{signing:!1,paying:!1,chainId:void 0,selectedNetwork:void 0,solanaWalletModalVisible:!1,solanaWalletConnecting:!1,evmWalletModalVisible:!1,evmWalletConnecting:!1,evmWallets:[],selectedEvmWalletId:void 0,evmAddress:void 0,requirementsLoading:!1,runtimeRequirementsByNetwork:{},requirementsAttemptedByNetwork:{}}},computed:{dialogWidth(){return Se()?"100%":"680px"},acceptsList(){const e=this.session?.accepts;if(Array.isArray(e)&&e.length>0)return e.filter(s=>!!(s&&typeof s=="object"));const t=this.paymentRequirements;return Array.isArray(t)&&t.length>0?t.filter(s=>!!(s&&typeof s=="object")):t&&typeof t=="object"?[t]:[]},selectedNetworkResolved(){return String(this.selectedNetwork||this.acceptsList[0]?.network||"base").toLowerCase()},selectedRequirements(){const e=String(this.selectedNetworkResolved||"").toLowerCase();if(!e)return this.acceptsList[0];const t=this.runtimeRequirementsByNetwork[e];if(t)return t;const s=this.acceptsList.find(i=>String(i.network||"").toLowerCase()===e);if(s)return s;if(!this.selectedNetwork)return this.acceptsList[0]},orderMetadata(){const e=this.modelValue?.metadata;return e&&typeof e=="object"?e:void 0},paymentRequirements(){const e=this.session?.payment_requirements||this.session?.paymentRequirements;if(e&&typeof e=="object")return e;const t=this.orderMetadata?.payment_requirements||this.orderMetadata?.paymentRequirements;if(t&&typeof t=="object")return t},expectedNetwork(){return this.selectedNetworkResolved},expectedNetworkLabel(){return this.formatNetworkLabel(this.expectedNetwork)},isSolanaNetwork(){return!!String(this.selectedNetworkResolved||"").toLowerCase().startsWith("solana")},expectedChainIdHex(){const e={base:"0x2105","base-sepolia":"0x14A34",ethereum:"0x1",sepolia:"0xAA36A7",polygon:"0x89",arbitrum:"0xA4B1",optimism:"0xA",bsc:"0x38",avalanche:"0xA86A",skale:"0x46CEA59D"},t=(this.expectedNetwork||"").toLowerCase();return e[t]},networkMismatch(){return this.isSolanaNetwork?!1:!!(this.evmAddress&&this.chainId&&this.expectedChainIdHex&&this.chainId.toLowerCase()!==this.expectedChainIdHex.toLowerCase())},hasEvmProvider(){return this.isSolanaNetwork?!1:this.evmWalletsOrdered.length>0},requirementsAvailable(){return!!this.selectedRequirements},networkOptions(){const e=new Set(this.acceptsList.map(s=>String(s.network||"").toLowerCase()).filter(Boolean));if(e.size===0)return[{network:"base",label:"Base"},{network:"solana",label:"Solana"}];const t=s=>s==="base"?0:s.startsWith("solana")?1:2;return Array.from(e).sort((s,i)=>t(s)-t(i)||s.localeCompare(i)).map(s=>({network:s,label:this.formatNetworkLabel(s)}))},paymentSteps(){const e=this.expectedNetworkLabel||this.expectedNetwork||"";return[String(this.$t("order.message.x402Step1")),String(this.$t("order.message.x402Step2",{network:e})),String(this.$t("order.message.x402Step3")),String(this.$t("order.message.x402Step4"))]},evmConnected(){return!!(this.selectedEvmWalletId&&this.evmAddress)},evmProvider(){if(this.selectedEvmWalletId)return this.evmWallets.find(e=>e.id===this.selectedEvmWalletId)?.provider},selectedEvmWalletName(){if(this.selectedEvmWalletId)return this.evmWallets.find(e=>e.id===this.selectedEvmWalletId)?.name},selectedEvmWalletIcon(){if(this.selectedEvmWalletId)return this.evmWallets.find(e=>e.id===this.selectedEvmWalletId)?.icon},evmWalletsOrdered(){return[...this.evmWallets].sort((e,t)=>e.name.localeCompare(t.name))},solanaConnected(){return!!this.$wallet?.connected?.value},solanaAddress(){const e=this.$wallet?.publicKey?.value;if(!(!e||typeof e.toBase58!="function"))return e.toBase58()},solanaWalletsOrdered(){const e=this.$wallet?.wallets?.value??[],t=s=>s==="Installed"?0:s==="Loadable"?1:s==="NotDetected"?2:3;return[...e].sort((s,i)=>t(s.readyState)-t(i.readyState))},selectedSolanaWalletName(){return this.$wallet?.wallet?.value?.adapter?.name},selectedSolanaWalletIcon(){return this.$wallet?.wallet?.value?.adapter?.icon}},watch:{visible(e){if(!e){this.solanaWalletModalVisible=!1,this.evmWalletModalVisible=!1;return}if(!this.selectedNetwork){const i=this.acceptsList[0]?.network;this.selectedNetwork=String(i||"base").toLowerCase()}const t=new Set(this.networkOptions.map(i=>i.network)),s=String(this.selectedNetwork||"").toLowerCase();if(s&&!t.has(s)){const i=this.networkOptions[0]?.network;i&&(this.selectedNetwork=i)}this.maybeLoadRequirements()},selectedNetwork(){this.visible&&this.maybeLoadRequirements()}},mounted(){this.refreshEvmWallets()},methods:{sleep(e){return new Promise(t=>setTimeout(t,e))},getErrorMessage(e){if(!e)return"";if(typeof e=="string")return e;if(typeof e?.message=="string")return e.message;try{return JSON.stringify(e)}catch{return String(e)}},isRetryableSolanaConnectError(e){if(String(e?.name||"")==="WalletNotSelectedError")return!0;const s=this.getErrorMessage(e).toLowerCase();return s.includes("disconnected port object")||s.includes("failed to send message to service worker")||s.includes("message port closed")||s.includes("extension context invalidated")},async connectSolanaWalletWithRetry(e){const t=this.$wallet;if(!t)throw new Error("Wallet API not available");const s=2;let i;for(let o=1;o<=s;o+=1)try{e&&t.select(e),await be(),await t.connect();return}catch(n){if(i=n,o<s&&this.isRetryableSolanaConnectError(n)){const c=String(n?.name||"")==="WalletNotSelectedError"?0:300;c&&await this.sleep(c);continue}throw n}throw i},formatNetworkLabel(e){const t=String(e||"").toLowerCase();return t==="base"?"Base":t==="solana"?"Solana":t==="solana-devnet"?"Solana Devnet":t==="skale"?"SKALE":t==="ethereum"?"Ethereum":t==="sepolia"?"Sepolia":t==="polygon"?"Polygon":t==="arbitrum"?"Arbitrum":t==="optimism"?"Optimism":t==="bsc"?"BNB Chain":t==="avalanche"?"Avalanche":e||"Unknown"},async confirmPay(e){const t=e||this.expectedNetworkLabel||this.expectedNetwork||"",s=String(this.$t?.("order.message.x402ConfirmTitle")||"Confirm Payment"),i=String(this.$t?.("order.message.x402ConfirmDesc",{network:t})||`Confirm USDC payment on ${t}?`),o=String(this.$t?.("common.button.pay")||"Pay"),n=String(this.$t?.("common.button.cancel")||"Cancel");return me.confirm(i,s,{confirmButtonText:o,cancelButtonText:n,type:"warning"}).then(()=>!0).catch(()=>!1)},async onSelectSolanaWallet(e){if(!this.solanaWalletConnecting&&e?.adapter?.name){this.solanaWalletConnecting=!0;try{await this.connectSolanaWalletWithRetry(e.adapter.name),this.solanaWalletModalVisible=!1}catch(t){console.warn("wallet connect failed",t),T.error(String(this.$t?.("coin.message.connectError")||"Wallet connect failed"))}finally{this.solanaWalletConnecting=!1}}},async disconnectSolanaWallet(){try{await this.$wallet.disconnect()}catch{}},openEvmWalletModal(){this.evmWalletModalVisible=!0,this.refreshEvmWallets()},async refreshEvmWallets(){if(typeof window>"u")return;const e=new Map,t=s=>{const i=s?.detail,o=i?.info,n=i?.provider;if(!o||!n)return;const r=String(o.uuid||o.rdns||o.name||"");r&&(e.has(r)||e.set(r,{id:r,name:String(o.name||"Wallet"),icon:typeof o.icon=="string"?o.icon:void 0,provider:n}))};try{window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new Event("eip6963:requestProvider")),await new Promise(s=>window.setTimeout(s,120))}finally{window.removeEventListener("eip6963:announceProvider",t)}if(e.size===0){const s=window.ethereum;(Array.isArray(s?.providers)?s.providers:s?[s]:[]).forEach((o,n)=>{if(!o)return;let r="Injected";o.isMetaMask?r="MetaMask":o.isCoinbaseWallet?r="Coinbase Wallet":o.isBraveWallet?r="Brave Wallet":o.isRabby?r="Rabby":o.isPhantom&&(r="Phantom");const c=`injected:${r}:${n}`;e.set(c,{id:c,name:r,icon:void 0,provider:o})})}this.evmWallets=Array.from(e.values())},async onSelectEvmWallet(e){if(e?.provider){this.evmWalletModalVisible=!1,this.evmWalletConnecting=!0;try{const t=await e.provider.request({method:"eth_requestAccounts"}),s=Array.isArray(t)?t[0]:void 0;if(!s)throw new Error("No account returned from wallet");this.selectedEvmWalletId=e.id,this.evmAddress=s,await this.refreshChainId(),await this.ensureNetwork()}catch(t){console.warn("EVM wallet connect failed",t),T.error(String(this.$t?.("coin.message.connectError")||"Wallet connect failed")),this.disconnectEvmWallet()}finally{this.evmWalletConnecting=!1}}},disconnectEvmWallet(){this.selectedEvmWalletId=void 0,this.evmAddress=void 0,this.chainId=void 0},async getFreshRequirements(){const e=this.selectedRequirements;if(e)return e;try{const s=(await I.pay(this.modelValue.id,{pay_way:"X402"}))?.data,i=Array.isArray(s?.accepts)?s.accepts:void 0,o=String(this.selectedNetworkResolved||"").toLowerCase();if(Array.isArray(i)&&i.length){const r=i.find(c=>String(c?.network||"").toLowerCase()===o);return r||(this.selectedNetwork?void 0:i[0])}const n=s?.payment_requirements;if(Array.isArray(n)&&n.length){const r=n.find(c=>String(c?.network||"").toLowerCase()===o);return r||(this.selectedNetwork?void 0:n[0])}return n&&typeof n=="object"?n:void 0}catch(t){const s=t?.response?.data;if(s){const i=Array.isArray(s?.accepts)?s.accepts:void 0,o=String(this.selectedNetworkResolved||"").toLowerCase();if(Array.isArray(i)&&i.length){const r=i.find(c=>String(c?.network||"").toLowerCase()===o);return r||(this.selectedNetwork?void 0:i[0])}const n=s?.payment_requirements;if(Array.isArray(n)&&n.length){const r=n.find(c=>String(c?.network||"").toLowerCase()===o);return r||(this.selectedNetwork?void 0:n[0])}if(n&&typeof n=="object")return n}return}},async maybeLoadRequirements(e=!1){const t=String(this.selectedNetworkResolved||"").toLowerCase();if(!(!t||this.runtimeRequirementsByNetwork[t]||this.acceptsList.some(i=>String(i.network||"").toLowerCase()===t))&&!(!e&&this.requirementsAttemptedByNetwork[t])){this.requirementsAttemptedByNetwork[t]=!0,this.requirementsLoading=!0;try{const i=await this.getFreshRequirements();i&&(this.runtimeRequirementsByNetwork[t]=i)}finally{this.requirementsLoading=!1}}},async refreshChainId(){if(this.evmProvider)try{const e=await this.evmProvider.request({method:"eth_chainId"});typeof e=="string"&&(this.chainId=e)}catch{}},async ensureNetwork(){if(!(!this.evmProvider||!this.expectedChainIdHex)&&(await this.refreshChainId(),!(this.chainId&&this.chainId.toLowerCase()===this.expectedChainIdHex.toLowerCase()))){try{await this.evmProvider.request({method:"wallet_switchEthereumChain",params:[{chainId:this.expectedChainIdHex}]})}catch{try{await this.evmProvider.request({method:"wallet_addEthereumChain",params:[this.getExpectedChainParams()]})}catch(e){console.error("Failed to add Ethereum chain:",e);try{const t=this.$t&&this.$t("order.message.x402NetworkSwitchFailed")||"Your wallet does not support automatic network switching. Please switch to the required network in the wallet and try again.";T.warning(t)}catch{}}}await this.refreshChainId()}},getExpectedChainParams(){const e={base:{chainId:"0x2105",chainName:"Base",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.base.org"],blockExplorerUrls:["https://basescan.org"]},"base-sepolia":{chainId:"0x14A34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org"]},skale:{chainId:"0x46CEA59D",chainName:"SKALE Base",nativeCurrency:{name:"CREDIT",symbol:"CREDIT",decimals:18},rpcUrls:["https://skale-base.skalenodes.com/v1/base"],blockExplorerUrls:["https://skale-base-explorer.skalenodes.com"]}},t=(this.expectedNetwork||"").toLowerCase();return e[t]||{chainId:this.expectedChainIdHex}},buildTypedData(e,t){const s=e?.extra||{};return{types:{EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],TransferWithAuthorization:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"validAfter",type:"uint256"},{name:"validBefore",type:"uint256"},{name:"nonce",type:"bytes32"}]},primaryType:"TransferWithAuthorization",domain:{name:s?.name||"USD Coin",version:s?.version||"2",chainId:parseInt(this.expectedChainIdHex||"0x0",16),verifyingContract:e.asset},message:t}},randomNonce32(){const e=new Uint8Array(32);return crypto.getRandomValues(e),"0x"+Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")},async onPayWithSolanaWallet(){if(!this.modelValue?.id)return;const e=this.solanaAddress;if(!e){T.error(String(this.$t?.("order.message.x402NeedConnectAccount")||"Please connect a wallet first."));return}if(!this.requirementsAvailable){T.error(String(this.$t?.("order.message.x402SolanaNotEnabled")||"Solana payment is not available."));return}this.signing=!0;try{if(!await this.confirmPay(this.expectedNetworkLabel))return;let s=await this.getFreshRequirements();if(s||(s=this.selectedRequirements),!s){T.error(String(this.$t?.("order.message.x402PaymentFailed")||"X402 payment failed."));return}const i=this.$wallet,o=i?.wallet?.value?.adapter,n=typeof window<"u"?window.phantom?.solana||window.solana:void 0,r=typeof window<"u"?window.solflare:void 0;let c;if(n?.isPhantom&&typeof n?.signAndSendTransaction=="function")c=n.signAndSendTransaction.bind(n);else if(r?.isSolflare&&typeof r?.signAndSendTransaction=="function")c=r.signAndSendTransaction.bind(r);else if(typeof window<"u"&&window.solana?.signAndSendTransaction&&!window.solana?.isPhantom)c=window.solana.signAndSendTransaction.bind(window.solana);else if(i?.sendTransaction&&i?.publicKey?.value){const{Connection:g}=await G(async()=>{const{Connection:A}=await import("./index.browser.esm-BgC0y73S.js").then(E=>E.i);return{Connection:A}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])),b=s.extra||{},P=String(s.network||"solana").toLowerCase(),C=b.rpcUrl||b.rpc_url||(P.includes("devnet")?"https://api.devnet.solana.com":"https://api.mainnet-beta.solana.com"),p=new g(C,"confirmed");c=async A=>({signature:await i.sendTransaction(A,p)})}let k;if(c)k=(await re({requirements:s,payerAddress:e,signAndSendTransaction:c,fetchBlockhash:b=>this.fetchSolanaLatestBlockhash(b)})).header;else if(o?.signTransaction||o?.signAllTransactions)k=await Ue({requirements:s,payerAddress:e,signTransaction:o.signTransaction?o.signTransaction.bind(o):void 0,signAllTransactions:o.signAllTransactions?o.signAllTransactions.bind(o):void 0,fetchLatestBlockhash:g=>this.fetchSolanaLatestBlockhash(g)});else throw new Error("Wallet does not support signing transactions");this.paying=!0;const{data:W}=await I.payX402WithHeader(this.modelValue.id,{pay_way:"X402"},k);this.$emit("update:modelValue",W),this.$emit("hide")}catch(t){const s=t?.response?.data,i=s?.error||s?.detail||"X402 wallet payment failed.";T.error(String(i))}finally{this.signing=!1,this.paying=!1}},async fetchSolanaLatestBlockhash(e){const{data:t}=await de.get("/x402/solana/latest-blockhash/",{params:{network:e||"solana"}}),s=t?.blockhash;if(!s||typeof s!="string")throw new Error("Invalid blockhash response");return s},async onPayWithWallet(){if(!this.modelValue?.id||!this.evmProvider||!this.evmAddress){const e=this.$t&&this.$t("order.message.x402PaymentFailed")||"X402 wallet payment is not available right now. Please try again later.";T.error(e);return}this.signing=!0;try{let e=await this.getFreshRequirements();if(e||(e=this.selectedRequirements),!e){const P=this.$t&&this.$t("order.message.x402PaymentFailed")||"X402 wallet payment failed. Please try again later.";T.error(P);return}if(await this.ensureNetwork(),this.networkMismatch){T.warning(String(this.$t?.("order.message.x402SwitchNetwork",{network:this.expectedNetworkLabel||this.expectedNetwork})||"Please switch your wallet network and try again."));return}if(!await this.confirmPay(this.expectedNetworkLabel))return;const s=Math.floor(Date.now()/1e3),i=Number(e?.maxTimeoutSeconds||e?.max_timeout_seconds||120),o=BigInt(e?.maxAmountRequired||e?.max_amount_required||0).toString(),n={from:this.evmAddress,to:e.payTo||e.pay_to,value:o,validAfter:s,validBefore:s+i,nonce:this.randomNonce32()},r=this.buildTypedData(e,n),c=await this.evmProvider.request({method:"eth_signTypedData_v4",params:[this.evmAddress,JSON.stringify(r)]}),k={from:n.from,to:n.to,value:n.value,validAfter:String(n.validAfter),validBefore:String(n.validBefore),nonce:n.nonce},W={x402Version:1,scheme:e.scheme||"exact",network:e.network||this.expectedNetwork||"base",payload:{authorization:k,signature:c}},g=btoa(JSON.stringify(W));this.paying=!0;const{data:b}=await I.payX402WithHeader(this.modelValue.id,{pay_way:"X402"},g);this.$emit("update:modelValue",b),this.$emit("hide")}catch(e){let t;const s=e?.response?.data;if(s){const i=s?.error||s?.detail;typeof i=="string"&&(t=i)}t||(t=this.$t&&this.$t("order.message.x402PaymentFailed")||"X402 wallet payment failed. Please try again later.");try{T.error(t)}catch{}}finally{this.signing=!1,this.paying=!1}}}}),He={class:"x402-content"},xe={class:"x402-intro"},je={class:"x402-intro-text"},ze={class:"x402-wallet"},Ke={class:"x402-wallet-head"},Ge={class:"x402-network"},Je={class:"x402-network-label"},Qe={key:1,class:"x402-requirements-actions"},Ye={class:"x402-wallet-card"},Ze={class:"x402-wallet-card-head"},et={class:"x402-wallet-card-title"},tt={key:0,class:"x402-wallet-card-sub x402-wallet-name"},st=["src","alt"],at={key:1,class:"x402-wallet-card-sub"},it={class:"x402-wallet-card-actions"},rt={class:"x402-actions"},nt={class:"x402-wallet-card"},ot={class:"x402-wallet-card-head"},lt={class:"x402-wallet-card-title"},dt={key:0,class:"x402-wallet-card-sub x402-wallet-name"},ct=["src","alt"],ut={key:1,class:"x402-wallet-card-sub"},pt={class:"x402-wallet-card-actions"},ht={class:"x402-actions"},mt={class:"x402-steps"},yt={class:"x402-steps-title"},ft={class:"x402-steps-list"},gt={class:"x402-step-index"},wt={class:"x402-step-text"},vt={class:"wallet-list"},bt=["disabled","onClick"],kt=["src","alt"],Pt={class:"wallet-list-name"},St={key:1,class:"wallet-list-status"},$t={class:"wallet-list"},Wt=["disabled","onClick"],At=["src","alt"],Ct={class:"wallet-list-name"},_t={class:"wallet-list-status"},Et={key:0,class:"text-center text-[13px] text-[var(--el-text-color-regular)]"};function Nt(e,t,s,i,o,n){const r=w("credit-card"),c=w("el-icon"),k=w("el-radio-button"),W=w("el-radio-group"),g=w("el-alert"),b=w("el-button"),P=w("el-tag"),C=w("el-dialog");return a(),m(L,null,[h(C,{"model-value":e.visible,title:e.$t("order.title.x402"),width:e.dialogWidth,top:"8vh",class:"x402-dialog"},{default:u(()=>[d("section",He,[d("header",xe,[h(c,{size:20,class:"x402-intro-icon"},{default:u(()=>[h(r)]),_:1}),d("p",je,l(e.$t("order.message.x402IntroShort")),1)]),d("section",ze,[d("div",Ke,[d("div",Ge,[d("span",Je,l(e.$t("order.message.x402IntegrationNetworkLabel")),1),h(W,{modelValue:e.selectedNetwork,"onUpdate:modelValue":t[0]||(t[0]=p=>e.selectedNetwork=p),class:"x402-network-group"},{default:u(()=>[(a(!0),m(L,null,q(e.networkOptions,p=>(a(),v(k,{key:p.network,label:p.network},{default:u(()=>[$(l(p.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),e.selectedNetworkResolved==="solana"&&!e.selectedRequirements&&!e.requirementsLoading?(a(),v(g,{key:0,type:"info",closable:!1,class:"x402-alert",description:e.$t("order.message.x402SolanaNotEnabled")},null,8,["description"])):f("",!0),!e.selectedRequirements&&!e.requirementsLoading?(a(),m("div",Qe,[h(b,{link:"",type:"primary",size:"small",onClick:t[1]||(t[1]=p=>e.maybeLoadRequirements(!0))},{default:u(()=>[$(l(e.$t("common.button.refresh")),1)]),_:1})])):f("",!0),e.isSolanaNetwork?(a(),m(L,{key:2},[d("div",Ye,[d("div",Ze,[d("span",et,l(e.$t("order.message.x402WalletTitleSolana")),1),e.solanaConnected?(a(),v(P,{key:0,class:"x402-wallet-card-tag"},{default:u(()=>[$(l(e.$t("order.message.x402WalletConnected")),1)]),_:1})):f("",!0)]),e.solanaConnected&&e.selectedSolanaWalletName?(a(),m("div",tt,[e.selectedSolanaWalletIcon?(a(),m("img",{key:0,class:"wallet-list-icon",src:e.selectedSolanaWalletIcon,alt:e.selectedSolanaWalletName},null,8,st)):f("",!0),d("span",null,l(e.selectedSolanaWalletName),1)])):f("",!0),e.solanaConnected&&e.solanaAddress?(a(),m("div",at,l(e.solanaAddress.substring(0,10))+"..."+l(e.solanaAddress.substring(e.solanaAddress.length-10)),1)):f("",!0),d("div",it,[e.solanaConnected?(a(),v(b,{key:1,onClick:e.disconnectSolanaWallet},{default:u(()=>[$(l(e.$t("coin.button.disconnect")),1)]),_:1},8,["onClick"])):(a(),v(b,{key:0,type:"primary",onClick:t[2]||(t[2]=p=>e.solanaWalletModalVisible=!0)},{default:u(()=>[$(l(e.$t("order.message.x402ConnectWallet")),1)]),_:1}))])]),d("div",rt,[h(b,{type:"primary",disabled:!e.solanaConnected||!e.solanaAddress||!e.requirementsAvailable,loading:e.signing||e.paying,onClick:e.onPayWithSolanaWallet},{default:u(()=>[$(l(e.$t("order.message.x402WalletPayCta")),1)]),_:1},8,["disabled","loading","onClick"])])],64)):(a(),m(L,{key:3},[d("div",nt,[d("div",ot,[d("span",lt,l(e.$t("order.message.x402WalletTitleEvm")),1),e.evmConnected?(a(),v(P,{key:0,class:"x402-wallet-card-tag"},{default:u(()=>[$(l(e.$t("order.message.x402WalletConnected")),1)]),_:1})):f("",!0)]),e.evmConnected&&e.selectedEvmWalletName?(a(),m("div",dt,[e.selectedEvmWalletIcon?(a(),m("img",{key:0,class:"wallet-list-icon",src:e.selectedEvmWalletIcon,alt:e.selectedEvmWalletName},null,8,ct)):f("",!0),d("span",null,l(e.selectedEvmWalletName),1)])):f("",!0),e.evmConnected&&e.evmAddress?(a(),m("div",ut,l(e.evmAddress.substring(0,10))+"..."+l(e.evmAddress.substring(e.evmAddress.length-10)),1)):f("",!0),d("div",pt,[e.evmConnected?(a(),v(b,{key:1,onClick:e.disconnectEvmWallet},{default:u(()=>[$(l(e.$t("coin.button.disconnect")),1)]),_:1},8,["onClick"])):(a(),v(b,{key:0,type:"primary",onClick:e.openEvmWalletModal},{default:u(()=>[$(l(e.$t("order.message.x402ConnectWallet")),1)]),_:1},8,["onClick"]))])]),e.hasEvmProvider?e.networkMismatch?(a(),v(g,{key:1,type:"warning",closable:!1,"show-icon":"",class:"x402-alert",title:e.$t("order.message.x402SwitchNetwork",{network:e.expectedNetworkLabel||e.expectedNetwork})},null,8,["title"])):f("",!0):(a(),v(g,{key:0,type:"info",closable:!1,class:"x402-alert",description:e.$t("order.message.x402NoWalletDesc")},null,8,["description"])),d("div",ht,[e.hasEvmProvider?(a(),v(b,{key:0,type:"primary",disabled:!e.evmConnected||!e.requirementsAvailable||e.networkMismatch,loading:e.signing||e.paying,onClick:e.onPayWithWallet},{default:u(()=>[$(l(e.$t("order.message.x402WalletPayCta")),1)]),_:1},8,["disabled","loading","onClick"])):f("",!0)])],64)),d("div",mt,[d("div",yt,l(e.$t("order.message.x402StepsTitle")),1),d("ol",ft,[(a(!0),m(L,null,q(e.paymentSteps,(p,A)=>(a(),m("li",{key:A,class:"x402-step"},[d("span",gt,l(A+1),1),d("span",wt,l(p),1)]))),128))])])])])]),_:1},8,["model-value","title","width"]),h(C,{modelValue:e.solanaWalletModalVisible,"onUpdate:modelValue":t[3]||(t[3]=p=>e.solanaWalletModalVisible=p),title:e.$t("order.message.x402ConnectWallet"),width:"420px","align-center":""},{default:u(()=>[d("div",vt,[(a(!0),m(L,null,q(e.solanaWalletsOrdered,p=>(a(),m("button",{key:p.adapter.name,class:"wallet-list-item",disabled:e.solanaWalletConnecting,onClick:A=>e.onSelectSolanaWallet(p)},[p.adapter.icon?(a(),m("img",{key:0,class:"wallet-list-icon",src:p.adapter.icon,alt:p.adapter.name},null,8,kt)):f("",!0),d("span",Pt,l(p.adapter.name),1),p.readyState==="Installed"?(a(),m("span",St,l(e.$t("order.message.x402WalletStatusDetected")),1)):f("",!0)],8,bt))),128))])]),_:1},8,["modelValue","title"]),h(C,{modelValue:e.evmWalletModalVisible,"onUpdate:modelValue":t[4]||(t[4]=p=>e.evmWalletModalVisible=p),title:e.$t("order.message.x402ConnectWallet"),width:"420px","align-center":""},{default:u(()=>[d("div",$t,[(a(!0),m(L,null,q(e.evmWalletsOrdered,p=>(a(),m("button",{key:p.id,class:"wallet-list-item",disabled:e.evmWalletConnecting,onClick:A=>e.onSelectEvmWallet(p)},[p.icon?(a(),m("img",{key:0,class:"wallet-list-icon",src:p.icon,alt:p.name},null,8,At)):f("",!0),d("span",Ct,l(p.name),1),d("span",_t,l(e.$t("order.message.x402WalletStatusDetected")),1)],8,Wt))),128)),e.evmWalletsOrdered.length===0?(a(),m("div",Et,l(e.$t("order.message.x402NoWalletDesc")),1)):f("",!0)])]),_:1},8,["modelValue","title"])],64)}const Tt=O(Fe,[["render",Nt],["__scopeId","data-v-53981361"]]),It=M({name:"PaypalPayOrderDialog",components:{ElDialog:H},props:{modelValue:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["hide","update:modelValue"],data(){return{refreshTimer:void 0}},watch:{visible:{handler(e){e&&this.modelValue.pay_url&&window.open(this.modelValue.pay_url,"_blank")}}},mounted(){this.onRefresh()},unmounted(){this.refreshTimer&&clearTimeout(this.refreshTimer)},methods:{onRefresh(){if(!this.modelValue.id){console.error("id does not exist");return}I.refresh(this.modelValue.id).then(({data:e})=>{e.state!==_.PAID?setTimeout(()=>{this.onRefresh()},2e3):this.$emit("hide"),this.$emit("update:modelValue",e)}).catch(()=>{setTimeout(()=>{this.onRefresh()},5e3)})}}}),Rt={class:"text-center"};function Lt(e,t,s,i,o,n){const r=w("el-dialog");return a(),v(r,{"model-value":e.visible,title:e.$t("application.title.buyService"),width:"500px",center:""},{default:u(()=>[d("p",Rt,l(e.$t("order.message.buyInExternalUrl")),1)]),_:1},8,["model-value","title"])}const Vt=O(It,[["render",Lt]]),Dt=7e3,K=2e3;var ne=(e=>(e.WechatPay="WechatPay",e.Stripe="Stripe",e.AliPay="AliPay",e.X402="X402",e.PayPal="PayPal",e))(ne||{});const Bt=M({name:"ConsoleOrderDetail",components:{ElButton:ee,CopyToClipboard:Pe,ElRow:Q,ElCard:ve,ElCol:J,ElSkeleton:we,ElDivider:ge,ElAlert:Z,ElDescriptions:fe,ElDescriptionsItem:ye,ElTag:Y,WechatPayOrder:_e,StripePayOrder:Ie,AlipayPayOrder:De,X402PayOrder:Tt,PaypalPayOrder:Vt},data(){return{PayWay:ne,payWay:"WechatPay",OrderState:_,order:void 0,x402Session:void 0,showPayWays:!0,loading:!1,paying:!1,prepaying:!1}},computed:{config(){return this.$store.getters.config},enablePaypal(){return!!this.config?.features?.ENABLE_PAYPAL},id(){return this.$route.params?.id?.toString()},redirect(){return this.$route.query?.redirect},pricingInfo(){const e=this.order?.metadata?.pricing||{},t=P=>typeof P=="number"&&Number.isFinite(P)?P:void 0,s=t(e?.original_price),i=t(e?.discounted_price),o=t(e?.discount_rate),n=t(e?.discount_rate_vip),r=t(e?.discount_rate_x402),c=t(this.order?.price),k=s??c??0,W=i??c??k,g=t(this.order?.discount)??o??0,b=Array.isArray(e?.discounted_methods)?e.discounted_methods.filter(P=>typeof P=="string"&&P.length>0):[];return{original:k,discounted:W,discountRate:g,discountedMethods:b,discountRateVip:n,discountRateX402:r}},appliedDiscountMethods(){return this.pricingInfo.discountedMethods||[]},hasVipApplied(){return this.appliedDiscountMethods.includes("vip")},hasX402Applied(){return this.appliedDiscountMethods.includes("x402")},pendingX402Preview(){return this.payWay==="X402"&&this.order?.pay_way!=="X402"&&this.x402DiscountRate>0},finalOriginalPrice(){return this.pricingInfo.original||0},baseEffectivePrice(){const e=this.order?.price;return typeof e=="number"&&Number.isFinite(e)?e:this.pricingInfo.discounted},previewX402Price(){const e=this.baseEffectivePrice||0,t=this.x402DiscountRate;return!t||t<=0?e:e*(1-t)},finalDiscountedPrice(){return this.pendingX402Preview?this.previewX402Price:this.baseEffectivePrice},showOriginalPrice(){return this.finalOriginalPrice<=0?!1:this.finalOriginalPrice>this.finalDiscountedPrice},totalDiscountRate(){const e=this.pricingInfo.discountRate??0;return this.pendingX402Preview?1-(1-e)*(1-this.x402DiscountRate):e},hasAnyDiscount(){return this.totalDiscountRate>0},discountBadges(){const e=[];return this.hasVipApplied&&this.vipDiscountPercent&&e.push({key:"vip",text:this.$t("order.message.discountTag",{percent:this.vipDiscountPercent}).toString(),type:"success"}),this.shouldDisplayX402Badge&&this.x402BadgePercent&&e.push({key:"x402",text:this.$t("order.message.x402DiscountTag",{percent:this.x402BadgePercent}).toString(),type:"success"}),e},discountHints(){const e=[];return this.hasVipApplied&&this.vipDiscountPercent&&e.push(this.$t("order.message.discountHint",{percent:this.vipDiscountPercent}).toString()),this.hasX402Applied&&this.x402AppliedPercent?e.push(this.$t("order.message.x402DiscountApplied",{percent:this.x402AppliedPercent}).toString()):this.pendingX402Preview&&this.x402BadgePercent&&e.push(this.$t("order.message.x402DiscountHint",{percent:this.x402BadgePercent}).toString()),e},x402DiscountRate(){const e=this.config?.features?.DISCOUNT_FOR_X402;return typeof e=="number"&&Number.isFinite(e)&&e>0?e:0},vipDiscountPercent(){const e=(this.pricingInfo.discountRateVip??0)*100;return!Number.isFinite(e)||e<=0?"":Number.isInteger(e)?e.toFixed(0):e.toFixed(1)},x402AppliedPercent(){const t=(this.pricingInfo.discountRateX402??0)*100;return!Number.isFinite(t)||t<=0?"":Number.isInteger(t)?t.toFixed(0):t.toFixed(1)},x402BadgePercent(){const t=(this.hasX402Applied?this.pricingInfo.discountRateX402??this.x402DiscountRate:this.x402DiscountRate)*100;return!Number.isFinite(t)||t<=0?"":Number.isInteger(t)?t.toFixed(0):t.toFixed(1)},shouldDisplayX402Badge(){return this.hasX402Applied||this.pendingX402Preview},shouldShowPriceBlock(){return this.finalOriginalPrice>0||this.finalDiscountedPrice>0||this.hasAnyDiscount||this.pendingX402Preview},orderFailedReason(){if(!this.order||this.order.state!==_.FAILED)return;const t=(this.order.metadata||{})?.x402?.last_error||{};return(typeof t.reason=="string"?t.reason.trim():"")||void 0}},watch:{paying(e){e?this.startOrderPolling():this.stopOrderPolling()},order:{handler(e){if(e?.state===_.PAID){this.x402Session=void 0,setTimeout(()=>{this.redirect&&window.location.replace(this.redirect?.toString())},2e3);return}e?.state&&e.state!==_.PENDING&&e.state!==_.FAILED&&(this.x402Session=void 0)},deep:!0},payWay(e){e!=="X402"&&(this.x402Session=void 0)}},created(){this._orderRefreshTimer=void 0},mounted(){this.onFetchData()},beforeUnmount(){this.stopOrderPolling()},methods:{getPriceString:ke,startOrderPolling(e=0){this.stopOrderPolling();const t=async()=>{try{const{data:s}=await I.refresh(this.id);if(this.order=s,s?.state===_.PAID||s?.state===_.FAILED||s?.state===_.EXPIRED){this.paying=!1,this.stopOrderPolling();return}}catch{}this.paying&&(this._orderRefreshTimer=window.setTimeout(t,Dt))};this._orderRefreshTimer=window.setTimeout(t,e)},stopOrderPolling(){const e=this._orderRefreshTimer;e&&(clearTimeout(e),this._orderRefreshTimer=void 0)},onFetchData(){this.loading=!0,I.refresh(this.id).then(({data:e})=>{this.order=e,e.pay_way&&(this.payWay=e.pay_way),this.loading=!1}).catch(()=>{this.loading=!1})},onRepay(){this.payWay==="X402"&&(this.x402Session=void 0),this.paying=!0,this.startOrderPolling()},onPay(){this.prepaying=!0,this.payWay==="X402"&&(this.x402Session=void 0),I.pay(this.id,{pay_way:this.payWay}).then(({data:e})=>{if(this.prepaying=!1,e?.id&&(this.order=e),this.payWay==="X402"&&e){const t=e;t.accepts&&(this.x402Session=t)}(this.order&&this.order.price&&this.order.price>0||this.payWay==="X402")&&(this.paying=!0,this.startOrderPolling(K))}).catch(e=>{this.prepaying=!1;const t=e?.response?.data;if(this.payWay==="X402"&&t){this.x402Session=t,this.paying=!0,this.startOrderPolling(K);return}})}}}),qt={class:"title"},Ot={key:0,class:"pt-5"},Mt={key:1,class:"order"},Xt={key:0},Ut={key:1},Ft={key:2},Ht={key:3},xt={key:4},jt={key:0,class:"price-block"},zt={class:"price-line"},Kt={key:0,class:"price original"},Gt={class:"price current unfree"},Jt={key:1,class:"price free"},Qt={key:0,class:"payways mb-6"},Yt={class:"payname"},Zt={class:"payname"},es={class:"payname"},ts={class:"payname"},ss={class:"payname"},as={key:1},is={key:2};function rs(e,t,s,i,o,n){const r=w("el-col"),c=w("el-row"),k=w("el-skeleton"),W=w("copy-to-clipboard"),g=w("el-descriptions-item"),b=w("el-tag"),P=w("el-descriptions"),C=w("el-divider"),p=w("el-alert"),A=w("el-button"),E=w("el-card"),B=w("wechat-pay-order"),V=w("stripe-pay-order"),X=w("alipay-pay-order"),U=w("paypal-pay-order"),S=w("x402-pay-order");return a(),v(c,{class:"panel"},{default:u(()=>[h(r,{span:24},{default:u(()=>[h(c,null,{default:u(()=>[h(r,{span:24},{default:u(()=>[d("h2",qt,l(e.$t("order.title.info")),1)]),_:1})]),_:1}),h(c,null,{default:u(()=>[h(r,{span:24},{default:u(()=>[h(E,{shadow:"hover"},{default:u(()=>[h(c,null,{default:u(()=>[h(r,{span:16,offset:4},{default:u(()=>[e.loading?(a(),m("div",Ot,[h(k,{animated:""})])):(a(),m("div",Mt,[h(P,{column:1},{default:u(()=>[h(g,{label:e.$t("order.field.id")},{default:u(()=>[d("span",null,l(e.order?.id),1),e.order?.id?(a(),v(W,{key:0,content:e.order?.id,class:"inline-block"},null,8,["content"])):f("",!0)]),_:1},8,["label"]),h(g,{label:e.$t("order.field.description")},{default:u(()=>[$(l(e.order?.description),1)]),_:1},8,["label"]),e.order?.application?.service?(a(),v(g,{key:0,label:e.$t("order.field.api")},{default:u(()=>[$(l(e.order?.application?.service?.title),1)]),_:1},8,["label"])):f("",!0),e.order?.pay_way?(a(),v(g,{key:1,label:e.$t("order.field.payWay")},{default:u(()=>[e.order?.pay_way===e.PayWay.WechatPay?(a(),m("span",Xt,l(e.$t("order.title.wechatPay")),1)):e.order?.pay_way===e.PayWay.Stripe?(a(),m("span",Ut,l(e.$t("order.title.stripe")),1)):e.order?.pay_way===e.PayWay.AliPay?(a(),m("span",Ft,l(e.$t("order.title.aliPay")),1)):e.order?.pay_way===e.PayWay.X402?(a(),m("span",Ht,l(e.$t("order.title.x402")),1)):e.order?.pay_way===e.PayWay.PayPal?(a(),m("span",xt,l(e.$t("order.title.paypal")),1)):f("",!0)]),_:1},8,["label"])):f("",!0),h(g,{label:e.$t("order.field.createdAt")},{default:u(()=>[$(l(e.$dayjs.format(e.order?.created_at)),1)]),_:1},8,["label"]),h(g,{label:e.$t("order.field.price")},{default:u(()=>[e.shouldShowPriceBlock?(a(),m("div",jt,[d("div",zt,[e.showOriginalPrice?(a(),m("span",Kt,l(e.getPriceString({value:e.finalOriginalPrice})),1)):f("",!0),d("span",Gt,l(e.getPriceString({value:e.finalDiscountedPrice})),1),(a(!0),m(L,null,q(e.discountBadges,y=>(a(),v(b,{key:y.key,class:"discount-tag",effect:"light",size:"small",type:y.type},{default:u(()=>[$(l(y.text),1)]),_:2},1032,["type"]))),128))]),(a(!0),m(L,null,q(e.discountHints,(y,N)=>(a(),m("p",{key:N,class:"discount-hint"},l(y),1))),128))])):(a(),m("span",Jt,l(e.$t("order.message.free")),1))]),_:1},8,["label"])]),_:1})]))]),_:1})]),_:1}),e.order?.state===e.OrderState.PAID||e.order?.state===e.OrderState.FINISHED?(a(),v(c,{key:0,class:"mb-5"},{default:u(()=>[h(r,{span:16,offset:4},{default:u(()=>[h(C,{"border-style":"dashed"}),h(p,{title:e.$t("order.message.paidSuccessfully"),type:"success","show-icon":"",closable:!1},null,8,["title"])]),_:1})]),_:1})):f("",!0),e.order?.state===e.OrderState.EXPIRED?(a(),v(c,{key:1,class:"mb-5"},{default:u(()=>[h(r,{span:16,offset:4},{default:u(()=>[h(C,{"border-style":"dashed"}),h(p,{title:e.$t("order.message.orderExpired"),type:"error","show-icon":"",closable:!1},null,8,["title"])]),_:1})]),_:1})):f("",!0),e.order?.state===e.OrderState.FAILED?(a(),v(c,{key:2,class:"mb-5"},{default:u(()=>[h(r,{span:16,offset:4},{default:u(()=>[h(C,{"border-style":"dashed"}),h(p,{title:e.$t("order.state.failed"),description:e.orderFailedReason,type:"error","show-icon":"",closable:!1},null,8,["title","description"])]),_:1})]),_:1})):f("",!0),e.order?.state===e.OrderState.PENDING?(a(),v(c,{key:3},{default:u(()=>[h(r,{span:16,offset:4},{default:u(()=>[h(C,{"border-style":"dashed"}),e.showPayWays&&e.order.price&&e.order.price>0&&!e.order.pay_way?(a(),m("div",Qt,[d("div",{class:F({payway:!0,wechatpay:!0,active:e.payWay===e.PayWay.WechatPay}),onClick:t[0]||(t[0]=y=>e.payWay=e.PayWay.WechatPay)},[t[15]||(t[15]=d("span",{class:"payicon wechatpay"},null,-1)),d("span",Yt,l(e.$t("order.title.wechatPay")),1)],2),d("div",{class:F({payway:!0,alipay:!0,active:e.payWay===e.PayWay.AliPay}),onClick:t[1]||(t[1]=y=>e.payWay=e.PayWay.AliPay)},[t[16]||(t[16]=d("span",{class:"payicon alipay"},null,-1)),d("span",Zt,l(e.$t("order.title.aliPay")),1)],2),d("div",{class:F({payway:!0,stripe:!0,active:e.payWay===e.PayWay.Stripe}),onClick:t[2]||(t[2]=y=>e.payWay=e.PayWay.Stripe)},[t[17]||(t[17]=d("span",{class:"payicon stripe"},null,-1)),d("span",es,l(e.$t("order.title.stripe")),1)],2),d("div",{class:F({payway:!0,x402:!0,relative:!0,active:e.payWay===e.PayWay.X402}),onClick:t[3]||(t[3]=y=>e.payWay=e.PayWay.X402)},[t[18]||(t[18]=d("span",{class:"payicon x402"},null,-1)),d("span",ts,l(e.$t("order.title.x402")),1),e.x402DiscountRate>0?(a(),v(b,{key:0,class:"absolute -top-2 right-0",effect:"light",size:"small",type:"success"},{default:u(()=>[$(l(e.$t("order.message.x402DiscountTag",{percent:e.x402BadgePercent})),1)]),_:1})):f("",!0)],2),e.enablePaypal?(a(),m("div",{key:0,class:F({payway:!0,paypal:!0,active:e.payWay===e.PayWay.PayPal}),onClick:t[4]||(t[4]=y=>e.payWay=e.PayWay.PayPal)},[t[19]||(t[19]=d("span",{class:"payicon paypal"},null,-1)),d("span",ss,l(e.$t("order.title.paypal")),1)],2)):f("",!0)])):f("",!0),e.order?.pay_way?(a(),m("div",is,[h(A,{type:"primary",round:"",size:"large",class:"btn-repay",onClick:e.onRepay},{default:u(()=>[$(l(e.$t("common.button.repay")),1)]),_:1},8,["onClick"])])):(a(),m("div",as,[h(A,{loading:e.prepaying,round:"",type:"primary",size:"large",class:"btn-pay",onClick:e.onPay},{default:u(()=>[$(l(e.$t("common.button.pay")),1)]),_:1},8,["loading","onClick"])]))]),_:1})]),_:1})):f("",!0)]),_:1})]),_:1})]),_:1}),h(c,null,{default:u(()=>[h(r,{span:24},{default:u(()=>[e.order&&e.payWay===e.PayWay.WechatPay?(a(),v(B,{key:0,modelValue:e.order,"onUpdate:modelValue":t[5]||(t[5]=y=>e.order=y),visible:e.paying,onHide:t[6]||(t[6]=y=>e.paying=!1)},null,8,["modelValue","visible"])):f("",!0),e.order&&e.payWay===e.PayWay.Stripe?(a(),v(V,{key:1,modelValue:e.order,"onUpdate:modelValue":t[7]||(t[7]=y=>e.order=y),visible:e.paying,onHide:t[8]||(t[8]=y=>e.paying=!1)},null,8,["modelValue","visible"])):f("",!0),e.order&&e.payWay===e.PayWay.AliPay?(a(),v(X,{key:2,modelValue:e.order,"onUpdate:modelValue":t[9]||(t[9]=y=>e.order=y),visible:e.paying,onHide:t[10]||(t[10]=y=>e.paying=!1)},null,8,["modelValue","visible"])):f("",!0),e.order&&e.payWay===e.PayWay.PayPal?(a(),v(U,{key:3,modelValue:e.order,"onUpdate:modelValue":t[11]||(t[11]=y=>e.order=y),visible:e.paying,onHide:t[12]||(t[12]=y=>e.paying=!1)},null,8,["modelValue","visible"])):f("",!0),e.order&&e.payWay===e.PayWay.X402?(a(),v(S,{key:4,modelValue:e.order,"onUpdate:modelValue":t[13]||(t[13]=y=>e.order=y),session:e.x402Session,visible:e.paying,onHide:t[14]||(t[14]=y=>e.paying=!1)},null,8,["modelValue","session","visible"])):f("",!0)]),_:1})]),_:1})]),_:1})]),_:1})}const gs=O(Bt,[["render",rs],["__scopeId","data-v-7d8f4467"]]);export{gs as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as y,z as V,d as b,N as B,B as k,O as N,p as C,c as T}from"./vendor-element-plus-CQnKmb2Y.js";import{d as v,C as _,T as n,G as s,K as o,ai as i,Q as r,R as a,S as h,D as m,J as $,ag as L,af as A}from"./vendor-vue-qgt_zvDa.js";import{a as E,q as K}from"./index-Cu3Or7ae.js";import{F as M}from"./index.es-D1JQh6lW.js";const O=v({name:"EditText",components:{ElDialog:k,ElInput:B,ElButton:b,ElIcon:V,Edit:y},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue}},methods:{onCancel(){this.editing=!1},onConfirm(){this.$emit("confirm",this.value),this.editing=!1}}}),z={class:"edit-body"},D={class:"dialog-footer"};function F(e,t,S,I,w,q){const c=i("el-input"),d=i("el-button"),p=i("el-dialog"),f=i("edit"),g=i("el-icon");return m(),_(h,null,[n(p,{modelValue:e.editing,"onUpdate:modelValue":t[1]||(t[1]=u=>e.editing=u),title:e.title,width:"400px",class:"edit-dialog"},{footer:o(()=>[s("span",D,[n(d,{round:"",onClick:e.onCancel},{default:o(()=>[r(a(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),n(d,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[r(a(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",z,[n(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u),placeholder:e.placeholder},null,8,["modelValue","placeholder"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:t[2]||(t[2]=u=>e.editing=!0)},[n(g,{class:"icon"},{default:o(()=>[n(f)]),_:1})])],64)}const ie=E(O,[["render",F]]),J=v({name:"EditImage",components:{ElDialog:k,ElButton:b,FontAwesomeIcon:M,ElIcon:V,Edit:y,ElUpload:N},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},tip:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue,fileList:[],uploadUrl:K()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)}},methods:{onCancel(){this.editing=!1},onConfirm(){this.$emit("confirm",this.urls?.[0]),this.editing=!1},onExceed(){C.warning(this.$t("site.message.uploadImageExceed"))},onError(){C.error(this.$t("site.message.uploadImageError"))}}}),G={class:"edit-body"},P={class:"el-upload__tip"},Q={class:"dialog-footer"};function R(e,t,S,I,w,q){const c=i("font-awesome-icon"),d=i("el-button"),p=i("el-upload"),f=i("el-dialog"),g=i("edit"),u=i("el-icon");return m(),_(h,null,[n(f,{modelValue:e.editing,"onUpdate:modelValue":t[1]||(t[1]=l=>e.editing=l),title:e.title,width:"400px",class:"edit-dialog"},{footer:o(()=>[s("span",Q,[n(d,{round:"",onClick:e.onCancel},{default:o(()=>[r(a(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),n(d,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[r(a(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",G,[n(p,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=l=>e.fileList=l),name:"file",limit:5,multiple:!0,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{tip:o(()=>[s("div",P,a(e.tip),1)]),default:o(()=>[n(d,{round:"",type:"primary",class:"btn btn-upload"},{default:o(()=>[n(c,{icon:"fa-solid fa-upload",class:"icon mr-2"}),r(" "+a(e.$t("site.button.upload")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","headers"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:t[2]||(t[2]=l=>e.editing=!0)},[n(u,{class:"icon"},{default:o(()=>[n(g)]),_:1})])],64)}const le=E(J,[["render",R]]),j=v({name:"EditText",components:{ElDialog:k,ElInput:B,ElButton:b,ElIcon:V,ElTag:T,Edit:y},props:{modelValue:{type:Array,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0},tip:{type:String,default:void 0},min:{type:Number,default:void 0},minErrorMessage:{type:String,default:void 0}},emits:["confirm","cancel"],data(){return{inputVisible:!1,inputValue:"",editing:!1,value:JSON.parse(JSON.stringify(this.modelValue))}},methods:{onCancel(){this.editing=!1},onConfirm(){if(this.min!==void 0&&this.value.length<this.min){C.error(this.minErrorMessage);return}this.$emit("confirm",this.value),this.editing=!1},onClose(e){this.value.splice(this.value.indexOf(e),1)},onInputConfirm(){const e=this.inputValue;e&&this.value.push(e),this.inputVisible=!1,this.inputValue=""},onNewItem(){this.inputVisible=!0,this.$nextTick(()=>{this.$refs.input.focus()})}}}),H={class:"edit-body"},W={class:"tags"},X={class:"block tip"},Y={class:"dialog-footer"};function Z(e,t,S,I,w,q){const c=i("el-tag"),d=i("el-input"),p=i("el-button"),f=i("el-dialog"),g=i("edit"),u=i("el-icon");return m(),_(h,null,[n(f,{modelValue:e.editing,"onUpdate:modelValue":t[1]||(t[1]=l=>e.editing=l),title:e.title,width:"400px",class:"edit-dialog"},{footer:o(()=>[s("span",Y,[n(p,{round:"",onClick:e.onCancel},{default:o(()=>[r(a(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),n(p,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[r(a(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",H,[s("div",W,[(m(!0),_(h,null,L(e.value,(l,U)=>(m(),$(c,{key:U,closable:"",round:"",class:"mr-2 mb-2","disable-transitions":!1,onClose:x=>e.onClose(l)},{default:o(()=>[r(a(l),1)]),_:2},1032,["onClose"]))),128))]),e.inputVisible?(m(),$(d,{key:0,ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:"block",onKeyup:A(e.onInputConfirm,["enter"]),onBlur:e.onInputConfirm},null,8,["modelValue","onKeyup","onBlur"])):(m(),$(p,{key:1,round:"",class:"block",size:"small",onClick:e.onNewItem},{default:o(()=>t[3]||(t[3]=[r(" + ",-1)])),_:1,__:[3]},8,["onClick"])),s("span",X,a(e.tip),1)])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:t[2]||(t[2]=l=>e.editing=!0)},[n(u,{class:"icon"},{default:o(()=>[n(g)]),_:1})])],64)}const se=E(j,[["render",Z]]);export{se as E,le as a,ie as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as D}from"./api-Ch0ZHArw.js";import{a as y,g as q,H as T,d as L}from"./index-Cu3Or7ae.js";import{g as E}from"./price-BGD238oZ.js";import{d as S,C as s,R as t,D as a,S as v,ag as _,O as l,Q as g,J as d,K as i,T as o,ai as n,G as $,L as A,M as N,U as F}from"./vendor-vue-qgt_zvDa.js";import{o as z}from"./order-CAZjSL7R.js";import{v as G,u as j,q as W,d as H,r as J,s as K,b as Q,g as X,h as Y,k as Z,p as x}from"./vendor-element-plus-CQnKmb2Y.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-CzbnksQQ.js";import"./vendor-vue-router-u1O--QAh.js";const ee=S({name:"ApiPrice",props:{price:{type:Number,required:!1,default:0},unit:{type:String,required:!1,default:void 0},start:{type:Boolean,required:!1,default:!1}},methods:{getPriceString:E}}),ae={class:"price-text"},te={key:0,class:"unfree"},ie={key:1,class:"free"};function se(e,p,k,C,I,O){return a(),s("div",ae,[e.price>0?(a(),s("span",te,t(e.getPriceString({value:e.price}))+" "+t(e.unit?` / ${e.unit}`:"")+t(e.start?e.$t("common.message.startPrice"):""),1)):(a(),s("span",ie,t(e.$t("common.message.free")),1))])}const oe=y(ee,[["render",se],["__scopeId","data-v-bb068181"]]),re=S({name:"ServiceEstimation",components:{},props:{service:{type:Object,required:!0},package:{type:Object,required:!0}},methods:{getPriceString:E}}),ne={class:"estimation"},le={key:0,class:"item"},pe={key:0},ce={key:1},ue={key:2},de={key:0},me={key:1};function he(e,p,k,C,I,O){return a(),s("div",ne,[(a(!0),s(v,null,_(e.service?.apis,(m,h)=>(a(),s("div",{key:h},[(a(!0),s(v,null,_(m?.estimation,(c,f)=>(a(),s("div",{key:f,class:"items"},[e.package?.amount&&c?.cost?(a(),s("p",le,[g(" ≈ "+t(c.name)+" "+t(Math.round(e.package.amount/c.cost))+" "+t(e.$t("api.unit.count"))+" ",1),e.package.price>0?(a(),s("span",pe," - "+t(e.getPriceString({value:e.package.price/(e.package.amount/c.cost),fractionDigits:3})+" / "+e.$t("api.unit.count")),1)):l("",!0),c.remark?(a(),s("span",ce," ("+t(c.remark)+") ",1)):l("",!0),(c?.comparisons?.length??0)>0?(a(),s("span",ue," - ")):l("",!0),(a(!0),s(v,null,_(c?.comparisons,(r,b)=>(a(),s("span",{key:b,class:"comparison"},[r?.value<0?(a(),s("i",de,t(e.$t("api.message.cheaperThan").replace("$[[value]]",r?.target?.toString()))+" "+t(Math.abs(r?.value)*100)+"% ",1)):l("",!0),r?.value>0?(a(),s("i",me,t(e.$t("api.message.moreExpensiveThan").replace("$[[value]]",r?.target?.toString()))+" "+t(Math.abs(r?.value)*100)+"% ",1)):l("",!0)]))),128))])):l("",!0)]))),128))]))),128))])}const ge=y(re,[["render",he],["__scopeId","data-v-768cf35f"]]),fe=S({name:"ConsoleApplicationBuy",components:{ElSkeleton:Z,ElRow:Y,ElCol:X,ElCard:Q,ElForm:K,ElFormItem:J,ElButton:H,ElDivider:W,ElRadioGroup:j,ElRadioButton:G,Price:oe,ServiceEstimation:ge},data(){return{lang:this.$i18n.locale,application:void 0,loading:!1,type:D.USAGE,form:{packageId:void 0,amount:void 0},creating:!1}},computed:{applicationId(){return this.$route.params?.id?.toString()},id(){return this.$route.params?.id?.toString()},price(){return this.application?.service?.price&&this.form.amount?this.form.amount*this.application.service?.price:0},packages(){return this.application?.packages?.filter(e=>e.type===D.USAGE).sort((e,p)=>e.amount-p.amount)||[]},package(){if(this.packages&&this.form.packageId){const e=this.packages.filter(p=>p.id===this.form.packageId);if(e.length>0)return e[0]}}},mounted(){this.onFetchApplication()},methods:{getDiscount(e){return this.packages&&this.packages.length>0?this.lang?.startsWith("zh")?(10*e?.price/e?.amount/(this.packages[0].price/this.packages[0]?.amount)).toFixed(1)+"折":Math.round(100-100*e?.price/e?.amount/(this.packages[0].price/this.packages[0]?.amount))+"% OFF":""},onSubscribe(){this.$router.push({name:T,params:this.$route.params})},getPriceString:E,onFetchApplication(){this.loading=!0,L.get(this.id).then(({data:e})=>{this.application=e,this.loading=!1,this.form.packageId=this.packages?.[0]?.id}).catch(()=>{this.loading=!1})},onChangeType(){this.$router.push({name:T,params:this.$route.params})},onCreateOrder(){if(!this.application?.id)return;this.creating=!0;const e=this.$t(`service.unit.${this.application?.service?.unit}s`);z.create({application_id:this.application?.id,amount:this.package?.amount,...this.form.packageId!=="custom"&&this.package?{package_id:this.package.id}:{},description:this.application?.service?`${this.application?.service?.title} x ${this.package?.amount} ${e}`:this.$t("application.title.globalBuy")+" - "+this.package?.amount+" "+this.$t("service.unit.credits")}).then(({data:p})=>{this.creating=!1;const k=p;this.$router.push({name:q,params:{id:k.id}})}).catch(()=>{x.error(this.$t("order.message.createFailed")),this.creating=!1})}}}),ke={class:"title"},$e={key:0},ve={class:"text-[var(--el-text-color-secondary)] text-[12px] mb-3"},_e={key:0,class:"ml-2"},be={key:1,class:N({price:!0,free:!0})};function ye(e,p,k,C,I,O){const m=n("el-col"),h=n("el-row"),c=n("el-skeleton"),f=n("el-divider"),r=n("el-form-item"),b=n("el-radio-button"),R=n("el-radio-group"),w=n("service-estimation"),M=n("price"),B=n("el-button"),U=n("el-form"),V=n("el-card");return a(),d(h,{class:"panel"},{default:i(()=>[o(m,{span:24},{default:i(()=>[o(h,null,{default:i(()=>[o(m,{span:24},{default:i(()=>[$("h2",ke,t(e.$t("common.title.buyMore")),1)]),_:1})]),_:1}),o(h,null,{default:i(()=>[o(m,{span:24},{default:i(()=>[o(V,{shadow:"hover",class:"min-h-[500px]"},{default:i(()=>[o(h,null,{default:i(()=>[o(m,{span:16,offset:4},{default:i(()=>[e.loading?(a(),d(c,{key:0})):e.application?(a(),d(U,{key:1,"label-width":"100px"},{default:i(()=>[e.application?.service?l("",!0):(a(),s("div",$e,[$("p",ve,t(e.$t("application.message.globalBalanceBuyDescription")),1),o(f,{"border-style":"dashed"})])),e.application?.service?(a(),d(r,{key:1,label:e.$t("application.field.service")},{default:i(()=>[g(t(e.application?.service?.title),1)]),_:1},8,["label"])):(a(),d(r,{key:2,label:e.$t("application.field.scope")},{default:i(()=>[g(t(e.$t("application.title.globalBuy")),1)]),_:1},8,["label"])),o(r,{label:e.$t("application.field.package"),class:"mb-0"},{default:i(()=>[e.packages?(a(),d(R,{key:0,modelValue:e.form.packageId,"onUpdate:modelValue":p[0]||(p[0]=u=>e.form.packageId=u)},{default:i(()=>[(a(!0),s(v,null,_(e.packages,(u,P)=>(a(),d(b,{key:P,label:u.id,class:"mb-2"},{default:i(()=>[A($("span",{class:"corner"},t(e.getDiscount(u)),513),[[F,P!==0]]),g(" "+t(u.amount)+" "+t(e.$t(`service.unit.${e.application?.service?.unit||"credit"}s`)),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])):l("",!0)]),_:1},8,["label"]),e.application?.service?.apis&&e.application?.service?.apis?.map(u=>u?.estimation).filter(u=>!!u)?.length>0?(a(),d(r,{key:3},{default:i(()=>[e.application?.service?(a(),d(w,{key:0,service:e.application.service,package:e.package},null,8,["service","package"])):l("",!0)]),_:1})):l("",!0),o(r,{label:e.$t("service.field.price")},{default:i(()=>[o(M,{price:e.package?.price},null,8,["price"]),e.package?(a(),s("span",_e,"("+t(e.getPriceString({value:e.package?.price/e.package?.amount})+" / "+e.$t(`service.unit.${e.application?.service?.unit||"credits"}`))+") ",1)):l("",!0)]),_:1},8,["label"]),o(f,{"border-style":"dashed"}),o(r,{label:e.$t("application.field.shouldPayPrice")},{default:i(()=>[e.package?(a(),s("span",{key:0,class:N({price:!0,unfree:e.package?.price>0,free:e.package?.price===0})},t(e.getPriceString({value:e.package?.price})),3)):(a(),s("span",be," $ 0 "))]),_:1},8,["label"]),o(r,null,{default:i(()=>[o(B,{type:"primary",size:"large",class:"btn-create",loading:e.creating,round:"",onClick:e.onCreateOrder},{default:i(()=>[g(t(e.$t("application.button.createOrder")),1)]),_:1},8,["loading","onClick"])]),_:1}),o(f,{"border-style":"dashed"}),A(o(r,{label:""},{default:i(()=>[$("span",null,t(e.$t("console.message.doNotWantExtra")),1),o(B,{type:"primary",class:"btn btn-subscribe",round:"",size:"small",onClick:e.onSubscribe},{default:i(()=>[g(t(e.$t("console.message.subscribe")),1)]),_:1},8,["onClick"])]),_:1},512),[[F,!1]])]),_:1})):l("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const Ae=y(fe,[["render",ye],["__scopeId","data-v-fcfd9ab5"]]);export{Ae as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as c}from"./index.es-D1JQh6lW.js";import{b as p,a as m}from"./index-Cu3Or7ae.js";import{i as f}from"./vendor-element-plus-CQnKmb2Y.js";import{d,C as a,G as t,O as x,T as o,L as u,ai as n,U as g,R as h,D as i}from"./vendor-vue-qgt_zvDa.js";const _=d({name:"FilePreview",components:{FontAwesomeIcon:c,ElProgress:f},props:{name:{type:String,required:!0},percentage:{type:Number,required:!1,default:void 0},closable:{type:Boolean,required:!1,default:!0}},emits:["remove"],methods:{isImageUrl:p}}),v={class:"file cursor-pointer relative rounded-[10px] h-[50px] w-[250px] flex flex-row items-center justify-start bg-[var(--el-bg-color)]"},w={class:"left h-[50px] w-[50px] flex items-center justify-center"},y={class:"wrapper relative w-[35px] h-[35px] flex items-center justify-center rounded-[10px] text-white bg-[#10a37f] m-auto"},b={class:"right flex-1 h-[50px] flex items-center justify-start pl-[2px] text-[14px] text-[var(--el-text-color-primary)] truncate"},k={class:"text-xs font-bold truncate"},$={key:0,class:"close absolute cursor-pointer top-[5px] right-[5px] bg-[rgba(0,0,0,0.7)] text-white w-[15px] rounded-full h-[15px] flex text-[10px] text-center items-center justify-center"};function j(e,s,C,F,B,N){const r=n("font-awesome-icon"),l=n("el-progress");return i(),a("div",v,[t("div",w,[t("div",y,[o(r,{icon:"fa-regular fa-file-alt"}),u(o(l,{type:"circle","stroke-width":3,percentage:e.percentage,width:25,class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[25px] h-[25px] z-[10] m-auto"},null,8,["percentage"]),[[g,e.percentage&&e.percentage<100]])])]),t("div",b,[t("span",k,h(e.name),1)]),e.closable?(i(),a("div",$,[o(r,{icon:"fa-solid fa-xmark",class:"icon icon-close",onClick:s[0]||(s[0]=q=>e.$emit("remove"))})])):x("",!0)])}const E=m(_,[["render",j]]);export{E as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as g}from"./Pagination-BxJhHf8c.js";import{C as b}from"./CopyToClipboard-Dmoz9wQr.js";import{b as w}from"./distribution-5yio5cX-.js";import{a as y}from"./index-Cu3Or7ae.js";import{g as $}from"./price-BGD238oZ.js";import{b as C,e as v,f as D,g as H,h as P}from"./vendor-element-plus-CQnKmb2Y.js";import{d as S,J as p,K as o,T as e,ai as s,G as a,R as n,L as E,aq as F,D as u}from"./vendor-vue-qgt_zvDa.js";import"./index.es-D1JQh6lW.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-CzbnksQQ.js";import"./vendor-vue-router-u1O--QAh.js";const k=S({name:"ConsoleDistributionList",components:{Pagination:g,CopyToClipboard:b,ElRow:P,ElCol:H,ElTable:D,ElTableColumn:v,ElCard:C},data(){return{distributionHistories:[],distributionStatus:void 0,loading:!1,total:void 0,limit:10}},computed:{redirect(){return this.$route.query.redirect},page(){return parseInt(this.$route.query.page?.toString()||"1")}},watch:{page:{handler(){this.onFetchData()}}},mounted(){this.onFetchData()},methods:{getPriceString:$,onPageChange(t){this.$router.push({name:this.$route.name?.toString(),query:{page:t}})},onFetchData(){this.loading=!0,Promise.all([this.onFetchDistributionHistory()]).finally(()=>{this.loading=!1})},async onFetchDistributionHistory(){const{data:t}=await w.getAll({user_id:this.$store.getters.user.id,ordering:"-created_at",limit:this.limit,offset:(this.page-1)*this.limit});this.distributionHistories=t.items,this.total=t.count}}}),q={class:"title"},T={class:"key"},B={class:"copy"},I={class:"key"},z={class:"copy"},A={class:"price"},L={class:"description"},N={class:"description"},R={class:"created-at"},V={class:"pagination m-v-lg"};function j(t,G,J,K,O,M){const l=s("el-col"),d=s("el-row"),c=s("copy-to-clipboard"),r=s("el-table-column"),_=s("el-table"),h=s("el-card"),m=s("pagination"),f=F("loading");return u(),p(d,{class:"panel"},{default:o(()=>[e(l,{span:24},{default:o(()=>[e(d,null,{default:o(()=>[e(l,{span:24},{default:o(()=>[a("h2",q,n(t.$t("common.title.distributionHistory")),1)]),_:1})]),_:1}),e(d,null,{default:o(()=>[e(l,{span:24},{default:o(()=>[e(h,{shadow:"hover"},{default:o(()=>[E((u(),p(_,{data:t.distributionHistories,stripe:""},{default:o(()=>[e(r,{prop:"id",label:t.$t("distribution.field.id"),"class-name":"text-center",width:"350px"},{default:o(i=>[a("span",T,n(i.row.id),1),a("span",B,[e(c,{content:i.row.id},null,8,["content"])])]),_:1},8,["label"]),e(r,{prop:"id",label:t.$t("distribution.field.userId"),"class-name":"text-center",width:"350px"},{default:o(i=>[a("span",I,n(i.row.user_id),1),a("span",z,[e(c,{content:i.row.user_id},null,8,["content"])])]),_:1},8,["label"]),e(r,{label:t.$t("distribution.field.price"),width:"100px"},{default:o(i=>[a("span",A,n(t.getPriceString({value:i.row?.price})),1)]),_:1},8,["label"]),e(r,{label:t.$t("distribution.field.reward"),width:"100px"},{default:o(i=>[a("span",L,n(t.getPriceString({value:i.row?.reward})),1)]),_:1},8,["label"]),e(r,{label:t.$t("distribution.field.percentage"),width:"120px"},{default:o(i=>[a("span",N,n(i.row.percentage)+"%",1)]),_:1},8,["label"]),e(r,{label:t.$t("distribution.field.createdAt"),width:"200px"},{default:o(i=>[a("span",R,n(t.$dayjs.format(i.row.created_at)),1)]),_:1},8,["label"])]),_:1},8,["data"])),[[f,t.loading]])]),_:1})]),_:1})]),_:1}),e(d,null,{default:o(()=>[e(l,{span:10,offset:14},{default:o(()=>[a("div",V,[e(m,{"current-page":t.page,"page-size":t.limit,total:t.total,onChange:t.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}const at=y(k,[["render",j],["__scopeId","data-v-74b9e778"]]);export{at as default};
|