@acedatacloud/nexior 3.56.0 → 3.58.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-CUmuhva-.js → Auth-DYGNDqCW.js} +1 -1
- package/dist/assets/{BotPlaceholder-B3xBRBIX.js → BotPlaceholder-ChCb8Vv8.js} +1 -1
- package/dist/assets/{Callback-B-HBjyMd.js → Callback-D6hA0ji-.js} +1 -1
- package/dist/assets/{Console-DaWsC96c.js → Console-CD1F8NGN.js} +1 -1
- package/dist/assets/{Consumption-CfCcfEyH.js → Consumption-DfeDOZae.js} +1 -1
- package/dist/assets/{Conversation-VpkkP_nP.js → Conversation-B4PNsemL.js} +4 -2
- package/dist/assets/{Conversation-DSsVmB1s.css → Conversation-BaVx4PUG.css} +1 -1
- package/dist/assets/{CopyToClipboard-BTGggnS9.js → CopyToClipboard-BM_lDXUt.js} +1 -1
- package/dist/assets/{Detail-1LBJjk82.js → Detail-aNp4-Sp1.js} +2 -2
- package/dist/assets/{EditArray-DaPdJhrc.js → EditArray-CBdYV5V0.js} +1 -1
- package/dist/assets/{Extra-BPwLP50B.js → Extra-CmpCn6PS.js} +1 -1
- package/dist/assets/{FilePreview-CPSAz85f.js → FilePreview-D29J-g_1.js} +1 -1
- package/dist/assets/{History-CZeTQFMy.js → History-CW8HZxm2.js} +1 -1
- package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-fHV8gG0U.js → IconPark.vue_vue_type_script_setup_true_lang-7d4twQSG.js} +1 -1
- package/dist/assets/{ImagePreview-DbR8zgDt.js → ImagePreview-DfqytLVt.js} +1 -1
- package/dist/assets/{ImageWrapper-Bqt_U1fF.js → ImageWrapper-BvdzaQyW.js} +1 -1
- package/dist/assets/{Index-BE8EVaxo.js → Index-03DGesjV.js} +1 -1
- package/dist/assets/{Index-BbHM4Lnk.js → Index-5Ew_nUjP.js} +1 -1
- package/dist/assets/{Index-ChEiHOPK.js → Index-B6B3lGgv.js} +1 -1
- package/dist/assets/{Index-D6GERR2E.js → Index-BBXhcLe3.js} +1 -1
- package/dist/assets/{Index-DXk8tCrv.js → Index-BKrksj2b.js} +1 -1
- package/dist/assets/{Index-JubxKzmE.js → Index-BL5xyEGb.js} +1 -1
- package/dist/assets/{Index-BijYnS6u.js → Index-BN68BETM.js} +1 -1
- package/dist/assets/{Index-aOdey9fw.js → Index-BeyI91Ap.js} +1 -1
- package/dist/assets/{Index-BqXzM8Ov.js → Index-BhbrHnuw.js} +1 -1
- package/dist/assets/{Index-CsOs8YnR.js → Index-Bm0mOK1G.js} +1 -1
- package/dist/assets/{Index-DBAKokGC.js → Index-BmlsKknA.js} +1 -1
- package/dist/assets/{Index-CfRKSr8v.js → Index-CFv_2F4m.js} +1 -1
- package/dist/assets/{Index-BzOJtokC.js → Index-CIDu_0km.js} +1 -1
- package/dist/assets/{Index-CtRrDooo.js → Index-Cm5jI-BT.js} +1 -1
- package/dist/assets/{Index-DhRUcE-W.js → Index-Cv8w1bl-.js} +1 -1
- package/dist/assets/{Index-BjIJyeIN.js → Index-DFsTf4U0.js} +1 -1
- package/dist/assets/{Index-DQcduR7b.js → Index-DKUupcBI.js} +1 -1
- package/dist/assets/{Index-0PvqjZxC.js → Index-DZFHVttQ.js} +1 -1
- package/dist/assets/{Index-CbJT_4xS.js → Index-DceE04r8.js} +1 -1
- package/dist/assets/{Index-Ck09MRFl.js → Index-DtH3VYmQ.js} +1 -1
- package/dist/assets/{Index-28P2t0sx.js → Index-DzBiOr6Q.js} +1 -1
- package/dist/assets/{Index-CTw7Z07y.js → Index-KBisOGIs.js} +1 -1
- package/dist/assets/{Index-t332p0jp.js → Index-QvBxzlbu.js} +1 -1
- package/dist/assets/{Index-DbJWSdZC.js → Index-qsmXsP0U.js} +1 -1
- package/dist/assets/{Invitees-Dukz9pJx.js → Invitees-DambzAZ5.js} +1 -1
- package/dist/assets/{List-ycbbafnP.js → List-CRrgHzH8.js} +1 -1
- package/dist/assets/{List-DTWm3XM_.js → List-Cb2kPVhy.js} +1 -1
- package/dist/assets/{List-CQBibrj5.js → List-Gv-kPRLv.js} +1 -1
- package/dist/assets/{Main-DN6EhLfF.js → Main-B_OQq6Hu.js} +1 -1
- package/dist/assets/{Navigator-B6Q_-QG3.js → Navigator-hKVLCxHm.js} +1 -1
- package/dist/assets/{NoTasks-CVLhC2He.js → NoTasks-BQcfOWR1.js} +1 -1
- package/dist/assets/{NotFound-BuZc6sdR.js → NotFound-D9G0sMKY.js} +1 -1
- package/dist/assets/{OAuthCallback-B_IgnUPK.js → OAuthCallback-Bft7N_6M.js} +1 -1
- package/dist/assets/{Pagination-Br45C2bV.js → Pagination-CwKQPumN.js} +1 -1
- package/dist/assets/{ScrollList-wHGmeWKv.js → ScrollList-Ct0Km1sY.js} +1 -1
- package/dist/assets/{Status-8ep40lYx.js → Status-CmGIO8J1.js} +1 -1
- package/dist/assets/{Subscribe-BaUNdrwD.js → Subscribe-jOjSvjKO.js} +1 -1
- package/dist/assets/{TransportWebHID-C7swIlWt.js → TransportWebHID-ZBNiW_Ch.js} +1 -1
- package/dist/assets/{VideoPlayer-BzkJLjxg.js → VideoPlayer-BkUkC5yH.js} +1 -1
- package/dist/assets/{_Uint8Array-CcTirTRD.js → _Uint8Array-DRbO7RkA.js} +1 -1
- package/dist/assets/{_baseClone-CR0Wy28V.js → _baseClone-DHUSso_K.js} +1 -1
- package/dist/assets/{_baseIteratee-DGdcJQRz.js → _baseIteratee-hfdFxZm7.js} +1 -1
- package/dist/assets/{_initCloneObject-M9PS39v_.js → _initCloneObject-B2aXh2fK.js} +1 -1
- package/dist/assets/{add-BFJlAjt6.js → add-DhadK362.js} +1 -1
- package/dist/assets/{all-wallets-DKAtkJ1t.js → all-wallets-Ni8qhSZL.js} +1 -1
- package/dist/assets/{app-store-DH92yd_D.js → app-store-DVcmMDzD.js} +1 -1
- package/dist/assets/{apple-BQYSfx11.js → apple-BOu8fl8n.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-ByE9fE_N.js → arrow-bottom-circle-DfpGNMRg.js} +1 -1
- package/dist/assets/{arrow-bottom-CwUY_06C.js → arrow-bottom-wRnCvG-y.js} +1 -1
- package/dist/assets/{arrow-left-B6oc9pzR.js → arrow-left-CRlumsiB.js} +1 -1
- package/dist/assets/{arrow-right-CQOldZhv.js → arrow-right-rAXL4ENL.js} +1 -1
- package/dist/assets/{arrow-top-DDcPJytq.js → arrow-top-DB51jSRj.js} +1 -1
- package/dist/assets/{avatar-3g7mWgma.js → avatar-BO8ODAAQ.js} +1 -1
- package/dist/assets/{bank-Bn37m9HF.js → bank-9ZOJ8L3s.js} +1 -1
- package/dist/assets/{basic-BHdtiwV2.js → basic-BKQ-9IWm.js} +1 -1
- package/dist/assets/{browser-BKHFkM64.js → browser-CO2zYrsc.js} +1 -1
- package/dist/assets/{card-B20_2Xd1.js → card-BONzkVYn.js} +1 -1
- package/dist/assets/{castArray-BvM87Ao2.js → castArray-boTYBhhU.js} +1 -1
- package/dist/assets/{chat-CVF9cE5b.js → chat-BnbsSb28.js} +1 -1
- package/dist/assets/{checkmark-Cm-vFnAF.js → checkmark-BVayYgzC.js} +1 -1
- package/dist/assets/{checkmark-bold-DWTV5m7i.js → checkmark-bold-BNy9Wrun.js} +1 -1
- package/dist/assets/{chevron-bottom-D8NDclUc.js → chevron-bottom-CxFddH5r.js} +1 -1
- package/dist/assets/{chevron-left-WkDf0ipc.js → chevron-left-BYh0usVR.js} +1 -1
- package/dist/assets/{chevron-right-tJbK3mZ-.js → chevron-right-oL5SSFS-.js} +1 -1
- package/dist/assets/{chevron-top-XIQVVBrK.js → chevron-top-DjwqpzIA.js} +1 -1
- package/dist/assets/{chrome-store-BqfdwQ5c.js → chrome-store-B6OHi5WC.js} +1 -1
- package/dist/assets/{clock-DAbFtCtn.js → clock-C5C_CaH6.js} +1 -1
- package/dist/assets/{close-CS2VP5UF.js → close-CvZTt_oz.js} +1 -1
- package/dist/assets/{coinPlaceholder-D-DVU4uO.js → coinPlaceholder-DZokdzDS.js} +1 -1
- package/dist/assets/{compass-Dt4YtvE1.js → compass-B3rqEe9w.js} +1 -1
- package/dist/assets/{copy-_owW4gnH.js → copy-DFZolEQK.js} +1 -1
- package/dist/assets/{cursor-BrATv_E0.js → cursor-DjniHeDZ.js} +1 -1
- package/dist/assets/{cursor-transparent-BxnKP2Rb.js → cursor-transparent-DI-y0M24.js} +1 -1
- package/dist/assets/{debounce-BiFLIUBW.js → debounce-CVEmZFNe.js} +1 -1
- package/dist/assets/{desktop-BL7jm2xz.js → desktop-C_HwU0UG.js} +1 -1
- package/dist/assets/{disconnect-DUvcBA_x.js → disconnect-DDQS_OiL.js} +1 -1
- package/dist/assets/{discord-uxISx6wa.js → discord-CQ3KrLAd.js} +1 -1
- package/dist/assets/{distribution-DJU6AQ0h.js → distribution-tRLoajUC.js} +1 -1
- package/dist/assets/{dropdown-DuMo70Ll.js → dropdown-Di-OQgFj.js} +1 -1
- package/dist/assets/{etherscan-BidmGSte.js → etherscan-CM7uLO7K.js} +1 -1
- package/dist/assets/{exclamation-triangle-CnrdYT_Y.js → exclamation-triangle-DIIgA_js.js} +1 -1
- package/dist/assets/{extension-C0-6G7OM.js → extension-DyvmlZM2.js} +1 -1
- package/dist/assets/{external-link-Z2PjDdxX.js → external-link-BhmKJ37p.js} +1 -1
- package/dist/assets/{facebook-B43YKY5F.js → facebook-DSC3nSpY.js} +1 -1
- package/dist/assets/{farcaster-D6fYB6Hn.js → farcaster-CjMNvEMi.js} +1 -1
- package/dist/assets/{filters-BTuY1l_g.js → filters-WkKrBs_-.js} +1 -1
- package/dist/assets/{flux-Dr0edF92.js → flux-BuXPvQIy.js} +1 -1
- package/dist/assets/{github-CpPHB9o3.js → github-BqamU31R.js} +1 -1
- package/dist/assets/{google-B9D4nUvF.js → google-DdqSu_Y-.js} +1 -1
- package/dist/assets/{hailuo-BhonvzKh.js → hailuo-KQG2WmuV.js} +1 -1
- package/dist/assets/{headshots-CZf2LOP5.js → headshots-XMemsZ0g.js} +1 -1
- package/dist/assets/{help-circle-eBHRxauA.js → help-circle-DhFYS3R2.js} +1 -1
- package/dist/assets/{id-ChPyLSyH.js → id-Cx8qcdPw.js} +1 -1
- package/dist/assets/{image-DzfP_lMk.js → image-Maq0XRYp.js} +1 -1
- package/dist/assets/{index-BcJBPnmE.js → index-0ofnOFaT.js} +1 -1
- package/dist/assets/{index-DPlgkJ9P.js → index-5xA8y5QF.js} +1 -1
- package/dist/assets/{index-D3pAyMbE.js → index-9szaY8p5.js} +1 -1
- package/dist/assets/{index-DUK3FN5z.js → index-B20YcFJ8.js} +1 -1
- package/dist/assets/{index-BrKir7KI.js → index-BFjkLxAL.js} +1 -1
- package/dist/assets/{index-B-R9T98Q.js → index-BI0gGf-3.js} +1 -1
- package/dist/assets/{index-BDDeyVpD.js → index-BI8dCsU_.js} +1 -1
- package/dist/assets/{index-CevM5XUw.js → index-BQfx3xgL.js} +1 -1
- package/dist/assets/{index-DtECs6Lj.js → index-Bbo9QFjr.js} +1 -1
- package/dist/assets/{index-DDB3K9lh.js → index-BrzeY6o4.js} +1 -1
- package/dist/assets/{index-B1Z8Qz5s.js → index-Btb2Kqu3.js} +1 -1
- package/dist/assets/{index-DLQ8x2Gc.js → index-BuhoT_Et.js} +1 -1
- package/dist/assets/{index-I8snmglf.js → index-BxprUbM8.js} +1 -1
- package/dist/assets/{index-Cwn-DOi1.js → index-C0OivO0I.js} +1 -1
- package/dist/assets/{index-QLLrKS1M.js → index-C6aOwQV6.js} +1 -1
- package/dist/assets/{index-Bbp_5G6z.js → index-C9xhN24M.js} +1 -1
- package/dist/assets/{index-DPL4_o6U.js → index-CB8f7OLq.js} +1 -1
- package/dist/assets/{index-B0CZz0zU.js → index-CJgc03o7.js} +1 -1
- package/dist/assets/{index-Drc2u_hn.js → index-CM4diDdr.js} +1 -1
- package/dist/assets/{index-jI4j27rA.js → index-CN2LiVMo.js} +1 -1
- package/dist/assets/{index-DT6FuWTu.js → index-CN4Fuyfy.js} +1 -1
- package/dist/assets/{index-B-ZO3NkK.js → index-CXHd491Q.js} +1 -1
- package/dist/assets/{index-CvZ7FiF6.js → index-CaUDDPQ_.js} +3 -3
- package/dist/assets/{index-5KDzLlV-.js → index-CeYRpRe_.js} +1 -1
- package/dist/assets/{index-CRkZ3aar.js → index-CfBt-7Qg.js} +1 -1
- package/dist/assets/{index-BBbxR3hw.js → index-CgATUzcB.js} +1 -1
- package/dist/assets/{index-CZwCNQFJ.js → index-ClCxNcRl.js} +1 -1
- package/dist/assets/{index-BfNDKDZq.js → index-CmozsmzZ.js} +1 -1
- package/dist/assets/{index-Ls9mmJFX.js → index-CnnRg155.js} +1 -1
- package/dist/assets/{index-CrtB4HhF.js → index-CvPaTM2w.js} +1 -1
- package/dist/assets/{index-NdB1CBqV.js → index-Cz_pUAj0.js} +1 -1
- package/dist/assets/{index-DOq9ASoc.js → index-D-dlJ-aT.js} +1 -1
- package/dist/assets/{index-I-A-jK92.js → index-D07OZdqt.js} +1 -1
- package/dist/assets/{index-CzPaowGN.js → index-D7MVODqe.js} +1 -1
- package/dist/assets/{index-B4GXVHgc.js → index-D8L9insm.js} +1 -1
- package/dist/assets/{index-BQwthxav.js → index-D9G1sBr2.js} +1 -1
- package/dist/assets/{index-CbfyUh-_.js → index-DBY6jjcR.js} +1 -1
- package/dist/assets/{index-CKPWvBML.js → index-DByFUX_w.js} +1 -1
- package/dist/assets/{index-BdFvcyuk.js → index-DCg4Dkdi.js} +3 -3
- package/dist/assets/{index-CsPKxm13.js → index-DDhlU0g3.js} +1 -1
- package/dist/assets/{index-6gVV6bhn.js → index-DDzvF3is.js} +7 -7
- package/dist/assets/{index-B4bH9BM2.js → index-DQbaTzuT.js} +1 -1
- package/dist/assets/{index-UHKxfz4M.js → index-DU3pVVDP.js} +1 -1
- package/dist/assets/{index-BGhqz3p5.js → index-DUKehVcR.js} +1 -1
- package/dist/assets/{index-BOxL5MwA.js → index-DVhJKDru.js} +1 -1
- package/dist/assets/{index-BZj10E6x.js → index-DXs08-vF.js} +1 -1
- package/dist/assets/{index-BfOTHzdW.js → index-DdFII0BA.js} +1 -1
- package/dist/assets/{index-CuT6gapZ.js → index-DdlRdmBp.js} +1 -1
- package/dist/assets/{index-CkZE7frB.js → index-Di6x4d6J.js} +1 -1
- package/dist/assets/{index-Dfjng2ZF.js → index-DmGUQNIF.js} +1 -1
- package/dist/assets/{index-C3HIhkBQ.js → index-DqmH3VWE.js} +1 -1
- package/dist/assets/{index-BPT0hxXE.js → index-DrVoTBh9.js} +1 -1
- package/dist/assets/{index-CKtntp4X.js → index-Dt1mN8jC.js} +1 -1
- package/dist/assets/{index-DDW3ngnW.js → index-DujV5uiQ.js} +1 -1
- package/dist/assets/{index-pG-yoYja.js → index-JUgdZ--r.js} +1 -1
- package/dist/assets/{index-AQ7Jzih5.js → index-KS_ASdMS.js} +1 -1
- package/dist/assets/{index-CJ7yURBo.js → index-RljJMDHd.js} +1 -1
- package/dist/assets/{index-CdcHzBg9.js → index-edWGeP0p.js} +1 -1
- package/dist/assets/{index-CVTzgH1w.js → index-g-iFajHB.js} +1 -1
- package/dist/assets/{index-Ci3yXdBP.js → index-iN2PeQEN.js} +1 -1
- package/dist/assets/{index-Bn4UDSyY.js → index-o0J_0rGw.js} +1 -1
- package/dist/assets/{index-B_LD2WlQ.js → index-zi0qhO12.js} +1 -1
- package/dist/assets/{index.browser.esm-RxmIQ9ho.js → index.browser.esm-uBaXz-Gy.js} +1 -1
- package/dist/assets/{index.es-DECK6-ja.js → index.es-DQSkYkzb.js} +1 -1
- package/dist/assets/{info-C5OPCiqd.js → info-Caab-juq.js} +1 -1
- package/dist/assets/{info-circle-CtdWenNl.js → info-circle-7CoG-nwM.js} +1 -1
- package/dist/assets/{isEqual-CsfSEdGB.js → isEqual-7DyH1zpL.js} +1 -1
- package/dist/assets/{isPlainObject-BCnSQ0mq.js → isPlainObject-CcQDDiIC.js} +1 -1
- package/dist/assets/{kling-B7K5fJ_G.js → kling-CcsG_zjz.js} +1 -1
- package/dist/assets/{lightbulb-D7H6Xghu.js → lightbulb-elhvzwVM.js} +1 -1
- package/dist/assets/{luma-v1Q6QiaW.js → luma-B9z-LqT4.js} +1 -1
- package/dist/assets/{mail-CwkRmrt4.js → mail-Bi5adMHa.js} +1 -1
- package/dist/assets/{midjourney-B_64heU5.js → midjourney-BITXq65L.js} +1 -1
- package/dist/assets/{mobile-Ds1-0JZ-.js → mobile-t8hcXVRB.js} +1 -1
- package/dist/assets/{more-DR-lX8w0.js → more-CA3r7H1s.js} +1 -1
- package/dist/assets/{nanobanana-DEL3PC2Q.js → nanobanana-DVBYAXad.js} +1 -1
- package/dist/assets/{network-placeholder-BE6LxGEW.js → network-placeholder-DPM6L2lr.js} +1 -1
- package/dist/assets/{nftPlaceholder-D4ETgpPQ.js → nftPlaceholder-CxjU0Uj9.js} +1 -1
- package/dist/assets/{off-Cw5UoOdx.js → off-ByxHjo6B.js} +1 -1
- package/dist/assets/{openaiimage-bj2WhY4J.js → openaiimage-DmZ4rtOW.js} +1 -1
- package/dist/assets/{order-C9qsi-WW.js → order-BStPpJZr.js} +1 -1
- package/dist/assets/{pika-DTo5myzs.js → pika-CrPvsxcR.js} +1 -1
- package/dist/assets/{pixverse-BNmJo0nh.js → pixverse-DbrgLmEa.js} +1 -1
- package/dist/assets/{play-store-wTQhOfH1.js → play-store-CuxFBK0A.js} +1 -1
- package/dist/assets/{plus-C0bVukmF.js → plus-BrKh6o3U.js} +1 -1
- package/dist/assets/{price-CtuwzwFT.js → price-DAh4h84D.js} +1 -1
- package/dist/assets/{producer-Cl87m-54.js → producer-DdBwxuB4.js} +1 -1
- package/dist/assets/{qr-code-5Avv5-I_.js → qr-code-DxHRxaxj.js} +1 -1
- package/dist/assets/{qrart-CrrLX5ks.js → qrart-B1CpQE1F.js} +1 -1
- package/dist/assets/{recycle-horizontal-cYgkIOis.js → recycle-horizontal-C0Kevh8S.js} +1 -1
- package/dist/assets/{refresh-DlVP4NEN.js → refresh-BP3yEHbs.js} +1 -1
- package/dist/assets/{reown-logo-EONm_yV-.js → reown-logo-C_5FtN8d.js} +1 -1
- package/dist/assets/{search-D4f4Js72.js → search-CVudJ8LY.js} +1 -1
- package/dist/assets/{secp256k1-DbxkWT5O.js → secp256k1-CNY_qDc6.js} +1 -1
- package/dist/assets/{secp256k1-ybDMrhXC.js → secp256k1-DYjP08cD.js} +1 -1
- package/dist/assets/{seedance-7j8gv6JV.js → seedance-CjCdMQc2.js} +1 -1
- package/dist/assets/{seedream-B1v1GGA-.js → seedream-Bd4cNrMU.js} +1 -1
- package/dist/assets/{send-Ben_FeF-.js → send-BPbPi2QR.js} +1 -1
- package/dist/assets/{service-9lA9flOZ.js → service-Djt3u4NK.js} +1 -1
- package/dist/assets/{solana-wallets-p_6SELny.js → solana-wallets-DS6NPicw.js} +2 -2
- package/dist/assets/{solana-wallets-vue-FaSWRyD5.js → solana-wallets-vue-WaPOrf75.js} +1 -1
- package/dist/assets/{solanaEmbed.esm-BcYvmVdp.js → solanaEmbed.esm-C-ewx9GG.js} +1 -1
- package/dist/assets/{sora-t0DCZODe.js → sora-C8htab1Z.js} +1 -1
- package/dist/assets/{string_decoder-gtEzD3w_.js → string_decoder-CseZS9ez.js} +1 -1
- package/dist/assets/{suno-7YEo55Zq.js → suno-CET3_qoZ.js} +1 -1
- package/dist/assets/{swapHorizontal-DPChpSWD.js → swapHorizontal-DxbcSfrX.js} +1 -1
- package/dist/assets/{swapHorizontalBold-CMSwGwFU.js → swapHorizontalBold-CSsCLIDQ.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-BsJtTJ8V.js → swapHorizontalMedium-BLMooGz3.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-EyrrHVlS.js → swapHorizontalRoundedBold-M454M7e2.js} +1 -1
- package/dist/assets/{swapVertical-hw3M8H0i.js → swapVertical-BDQH6x9G.js} +1 -1
- package/dist/assets/{telegram-Dp8Us-Hw.js → telegram-CRQUEqB3.js} +1 -1
- package/dist/assets/{three-dots-D52uPgwi.js → three-dots-BYPcIbkP.js} +1 -1
- package/dist/assets/{twitch-IwOscKYq.js → twitch-BFrXlxO8.js} +1 -1
- package/dist/assets/{twitterIcon-Bh_gXTWD.js → twitterIcon-DUKFvBEP.js} +1 -1
- package/dist/assets/{typescript-CCxkBkN0.js → typescript-BR9jNAAl.js} +1 -1
- package/dist/assets/{use-form-item-C1Abg6HG.js → use-form-item-uOcrry0J.js} +1 -1
- package/dist/assets/validator-DwlbfJWW.js +1 -0
- package/dist/assets/{veo-DeL79yXH.js → veo-DEXaPvpl.js} +1 -1
- package/dist/assets/{verify-A5lCPg_1.js → verify-CGC2-5v6.js} +1 -1
- package/dist/assets/{verify-filled-Ca2jBOvd.js → verify-filled-eopuvi_U.js} +1 -1
- package/dist/assets/{w3m-modal-DfDIQMv-.js → w3m-modal-D5zLQHPN.js} +1 -1
- package/dist/assets/{wallet-D0MrklrB.js → wallet-BnenGNvH.js} +1 -1
- package/dist/assets/{wallet-placeholder-DTcLjg8A.js → wallet-placeholder-B2kJ5YQW.js} +1 -1
- package/dist/assets/{walletconnect-Dh7LAt1_.js → walletconnect-B-tbPQEO.js} +1 -1
- package/dist/assets/{wan-CN3lKr0y.js → wan-qrpwEMGw.js} +1 -1
- package/dist/assets/{warning-circle-CseEm7oQ.js → warning-circle-d8wdF7hh.js} +1 -1
- package/dist/assets/{web-BAT1ctTb.js → web-CHBRhTqb.js} +1 -1
- package/dist/assets/{web-BEN2Q8f0.js → web-dX_vAzUV.js} +1 -1
- package/dist/assets/{x-Dd2zFOCD.js → x-CRJXddsS.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/validator-CYhXA_p7.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.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"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i}from"./index-
|
|
1
|
+
import{w as i}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#5865F2" />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i}from"./index-
|
|
1
|
+
import{h as i}from"./index-DCg4Dkdi.js";class e{key="distribution-histories";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const l=new e;class r{key="distribution-statuses";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}async initialize(){return await i.post(`/${this.key}/initialize/`)}}const c=new r;class a{key="distribution-levels";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const u=new a;class n{key="shorturl";async create(t){return await i.post(`/${this.key}`,{content:t})}}const y=new n;export{c as a,l as b,u as d,y as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as E,r as S,c as b}from"./index-
|
|
1
|
+
import{b as E,r as S,c as b}from"./index-DdlRdmBp.js";import{y as C,H as m,N as L,I as o,aN as e}from"./index-DCg4Dkdi.js";import{d as y,z as T,r as _,e as $,o as M,u as f,a6 as h,p as I}from"./vendor-vue-CpN3YBVJ.js";const w=y({inheritAttrs:!1});function v(n,s,a,r,i,d){return T(n.$slots,"default")}var A=C(w,[["render",v],["__file","collection.vue"]]);const B=y({name:"ElCollectionItem",inheritAttrs:!1});function K(n,s,a,r,i,d){return T(n.$slots,"default")}var P=C(B,[["render",K],["__file","collection-item.vue"]]);const x="data-el-collection-item",Y=n=>{const s=`El${n}Collection`,a=`${s}Item`,r=Symbol(s),i=Symbol(a),d={...A,name:s,setup(){const u=_(),c=new Map;I(r,{itemMap:c,getItems:()=>{const l=f(u);if(!l)return[];const t=Array.from(l.querySelectorAll(`[${x}]`));return[...c.values()].sort((O,g)=>t.indexOf(O.ref)-t.indexOf(g.ref))},collectionRef:u})}},N={...P,name:a,setup(u,{attrs:c}){const p=_(),l=$(r,void 0);I(i,{collectionItemRef:p}),M(()=>{const t=f(p);t&&l.itemMap.set(t,{ref:t,...c})}),h(()=>{const t=f(p);l.itemMap.delete(t)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:d,ElCollectionItem:N}},H=m({trigger:b.trigger,triggerKeys:{type:o(Array),default:()=>[e.enter,e.numpadEnter,e.space,e.down]},effect:{...E.effect,default:"light"},type:{type:o(String)},placement:{type:o(String),default:"bottom"},popperOptions:{type:o(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:o([Number,String]),default:0},maxHeight:{type:o([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:S,default:"menu"},buttonProps:{type:o(Object)},teleported:E.teleported,persistent:{type:Boolean,default:!0}}),U=m({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:L}}),V=m({onKeydown:{type:o(Function)}}),j=[e.down,e.pageDown,e.home],F=[e.up,e.pageUp,e.end],k=[...j,...F],{ElCollection:q,ElCollectionItem:G,COLLECTION_INJECTION_KEY:W,COLLECTION_ITEM_INJECTION_KEY:Q}=Y("Dropdown");export{x as C,q as E,k as F,F as L,U as a,Q as b,Y as c,H as d,G as e,V as f,W as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as C}from"./index-
|
|
1
|
+
import{w as C}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const w=C`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
|
|
3
3
|
</svg>
|
|
4
4
|
`;export{w as exclamationTriangleSvg};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as a}from"./index-
|
|
1
|
+
import{w as a}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=a`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i}from"./index-
|
|
1
|
+
import{w as i}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#1877F2" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as h}from"./index-
|
|
1
|
+
import{w as h}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const e=h`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000">
|
|
2
2
|
<rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
|
|
3
3
|
<path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
|
|
4
4
|
<path
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-
|
|
1
|
+
import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-DCg4Dkdi.js";class n{async task(a,t){return await e.post("/flux/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/flux/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/flux/images",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new n;export{c as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i}from"./index-
|
|
1
|
+
import{w as i}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#1B1F23" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const g=o`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<path
|
|
3
3
|
fill="#4285F4"
|
|
4
4
|
d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-
|
|
1
|
+
import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-DCg4Dkdi.js";class i{async task(a,t){return await e.post("/hailuo/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/hailuo/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/hailuo/videos",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new i;export{c as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-
|
|
1
|
+
import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-DCg4Dkdi.js";class s{async task(a,t){return await e.post("/headshots/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/headshots/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/headshots/generate",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new s;export{c as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as c}from"./index-
|
|
1
|
+
import{w as c}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const l=c`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="28"
|
|
4
4
|
height="28"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as C}from"./index-
|
|
1
|
+
import{w as C}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const v=C`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
2
2
|
<path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
|
|
4
4
|
</svg>`;export{v as imageSvg};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as p,I as y,y as u,z as h,A as m}from"./index-
|
|
1
|
+
import{H as p,I as y,y as u,z as h,A as m}from"./index-DCg4Dkdi.js";import{d as f,I as o,x as t,J as d,E as C,Q as r,u as a,z as l,K as n,F as i,R as S}from"./vendor-vue-CpN3YBVJ.js";const c=p({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:y([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),v=f({name:"ElCard"}),b=f({...v,props:c,setup(w){const s=h("card");return(e,$)=>(t(),o("div",{class:r([a(s).b(),a(s).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?(t(),o("div",{key:0,class:r([a(s).e("header"),e.headerClass])},[l(e.$slots,"header",{},()=>[n(i(e.header),1)])],2)):d("v-if",!0),C("div",{class:r([a(s).e("body"),e.bodyClass]),style:S(e.bodyStyle)},[l(e.$slots,"default")],6),e.$slots.footer||e.footer?(t(),o("div",{key:1,class:r([a(s).e("footer"),e.footerClass])},[l(e.$slots,"footer",{},()=>[n(i(e.footer),1)])],2)):d("v-if",!0)],2))}});var g=u(b,[["__file","card.vue"]]);const z=m(g);export{z as E};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{P as ee,T as q,V as z}from"./index.browser.esm-
|
|
1
|
+
import{P as ee,T as q,V as z}from"./index.browser.esm-uBaXz-Gy.js";import{E as te}from"./index-4erIVwAR.js";import{g as ne}from"./vendor-dayjs-D7e3rSuL.js";import{z as ie,A as re}from"./events-C1bJOe9X.js";import{S as se}from"./index-DDzvF3is.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./types-Cvj5H4DH.js";var j,B;function ae(){if(B)return j;B=1;function i(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var r=0;r<t.length;r++){var s=t.charAt(r),a=s.charCodeAt(0);if(e[a]!==255)throw new TypeError(s+" is ambiguous");e[a]=r}var l=t.length,A=t.charAt(0),m=Math.log(l)/Math.log(256),c=Math.log(256)/Math.log(l);function _(o){if(o instanceof Uint8Array||(ArrayBuffer.isView(o)?o=new Uint8Array(o.buffer,o.byteOffset,o.byteLength):Array.isArray(o)&&(o=Uint8Array.from(o))),!(o instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(o.length===0)return"";for(var f=0,S=0,v=0,g=o.length;v!==g&&o[v]===0;)v++,f++;for(var w=(g-v)*c+1>>>0,E=new Uint8Array(w);v!==g;){for(var h=o[v],M=0,b=w-1;(h!==0||M<S)&&b!==-1;b--,M++)h+=256*E[b]>>>0,E[b]=h%l>>>0,h=h/l>>>0;if(h!==0)throw new Error("Non-zero carry");S=M,v++}for(var u=w-S;u!==w&&E[u]===0;)u++;for(var C=A.repeat(f);u<w;++u)C+=t.charAt(E[u]);return C}function V(o){if(typeof o!="string")throw new TypeError("Expected String");if(o.length===0)return new Uint8Array;for(var f=0,S=0,v=0;o[f]===A;)S++,f++;for(var g=(o.length-f)*m+1>>>0,w=new Uint8Array(g);o[f];){var E=o.charCodeAt(f);if(E>255)return;var h=e[E];if(h===255)return;for(var M=0,b=g-1;(h!==0||M<v)&&b!==-1;b--,M++)h+=l*w[b]>>>0,w[b]=h%256>>>0,h=h/256>>>0;if(h!==0)throw new Error("Non-zero carry");v=M,f++}for(var u=g-v;u!==g&&w[u]===0;)u++;for(var C=new Uint8Array(S+(g-u)),Z=S;u!==g;)C[Z++]=w[u++];return C}function Y(o){var f=V(o);if(f)return f;throw new Error("Non-base"+l+" character")}return{encode:_,decodeUnsafe:V,decode:Y}}return j=i,j}var k,G;function oe(){return G||(G=1,k=ae()("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),k}var ce=oe();const y=ne(ce);let I;const de=new Uint8Array(16);function le(){if(!I&&(I=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!I))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(de)}const d=[];for(let i=0;i<256;++i)d.push((i+256).toString(16).slice(1));function he(i,t=0){return d[i[t+0]]+d[i[t+1]]+d[i[t+2]]+d[i[t+3]]+"-"+d[i[t+4]]+d[i[t+5]]+"-"+d[i[t+6]]+d[i[t+7]]+"-"+d[i[t+8]]+d[i[t+9]]+"-"+d[i[t+10]]+d[i[t+11]]+d[i[t+12]]+d[i[t+13]]+d[i[t+14]]+d[i[t+15]]}const ue=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),J={randomUUID:ue};function fe(i,t,e){if(J.randomUUID&&!i)return J.randomUUID();i=i||{};const n=i.random||(i.rng||le)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,he(n)}function D(i){return i.version===void 0}function O(i){return D(i)?i.serialize({verifySignatures:!1,requireAllSignatures:!1}):i.serialize()}var Q=function(i,t,e,n){function r(s){return s instanceof e?s:new e(function(a){a(s)})}return new(e||(e=Promise))(function(s,a){function l(c){try{m(n.next(c))}catch(_){a(_)}}function A(c){try{m(n.throw(c))}catch(_){a(_)}}function m(c){c.done?s(c.value):r(c.value).then(l,A)}m((n=n.apply(i,t||[])).next())})};function R(i){return Q(this,void 0,void 0,function*(){try{return yield i.request({method:"wallet_getSnaps"}),!0}catch{return!1}})}function me(){return Q(this,void 0,void 0,function*(){try{const i=window.ethereum;if(!i)return null;if(i.providers&&Array.isArray(i.providers)){const t=i.providers;for(const e of t)if(yield R(e))return e}if(i.detected&&Array.isArray(i.detected)){const t=i.detected;for(const e of t)if(yield R(e))return e}return(yield R(i))?i:null}catch(i){return console.error(i),null}})}const _e="solana:mainnet",ve="solana:devnet",pe="solana:testnet",ge="solana:localnet",X=[_e,ve,pe,ge];function P(i){return X.includes(i)}var T=function(i,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?i!==t||!n:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(i):n?n.value:t.get(i)},x=function(i,t,e,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?i!==t||!r:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(i,e):r?r.value=e:t.set(i,e),e},U,K,H,N,W,F;const we=X,ye=[ie,re,se];class L{get address(){return T(this,U,"f")}get publicKey(){return T(this,K,"f").slice()}get chains(){return T(this,H,"f").slice()}get features(){return T(this,N,"f").slice()}get label(){return T(this,W,"f")}get icon(){return T(this,F,"f")}constructor({address:t,publicKey:e,label:n,icon:r}){U.set(this,void 0),K.set(this,void 0),H.set(this,void 0),N.set(this,void 0),W.set(this,void 0),F.set(this,void 0),new.target===L&&Object.freeze(this),x(this,U,t,"f"),x(this,K,e,"f"),x(this,H,we,"f"),x(this,N,ye,"f"),x(this,W,n,"f"),x(this,F,r,"f")}}U=new WeakMap,K=new WeakMap,H=new WeakMap,N=new WeakMap,W=new WeakMap,F=new WeakMap;var p=function(i,t,e,n){function r(s){return s instanceof e?s:new e(function(a){a(s)})}return new(e||(e=Promise))(function(s,a){function l(c){try{m(n.next(c))}catch(_){a(_)}}function A(c){try{m(n.throw(c))}catch(_){a(_)}}function m(c){c.done?s(c.value):r(c.value).then(l,A)}m((n=n.apply(i,t||[])).next())})};class $ extends te{constructor(t){super(),this._network="mainnet-beta",this._iframeParams={},this._element=null,this._iframe=null,this._publicKey=null,this._account=null,this._isConnected=!1,this._connectHandler=null,this._messageHandlers={},this._handleEvent=e=>{var n,r;switch(e.type){case"connect":{this._collapseIframe(),!((n=e.data)===null||n===void 0)&&n.publicKey?(this._publicKey=e.data.publicKey,this._isConnected=!0,this._connectHandler&&(this._connectHandler.resolve(),this._connectHandler=null),this._connected()):(this._connectHandler&&(this._connectHandler.reject(),this._connectHandler=null),this._disconnected());return}case"disconnect":{this._connectHandler&&(this._connectHandler.reject(),this._connectHandler=null),this._disconnected();return}case"accountChanged":{!((r=e.data)===null||r===void 0)&&r.publicKey?(this._publicKey=e.data.publicKey,this.emit("accountChanged",this.publicKey),this._standardConnected()):(this.emit("accountChanged",void 0),this._standardDisconnected());return}default:return}},this._handleResize=e=>{e.resizeMode==="full"?e.params.mode==="fullscreen"?this._expandIframe():e.params.mode==="hide"&&this._collapseIframe():e.resizeMode==="coordinates"&&this._resizeIframe(e.params)},this._handleMessage=e=>{var n;if(((n=e.data)===null||n===void 0?void 0:n.channel)!=="solflareIframeToWalletAdapter")return;const r=e.data.data||{};if(r.type==="event")this._handleEvent(r.event);else if(r.type==="resize")this._handleResize(r);else if(r.type==="response"&&this._messageHandlers[r.id]){const{resolve:s,reject:a}=this._messageHandlers[r.id];delete this._messageHandlers[r.id],r.error?a(r.error):s(r.result)}},this._removeElement=()=>{this._element&&(this._element.remove(),this._element=null)},this._removeDanglingElements=()=>{const e=document.getElementsByClassName("solflare-metamask-wallet-adapter-iframe");for(const n of e)n.parentElement&&n.remove()},this._injectElement=()=>{this._removeElement(),this._removeDanglingElements();const e=Object.assign(Object.assign({},this._iframeParams),{mm:!0,v:1,cluster:this._network||"mainnet-beta",origin:window.location.origin||"",title:document.title||""}),n=Object.keys(e).map(s=>`${s}=${encodeURIComponent(e[s])}`).join("&"),r=`${$.IFRAME_URL}?${n}`;this._element=document.createElement("div"),this._element.className="solflare-metamask-wallet-adapter-iframe",this._element.innerHTML=`
|
|
2
2
|
<iframe src='${r}' style='position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; border: none; border-radius: 0; z-index: 99999; color-scheme: auto;' allowtransparency='true'></iframe>
|
|
3
3
|
`,document.body.appendChild(this._element),this._iframe=this._element.querySelector("iframe"),window.addEventListener("message",this._handleMessage,!1)},this._collapseIframe=()=>{this._iframe&&(this._iframe.style.top="",this._iframe.style.right="",this._iframe.style.height="2px",this._iframe.style.width="2px")},this._expandIframe=()=>{this._iframe&&(this._iframe.style.top="0px",this._iframe.style.bottom="0px",this._iframe.style.left="0px",this._iframe.style.right="0px",this._iframe.style.width="100%",this._iframe.style.height="100%")},this._resizeIframe=e=>{this._iframe&&(this._iframe.style.top=isFinite(e.top)?`${e.top}px`:"",this._iframe.style.bottom=isFinite(e.bottom)?`${e.bottom}px`:"",this._iframe.style.left=isFinite(e.left)?`${e.left}px`:"",this._iframe.style.right=isFinite(e.right)?`${e.right}px`:"",this._iframe.style.width=isFinite(e.width)?`${e.width}px`:e.width,this._iframe.style.height=isFinite(e.height)?`${e.height}px`:e.height)},this._sendIframeMessage=e=>{if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");return new Promise((n,r)=>{var s,a;const l=fe();this._messageHandlers[l]={resolve:n,reject:r},(a=(s=this._iframe)===null||s===void 0?void 0:s.contentWindow)===null||a===void 0||a.postMessage({channel:"solflareWalletAdapterToIframe",data:Object.assign({id:l},e)},"*")})},this._connected=()=>{this._isConnected=!0,this.emit("connect",this.publicKey),this._standardConnected()},this._disconnected=()=>{this._publicKey=null,this._isConnected=!1,window.removeEventListener("message",this._handleMessage,!1),this._removeElement(),this.emit("disconnect"),this._standardDisconnected()},this._standardConnected=()=>{if(!this.publicKey)return;const e=this.publicKey.toString();(!this._account||this._account.address!==e)&&(this._account=new L({address:e,publicKey:this.publicKey.toBytes()}),this.emit("standard_change",{accounts:this.standardAccounts}))},this._standardDisconnected=()=>{this._account&&(this._account=null,this.emit("standard_change",{accounts:this.standardAccounts}))},t?.network&&(this._network=t?.network),window.SolflareMetaMaskParams&&(this._iframeParams=Object.assign(Object.assign({},this._iframeParams),window.SolflareMetaMaskParams)),t?.params&&(this._iframeParams=Object.assign(Object.assign({},this._iframeParams),t?.params))}get publicKey(){return this._publicKey?new ee(this._publicKey):null}get standardAccount(){return this._account}get standardAccounts(){return this._account?[this._account]:[]}get isConnected(){return this._isConnected}get connected(){return this.isConnected}get autoApprove(){return!1}connect(){return p(this,void 0,void 0,function*(){this.connected||(this._injectElement(),yield new Promise((t,e)=>{this._connectHandler={resolve:t,reject:e}}))})}disconnect(){return p(this,void 0,void 0,function*(){yield this._sendIframeMessage({method:"disconnect"}),this._disconnected()})}signTransaction(t){var e;return p(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const n=O(t),r=yield this._sendIframeMessage({method:"signTransactionV2",params:{transaction:y.encode(n)}}),{transaction:s}=r;return D(t)?q.from(y.decode(s)):z.deserialize(y.decode(s))}catch(n){throw new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transaction")}})}signAllTransactions(t){var e;return p(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const n=t.map(s=>O(s)),{transactions:r}=yield this._sendIframeMessage({method:"signAllTransactionsV2",params:{transactions:n.map(s=>y.encode(s))}});return r.map((s,a)=>D(t[a])?q.from(y.decode(s)):z.deserialize(y.decode(s)))}catch(n){throw new Error(((e=n?.toString)===null||e===void 0?void 0:e.call(n))||"Failed to sign transactions")}})}signAndSendTransaction(t,e){var n;return p(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const r=O(t),{signature:s}=yield this._sendIframeMessage({method:"signAndSendTransaction",params:{transaction:y.encode(r),options:e}});return s}catch(r){throw new Error(((n=r?.toString)===null||n===void 0?void 0:n.call(r))||"Failed to sign and send transaction")}})}signMessage(t,e="utf8"){var n;return p(this,void 0,void 0,function*(){if(!this.connected||!this.publicKey)throw new Error("Wallet not connected");try{const{signature:r}=yield this._sendIframeMessage({method:"signMessage",params:{data:y.encode(t),display:e}});return Uint8Array.from(y.decode(r))}catch(r){throw new Error(((n=r?.toString)===null||n===void 0?void 0:n.call(r))||"Failed to sign message")}})}sign(t,e="utf8"){return p(this,void 0,void 0,function*(){return yield this.signMessage(t,e)})}static isSupported(){return p(this,void 0,void 0,function*(){return!!(yield me())})}standardSignAndSendTransaction(...t){return p(this,void 0,void 0,function*(){if(!this.connected)throw new Error("not connected");const e=[];if(t.length===1){const{transaction:n,account:r,chain:s,options:a}=t[0],{minContextSlot:l,preflightCommitment:A,skipPreflight:m,maxRetries:c}=a||{};if(r!==this._account)throw new Error("invalid account");if(!P(s))throw new Error("invalid chain");const _=yield this.signAndSendTransaction(z.deserialize(n),{preflightCommitment:A,minContextSlot:l,maxRetries:c,skipPreflight:m});e.push({signature:y.decode(_)})}else if(t.length>1)for(const n of t)e.push(...yield this.standardSignAndSendTransaction(n));return e})}standardSignTransaction(...t){return p(this,void 0,void 0,function*(){if(!this.connected)throw new Error("not connected");const e=[];if(t.length===1){const{transaction:n,account:r,chain:s}=t[0];if(r!==this._account)throw new Error("invalid account");if(s&&!P(s))throw new Error("invalid chain");const a=yield this.signTransaction(z.deserialize(n));e.push({signedTransaction:a.serialize()})}else if(t.length>1){let n;for(const a of t){if(a.account!==this._account)throw new Error("invalid account");if(a.chain){if(!P(a.chain))throw new Error("invalid chain");if(n){if(a.chain!==n)throw new Error("conflicting chain")}else n=a.chain}}const r=t.map(({transaction:a})=>z.deserialize(a)),s=yield this.signAllTransactions(r);e.push(...s.map(a=>({signedTransaction:a.serialize()})))}return e})}standardSignMessage(...t){return p(this,void 0,void 0,function*(){if(!this.connected)throw new Error("not connected");const e=[];if(t.length===1){const{message:n,account:r}=t[0];if(r!==this._account)throw new Error("invalid account");const s=yield this.signMessage(n);e.push({signedMessage:n,signature:s})}else if(t.length>1)for(const n of t)e.push(...yield this.standardSignMessage(n));return e})}}$.IFRAME_URL="https://widget.solflare.com/";export{L as StandardSolflareMetaMaskWalletAccount,$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as Ce,u as F}from"./typescript-CCxkBkN0.js";import{d as te,a7 as he,r as C,ad as Ae,s as Pe,f as m,w as ve,o as ze,q as me,x as g,y as p,C as d,T as Be,E as k,R as ye,Q as v,u as e,J as I,I as z,z as x,M as Me,O as q,K as Ve,F as Le,V as Fe,N as Xe,n as Ee,ae as Ye,g as De,A as be,af as He,a1 as ke,a2 as Ie,S as je}from"./vendor-vue-CpN3YBVJ.js";import{aX as Ke,b as X,K as pe,H as _e,I as Z,y as Se,be as We,bf as qe,ae as Ne,z as Oe,bg as Ze,ah as Ge,R as $,$ as Je,bh as Qe,bi as Ue,bj as ea,bk as aa,bl as ta,bm as sa,ai as na,a2 as oa,aN as V,A as Re,e as la,a as ra,bn as ia,bo as ua}from"./index-BdFvcyuk.js";import{d as ca}from"./debounce-BiFLIUBW.js";import{u as da}from"./index-Ls9mmJFX.js";var fa="Expected a function";function fe(i,L,l){var s=!0,o=!0;if(typeof i!="function")throw new TypeError(fa);return Ke(l)&&(s="leading"in l?!!l.leading:s,o="trailing"in l?!!l.trailing:o),ca(i,L,{leading:s,maxWait:L,trailing:o})}const va=(i,L)=>{if(!X||!i||!L)return!1;const l=i.getBoundingClientRect();let s;return L instanceof Element?s=L.getBoundingClientRect():s={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},l.top<s.bottom&&l.bottom>s.top&&l.right>s.left&&l.left<s.right},ma=_e({urlList:{type:Z(Array),default:()=>Ce([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),pa={close:()=>!0,switch:i=>pe(i),rotate:i=>pe(i)},ga=te({name:"ElImageViewer"}),wa=te({...ga,props:ma,emits:pa,setup(i,{expose:L,emit:l}){var s;const o=i,w={CONTAIN:{name:"contain",icon:he(qe)},ORIGINAL:{name:"original",icon:he(We)}};let Y,D="";const{t:se}=Ne(),n=Oe("image-viewer"),{nextZIndex:A}=Ze(),E=C(),M=C([]),P=Ae(),f=C(!0),h=C(o.initialIndex),O=Pe(w.CONTAIN),u=C({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),ne=C((s=o.zIndex)!=null?s:A()),H=m(()=>{const{urlList:a}=o;return a.length<=1}),G=m(()=>h.value===0),j=m(()=>h.value===o.urlList.length-1),K=m(()=>o.urlList[h.value]),oe=m(()=>[n.e("btn"),n.e("prev"),n.is("disabled",!o.infinite&&G.value)]),le=m(()=>[n.e("btn"),n.e("next"),n.is("disabled",!o.infinite&&j.value)]),J=m(()=>{const{scale:a,deg:c,offsetX:r,offsetY:b,enableTransition:S}=u.value;let N=r/a,T=b/a;const W=c*Math.PI/180,ge=Math.cos(W),we=Math.sin(W);N=N*ge+T*we,T=T*ge-r/a*we;const de={transform:`scale(${a}) rotate(${c}deg) translate(${N}px, ${T}px)`,transition:S?"transform .3s":""};return O.value.name===w.CONTAIN.name&&(de.maxWidth=de.maxHeight="100%"),de}),Q=m(()=>`${h.value+1} / ${o.urlList.length}`);function B(){ee(),Y?.(),document.body.style.overflow=D,l("close")}function U(){const a=fe(r=>{switch(r.code){case V.esc:o.closeOnPressEscape&&B();break;case V.space:_();break;case V.left:ue();break;case V.up:R("zoomIn");break;case V.right:ce();break;case V.down:R("zoomOut");break}}),c=fe(r=>{const b=r.deltaY||r.deltaX;R(b<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});P.run(()=>{F(document,"keydown",a),F(document,"wheel",c)})}function ee(){P.stop()}function re(){f.value=!1}function ie(a){f.value=!1,a.target.alt=se("el.image.error")}function t(a){if(f.value||a.button!==0||!E.value)return;u.value.enableTransition=!1;const{offsetX:c,offsetY:r}=u.value,b=a.pageX,S=a.pageY,N=fe(W=>{u.value={...u.value,offsetX:c+W.pageX-b,offsetY:r+W.pageY-S}}),T=F(document,"mousemove",N);F(document,"mouseup",()=>{T()}),a.preventDefault()}function y(){u.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function _(){if(f.value)return;const a=oa(w),c=Object.values(w),r=O.value.name,S=(c.findIndex(N=>N.name===r)+1)%a.length;O.value=w[a[S]],y()}function ae(a){const c=o.urlList.length;h.value=(a+c)%c}function ue(){G.value&&!o.infinite||ae(h.value-1)}function ce(){j.value&&!o.infinite||ae(h.value+1)}function R(a,c={}){if(f.value)return;const{minScale:r,maxScale:b}=o,{zoomRate:S,rotateDeg:N,enableTransition:T}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...c};switch(a){case"zoomOut":u.value.scale>r&&(u.value.scale=Number.parseFloat((u.value.scale/S).toFixed(3)));break;case"zoomIn":u.value.scale<b&&(u.value.scale=Number.parseFloat((u.value.scale*S).toFixed(3)));break;case"clockwise":u.value.deg+=N,l("rotate",u.value.deg);break;case"anticlockwise":u.value.deg-=N,l("rotate",u.value.deg);break}u.value.enableTransition=T}function Te(a){var c;((c=a.detail)==null?void 0:c.focusReason)==="pointer"&&a.preventDefault()}function $e(){o.closeOnPressEscape&&B()}function xe(a){if(a.ctrlKey){if(a.deltaY<0)return a.preventDefault(),!1;if(a.deltaY>0)return a.preventDefault(),!1}}return ve(K,()=>{Ee(()=>{const a=M.value[0];a?.complete||(f.value=!0)})}),ve(h,a=>{y(),l("switch",a)}),ze(()=>{U(),Y=F("wheel",xe,{passive:!1}),D=document.body.style.overflow,document.body.style.overflow="hidden"}),L({setActiveItem:ae}),(a,c)=>(g(),me(e(na),{to:"body",disabled:!a.teleported},{default:p(()=>[d(Be,{name:"viewer-fade",appear:""},{default:p(()=>[k("div",{ref_key:"wrapper",ref:E,tabindex:-1,class:v(e(n).e("wrapper")),style:ye({zIndex:ne.value})},[d(e(Ge),{loop:"",trapped:"","focus-trap-el":E.value,"focus-start-el":"container",onFocusoutPrevented:Te,onReleaseRequested:$e},{default:p(()=>[k("div",{class:v(e(n).e("mask")),onClick:Me(r=>a.hideOnClickModal&&B(),["self"])},null,10,["onClick"]),I(" CLOSE "),k("span",{class:v([e(n).e("btn"),e(n).e("close")]),onClick:B},[d(e($),null,{default:p(()=>[d(e(Je))]),_:1})],2),I(" ARROW "),e(H)?I("v-if",!0):(g(),z(q,{key:0},[k("span",{class:v(e(oe)),onClick:ue},[d(e($),null,{default:p(()=>[d(e(Qe))]),_:1})],2),k("span",{class:v(e(le)),onClick:ce},[d(e($),null,{default:p(()=>[d(e(Ue))]),_:1})],2)],64)),a.$slots.progress||a.showProgress?(g(),z("div",{key:1,class:v([e(n).e("btn"),e(n).e("progress")])},[x(a.$slots,"progress",{activeIndex:h.value,total:a.urlList.length},()=>[Ve(Le(e(Q)),1)])],2)):I("v-if",!0),I(" ACTIONS "),k("div",{class:v([e(n).e("btn"),e(n).e("actions")])},[k("div",{class:v(e(n).e("actions__inner"))},[x(a.$slots,"toolbar",{actions:R,prev:ue,next:ce,reset:_,activeIndex:h.value,setActiveItem:ae},()=>[d(e($),{onClick:r=>R("zoomOut")},{default:p(()=>[d(e(ea))]),_:1},8,["onClick"]),d(e($),{onClick:r=>R("zoomIn")},{default:p(()=>[d(e(aa))]),_:1},8,["onClick"]),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e($),{onClick:_},{default:p(()=>[(g(),me(Fe(e(O).icon)))]),_:1}),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e($),{onClick:r=>R("anticlockwise")},{default:p(()=>[d(e(ta))]),_:1},8,["onClick"]),d(e($),{onClick:r=>R("clockwise")},{default:p(()=>[d(e(sa))]),_:1},8,["onClick"])])],2)],2),I(" CANVAS "),k("div",{class:v(e(n).e("canvas"))},[(g(!0),z(q,null,Xe(a.urlList,(r,b)=>(g(),z(q,{key:b},[b===h.value?(g(),z("img",{key:0,ref_for:!0,ref:S=>M.value[b]=S,src:r,style:ye(e(J)),class:v(e(n).e("img")),crossorigin:a.crossorigin,onLoad:re,onError:ie,onMousedown:t},null,46,["src","crossorigin"])):I("v-if",!0)],64))),128))],2),x(a.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var ha=Se(wa,[["__file","image-viewer.vue"]]);const ya=Re(ha),ba=_e({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Z([String,Object])},previewSrcList:{type:Z(Array),default:()=>Ce([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),ka={load:i=>i instanceof Event,error:i=>i instanceof Event,switch:i=>pe(i),close:()=>!0,show:()=>!0},Ia=te({name:"ElImage",inheritAttrs:!1}),Ca=te({...Ia,props:ba,emits:ka,setup(i,{expose:L,emit:l}){const s=i,{t:o}=Ne(),w=Oe("image"),Y=Ye(),D=m(()=>la(Object.entries(Y).filter(([t])=>/^(data-|on[A-Z])/i.test(t)||["id","style"].includes(t)))),se=da({excludeListeners:!0,excludeKeys:m(()=>Object.keys(D.value))}),n=C(),A=C(!1),E=C(!0),M=C(!1),P=C(),f=C(),h=X&&"loading"in HTMLImageElement.prototype;let O;const u=m(()=>[w.e("inner"),H.value&&w.e("preview"),E.value&&w.is("loading")]),ne=m(()=>{const{fit:t}=s;return X&&t?{objectFit:t}:{}}),H=m(()=>{const{previewSrcList:t}=s;return De(t)&&t.length>0}),G=m(()=>{const{previewSrcList:t,initialIndex:y}=s;let _=y;return y>t.length-1&&(_=0),_}),j=m(()=>s.loading==="eager"?!1:!h&&s.loading==="lazy"||s.lazy),K=()=>{X&&(E.value=!0,A.value=!1,n.value=s.src)};function oe(t){E.value=!1,A.value=!1,l("load",t)}function le(t){E.value=!1,A.value=!0,l("error",t)}function J(){va(P.value,f.value)&&(K(),U())}const Q=ua(J,200,!0);async function B(){var t;if(!X)return;await Ee();const{scrollContainer:y}=s;ra(y)?f.value=y:je(y)&&y!==""?f.value=(t=document.querySelector(y))!=null?t:void 0:P.value&&(f.value=ia(P.value)),f.value&&(O=F(f,"scroll",Q),setTimeout(()=>J(),100))}function U(){!X||!f.value||!Q||(O?.(),f.value=void 0)}function ee(){H.value&&(M.value=!0,l("show"))}function re(){M.value=!1,l("close")}function ie(t){l("switch",t)}return ve(()=>s.src,()=>{j.value?(E.value=!0,A.value=!1,U(),B()):K()}),ze(()=>{j.value?B():K()}),L({showPreview:ee}),(t,y)=>(g(),z("div",be({ref_key:"container",ref:P},e(D),{class:[e(w).b(),t.$attrs.class]}),[A.value?x(t.$slots,"error",{key:0},()=>[k("div",{class:v(e(w).e("error"))},Le(e(o)("el.image.error")),3)]):(g(),z(q,{key:1},[n.value!==void 0?(g(),z("img",be({key:0},e(se),{src:n.value,loading:t.loading,style:e(ne),class:e(u),crossorigin:t.crossorigin,onClick:ee,onLoad:oe,onError:le}),null,16,["src","loading","crossorigin"])):I("v-if",!0),E.value?(g(),z("div",{key:1,class:v(e(w).e("wrapper"))},[x(t.$slots,"placeholder",{},()=>[k("div",{class:v(e(w).e("placeholder"))},null,2)])],2)):I("v-if",!0)],64)),e(H)?(g(),z(q,{key:2},[M.value?(g(),me(e(ya),{key:0,"z-index":t.zIndex,"initial-index":e(G),infinite:t.infinite,"zoom-rate":t.zoomRate,"min-scale":t.minScale,"max-scale":t.maxScale,"show-progress":t.showProgress,"url-list":t.previewSrcList,crossorigin:t.crossorigin,"hide-on-click-modal":t.hideOnClickModal,teleported:t.previewTeleported,"close-on-press-escape":t.closeOnPressEscape,onClose:re,onSwitch:ie},He({toolbar:p(_=>[x(t.$slots,"toolbar",ke(Ie(_)))]),default:p(()=>[t.$slots.viewer?(g(),z("div",{key:0},[x(t.$slots,"viewer")])):I("v-if",!0)]),_:2},[t.$slots.progress?{name:"progress",fn:p(_=>[x(t.$slots,"progress",ke(Ie(_)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):I("v-if",!0)],64)):I("v-if",!0)],16))}});var za=Se(Ca,[["__file","image.vue"]]);const Oa=Re(za);export{Oa as E};
|
|
1
|
+
import{m as Ce,u as F}from"./typescript-BR9jNAAl.js";import{d as te,a7 as he,r as C,ad as Ae,s as Pe,f as m,w as ve,o as ze,q as me,x as g,y as p,C as d,T as Be,E as k,R as ye,Q as v,u as e,J as I,I as z,z as x,M as Me,O as q,K as Ve,F as Le,V as Fe,N as Xe,n as Ee,ae as Ye,g as De,A as be,af as He,a1 as ke,a2 as Ie,S as je}from"./vendor-vue-CpN3YBVJ.js";import{aX as Ke,b as X,K as pe,H as _e,I as Z,y as Se,be as We,bf as qe,ae as Ne,z as Oe,bg as Ze,ah as Ge,R as $,$ as Je,bh as Qe,bi as Ue,bj as ea,bk as aa,bl as ta,bm as sa,ai as na,a2 as oa,aN as V,A as Re,e as la,a as ra,bn as ia,bo as ua}from"./index-DCg4Dkdi.js";import{d as ca}from"./debounce-CVEmZFNe.js";import{u as da}from"./index-CnnRg155.js";var fa="Expected a function";function fe(i,L,l){var s=!0,o=!0;if(typeof i!="function")throw new TypeError(fa);return Ke(l)&&(s="leading"in l?!!l.leading:s,o="trailing"in l?!!l.trailing:o),ca(i,L,{leading:s,maxWait:L,trailing:o})}const va=(i,L)=>{if(!X||!i||!L)return!1;const l=i.getBoundingClientRect();let s;return L instanceof Element?s=L.getBoundingClientRect():s={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},l.top<s.bottom&&l.bottom>s.top&&l.right>s.left&&l.left<s.right},ma=_e({urlList:{type:Z(Array),default:()=>Ce([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),pa={close:()=>!0,switch:i=>pe(i),rotate:i=>pe(i)},ga=te({name:"ElImageViewer"}),wa=te({...ga,props:ma,emits:pa,setup(i,{expose:L,emit:l}){var s;const o=i,w={CONTAIN:{name:"contain",icon:he(qe)},ORIGINAL:{name:"original",icon:he(We)}};let Y,D="";const{t:se}=Ne(),n=Oe("image-viewer"),{nextZIndex:A}=Ze(),E=C(),M=C([]),P=Ae(),f=C(!0),h=C(o.initialIndex),O=Pe(w.CONTAIN),u=C({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),ne=C((s=o.zIndex)!=null?s:A()),H=m(()=>{const{urlList:a}=o;return a.length<=1}),G=m(()=>h.value===0),j=m(()=>h.value===o.urlList.length-1),K=m(()=>o.urlList[h.value]),oe=m(()=>[n.e("btn"),n.e("prev"),n.is("disabled",!o.infinite&&G.value)]),le=m(()=>[n.e("btn"),n.e("next"),n.is("disabled",!o.infinite&&j.value)]),J=m(()=>{const{scale:a,deg:c,offsetX:r,offsetY:b,enableTransition:S}=u.value;let N=r/a,T=b/a;const W=c*Math.PI/180,ge=Math.cos(W),we=Math.sin(W);N=N*ge+T*we,T=T*ge-r/a*we;const de={transform:`scale(${a}) rotate(${c}deg) translate(${N}px, ${T}px)`,transition:S?"transform .3s":""};return O.value.name===w.CONTAIN.name&&(de.maxWidth=de.maxHeight="100%"),de}),Q=m(()=>`${h.value+1} / ${o.urlList.length}`);function B(){ee(),Y?.(),document.body.style.overflow=D,l("close")}function U(){const a=fe(r=>{switch(r.code){case V.esc:o.closeOnPressEscape&&B();break;case V.space:_();break;case V.left:ue();break;case V.up:R("zoomIn");break;case V.right:ce();break;case V.down:R("zoomOut");break}}),c=fe(r=>{const b=r.deltaY||r.deltaX;R(b<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});P.run(()=>{F(document,"keydown",a),F(document,"wheel",c)})}function ee(){P.stop()}function re(){f.value=!1}function ie(a){f.value=!1,a.target.alt=se("el.image.error")}function t(a){if(f.value||a.button!==0||!E.value)return;u.value.enableTransition=!1;const{offsetX:c,offsetY:r}=u.value,b=a.pageX,S=a.pageY,N=fe(W=>{u.value={...u.value,offsetX:c+W.pageX-b,offsetY:r+W.pageY-S}}),T=F(document,"mousemove",N);F(document,"mouseup",()=>{T()}),a.preventDefault()}function y(){u.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function _(){if(f.value)return;const a=oa(w),c=Object.values(w),r=O.value.name,S=(c.findIndex(N=>N.name===r)+1)%a.length;O.value=w[a[S]],y()}function ae(a){const c=o.urlList.length;h.value=(a+c)%c}function ue(){G.value&&!o.infinite||ae(h.value-1)}function ce(){j.value&&!o.infinite||ae(h.value+1)}function R(a,c={}){if(f.value)return;const{minScale:r,maxScale:b}=o,{zoomRate:S,rotateDeg:N,enableTransition:T}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...c};switch(a){case"zoomOut":u.value.scale>r&&(u.value.scale=Number.parseFloat((u.value.scale/S).toFixed(3)));break;case"zoomIn":u.value.scale<b&&(u.value.scale=Number.parseFloat((u.value.scale*S).toFixed(3)));break;case"clockwise":u.value.deg+=N,l("rotate",u.value.deg);break;case"anticlockwise":u.value.deg-=N,l("rotate",u.value.deg);break}u.value.enableTransition=T}function Te(a){var c;((c=a.detail)==null?void 0:c.focusReason)==="pointer"&&a.preventDefault()}function $e(){o.closeOnPressEscape&&B()}function xe(a){if(a.ctrlKey){if(a.deltaY<0)return a.preventDefault(),!1;if(a.deltaY>0)return a.preventDefault(),!1}}return ve(K,()=>{Ee(()=>{const a=M.value[0];a?.complete||(f.value=!0)})}),ve(h,a=>{y(),l("switch",a)}),ze(()=>{U(),Y=F("wheel",xe,{passive:!1}),D=document.body.style.overflow,document.body.style.overflow="hidden"}),L({setActiveItem:ae}),(a,c)=>(g(),me(e(na),{to:"body",disabled:!a.teleported},{default:p(()=>[d(Be,{name:"viewer-fade",appear:""},{default:p(()=>[k("div",{ref_key:"wrapper",ref:E,tabindex:-1,class:v(e(n).e("wrapper")),style:ye({zIndex:ne.value})},[d(e(Ge),{loop:"",trapped:"","focus-trap-el":E.value,"focus-start-el":"container",onFocusoutPrevented:Te,onReleaseRequested:$e},{default:p(()=>[k("div",{class:v(e(n).e("mask")),onClick:Me(r=>a.hideOnClickModal&&B(),["self"])},null,10,["onClick"]),I(" CLOSE "),k("span",{class:v([e(n).e("btn"),e(n).e("close")]),onClick:B},[d(e($),null,{default:p(()=>[d(e(Je))]),_:1})],2),I(" ARROW "),e(H)?I("v-if",!0):(g(),z(q,{key:0},[k("span",{class:v(e(oe)),onClick:ue},[d(e($),null,{default:p(()=>[d(e(Qe))]),_:1})],2),k("span",{class:v(e(le)),onClick:ce},[d(e($),null,{default:p(()=>[d(e(Ue))]),_:1})],2)],64)),a.$slots.progress||a.showProgress?(g(),z("div",{key:1,class:v([e(n).e("btn"),e(n).e("progress")])},[x(a.$slots,"progress",{activeIndex:h.value,total:a.urlList.length},()=>[Ve(Le(e(Q)),1)])],2)):I("v-if",!0),I(" ACTIONS "),k("div",{class:v([e(n).e("btn"),e(n).e("actions")])},[k("div",{class:v(e(n).e("actions__inner"))},[x(a.$slots,"toolbar",{actions:R,prev:ue,next:ce,reset:_,activeIndex:h.value,setActiveItem:ae},()=>[d(e($),{onClick:r=>R("zoomOut")},{default:p(()=>[d(e(ea))]),_:1},8,["onClick"]),d(e($),{onClick:r=>R("zoomIn")},{default:p(()=>[d(e(aa))]),_:1},8,["onClick"]),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e($),{onClick:_},{default:p(()=>[(g(),me(Fe(e(O).icon)))]),_:1}),k("i",{class:v(e(n).e("actions__divider"))},null,2),d(e($),{onClick:r=>R("anticlockwise")},{default:p(()=>[d(e(ta))]),_:1},8,["onClick"]),d(e($),{onClick:r=>R("clockwise")},{default:p(()=>[d(e(sa))]),_:1},8,["onClick"])])],2)],2),I(" CANVAS "),k("div",{class:v(e(n).e("canvas"))},[(g(!0),z(q,null,Xe(a.urlList,(r,b)=>(g(),z(q,{key:b},[b===h.value?(g(),z("img",{key:0,ref_for:!0,ref:S=>M.value[b]=S,src:r,style:ye(e(J)),class:v(e(n).e("img")),crossorigin:a.crossorigin,onLoad:re,onError:ie,onMousedown:t},null,46,["src","crossorigin"])):I("v-if",!0)],64))),128))],2),x(a.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var ha=Se(wa,[["__file","image-viewer.vue"]]);const ya=Re(ha),ba=_e({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Z([String,Object])},previewSrcList:{type:Z(Array),default:()=>Ce([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Z(String)}}),ka={load:i=>i instanceof Event,error:i=>i instanceof Event,switch:i=>pe(i),close:()=>!0,show:()=>!0},Ia=te({name:"ElImage",inheritAttrs:!1}),Ca=te({...Ia,props:ba,emits:ka,setup(i,{expose:L,emit:l}){const s=i,{t:o}=Ne(),w=Oe("image"),Y=Ye(),D=m(()=>la(Object.entries(Y).filter(([t])=>/^(data-|on[A-Z])/i.test(t)||["id","style"].includes(t)))),se=da({excludeListeners:!0,excludeKeys:m(()=>Object.keys(D.value))}),n=C(),A=C(!1),E=C(!0),M=C(!1),P=C(),f=C(),h=X&&"loading"in HTMLImageElement.prototype;let O;const u=m(()=>[w.e("inner"),H.value&&w.e("preview"),E.value&&w.is("loading")]),ne=m(()=>{const{fit:t}=s;return X&&t?{objectFit:t}:{}}),H=m(()=>{const{previewSrcList:t}=s;return De(t)&&t.length>0}),G=m(()=>{const{previewSrcList:t,initialIndex:y}=s;let _=y;return y>t.length-1&&(_=0),_}),j=m(()=>s.loading==="eager"?!1:!h&&s.loading==="lazy"||s.lazy),K=()=>{X&&(E.value=!0,A.value=!1,n.value=s.src)};function oe(t){E.value=!1,A.value=!1,l("load",t)}function le(t){E.value=!1,A.value=!0,l("error",t)}function J(){va(P.value,f.value)&&(K(),U())}const Q=ua(J,200,!0);async function B(){var t;if(!X)return;await Ee();const{scrollContainer:y}=s;ra(y)?f.value=y:je(y)&&y!==""?f.value=(t=document.querySelector(y))!=null?t:void 0:P.value&&(f.value=ia(P.value)),f.value&&(O=F(f,"scroll",Q),setTimeout(()=>J(),100))}function U(){!X||!f.value||!Q||(O?.(),f.value=void 0)}function ee(){H.value&&(M.value=!0,l("show"))}function re(){M.value=!1,l("close")}function ie(t){l("switch",t)}return ve(()=>s.src,()=>{j.value?(E.value=!0,A.value=!1,U(),B()):K()}),ze(()=>{j.value?B():K()}),L({showPreview:ee}),(t,y)=>(g(),z("div",be({ref_key:"container",ref:P},e(D),{class:[e(w).b(),t.$attrs.class]}),[A.value?x(t.$slots,"error",{key:0},()=>[k("div",{class:v(e(w).e("error"))},Le(e(o)("el.image.error")),3)]):(g(),z(q,{key:1},[n.value!==void 0?(g(),z("img",be({key:0},e(se),{src:n.value,loading:t.loading,style:e(ne),class:e(u),crossorigin:t.crossorigin,onClick:ee,onLoad:oe,onError:le}),null,16,["src","loading","crossorigin"])):I("v-if",!0),E.value?(g(),z("div",{key:1,class:v(e(w).e("wrapper"))},[x(t.$slots,"placeholder",{},()=>[k("div",{class:v(e(w).e("placeholder"))},null,2)])],2)):I("v-if",!0)],64)),e(H)?(g(),z(q,{key:2},[M.value?(g(),me(e(ya),{key:0,"z-index":t.zIndex,"initial-index":e(G),infinite:t.infinite,"zoom-rate":t.zoomRate,"min-scale":t.minScale,"max-scale":t.maxScale,"show-progress":t.showProgress,"url-list":t.previewSrcList,crossorigin:t.crossorigin,"hide-on-click-modal":t.hideOnClickModal,teleported:t.previewTeleported,"close-on-press-escape":t.closeOnPressEscape,onClose:re,onSwitch:ie},He({toolbar:p(_=>[x(t.$slots,"toolbar",ke(Ie(_)))]),default:p(()=>[t.$slots.viewer?(g(),z("div",{key:0},[x(t.$slots,"viewer")])):I("v-if",!0)]),_:2},[t.$slots.progress?{name:"progress",fn:p(_=>[x(t.$slots,"progress",ke(Ie(_)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):I("v-if",!0)],64)):I("v-if",!0)],16))}});var za=Se(Ca,[["__file","image.vue"]]);const Oa=Re(za);export{Oa as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bG as we,c0 as de,bE as Re,c1 as Oe,bW as $e,H as Y,I as q,y as fe,S as re,z as J,a1 as ae,R as W,bh as xe,bi as Be,aN as F,$ as ke,K as Ae,c2 as Fe,U as be,c3 as ce,a_ as Le,A as ze}from"./index-BdFvcyuk.js";import{m as ne,a as se,d as Me,e as Ve}from"./typescript-CCxkBkN0.js";import{c as L}from"./strings-DfoVy23u.js";import{s as le,d as V,h as Ie,aq as H,o as ve,a8 as De,e as ie,r as T,w as D,a6 as me,I as pe,x as he,R as Ke,Q as ge,u as B,n as X,f as K,ah as Ue,C as m,S as Ge,z as oe,k as _e,p as We,X as He,c as qe,ar as Xe,G as Ye,J as Je,L as Qe}from"./vendor-vue-CpN3YBVJ.js";import{g as Ze,b as je}from"./_baseClone-CR0Wy28V.js";import{c as et}from"./_initCloneObject-M9PS39v_.js";import{i as tt}from"./isPlainObject-BCnSQ0mq.js";import{f as at}from"./index-CkZE7frB.js";function nt(e,t,s){var u=-1,a=e.length;t<0&&(t=-t>a?0:a+t),s=s>a?a:s,s<0&&(s+=a),a=t>s?0:s-t>>>0,t>>>=0;for(var l=Array(a);++u<a;)l[u]=e[u+t];return l}function st(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function lt(e,t){return t.length<2?e:we(e,nt(t,0,-1))}function ot(e,t){return t=de(t,e),e=lt(e,t),e==null||delete e[Re(st(t))]}function rt(e){return tt(e)?void 0:e}var it=1,ct=2,ut=4,dt=at(function(e,t){var s={};if(e==null)return s;var u=!1;t=Oe(t,function(l){return l=de(l,e),u||(u=l.length>1),l}),et(e,Ze(e),s),u&&(s=je(s,it|ct|ut,rt));for(var a=t.length;a--;)ot(s,t[a]);return s});const ft=(e,t,s)=>$e(e.subTree).filter(l=>{var P;return De(l)&&((P=l.type)==null?void 0:P.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>s[l]).filter(l=>!!l),bt=(e,t)=>{const s=le({}),u=le([]),a=new WeakMap,l=v=>{s.value[v.uid]=v,H(s),ve(()=>{const d=v.getVnode().el,n=d.parentNode;if(!a.has(n)){a.set(n,[]);const f=n.insertBefore.bind(n);n.insertBefore=(_,c)=>(a.get(n).some(N=>_===N||c===N)&&H(s),f(_,c))}a.get(n).push(d)})},P=v=>{delete s.value[v.uid],H(s);const d=v.getVnode().el,n=d.parentNode,f=a.get(n),_=f.indexOf(d);f.splice(_,1)},p=()=>{u.value=ft(e,t,s.value)},g=v=>v.render(),h=V({setup(v,{slots:d}){return()=>(p(),d.default?Ie(g,{render:d.default}):null)}});return{children:u,addChild:l,removeChild:P,ChildrenSorter:h}},Q=Symbol("tabsRootContextKey"),vt=Y({tabs:{type:q(Array),default:()=>ne([])},tabRefs:{type:q(Object),default:()=>ne({})}}),ye="ElTabBar",mt=V({name:ye}),pt=V({...mt,props:vt,setup(e,{expose:t}){const s=e,u=ie(Q);u||re(ye,"<el-tabs><el-tab-bar /></el-tabs>");const a=J("tabs"),l=T(),P=T(),p=()=>{let n=0,f=0;const _=["top","bottom"].includes(u.props.tabPosition)?"width":"height",c=_==="width"?"x":"y",R=c==="x"?"left":"top";return s.tabs.every(N=>{if(ae(N.paneName))return!1;const r=s.tabRefs[N.paneName];if(!r)return!1;if(!N.active)return!0;n=r[`offset${L(R)}`],f=r[`client${L(_)}`];const C=window.getComputedStyle(r);return _==="width"&&(f-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),n+=Number.parseFloat(C.paddingLeft)),!1}),{[_]:`${f}px`,transform:`translate${L(c)}(${n}px)`}},g=()=>P.value=p(),h=[],v=()=>{h.forEach(n=>n.stop()),h.length=0,Object.values(s.tabRefs).forEach(n=>{h.push(se(n,g))})};D(()=>s.tabs,async()=>{await X(),g(),v()},{immediate:!0});const d=se(l,()=>g());return me(()=>{h.forEach(n=>n.stop()),h.length=0,d.stop()}),t({ref:l,update:g}),(n,f)=>(he(),pe("div",{ref_key:"barRef",ref:l,class:ge([B(a).e("active-bar"),B(a).is(B(u).props.tabPosition)]),style:Ke(P.value)},null,6))}});var ht=fe(pt,[["__file","tab-bar.vue"]]);const gt=Y({panes:{type:q(Array),default:()=>ne([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),_t={tabClick:(e,t,s)=>s instanceof Event,tabRemove:(e,t)=>t instanceof Event},ue="ElTabNav",yt=V({name:ue,props:gt,emits:_t,setup(e,{expose:t,emit:s}){const u=ie(Q);u||re(ue,"<el-tabs><tab-nav /></el-tabs>");const a=J("tabs"),l=Me(),P=Ve(),p=T(),g=T(),h=T(),v=T({}),d=T(),n=T(!1),f=T(0),_=T(!1),c=T(!0),R=le(),N=K(()=>["top","bottom"].includes(u.props.tabPosition)?"width":"height"),r=K(()=>({transform:`translate${N.value==="width"?"X":"Y"}(-${f.value}px)`})),C=()=>{if(!p.value)return;const i=p.value[`offset${L(N.value)}`],b=f.value;if(!b)return;const o=b>i?b-i:0;f.value=o},w=()=>{if(!p.value||!g.value)return;const i=g.value[`offset${L(N.value)}`],b=p.value[`offset${L(N.value)}`],o=f.value;if(i-o<=b)return;const E=i-o>b*2?o+b:i-b;f.value=E},k=async()=>{const i=g.value;if(!n.value||!h.value||!p.value||!i)return;await X();const b=v.value[e.currentName];if(!b)return;const o=p.value,E=["top","bottom"].includes(u.props.tabPosition),y=b.getBoundingClientRect(),S=o.getBoundingClientRect(),U=E?i.offsetWidth-S.width:i.offsetHeight-S.height,A=f.value;let $=A;E?(y.left<S.left&&($=A-(S.left-y.left)),y.right>S.right&&($=A+y.right-S.right)):(y.top<S.top&&($=A-(S.top-y.top)),y.bottom>S.bottom&&($=A+(y.bottom-S.bottom))),$=Math.max($,0),f.value=Math.min($,U)},z=()=>{var i;if(!g.value||!p.value)return;e.stretch&&((i=d.value)==null||i.update());const b=g.value[`offset${L(N.value)}`],o=p.value[`offset${L(N.value)}`],E=f.value;o<b?(n.value=n.value||{},n.value.prev=E,n.value.next=E+o<b,b-E<o&&(f.value=b-o)):(n.value=!1,E>0&&(f.value=0))},I=i=>{let b=0;switch(i.code){case F.left:case F.up:b=-1;break;case F.right:case F.down:b=1;break;default:return}const o=Array.from(i.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let y=o.indexOf(i.target)+b;y<0?y=o.length-1:y>=o.length&&(y=0),o[y].focus({preventScroll:!0}),o[y].click(),M()},M=()=>{c.value&&(_.value=!0)},O=()=>_.value=!1,Z=(i,b)=>{v.value[b]=i},Te=async()=>{await X();const i=v.value[e.currentName];i?.focus({preventScroll:!0})};return D(l,i=>{i==="hidden"?c.value=!1:i==="visible"&&setTimeout(()=>c.value=!0,50)}),D(P,i=>{i?setTimeout(()=>c.value=!0,50):c.value=!1}),se(h,z),ve(()=>setTimeout(()=>k(),0)),Ue(()=>z()),t({scrollToActiveTab:k,removeFocus:O,focusActiveTab:Te,tabListRef:g,tabBarRef:d,scheduleRender:()=>H(R)}),()=>{const i=n.value?[m("span",{class:[a.e("nav-prev"),a.is("disabled",!n.value.prev)],onClick:C},[m(W,null,{default:()=>[m(xe,null,null)]})]),m("span",{class:[a.e("nav-next"),a.is("disabled",!n.value.next)],onClick:w},[m(W,null,{default:()=>[m(Be,null,null)]})])]:null,b=e.panes.map((o,E)=>{var y,S,U,A;const $=o.uid,j=o.props.disabled,G=(S=(y=o.props.name)!=null?y:o.index)!=null?S:`${E}`,ee=!j&&(o.isClosable||e.editable);o.index=`${E}`;const Pe=ee?m(W,{class:"is-icon-close",onClick:x=>s("tabRemove",o,x)},{default:()=>[m(ke,null,null)]}):null,Ee=((A=(U=o.slots).label)==null?void 0:A.call(U))||o.props.label,Se=!j&&o.active?0:-1;return m("div",{ref:x=>Z(x,G),class:[a.e("item"),a.is(u.props.tabPosition),a.is("active",o.active),a.is("disabled",j),a.is("closable",ee),a.is("focus",_.value)],id:`tab-${G}`,key:`tab-${$}`,"aria-controls":`pane-${G}`,role:"tab","aria-selected":o.active,tabindex:Se,onFocus:()=>M(),onBlur:()=>O(),onClick:x=>{O(),s("tabClick",o,G,x)},onKeydown:x=>{ee&&(x.code===F.delete||x.code===F.backspace)&&s("tabRemove",o,x)}},[Ee,Pe])});return R.value,m("div",{ref:h,class:[a.e("nav-wrap"),a.is("scrollable",!!n.value),a.is(u.props.tabPosition)]},[i,m("div",{class:a.e("nav-scroll"),ref:p},[e.panes.length>0?m("div",{class:[a.e("nav"),a.is(u.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(u.props.tabPosition))],ref:g,style:r.value,role:"tablist",onKeydown:I},[e.type?null:m(ht,{ref:d,tabs:[...e.panes],tabRefs:v.value},null),b]):null])])}}}),Nt=Y({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:q(Function),default:()=>!0},stretch:Boolean}),te=e=>Ge(e)||Ae(e),Ct={[be]:e=>te(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>te(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>te(e),tabAdd:()=>!0},Tt=V({name:"ElTabs",props:Nt,emits:Ct,setup(e,{emit:t,slots:s,expose:u}){var a;const l=J("tabs"),P=K(()=>["left","right"].includes(e.tabPosition)),{children:p,addChild:g,removeChild:h,ChildrenSorter:v}=bt(_e(),"ElTabPane"),d=T(),n=T((a=e.modelValue)!=null?a:"0"),f=async(r,C=!1)=>{var w,k,z,I;if(!(n.value===r||ae(r)))try{let M;if(e.beforeLeave){const O=e.beforeLeave(r,n.value);M=O instanceof Promise?await O:O}else M=!0;if(M!==!1){const O=(w=p.value.find(Z=>Z.paneName===n.value))==null?void 0:w.isFocusInsidePane();n.value=r,C&&(t(be,r),t("tabChange",r)),(z=(k=d.value)==null?void 0:k.removeFocus)==null||z.call(k),O&&((I=d.value)==null||I.focusActiveTab())}}catch{}},_=(r,C,w)=>{r.props.disabled||(t("tabClick",r,w),f(C,!0))},c=(r,C)=>{r.props.disabled||ae(r.props.name)||(C.stopPropagation(),t("edit",r.props.name,"remove"),t("tabRemove",r.props.name))},R=()=>{t("edit",void 0,"add"),t("tabAdd")},N=r=>{const C=r.el.firstChild,w=["bottom","right"].includes(e.tabPosition)?r.children[0].el:r.children[1].el;C!==w&&C.before(w)};return D(()=>e.modelValue,r=>f(r)),D(n,async()=>{var r;await X(),(r=d.value)==null||r.scrollToActiveTab()}),We(Q,{props:e,currentName:n,registerPane:g,unregisterPane:h,nav$:d}),u({currentName:n,get tabNavRef(){return dt(d.value,["scheduleRender"])}}),()=>{const r=s["add-icon"],C=e.editable||e.addable?m("div",{class:[l.e("new-tab"),P.value&&l.e("new-tab-vertical")],tabindex:"0",onClick:R,onKeydown:I=>{[F.enter,F.numpadEnter].includes(I.code)&&R()}},[r?oe(s,"add-icon"):m(W,{class:l.is("icon-plus")},{default:()=>[m(Fe,null,null)]})]):null,w=()=>m(yt,{ref:d,currentName:n.value,editable:e.editable,type:e.type,panes:p.value,stretch:e.stretch,onTabClick:_,onTabRemove:c},null),k=m("div",{class:[l.e("header"),P.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[m(v,null,{default:w,$stable:!0}),C]),z=m("div",{class:l.e("content")},[oe(s,"default")]);return m("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}],onVnodeMounted:N,onVnodeUpdated:N},[z,k])}}});var Pt=Tt;const Et=Y({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ne="ElTabPane",St=V({name:Ne}),wt=V({...St,props:Et,setup(e){const t=e,s=_e(),u=He(),a=ie(Q);a||re(Ne,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=J("tab-pane"),P=T(),p=T(),g=K(()=>t.closable||a.props.closable),h=ce(()=>{var c;return a.currentName.value===((c=t.name)!=null?c:p.value)}),v=T(h.value),d=K(()=>{var c;return(c=t.name)!=null?c:p.value}),n=ce(()=>!t.lazy||v.value||h.value),f=()=>{var c;return(c=P.value)==null?void 0:c.contains(document.activeElement)};D(h,c=>{c&&(v.value=!0)});const _=qe({uid:s.uid,getVnode:()=>s.vnode,slots:u,props:t,paneName:d,active:h,index:p,isClosable:g,isFocusInsidePane:f});return a.registerPane(_),me(()=>{a.unregisterPane(_)}),Xe(()=>{var c;u.label&&((c=a.nav$.value)==null||c.scheduleRender())}),(c,R)=>B(n)?Ye((he(),pe("div",{key:0,id:`pane-${B(d)}`,ref_key:"paneRef",ref:P,class:ge(B(l).b()),role:"tabpanel","aria-hidden":!B(h),"aria-labelledby":`tab-${B(d)}`},[oe(c.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Qe,B(h)]]):Je("v-if",!0)}});var Ce=fe(wt,[["__file","tab-pane.vue"]]);const Lt=ze(Pt,{TabPane:Ce}),zt=Le(Ce);export{zt as E,Lt as a};
|
|
1
|
+
import{bG as we,c0 as de,bE as Re,c1 as Oe,bW as $e,H as Y,I as q,y as fe,S as re,z as J,a1 as ae,R as W,bh as xe,bi as Be,aN as F,$ as ke,K as Ae,c2 as Fe,U as be,c3 as ce,a_ as Le,A as ze}from"./index-DCg4Dkdi.js";import{m as ne,a as se,d as Me,e as Ve}from"./typescript-BR9jNAAl.js";import{c as L}from"./strings-DfoVy23u.js";import{s as le,d as V,h as Ie,aq as H,o as ve,a8 as De,e as ie,r as T,w as D,a6 as me,I as pe,x as he,R as Ke,Q as ge,u as B,n as X,f as K,ah as Ue,C as m,S as Ge,z as oe,k as _e,p as We,X as He,c as qe,ar as Xe,G as Ye,J as Je,L as Qe}from"./vendor-vue-CpN3YBVJ.js";import{g as Ze,b as je}from"./_baseClone-DHUSso_K.js";import{c as et}from"./_initCloneObject-B2aXh2fK.js";import{i as tt}from"./isPlainObject-CcQDDiIC.js";import{f as at}from"./index-Di6x4d6J.js";function nt(e,t,s){var u=-1,a=e.length;t<0&&(t=-t>a?0:a+t),s=s>a?a:s,s<0&&(s+=a),a=t>s?0:s-t>>>0,t>>>=0;for(var l=Array(a);++u<a;)l[u]=e[u+t];return l}function st(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function lt(e,t){return t.length<2?e:we(e,nt(t,0,-1))}function ot(e,t){return t=de(t,e),e=lt(e,t),e==null||delete e[Re(st(t))]}function rt(e){return tt(e)?void 0:e}var it=1,ct=2,ut=4,dt=at(function(e,t){var s={};if(e==null)return s;var u=!1;t=Oe(t,function(l){return l=de(l,e),u||(u=l.length>1),l}),et(e,Ze(e),s),u&&(s=je(s,it|ct|ut,rt));for(var a=t.length;a--;)ot(s,t[a]);return s});const ft=(e,t,s)=>$e(e.subTree).filter(l=>{var P;return De(l)&&((P=l.type)==null?void 0:P.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>s[l]).filter(l=>!!l),bt=(e,t)=>{const s=le({}),u=le([]),a=new WeakMap,l=v=>{s.value[v.uid]=v,H(s),ve(()=>{const d=v.getVnode().el,n=d.parentNode;if(!a.has(n)){a.set(n,[]);const f=n.insertBefore.bind(n);n.insertBefore=(_,c)=>(a.get(n).some(N=>_===N||c===N)&&H(s),f(_,c))}a.get(n).push(d)})},P=v=>{delete s.value[v.uid],H(s);const d=v.getVnode().el,n=d.parentNode,f=a.get(n),_=f.indexOf(d);f.splice(_,1)},p=()=>{u.value=ft(e,t,s.value)},g=v=>v.render(),h=V({setup(v,{slots:d}){return()=>(p(),d.default?Ie(g,{render:d.default}):null)}});return{children:u,addChild:l,removeChild:P,ChildrenSorter:h}},Q=Symbol("tabsRootContextKey"),vt=Y({tabs:{type:q(Array),default:()=>ne([])},tabRefs:{type:q(Object),default:()=>ne({})}}),ye="ElTabBar",mt=V({name:ye}),pt=V({...mt,props:vt,setup(e,{expose:t}){const s=e,u=ie(Q);u||re(ye,"<el-tabs><el-tab-bar /></el-tabs>");const a=J("tabs"),l=T(),P=T(),p=()=>{let n=0,f=0;const _=["top","bottom"].includes(u.props.tabPosition)?"width":"height",c=_==="width"?"x":"y",R=c==="x"?"left":"top";return s.tabs.every(N=>{if(ae(N.paneName))return!1;const r=s.tabRefs[N.paneName];if(!r)return!1;if(!N.active)return!0;n=r[`offset${L(R)}`],f=r[`client${L(_)}`];const C=window.getComputedStyle(r);return _==="width"&&(f-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),n+=Number.parseFloat(C.paddingLeft)),!1}),{[_]:`${f}px`,transform:`translate${L(c)}(${n}px)`}},g=()=>P.value=p(),h=[],v=()=>{h.forEach(n=>n.stop()),h.length=0,Object.values(s.tabRefs).forEach(n=>{h.push(se(n,g))})};D(()=>s.tabs,async()=>{await X(),g(),v()},{immediate:!0});const d=se(l,()=>g());return me(()=>{h.forEach(n=>n.stop()),h.length=0,d.stop()}),t({ref:l,update:g}),(n,f)=>(he(),pe("div",{ref_key:"barRef",ref:l,class:ge([B(a).e("active-bar"),B(a).is(B(u).props.tabPosition)]),style:Ke(P.value)},null,6))}});var ht=fe(pt,[["__file","tab-bar.vue"]]);const gt=Y({panes:{type:q(Array),default:()=>ne([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),_t={tabClick:(e,t,s)=>s instanceof Event,tabRemove:(e,t)=>t instanceof Event},ue="ElTabNav",yt=V({name:ue,props:gt,emits:_t,setup(e,{expose:t,emit:s}){const u=ie(Q);u||re(ue,"<el-tabs><tab-nav /></el-tabs>");const a=J("tabs"),l=Me(),P=Ve(),p=T(),g=T(),h=T(),v=T({}),d=T(),n=T(!1),f=T(0),_=T(!1),c=T(!0),R=le(),N=K(()=>["top","bottom"].includes(u.props.tabPosition)?"width":"height"),r=K(()=>({transform:`translate${N.value==="width"?"X":"Y"}(-${f.value}px)`})),C=()=>{if(!p.value)return;const i=p.value[`offset${L(N.value)}`],b=f.value;if(!b)return;const o=b>i?b-i:0;f.value=o},w=()=>{if(!p.value||!g.value)return;const i=g.value[`offset${L(N.value)}`],b=p.value[`offset${L(N.value)}`],o=f.value;if(i-o<=b)return;const E=i-o>b*2?o+b:i-b;f.value=E},k=async()=>{const i=g.value;if(!n.value||!h.value||!p.value||!i)return;await X();const b=v.value[e.currentName];if(!b)return;const o=p.value,E=["top","bottom"].includes(u.props.tabPosition),y=b.getBoundingClientRect(),S=o.getBoundingClientRect(),U=E?i.offsetWidth-S.width:i.offsetHeight-S.height,A=f.value;let $=A;E?(y.left<S.left&&($=A-(S.left-y.left)),y.right>S.right&&($=A+y.right-S.right)):(y.top<S.top&&($=A-(S.top-y.top)),y.bottom>S.bottom&&($=A+(y.bottom-S.bottom))),$=Math.max($,0),f.value=Math.min($,U)},z=()=>{var i;if(!g.value||!p.value)return;e.stretch&&((i=d.value)==null||i.update());const b=g.value[`offset${L(N.value)}`],o=p.value[`offset${L(N.value)}`],E=f.value;o<b?(n.value=n.value||{},n.value.prev=E,n.value.next=E+o<b,b-E<o&&(f.value=b-o)):(n.value=!1,E>0&&(f.value=0))},I=i=>{let b=0;switch(i.code){case F.left:case F.up:b=-1;break;case F.right:case F.down:b=1;break;default:return}const o=Array.from(i.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let y=o.indexOf(i.target)+b;y<0?y=o.length-1:y>=o.length&&(y=0),o[y].focus({preventScroll:!0}),o[y].click(),M()},M=()=>{c.value&&(_.value=!0)},O=()=>_.value=!1,Z=(i,b)=>{v.value[b]=i},Te=async()=>{await X();const i=v.value[e.currentName];i?.focus({preventScroll:!0})};return D(l,i=>{i==="hidden"?c.value=!1:i==="visible"&&setTimeout(()=>c.value=!0,50)}),D(P,i=>{i?setTimeout(()=>c.value=!0,50):c.value=!1}),se(h,z),ve(()=>setTimeout(()=>k(),0)),Ue(()=>z()),t({scrollToActiveTab:k,removeFocus:O,focusActiveTab:Te,tabListRef:g,tabBarRef:d,scheduleRender:()=>H(R)}),()=>{const i=n.value?[m("span",{class:[a.e("nav-prev"),a.is("disabled",!n.value.prev)],onClick:C},[m(W,null,{default:()=>[m(xe,null,null)]})]),m("span",{class:[a.e("nav-next"),a.is("disabled",!n.value.next)],onClick:w},[m(W,null,{default:()=>[m(Be,null,null)]})])]:null,b=e.panes.map((o,E)=>{var y,S,U,A;const $=o.uid,j=o.props.disabled,G=(S=(y=o.props.name)!=null?y:o.index)!=null?S:`${E}`,ee=!j&&(o.isClosable||e.editable);o.index=`${E}`;const Pe=ee?m(W,{class:"is-icon-close",onClick:x=>s("tabRemove",o,x)},{default:()=>[m(ke,null,null)]}):null,Ee=((A=(U=o.slots).label)==null?void 0:A.call(U))||o.props.label,Se=!j&&o.active?0:-1;return m("div",{ref:x=>Z(x,G),class:[a.e("item"),a.is(u.props.tabPosition),a.is("active",o.active),a.is("disabled",j),a.is("closable",ee),a.is("focus",_.value)],id:`tab-${G}`,key:`tab-${$}`,"aria-controls":`pane-${G}`,role:"tab","aria-selected":o.active,tabindex:Se,onFocus:()=>M(),onBlur:()=>O(),onClick:x=>{O(),s("tabClick",o,G,x)},onKeydown:x=>{ee&&(x.code===F.delete||x.code===F.backspace)&&s("tabRemove",o,x)}},[Ee,Pe])});return R.value,m("div",{ref:h,class:[a.e("nav-wrap"),a.is("scrollable",!!n.value),a.is(u.props.tabPosition)]},[i,m("div",{class:a.e("nav-scroll"),ref:p},[e.panes.length>0?m("div",{class:[a.e("nav"),a.is(u.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(u.props.tabPosition))],ref:g,style:r.value,role:"tablist",onKeydown:I},[e.type?null:m(ht,{ref:d,tabs:[...e.panes],tabRefs:v.value},null),b]):null])])}}}),Nt=Y({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:q(Function),default:()=>!0},stretch:Boolean}),te=e=>Ge(e)||Ae(e),Ct={[be]:e=>te(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>te(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>te(e),tabAdd:()=>!0},Tt=V({name:"ElTabs",props:Nt,emits:Ct,setup(e,{emit:t,slots:s,expose:u}){var a;const l=J("tabs"),P=K(()=>["left","right"].includes(e.tabPosition)),{children:p,addChild:g,removeChild:h,ChildrenSorter:v}=bt(_e(),"ElTabPane"),d=T(),n=T((a=e.modelValue)!=null?a:"0"),f=async(r,C=!1)=>{var w,k,z,I;if(!(n.value===r||ae(r)))try{let M;if(e.beforeLeave){const O=e.beforeLeave(r,n.value);M=O instanceof Promise?await O:O}else M=!0;if(M!==!1){const O=(w=p.value.find(Z=>Z.paneName===n.value))==null?void 0:w.isFocusInsidePane();n.value=r,C&&(t(be,r),t("tabChange",r)),(z=(k=d.value)==null?void 0:k.removeFocus)==null||z.call(k),O&&((I=d.value)==null||I.focusActiveTab())}}catch{}},_=(r,C,w)=>{r.props.disabled||(t("tabClick",r,w),f(C,!0))},c=(r,C)=>{r.props.disabled||ae(r.props.name)||(C.stopPropagation(),t("edit",r.props.name,"remove"),t("tabRemove",r.props.name))},R=()=>{t("edit",void 0,"add"),t("tabAdd")},N=r=>{const C=r.el.firstChild,w=["bottom","right"].includes(e.tabPosition)?r.children[0].el:r.children[1].el;C!==w&&C.before(w)};return D(()=>e.modelValue,r=>f(r)),D(n,async()=>{var r;await X(),(r=d.value)==null||r.scrollToActiveTab()}),We(Q,{props:e,currentName:n,registerPane:g,unregisterPane:h,nav$:d}),u({currentName:n,get tabNavRef(){return dt(d.value,["scheduleRender"])}}),()=>{const r=s["add-icon"],C=e.editable||e.addable?m("div",{class:[l.e("new-tab"),P.value&&l.e("new-tab-vertical")],tabindex:"0",onClick:R,onKeydown:I=>{[F.enter,F.numpadEnter].includes(I.code)&&R()}},[r?oe(s,"add-icon"):m(W,{class:l.is("icon-plus")},{default:()=>[m(Fe,null,null)]})]):null,w=()=>m(yt,{ref:d,currentName:n.value,editable:e.editable,type:e.type,panes:p.value,stretch:e.stretch,onTabClick:_,onTabRemove:c},null),k=m("div",{class:[l.e("header"),P.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[m(v,null,{default:w,$stable:!0}),C]),z=m("div",{class:l.e("content")},[oe(s,"default")]);return m("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}],onVnodeMounted:N,onVnodeUpdated:N},[z,k])}}});var Pt=Tt;const Et=Y({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ne="ElTabPane",St=V({name:Ne}),wt=V({...St,props:Et,setup(e){const t=e,s=_e(),u=He(),a=ie(Q);a||re(Ne,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=J("tab-pane"),P=T(),p=T(),g=K(()=>t.closable||a.props.closable),h=ce(()=>{var c;return a.currentName.value===((c=t.name)!=null?c:p.value)}),v=T(h.value),d=K(()=>{var c;return(c=t.name)!=null?c:p.value}),n=ce(()=>!t.lazy||v.value||h.value),f=()=>{var c;return(c=P.value)==null?void 0:c.contains(document.activeElement)};D(h,c=>{c&&(v.value=!0)});const _=qe({uid:s.uid,getVnode:()=>s.vnode,slots:u,props:t,paneName:d,active:h,index:p,isClosable:g,isFocusInsidePane:f});return a.registerPane(_),me(()=>{a.unregisterPane(_)}),Xe(()=>{var c;u.label&&((c=a.nav$.value)==null||c.scheduleRender())}),(c,R)=>B(n)?Ye((he(),pe("div",{key:0,id:`pane-${B(d)}`,ref_key:"paneRef",ref:P,class:ge(B(l).b()),role:"tabpanel","aria-hidden":!B(h),"aria-labelledby":`tab-${B(d)}`},[oe(c.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Qe,B(h)]]):Je("v-if",!0)}});var Ce=fe(wt,[["__file","tab-pane.vue"]]);const Lt=ze(Pt,{TabPane:Ce}),zt=Le(Ce);export{zt as E,Lt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aq as T,ao as o,a6 as v,at as d}from"./index-
|
|
1
|
+
import{aq as T,ao as o,a6 as v,at as d}from"./index-DCg4Dkdi.js";import{q as f,Q as u}from"./qrart-B1CpQE1F.js";import{s as b}from"./service-Djt3u4NK.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const w=({commit:t})=>{t("resetAll")},C=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(n=>n?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},I=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},$=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},h=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},q=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},y=async({commit:t,state:e})=>{e.status.getService=o.Request;try{const{data:s}=await b.get(u);return e.status.getService=o.Success,t("setService",s),s}catch{e.status.getService=o.Error,t("setService",void 0)}},x=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=o.Request;const a=e.application;console.debug("current application",a);try{const{data:n}=await v.getAll({user_id:s?.user?.id,service_id:u});return e.status.getApplications=o.Success,t("setApplications",n.items),n.items}catch(n){console.error("get applications failed",n),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},O=({commit:t},e)=>{t("setConfig",e)},R=({commit:t},e)=>{t("setTasks",e)},_=({commit:t},e)=>{t("setTasksItems",e)},E=({commit:t},e)=>{t("setTasksTotal",e)},P=({commit:t},e)=>{t("setTasksActive",e)},Q=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:g,createdAtMax:k})=>new Promise((A,c)=>{console.debug("start to get tasks",a,n);const r=e.credential?.token;if(!r)return c("no token");f.tasks({userId:s?.user?.id,createdAtMin:g,createdAtMax:k},{token:r}).then(i=>{console.debug("get qrart tasks success",i.data.items);const l=e?.tasks?.items||[];console.debug("existing items",l);const p=i.data.items||[];console.debug("new items",p);const m=S(l,p);t("setTasksItems",m),t("setTasksTotal",i.data.count),A(i.data.items)}).catch(i=>c(i))}),D={setService:$,getService:y,resetAll:w,setCredential:h,setConfig:O,setApplication:C,setApplications:I,getApplications:x,setTasks:R,setTasksItems:_,setTasksTotal:E,setTasksActive:P,getTasks:Q,createCredential:q},L=t=>{Object.assign(t,d())},V=(t,e)=>{t.service=e},j=(t,e)=>{t.applications=e},z=(t,e)=>{t.credential=e},B=(t,e)=>{t.application=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},H=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},K=(t,e)=>{t.tasks=e},M={setTasks:K,setApplication:B,setApplications:j,setConfig:F,setCredential:z,setService:V,setTasksActive:J,setTasksItems:G,setTasksTotal:H,resetAll:L},at={namespaced:!0,state:d,mutations:M,actions:D};export{at as default,at as qrart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aq as v,ao as i,a6 as T,aU as d}from"./index-
|
|
1
|
+
import{aq as v,ao as i,a6 as T,aU as d}from"./index-DCg4Dkdi.js";import{s as f}from"./service-Djt3u4NK.js";import{h as b}from"./headshots-XMemsZ0g.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const u="3b2ec5fb-cfcb-49f0-9393-6b8617a2d8c4",w=({commit:t})=>{t("resetAll")},C=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(o=>o?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},h=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},I=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},$=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},y=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await v.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},O=async({commit:t,state:e})=>{e.status.getService=i.Request;try{const{data:s}=await f.get(u);return e.status.getService=i.Success,t("setService",s),s}catch{e.status.getService=i.Error,t("setService",void 0)}},x=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=i.Request;const a=e.application;console.debug("current application",a);try{const{data:o}=await T.getAll({user_id:s?.user?.id,service_id:u});return e.status.getApplications=i.Success,t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=i.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},_=({commit:t},e)=>{t("setTasks",e)},P=({commit:t},e)=>{t("setTasksItems",e)},q=({commit:t},e)=>{t("setTasksTotal",e)},R=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:g,createdAtMax:k})=>new Promise((A,c)=>{console.debug("start to get tasks",a,o);const r=e.credential?.token;if(!r)return c("no token");b.tasks({userId:s?.user?.id,createdAtMin:g,createdAtMax:k},{token:r}).then(n=>{console.debug("get videos tasks success",n.data.items);const l=e?.tasks?.items||[];console.debug("existing items",l);const p=n.data.items||[];console.debug("new items",p);const m=S(l,p);t("setTasksItems",m),t("setTasksTotal",n.data.count),A(n.data.items)}).catch(n=>c(n))}),H={setService:I,getService:O,resetAll:w,setCredential:$,setConfig:E,setApplication:C,setApplications:h,getApplications:x,setTasks:_,setTasksItems:P,setTasksTotal:q,setTasksActive:R,getTasks:D,createCredential:y},L=t=>{Object.assign(t,d())},U=(t,e)=>{t.service=e},V=(t,e)=>{t.credential=e},j=(t,e)=>{t.application=e},z=(t,e)=>{t.applications=e},B=(t,e)=>{t.config=e},F=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},G=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},K=(t,e)=>{t.tasks=e},M={setTasks:K,setApplication:j,setApplications:z,setConfig:B,setCredential:V,setService:U,setTasksActive:J,setTasksItems:F,setTasksTotal:G,resetAll:L},at={namespaced:!0,state:d,mutations:M,actions:H};export{at as default,at as headshots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as n,a6 as b,aE as g,aq as f,aF as k}from"./index-
|
|
1
|
+
import{ao as n,a6 as b,aE as g,aq as f,aF as k}from"./index-DCg4Dkdi.js";import{s as S}from"./service-Djt3u4NK.js";import{n as w}from"./nanobanana-DVBYAXad.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const I=({commit:t})=>{t("resetAll")},$=async({commit:t,dispatch:s},e)=>{if(console.debug("set application",e),t("setApplication",e),!e){console.debug("application is null, return");return}const a=e?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",e),await s("createCredential"))},y=async({commit:t},s)=>{console.debug("set applications",s),t("setApplications",s)},E=async({commit:t},s)=>{console.debug("set service",s),t("setService",s)},h=async({commit:t},s)=>{console.debug("set credential",s),t("setCredential",s)},O=async({commit:t,state:s})=>{const e=s.application;if(console.debug("prepare to create credential for application",e),!e){console.error("Application not found");return}console.debug("creating create credential for application",e);const{data:a}=await f.create({application_id:e?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:s})=>{s.status.getService=n.Request;try{const{data:e}=await S.get(g);return s.status.getService=n.Success,t("setService",e),e}catch{s.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:s,rootState:e})=>{console.debug("start to get applications for nanobanana"),s.status.getApplications=n.Request;try{const{data:a}=await b.getAll({user_id:e?.user?.id,service_id:g});return s.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),s.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},q=({commit:t},s)=>{t("setConfig",s)},N=({commit:t},s)=>{t("setTasks",s)},P=({commit:t},s)=>{t("setTasksItems",s)},R=({commit:t},s)=>{t("setTasksTotal",s)},B=({commit:t},s)=>{t("setTasksActive",s)},D=async({commit:t,state:s,rootState:e},{offset:a,limit:i,createdAtMin:A,createdAtMax:T})=>(s.status.getTasks=n.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,i);const l=s.credential;console.debug("current credential",l);const d=l?.token;if(!d)return s.status.getTasks=n.Error,r("no token");w.tasks({userId:e?.user?.id,offset:a,limit:i,createdAtMin:A,createdAtMax:T,type:"images"},{token:d}).then(o=>{console.debug("get images tasks success",o.data.items);const p=s?.tasks?.items||[];console.debug("existing items",p);const u=o.data.items||[];console.debug("new items",u);const m=C(p,u);t("setTasksItems",m),t("setTasksTotal",o.data.count),s.status.getTasks=n.Success,v(o.data.items)}).catch(o=>(s.status.getTasks=n.Error,r(o)))})),F={createCredential:O,setService:E,getService:x,resetAll:I,setCredential:h,setConfig:q,setApplications:y,setApplication:$,getApplications:_,setTasks:N,setTasksItems:P,setTasksTotal:R,setTasksActive:B,getTasks:D},c={items:void 0,total:void 0,active:void 0},L=t=>{Object.assign(t,k())},V=(t,s)=>{t.service=s},j=(t,s)=>{t.credential=s},z=(t,s)=>{t.application=s},G=(t,s)=>{t.applications=s},H=(t,s)=>{t.config=s},J=(t,s)=>{const e={...t.tasks||c,items:s};t.tasks=e},K=(t,s)=>{const e={...t.tasks||c,total:s};t.tasks=e},M=(t,s)=>{const e={...t.tasks||c,active:s};t.tasks=e},Q=(t,s)=>{t.tasks=s},U={setTasks:Q,setApplication:z,setApplications:G,setConfig:H,setCredential:j,setService:V,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:L},nt={namespaced:!0,state:k,mutations:U,actions:F};export{nt as default,nt as nanobanana};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aq as T,ao as n,a6 as f,az as u}from"./index-
|
|
1
|
+
import{aq as T,ao as n,a6 as f,az as u}from"./index-DCg4Dkdi.js";import{P as g}from"./pixverse-eUATiZ_u.js";import{s as b}from"./service-Djt3u4NK.js";import{p as S}from"./pixverse-DbrgLmEa.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},x=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},y=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},E=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},P=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:i}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",i.items),i.items}catch(i){console.error("get applications failed",i),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},O=({commit:t},e)=>{t("setConfig",e)},_=({commit:t},e)=>{t("setTasks",e)},R=({commit:t},e)=>{t("setTasksItems",e)},q=({commit:t},e)=>{t("setTasksTotal",e)},V=({commit:t},e)=>{t("setTasksActive",e)},z=async({commit:t,state:e,rootState:s},{offset:a,limit:i,createdAtMin:k,createdAtMax:v})=>new Promise((m,c)=>{console.debug("start to get tasks",a,i);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:v,type:"videos"},{token:l}).then(o=>{console.debug("get videos tasks success",o.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=o.data.items||[];console.debug("new items",d);const A=w(p,d);t("setTasksItems",A),t("setTasksTotal",o.data.count),m(o.data.items)}).catch(o=>c(o))}),D={setService:h,getService:E,resetAll:C,setCredential:x,setConfig:O,setApplication:I,setApplications:$,getApplications:P,setTasks:_,setTasksItems:R,setTasksTotal:q,setTasksActive:V,getTasks:z,createCredential:y},L=t=>{Object.assign(t,u())},X=(t,e)=>{t.service=e},j=(t,e)=>{t.credential=e},B=(t,e)=>{t.application=e},F=(t,e)=>{t.applications=e},G=(t,e)=>{t.config=e},H=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},M=(t,e)=>{t.tasks=e},N={setTasks:M,setApplication:B,setApplications:F,setConfig:G,setCredential:j,setService:X,setTasksActive:K,setTasksItems:H,setTasksTotal:J,resetAll:L},it={namespaced:!0,state:u,mutations:N,actions:D};export{it as default,it as pixverse};
|